1 2008-07-30 Robert Dewar <dewar@adacore.com>
3 * make.adb: Minor reformatting
5 * mlib-utl.adb: Minor reformatting
7 * osint.ads: Minor reformatting
9 2008-07-30 Jose Ruiz <ruiz@adacore.com>
12 (__gnat_file_exists): Do not use __gnat_stat for RTX.
13 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
14 avoid the use of this symbol from libgcc.a in RTX kernel mode.
17 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
18 the function RtPrintf for console output.
20 * argv.c Do not use the environ variable for RTX.
22 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
23 been moved before the call to Osint.Add_Default_Search_Dirs in order
24 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
25 from the appropriate run time.
28 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
29 target is a RTSS module for RTX.
31 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
32 RTX_RTSS_Kernel_Module
33 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
35 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
36 exception handling mechanism for Windows and RTX in Win32 mode, but
37 not for RTX in kernel mode (RTSS).
38 (LIBGNAT_SRCS): Remove ada.h
40 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
42 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
43 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
44 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
45 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
46 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
47 ALL_ADA_CFLAGS): Remove.
48 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
49 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
50 (GCC_CFLAGS): Remove X_CFLAGS.
51 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
52 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
53 (ADA_CFLAGS): Substitute.
55 2008-07-30 Laurent Guerby <laurent@guerby.net>
58 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
59 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
60 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
61 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
62 by stamp-gnatlib2-rts.
64 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66 PR documentation/15479
67 * gnat-style.texi: Remove AdaCore copyright statement and GPL
68 statement for GNAT. Add @copying stanza, use it. Update to
69 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
70 title as Front-Cover Text.
71 * gnat_rm.texi: Likewise.
72 * gnat_ugn.texi: Likewise.
74 2008-07-29 Jan Hubicka <jh@suse.cz>
76 * trans.c (process_inlined_subprograms): Remove tree_really_inline
79 2008-07-29 Arnaud Charlet <charlet@adacore.com>
81 * gcc-interface: New directory.
83 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
84 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
85 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
86 to gcc-interface subdirectory.
88 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
90 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
92 2008-07-28 Jan Hubicka <jh@suse.cz>
94 * misc.c (gnat_post_options): Do not set flag_no_inline.
96 2008-07-28 Richard Guenther <rguenther@suse.de>
98 Merge from gimple-tuples-branch.
100 2008-07-22 Olivier Hainque <hainque@adacore.com>
102 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
103 this is called for an elab proc to be discarded if empty.
104 * utils.c (end_subprog_body): Honor ELAB_P.
105 (build_function_stub): Adjust call to end_subprog_body.
106 * trans.c (Subprogram_Body_to_gnu): Likewise.
107 (gigi): Reorganize processing of elab procs to prevent
108 gimplifying twice, using the new end_subprog_body argument.
110 2008-07-19 Richard Guenther <rguenther@suse.de>
112 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
114 * trans.c: Include tree-iterator.h.
115 (gnat_gimplify_expr): Adjust prototype. Fix typo.
116 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
117 (set_expr_location_from_node): Likewise.
119 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
121 * utils.c: Include tree-iterator.h.
122 * gigi.h (gnat_gimplify_expr): Adjust prototype.
124 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
126 * trans.c: Include gimple.h instead of tree-gimple.h.
129 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
131 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
133 2008-07-25 Jan Hubicka <jh@suse.cz>
135 * utils.c (end_subprog_body): Remove inline trees check.
136 * misc.c (gnat_post_options): Do not set flag_inline_trees.
138 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
140 * raise-gcc.c: Move tsystem.h before tm.h.
142 2008-07-20 Arnaud Charlet <charlet@adacore.com>
144 * gnathtml.pl: New file.
146 2008-07-19 Olivier Hainque <hainque@adacore.com>
148 * targtyps.c (get_target_default_allocator_alignment): Use
149 MALLOC_ABI_ALIGNMENT.
151 2008-07-17 Olivier Hainque <hainque@adacore.com>
153 * adaint.c (__MINGW32__ section): Include ctype.h and define
154 a fallback ISALPHA if IN_RTS.
155 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
157 2008-07-17 Olivier Hainque <hainque@adacore.com>
159 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
160 argument, to apply to references in addition to definitions. Prevent
161 setting TREE_STATIC on externals.
162 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
164 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
166 PR documentation/15479
167 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
168 Replace backets around optional parameters with @ovar
169 where possible, use @r{[}, @r{]} otherwise.
170 Replace some @r, @i, and @emph with @var where appropriate.
172 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
174 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
176 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
178 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
179 -Wc++-compat warnings.
180 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
181 __gnat_locate_exec_on_path): Likewise.
182 * decl.c (annotate_value): Likewise.
183 * misc.c (gnat_handle_option): Likewise.
184 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
185 post_error_ne_tree): Likewise.
187 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
189 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
190 version of its type, attempt to first convert its elements.
192 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
194 * Makefile.in: Fix *86 kfreebsd target specific pairs.
196 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
198 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
200 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
202 * utils2.c (known_alignment): Derive the alignment from pointed-to
203 types only if it is otherwise unknown.
205 <MULT_EXPR>: Likewise.
206 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
209 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
212 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
214 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
216 * gnat_rm.texi (Implementation Defined Characteristics)
217 (Standard Library Routines): Use @smallexample for indented
218 text. Drop Indentation outside examples.
219 * gnat_ugn.texi: Likewise.
221 2008-06-13 Olivier Hainque <hainque@adacore.com>
223 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
225 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
226 realignment with force_align_arg_pointer attribute on foreign
227 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
229 2008-06-13 Olivier Hainque <hainque@adacore.com>
231 * utils.c (rest_of_record_type_compilation): When computing
232 encodings for the components of a variable size type, early
233 strip conversions on the current position expression to make
234 sure it's shape is visible. Use remove_conversions for this
237 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
239 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
240 constrained subtype of a discriminated type, discard the fields that
241 are beyond its limits according to its size.
243 2008-06-10 Olivier Hainque <hainque@adacore.com>
245 * utils.c (create_subprog_decl): If this is for the 'main' entry
246 point according to the asm name, redirect main_identifier_node.
248 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
250 * decl.c (components_to_record): Adjust the packedness for the
251 qualified union as well.
253 2008-06-09 Arnaud Charlet <charlet@adacore.com>
255 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
258 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
260 * sem_res.adb (Large_Storage_Type): A type is large if it
261 requires as many bits as Positive to store its values and its
262 bounds are known at compile time.
263 * sem_ch13.adb (Minimum_Size): Note that this function returns
264 0 if the size is not known at compile time.
266 2008-06-06 Nicolas Setton <setton@adacore.com>
267 Olivier Hainque <hainque@adacore.com>
269 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
270 attribute, parallel descriptive type attached to another
271 type for debug info generation purposes.
272 * utils.c (add_parallel_type): New function, register
273 parallel type to be attached to a type.
274 (get_parallel_type): New function, fetch a registered
275 parallel type, if any.
276 (rest_of_record_type_compilation): Register the parallel
277 type we make for variable size records.
278 * gigi.h (add_parallel_type, get_parallel_type): Declare.
279 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
280 parallel debug types we make.
281 * trans.c (extract_encoding, decode_name): New functions.
282 (gigi): If the DWARF attribute extensions are available, setup
284 * lang.opt: Register language specific processing request
286 * misc.c (gnat_dwarf_extensions): New global variable. How much
287 do we want of our DWARF extensions. 0 by default.
288 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
289 (gnat_post_options): Map gnat_dwarf_extensions to the
290 commonuse_gnu_debug_info_extensions for later processing.
292 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
294 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
296 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
298 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
299 * gnat_ugn.texi (Style Checking)
300 (Adding the Results of Compiler Checks to gnatcheck Output)
301 (Example of Binder Output File): Fix typos.
302 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
303 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
304 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
305 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
306 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
307 sinfo.ads, utils.c: Fix typos in comments.
308 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
310 2008-05-29 Thomas Quinot <quinot@adacore.com>
312 * sem_eval.adb: Minor reformatting
314 2008-05-29 Ed Schonberg <schonberg@adacore.com>
316 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
317 is abstract, do not apply abstractness check on subprogram if this is
318 a renaming declaration.
320 2008-05-29 Arnaud Charlet <charlet@adacore.com>
323 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
324 allow recognition of program suffix in addition to prefix.
326 * gnatchop.adb (Locate_Executable): Add support for prefix.
328 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
329 mlib-utl.adb: Adjust calls to Program_Name.
331 2008-05-29 Robert Dewar <dewar@adacore.com>
333 * sem_ch3.adb: Minor reformatting
334 * sem_prag.adb: Minor reformatting
335 * sem_res.adb: Minor reformatting
336 * sinput-p.ads: Minor reformatting
338 2008-05-29 Javier Miranda <miranda@adacore.com>
341 (Abstract_Interface_List): Add missing support for full type-declaration
342 associated with synchronized types.
344 2008-05-29 Robert Dewar <dewar@adacore.com>
346 * sem_eval.adb (Is_Same_Value): Take care of several more cases
348 2008-05-28 Ed Schonberg <schonberg@adacore.com>
350 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
351 access type, wrap the expression in a conversion to force an
354 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
355 accessibility checks even when expansion is disabled in order to
356 generate messages in the presence of previous errors or in
359 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
361 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
362 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
364 2008-05-28 Vincent Celier <celier@adacore.com>
367 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
368 preprocessing expressions
370 2008-05-28 Vincent Celier <celier@adacore.com>
372 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
375 * sinput-p.ads: Minor comment update and reformatting
377 2008-05-28 Ed Schonberg <schonberg@adacore.com>
379 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
380 type has a deeper level than any master only when it is the type of an
383 2008-05-28 Javier Miranda <miranda@adacore.com>
385 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
387 2008-05-28 Javier Miranda <miranda@adacore.com>
389 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
390 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
391 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
392 Add code that was previously located in
393 Find_Overridden_Synchronized_Primitive because it is only used here.
395 2008-05-28 Sergey Rybin <rybin@adacore.com>
397 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
398 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
400 2008-05-28 Robert Dewar <dewar@adacore.com>
403 Add missing restrictions, and properly label all GNAT defined ones
406 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
407 Add entry for Ada.Task_Termination.Set_Specific_Handler
408 Add entry for Ada.Task_Termination.Specific_Handler
411 Add missing restrictions and properly mark all gnat defined ones
414 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
417 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
419 * gnat_rm.texi: Add missing restrictions, and properly label all
422 2008-05-28 Robert Dewar <dewar@adacore.com>
425 (Check_Restriction): violation of restriction No_Finalization is
426 treated as a serious error to stop expansion
428 2008-05-28 Robert Dewar <dewar@adacore.com>
430 * exp_util.adb: Minor reformatting
431 * exp_util.ads: Minor reformatting.
433 2008-05-28 Arnaud Charlet <charlet@adacore.com>
435 * Make-lang.in: Remove gprmake.
437 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
439 2008-05-28 Ed Schonberg <schonberg@adacore.com>
441 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
442 improper progenitor names, and avoid cascaded errors.
444 2008-05-28 Robert Dewar <dewar@adacore.com>
446 * gnat_rm.texi: Add note on Old giving warning when applied to constant
448 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
451 2008-05-28 Robert Dewar <dewar@adacore.com>
453 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
456 2008-05-28 Robert Dewar <dewar@adacore.com>
459 (Expand_Simple_Function_Return): Copy unaligned result into temporary
461 2008-05-28 Javier Miranda <miranda@adacore.com>
463 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
464 for user-defined predefined primitives.
466 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
467 (Find_Overridden_Synchronized_Primitive): Ditto.
469 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
471 2008-05-27 Arnaud Charlet <charlet@adacore.com>
473 * a-ststio.adb, s-direio.adb:
474 Further code clean up of previous change.
477 2008-05-27 Vincent Celier <celier@adacore.com>
479 * prj-nmsc.adb: Minor reformatting
481 2008-05-27 Bob Duff <duff@adacore.com>
483 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
484 untagged private type with a tagged full type, where the full type has
485 a self reference, create the corresponding class-wide type early, in
486 case the self reference is "access T'Class".
488 2008-05-27 Ed Schonberg <schonberg@adacore.com>
490 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
491 tasks and context is an object declaration. create master entity before
494 2008-05-27 Robert Dewar <dewar@adacore.com>
496 * mlib-prj.adb: Minor reformatting
498 * prj-part.adb: Minor reformatting
500 * prj.ads: Minor reformatting
502 * exp_ch3.adb: Minor reformatting.
504 * sem_ch3.ads: Minor reformatting
506 * sem_eval.adb: Minor reformatting
508 2008-05-27 Vincent Celier <celier@adacore.com>
511 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
513 2008-05-27 Ed Schonberg <schonberg@adacore.com>
515 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
516 tasks, create an activation chain now, before the expansion into
517 assignments and build-in-place calls that require the presence of an
519 (Backend_Processing_Possible): If the component type is inherently
520 limited, the aggregate must be expanded into individual built-in-place
523 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
524 determine whether an allocation extra parameter must be built, to
525 handle case of a private type whose full type is a discriminated type
528 2008-05-27 Bob Duff <duff@adacore.com>
531 Document the new behavior regarding trampolines.
533 2008-05-27 Arnaud Charlet <charlet@adacore.com>
535 * a-direio.adb, a-sequio.adb: Replace address clause by
536 unrestricted_access, simpler and compatible with .NET.
538 2008-05-27 Vincent Celier <celier@adacore.com>
541 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
542 a project file, so that symbolic links are not resolved.
544 2008-05-27 Arnaud Charlet <charlet@adacore.com>
546 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
547 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
548 portable across GNAT targets, since this kind of address clause is not
549 supported by VM back-ends (.NET/JGNAT).
551 2008-05-27 Arnaud Charlet <charlet@adacore.com>
553 * bindgen.adb: Update comments.
555 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
557 2008-05-27 Vincent Celier <celier@adacore.com>
559 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
560 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
561 mlib-tgt.adb, prj-env.adb, prj-env.ads:
562 (Path_Information): New record type
563 Use component of type Path_Information when there are two paths, one in
564 canonical format and one in display format.
565 Update the project manager to these new components.
567 2008-05-27 Robert Dewar <dewar@adacore.com>
569 * makeutl.adb: Minor reformatting
570 * prj-nmsc.adb: Minor reformatting
571 * s-stausa.adb: Minor reformatting
572 * s-stausa.ads: Minor reformatting
573 * sem_ch6.adb: Minor reformatting
575 2008-05-27 Thomas Quinot <quinot@adacore.com>
577 * sem_res.adb: Minor comment fixes
579 2008-05-27 Thomas Quinot <quinot@adacore.com>
581 * makeutl.adb: Minor code reorganization
583 * exp_aggr.adb: Add ??? comment
586 * exp_ch6.adb: Minor reformatting
588 2008-05-27 Quentin Ochem <ochem@adacore.com>
590 * s-stausa.adb (Initialize): Updated result initialization, and
591 initialization of environment stack.
592 (Fill_Stack): Improved computation of the pattern zone, taking into
593 account already filled at the calling point.
594 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
595 Measure and Overflow_Guard.
596 (Report_Result): Fixed computation of the result using new fields of
599 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
600 params by more explicit Stack_Size / Max_Pattern_Size params.
601 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
602 Added Stack_Used_When_Filling field.
603 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
604 Min_Measure and Max_Measure fields.
606 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
608 2008-05-27 Vincent Celier <celier@adacore.com>
611 (Check_File): Make sure that a unit that replaces the same unit in a
612 project being extended is properly processed.
614 2008-05-27 Ed Schonberg <schonberg@adacore.com>
617 (Get_Discr_Value): Remove obsolete code that failed to find the value
618 of a discriminant for an inherited task component appearing in a type
621 2008-05-27 Thomas Quinot <quinot@adacore.com>
623 (System.File_IO.{Close, Delete, Reset}):
624 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
626 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
627 Pass File parameter by reference.
629 2008-05-27 Vincent Celier <celier@adacore.com>
632 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
633 sources of the same project that have the same object file name.
634 (Find_Explicit_Sources): Always remove a source exception that was not
637 2008-05-27 Thomas Quinot <quinot@adacore.com>
639 * sem_ch3.adb: Minor reformatting
641 2008-05-27 Ed Schonberg <schonberg@adacore.com>
644 (Is_Interface_Conformant): Handle properly a primitive operation that
645 overrides an interface function with a controlling access result.
646 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
647 inherited and overriding operations, omit as well the conformance check
648 on result types, to prevent spurious errors.
650 2008-05-27 Vincent Celier <celier@adacore.com>
652 * makeutl.ads, makeutl.adb:
653 (Set_Location): New procedure
654 (Get_Location): New function
655 (Update_Main): New procedure
657 2008-05-27 Vincent Celier <celier@adacore.com>
660 (Check_Library): Allow standard project to be extended as a static
662 (Get_Mains): Do not inherit attribute Main in an extending library
665 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
667 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
668 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
669 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
670 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
671 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
672 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
673 * system-mingw.ads (Always_Compatible_Rep): Likewise.
674 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
675 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
676 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
678 2008-05-27 Ed Schonberg <schonberg@adacore.com>
680 * sem_attr.adb: add guard to previous patch.
682 2008-05-27 Ed Schonberg <schonberg@adacore.com>
684 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
685 a synchronized tagged type, do not attempt to build dispatch table for
686 full view. The table is built for the corresponding record type, which
687 has its own declaration.
689 2008-05-27 Gary Dismukes <dismukes@adacore.com>
691 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
692 to the known type entity E, rather than setting it to Any_Type. Fixes
693 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
694 for objects whose type had an illegal constraint.
696 2008-05-27 Vincent Celier <celier@adacore.com>
699 Add succinct documentation for attribute Excluded_Source_List_File
701 2008-05-27 Vincent Celier <celier@adacore.com>
703 * prj-attr.adb: Add new project level attribute Map_File_Option
705 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
707 * prj.ads: Minor reformatting and comment update
708 (Project_Configuration): New component Map_File_Option
710 * snames.adb: New standard name Map_File_Option
712 * snames.ads: New standard name Map_File_Option
714 2008-05-27 Vincent Celier <celier@adacore.com>
716 * xsnames.adb: Remove unused variable Oname
718 2008-05-27 Doug Rupp <rupp@adacore.com>
721 (Expand_N_Function_Call): Fix comments. Minor reformatting.
724 (Expand_Vax_Foreign_Return): Fix comments.
726 2008-05-27 Thomas Quinot <quinot@adacore.com>
728 * exp_dist.adb: Minor reformating
730 2008-05-26 Gary Dismukes <dismukes@adacore.com>
732 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
733 No_Default_Initialization, which is now delayed until the freeze point
734 of the object. Add a comment about deferral of the check.
736 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
737 on objects is moved here.
739 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
741 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
742 (Compare_Array_S16): Adjust for above change.
743 * s-casi32.adb (Uword): Likewise.
744 (Compare_Array_S32): Likewise.
745 * s-casi64.adb (Uword): Likewise.
746 (Compare_Array_S64): Likewise.
747 * s-caun16.adb (Uhalf): Likewise.
748 (Compare_Array_U16): Likewise.
749 * s-caun32.adb (Uword): Likewise.
750 (Compare_Array_U32): Likewise.
751 * s-caun64.adb (Uword): Likewise.
752 (Compare_Array_U64): Likewise.
754 2008-05-26 Robert Dewar <dewar@adacore.com>
756 * exp_ch6.adb: Add ??? comment for previous change
758 * exp_vfpt.adb: Minor reformatting
760 * exp_vfpt.ads: Add ??? comment for last change
762 * sem_attr.adb: Add some ??? comments for previous change
764 * s-vaflop.ads: Add comments for previous change
766 2008-05-26 Doug Rupp <rupp@adacore.com>
768 * s-vaflop-vms-alpha.adb:
769 Remove System.IO use clause, to prevent spurious ambiguities when
770 package is access through rtsfind.
772 2008-05-26 Sergey Rybin <rybin@adacore.com>
774 * tree_io.ads (ASIS_Version_Number): Update because of the changes
777 2008-05-26 Ed Schonberg <schonberg@adacore.com>
780 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
781 converted to S (A)'address only if A .. B is known to be a non-null
784 2008-05-26 Doug Rupp <rupp@adacore.com>
787 (Return_D, Return_F, Return_G): New functions.
790 (Return_D, Return_F, Return_G): New functions.
793 (Expand_Vax_Foreign_Return): New procedure
796 (Expand_Vax_Foreign_Return): New procedure
799 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
800 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
804 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
806 * s-vaflop-vms-alpha.adb:
807 (Return_D, Return_F, Return_G): New functions.
809 2008-05-26 Gary Dismukes <dismukes@adacore.com>
811 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
812 init proc entity when there is actual default initialization associated
813 with the component type, to avoid spurious errors on objects of scalar
814 array types that are marked Is_Public when No_Default_Initialization
817 2008-05-26 Thomas Quinot <quinot@adacore.com>
819 * rtsfind.ads, rtsfind.adb:
820 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
821 (Check_RPC): Support per-PCS-kind API versioning.
823 exp_dist.ads, exp_dist.adb:
824 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
825 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
826 library function Get_RACW.
827 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
828 library function Get_Reference.
829 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
830 through an intermediate Any.
831 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
832 going through an intermediate Any.
834 * sem_dist.adb: Minor reformatting.
836 2008-05-26 Javier Miranda <miranda@adacore.com>
838 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
839 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
840 (Is_Internal): Adding documentation on internal entities that have
841 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
843 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
844 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
845 Added assertion to force entities with this attribute to have
846 attribute Is_Internal set to True.
847 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
849 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
850 renamed as Derive_Progenitor_Subprograms. In addition, its code is
851 a new implementation.
852 (Add_Interface_Tag_Components): Remove special management of
853 synchronized interfaces.
854 (Analyze_Interface_Declaration): Minor reformating
855 (Build_Derived_Record_Type): Minor reformating
856 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
857 predefined primitive inherited from interface type because the body of
858 internally generated predefined primitives of tagged types are generated
860 (Derive_Subprogram): Avoid generating an internal name if the parent
861 subprogram overrides an interface primitive.
862 (Derive_Subprograms): New implementation that keeps separate the
863 management of tagged types not implementing interfaces, from tagged
864 types that implement interfaces.
865 (Is_Progenitor): New implementation.
866 (Process_Full_View): Add documentation
867 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
868 by call to Derive_Progenitor_Subprograms.
870 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
871 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
872 Skip_Controlling_Formals.
874 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
875 (Check_Conventions): New implementation. Remove local subprogram
876 Skip_Check. Remove formal Search_From of routine Check_Convention.
877 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
878 Skip_Controlling_Formals.
879 (New_Overloaded_Entity): Enable addition of predefined dispatching
883 (Find_Primitive_Covering_Interface): New subprogram.
885 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
886 the task body procedure as a primitive of the corresponding tagged
888 (Check_Operation_From_Private_Type): Avoid adding twice an entity
889 to the list of primitives.
890 (Find_Primitive_Covering_Interface): New subprogram.
891 (Override_Dispatching_Operation): Add documentation.
893 * sem_type.adb (Covers): Minor reformatings
895 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
898 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
899 (Implements_Interface): New subprogram.
900 (Is_Parent): Removed.
901 (Primitive_Names_Match): New subprogram.
902 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
903 (Ultimate_Alias): New subprogram.
905 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
907 Remove special management for synchronized types. Rename formal. Remove
908 internal subprograms Interface_Present_In_Parent and Add_Interface.
909 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
910 on non-record types by code to return false in such case.
911 (Implements_Interface): New subprogram.
912 (Is_Parent): Removed. No special management is now required for
913 synchronized types covering interfaces.
914 (Primitive_Names_Match): New subprogram.
915 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
916 (Ultimate_Alias): New subprogram.
918 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
919 Add internal entities associated with secondary dispatch tables to
920 the list of tagged type primitives that are not interfaces.
921 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
922 (Make_Predefined_Primitive_Specs): Code reorganization to improve
923 the management of predefined equality operator. In addition, if
924 the type has an equality function corresponding with a primitive
925 defined in an interface type, the inherited equality is abstract
926 as well, and no body can be created for it.
928 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
929 exp_util to exp_disp.
930 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
931 an entity corresponds with one of the predefined primitives required
932 to implement interfaces.
933 Update copyright notice.
935 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
936 final check on abstract subprograms all the primitives associated with
937 interface primitives because they must be visible in the public and
939 (Write_DT): Use Find_Dispatching_Type to locate the name of the
940 interface type. This allows the use of this routine, for debugging
941 purposes, when the tagged type is not fully decorated.
942 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
943 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
944 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
945 entity corresponds with one of the predefined primitives required to
946 implement interfaces.
948 * exp_util.adb (Find_Interface_ADT): New implementation
949 (Find_Interface): Removed.
951 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
952 list of interfaces associated with nodes
953 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
955 2008-05-26 Thomas Quinot <quinot@adacore.com>
957 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
958 condition for assignment to temporary.
960 2008-05-26 Ed Schonberg <schonberg@adacore.com>
962 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
963 checks on the upper bound if the index type is a modular type, to
964 prevent wrap-around computations when size is close to upper bound of
967 2008-05-26 Robert Dewar <dewar@adacore.com>
969 * sem_ch3.adb: Minor reformatting
971 2008-05-26 Ed Schonberg <schonberg@adacore.com>
973 * sem_ch12.adb (Remove_Parent): Use specification of instance
974 to retrieve generic parent,
975 to handle properly the case where the instance is a child unit.
976 Add guard to handle properly wrapper packages.
979 2008-05-26 Thomas Quinot <quinot@adacore.com>
981 * sinfo.ads: Minor reformatting
983 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
985 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
986 Generate a tag check when the result subtype of a function, defined by
987 an access definition, designates a specific tagged type.
988 (Make_Tag_Check): New routine.
990 2008-05-26 Arnaud Charlet <charlet@adacore.com>
992 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
994 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
996 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
997 (builtin_decl_for): Likewise.
998 * trans.c (gigi): Likewise.
999 * utils.c (def_builtin_1): Fix formatting.
1001 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
1003 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
1004 Create the statements which map a string name to protected or task
1007 * exp_ch9.adb: Add with and use clause for Stringt.
1008 Minor code reformatting.
1009 (Build_Entry_Names): New routine.
1010 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
1011 for flag Build_Entry_Names which controls the allocation of the data
1012 structure for the string names of entries.
1014 * exp_ch9.ads (Build_Entry_Names): New subprogram.
1016 * exp_util.adb (Entry_Names_OK): New function.
1018 * exp_util.ads (Entry_Names_OK): New function.
1020 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
1021 enumerations RE_Id and RE_Unit_Table.
1023 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
1024 (Free_Entry_Names_Array): New routine.
1026 * s-taskin.ads: Comment reformatting.
1027 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
1028 Add component Entry_Names to record Ada_Task_Control_Block.
1029 (Free_Entry_Names_Array): New routine.
1031 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
1032 dynamically allocate an array
1033 of string pointers. This structure holds string entry names.
1034 (Free_Entry_Names): New routine.
1035 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
1036 (Set_Entry_Names): New routine.
1039 (Create_Task): Add formal Build_Entry_Names. The flag is used to
1040 control the allocation of the data structure which stores entry names.
1041 (Set_Entry_Name): New routine.
1044 Add with and use clause for Ada.Unchecked_Conversion.
1045 (Finalize): Deallocate the entry names array.
1046 (Free_Entry_Names): New routine.
1047 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
1048 create an array of string pointers to hold the entry names.
1049 (Set_Entry_Name): New routine.
1052 Add field Entry_Names to record Protection_Entries.
1053 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
1054 (Set_Entry_Name): New routine.
1056 2008-05-26 Vincent Celier <celier@adacore.com>
1059 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
1062 (Project_Configuration): New component Shared_Lib_Driver
1064 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1067 (Cleanup_Scopes): For a protected operation, transfer finalization list
1068 to protected body subprogram, to force cleanup actions when needed.
1070 2008-05-26 Robert Dewar <dewar@adacore.com>
1072 * sem_cat.adb: Minor reformatting
1074 * gnatname.adb: Minor reformatting
1076 * osint.ads: Minor reformatting
1078 * s-carun8.ads: Minor reformatting
1080 * g-heasor.ads: Minor comment fix (unit is now pure)
1082 2008-05-26 Robert Dewar <dewar@adacore.com>
1085 (Expand_Current_Value): Properly type generated integer literal
1087 2008-05-26 Sergey Rybin <rybin@adacore.com>
1089 * gnat_ugn.texi: Add description for the new gnatcheck rule -
1090 Separate_Numeric_Error_Handlers.
1092 2008-05-26 Pascal Obry <obry@adacore.com>
1094 * sem_aggr.adb: Minor reformatting.
1096 2008-05-26 Jose Ruiz <ruiz@adacore.com>
1099 (To_Target_Priority): Setting the time slice value to 0 or greater sets
1100 the scheduling policy to FIFO within priorities or round-robin
1102 Hence, the priority must be set in this case to the one selected by the
1105 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1108 (Remove_Parent): If the enclosing scope is an instance whose generic
1109 parent is declared within some parent scope of the just completed
1110 instance, make full views of the entities in that parent visible, when
1113 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
1115 * mingw32.h (STD_MINGW): Set to true for target w64.
1117 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1119 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
1120 instead of TREE_STATIC on the ADDR_EXPR.
1122 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
1124 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
1125 (Sloc_to_locus): Do not overwrite known GCC locations when translating
1126 GNAT standard locations.
1128 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1130 * gigi.h (mark_visited): Declare.
1131 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
1132 only the topmost node of expressions.
1133 (elaborate_expression_1): Look deeper for read-only variables.
1134 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
1135 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
1136 (mark_visited_r): New function.
1138 2008-05-23 Vincent Celier <celier@adacore.com>
1140 * snames.adb: New standard name Excluded_Source_List_File.
1142 * snames.ads: New standard name Excluded_Source_List_File.
1144 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
1146 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
1147 Get excluded sources from
1148 file indicated by attribute Excluded_Source_List_File, when present and
1149 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
1151 2008-05-23 Robert Dewar <dewar@adacore.com>
1153 * exp_dist.adb: Minor reformatting
1155 2008-05-23 Ed Schonberg <schonberg@adacore.com>
1157 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
1158 slice, convert it to an indexed component, which is equivalent, more
1159 efficient, and usable even if the slice itself is not addressable.
1161 2008-05-23 Olivier Hainque <hainque@adacore.com>
1163 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
1164 convention also allows access to named compiler built-in subprograms
1165 such as the GCC __builtin family.
1167 2008-05-23 Vincent Celier <celier@adacore.com>
1169 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
1170 sep. If there are several possibilities, choose the one with the
1173 2008-05-23 Vincent Celier <celier@adacore.com>
1175 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
1176 back end switches when executable specified with --GCC= is same as
1177 default, even if there are additional options.
1180 Document when the back end switches from the ALI file are taken into
1181 account when gnatlink is invoked with --GCC=
1183 2008-05-23 Thomas Quinot <quinot@adacore.com>
1186 (copy_File): Do not open destination file if source file is unreadable.
1188 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1190 * utils.c (handle_type_generic_attribute): Adjust to accept
1191 fixed arguments before an elipsis.
1193 2008-05-21 Thomas Quinot <quinot@adacore.com>
1195 * g-sothco.ads, g-sothco.adb: New files.
1197 2008-05-20 Thomas Quinot <quinot@adacore.com>
1199 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
1201 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
1202 Add missing "with" of Ada.Unchecked_Conversion
1204 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
1205 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
1206 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
1207 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
1208 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
1209 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
1210 Move common code out of GNAT.Sockets.Thin implementations and into
1212 New constant SIZEOF_fd_set
1213 New flag Has_Sockaddr_Len
1214 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1216 * g-stsifd-sockets.adb
1217 (Create): Remove call to Set_Length; use Set_Family to set the family
1218 and (on appropriate platforms) length fields in struct sockaddr.
1220 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
1221 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
1222 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
1223 Move common code out of GNAT.Sockets.Thin implementations and into
1226 * g-socket.ads, g-socket.adb:
1227 Move common code out of GNAT.Sockets.Thin implementations and into
1229 (Connect_Socket, Accept_Socket): Provide new versions of these two
1230 routines that operate with a user specified timeout.
1231 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
1232 this is now handled automatically by Set_Family on platforms that
1236 Move common code out of GNAT.Sockets.Thin implementations and into
1238 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
1239 this constant to 0 (not -1) because we use it to initialize an
1240 unsigned_char value.
1241 Align values for numeric constants only.
1242 Handle the case of systems that do not support AF_INET6.
1243 New constant SIZEOF_fd_set
1244 New flag Has_Sockaddr_Len
1245 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1247 * gsocket.h: New flag Has_Sockaddr_Len
1248 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1250 2008-05-20 Santiago Uruena <uruena@adacore.com>
1252 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
1254 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1256 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
1257 the underlying issue with malloc/free has been fixed. Remove associated
1260 Related to PR ada/24533
1262 2008-05-20 Robert Dewar <dewar@adacore.com>
1264 * ali.adb: Correct casing of ASCII.NUL
1266 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
1269 2008-05-20 Robert Dewar <dewar@adacore.com>
1270 Gary Dismukes <dismukes@adacore.com>
1272 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
1273 overflow if result converted to wider integer type.
1274 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
1275 discriminated types when discriminant checks are suppressed.
1277 2008-05-20 Vincent Celier <celier@adacore.com>
1279 * cstand.adb (Print_Standard): Issue the correct Size clause for type
1280 Wide_Wide_Character.
1282 2008-05-20 Tristan Gingold <gingold@adacore.com>
1284 * decl.c: Do not emit a variable for a object that has an address
1285 representation clause whose value is known at compile time.
1286 When a variable has an address clause whose value is known at compile
1287 time, refer to this variable by using directly the address instead of
1288 dereferencing a pointer.
1290 2008-05-20 Robert Dewar <dewar@adacore.com>
1293 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
1294 subtypes, always False for non-modular types.
1295 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
1296 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
1297 for Shared_Storage package.
1298 (Is_RACW_Stub_Type): New entity flag.
1301 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
1302 case where we have a modular type with a non-binary modules.
1303 Comments reformattings.
1305 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
1308 2008-05-20 Javier Miranda <miranda@adacore.com>
1311 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
1312 tests did not covered the case in which the type of the aggregate has
1313 no progenitors but some its parents has progenitors.
1315 2008-05-20 Gary Dismukes <dismukes@adacore.com>
1316 Hristian Kirtchev <kirtchev@adacore.com>
1319 (Expand_N_Object_Declaration): Correct the condition which triggers the
1320 generation of a call to Displace when initializing a class-wide object.
1321 (Build_Dcheck_Functions): Build discriminant-checking for null variants
1322 when Frontend_Layout_On_Target is true to ensure that they're available
1323 for calling when a record variant size function is built in Layout.
1325 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1327 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1328 procedure for a derived type retrieve the discriminant values from the
1329 parent using the corresponding discriminant.
1330 (Expand_N_Assignment_Statement): Skip generation of implicit
1331 if-statement associated with controlled types if we are
1332 compiling with restriction No_Finalization.
1334 2008-05-20 Vincent Celier <celier@adacore.com>
1336 * prj.adb (Hash (Project_Id)): New function
1337 (Project_Empty): Add new component Interfaces_Defined
1339 * prj.ads (Source_Data): New component Object_Linked
1340 (Language_Config): New components Object_Generated and Objects_Linked
1341 (Hash (Project_Id)): New function
1342 (Source_Data): New Boolean components In_Interfaces and
1343 Declared_In_Interfaces.
1344 (Project_Data): New Boolean component Interfaces_Defined
1347 New project level attribute Object_Generated and Objects_Linked
1348 Add new project level attribute Interfaces
1350 * prj-dect.adb: Use functions Present and No throughout
1351 (Parse_Variable_Declaration): If a string type is specified as a simple
1352 name and is not found in the current project, look for it also in the
1353 ancestors of the project.
1356 Replace procedure Make with procedures Initialize, Process and Finalize
1357 to implement H414-023: process different directories with different
1359 Use functions Present and No throughout
1362 Replace procedure Make with procedures Initialize, Process and Finalize
1365 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
1366 the language configuration.
1367 (Process_Project_Level_Array_Attributes): Process new attributes
1368 Object_Generated and Object_Linked.
1369 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
1370 False, to indicate that the erreor/warning is a continuation.
1371 (Check): Call Report_No_Sources with Contnuation = True after the first
1373 (Error_Msg): Process successively contnuation character and warning
1375 (Find_Explicit_Sources): Check that all declared sources have been found
1376 (Check_File): Indicate in hash table Source_Names when a declared source
1378 (Check_File): Set Other_Part when found
1379 (Find_Explicit_Sources): In multi language mode, check if all exceptions
1380 to the naming scheme have been found. For Ada, report an error if an
1381 exception has not been found. Otherwise, disregard the exception.
1382 (Check_Interfaces): New procedure
1383 (Add_Source): When Other_Part is defined, set mutual pointers in spec
1385 (Check): In multi-language mode, call Check_Interfaces
1386 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
1387 for an excluded source.
1388 (Remove_Source): A source replacing a source in the interfaces is also
1391 * prj-pars.adb: Use function Present
1393 * prj-part.adb: Use functions Present and No throughout
1394 (Parse_Single_Project): Set the parent project for child projects
1395 (Create_Virtual_Extending_Project): Register project with no qualifier
1396 (Parse_Single_Project): Allow an abstract project to be extend several
1397 times. Do not allow an abstract project to extend a non abstract
1400 * prj-pp.adb: Use functions Present and No throughout
1401 (Print): Take into account the full associative array attribute
1404 * prj-proc.adb: Use functions Present and No throughout
1405 (Expression): Call itself with the same From_Project_Node for the
1406 default value of an external reference.
1408 * prj-strt.adb: Use functions Present and No throughout
1409 (Parse_Variable_Reference): If a variable is specified as a simple name
1410 and is not found in the current project, look for it also in the
1411 ancestors of the project.
1413 * prj-tree.ads, prj-tree.adb (Present): New function
1415 Use functions Present and No throughout
1416 (Parent_Project_Of): New function
1417 (Set_Parent_Project_Of): New procedure
1419 * snames.ads, snames.adb:
1420 Add new standard names Object_Generated and Objects_Linked
1422 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1424 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
1425 and the derived type are of the same kind.
1426 (Expand_Call): Generate type conversions for actuals of
1427 record or array types when the parent and the derived types differ in
1428 size and/or packed status.
1430 2008-05-20 Javier Miranda <miranda@adacore.com>
1431 Ed Schonberg <schonberg@adacore.com>
1433 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
1434 generating dispatch tables of locally defined tagged types statically.
1435 Remove implicit if-statement that is no longer required.
1436 (Expand_Dispatching_Call): If this is a call to an instance of the
1437 generic dispatching constructor, the type of the first argument may be
1438 a subtype of Tag, so always use the base type to recognize this case.
1440 2008-05-20 Thomas Quinot <quinot@adacore.com>
1443 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
1444 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
1445 assigning NULL into the result, to avoid a spurious warning.
1446 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
1448 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
1450 (Build_From_Any_Function, Build_To_Any_Function,
1451 Build_TypeCode_Function): For a type that has user-specified stream
1452 attributes, use an opaque sequence of octets as the representation.
1454 2008-05-20 Kevin Pouget <pouget@adacore.com>
1456 * exp_smem.ads, exp_smem.adb: Construction of access and assign
1457 routines has been replaced by an instantiation of
1458 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
1459 shared variable declaration.
1460 Calls to access and assign routines have been replaced by calls to
1461 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
1462 instantiated package.
1464 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
1465 It identifies the new generic package added in s-shasto.
1467 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
1468 is instantiated for each shared passive variable. It provides
1469 supporting procedures called upon each read or write access by the
1473 For this runtime unit (always compiled in GNAT mode), we allow
1474 stream attributes references for limited types for the case where
1475 shared passive objects are implemented using stream attributes,
1476 which is the default in GNAT's persistent storage implementation.
1478 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1481 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
1482 convention from its base type, do not set the type to that of integer,
1483 because it may inherit a size clause.
1484 Warn on a size clause with a size different
1485 from that of Integer, if the type has convention C.
1487 2008-05-20 Vincent Celier <celier@adacore.com>
1490 (Scan_Args): Rewrite to take into account new switch --and to separate
1491 arguments into sections.
1492 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
1493 section, then Finalize.
1495 2008-05-20 Tristan Gingold <gingold@adacore.com>
1497 * init.c: Enable stack probing on ppc-linux.
1499 * tracebak.c: Add symbolic traceback for ppc-linux.
1501 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
1503 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1506 (common-tools): New rule, to avoid parallel build failure on gnat tools.
1507 Reenable parallel builds on this Makefile.
1509 * Make-lang.in: Update dependencies.
1511 2008-05-20 Robert Dewar <dewar@adacore.com>
1513 * opt.ads (Treat_Restrictions_As_Warnings): New switch
1515 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
1516 Treat_Restrictions_As_Warnings.
1518 * switch-c.adb: Recognize new switch -gnatr
1520 * usage.adb: Add line for -gnatr
1522 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1525 (P_Access_Definition): Change the error message when parsing "access
1526 all" in Ada 95 mode. The message no longer forces the user to recompile
1527 in 05 mode only to discover that anonymous access types are not allowed
1530 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
1533 (P_Protected): Update the error message on missing "-gnat05" switch when
1534 using interfaces in conjunction with protected types. Remove the
1535 incorrect error message associated with the presence of "private" after
1538 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1540 * sem_aggr.adb: Update comments.
1541 Improve previous change for PR ada/17985
1543 2008-05-20 Thomas Quinot <quinot@adacore.com>
1546 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
1547 the visible part of the spec of a remote types unit.
1548 (Validate_Remote_Access_Object_Type_Declaration):
1549 New local subprogram Is_Valid_Remote_Object_Type, replaces
1550 Is_Recursively_Limited_Private.
1551 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
1552 non-controlling formals (and the return type, even though this is not
1553 explicit in the standard) must support external streaming.
1554 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
1555 as above for of RAS types and RCI subprograms. (The return type is not
1557 Update comments related to RACWs designating limited interfaces per
1558 ARG ruling on AI05-060.
1560 * sem_util.ads, sem_util.adb
1561 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
1562 Is_Remote_Call_Interface to identify RACW types in a stable and
1563 consistent way. We used to rely in this predicate on the privateness of
1564 the designated type and its ancestors, but depending on the currently
1565 visible private parts, this caused false negatives. We now uniformly
1566 rely on checks made at the point where the RACW type is declared.
1567 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
1569 2008-05-20 Javier Miranda <miranda@adacore.com>
1570 Ed Schonberg <schonberg@adacore.com>
1571 Hristian Kirtchev <kirtchev@adacore.com>
1574 (Analyze_Object_Declaration): Fix over-conservative condition
1575 restricting use of predefined assignment with tagged types that have
1577 (Analyze_Object_Declaration): Relax the check regarding deferred
1578 constants declared in scopes other than packages since they can be
1579 completed with pragma Import.
1580 Add missing escaping of all-caps word 'CPP' in error messages.
1581 (Build_Discriminated_Subtype): Do not inherit representation clauses
1582 from parent type if subtype already carries them, because they are
1583 inherited earlier during derivation and already include those that may
1584 come from a partial view.
1586 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
1587 Check the declarations of a subprogram body for proper deferred
1588 constant completion.
1590 * sem_ch7.ads, sem_ch7.adb
1591 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
1593 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1594 Thomas Quinot <quinot@adacore.com>
1597 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
1598 F is a parameterless function that returns an array, and S is a subtype
1600 (Analyze_Call): Insert dereference when the prefix is a parameterless
1601 function that returns an access to subprogram and the call has
1603 Reject a non-overloaded call whose name resolves to denote
1604 a primitive operation of the stub type generated to support a remote
1605 access-to-class-wide type.
1607 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1610 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
1611 when there is a use clause for the same entity in the context.
1612 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
1613 created for a stream attribute of an abstract type or interface type.
1615 2008-05-20 Thomas Quinot <quinot@adacore.com>
1617 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
1621 (Add_One_Interp): Ignore any interpretation that is a primitive
1622 operation of an RACW stub type (these primitives are only executed
1623 through dispatching, never through static calls).
1624 (Collect_Interps): When only one interpretation has been found, set N's
1625 Entity and Etype to that interpretation, otherwise Entity and Etype may
1626 still refer to an interpretation that was ignored by Add_One_Interp,
1627 in which case would end up with being marked as not overloaded but with
1628 an Entity attribute not pointing to its (unique) correct interpretation.
1630 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1633 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
1634 denotes the whole array of its prefix.
1636 2008-05-20 Robert Dewar <dewar@adacore.com>
1638 * sem_res.adb (Resolve_Op_Not): Warn on double negation
1640 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1643 (Print_Itype): Do not modify the sloc of the component type of a
1644 (packed) array itype, because it is an unrelated type whose source
1645 location is independent of the point of creation of the itype itself.
1647 2008-05-20 Thomas Quinot <quinot@adacore.com>
1649 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
1652 2008-05-20 Robert Dewar <dewar@adacore.com>
1653 Vincent Celier <celier@adacore.com>
1655 * vms_data.ads: Add entry for -gnatr
1656 Put GNAT SYNC section in proper alpha order
1657 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
1659 * gnat_ugn.texi: Add documentation for new gnatname switch --and
1660 Update the style checks section
1661 Add documentation of -gnatr
1662 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
1663 subsection the explanation how compiler checks should be disabled for
1665 Update the list of Ada 95 reserved words used by in the project language
1666 Add documentation for project qualifiers.
1667 Document that abstract projects may be extended by different projects in
1668 the same project tree.
1669 Add documentation for gnatmake switch -d
1671 * ug_words: Add -gnatyy VMS equivalence string.
1672 Add entry for -gnatr
1674 2008-05-20 Bob Duff <duff@adacore.com>
1677 (Set_Handler): Remove code from both of these that implements
1678 RM-D.15(15/2), because it causes a race condition and potential
1680 (Process_Queued_Events): Add comment explaining "exception when others
1681 => null". Add clarifying ".all", even though implicit .all is legal
1684 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1686 * s-winext.ads: Replace representation clause by pragma Pack. Gives
1687 equivalent representation, but has the advantage of allowing
1688 compilation of this file under 64 bits platforms.
1690 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
1692 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
1695 Don't define dummy implementation of convert_addresses on ppc-linux.
1697 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1700 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
1701 if expression is aggregate component.
1703 2008-05-20 Robert Dewar <dewar@adacore.com>
1705 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
1706 sem_ch12.adb: Update comments. Minor reformatting.
1710 * s-unstyp.ads: Fixed some typos in comments.
1712 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1714 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
1717 * g-socthi-vxworks.ads: Update to latest socket changes.
1719 * a-caldel-vms.adb: Resync with a-caldel spec.
1721 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
1724 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
1726 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
1727 for dummy types pointed to by the converted pointer types.
1729 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
1731 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
1732 of records and unions.
1733 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
1735 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
1736 Robert Dewar <dewar@adacore.com>
1738 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
1739 restrictions to the prefix of 'Old.
1740 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
1741 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
1744 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
1748 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
1749 expression to an integral type with lower precision, use NOP_EXPR
1750 directly in a couple of special cases.
1752 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
1753 Ed Schonberg <schonberg@adacore.com>
1755 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
1756 constraint expressions.
1758 2008-05-12 Tomas Bily <tbily@suse.cz>
1760 * utils2.c (known_alignment, contains_save_expr_p)
1761 (gnat_mark_addressable): Use CASE_CONVERT.
1762 * decl.c (annotate_value): Likewise.
1763 * trans.c (maybe_stabilize_reference): Likewise.
1764 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
1765 * utils.c (rest_of_record_type_compilation): Likewise.
1766 * trans.c (protect_multiple_eval, Attribute_to_gnu)
1767 (protect_multiple_eval): Likewise.
1769 2008-05-08 Andreas Schwab <schwab@suse.de>
1771 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
1772 DECL_IS_PURE to DECL_PURE_P.
1774 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
1776 * decl.c (maybe_pad_type): Add ??? comment.
1778 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
1780 * decl.c (components_to_record): Zero the alignment of the qualified
1781 union built for the variant part upon creating it.
1783 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
1785 * decl.c (maybe_pad_type): Try to get a form of the type with integral
1786 mode even if the alignment is not a factor of the original size. But
1787 make sure to create the inner field with the original size. Reorder.
1788 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
1789 record as always addressable.
1790 * utils.c (convert): Deal specially with conversions between original
1791 and packable versions of a record type.
1792 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
1793 recognizing an assignment between padded objects.
1795 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
1797 * decl.c (make_packable_type): Resize the last component to its RM size
1798 only if it is of an aggregate type.
1799 * trans.c (call_to_gnu): Fix nit in comment.
1800 (gnat_to_gnu): Likewise.
1802 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
1804 * Makefile.in: Adapt sh4-linux target.
1806 2008-04-29 Ed Schonberg <schonberg@adacore.com>
1809 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
1810 tagged type by an untagged protected or task type.
1812 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
1813 Tristan Gingold <gingold@adacore.com>
1816 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
1817 of aliased objects with an unconstrained nominal subtype.
1818 Cap the promotion to the effective alignment of the word mode.
1820 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1822 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
1823 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
1824 Use '&&' instead of ';'.
1826 2008-04-24 Olivier Hainque <hainque@adacore.com>
1828 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
1829 doesn't require signed arithmetic anymore.
1831 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
1833 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
1834 (call_to_gnu): Don't set TREE_INVARIANT.
1835 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
1837 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
1839 * s-osinte-rtems.adb: Add sigalstack function.
1840 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
1841 function. Add Alternate_Stack and Alternate_Stack_Size.
1842 Add missing process_shared field to pthread_condattr_t
1843 and change ss_low_priority to int from timespec.
1845 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
1847 * i-forbla.adb: Link against -llapack and -lblas by default
1848 instead of the private -lgnalasup.
1850 2008-04-21 Olivier Hainque <hainque@adacore.com>
1852 Access to most C builtins from Ada
1853 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
1854 (handle_pure_attribute, handle_novops_attribute,
1855 handle_nonnull_attribute, handle_sentinel_attribute,
1856 handle_noreturn_attribute, handle_malloc_attribute,
1857 handle_type_generic_attribute): New attribute handlers, from C fe.
1858 (gnat_internal_attribute_table): Map the new handlers.
1859 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
1860 (init_gigi_decls): ... here.
1861 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
1862 Move to a section dedicated to builtins processing.
1863 (build_void_list_node, builtin_type_for_size): New functions.
1864 (def_fn_type, get_nonnull_operand): Likewise.
1865 (install_builtin_elementary_type, install_builtin_function_types,
1866 install_builtin_attributes): Likewise.
1867 (fake_attribute_handler): Fake handler for attributes we don't
1869 (def_builtin_1): New function, worker for DEF_BUILTIN.
1870 (install_builtin_functions): New function.
1871 (gnat_install_builtins): Move to the builtins processing section.
1872 Now calling the newly introduced installers.
1874 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
1876 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
1877 constant objects, but not exceptions.
1878 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
1880 * utils.c (create_var_decl_1): Likewise.
1881 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
1882 the type when copying to padded object and the source is a constructor.
1884 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1886 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
1887 alignment, reset it to zero if it would end up not being greater
1888 than that of the type.
1890 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1892 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
1893 the padded type has a variable size.
1895 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1897 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
1898 target pointer mechanism as soon as the size is not constant.
1900 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
1902 * gigi.h (create_var_decl_1): Declare.
1903 (create_var_decl): Turn into a macro invoking create_var_decl_1.
1904 (create_true_var_decl): Likewise.
1905 * utils.c (create_var_decl_1): Make global and reorder parameters.
1906 (create_var_decl): Delete.
1907 (create_true_var_decl): Likewise.
1909 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
1911 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
1913 * fe.h (Debug_Flag_Dot_A): Delete.
1914 * debug.adb (-gnatd.a): Update documentation.
1916 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
1918 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
1919 "not null" parameter.
1921 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
1923 * g-socket.adb: Add a message "IPv6 not supported" to the
1924 Socket_Error exception.
1926 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
1929 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
1930 the type is known instead of the underlying type.
1932 2008-04-15 Ed Schonberg <schonberg@adacore.com>
1935 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1936 procedure for a derived type retrieve the discriminant values from
1937 the parent using the corresponding discriminant.
1939 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
1940 Gary Dismukes <dismukes@adacore.com>
1943 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
1944 which is not an entity (and hence not a package).
1945 (End_Use_Package): Ditto.
1947 2008-04-15 Ed Schonberg <schonberg@adacore.com>
1950 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
1951 protected operation that matches the signature, not only an entry, a
1952 regular subprogram or a literal.
1954 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
1956 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
1957 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
1958 if a size or alignment is specified. Do not take into account
1959 alignment promotions for the computation of the object's size.
1960 <type>: Call maybe_pad_type only if a size or alignment is specified.
1961 (maybe_pad_type): Really reuse the RM_Size of the original type if
1963 * trans.c (Attribute_to_gnu): Fix a couple of nits.
1964 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
1965 statements. Use the padded view of the type when copying between
1966 padded objects of the same underlying type.
1968 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1970 * vms_data.ads: Fix typo in constant.
1971 * gen-soccon.c: Fix typo in error string.
1972 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
1974 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
1975 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
1976 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
1977 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
1978 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
1979 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
1980 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
1981 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
1982 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
1983 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
1984 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
1985 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
1986 sinfo.ads: Fix typos in comments.
1988 2008-04-14 Robert Dewar <dewar@adacore.com>
1990 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
1991 to every non-object and change error message.
1993 2008-04-14 Robert Dewar <dewar@adacore.com>
1995 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
1996 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
1999 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2002 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
2003 apply pragma Linker_Section on type.
2005 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2008 * sem_prag.adb (Error_Pragma_Ref): New.
2009 (Process_Convention): Specialized message for non-local
2010 subprogram renaming. Detect the problem in homonyms as well.
2012 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2015 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
2016 * sem_ch12.adb (Instantiate_Object): Use it.
2017 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
2018 storage pool denotes a variable as per RM 13.11(15).
2020 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2022 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
2023 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
2025 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
2028 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
2029 line endings even on non-Unix platforms.
2031 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2034 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
2035 renaming information.
2037 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
2040 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
2043 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2045 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
2046 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
2047 snames.ads, sprint.adb, stand.ads, stringt.ads,
2048 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
2049 switch.ads, sysdep.c, table.adb, table.ads,
2050 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
2051 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
2052 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
2053 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
2054 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
2055 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
2058 * sem_ch10.adb, sem_ch10.ads,
2059 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
2060 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2061 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
2062 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
2063 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
2064 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
2065 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
2066 sem_warn.ads: Fix comment typos.
2068 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
2069 s-soflin.ads, s-stalib.ads, s-stausa.adb,
2070 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
2071 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
2072 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
2073 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
2074 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
2075 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
2076 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
2077 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
2078 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
2079 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
2080 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
2081 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
2082 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
2083 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
2084 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
2085 sem_cat.adb, sem_cat.ads: Fix comment typos.
2087 2008-04-12 Joel Sherrill <joel@oarcorp.com>
2090 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
2092 2008-04-12 Arnaud Charlet <charlet@adacore.com>
2094 * s-linux-hppa.ads: Fix syntax errors.
2096 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2098 * gnat_ugn.texi: Fix typos.
2099 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
2100 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
2101 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
2102 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
2103 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
2104 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
2105 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
2106 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
2107 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
2108 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
2109 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
2110 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
2111 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
2112 s-osinte-darwin.ads, s-osinte-freebsd.ads,
2113 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
2114 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
2115 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
2116 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
2117 s-parame-hpux.ads, s-parame-vms-alpha.ads,
2118 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
2119 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
2120 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
2121 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
2122 s-rident.ads: Fix comment typos.
2124 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
2127 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
2128 environment if generic instance is a top-level one.
2130 2008-04-09 Doug Rupp <rupp@adacore.com>
2132 * decl.c (validate_size): Set minimum size for fat pointers same as
2133 access types. Code clean ups.
2135 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
2136 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
2138 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
2140 * s-crtl.ads (malloc32) New function, alias for malloc
2141 (realloc32) New function, alias for realloc
2143 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
2145 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
2146 allocator size is 32 and default pointer size is 64.
2147 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
2148 lhs type if smaller, whatever the modes.
2150 * gigi.h (malloc32_decl): New macro definition
2152 * utils.c (init_gigi_decls): New malloc32_decl
2153 Various code clean ups.
2155 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2156 Task_Address vice System.Address.
2158 * s-taspri-vms.ads: Import System.Aux_DEC
2159 (Task_Address): New subtype of System.Aux_DEC.Short_Address
2160 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
2162 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2163 Task_Address vice System.Address.
2165 * s-inmaop-vms.adb: Import System.Task_Primitives
2166 (To_Address): Unchecked convert to Task_Address vice System.Address
2168 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
2170 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
2171 (To_Address) Unchecked convert to Task_Address vice System.Address
2173 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
2175 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
2177 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2179 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
2180 (fdesc_type_node): Define.
2181 (null_fdesc_node): Likewise.
2182 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
2183 uses descriptors for vtables and the type comes from a dispatch table,
2184 return the descriptor type.
2185 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
2186 uses descriptors for vtables and the type comes from a dispatch table,
2187 build a descriptor in the static case and copy the existing one in the
2189 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
2190 the type is a pointer-to-subprogram coming from a dispatch table,
2191 return the null descriptor.
2192 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
2193 vtables, the source type is the descriptor type and the target type
2194 is a pointer type, first build the pointer.
2195 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
2196 build the descriptor type and the null descriptor.
2198 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2200 * decl.c (prepend_attributes): Fix typo.
2201 * trans.c (Pragma_to_gnu): Likewise.
2202 * utils.c (gnat_genericize): Likewise.
2204 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2205 Richard Kenner <kenner@adacore.com>
2207 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
2208 * decl.c (gnat_to_gnu_entity): Adjust for above change.
2209 <E_Record_Type>: Try to get a better form of the component for
2210 packing, even if it has an integral mode.
2211 <E_Record_Subtype>: Likewise.
2212 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
2213 exception suppressing the final conversion between record types.
2215 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2217 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
2218 alignment for space, promote the alignment of non-scalar variables with
2219 no size and alignment.
2220 * gigi.h (gnat_types_compatible_p): Declare.
2221 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
2222 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
2223 * utils.c (gnat_types_compatible_p) : New predicate.
2224 (convert): Use it throughout to test for cases where a mere view
2225 conversion is sufficient.
2226 * utils2.c (build_binary_op): Minor tweaks.
2227 (build_unary_op): Likewise.
2229 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2231 * decl.c (adjust_packed): Expand comment.
2233 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2235 * s-tasuti.ads: Use Task_Address instead of System.Address.
2237 * makeutl.adb (Path_Or_File_Name): New function
2239 * nlists.ads, itypes.ads: Update comments.
2241 * s-crtl.ads (malloc32, realloc32): New functions.
2243 * s-auxdec.ads (Short_Address_Size): New constant.
2245 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
2247 * s-ststop.ads, s-ststop.adb: New file.
2249 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
2252 2008-04-08 Pascal Obry <obry@adacore.com>
2254 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
2255 (Stop_Bits_Number): New type.
2256 (Parity_Check): Likewise.
2257 (Set): Add parameter to set the number of stop bits and
2258 the parity. Parameter timeout is now a duration instead
2261 * g-sercom-linux.adb:
2262 Implement the stop bits and parity support for GNU/Linux.
2263 Fix handling of timeout, it must be given in tenth of seconds.
2265 * g-sercom-mingw.adb:
2266 Implement the stop bits and parity support for Windows.
2267 Use new s-win32.ads unit instead of declaring Win32 services
2268 directly into this body.
2269 Update handling of timeout as now a duration.
2271 * s-win32.ads, s-winext.ads: New files.
2273 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2274 Arnaud Charlet <charlet@adacore.com>
2276 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
2278 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
2279 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
2281 * s-osinte-lynxos-3.ads,
2282 (Alternate_Stack): Remove when not needed. Simplify declaration
2284 (Alternate_Stack_Size): New constant.
2286 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
2287 'Unrestricted_Access.
2289 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
2290 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
2291 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
2292 s-osinte-solaris.ads, s-osinte-vms.ads
2293 (SA_ONSTACK): New constant.
2294 (stack_t): New record type.
2295 (sigaltstack): New imported function.
2296 (Alternate_Stack): New imported variable.
2297 (Alternate_Stack_Size): New constant.
2299 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
2301 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
2302 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
2303 s-taspri-vms.ads (Task_Address): New subtype of System.Address
2304 (Task_Address_Size): New constant size of System.Address
2305 (Alternate_Stack_Size): New constant.
2307 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
2308 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
2309 Establish the alternate stack if the platform makes use of n alternate
2310 signal stack for stack overflows.
2311 (Create_Task): Take into account the alternate stack in the stack size.
2312 (Initialize): Save the address of the alternate stack into the ATCB for
2313 the environment task.
2314 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
2316 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
2318 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
2320 * s-intman-posix.adb:
2321 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
2322 alternate signal stack for stack overflows.
2324 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
2325 x86-64, adjust the saved value of the stack pointer if the signal was
2326 raised by a stack checking probe.
2327 (HP-UX section): Use global __gnat_alternate_stack as signal handler
2328 stack and only for SIGSEGV.
2329 (Linux section): Likewise on x86 and x86-64.
2331 (__gnat_map_signal): Now static.
2332 (__gnat_error_handler): Not static any more.
2333 (__gnat_adjust_context_for_raise): New function. Signal context
2334 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
2335 propagation circuitry.
2336 (__gnat_error_handler): Second argument of a sigaction handler is a
2337 pointer, not an int, and is unused.
2338 Adjust signal context before mapping to exception.
2339 Install signal handlers for LynxOS case.
2341 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
2342 (Task_Id): Set size to Task_Address_Size
2343 (To_Task_id): Unchecked convert from Task_Address vice System.Address
2344 (To_Address): Unchecked convert to Task_Address vice System.Address
2346 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
2347 address into the ATCB if the platform makes use of an alternate signal
2348 stack for stack overflows.
2349 (Free_Task): Add call to Finalize_Attributes_Link.
2350 Add argument Relative_Deadline to pass the value specified for
2351 the task. This is not yet used for any target.
2353 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
2354 the value specified for the task.
2356 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2358 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
2359 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
2360 s-vxwext-rtp.adb): New files.
2362 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
2363 Minor updates to accomodate changes above.
2365 2008-04-08 Pascal Obry <obry@adacore.com>
2367 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
2368 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
2369 Use new s-win32.ads unit instead of declaration
2370 from s-osinte-mingw.ads.
2372 * s-osinte-mingw.ads:
2373 Move all non tasking based interface to s-win32.ads.
2375 * s-osprim-mingw.adb:
2376 Remove duplicated declarations and use s-win32.ads
2379 2008-04-08 Vincent Celier <celier@adacore.com>
2380 Arnaud Charlet <charlet@adacore.com>
2382 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
2383 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
2384 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
2385 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2386 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
2388 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
2389 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
2390 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
2391 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
2392 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
2393 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
2394 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
2395 mlib-tgt-specific-mingw.adb: New names.
2398 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
2400 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
2401 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
2402 Minor updates for VMS
2404 * gnatbl.c: Removed.
2406 2008-04-08 Thomas Quinot <quinot@adacore.com>
2408 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
2409 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
2410 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
2411 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
2412 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
2413 ASCII.NUL throughout.
2415 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2416 Matthew Heaney <heaney@adacore.com>
2418 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
2421 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
2422 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
2423 to convention for non-RM specs.
2424 Add descriptive header, and documented each operation
2425 document each operation
2427 2008-04-08 Robert Dewar <dewar@adacore.com>
2428 Bob Duff <duff@adacore.com>
2429 Gary Dismukes <dismukes@adacore.com>
2430 Ed Schonberg <schonberg@adacore.com>
2432 * alloc.ads: Add entries for Obsolescent_Warnings table
2434 * einfo.ads, einfo.adb: Minor reformatting.
2435 (Is_Discriminal): New subprogram.
2436 (Is_Prival): New subprogram.
2437 (Is_Protected_Component): New subprogram.
2438 (Is_Protected_Private): Removed.
2439 (Object_Ref, Set_Object_Ref): Removed.
2440 (Prival, Set_Prival): Change assertion.
2441 (Privals_Chain, Set_Privals_Chain): Removed.
2442 (Prival_Link, Set_Prival_Link): New subprogram.
2443 (Protected_Operation, Set_Protected_Operation): Removed.
2444 (Protection_Object, Set_Protection_Object): New subprogram.
2445 (Write_Field17_Name): Remove case for Object_Ref.
2446 (Write_Field20_Name): Add case for Prival_Link.
2447 (Write_Field22_Name): Remove case for Protected_Operation,
2449 Add case for Protection_Object.
2450 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
2452 (Overlays_Constant): New flag
2453 (Is_Constant_Object): New predicate
2454 (Is_Standard_Character_Type): New predicate
2455 (Optimize_Alignment_Space): New flag
2456 (Optimize_Alignment_Time): New flag
2457 (Has_Postconditions): New flag
2458 (Obsolescent_Warrning): Field removed
2459 (Spec_PPC_List): New field
2460 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
2461 subprograms to get and set the relative deadline associated to a task.
2463 * exp_attr.adb (May_Be_External_Call): Account for the case where the
2464 Access attribute is part of a named parameter association.
2465 (Expand_Access_To_Protected_Op): Test for the attribute occurring
2466 within an init proc and use that directly as the scope rather than
2467 traversing up to the protected operation's enclosing scope. Only apply
2468 assertion on Is_Open_Scopes in the case the scope traversal is done.
2469 For the init proc case use the address of the first formal (_init) as
2470 the protected object reference.
2471 Implement Invalid_Value attribute
2472 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
2473 contents of the dispatch table there is no need to duplicate the
2474 itypes associated with record types (i.e. the implicit full view
2476 Implement Enum_Val attribute
2477 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
2478 within _Postconditions procedure
2479 (Expand_N_Attribute_Reference, case Result): Implement new attribute
2481 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
2482 a return statement calls a function that is not available in
2483 configurable runtime.
2484 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
2485 (Expand_Non_Function_Return): Generate call to _Postconditions proc
2486 (Expand_Simple_Function_Return): Ditto
2488 * frontend.adb: Add call to Sem_Aux.Initialize
2490 * sem_aux.ads, sem_aux.adb: New file.
2492 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
2493 Add new Pragma_Relative_Deadline.
2494 Add support for pragmas Check and Check_Policy
2496 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
2497 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
2498 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
2499 missing check because they are not allowed in CPP tagged types.
2500 Add Sure parameter to Note_Possible_Modification calls
2501 Add implementation of Invalid_Value attribute
2502 Implement new attribute Has_Tagged_Values
2503 Implement Enum_Val attribute
2504 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
2505 generated attributes.
2506 (Analyze_Attribute, case Result): If prefix of the attribute is
2507 overloaded, it always resolves to the enclosing function.
2508 (Analyze_Attribute, case Result): Properly deal with analysis when
2509 Postconditions are not active.
2510 (Resolve_Attribute, case Result): Properly deal with appearence during
2511 preanalysis in spec.
2512 Add processing for attribute Result
2514 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
2516 (Analyze_Subprogram_Body): Install private_with_clauses when the body
2518 (Check_Inline_Pragma): recognize an inline pragma that appears within
2519 the subprogram body to which it applies.
2520 (Analyze_Function_Return): Check that type of the expression of a return
2521 statement in a function with a class-wide result is not declared at a
2522 deeper level than the function.
2523 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
2524 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
2525 user- defined operators.
2526 (Install_Formals): Moved to spec to allow use from Sem_Prag for
2527 analysis of precondition/postcondition pragmas.
2528 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
2529 Last_Formal, along with lots of comments on what this is about
2530 (Analyze_Subprogram_Body): Fix case where we move entities from the
2531 spec to the body when there are no body entities (now possible with
2532 precondition and postcondition pragmas).
2533 (Process_PPCs): New procedure
2534 (Analyze_Subprogram_Body): Add call to Process_PPCs
2536 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
2538 (Pop_Scope): Restore Check_Policy_List on scope exit
2539 (Push_Scope): Save Check_Policy_List on scope entry
2540 Change name In_Default_Expression => In_Spec_Expression
2541 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2542 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2543 (Analyze_Object_Renaming): Allow 'Reference as object
2544 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
2545 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
2546 of restriction identifier.
2547 Add Sure parameter to Note_Possible_Modication calls
2549 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
2550 Don't check for primitive operations when calling Rep_Item_Too_Late.
2551 (Process_Import_Or_Interface): Do not place flag on formal
2553 (Analyze_Pragma, case Export): If the entity is a deferred constant,
2554 propagate information to full view, which is the one elaborated by the
2556 (Make_Inline): the pragma is effective if it applies to an internally
2557 generated subprogram declaration for a body that carries the pragma.
2558 (Analyze_Pragma, case Optimize_Alignment): Set new flag
2559 Optimize_Alignment_Local.
2560 (Analyze_PPC_In_Decl_Part): New procedure
2561 (Get_Pragma_Arg): Moved to outer level
2562 (Check_Precondition_Postcondition): Change to allow new visibility
2563 rules for package spec
2564 (Analyze_Pragma, case Check_Policy): Change placement rules to be
2565 same as pragma Suppress/Unsuppress.
2566 Change name In_Default_Expression => In_Spec_Expression
2567 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2568 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2569 (Check_Precondition_Postcondition): Do proper visibility preanalysis
2570 for the case of these pragmas appearing in the spec.
2571 (Check_Enabled): New function
2572 (Initialize): New procedure
2573 (Tree_Read): New procedure
2574 (Tree_Write): New procedure
2575 (Check_Precondition_Postcondition): New procedure
2576 Implement pragmas Check and Check_Policy
2577 Merge Assert processing with Check
2579 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
2580 New warning flag -gnatw.e
2582 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
2583 returning whether a task (or main procedure) has a pragma
2585 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
2586 (or main procedure) has a pragma Relative_Deadline.
2587 Add Next_Pragma field to N_Pragma node
2588 (PPC_Enabled): New flag
2589 (Next_Pragma): Now used for Pre/Postcondition processing
2591 * snames.h, snames.ads, snames.adb: New standard name
2593 Add entry for 'Invalid_Value attribute
2594 Add entry for new attribute Has_Tagged_Values
2595 Add entry for Enum_Val attribute
2596 Add new standard names Aggregate, Configuration and Library.
2599 Add Pragma_Precondition
2600 Add Pragma_Postcondition
2601 Add Attribute_Result
2602 New standard name Archive_Builder_Append_Option
2603 (Preset_Names): Add _relative_deadline and relative_deadline definitions
2604 There was also a missing non_preemptive_within_priorities.
2605 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
2607 Add support for pragmas Check and Check_Policy
2609 * tree_gen.adb: Call Sem_Aux.Tree_Write
2611 * tree_in.adb: Call Sem_Aux.Tree_Read
2613 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
2616 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
2619 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
2620 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
2622 (Expand_Pragma_Check): New procedure
2624 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
2627 * sinfo.adb (PPC_Enabled): New flag
2629 2008-04-08 Robert Dewar <dewar@adacore.com>
2630 Gary Dismukes <dismukes@adacore.com>
2631 Javier Miranda <miranda@adacore.com>
2632 Ed Schonberg <schonberg@adacore.com>
2634 * fe.h: Remove global Optimize_Alignment flag, no longer used
2636 * layout.adb: Test Optimize_Alignment flags rather than global switch
2638 * lib.ads, lib.adb: New OA_Setting field in library record
2640 * lib-load.adb: New OA_Setting field in library record
2642 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
2643 units mentioned in limited_with_ clauses in the ali file, with an
2645 New Ox fields in U line
2647 * opt.adb: New flag Optimize_Alignment_Local
2648 (Check_Policy_List[_Config]): New flags
2650 * opt.ads (Invalid_Value_Used): New flag
2651 New switch Optimize_Alignment_Local
2652 (Warn_On_Parameter_Order): New flag
2653 (Check_Policy_List[_Config]): New flags
2655 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
2656 limited_with clauses.
2657 New data structures for Optimize_Alignment
2659 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
2661 (Check_Consistent_Optimize_Alignment): Rework for new structure
2662 (Check_Consistent_Restrictions): Fix incorrect error message
2664 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
2665 created class-wide type (to the Parent field of the specific type).
2666 (Install_Siblings): Handle properly private_with_clauses on subprogram
2667 bodies and on generic units.
2668 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
2669 illegal limited_with_clause that names a non-existent package.
2670 (Check_Body_Required): Determine whether a unit named a limited_with
2671 clause needs a body.
2672 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
2673 Capture Optimize_Alignment settings to set new OA_Setting field in
2675 (Build_Limited_Views): Include task and protected type declarations.
2677 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
2678 case of a possible constant redeclaration where the current object is
2679 an entry index constant.
2680 (Analyze_Object_Declaration): Generate an error in case of CPP
2681 class-wide object initialization.
2682 (Analyze_Object_Declaration): Add extra information on warnings for
2683 declaration of unconstrained objects.
2684 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
2685 conflicts with the setting of Stored_Constraint in the case where the
2686 access type entity has already been created as an E_Incomplete_Type due
2687 to a limited with clause.
2688 Use new Is_Standard_Character_Type predicate
2689 (Analyze_Object_Declaration): Apply access_constant check only after
2690 expression has been resolved, given that it may be overloaded with
2691 several access types.
2692 (Constant_Redeclaration): Additional legality checks for deferred
2693 constant declarations tha involve anonymous access types and/or null
2694 exclusion indicators.
2695 (Analyze_Type_Declaration): Set Optimize_Alignment flags
2696 (Analyze_Subtype_Declaration): Ditto
2697 (Analyze_Object_Declaration): Ditto
2698 (Analyze_Object_Declaration): Don't count tasks in generics
2699 Change name In_Default_Expression => In_Spec_Expression
2700 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2701 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2702 (Process_Discriminants): Additional check for illegal use of default
2703 expressions in access discriminant specifications in a type that is not
2705 (Check_Abstract_Overriding): If an inherited function dispaches on an
2706 access result, it must be overridden, even if the type is a null
2708 (Derive_Subprogram): The formals of the derived subprogram have the
2709 names and defaults of the parent subprogram, even if the type is
2710 obtained from the actual subprogram.
2711 (Derive_Subprogram): In the presence of interfaces, a formal of an
2712 inherited operation has the derived type not only if it descends from
2713 the type of the formal of the parent operation, but also if it
2714 implements it. This is relevant for the renamings created for the
2715 primitive operations of the actual for a formal derived type.
2716 (Is_Progenitor): New predicate, to determine whether the type of a
2717 formal in the parent operation must be replaced by the derived type.
2719 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
2720 predicate recursive to handle components that have a user-defined
2721 Initialize procedure. Handle controlled derived types whose ancestor
2722 has a user-defined Initialize procedured.
2723 (Note_Possible_Modification): Add Sure parameter, generate warning if
2724 sure modification of constant
2725 Use new Is_Standard_Character_Type predicate
2726 (Find_Parameter_Type): when determining whether a protected operation
2727 implements an interface operation, retrieve the type of the formal from
2728 the entity when the formal is an access parameter or an
2729 anonymous-access-to-subprogram.
2730 Move Copy_Parameter_List to sem_util, for use when building stubbed
2732 (Has_Access_Values): Tagged types now return False
2733 (Within_HSS_Or_If): New procedure
2734 (Set_Optimize_Alignment_Flags): New procedure
2735 Change name In_Default_Expression => In_Spec_Expression
2736 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
2737 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
2739 2008-04-08 Tristan Gingold <gingold@adacore.com>
2741 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
2743 2008-04-08 Tristan Gingold <gingold@adacore.com>
2747 * cuintp.c: Fix 16 bits issue for AVR.
2748 On AVR, integer is 16 bits, so it can't be used to do math with
2750 So use long_integer instead.
2752 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2754 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
2755 System.OS_Primitives.
2756 Change type of various constants, parameters and local variables from
2757 Time to representation type OS_Time.
2758 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
2759 Remove the declaration of constant Mili_F from several routines. New
2760 body for internal package Conversions_Operations.
2761 (Time_Of): Add default parameters for several formals.
2763 * a-caldel.adb: Minor reformatting
2765 * a-calend.ads, a-calend.adb: New body for internal package
2766 Conversions_Operations.
2767 (Time_Of): Add default parameters for several formals.
2769 * Makefile.rtl: Add a-ststop
2770 Add Ada.Calendar.Conversions to the list of runtime files.
2773 * a-calcon.adb, a-calcon.ads: New files.
2775 2008-04-08 Jose Ruiz <ruiz@adacore.com>
2776 Tristan Gingold <gingold@adacore.com>
2778 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
2779 (Install_Restricted_Handlers): New procedure
2780 which is a simplified version of Install_Handlers that does not store
2781 previously installed.
2783 * s-interr-vxworks.adb: Fix ACATS cxc3001
2784 On VxWorks interrupts can't be detached.
2785 (Install_Restricted_Handlers): New procedure.
2787 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
2790 2008-04-08 Olivier Hainque <hainque@adacore.com>
2792 * s-intman-vxworks.ads, s-intman-vxworks.adb
2793 (Map_And_Raise_Exception): Remove. Was an import of only part of the
2794 required services already implemented elsewhere.
2795 (Notify_Exception): Delete body, import __gnat_error_handler instead.
2796 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
2797 argument passed to the handler, which we need for ZCX propagation
2800 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
2802 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
2804 * g-timsta.adb, g-timsta.ads: New files.
2806 2008-04-08 Robert Dewar <dewar@adacore.com>
2808 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
2809 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
2810 (Raise_Exception_Always): Fix documentation accordingly
2812 2008-04-08 Robert Dewar <dewar@adacore.com>
2814 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
2817 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
2820 2008-04-08 Javier Miranda <miranda@adacore.com>
2821 Robert Dewar <dewar@adacore.com>
2822 Ed Schonberg <schonberg@adacore.com>
2824 * a-tags.adb (Register_Interface_Offset): New subprogram.
2825 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
2826 (To_Predef_Prims_Table_Ptr): Removed.
2827 (Acc_Size): Removed.
2828 (To_Acc_Size): Removed.
2829 (Parent_Size): Modified to the call the subprogram returning the size of
2830 the parent by means of the new TSD component Size_Func.
2832 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
2833 (DT_Offset_To_Top_Offset): New constant value that is used to generate
2834 code referencing the Offset_To_Top component of the dispatch table's
2836 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
2837 use of 'address to initialize dispatch table slots.
2838 (Size_Func): New component of the TSD. Used by the run-time to call the
2839 size primitive of the tagged type.
2841 * checks.adb (Apply_Access_Check): Avoid check when accessing the
2842 Offset_To_Top component of a dispatch table.
2843 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
2844 deferred constant declaration. do not add a null expression, to prevent
2845 spurious errors when full declaration is analyzed.
2846 (Apply_Discriminant_Check): If both discriminant constraints share a
2847 node which is not static but has no side effects, do not generate a
2848 check for that discriminant.
2849 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
2850 subexpr, since the prefix of an attribute is a name.
2852 * checks.ads: Fix nit in comment.
2854 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
2855 and body of predefined primitives in case of CPP tagged type
2857 (Freeze_Type): Deal properly with no storage pool case
2858 (Make_Predefined_Primitive_Specs): Generate specification of abstract
2859 primitive Deep_Adjust if a nonlimited interface is derived from a
2861 (Build_Dcheck_Functions): Create discriminant-checking functions only
2862 for variants that have some component(s).
2863 (Build_Slice_Assignment): In expanded code for slice assignment, handle
2864 properly the case where the slice bounds extend to the last value of the
2865 underlying representation.
2866 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
2867 (Is_Variable_Size_Record): An array component has a static size if
2868 index bounds are enumeration literals.
2870 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
2871 an external tag has been specified for the type.
2872 (Building_Static_DT): Add missing support for private types.
2873 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
2874 to the entity associated with the parent of Typ. This is done to
2875 avoid wrong access when the parent is a private type.
2876 (Expand_Interface_Conversion): Improve error message when the
2877 configurable runtime has no support for dynamic interface conversion.
2878 (Expand_Interface_Thunk): Add missing support to interface types in
2879 configurable runtime.
2880 (Expand_Dispatching_Call): remove obsolete code.
2881 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
2882 ensure that all subtypes and aggregates associated with dispatch
2883 tables have the attribute Is_Dispatch_Table_Entity set to true.
2884 (Register_Primitive): Rename one variable to improve code reading.
2885 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
2886 of the pointer to the 'size primitive in the TSD.
2888 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
2889 (RE_Offset_To_Top_Ptr): New entity.
2890 (RE_Register_Interface_Offset): New entity.
2891 (RE_Set_Dynamic_Offset_To_Top): New entity.
2892 (RE_Set_Offset_To_Top): Removed entity.
2893 (RE_Prim_Ptr): New entity
2894 (RE_Size_Func): New entity
2895 (RE_Size_Ptr): New entity
2896 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
2897 (Ada_Dispatching_Child): Define this new subrange.
2898 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
2899 RE_Time_Span, and RE_Time_Span_Zero).
2900 (RE_Unit_Table): Add new required run-time calls
2902 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
2905 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
2906 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
2907 initializes the Offset_To_Top component of a dispatch table.
2908 (Build_Predef_Prims): Removed.
2909 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
2911 (Build_Set_Size_Function): New subprogram.
2913 * exp_ch13.adb: Do not generate storage variable for storage_size zero
2914 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
2916 2008-04-08 Robert Dewar <dewar@adacore.com>
2918 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
2919 computing Fore when Exp > 0
2921 2008-04-08 Robert Dewar <dewar@adacore.com>
2923 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
2925 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
2926 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
2928 * fmap.adb: Remove Big_String declarations (now in Types)
2929 (No_Mapping_File): New Boolean global variable
2930 (Initialize): When mapping file cannot be read, set No_Mapping_File to
2932 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
2933 tables were empty before adding entries, open the mapping file
2934 with Truncate = True, instead of delete/re-create.
2936 * fname-sf.adb: Remove Big_String declarations (now in Types)
2938 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
2939 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
2942 * table.ads: Add for Table_Ptr'Storage_Size use 0
2944 * types.ads: Add Big_String declarations
2945 Add Size_Clause of zero for big pointer types
2947 2008-04-08 Vincent Celier <celier@adacore.com>
2949 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
2950 (Usage): Add line for switch --subdirs=
2951 Add new switch -eL, to follow symbolic links when processing project
2954 * gnatcmd.adb: Process switches -eL and --subdirs=
2955 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
2956 Program_Name to get proper tool names when AAMP_On_Target is set.
2957 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
2958 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
2959 Osint.Program_Name).
2961 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
2962 (Usage): Add lines for switches -eL and --subdirs=
2964 * makeusg.adb: Add line for switch --subdirs=
2967 (Source_Data): New Boolean component Compiled, defaulted to True
2968 (Empty_File_Name: New global variable in private part, initialized in
2969 procedure Initialize.
2970 (Subdirs_Option): New constant string
2971 (Subdirs): New String_Ptr global variable
2972 (Language_Config): New component Include_Compatible_Languages
2973 (Project_Qualifier): New type for project qualifiers
2974 (Project_Data): New component Qualifier
2975 (Project_Configuration): New component Archive_Builder_Append_Option
2977 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
2978 another imported project indicate the name of this imported project.
2979 (Check_File): When a unit is in two project files, indicate the project
2980 names and the paths of the source files for each project.
2981 (Add_Source): Set Compiled to False if compiler driver is empty. Only
2982 set object, dependency and switches file names if Compiled is True.
2983 (Process_Compiler): Allow the empty string for value of attribute Driver
2984 (Get_Directories): When Subdirs is not null and Object_Dir is not
2985 specified, locate and create if necessary the actual object dir.
2986 (Locate_Directory): When Subdirs is not empty and Create is not the
2987 empty string, locate and create if necessary the actual directory
2988 as a subdirectory of directory Name.
2989 (Check_Library_Attributes.Check_Library): Allow a project where the only
2990 "sources" are header files of file based languages to be imported by
2991 library projects, in multi-language mode (gprbuild).
2992 (Check_Library_Attributes.Check_Library): In multi-language mode
2993 (gprbuild), allow a library project to import a project with no
2994 sources, even when this is not declared explicitly.
2995 (Check_If_Externally_Built): A virtual project extending an externally
2996 built project is also externally built.
2997 (Check_Library_Attributes): For a virtual project extending a library
2998 project, inherit the library directory.
2999 (Process_Project_Level_Array_Attributes): Process new attribute
3000 Inherit_Source_Path.
3001 For projects with specified qualifiers "standard", "library" or
3002 "abstract", check that the project conforms to the qualifier.
3003 (Process_Project_Level_Simple_Attributes): Process new attribute
3004 Archive_Builder_Append_Option.
3006 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
3007 (Normalize_Compiler_Switches): Only keep compiler switches that are
3008 passed to gnat1 by the gcc driver and that are stored in the ALI file
3010 Do not take into account switc -save-temps
3012 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
3013 gprmake is called with -eL.
3014 (Scan_Arg): Recognize switch -eL
3015 (Usage): Add line for switch -eL
3017 * prj.adb (Initialize): Initialize Empty_File_Name
3018 (Project_Empty): New component Qualifier
3020 * prj-attr.ads, prj-attr.adb: New project level attribute
3021 Inherit_Source_Path.
3022 New project level attribute Archive_Builder_Append_Option
3024 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
3026 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
3027 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
3028 upward compatibility.
3030 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
3031 each Trying ..." on different lines.
3032 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
3033 is "configuration" when not in configuration. Fail when in configuration
3034 when a specified qualifier is other than "configuration".
3036 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
3037 full associative array together.
3038 (Recursive_Process): Put the project qualifier in the project data
3040 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
3041 (Set_Project_Qualifier_Of): New procedure
3043 2008-04-08 Robert Dewar <dewar@adacore.com>
3045 * errout.ads: Update comments for new handling of info: messages
3047 * erroutc.adb (Matches): New procedure
3048 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
3049 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
3050 info messages as well as style messages.
3052 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
3054 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
3056 (Check_A_Call): Special "info: " warnings now have ? in the text
3057 (Elab_Warning): Use info message in static case
3059 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3061 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
3062 whether an array aggregate with static bounds and scalar components
3063 should be expanded into a static constant.
3065 2008-04-08 Gary Dismukes <dismukes@adacore.com>
3066 Ed Schonberg <schonberg@adacore.com>
3067 Robert Dewar <dewar@adacore.com>
3069 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
3070 Has_Stream_Attribute_ Definition when checking for available stream
3071 attributes on parameters of a limited type in Ada 2005. Necessary for
3072 proper recognition of visible stream attribute clauses.
3073 (Has_Stream_Attribute_Definition): If the type is derived from a
3074 private type, then use the derived type's underlying type for checking
3075 whether it has stream attributes.
3076 (Validate_Object_Declaration): The check for a user-defined Initialize
3077 procedure applies also to types with controlled components or a
3078 controlled ancestor.
3079 Reject an object declaration in a preelaborated unit if the type is a
3080 controlled type with an overriding Initialize procedure.
3081 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
3082 checking when the parent of a dereference is a selected component and
3083 the name has not been analyzed.
3085 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
3086 prefixes that are invalid explicit dereferences of remote
3087 access-to-class-wide values, first checking whether the selected
3088 component is a prefixed form of call to a tagged operation.
3089 (Analyze_Call): Remove code that issues an error for limited function
3090 calls in illegal contexts, as we now support all of the contexts that
3091 were forbidden here.
3092 Allow a function call that returns a task.and appears as the
3093 prefix of a selected component.
3094 (Analyze_Reference): Give error message if we try to make a 'Reference
3095 for an object that is atomic/aliased without its type having the
3096 corresponding attribute.
3097 (Analyze_Call): Remove condition checking for attributes to allow
3098 calls to functions with inherently limited results as prefixes of
3099 attributes. Remove related comment about Class attributes.
3100 (Analyze_Selected_Component): If the prefix is a remote type, check
3101 whether this is a prefixed call before reporting an error.
3102 (Complete_Object_Operation): If the controlling formal is an access to
3103 variable reject an actual that is a constant or an access to one.
3104 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3105 primitive operations from base type.
3107 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
3109 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3110 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
3111 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3112 (Expand_N_Slice): Test for prefix that is a build-in-place function call
3113 and call Make_Build_In_Place_Call_In_Anonymous_Context.
3114 (Analyze_Call): Remove code that issues an error for limited function
3115 calls in illegal contexts, as we now support all of the contexts that
3116 were forbidden here.
3117 New calling sequence for Get_Simple_Init_Val
3118 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
3119 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
3121 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3122 Ed Schonberg <schonberg@adacore.com>
3123 Robert Dewar <dewar@adacore.com>
3125 * exp_ch2.adb: Minor reformatting.
3126 (Expand_Entry_Index_Parameter): Set the type of the identifier.
3127 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
3128 (Expand_Protected_Component): New routine.
3129 (Expand_Protected_Private): Removed.
3130 Add Sure parameter to Note_Possible_Modification calls
3132 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
3133 generated subprogram declaration must inherit the overriding indicator
3134 from the instantiation node.
3135 (Validate_Access_Type_Instance): If the designated type of the actual is
3136 a limited view, use the available view in all cases, not only if the
3137 type is an incomplete type.
3138 (Instantiate_Object): Actual is illegal if the formal is null-excluding
3139 and the actual subtype does not exclude null.
3140 (Process_Default): Handle properly abstract formal subprograms.
3141 (Check_Formal_Package_Instance): Handle properly defaulted formal
3142 subprograms in a partially parameterized formal package.
3143 Add Sure parameter to Note_Possible_Modification calls
3144 (Validate_Derived_Type_Instance): if the formal is non-limited, the
3145 actual cannot be limited.
3146 (Collect_Previous_Instances): Generate instance bodies for subprograms
3149 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
3151 Add Sure parameter to Note_Possible_Modification calls
3152 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
3153 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
3154 constant overlaid by variable and issue warning.
3155 Use new Is_Standard_Character_Type predicate
3156 (Analyze_Record_Representation_Clause): Check that the specified
3157 Last_Bit is not less than First_Bit - 1.
3158 (Analyze_Attribute_Definition_Clause, case Address): Check for
3159 self-referential address clause
3161 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
3162 detection mechanism when the lhs is a prival.
3163 (Analyze_Assignment): Call Check_Unprotected_Access to detect
3164 assignment of a pointer to protected data, to an object declared
3165 outside of the protected object.
3166 (Analyze_Loop_Statement): Check for unreachable code after loop
3167 Add Sure parameter to Note_Possible_Modication calls
3168 Protect analysis from previous syntax error such as a scope mismatch
3170 (Analyze_Assignment_Statement): The assignment is illegal if the
3171 left-hand is an interface.
3173 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
3174 violation of restriction No_Implicit_Conditionals
3175 Add Sure parameter to Note_Possible_Modication calls
3176 Use new Is_Standard_Character_Type predicate
3177 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
3178 call as operator. Fixes problems (e.g. validity checking) which
3179 come from the result looking as though it does not come from source).
3180 (Resolve_Call): Check case of name in named parameter if style checks
3182 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
3183 from the checking that such calls should not occur from an entry body.
3184 (Resolve_Call): If the return type of an Inline_Always function
3185 requires the secondary stack, create a transient scope for the call
3186 if the body of the function is not available for inlining.
3187 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
3188 that are actuals for in-out formals.
3189 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3190 primitive operations from base type.
3191 (Analyze_Selected_Component): If the context is a call to a protected
3192 operation the parent may be an indexed component prior to expansion.
3193 (Resolve_Actuals): If an actual is of a protected subtype, use its
3194 base type to determine whether a conversion to the corresponding record
3196 (Resolve_Short_Circuit): Handle pragma Check
3198 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
3199 Use new Is_Standard_Character_Type predicate
3200 (Eval_Relational_Op): Catch more cases of string comparison
3202 2008-04-08 Robert Dewar <dewar@adacore.com>
3203 Gary Dismukes <dismukes@adacore.com>
3205 * s-rident.ads: Add No_Default_Initialization restriction
3208 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
3209 (Set_TSS): Handle No_Default_Initialization case
3211 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
3212 No_Default_Initialization
3213 (Expand_N_Subprogram_Body): Remove redundant initialization of out
3214 parameters when Normalize_Scalars is active.
3215 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
3216 Fix casing error in formal parameter name in call
3217 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
3218 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3219 dispatching call on VM targets.
3221 2008-04-08 Gary Dismukes <dismukes@adacore.com>
3222 Thomas Quinot <quinot@adacore.com>
3224 * exp_ch7.adb (Find_Final_List): Change the test for generating a
3225 selected component from an access type's Associated_Final_Chain to
3226 check for the presence of that field, rather than assuming it exists
3227 for all named access types.
3228 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
3229 procedure to call at the end of the generated cleanup procedure.
3230 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
3231 and an At_End_Proc already exists in the handled sequence of statements
3232 for which cleanup actions are being expanded, the original cleanup
3233 action must be preserved.
3235 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3236 Ed Schonberg <schonberg@adacore.com>
3237 Robert Dewar <dewar@adacore.com>
3238 Gary Dismukes <dismukes@adacore.com>
3240 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
3241 Build_Unprotected_Subprogram_Body): Generate debug info for
3242 declarations related to the handling of private data in task and
3244 (Debug_Private_Data_Declarations): New subprogram.
3245 (Install_Private_Data_Declarations): Remove all debug info flagging.
3246 This is now done by Debug_Private_Data_Declarations at the correct
3248 (Build_Simple_Entry_Call): If the task name is a function call, expand
3249 the prefix into an object declaration, and make the surrounding block a
3251 (Build_Master_Entity): An internal block is a master if it wraps a call.
3252 Code reformatting, update comments. Code clean up.
3253 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
3254 (Replicate_Entry_Formals): If the formal is an access parameter or
3255 anonymous access to subprogram, copy the original tree to create new
3256 entities for the formals of the subprogram.
3257 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
3258 for tasks to store the value passed using pragma Relative_Deadline.
3259 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
3260 run-time call to create a task.
3261 (Build_Wrapper_Spec): If the controlling argument of the interface
3262 operation is an access parameter with a non-null indicator, use the
3263 non-null indicator on the wrapper.
3265 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
3266 present, which it may not be in the case where the type entity is an
3267 incomplete view brought in by a limited with.
3268 (Analyze_Task_Type): Only retrieve the full view when present, which it
3269 may not be in the case where the type entity is an incomplete view brought
3270 in by a limited with.
3271 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
3272 private components of a protected type, to prevent the generation of freeze
3273 nodes for which there is no proper scope of elaboration.
3275 * exp_util.ads, exp_util.adb
3276 (Remove_Side_Effects): If the expression is a function call that returns a
3277 task, expand into a declaration to invoke the build_in_place machinery.
3278 (Find_Protection_Object): New routine.
3279 (Remove_Side_Effects): Also make a copy of the value
3280 for attributes whose result is of an elementary type.
3281 (Silly_Boolean_Array_Not_Test): New procedure
3282 (Silly_Boolean_Array_Xor_Test): New procedure
3283 (Is_Volatile_Reference): New function
3284 (Remove_Side_Effects): Use Is_Volatile_Reference
3285 (Possible_Bit_Aligned_Component): Handle slice case properly
3287 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
3288 case test to Exp_Util
3289 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
3291 2008-04-08 Thomas Quinot <quinot@adacore.com>
3293 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
3295 (Add_RACW_Features): When processing an RACW in another unit than the
3296 main unit, set Body_Decls to No_List to indicate that the bodies of
3297 the type's TSS must not be generated.
3298 (GARLIC_Support.Add_RACW_Read_Attribute,
3299 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
3300 Body_Decls is No_List.
3301 (PolyORB_Support.Add_RACW_Read_Attribute,
3302 PolyORB_Support.Add_RACW_Write_Attribute,
3303 PolyORB_Support.Add_RACW_From_Any,
3304 PolyORB_Support.Add_RACW_To_Any,
3305 PolyORB_Support.Add_RACW_TypeCode): Same.
3306 (Transmit_As_Unconstrained): New function.
3307 (Build_Ordered_Parameters_List): Use the above to order parameters.
3308 (GARLIC_Support.Build_General_Calling_Stubs):
3309 Use the above to determine which parameters to unmarshall using 'Input
3310 at the point where their temporary is declared (as opposed to later on
3312 (PolyORB_Support.Build_General_Calling_Stubs):
3313 Use the above to determine which parameters to unmarshall using From_Any
3314 at the point where their temporary is declared (as opposed to later on
3315 with an assignment).
3317 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3319 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
3320 an Input function for an access type, do not perform default
3321 initialization on the local variable that receives the value, to
3322 prevent spurious warnings when the type is null-excluding.
3324 2008-04-08 Robert Dewar <dewar@adacore.com>
3325 Ed Schonberg <schonberg@adacore.com>
3327 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
3329 (Size_Known): Generic formal scalar types have known at compile
3330 time size, so remove check.
3331 Fix casing error in formal parameter name in call
3332 (Freeze_Subprogram): If the subprogram is a user-defined operator,
3333 recheck its overriding indication.
3335 2008-04-08 Vincent Celier <celier@adacore.com>
3337 * gnat1drv.adb: Send all messages indicating an error to standard error
3339 2008-04-08 Robert Dewar <dewar@adacore.com>
3341 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
3342 (List_Applicable_Restrictions): Do not list existing restrictions
3344 2008-04-08 Thomas Quinot <quinot@adacore.com>
3346 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
3347 add a pointer to generic sockets literature
3348 do not mention that the given example is "typical" usage.
3349 Remove obsolete comment about multicast not being supported on Windows.
3350 (Connect_Socket): Make Server mode IN rather than IN OUT
3351 since this formal is never modified.
3353 2008-04-08 Robert Dewar <dewar@adacore.com>
3355 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
3356 the declaration for some different entity.
3357 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
3358 list is precent (following the parent subtype indication), display
3359 appropriate "and" keyword.
3361 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
3362 Remove unnecessary calls to Init_Size_Align and Init_Esize.
3363 Add notes on use of Parent field of an Itype
3365 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3366 Robert Dewar <dewar@adacore.com>
3367 Gary Dismukes <dismukes@adacore.com>
3369 * lib-xref.adb (Is_On_LHS): Remove dead code
3370 (Output_Overriden_Op): If the overridden operation is itself inherited,
3371 list the ancestor operation, which is the one whose body or absstract
3372 specification is actually being overridden. For source navigation
3375 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
3376 operation is primitive for the type.
3377 (Declare_Inherited_Private_Subprograms): If the new operation overrides
3378 an inherited private subprogram, set properly the Overridden_Operation
3379 attribute, for better cross-reference information.
3380 (Analyze_Package_Specification): Do late analysis of spec PPCs
3381 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
3382 properly the full view and underlying full views of a private type in a
3383 child unit, whose full view is derived from a private type in a parent
3384 unit, and whose own full view becomes visible in the child body.
3386 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
3387 primitive operation after the type has been frozen, add an explicit
3388 reference to the type and the operation, because other primitive
3389 references have been emitted already.
3390 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3391 dispatching call on VM targets.
3393 2008-04-08 Vincent Celier <celier@adacore.com>
3394 Thomas Quinot <quinot@adacore.com>
3396 * make.adb: (Gnatmake_Called): Remove, no longer necessary
3397 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
3398 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
3399 (Insert_Project_Sources): Take into account index in multi-unit source
3401 After building a library project, delete all temporary files.
3402 (Initialize): Reset current output after parsing project file.
3403 (Collect_Arguments_And_Compile): Never insert in the queue the sources
3404 of library projects that are externally built.
3405 Put file name in error and inform messages if -df is used
3406 (Display): If invoked with -d7, do not display path names, but only
3409 * makeutl.ads (Path_Or_File_Name): New function
3410 (Path_Or_File_Name): New function
3412 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3414 * Make-lang.in: Disable warnings during first stage of bootstrap
3416 Update dependencies.
3418 2008-04-08 Vincent Celier <celier@adacore.com>
3420 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
3421 case to decide if ALI object file is included in library.
3422 (Build_Library): Never attempt to build a library if the project is
3425 2008-04-08 Thomas Quinot <quinot@adacore.com>
3427 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
3428 (No_List) is defined to return Empty.
3430 2008-04-08 Jose Ruiz <ruiz@adacore.com>
3432 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
3435 (Read_Default_Search_Dirs): Do not consider spaces as path separators
3436 because spaces may be part of legal paths.
3438 2008-04-08 Robert Dewar <dewar@adacore.com>
3440 * par-ch11.adb (P_Exception_Handler): Check indentation level for
3443 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3445 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
3446 in a type declaration, if this is not an interface declaration or
3447 private type extension.
3449 2008-04-08 Vincent Celier <celier@adacore.com>
3451 * prj-util.adb (Executable_Of): New String parameter Language. When
3452 Ada_Main is False and Language is not empty, attempt to remove the body
3453 suffix or the spec suffix of the language to get the base of the
3454 executable file name.
3455 (Put): New Boolean parameter Lower_Case, defauilted to False. When
3456 Lower_Case is True, put the value in lower case in the name list.
3457 (Executable_Of): If there is no executable suffix in the configuration,
3458 then do not modify Executable_Extension_On_Target.
3460 * prj-util.ads (Executable_Of): New String parameter Language,
3461 defaulted to the empty string.
3462 (Put): New Boolean parameter Lower_Case, defauilted to False
3464 2008-04-08 Robert Dewar <dewar@adacore.com>
3466 * scng.adb (Scan_Identifier): Handle case of identifier starting with
3467 wide character using UTF-8 encoding.
3469 2008-04-08 Javier Miranda <miranda@adacore.com>
3471 * sem.adb (Analyze): Consider case in which we analyze an empty node
3472 that was generated by a call to a runtime function that is not
3473 available under the configurable runtime.
3475 * sem.ads (Inside_Freezing_Actions): New flag.
3476 (Save_Check_Policy_List): New field in scope stack entry
3478 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3479 Robert Dewar <dewar@adacore.com>
3481 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
3482 the ancestor part of an extension aggregate for a limited type.
3483 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
3484 enumeration index bounds.
3485 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
3486 when array is too short.
3487 (Check_Expr_OK_In_Limited_Aggregate): Move function
3488 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
3490 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
3491 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
3492 component associations.
3493 (Check_Non_Limited_Type): Moved to outer level and renamed.
3494 (Resolve_Record_Aggregate): In an extension aggregate, an association
3495 with a box initialization can only designate a component of the
3496 extension, not a component inherited from the given ancestor
3498 * sem_case.adb: Use new Is_Standard_Character_Type predicate
3500 2008-04-08 Robert Dewar <dewar@adacore.com>
3502 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
3504 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
3505 Properly handle case where Aft > Scale and input number is less than
3508 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3510 * s-stoele.ads, s-soflin.ads: Move the location of
3511 Dummy_Communication_Block from System.Storage_Elements to
3514 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
3515 emulate Communication_Block in certain scenarios.
3517 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3519 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
3521 Add new subtype S_WWC, unchecked conversion routines From_WWC and
3523 (I_WWC, O_WWC): New routines for input and output of
3524 Wide_Wide_Character.
3526 2008-04-08 Robert Dewar <dewar@adacore.com>
3528 * stringt.adb (Write_String_Table_Entry): Handle wide characters
3531 2008-04-08 Robert Dewar <dewar@adacore.com>
3533 * styleg.adb (Check_Comment): Allow special char after -- in
3534 non-end-of-line case
3536 2008-04-08 Robert Dewar <dewar@adacore.com>
3538 * stylesw.adb: Implement -gnaty + - y options
3539 (Set_GNAT_Style_Check_Options): Includ I in style check string
3541 * stylesw.ads: Add comments for new style switch options
3543 2008-04-08 Sergey Rybin <rybin@adacore.com>
3545 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
3546 to the set of the GNAT components needed by ASIS.
3548 2008-04-08 Bob Duff <duff@adacore.com>
3550 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
3552 2008-04-08 Tristan Gingold <gingold@adacore.com>
3554 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
3555 Improve error message generation.
3557 2008-04-08 Vincent Celier <celier@adacore.com>
3559 * a-direct.adb (Start_Search): Check for Name_Error before checking for
3560 Use_Error, as specified in the RM. Check if directory is open and raise
3561 Use_Error if it is not.
3563 2008-04-08 Vincent Celier <celier@adacore.com>
3564 Robert Dewar <dewar@adacore.com>
3566 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
3567 AAMP_On_Target is set.
3569 * vms_data.ads: Add NOxxx to style check switch list
3570 Add entry COMPONENTS for -gnatVe
3571 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
3573 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
3574 Add qualifiers for gnatmetric coupling options
3575 Add note that -gnata enables all checks
3576 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
3577 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
3578 New warning flag -gnatw.e
3580 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
3581 Add entry for -gnatyN (forgotten before)
3582 Line for new warning switch -gnatw.p
3583 New warning flag -gnatw.e
3585 * gnat_ugn.texi: Add documentation fpr project file switch -aP
3586 Document -gnaty - + y
3587 Replace occurences of "package specification" with "package spec"
3588 Define preprocessing symbols in documentation of gnatprep
3589 Clarify reason for distinguishing overflow checking
3590 Add documentation for project-aware tool switches -eL and --subdirs=
3591 Complete list of configuration pragmas
3592 Specify that, even when gnatmake switch -x is used, mains on the command
3593 line need to be sources of project files.
3594 Editing of gnatcheck/gnatmetric doc.
3595 Add documentation for -gnatw.p/-gnatw.P
3596 Add missing documentation for -fno-inline-functions.
3597 Add documentation for -gnatw.e
3599 * gnat_rm.texi: Add documentation for No_Default_Initialization
3600 Replace occurences of "package specification" with "package spec"
3601 Document use of * in Warnings Off string
3602 Update documentation of alignment/component clauses.
3603 Add documentation for Invalid_Value
3604 Document new consistency rule for Optimize_Alignment
3605 Add documentation for Precondition and Postcondition pragmas
3606 Add documentation for Check and Check_Policy pragmas
3607 Document new Enum_Val attribute
3608 Remove requirement for static string in pragma Assert
3609 Add documentation on GNAT.Time_Stamp
3611 * ug_words: add entry for -gnatVe
3612 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
3613 Add entry for -gnatw.e
3615 * debug.adb: Add missing documentation for d.a flag
3616 Document new -gnatd.a switch.
3617 Add documentation for new gnatmake debug switch -df
3619 2008-04-08 Thomas Quinot <quinot@adacore.com>
3621 * gen-soccon.c: Bump year in copyright notices.
3623 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
3625 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3627 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
3630 2008-04-08 Robert Dewar <dewar@adacore.com>
3631 Bob Duff <duff@adacore.com>
3633 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
3634 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
3636 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
3638 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
3640 * g-trasym.ads: Minor comment improvements
3642 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
3644 * a-sequio.ads, a-direio.ads: improve message for tagged type
3646 * a-strunb.ads: Minor reformatting
3648 * a-tifiio.adb: Minor reformatting
3650 * atree.adb (Fix_Parents): Use clearer names for formals
3651 Cleanup and simplify code
3652 Use named notation in calls
3654 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
3657 * uintp.adb: Used named notation for some confusing calls
3659 * bindusg.adb: Minor change in one line of output
3661 * cstand.adb: Minor reformatting of src representation of Standard
3663 * a-assert.ads: Add comment.
3665 * g-decstr.adb: Fix bad indentation
3667 * expander.ads, expander.adb: Code clean up.
3669 * sem_dist.ads: Minor comment improvement
3671 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
3672 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
3674 * i-cstrin.adb: Fix casing error in formal parameter name in call
3676 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3678 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
3679 mentioned in limited_with_clauses to do create semantic dependencies
3680 even though they appear in the ali file.
3682 2008-04-08 Emmanuel Briot <briot@adacore.com>
3684 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
3686 (Get_Configuration): New subprogram.
3688 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
3689 These optional parameters help preserve the casing of the project's name
3690 when pretty-printing.
3692 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
3693 Arnaud Charlet <charlet@adacore.com>
3695 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
3696 then use __gnat_set_exit_status to report the returned status code.
3698 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
3699 messages on .NET, since some constructs of the language are not
3702 * gnatlink.adb (Gnatlink): In case the command line is too long for the
3703 .NET linker, gnatlink now concatenate all .il files and pass this to
3706 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3707 Xavier Grave <grave@ipno.in2p3.fr>
3709 * Makefile.in: Add make ifeq define for mips/mipsel support.
3710 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
3711 system-linux-mips.ads: New files.
3713 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3715 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
3716 detect systems using GNU libc.
3722 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
3724 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
3725 constant constant for sysconf call.
3726 (bit_field): New packed boolean type used by cpu_set_t.
3727 (cpu_set_t): New type corresponding to the C type with
3728 the same name. Note that on the Ada side we use a bit
3729 field array for the affinity mask. There is not need
3730 for the C macro for setting individual bit.
3731 (pthread_setaffinity_np): New imported routine.
3732 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
3735 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3737 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
3739 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
3741 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
3742 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
3743 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
3744 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
3745 Return by Depressed Stack Pointer.
3747 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
3749 * decl.c (is_variable_size): Do not unconditionally return false
3750 on non-strict alignment platforms.
3752 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
3754 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
3755 used to process all the variants of the specified type.
3756 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
3757 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
3758 (rest_of_type_decl_compilation): Likewise.
3759 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
3761 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
3763 * gigi.h (insert_block): Kill.
3764 * utils.c (insert_block): Kill.
3766 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
3768 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
3769 type has self-referential size, get the size from the initializing
3770 expression directly if it is also a constant whose nominal type
3771 has self-referential size.
3773 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3776 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
3779 * env.c: Always include crt_externs.h if __APPLE__ is defined.
3780 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
3782 2008-04-01 Andreas Jaeger <aj@suse.de>
3784 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
3787 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3789 * g-table.adb, g-tasloc.adb, g-traceb.ads,
3790 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
3791 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
3792 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
3793 gnatlink.adb, gnatmem.adb, gprep.adb,
3794 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
3795 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
3796 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
3797 lib-xref.ads, lib.adb, link.c, live.ads,
3798 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
3799 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
3800 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
3801 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
3802 namet.adb, namet.h, nlists.adb, nlists.ads,
3803 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
3804 osint-c.ads, osint.adb, osint.ads, output.ads,
3805 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
3806 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
3807 par-endh.adb, par-labl.adb, par-prag.adb,
3808 par-sync.adb, par-tchk.adb, par-util.adb,
3809 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
3810 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
3811 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
3812 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
3814 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
3816 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
3817 size if it has overflowed.
3819 2008-03-31 Olivier Hainque <hainque@adacore.com>
3820 Eric Botcazou <ebotcazou@adacore.com>
3822 * utils2.c (find_common_type): Document assumption on t1/t2 vs
3823 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
3825 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3827 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
3828 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
3829 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
3830 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
3831 exp_tss.ads, exp_util.adb, exp_util.ads,
3832 exp_vfpt.adb, freeze.adb, freeze.ads,
3833 frontend.adb, g-alleve.adb, g-altcon.adb,
3834 g-altive.ads, g-alveop.ads, g-alvevi.ads,
3835 g-arrspl.adb, g-busorg.ads, g-calend.adb,
3836 g-calend.ads, g-casuti.ads, g-cgideb.adb,
3837 g-comlin.adb, g-comlin.ads, g-curexc.ads,
3838 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
3839 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
3840 g-dyntab.adb, g-encstr.ads, g-excact.ads,
3841 g-except.ads, g-expect.ads, g-heasor.adb,
3842 g-hesora.adb, g-hesorg.adb, g-htable.ads,
3843 g-locfil.ads, g-md5.adb, g-md5.ads,
3844 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
3845 g-pehage.adb, g-pehage.ads, g-regexp.adb,
3846 g-regexp.ads, g-regpat.adb, g-regpat.ads,
3847 g-soccon-aix.ads, g-soccon-darwin.ads,
3848 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
3849 g-soccon-hpux.ads, g-soccon-irix.ads,
3850 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
3851 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
3852 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
3853 g-soccon-solaris.ads, g-soccon-tru64.ads,
3854 g-soccon-vms.ads, g-soccon-vxworks.ads,
3855 g-soccon.ads, g-socket.adb, g-socket.ads,
3856 g-socthi-mingw.adb, g-socthi-vms.adb,
3857 g-socthi-vxworks.adb, g-soliop-mingw.ads,
3858 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
3859 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
3862 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
3864 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
3865 if the procedure is imported.
3867 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3869 * adaint.c: Fix warnings.
3871 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3873 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
3875 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3877 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
3878 Fix problem of status check for null file
3880 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3882 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
3883 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
3884 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
3885 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
3886 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
3889 2008-03-26 Thomas Quinot <quinot@adacore.com>
3892 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
3893 Get_Socket_Option): Add support for Receive_Packet_Info.
3895 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3896 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3897 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
3898 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
3899 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
3900 new constants SO_REUSEPORT and IP_PKTINFO
3902 2008-03-26 Robert Dewar <dewar@adacore.com>
3904 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
3905 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
3906 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
3907 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
3908 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
3909 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
3910 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
3911 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3912 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
3913 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
3914 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
3915 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
3916 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
3917 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
3918 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
3919 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
3920 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
3921 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
3922 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
3923 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
3924 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
3925 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
3926 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
3927 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
3928 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
3929 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
3930 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
3931 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
3932 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
3933 s-tasloc.adb: Minor reformatting.
3935 Remove "used for" sections from comments.
3937 2008-03-26 Robert Dewar <dewar@adacore.com>
3939 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
3940 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
3941 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
3942 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
3943 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
3944 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
3945 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
3946 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
3947 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
3948 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
3949 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
3950 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
3951 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
3952 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
3953 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
3954 double spaced if it fits on one line and otherwise single spaced.
3956 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3958 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
3959 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
3960 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
3961 or task info if the thread could not be created.
3963 2008-03-26 Arnaud Charlet <charlet@adacore.com>
3965 * gnatvsn.ads (Library_Version): Bump to 4.4.
3966 (Current_Year): Bump to 2008.
3968 2008-03-26 Robert Dewar <dewar@adacore.com>
3970 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
3972 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
3974 * debug.adb: Add debug flags d.r and d.v
3975 Add debug flag .T (Optimize_Alignment (Time))
3976 Add debug flag .S (Optimize_Alignment (Space))
3978 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
3979 depending on setting of relevant debug flags.
3980 Replace use of Warnings_Off by Has_Warnings_Off
3981 (Freeze_Entity): In circuit for warning on suspicious convention
3982 actuals, do not give warning if subprogram has same entity as formal
3983 type, or if subprogram does not come from source.
3984 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
3985 if Optimize_Alignment set to Space.
3987 * frontend.adb: Add call to Sem_Warn.Initialize
3988 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
3989 Reset Optimize_Alignment mode from debug switches .S and .T
3991 * layout.adb (Layout_Composite_Object): Rewritten for
3992 Optimize_Aligment pragma.
3994 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
3997 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
3999 * par-prag.adb (N_Pragma): Chars field removed, use Chars
4000 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
4001 this change. Add entry for pragma Optimize_Alignment
4003 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
4004 (Pragma_Identifier (..
4005 instead, adjustments throughout to accomodate this change.
4006 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
4007 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
4008 Add implementation of pragma Optimize_Alignment
4010 2008-03-26 Vincent Celier <celier@adacore.com>
4012 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
4013 Improve memory usage to avoid use of stack.
4015 2008-03-26 Robert Dewar <dewar@adacore.com>
4017 * a-teioed.ads: Correct value of Default_Fill
4019 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
4021 2008-03-26 Robert Dewar <dewar@adacore.com>
4023 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
4024 with Current_Output (introduce Self).
4026 2008-03-26 Robert Dewar <dewar@adacore.com>
4028 * checks.adb (Ensure_Valid): Capture valid status if possible
4031 2008-03-26 Robert Dewar <dewar@adacore.com>
4033 * stand.ads: Deal with reordering of package standard declarations
4035 * cstand.adb: Put package Standard declarations in proper order
4037 2008-03-26 Robert Dewar <dewar@adacore.com>
4039 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
4040 (Pragma_Identifier (.. instead.
4041 (OK_To_Reorder_Components): New flag
4042 (Has_Entries): Code cleanup.
4043 (Warnings_Off_Used): New flag
4044 (Warnings_Off_Used_Unmodified): New flag
4045 (Warnings_Off_Used_Unreferenced): New flag
4046 (Has_Warnings_Off): New function
4047 (Has_Unmodified): New function
4048 (Has_Unreferenced): New function
4049 (Is_Trivial_Subprogram): New flag
4050 (Is_Static_Dispatch_Table_Entity): New attribute.
4051 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
4052 (more consistent with other similar names)
4053 (Access_Subprogram_Type): New classification function
4055 2008-03-26 Robert Dewar <dewar@adacore.com>
4057 * errout.ads: Document new !! insertion sequence
4059 * errout.adb (N_Pragma): Chars field removed, use Chars
4060 (Pragma_Identifier (.. instead.
4061 Replace use of Warnings_Off by Has_Warnings_Off
4062 (Error_Msg_Internal): Don't delete warning ending in !!
4064 2008-03-26 Robert Dewar <dewar@adacore.com>
4066 * par.adb (Check_No_Right_Paren): Removed no longer used
4068 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
4069 (Pragma_Identifier (.. instead.
4071 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
4073 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
4074 par-ch4.adb: Minor improvements in error recovery and messages.
4076 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
4079 * par-ch9.adb: Minor improvements in error recovery and messages
4080 (P_Protected): Better error recovery for "protected type x;"
4082 * par-util.adb: Minor improvements in error recovery and messages
4083 (Check_No_Right_Paren): Removed no longer used
4085 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4087 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
4088 that the prefix of an attribute is the type of the aggregate being
4091 2008-03-26 Javier Miranda <miranda@adacore.com>
4092 Robert Dewar <dewar@adacore.com>
4094 * exp_attr.adb (N_Pragma): Chars field removed.
4095 (Expand_N_Attribute_Reference): If the designated type associated with
4096 attribute 'Unrestricted_Access is a subprogram entity then replace it
4097 by an E_Subprogram_Type itype.
4098 Implement attribute Old
4100 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
4102 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
4104 New_Internal_Entity by call to Create_Itype to centralize calls
4105 building itypes, ad propagate the convention of the designated
4106 subprogram. In addition, disable the machinery cleaning constant
4107 indications from all entities in current scope when 'Unrestricted_Access
4108 corresponds with a node initializing a dispatch table slot.
4109 (Analyze_Attribute): Parameterless attributes returning a string or a
4110 type will not be called with improper arguments, so we can remove junk
4111 code that was dealing with this case.
4112 Implement attribute Old
4114 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
4115 Add entry for pragma Optimize_Alignment
4116 New standard names Sync and Synchronize
4118 2008-03-26 Robert Dewar <dewar@adacore.com>
4119 Arnaud Charlet <charlet@adacore.com>
4121 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
4123 (No_Exception_Propagation_Active): New function.
4124 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4125 Update comments, and review all uses of No_Exception_Propagation, which
4126 are now correct and in sync with what gigi expects.
4128 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
4130 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4131 Update comments, and review all uses of No_Exception_Propagation, which
4132 are now correct and in sync with what gigi expects.
4134 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4136 * sem_ch3.adb (Access_Definition): If the access type is the return
4137 result of a protected function, create an itype reference for it
4138 because usage will be in an inner scope from the point of declaration.
4139 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
4140 OK_To_Reorder_Components.
4141 (Make_Index): If an overloaded range includes a universal integer
4142 interpretation, resolve to Standard.Integer.
4143 (Analyze_Subtype_Indication): Copy Convention to subtype
4144 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
4145 limited an synchronized progenitors in type declaration and private
4146 extension declarations.
4148 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
4149 protected subprogram body, determine proper scope from subprogram
4152 2008-03-26 Robert Dewar <dewar@adacore.com>
4154 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
4157 2008-03-26 Gary Dismukes <dismukes@adacore.com>
4159 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
4160 of a heap allocator for a limited unconstrained function return when
4161 resstriction No_Allocators is active.
4162 (Analyze_Allocator): The restriction No_Allocators is now only checked
4163 on allocators that have Comes_From_Source set, as per RM-H.4(7).
4165 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
4166 of a heap allocator for a limited unconstrained function return when
4167 resstriction No_Allocators is active.
4168 (Analyze_Allocator): The restriction No_Allocators is now only checked
4169 on allocators that have Comes_From_Source set, as per RM-H.4(7).
4170 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
4171 operands are fixed-point types, the universal_fixed predefined operation
4172 is used, regardless of whether the operand type (s) have a primitive
4173 operation of the same name.
4175 2008-03-26 Javier Miranda <miranda@adacore.com>
4177 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
4178 Is_Static_Dispatch_Table
4179 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
4180 to Exchange_Declarations to exchange the private and full-view. Bug
4181 found working in this issue.
4182 (Expand_Dispatching_Call): Propagate the convention of the subprogram
4183 to the subprogram pointer type.
4184 (Make_Secondary_DT): Replace generation of Prim'Address by
4185 Address (Prim'Unrestricted_Access)
4186 (Make_DT): Replace generation of Prim'Address by
4187 Address (Prim'Unrestricted_Access)
4188 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
4189 simple call form for single entry.
4190 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
4191 tables of predefined primitives).
4192 (Make_Secondary_DT): Add support to handle access to dispatch tables of
4193 predefined primitives.
4194 (Make_Tags): Add entities to Access_Dispatch_Table associated with
4195 access to dispatch tables containing predefined primitives.
4197 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
4198 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
4200 (Register_Predefined_DT_Entry): Updated to handle the new contents
4201 of attribute Access_Disp_Table (pointers to dispatch tables containing
4202 predefined primitives).
4204 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
4206 (Find_Interface_ADT): Updated to skip the new contents of attribute
4207 Access_Dispatch_Table (pointers to dispatch tables containing predefined
4210 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
4212 (Set_Convention): Use new function Is_Access_Subprogram_Type
4213 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
4214 Access_Dispatch_Table (pointers to dispatch tables containing predefined
4217 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
4218 expanded code avoiding calls to Build_Predef_Prims.
4219 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
4220 call to Build_Get_Predefined_Prim_Op_Address.
4222 2008-03-26 Javier Miranda <miranda@adacore.com>
4224 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
4225 subprogram Corresponding_Runtime_Package to know the runtime package
4226 that will provide support to a given protected type.
4228 * exp_ch9.adb (Add_Private_Declarations,
4229 Build_Protected_Subprogram_Call,
4230 Build_Protected_Entry, Build_Simple_Entry_Call,
4231 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
4232 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
4233 cleanup using the new centralized subprogram Corresponding_Runtime
4234 Package to know the runtime package that provides support to
4235 a given protected type.
4237 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4239 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
4240 assignment is within the initialization procedure for a packed array,
4241 and Initialize_Scalars is enabled, compile right-hand side with checks
4242 off, because the value is purposely out of range.
4244 2008-03-26 Vincent Celier <celier@adacore.com>
4246 * gnatcmd.adb: Add processing for GNAT SYNC
4248 * vms_conv.ads: (Command_Type): Add command Sync
4250 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
4252 * vms_data.ads: Add entries for -gnatw.w
4253 Add qualifier for gnatstub --header-file option
4254 Add switches for GNAT SYNC
4256 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
4257 (Add_Package_Name): New procedure
4258 (Package_Name_List): New function
4259 (Initialize): Add known package names to the list
4260 (Register_New_Package): Add the new package name to the list
4262 2008-03-26 Robert Dewar <dewar@adacore.com>
4264 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
4265 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
4266 Raise_Exception by "raise with" construct.
4268 2008-03-26 Pascal Obry <obry@adacore.com>
4270 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
4271 supported platforms.
4273 * Makefile.rtl: Add g-sercom.o.
4275 * impunit.adb: Add g-sercom.adb.
4277 * s-crtl.ads (open): New routine.
4281 * s-osinte-mingw.ads (BYTE): New type.
4283 (OVERLAPPED): Likewise.
4284 (GENERIC_READ): New constant.
4285 (GENERIC_WRITE): Likewise.
4286 (OPEN_EXISTING): Likewise.
4287 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
4289 (CreateFile): New routine.
4290 (WriteFile): Likewise.
4291 (ReadFile): Likewise.
4292 (CloseHandle): Move next to the other file oriented routines.
4294 * g-sercom.ads: New unit.
4296 * g-sercom.adb: Default implementation, calls to this unit will raise
4297 a program error exception.
4299 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
4300 GNU/Linux implementations.
4302 2008-03-26 Robert Dewar <dewar@adacore.com>
4304 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
4306 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
4307 unchecked conversion for different conventions only for subprogram
4310 2008-03-26 Vincent Celier <celier@adacore.com>
4312 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
4313 to check if the specified object file is correct.
4315 2008-03-26 Thomas Quinot <quinot@adacore.com>
4317 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
4318 Comes_From_Source to exclude primitives from being checked. We want to
4319 exclude predefined primitives only, so use the appropriate specific
4320 predicate. Also, flag a formal parameter of an anonymous
4321 access-to-subprogram type as illegal for a primitive operation of a
4322 remote access to class-wide type.
4324 2008-03-26 Vincent Celier <celier@adacore.com>
4326 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
4327 known, check if it may be a missspelling of a known package name. In
4328 not verbose, not mode, issue warnings only if the package name is a
4329 possible misspelling.
4330 In verbose mode, always issue a warning for a not known package name,
4331 plus a warning if the name is a misspelling of a known package name.
4333 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
4334 limited withs or limited withs are parse during one call.
4335 (Parse_Single_Project): Post parse context clause in two passes: non
4336 limited withs before current project and limited withs after current
4339 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
4340 project with the name With_Name, even if it is only extended indirectly.
4341 (Recursive_Process): Process projects in order: first single withs, then
4342 current project, then limited withs.
4344 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
4345 project with the name With_Name, even if it is only extended indirectly.
4347 2008-03-26 Robert Dewar <dewar@adacore.com>
4349 * scn.adb (Initialize_Scanner): Format messages belong on standard error
4351 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4353 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
4354 a generic subprogram that is imported, do not attempt to compile
4357 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
4358 imported, do not generate a raise_program_error for the non-existent
4360 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
4361 perform minimal name resolution on the generic to avoid spurious
4363 (Find_Actual_Type): the designated type of the actual in a child unit
4364 may be declared in a parent unit without being an actual.
4366 2008-03-26 Robert Dewar <dewar@adacore.com>
4368 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
4369 * sinfo.ads, sinfo.adb (From_At_End): New flag
4371 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4373 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
4374 operations that have an interface parameter.
4375 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
4376 Don't treat No_Return call as raise.
4378 * sem_disp.adb (Check_Dispatching_Operations): apply check for
4379 non-primitive interface primitives to access parameters, not to all
4380 parameters of an access type.
4382 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4384 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
4385 declarations of a parent unit are made visible when compiling a child
4386 instance, the parent is not a hidden open scope, even though it may
4387 contain other pending instance.
4389 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
4390 hidden open scope for some child instance, it does affect the
4391 visibility status of other stach entries.
4392 (Analyze_Object_Renaming): Check that a class-wide object cannot be
4393 renamed as an object of a specific type.
4395 2008-03-26 Robert Dewar <dewar@adacore.com>
4397 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
4398 recursion and raise SE directly.
4399 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
4400 set for formal type for IN mode parameter.
4402 2008-03-26 Robert Dewar <dewar@adacore.com>
4404 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
4405 (Initialize): New procedure
4406 (Output_Warnings_Off_Warnings): New procedure
4407 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
4408 (Output_Non_Modifed_In_Out_Warnings): Ditto
4409 (Warn_On_Unreferenced_Entity): Ditto
4411 2008-03-26 Vincent Celier <celier@adacore.com>
4413 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
4416 2008-03-26 Matthew Heaney <heaney@adacore.com>
4418 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
4419 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
4420 Marked with clauses as private, and controlled operations as overriding
4422 2008-03-26 Robert Dewar <dewar@adacore.com>
4424 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
4426 2008-03-26 Robert Dewar <dewar@adacore.com>
4428 * back_end.adb, back_end.ads: Minor reformatting
4430 * bindgen.adb: Minor clarification of comments
4432 * fname.ads: Minor comment fixes
4434 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
4435 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
4437 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
4438 xsnames.adb: Remove warnings off pragma no longer needed
4440 * a-catizo.ads, a-calari.ads, a-calfor.adb,
4441 a-calfor.ads: Fix header.
4443 2008-03-26 Tristan Gingold <gingold@adacore.com>
4445 * init.c: Do not adjust pc for HPARITH on alpha/vms.
4447 2008-03-26 Robert Dewar <dewar@adacore.com>
4449 * lib-xref.adb: (OK_To_Set_Reference): New function
4450 (Generate_Reference): Don't set referenced from occurrence in Warnings,
4451 Unmodified, or Unreferenced pragma
4453 2008-03-26 Robert Dewar <dewar@adacore.com>
4455 * alloc.ads: Add entries for Warnings_Off_Pragmas table
4457 2008-03-26 GNAT Script <nobody@adacore.com>
4459 * Make-lang.in: Makefile automatically updated
4461 2008-03-26 Robert Dewar <dewar@adacore.com>
4463 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
4464 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
4465 removed, use Chars (Pragma_Identifier (.. instead, adjustments
4466 throughout to accomodate this change.
4468 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
4470 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
4471 Einfo.Set_Needs_Debug_Info)
4473 2008-03-26 Robert Dewar <dewar@adacore.com>
4475 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
4476 Add description for the new gnatstub option '--header-file'
4477 clarification of -gnatwz/-gnatwZ
4478 Add a "Irix-Specific Considerations" section to document the need to
4479 set LD_LIBRARY_PATH when using the default shared runtime library.
4480 Added documentation for both gcov and gprof.
4482 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
4483 messages that are not suppressed when clients are compiled.
4484 Add documentation of s-pooglo s-pooloc
4485 Document the new GNAT.Serial_Communications API.
4486 Add documentation for 'Old attribute
4487 Add description of pragma Optimize_Alignment
4489 * ug_words: Add entries for -gnatw.w -gnatw.W
4491 * usage.adb: Add line for -gnatw.w (warn on warnings off)
4493 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
4496 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
4498 * decl.c (maybe_pad_type): Avoid padding an integral type when
4499 bumping its alignment is sufficient.
4501 2008-03-25 Arnaud Charlet <charlet@adacore.com>
4503 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
4504 Fix wrong formatting (lines too long)
4506 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4508 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
4509 a-calend-vms.adb, a-calend.adb, a-calend.ads,
4510 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
4511 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
4512 a-cohama.ads, a-comlin.ads, a-coorse.adb,
4513 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
4514 a-except-2005.ads, a-except.adb, a-except.ads,
4515 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
4516 a-exextr.adb, a-filico.ads, a-finali.ads,
4517 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
4518 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
4519 a-sequio.ads, a-strbou.ads, a-strfix.adb,
4520 checks.adb, exp_ch3.adb, exp_ch4.adb,
4521 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
4522 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
4523 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
4524 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
4525 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
4527 2008-03-24 Robert Dewar <dewar@adacore.com>
4529 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4530 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4531 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4532 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4533 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4534 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4535 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4536 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4537 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4538 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4539 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4540 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4541 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4542 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4543 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4544 double spaced if it fits on one line and otherwise single spaced.
4546 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4548 PR documentation/15479
4549 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
4550 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
4551 (doc/gnat_ugn.info): Renamed from ...
4552 (doc/gnat_ugn_unw.info): ... this.
4553 (doc/gnat_ugn.dvi): Renamed from ...
4554 (doc/gnat_ugn_unw.dvi): ... this.
4555 (doc/gnat_ugn.pdf): Renamed from ...
4556 (doc/gnat_ugn_unw.pdf): ... this.
4557 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
4559 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
4560 unconditionally to gnat_ugn.info. Fix cross references to the
4561 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
4562 and GNU make manuals to be proper texinfo links.
4563 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
4565 2008-03-21 Olivier Hainque <hainque@adacore.com>
4567 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
4568 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
4570 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
4572 * trans.c (addressable_p): Add notes on addressability issues.
4574 2008-03-21 Olivier Hainque <hainque@adacore.com>
4575 Ed Schonberg <schonberg@adacore.com>
4577 * trans.c (addressable_p): Accept COND_EXPR when both arms
4579 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
4580 (call_to_gnu): Do not use name reference in the error message
4581 for a misaligned by_reference_parameter. The actual may be a
4584 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
4586 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
4588 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4590 * gnat_rm.texi (Implementation Defined Characteristics)
4591 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
4593 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
4594 (Switches for gnatchop, Installing a library): Likewise.
4596 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
4598 * trans.c (emit_range_check): Do not emit the check if the base type
4599 of the expression is the type against which its range must be checked.
4601 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4603 * decl.c (maybe_pad_type): Use value_factor_p.
4605 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4607 * lang.opt (nostdlib): Move around.
4608 * misc.c (gnat_handle_option): Fix formatting.
4609 (gnat_dwarf_name): Move around.
4610 * trans.c (Case_Statement_to_gnu): Fix formatting.
4611 (gnat_to_gnu): Likewise.
4612 * utils.c (aggregate_type_contains_array_p): Likewise.
4613 (create_subprog_decl): Likewise.
4615 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4617 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
4618 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
4620 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4622 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
4623 BIGGEST_ALIGNMENT when capping the alignment of records with
4624 strict alignment and size clause.
4626 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4628 * lang-specs.h: Pass -gnatwa if -Wall is passed.
4629 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
4630 and -Wuninitialized.
4631 (gnat_post_options): Clear warn_unused_parameter.
4633 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4635 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
4636 aligned bit-fields, bumping the alignment of the record type if deemed
4638 (value_factor_p): Return false instead of 0.
4640 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4642 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
4643 for scalar types with small alignment.
4645 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
4647 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
4648 from that of the front-end's end label.
4649 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
4650 from that of the loop label.
4652 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4654 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
4655 comment for the packed array type case.
4656 * utils.c (build_template): Use a loop to strip padding or
4657 containing records for justified modular types.
4659 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4661 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
4662 large alignments specified for types.
4663 (validate_alignment): Minor cleanup.
4665 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
4667 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
4668 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
4669 the component for packing, if possible, as well as if a component
4670 size clause is specified.
4671 <E_Record_Subtype>: For an array type used to implement a packed
4672 array, get the component type from the original array type.
4673 Try to get a smaller form of the component for packing, if possible,
4674 as well as if a component size clause is specified.
4675 (round_up_to_align): New function.
4676 (make_packable_type): Add in_record parameter.
4677 For a padding record, preserve the size. If not in_record and the
4678 size is too large for an integral mode, attempt to shrink the size
4679 by lowering the alignment.
4680 Ditch the padding bits of the last component.
4681 Compute sizes and mode manually, and propagate the RM size.
4682 Return a BLKmode record type if its size has shrunk.
4683 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
4684 Use Original_Array_Type to retrieve the type in case of an error.
4685 Adjust call to make_packable_type.
4686 (gnat_to_gnu_field): Likewise.
4687 (concat_id_with_name): Minor tweak.
4688 * trans.c (larger_record_type_p): New predicate.
4689 (call_to_gnu): Compute the nominal type of the object only if the
4690 parameter is by-reference. Do the conversion actual type -> nominal
4691 type if the nominal type is a larger record.
4692 (gnat_to_gnu): Do not require integral modes on the source type to
4693 avoid the conversion for types with identical names.
4694 (addressable_p): Add gnu_type parameter. If it is specified, do not
4695 return true if the expression is not addressable in gnu_type.
4696 Adjust recursive calls.
4697 * utils.c (finish_record_type): Remove dead code.
4699 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
4702 * decl.c (maybe_pad_type): Avoid padding an integral type when
4703 bumping its alignment is sufficient.
4705 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4707 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
4708 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
4710 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
4711 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
4712 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
4713 code output strings.
4714 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
4715 system-vms_64.ads: Fix typos in ada source code comments.
4716 * sinfo-cn.adb: Remove incomplete sentence.
4718 PR documentation/15479
4719 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
4721 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
4724 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
4726 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
4729 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
4730 that underlying type is present.
4732 2008-02-26 Tom Tromey <tromey@redhat.com>
4734 * misc.c (internal_error_function): Remove test of
4735 USE_MAPPED_LOCATION.
4736 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
4737 (Sloc_to_locus): Remove old location code.
4739 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4741 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
4742 `i.e.' by adding comma or `@:' as appropriate.
4743 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
4744 plain characters `C', use `@samp{C}'.
4745 * gnat_ugn.texi (File Naming Rules, About gnatkr)
4746 (Krunching Method): Likewise.
4748 * gnat_ugn.texi (Conventions): List environment variables and
4749 metasyntactic variables.
4750 (Compiling Programs): Fix notation of metasyntactic variables.
4751 Add @file where appropriate. Use @file for file extensions,
4753 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
4754 instead of @file, @env instead of @code.
4756 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4758 PR documentation/15479
4759 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
4760 and `...' with `@dots{}' or `@enddots{}'.
4762 PR documentation/15479
4763 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
4764 use @command instead of @code, @option instead of @samp or @code,
4765 @code instead of @var, @samp instead of @file.
4767 PR documentation/15479
4768 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
4769 in Makefile rules, by using `&&' rather than `;'.
4771 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4773 PR documentation/15479
4774 * gnat_ugn.texi: In non-code, avoid space before colon.
4775 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
4776 (Examples of gnatxref Usage): Use @command{vi} instead of
4778 (Character Set Control): Do not use @code for UTF-8.
4779 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
4781 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
4783 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
4785 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
4788 * env.c: Add __rtems__ to if defined.
4789 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
4790 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
4791 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
4792 pragma Convention as required.
4793 * gsocket.h: Make compile in and out of RTS.
4794 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
4795 Use g-soccon-rtems.ads.
4796 * g-soccon-rtems.ads, system-rtems.ads: New files.
4798 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4801 * Make-lang.in (gnat1): Add $(GMPLIBS).
4803 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
4805 * decl.c (components_to_record): Improve comment.
4807 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
4809 * decl.c (components_to_record): Do not reuse the empty union type
4810 if there is a representation clause on the record.
4811 * trans.c (addressable_p): Return true for INTEGER_CST.
4813 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
4815 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
4816 in pointer arithmetics.
4817 * utils2.c (build_allocator): Likewise.
4819 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
4821 * utils.c (build_function_stub): Properly build the call expression.
4823 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
4825 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
4826 before converting the expression to the type of the object.
4827 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
4828 Stabilize constructors for special wrapping types.
4830 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
4832 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
4833 when necessary. Merge some conditional statements. Update comments.
4834 Rename unchecked_convert_p local variable to suppress_type_conversion.
4835 Do not suppress conversions in the In case.
4836 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
4837 into account on non strict-alignment platforms.
4839 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
4841 * utils.c (aggregate_type_contains_array_p): New predicate.
4842 (create_field_decl): In a packed record, force byte alignment
4843 for fields without specified position that contain an array.
4845 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
4847 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
4849 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
4852 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
4854 (bit_field): New packed boolean type used by cpu_set_t.
4855 (cpu_set_t): New type corresponding to the C type with
4856 the same name. Note that on the Ada side we use a bit
4857 field array for the affinity mask. There is not need
4858 for the C macro for setting individual bit.
4859 (pthread_setaffinity_np): New imported routine.
4861 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
4864 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4865 on OpenBSD as is done on other BSD systems.
4868 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
4869 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
4873 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
4877 * init.c (__gnat_error_handler, __gnat_install_handler,
4878 __gnat_init_float): Define for OpenBSD.
4880 * initialize.c (__gnat_initialize): Define for OpenBSD.
4882 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
4885 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
4886 instead of mktemp() or tmpnam() on NetBSD.
4888 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
4890 * trans.c (call_to_gnu): Make the temporary for non-addressable
4891 In parameters passed by reference.
4892 (addressable_p): Return true for STRING_CST and CALL_EXPR.
4894 2007-12-19 Robert Dewar <dewar@adacore.com>
4896 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
4897 Add pragma Warnings (Off) for unassigned IN OUT arguments
4899 * sem_warn.adb (Output_Reference): Suppress messages for internal names
4900 (Check_References): Extensive changes to tune up warnings
4901 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
4902 (Has_Pragma_Unmodifed_Check_Spec): New function
4903 (Check_References): Implement pragma Unmodified
4904 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
4906 * par-prag.adb: Dummy entry for pragma Unmodified
4908 * sem_prag.adb: Implement pragma Unmodified
4910 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
4911 (Proc_Next_Component_Or_Discriminant): Fix typo.
4914 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
4916 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
4917 because the former already takes care of discarding the result.
4918 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
4921 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
4923 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
4925 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
4926 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
4927 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
4928 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
4929 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4930 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
4931 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
4932 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
4933 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4934 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
4935 (Dynamic_Trampolines_Used): Delete.
4937 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
4938 Turn on stack probing mechanism on LynxOS.
4940 2007-12-19 Bob Duff <duff@adacore.com>
4942 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
4943 the resulting tail recursion by hand. This prevents running out of
4944 memory on deeply nested concatenations, since Field2 is where the left
4945 operand of concatenations is stored.
4946 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
4947 clarify that it can only return OK or Abandon.
4949 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
4950 operand by iteration, in order to avoid running out of memory on
4951 deeply-nested concatenations. Use the Parent pointer to get back up the
4953 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
4954 Resolve_Op_Concat_Rest): New procedures split out of
4955 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
4958 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
4959 Traverse_Func, because the former already takes care of discarding the
4962 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
4963 because the former already takes care of discarding the result.
4964 (Remove_Warning_Messages): Use appropriate subtype for Status and
4967 2007-12-19 Ed Schonberg <schonberg@adacore.com>
4969 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
4970 discriminants forces expansion of the aggregate into assignments.
4971 (Init_Record_Controller): If the type of the aggregate is untagged and
4972 is not inherently limited, the record controller is not limited either.
4974 2007-12-19 Robert Dewar <dewar@adacore.com>
4976 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
4977 handling compile time known size of record or array (case of front end
4978 layout active, e.g. in GNAAMP).
4980 2007-12-19 Javier Miranda <miranda@adacore.com>
4982 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
4983 that forces the construction of static dispatch tables in case of
4986 2007-12-19 Robert Dewar <dewar@adacore.com>
4988 * exp_ch9.adb (Null_Statements): Moved to library level
4989 (Trivial_Accept_OK): New function
4990 (Expand_Accept_Declaration): Use Trivial_Accept_OK
4991 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
4993 2007-12-19 Robert Dewar <dewar@adacore.com>
4995 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
4996 in complex case where array is Volatile.
4998 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5000 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
5001 properly the Ada2005 rules concerning when the current instance of a
5002 record type is aliased.
5004 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5006 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
5008 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
5010 (P_Variant_Part): Cleaner patch for parenthesized discriminant
5012 2007-12-19 Vincent Celier <celier@adacore.com>
5014 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
5015 package is not known
5017 * prj-attr.ads (Unknown_Package): New constant
5018 Do not crash when an unknown package is in several projects
5020 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
5023 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
5024 existing package Language_Processing.
5026 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5027 Gary Dismukes <dismukes@adacore.com>
5028 Samuel Tardieu <sam@rfc1149.net>
5030 PR ada/15803, ada/15805
5031 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
5032 illegal access subtypes when there is a constrained partial view.
5033 (Check_For_Premature_Usage): New procedure inside
5034 Access_Subprogram_Declaration for checking that an access-to-subprogram
5035 type doesn't reference its own name within any formal parameters or
5036 result type (including within nested anonymous access types).
5037 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
5038 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
5039 context is an access_to_variable, the expression cannot be an
5042 2007-12-19 Bob Duff <duff@adacore.com>
5044 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
5045 (Analyze_Concatenation): Use iteration instead of recursion in order
5046 to avoid running out of stack space for deeply nested concatenations.
5048 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5049 Gary Dismukes <dismukes@adacore.com>
5051 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
5052 whose renamed entity is a subprogram that requires overriding.
5053 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
5054 issuing an error for premature usage and issue a message that says
5055 'type' rather than 'object'.
5057 2007-12-19 Gary Dismukes <dismukes@adacore.com>
5060 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
5061 presence of a statically tagged operand (Present (Static_Tag)) with
5062 test for Indeterm_Ancestor_Call when determining whether to propagate
5063 the static tag to tag-indeterminate operands (which forces dispatching
5065 (Check_Controlling_Formals): Ada2005, access parameters can have
5067 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
5068 not insert subprogram in list of primitive operations if already there.
5070 2007-12-19 Tristan Gingold <gingold@adacore.com>
5072 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
5075 2007-12-19 Thomas Quinot <quinot@adacore.com>
5077 Part of PR ada/33688
5078 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
5079 datagram info on Linux.
5081 2007-12-19 Vincent Celier <celier@adacore.com>
5083 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
5084 that the source path name is always found in the dependencies.
5086 2007-12-19 Robert Dewar <dewar@adacore.com>
5088 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
5089 Fix name of Wide_Wide_Latin_1/9 file names
5090 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
5091 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
5092 Add missing documentation for Ada.Command_Line.Response_File
5093 Update list of warning letters for Warnings pragma
5094 Add documentation for pragma Unmodified
5096 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
5098 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
5100 2007-12-17 Arnaud Charlet <charlet@adacore.com>
5102 * s-vxwork-alpha.ads: Removed, no longer used.
5104 2007-12-15 Jakub Jelinek <jakub@redhat.com>
5106 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
5108 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
5111 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
5112 mlib-tgt-specific.adb.
5114 2007-12-13 Bob Duff <duff@adacore.com>
5116 * trans.c (Attribute_to_gnu): Check for violations of the
5117 No_Implicit_Dynamic_Code restriction. This checking used to be done in
5118 the front end, but is moved here so we can make it more accurate.
5120 2007-12-13 Pascal Obry <obry@adacore.com>
5122 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
5123 version is provided for older GNU/Linux distribution not
5124 supporting thread affinity sets.
5126 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
5128 (bit_field): New packed boolean type used by cpu_set_t.
5129 (cpu_set_t): New type corresponding to the C type with
5130 the same name. Note that on the Ada side we use a bit
5131 field array for the affinity mask. There is not need
5132 for the C macro for setting individual bit.
5133 (pthread_setaffinity_np): New imported routine.
5135 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
5137 (Create_Task): Set the processor affinity mask if information
5140 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
5142 2007-12-13 Robert Dewar <dewar@adacore.com>
5144 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5145 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
5146 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
5147 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
5148 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
5149 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
5150 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
5151 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
5152 for subprogram pointers.
5154 * g-ctrl_c.adb: New file.
5156 * g-ctrl_c.ads (Install_Handler): New body.
5158 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
5159 instead of obsolete function Is_Always_Inlined.
5160 (Freeze_Entity): check for tagged type in imported C subprogram
5161 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
5162 (Freeze_Entity): check for convention Ada subprogram pointer in
5163 imported C subprogram.
5164 (Freeze_Fixed_Point_Type): In the case of a base type where the low
5165 bound would be chopped off and go from negative to zero, force
5166 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
5167 bound) so that the size computation for the base type will take
5168 negative values into account.
5170 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
5171 Bob Duff <duff@adacore.com>
5172 Tristan Gingold <gingold@adacore.com>
5174 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
5175 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5176 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
5177 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
5178 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
5179 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5180 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
5181 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
5182 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
5183 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
5184 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
5185 (Always_Compatible_Rep): New flag to control trampolines globally.
5186 (Dynamic_Trampolines_Used): New flag for implementing the
5187 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
5188 and not yet set correctly for some targets).
5190 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
5191 Simply indirectly call s-stchop when a task is created.
5194 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
5195 appears as an argument (entries A) in an ALI file.
5197 * fe.h (Stack_Check_Limits): Declare new target parameter.
5198 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
5200 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
5201 This variable is declared in C to be sure not subject to elaboration
5203 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
5206 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
5207 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
5209 * s-stchop.ads: Add comments.
5211 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
5212 limit method of stack checking.
5214 * s-stchop-limit.ads: New file.
5216 2007-12-13 Robert Dewar <dewar@adacore.com>
5218 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
5219 a-cihama.adb, g-awk.adb,
5220 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
5223 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
5225 * sem.adb: Update handling of assigned value/unreferenced warnings
5227 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
5229 * lib-xref.ads: Improve documentation for k xref type
5232 Update handling of assigned value/unreferenced warnings
5233 (Generate_Reference): Warning for reference to entity for which a
5234 pragma Unreferenced has been given should be unconditional.
5235 If the entity is a discriminal, mark the original
5236 discriminant as referenced.
5238 * sem_warn.ads, sem_warn.adb
5239 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
5240 no entities referenced in package
5241 (Check_One_Unit): Don't give message about no entities referenced in
5242 a package if a pragma Unreferenced has appeared.
5243 Handle new warning flag -gnatw.a/-gnatw.A
5244 Update handling of assigned value/unreferenced warnings
5246 * atree.h: Add flags up to Flag247
5247 (Flag231): New macro.
5249 2007-12-13 Jose Ruiz <ruiz@adacore.com>
5251 * adaint.h: (__gnat_plist_init): Not defined for RTX.
5253 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
5256 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
5257 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
5258 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
5259 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
5262 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
5264 * sysdep.c (winflush_function for RTX): Procedure that does nothing
5265 since we only have problems with Windows 95/98, which are not
5267 (__gnat_ttyname): Return the empty string on Nucleus, just as
5270 2007-12-13 Robert Dewar <dewar@adacore.com>
5272 * a-textio.adb, a-textio.ads:
5273 Extensive changes to private part for wide character encoding
5275 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
5276 (Look_Ahead): Fix mishandling of encoded sequences
5277 Move declaration of Wch_Con to private part (should not be visible)
5279 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
5280 UTF-8. Probably this is never used, but if it is, brackets is
5283 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
5284 setting wide character encoding for no main program case and when
5285 encoding is specified using -W?
5286 Initialize stack limit of environment task if stack limit method of
5287 stack checking is enabled.
5288 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
5289 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
5290 (Get_Main_Unit_Name): New function.
5291 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
5292 (Gen_Output_File): Set Bind_Main_Program to True for .NET
5294 * bindusg.adb: Add line for -Wx switch
5296 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
5298 Add new useful constant WC_Longest_Sequences
5300 * switch-b.adb: Clean up handling of -Wx switch
5301 For -gnatWx, set Wide_Character_Encoding_Method_Specified
5303 * switch-c.adb: -gnatg activates warning on assertion errors
5304 For -gnatWx, set Wide_Character_Encoding_Method_Specified
5306 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
5308 2007-12-13 Robert Dewar <dewar@adacore.com>
5309 Ed Schonberg <schonberg@adacore.com>
5311 * a-ngcoty.adb: New pragma Fast_Math
5313 * opt.adb: New pragma Fast_Math
5316 Add Implemented_By_Entry to the list of pragmas which do not require any
5318 (Favor_Top_Level): New pragma.
5319 New pragma Fast_Math
5321 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
5322 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5323 Expand_Allocator_Expression): Take into account VM_Target
5324 (Expand_Attribute, case 'Identity): Handle properly the case where
5325 the prefix is a task interface.
5326 New pragma Fast_Math
5328 * par.adb (Next_Token_Is): New function
5329 (P_Pragma): Add Skipping parameter
5330 (U_Left_Paren): New procedure
5331 (U_Right_Paren): New procedure
5332 New pragma Fast_Math
5334 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
5336 New pragma Fast_Math
5338 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
5339 Implemented_By_Entry.
5340 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
5341 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
5342 items, since it can apply to more than one overloadable entity. Set
5343 new flag Has_Pragma_Inline_Always for Inline_Always case.
5344 (Analyze_Pragma, case Complex_Representation): Improve error message.
5345 (Analyze_Pragma, case Assert): When assertions are disabled build the
5346 rewritten code with Sloc of expression rather than pragma, so new
5347 warning about failing is not deleted.
5348 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
5349 protected types and update error message to reflect that. Test whether
5350 the protected type is allowed for the pragma (an error is issued if the
5351 type has any entries, or components that do not have preelaborable
5353 New pragma Fast_Math
5354 (Analyze_Pragma, case No_Return): Handle generic instance
5356 * snames.h, snames.ads, snames.adb:
5357 Add new predefined name for interface primitive _Disp_Requeue.
5358 New pragma Fast_Math
5360 * a-tags.ads, a-tags.adb: New calling sequence for
5361 String_To_Wide_[Wide_]String
5362 (Secondary_Tag): New subprogram.
5364 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
5366 New calling sequence for String_To_Wide_[Wide_]String
5367 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
5368 the use of the secondary stack for image routines.
5370 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
5371 calling sequence for String_To_Wide_[Wide_]String
5373 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
5375 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
5376 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5378 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
5379 (P_Formal_Part): Use Skipping parameter in P_Pragma call
5380 to improve error recovery
5382 * par-util.adb (Next_Token_Is): New function
5383 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
5385 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
5386 semicolon if missing
5387 (P_Pragma): Implement new Skipping parameter
5388 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5389 Fix location of flag for unrecognized pragma message
5391 * par-tchk.adb (U_Left_Paren): New procedure
5392 (U_Right_Paren): New procedure
5394 2007-12-13 Geert Bosch <bosch@adacore.com>
5397 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
5398 the second or later Scaled_Divide would omit leading zeroes,
5399 resulting in too few digits produced and a Layout_Error as result.
5400 (Put): Initialize Pos.
5402 2007-12-13 Robert Dewar <dewar@adacore.com>
5404 atree.ads, atree.adb (Flag231..Flag247): New functions
5405 (Set_Flag231..Set_Flag247): New procedures
5406 (Basic_Set_Convention): Rename Set_Convention to be
5407 Basic_Set_Convention
5408 (Nkind_In): New functions
5409 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5411 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
5413 of obsolete function Is_Always_Inlined
5414 (Register_Predefined_DT_Entry): Initialize slots of the second
5415 secondary dispatch table.
5416 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5417 (Expand_N_Function_Call): Remove special provision for stack checking.
5419 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
5420 Include _Disp_Requeue in the list of predefined operations.
5421 (Find_Interface_ADT): Modified to fulfill the new specification.
5422 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5424 * par-ch4.adb, nlists.ads, nlists.adb:
5425 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5427 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
5428 Fix location of flag for unrecognized pragma message
5430 * sem_ch7.adb: Use Nkind_In
5432 2007-12-13 Vincent Celier <celier@adacore.com>
5435 Indicate what flags are used by the Project Manager, gprbuild and
5437 (Opt.Follow_Links_For_Dirs): New flag
5438 (Warn_On_Assertion_Failure): New flag
5439 (Wide_Character_Encoding_Method_Specified): New flag
5440 (Suppress_All_Inlining): New switch set by -fno-inline
5441 (Real_VMS_Target): New flag
5442 New pragma Fast_Math
5444 2007-12-13 Robert Dewar <dewar@adacore.com>
5446 * back_end.adb: Recognize -fno-inline
5448 2007-12-13 Robert Dewar <dewar@adacore.com>
5450 * checks.adb: Fix optimization problem with short-circuited form
5452 2007-12-13 Bob Duff <duff@adacore.com>
5454 * clean.adb (Usage): Add line for -aP
5455 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
5456 with a parameter "procedure Usage", instead of passing a pointer to a
5457 procedure. This is to eliminate trampolines (since the Usage procedure
5458 is often nested in a main procedure, and it would be inconvenient to
5461 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
5462 to be generic, with a parameter "procedure Callback (...)", instead of
5463 passing a pointer to a procedure. This is to eliminate trampolines
5464 (since the Callback procedure is usually nested).
5466 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
5467 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
5468 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
5470 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
5471 Use the generic Heap_Sort_G instead of Heap_Sort_A.
5473 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5475 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
5476 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
5477 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
5478 (Renamed_In_Spec): New flag
5479 (Has_Pragma_Inline_Always): New flag
5480 Add missing doc for pragma Obsolescent_Warning
5481 Add missing doc for 17 additional unused flags (230-247)
5482 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
5483 Alphabetize with clauses.
5484 Separate Is_Thunk and Has_Thunks flags
5485 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
5486 (Related_Interface): Renamed to Related_Type.
5487 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
5488 (Set_Is_Flag): Restrict the assertion.
5490 2007-12-13 Vincent Celier <celier@adacore.com>
5492 * errout.adb (Output_Source_Line): Do not keep a trailing space after
5493 the source line number if the source line is empty.
5495 2007-12-13 Geert Bosch <bosch@adacore.com>
5497 * eval_fat.adb (Decompose_Int): Handle argument of zero.
5498 (Compose): Remove special casing of zero.
5499 (Exponent): Likewise.
5500 (Fraction): Likewise.
5501 (Machine): Likewise.
5502 (Decompose): Update comment.
5504 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5506 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
5507 limited ancestor part, initialize controllers of enclosing record
5508 before expanding ancestor aggregate.
5509 (Gen_Assign): If a component of the aggregate is box-initialized, add
5510 code to call Initialize if the component is controlled, and explicit
5511 assignment of null if the component is an access type.
5513 Handle properly aggregates for limited types that appear in object
5514 declarations when the aggregate contains controlled values such as
5516 When expanding limited aggregates into individual components, do not
5517 call Adjust on controlled components that are limited.
5519 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5521 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
5523 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5525 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
5526 predefined primitive _Disp_Requeue.
5527 (Make_Predefined_Primitive_Specs): Create the spec for predefined
5528 primitive _Disp_Requeue.
5529 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
5530 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
5531 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
5532 an interface type. In case of limited interfaces we now declare all the
5533 predefined primitives associated with synchronized interfaces as
5535 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
5537 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
5538 tagged type is an interface type and there is no user-defined equality
5540 Add also bodies of predefined primitives associated with synchronized
5542 (Freeze_Record_Type): Do not build bodies of predefined primitives of
5543 interface types because they are now defined abstract.
5544 Add missing documentation.
5545 (Expand_Record_Controller): Update occurrence of Related_Interface
5547 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
5548 (Expand_N_Object_Declaration): Take into account VM_Target when handling
5549 class wide interface object declaration.
5550 (Expand_Previous_Access_Type): Do not create a duplicate master entity
5551 if the access type already has one.
5552 (Expand_N_Object_Declaration): Defend against attempt to validity check
5553 generic types. Noticed for -gnatVcf specified with previous errors.
5555 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5557 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5558 Expand_Allocator_Expression): Take into account VM_Target
5560 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
5561 secondary stack when VM_Target /= No_VM
5563 2007-12-13 Javier Miranda <miranda@adacore.com>
5564 Ed Schonberg <schonberg@adacore.com>
5566 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
5567 Is_Complation_Unit by Is_Library_Level_Entity in the code
5568 that decides if the static dispatch tables need to be built.
5569 (Wrap_Transient_Declaration): Do not generate a finalization call if
5570 this is a renaming declaration and the renamed object is a component
5571 of a controlled type.
5573 2007-12-13 Gary Dismukes <dismukes@adacore.com>
5575 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
5576 In the case where the renamed subprogram is a dereference, call
5577 Force_Evaluation on the prefix.
5579 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5580 Ed Schonberg <schonberg@adacore.com>
5582 * exp_ch9.adb (Expand_N_Asynchronous_Select,
5583 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
5584 comment reformatting.
5585 (Set_Privals): Inherit aliased flag from formal. From code reading.
5586 (Build_Simple_Entry_Call): Out parameters of an access type are passed
5587 by copy and initialized from the actual. This includes entry parameters.
5588 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
5589 and Ada 2005 models of requeue.
5590 (Null_Statements): Still connsider do-end block null if it contains
5591 Unreferenced and Warnings pragmas.
5592 (Expand_N_Accept_Statement): Do not optimize away null do end if
5593 dispatching policy is other than defaulted.
5594 (Expand_N_Timed_Entry_Call): When the triggering statement is a
5595 dispatching call, manually analyze the delay statement.
5596 (Find_Parameter_Type): Move subprogram to Sem_Util.
5598 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5599 Javier Miranda <miranda@adacore.com>
5601 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
5602 _Disp_Requeue occupies dispatch table slot number 15. Move
5603 _Disp_Timed_Select to slot 16.
5604 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
5605 generate the spec and body of _Disp_Reqeueue.
5606 (Make_DT): Build and initialize the second dispatch table.
5607 Handle initialization of RC_Offset when the parent
5608 is a private type with variable size components.
5609 (Make_Secondary_DT): Complete documentation. Add support to
5610 initialize the second dispatch table.
5611 (Make_Tags): Generate the tag of the second dispatch table.
5612 (Register_Primitive): Add support to register primitives in the
5613 second dispatch table.
5615 2007-12-13 Pascal Obry <obry@adacore.com>
5617 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
5618 Windows. This signal is used by gnatmake to kill child processes for
5621 2007-12-13 Javier Miranda <miranda@adacore.com>
5623 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
5624 support for generic dispatching constructor calls in which we need to
5625 locate the tag of a secondary dispatch table associated with an
5626 interface type to properly dispatch the call.
5627 (Expand_N_Attribute_Reference [case Address],
5628 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
5629 handling of VM targets.
5631 2007-12-13 Robert Dewar <dewar@adacore.com>
5632 Ed Schonberg <schonberg@adacore.com>
5634 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
5637 * ug_words: Add entries for -gnatw.a -gnatw.A
5639 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
5640 literal is a subtype with non-static constraints, use the base type of
5641 the context as the base of the string subtype, to prevent type
5643 (Resolve_Actuals): If the actual is an entity name, generate a
5644 reference before the actual is resolved and expanded, to prevent
5645 spurious warnings on formals of enclosing protected operations.
5646 (Analyze_Overloaded_Selected_Component): If type of prefix if
5647 class-wide, use visible components of base type.
5648 (Resolve_Selected_Component): Ditto.
5649 (Resolve_Short_Circuit): Detect case of pragma Assert argument
5650 evaluating to False, and issue warning message.
5652 * usage.adb: Add lines for -gnatw.a and -gnatw.A
5654 2007-12-13 Emmanuel Briot <briot@adacore.com>
5656 * g-calend.ads (No_Time): New constant, to represent an uninitialized
5659 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
5661 (Month_Name_To_Number): New subprogram
5663 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
5664 letter to upper-case.
5666 2007-12-13 Robert Dewar <dewar@adacore.com>
5667 Ed Schonberg <schonberg@adacore.com>
5669 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
5671 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
5672 context is a limited view, use non-limited view when available. If the
5673 non-limited view is an unconstrained array, this enforces consistency
5674 requirements in 3.10.2 (27).
5675 (Layout_Type): For an access type whose designated type is a limited
5676 view, examine its declaration to determine if it is an unconstrained
5677 array, and size the access type accordingly.
5678 (Layout_Type): Do not force 32-bits for convention c subprogram
5679 pointers in -gnatdm mode, only if real vms target.
5681 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
5682 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5683 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
5684 violations of the No_Implicit_Dynamic_Code restriction.
5685 (Resolve_Attribute, case 'Access): If designated type of context is a
5686 limited view, use non-limited view when available. If the non-limited
5687 view is an unconstrained array, this enforces consistency requirements
5689 (Layout_Type): For an access type whose designated type is a limited
5690 view, examine its declaration to determine if it is an unconstrained
5691 array, and size the access type accordingly.
5693 2007-12-13 Vincent Celier <celier@adacore.com>
5695 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
5696 object directory of main project does not exist.
5697 On VMS, correctly set then environment variable for the source
5700 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
5702 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
5703 set to True this procedure will create the value of type REG_EXPAND_SZ.
5704 It was only possible to create REG_SZ values before.
5706 2007-12-13 Robert Dewar <dewar@adacore.com>
5708 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
5709 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
5710 namet-sp.adb, namet-sp.ads: New files.
5712 * g-speche.adb: Use generic routine in g-spchge
5714 * s-wchcnv.ads, s-wchcnv.adb:
5715 Minor code cleanup (make formal type consistent with spec)
5717 * namet.adb: Update comments.
5719 * par-endh.adb (Evaluate_End_Entry): Use new
5720 Namet.Sp.Is_Bad_Spelling_Of function
5722 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
5724 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
5725 ancestor is an access type initialized with a box, set its type
5726 explicitly, for use in subsequent expansion.
5727 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
5730 2007-12-13 Robert Dewar <dewar@adacore.com>
5732 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
5735 2007-12-13 Robert Dewar <dewar@adacore.com>
5737 * inline.adb (Back_End_Cannot_Inline): Use new flag
5738 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
5740 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
5741 Has_Pragma_Inline_Always instead.
5742 of obsolete function Is_Always_Inlined
5743 (Build_Body_To_Inline): Same change
5744 (Cannot_Inline): Same change
5745 Do not give warning on exception raise in No_Return function
5747 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
5748 component has two inconsistent component clauses in the same record
5749 representation clause, favor the message that complains about
5750 duplication rather than inconsistency.
5752 (Record_Representation_Clause): Do not warn on missing component
5753 clauses for inherited components of a type extension.
5754 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
5755 an overloadable item if it is a pragma that can apply to multiple
5756 overloadable entities (e.g. Inline) because a pragma cannot be on
5757 more than one chain at a time.
5758 (Validate_Unchecked_Conversion): Add code to warn on unchecked
5759 conversion where one of the operands is Ada.Calendar.Time.
5760 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
5761 For now, ignore Component_Size clause on VM targets, as done for
5764 2007-12-13 Emmanuel Briot <briot@adacore.com>
5765 Vincent Celier <celier@adacore.com>
5767 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
5769 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
5771 (Hash): Move instantiation of System.HTable.Hash from spec to body
5772 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
5773 systems, since we do not need to recompute the Name_Id for the canonical
5775 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5776 as a parameter. This parameter is in fact always "ada" in all calls, and
5777 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
5778 while loading a project with 40000 files
5780 * prj-attr.adb: Fix name of attribute Dependency_Driver
5781 Change the kind of indexing for attribute Root
5783 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
5784 variables already declared, in case constructions.
5786 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
5787 Current_Object_Path_File to No_Path.
5789 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
5790 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
5792 * prj-makr.adb: new parameter Current_Dir
5794 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
5795 Ada sources when language is not Ada.
5796 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5797 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
5798 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
5799 (Locate_Directory): Always resolve links when computing Canonical_Path
5800 (Look_For_Sources): Make sure that Name_Buffer contains the file name
5801 in Source_Files before checking for the presence of a directory
5803 Optimize calls to Name_Find when on case sensitive systems.
5804 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
5806 (Prj.Nmsc.Check): new parameter Current_Dir
5807 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
5808 cannot be empty and the spec suffix cannot be the same as the body or
5810 (Get_Unit): When a file name can be of several unit kinds (spec, body or
5811 subunit), always consider the longest suffix.
5812 (Check_Configuration): Do not issue an error if there is no compiler
5813 for a language. Just issue a warning and ignore the sources for the
5815 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
5817 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
5818 (Unit_Exceptions): New hash table
5819 (Check_Naming_Schemes): Check if a file that could be a unit because of
5820 the naming scheme is not in fact a source because there is an exception
5822 (Look_For_Sources): Put the unit exceptions in hash table
5824 (Get_Unit_Exceptions): Give initial value No_Source to local variable
5825 Other_Part to avoid exception when code is compiled with validity
5827 (Get_Sources_From_File): Check that there is no directory information
5829 (Look_For_Sources): Check that there is no directory information in the
5830 list of file names in Source_Files.
5831 (Look_For_Sources): In multi-language mode, do not allow exception file
5832 names that are excluded.
5833 (Excluded_Sources_Htable): New hash table
5834 (Search_Directories.Check_File): New procedure to simplify
5836 (Search_Directories): Do not consider excluded sources
5837 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
5839 (Get_Exceptions): Set component Lang_Kind of Source_Data
5840 (Get_Unit_Exceptions): Ditto
5841 (Search_Directories): Ditto
5843 * prj-pars.adb: new parameter Current_Dir
5845 * prj-part.ads, prj-part.adb:
5846 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
5847 (Opt.Follow_Links_For_Dirs): New flag
5848 (Project_Path_Name_Of): Cache information returned by this routine as
5849 Locate_Regular_File is a costly routine. The code to output a log
5850 information and the effective call to Locate_Regular_File is now
5851 factorized into a routine (code clean-up).
5852 (Parse, Parse_Single_Project): new parameter Current_Dir
5853 When main project file cannot be found, indicate in the error
5854 message the project path that was used to do the search.
5856 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
5857 (Prj.Proc.Process*): new parameter Current_Dir
5859 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
5861 2007-12-13 Bob Duff <duff@adacore.com>
5863 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
5864 procedure to be called from the back end to check the
5865 No_Implicit_Dynamic_Code restriction.
5867 2007-12-13 Arnaud Charlet <charlet@adacore.com>
5869 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
5870 Fixes another case where RTE_Available_Call was ignored instead of being
5874 * rtsfind.ads: Add new entries.
5876 2007-12-13 Robert Dewar <dewar@adacore.com>
5878 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
5879 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
5881 * scn.adb: Implement BOM recognition
5883 2007-12-13 Thomas Quinot <quinot@adacore.com>
5884 Ed Schonberg <schonberg@adacore.com>
5886 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
5887 subprogram body that acts as its own spec may not have a non-private
5888 WITH clause on a private sibling.
5889 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
5890 child unit is a renaming, create an implicit with_clause on that
5891 parent, and not on the unit it renames, to prevent visibility errors
5892 in the current unit.
5894 2007-12-13 Ed Schonberg <schonberg@adacore.com>
5896 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
5897 renaming declaration, use the Slocs of the formal parameters from the
5898 declaration of the formal subprogram when creating the formal parameter
5899 entities in the renaming declaration.
5900 (Analyze_Formal_Type_Declaration): Change the placement of the error
5901 message concerning illegal known discriminants. It is now posted on the
5902 type rather than on the first discriminant. This change ensures early
5904 (Freeze_Subprogram_Body): If the generic subprogram is nested within
5905 the package body that contains the instance, do not generate an
5906 out-of-place freeze node for the enclosing package.
5907 (Collect_Previous_Instantiations): Ignore internal instantiations
5908 generated for formal packages.
5909 (Validate_Derived_Type_Instance): Add a check that when a formal
5910 derived type is Known_To_Have_Preelab_Init then the actual type must
5911 have preelaborable initialization, and issue an error when this
5912 condition is violated.
5914 2007-12-13 Robert Dewar <dewar@adacore.com>
5916 * s-imenne.adb, s-imenne.ads: New files.
5918 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
5919 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
5920 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
5921 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
5922 s-imgwch.ads: New calling sequence for Image routines to avoid sec
5925 2007-12-13 Javier Miranda <miranda@adacore.com>
5926 Ed Schonberg <schonberg@adacore.com>
5928 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
5929 generation of spurious error if parent is an interface type; caused
5930 because predefined primitive bodies will be generated later by
5932 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
5934 (Derive_Subprograms): Handle derivations of predefined primitives
5935 after all the user-defined primitives to ensure that they are
5936 found in proper order in instantiations.
5937 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
5938 of Related_Interface to Related_Type.
5939 (Record_Type_Declaration): Minor reordering of calls to decorate the
5940 Tag component because the entity must have set its Ekind attribute
5941 before setting its Is_Tag attribute.
5942 (Analyze_Subtype_Declaration): In the case of subtypes with
5943 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
5945 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5946 Ed Schonberg <schonberg@adacore.com>
5948 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
5949 statement to the list of contexts where a selected component with a
5950 concurrent tagged type prefix should yield a primitive operation.
5951 (Find_Primitive_Operation): Handle case of class-wide types.
5952 (Analyze_Overloaded_Selected_Component): If type of prefix is
5953 class-wide, use visible components of base type.
5954 (Resolve_Selected_Component): Ditto.
5955 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
5956 formal of a generic subprogram. find candidate interpretations by
5957 scanning the list of generic formal declarations.:
5958 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
5959 type from a limited_with_clause, and the full view is available, use it
5960 for subsequent semantic checks.
5961 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
5962 (Find_Primitive_Operation): New function.
5963 (Analyze_Overloaded_Selected_Component): insert explicit dereference
5964 only once if several interpretations of the prefix yield an access type.
5965 (Try_Object_Operation): Code and comment cleanup.
5966 (Analyze_Selected_Component): Reorder local variables. Minot comment and
5967 code reformatting. When the type of the prefix is tagged concurrent, a
5968 correct interpretation might be available in the primitive and
5969 class-wide operations of the type.
5971 2007-12-13 Robert Dewar <dewar@adacore.com>
5972 Ed Schonberg <schonberg@adacore.com>
5974 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
5975 renaming entry as subprogram using rename-as-body if subprogram spec
5977 (Use_One_Type): The clause is legal on an access type whose designated
5978 type has a limited view.
5979 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5980 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
5981 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
5982 operation denoted by a selected component.
5983 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
5984 it can be an expression, possibly overloaded, that returns a task or
5987 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
5988 Gary Dismukes <dismukes@adacore.com>
5990 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
5991 requeue statement is dispatching. Do not emit an error when the name is
5992 not an entry and the context is a dispatching select. Add code to
5993 perform subtype conformance between the formals of the current entry
5994 and those of the target interface primitive.
5995 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
5996 Timed_Entry_Call): Analyze the triggering statement as the first step of
5997 the processing. If this is a dispatching select, postpone the analysis
5998 of all select statements until the Expander transforms the select. This
5999 approach avoids generating duplicate identifiers after the Expander has
6000 replicated some of the select statements. In case the Expander is
6001 disabled, perform regular analysis.
6002 (Check_Triggering_Statement): New routine.
6003 (Analyze_Requeue): Exclude any interpretations that are not entries when
6004 checking overloaded names in a requeue. Also test type conformance for
6005 matching interpretations rather than requiring subtype conformance at
6006 that point to conform with the RM's resolution rule for requeues.
6008 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6010 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
6011 inherited operation is a defaulted tag-indeterminate call, and there is
6012 a statically tagged actual, use the static tag as a controlling actual
6013 for the defaulted actual.
6015 2007-12-13 Geert Bosch <bosch@adacore.com>
6017 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
6018 context, so do not call Check_Non_Static_Context.
6020 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6022 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
6023 whether formal E is an entity which may have parameters.
6025 2007-12-13 Bob Duff <duff@adacore.com>
6026 Javier Miranda <miranda@adacore.com>
6027 Robert Dewar <dewar@adacore.com>
6029 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
6030 (Set_Convention): New procedure to set the Convention flag, and in
6031 addition make sure the Favor_Top_Level flag is kept in sync (all
6032 foreign-language conventions require Favor_Top_Level = True).
6033 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
6035 (Collect_Interfaces_Info): Minor update to handle the two secondary
6036 dispatch tables. Update occurrence of Related_Interface to Related_Type.
6037 (Generate_Parent_Ref): Add parameter to specify entity to check
6038 (Is_Preelaborable_Expression): Allow the name of a discriminant to
6039 initialize a component of a type with preelaborable initialization.
6040 This includes the case of a discriminal used in such a context.
6041 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
6042 latest Ada 2005 rules about renaming and 'Access of
6043 discriminant-dependent components.
6044 (Check_Nested_Access): Add handling when there are no enclosing
6045 subprograms (e.g. case of a package body).
6046 (Find_Parameter_Type): Factor routine from several other compiler files.
6047 Remove routine from Find_Overridden_Synchronized_Primitive.
6049 2007-12-13 Thomas Quinot <quinot@adacore.com>
6051 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
6052 an invalid access to an uninitialized slot in the
6053 Source_File_Index_Table.
6055 2007-12-13 Thomas Quinot <quinot@adacore.com>
6057 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
6059 2007-12-13 Bob Duff <duff@adacore.com>
6061 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
6062 access-to-subprogram types in this package.
6064 2007-12-13 Olivier Hainque <hainque@adacore.com>
6066 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
6067 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
6068 Stack_Overlay_Address and document that we are using an internal
6070 (Byte_Size, Unsigned_32_Size): Remove, now useless.
6071 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
6072 consistently throughout the various implementation pieces.
6074 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
6075 overlay we are using to fill the stack area with patterns.
6076 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
6077 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
6078 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
6080 2007-12-13 Robert Dewar <dewar@adacore.com>
6082 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
6084 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6087 (Create_Task): Take into account tasks created by foreign threads.
6088 Code clean up: use constants instead of hard coded values.
6090 2007-12-13 Robert Dewar <dewar@adacore.com>
6092 * styleg.adb (Check_Comment): More liberal rules for comment placement
6094 2007-12-13 Olivier Hainque <hainque@adacore.com>
6096 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
6097 of Procedure Value instead of Frame Pointer as the invocation
6098 identifier associated with the instruction pointer in each traceback
6101 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
6102 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
6103 Pointer as the invocation identifier passed to tbk$symbolize.
6105 * s-traent-vms.ads, s-traent-vms.adb
6106 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
6107 Procedure Value instead of Frame Pointer as the invocation identifier
6108 passed to tbk$symbolize.
6110 2007-12-13 Robert Dewar <dewar@adacore.com>
6112 * tbuild.ads, tbuild.adb:
6113 Fix location of flag for unrecognized pragma message
6115 2007-12-13 Robert Dewar <dewar@adacore.com>
6117 * treepr.ads, treepr.adb: (pl): implement use of positive value
6120 2007-12-13 Robert Dewar <dewar@adacore.com>
6122 * xeinfo.adb: Remove warnings
6123 * xnmake.adb: Remove warnings
6124 * xsinfo.adb: Remove warnings
6125 * xtreeprs.adb: Remove warnings
6126 * xsnames.adb: Remove warnings
6128 * a-ngcoar.adb: Fix typo.
6129 * s-interr.adb: Minor reformatting
6130 * env.c: Minor reformatting.
6131 * g-bytswa.adb: Minor reformatting.
6132 * g-rannum.ads: Minor documentation improvements
6133 * s-tasinf-mingw.adb: Minor header fix
6134 * a-clrefi.adb: Minor reformatting
6135 * g-sttsne.ads: Minor documentation improvement
6136 * g-sttsne-locking.ads: Minor documentation improvement
6137 * g-soliop-solaris.ads: Minor documentation improvement
6138 * g-soliop-mingw.ads: Minor documentation improvement
6139 * g-soliop.ads: Minor documentation improvement
6140 * exp_aggr.ads: Minor reformatting
6141 * debug.adb: Add documentation for the gprbuild debug flags
6142 * exp_ch2.adb: Use Nkind_In to simplify code throughout
6143 * exp_pakd.adb: Minor reformatting
6145 * g-altive.ads, g-alleve.adb: Remove assertions.
6146 Add comment about minor differences between targets regarding
6147 floating-point operations.
6149 * g-thread.adb: Remove pragma unreferenced.
6150 * lib.ads: Minor reformatting
6151 * par-ch9.adb: Minor reformatting of error messages
6152 * sem_case.adb: Minor reformatting
6153 * s-fileio.adb: Minor reformattinng
6154 * s-vmexta.ads: Minor typo
6156 Take into account 'Success' value as per new GNAT warning.
6158 2007-12-13 Vincent Celier <celier@adacore.com>
6160 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
6163 2007-12-13 Robert Dewar <dewar@adacore.com>
6164 Bob Duff <duff@adacore.com>
6166 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
6167 Document that suffixes may be terminations of each others
6168 Add doc for -gnatw.a and -gnatw.A
6169 Document gnatbind -Wx switch
6170 Document BOM recognition
6171 Document pragma Implemented_By_Entry.
6174 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
6175 Add doc for pragma Unreferenced suppressing no entities referenced msg
6176 Add documentation of GNAT.Directory_Operations.Iteration
6177 Add documentation of GNAT.Random_Numbers
6178 Add documentation for pragma Shared.
6179 Correct documentation for Bit_Order
6180 Add documentation for the Pool_Address attribute.
6181 Fix and improve documentation of pragma machine_attribute.
6182 New pragma Fast_Math
6183 Document BOM recognition
6185 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
6186 Add /Wide_Character_Encoding for binder
6187 Add qualifier for the new gnatpp option --no-separate-loop-then
6189 2007-12-13 Matthew Heaney <heaney@adacore.com>
6191 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
6192 which generic formal operations are called for each operation.
6194 2007-12-13 Olivier Hainque <hainque@adacore.com>
6196 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
6197 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
6199 2007-12-13 Emmanuel Briot <briot@adacore.com>
6201 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
6202 Reference_Dir unless we actually need it.
6204 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
6205 Tristan Gingold <gingold@adacore.com>
6207 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
6210 a-calend-vms.adb: Remove pragma warning off and add pragma
6213 2007-12-13 Robert Dewar <dewar@adacore.com>
6215 * impunit.adb: Add entries for missing units
6217 * Makefile.rtl: Add new run-time units.
6219 * Make-lang.in: Update dependencies.
6221 2007-12-13 Bob Duff <duff@adacore.com>
6223 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
6224 types, set Can_Use_Internal_Rep appropriately, based on
6225 Always_Compatible_Rep_On_Target.
6227 2007-12-13 Gary Dismukes <dismukes@adacore.com>
6228 Arnaud Charlet <charlet@adacore.com>
6230 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
6231 it to the front end and setting the aamp_target environment variable
6232 to the switch's argument to ensure that gnaampbind and gnaamplink will
6233 take the specified library into account.
6234 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
6235 target, since the CIL compiler supports an "object" file (.il files).
6237 2007-12-13 Vincent Celier <celier@adacore.com>
6239 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
6240 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
6242 2007-12-13 Geert Bosch <bosch@adacore.com>
6244 * s-parame-vxworks.adb:
6245 Update comments to reflect usage of this package by Nucleus.
6247 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6249 * i-vxwork.ads: Kill new warning on Convention C, since changing the
6250 spec would break code.
6252 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
6254 * system-vxworks-alpha.ads: Removed.
6256 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
6258 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
6260 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
6263 * sem_ch3.adb (Designates_T): New function.
6264 (Mentions_T): Factor reusable part of the logic into Designates_T.
6265 Consider non-access parameters and access and non-access result.
6266 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
6267 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
6269 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
6271 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
6274 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
6275 the new implementation of target-specific calls.
6277 2007-12-07 Olivier Hainque <hainque@adacore.com>
6279 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
6280 the designated full view, only follow a second level Full_View link
6281 for Non_Limited_Views of from_limited_with references.
6283 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
6286 * sem_ch6.adb (Process_Formals): Prevent an access type formal
6287 to be initialized with an access to constant object.
6289 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
6290 when an access to constant is used to initialize an access
6294 * a-direct.adb (Compose): Containing_Directory can be an empty string.
6296 2007-12-07 Olivier Hainque <hainque@adacore.com>
6299 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
6300 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
6301 this is from an alignment clause on the GNAT entity.
6302 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
6303 to distinguish the case where we set it from the type's alignment.
6304 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
6305 whether this alignment was set from an explicit alignment clause.
6307 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
6309 * decl.c (make_packable_type): Revert last change.
6310 (gnat_to_gnu_field): Avoid setting size and position multiple times.
6311 * utils.c (finish_record_type): Retrieve the real name of the type.
6313 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
6315 * trans.c (lvalue_required_p): Take base node directly instead
6316 of its parent. Rename second parameter to 'gnu_type'.
6317 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
6318 <N_Slice>: Likewise.
6319 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
6320 Adjust calls to lvalue_required_p.
6322 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
6325 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
6326 parameters of an entry call.
6328 2007-12-03 Robert Dewar <dewar@adacore.com>
6329 Samuel Tardieu <sam@rfc1149.net>
6332 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
6333 of variables declared in a library-level package.
6335 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
6337 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
6338 of Empty_String'Unchecked_Access.
6340 * Makefile.in: Add support for sh4-linux.
6342 * system-linux-sh4.ads: New file.
6344 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
6347 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
6348 and its argument must not be free()ed.
6350 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
6352 * decl.c (make_packable_type): Retrieve the real name of the type.
6353 (maybe_pad_type): Simplify similar code.
6355 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
6358 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
6359 than an identifier is used after "case" in a variant_part.
6362 * par-ch4.adb (Is_Parameterless_Attribute): New map.
6363 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
6364 attribute name or not depending on the new map.
6366 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
6367 returning a string or a type will not be called with improper
6370 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
6372 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
6375 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
6376 Signal an error when attribute argument is a fixed-point value of
6380 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
6381 a derived ordinary fixed point type.
6383 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
6384 RM_Size when a Small clause is found.
6386 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
6389 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
6390 Pass 'false' for the new allocate_struct_function parameter.
6391 * utils.c (build_function_stub): Likewise.
6393 2007-11-25 Richard Guenther <rguenther@suse.de>
6395 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
6396 (gnat_poplevel): Likewise.
6398 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
6400 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
6401 strict alignment, no alignment clause and a known static size, cap
6402 the type alignment to the greatest power of 2 factor of the size.
6403 (gnat_to_gnu_field): If the field has a component clause, is aliased
6404 or of a type with strict alignment, require that its size be equal to
6406 (validate_size): Use the type size as the minimum size for a type with
6409 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
6411 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
6412 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
6413 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
6414 Use 'Access instead of 'Unchecked_Access in second and third
6415 arguments of pthread_sigmask.
6417 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
6419 * decl.c (ceil_alignment): New function.
6420 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
6421 (make_packable_type): Likewise.
6423 2007-11-22 Olivier Hainque <hainque@adacore.com>
6425 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
6426 to fit in 80 columns.
6428 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
6430 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
6431 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
6433 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
6436 * misc.c (gnat_adjust_rli): Delete.
6437 (gnat_init): Do not initialize the translation code here.
6438 Do not call set_lang_adjust_rli.
6439 * trans.c (init_code_table): Make static.
6440 (gnat_init_stmt_group): Delete.
6441 (gigi): Initialize the translation code entirely here.
6442 Emit debug info for the common types here instead of...
6443 * utils.c (gnat_init_decl_processing): ...here.
6444 * gigi.h (init_code_table): Delete.
6445 (gnat_init_stmt_group): Likewise.
6447 2007-11-16 Olivier Hainque <hainque@adacore.com>
6449 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
6450 retrieving an allocator return value from a super-aligned address from
6452 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
6453 expect a super-aligned address for a fat or thin pointer.
6455 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
6457 * trans.c (call_to_gnu): Always set the source location on the call
6458 expression. If the function returns-by-target, also set it on the
6461 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
6463 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
6464 sections of non-supported Interix target.
6466 * s-osinte-interix.ads: Removed.
6468 * i-cstrin.ads (chars_ptr): Make it a C convention type.
6470 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
6472 * a-tasatt.adb: Add a comment at the beginning of the package
6473 explaining why in general 'Unchecked_Access must be used instead
6476 * sem_prag.adb (Process_Convention): Move the test for the
6477 entity on which the Convention pragma applies down to also
6478 forbid pragma Convention on enumeration literals reached
6481 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
6483 * a-tasatt.adb: Revert previous change for this file as it will
6484 generate an error when this package is instantiated from a
6487 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
6489 * a-tasatt.adb: Type Wrapper should be declared in comment instead
6490 of already declared type Node_Access.
6491 Use 'Access instead of 'Unchecked_Access when applicable. Local
6492 lifetime is the one of the package.
6493 (Set_Value): W is allocated on the heap.
6495 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
6497 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
6499 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
6502 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
6504 (elaboration code): Timer_Queue lifetime is the one of the
6507 * tracebak.c (i386 alternative): Remove useless comparaison
6508 which is always false; LOWEST_ADDRESS is 0 and is never greater
6509 than an unsigned integer.
6511 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
6512 embedded check for "Ada_Version >= Ada_05".
6514 2007-11-07 Olivier Hainque <hainque@adacore.com>
6516 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
6517 craft and expand comment.
6519 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
6521 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
6523 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
6525 * misc.c (gnat_handle_option): Replace call to abort with
6526 call to gcc_unreachable.
6527 (gnat_init): Likewise.
6528 (gnat_expand_expr): Likewise.
6529 (fp_prec_to_size): Likewise.
6530 (fp_size_to_prec): Likewise.
6532 2007-10-23 Richard Guenther <rguenther@suse.de>
6535 * tracebak.c: #undef abort after including system.h.
6537 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
6539 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
6540 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
6542 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
6544 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
6546 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
6547 Set the protection status of the guard page based on the value of On.
6549 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
6551 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
6552 (Exit_Task): Pass False to Hide_Yellow_Zone.
6554 2007-10-15 Robert Dewar <dewar@adacore.com>
6556 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
6557 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
6558 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
6559 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
6560 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
6561 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
6562 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
6563 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
6564 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
6565 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
6566 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
6567 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
6568 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
6569 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
6570 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
6571 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
6573 Add Unreferenced and Warnings (Off) pragmas for cases of
6574 variables modified calls where they are IN OUT or OUT parameters and
6575 the resulting values are not subsequently referenced. In a few cases,
6576 we also remove redundant code found by the new warnings.
6578 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
6579 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
6580 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
6581 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
6582 warning controlled by -gnatw.o that warns on cases of out parameter
6583 values being ignored.
6585 2007-10-15 Geert Bosch <bosch@adacore.com>
6587 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
6589 * expect.c: Initial port to arm-mentor-nucleus.
6590 Use kill for __gnat_kill() on VMS.
6592 2007-10-15 Emmanuel Briot <briot@adacore.com>
6594 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
6596 (Xref_Record): Change type for Line, since in the case of a reference to
6597 a predefined entity (as happens for array index types), the line is set
6599 Add support for parsing multiple array index types info, or
6600 multiple inherited interfaces info. This information cannot be stored
6601 in Xref_Entity_Record, which only supports a single instance of Tref_*,
6602 and is therefore stored in the list of references instead. It has a
6603 special treatement later on in tools that use this information.
6605 2007-10-15 Tristan Gingold <gingold@adacore.com>
6607 * debug.adb: Document use of -gnatd.a and -gnatd.I
6609 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
6611 2007-10-15 Javier Miranda <miranda@adacore.com>
6613 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
6614 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
6615 care of access to class-wide interface types plus removal of bizarre
6616 conversion of tagged object to access type (reported by Gary
6617 Dismukes). After this patch there is no need to perform any
6618 additional management on these nodes in Expand_Interface_Actuals.
6620 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
6621 that handles use of 'Access and 'Unchecked_Access applied to
6622 actuals covering interface types. Such code is now
6623 centralized in Expand_N_Attribute_Reference.
6625 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6627 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
6628 of tagged types whose ultimate ancestor is a CPP type.
6629 (Freeze_Array_Type): For a packed array type, generate an initialization
6630 procedure if the type is public, to handle properly a client that
6631 specifies Normalize_Scalars.
6633 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6635 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
6636 inside a generic body, retrieve the full view of the entry family
6637 discrete subtype if available.
6639 2007-10-15 Thomas Quinot <quinot@adacore.com>
6641 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
6642 attempt to generate stubs for hidden primitive operations.
6644 2007-10-15 Vincent Celier <celier@adacore.com>
6646 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
6647 returning None, used when there is no platform specific body for
6650 2007-10-15 Bob Duff <duff@adacore.com>
6652 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
6653 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
6654 the generic Heap_Sort_G, in order to avoid trampolines.
6656 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
6657 Jose Ruiz <ruiz@adacore.com>
6659 * vx_stack_info.c: New file.
6661 * i-forbla-unimplemented.ads: New file.
6663 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
6664 for unsupported configurations; use it on VMS targets instead of the
6666 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
6667 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
6668 used by VxWorks targets to have access to task-specific data and be
6669 able to extract the stack boundaries for stack checking.
6670 Use system-vms-ia64.ads on ivms.
6672 * Make-lang.in: Update dependencies.
6674 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
6677 2007-10-15 Vincent Celier <celier@adacore.com>
6679 * snames.adb, snames.ads: Add new standard name runtime_library_dir
6681 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
6683 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
6685 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
6686 the source is unknown.
6688 * prj-ext.adb: Spelling error fix
6690 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
6691 95 reserved word in its name.
6692 (Process_Project_Level_Array_Attributes): Process new attribute
6693 Runtime_Library_Dir.
6695 * prj-part.adb (Parse_Single_Project): Do not check the name of the
6696 config project against the user project names.
6698 * prj-proc.adb (Expression): In multi-language mode, indexes that do
6699 not include a dot are always case insensitive.
6700 (Process_Declarative_Items): Ditto
6701 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
6704 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
6705 True, compare both indexes in lower case.
6707 2007-10-15 Robert Dewar <dewar@adacore.com>
6709 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
6711 2007-10-15 Gary Dismukes <dismukes@adacore.com>
6713 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
6714 association for an access component, add an association with null as
6715 the expression. Remove testing for array subtypes and the setting in
6716 that case of Ctyp to the array component type, which prevented proper
6717 inclusion of an association for null-initialized arrays. Collapse
6718 condition that tests for array subtypes into just a test of
6719 Is_Partially_Initialized_Type (which already covers arrays anyway).
6721 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6723 * sem_ch12.adb: Minor code reformatting.
6724 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
6725 find the parent package which may have been hidden by local
6728 2007-10-15 Gary Dismukes <dismukes@adacore.com>
6730 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
6731 flag of derived concurrent types, taking into account the flag setting
6732 on the parent subtype and any new set of discriminants.
6734 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
6736 * sem_ch4.adb: Minor code and comment reformatting.
6737 (Analyze_Allocator): When the designated type of an unconstrained
6738 allocator is a record with unknown discriminants or an array with
6739 unknown range bounds, emit a detailed error message depending on the
6740 compilation mode and whether the designated type is limited.
6742 2007-10-15 Tristan Gingold <gingold@adacore.com>
6744 * system-vms-ia64.ads: New file.
6746 * system-vms_64.ads: Minor comment fix.
6748 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6750 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
6751 body generated for a function with a controlling result that is a null
6752 extension, discard the generated body in favor of the current explicit
6755 2007-10-15 Ed Schonberg <schonberg@adacore.com>
6757 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
6758 examining its original form, to handle properly operator calls that
6759 have been rewritten.
6761 2007-10-15 Olivier Hainque <hainque@adacore.com>
6763 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
6764 instead of a procedure value in each traceback entry.
6766 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
6767 instead of procedure value to TBK$SYMBOLIZE.
6769 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
6771 (TB_Entry_For): Account for the PV/FP renaming.
6773 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
6775 (Null_TB_Entry): Account for change of component name.
6776 (PV_For): Rename as FP_For.
6778 2007-10-15 Tristan Gingold <gingold@adacore.com>
6780 * trans.c (gnat_to_gnu): Remove the padding structure more often.
6781 This optimize assignment to over-aligned record.
6783 2007-10-15 Emmanuel Briot <briot@adacore.com>
6785 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
6788 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
6789 type, for dispatching calls.
6791 2007-10-15 Vincent Celier <celier@adacore.com>
6792 Robert Dewar <dewar@adacore.com>
6794 * gnat_ugn.texi: Add documentation for switches --version and --help
6795 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
6796 gnatxref, gnatfind, gnatls, and gnatclean.
6798 Mention attribute Excluded_Source_Dirs
6799 Replace obsolescent attribute Locally_Removed_Files with attribute
6800 Excluded_Source_Files.
6801 Improve documentation of -u (gnatbind)
6802 Document how to do reliable stack checking for the environmental task
6805 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
6806 Document attribute Excluded_Source_Files and indicate that attribute
6807 Locally_Removed_Files is obsolescent.
6809 2007-10-15 Thomas Quinot <quinot@adacore.com>
6811 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
6814 Update documentation to note that OpenVMS 8.3 or later must be used
6815 to generate g-soccon-vms.ads.
6817 * atree.adb: Add ??? comment
6819 * exp_util.adb: Minor reformatting.
6820 Add ??? comment in Kill_Dead_Code.
6822 2007-10-15 Robert Dewar <dewar@adacore.com>
6824 * errout.ads: Comment clarification
6826 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6827 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
6829 * lib.ads: Comment update
6831 * init.c: Minor reformatting.
6833 * sem_attr.adb: Minor formatting
6835 * osint-b.ads: Minor reformatting
6837 * sem_ch9.adb: Implement -gnatd.I switch
6839 * g-comlin.adb: (Start): Fix handling of empty command line.
6841 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
6842 even when -rules follows the -cargs section.
6844 2007-10-08 Ollie Wild <aaw@google.com>
6846 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
6848 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
6850 (gnat_eh_runtime_type): Removed.
6851 (gnat_return_tree): New function.
6853 2007-10-08 Ben Elliston <bje@au.ibm.com>
6857 2007-08-31 Ben Elliston <bje@au.ibm.com>
6859 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
6860 when compiling for powerpc64-*-linux.
6861 * system-linux-ppc64.ads: New file.
6863 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
6865 Mapped location support
6866 * back_end.adb (Call_Back_End): Pass information about source
6867 files instead of units to gigi.
6868 * gigi.h (struct File_Info_Type): New.
6869 (gigi): Rename and change type of number_units parameter, change
6870 type of file_info_ptr parameter.
6871 * trans.c (number_files): New global variable.
6872 (gigi): Rename and change type of number_units parameter, change
6873 type of file_info_ptr parameter.
6874 If mapped location support is enabled, create the isomorphic mapping
6875 between source files and line maps.
6876 (Sloc_to_locus): If mapped location support is enabled, translate
6877 source location into mapped location.
6878 (annotate_with_node): Rename into set_expr_location_from_node.
6879 Call set_expr_location instead of annotate_with_locus.
6880 (Pragma_to_gnu): Adjust for above change.
6881 (Loop_Statement_to_gnu): Likewise.
6882 (call_to_gnu): Likewise.
6883 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
6884 (gnat_to_gnu): Likewise.
6885 (add_stmt_with_node): Likewise.
6886 (add_cleanup): Likewise.
6887 * utils.c (gnat_init_decl_processing): Do not set input_line.
6889 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6891 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
6892 (Applicable_Use): Emit a warning when a package tries to use itself.
6893 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
6894 is already in use or the package where it is declared is in use or is
6895 declared in the current package.
6896 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
6898 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
6899 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
6900 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
6902 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
6904 * a-calend-vms.adb, a-calend.adb:
6905 Add a section on leap seconds control along with two entities used to
6906 enable and disable leap seconds support. The array Leap_Second_Times is
6907 now constant and contains hard time values pre-generated. Remove
6908 all elaboration code used to populate the table of leap seconds.
6911 Add entity Leap_Seconds_Support to the list of global run-time variables
6912 along with a comment on its usage and values.
6913 (Gen_Adainit_Ada): Add code to generate the declaration and import of
6914 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
6915 or one (enabled) depending on the presence of binder switch "-y".
6916 (Gen_Adainit_C): Add code to generate the declaration of external int
6917 __gl_leap_seconds_support. Set is value to zero (disabled) or one
6918 (enabled) depending on the presence of binder switch "-y".
6920 * init.c: Add __gl_leap_seconds_support to the list of global values
6921 computed by the binder.
6923 2007-09-26 Jerome Guitton <guitton@adacore.com>
6925 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
6926 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
6927 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
6928 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
6930 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
6932 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
6933 function which can be called by the debugger to interrupt the tasks of
6934 an Ada application asynchronously, as needed on VxWorks.
6935 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
6937 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
6938 renamed from Stop_All_Tasks. Update comments.
6939 (Stop_All_tasks): New function declaration.
6941 2007-09-26 Olivier Hainque <hainque@adacore.com>
6943 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
6944 #include <utime.h> and #define GCC_RESOURCE_H before
6945 #include <sys/wait.h>.
6946 Add more protections in __gnat_translate_vms.
6948 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
6949 #include <sys/wait.h>.
6951 2007-09-26 Thomas Quinot <quinot@adacore.com>
6952 Sergey Rybin <rybin@adacore.com>
6954 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
6956 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6959 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6961 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
6964 * sem_dist.ads: Minor comment fix
6966 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
6968 2007-09-26 Javier Miranda <miranda@adacore.com>
6969 Eric Botcazou <ebotcazou@adacore.com>
6972 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
6973 indirection added to the HT_Link component of the TSD. This is required
6974 to statically allocate the TSD.
6977 Minor reordering of the declarations in the private part. Required to
6978 add a level of indirection to the contents of the TSD component HT_Link.
6979 This is required to statically allocate the TSD.
6981 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
6982 Is_Statically_Allocated set from constant objects.
6983 Do not make exported constants created by the compiler volatile.
6984 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
6987 * trans.c (Identifier_to_gnu): For constants, unshare initializers
6988 before returning them.
6990 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
6991 public part of the package.
6992 (Make_DT): Move HT_Link component out of the TSD record. For this
6993 purpose Make_DT now declares a separate object that stores the
6994 HT_Link value, and initializes the TSD component with the address
6995 of this new object. The addition of this level of indirection is
6996 required to statically allocate the TSD because the TSD cannot
6997 have variable components.
6998 (Expand_Interface_Conversion): Improve the expanded code.
6999 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
7001 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
7002 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
7003 if we are building static dispatch tables then we must not generate
7004 extra code to register the primitive because the dispatch table will
7005 be built at the end of the library package; otherwise we notify that
7006 we cannot build the static dispatch table.
7008 2007-09-26 Robert Dewar <dewar@adacore.com>
7010 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
7013 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
7014 (Analyze_Record_Representation_Clause): Suppress junk warning for
7015 missing component clause.
7016 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
7017 tests for controlled type overlay to composites with controlled
7019 (Analyze_Record_Representation_Clause): Add reference for component name
7021 2007-09-26 Javier Miranda <miranda@adacore.com>
7022 Gary Dismukes <dismukes@adacore.com>
7024 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
7025 for thunks associated with interface types.
7027 * einfo.ads: Improve documentatation of Is_Internal
7028 (Is_Thunk): New attribute applicable to subprograms. True for thunks
7029 associated with interface types.
7030 Extensive comment fixes regarding flags that appear in all entities. The
7031 documentation is now consistent for all such flags (there were a number
7032 of errors in the documentation in this regard).
7034 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
7036 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
7037 of these procedures are passed a function call that already has
7038 build-in-place actuals (testing new flag
7039 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
7040 the case where processing continues.
7041 (Expand_Call): If the call is generated from a thunk body then we
7042 propagate the extra actuals associated with the accessibility
7043 level of the access type actuals.
7045 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
7046 of each extra formal of a protected operation to reference the
7047 corresponding extra formal of the subprogram denoted by the
7048 operation's Protected_Body_Subprogram.
7050 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
7051 N_Function_Call nodes.
7053 2007-09-26 Robert Dewar <dewar@adacore.com>
7055 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
7057 * debug.adb: Add d.s flag.
7059 2007-09-26 Gary Dismukes <dismukes@adacore.com>
7061 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
7062 debug variable so that it won't be initialized when pragma
7063 Initialize_Scalars is in effect.
7065 2007-09-26 Gary Dismukes <dismukes@adacore.com>
7067 * freeze.adb (Freeze_Entity): Remove check for preelaborable
7068 initialization of a full view. This is moved to
7069 Analyze_Package_Specification.
7071 * sem_ch7.adb (Analyze_Package_Specification): Add check for
7072 preelaborable initialization of a full view in entity loop.
7073 (Uninstall_Declarations): If entity is a use-visible compilation unit,
7074 its child units are use-visible only if they are visible child units.
7076 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
7077 whether an expression can be used within a type declaration that
7078 requires preelaborable init.
7079 (Check_Components): Replace inline code that does partial checking for
7080 preelaborable default expressions with call to
7081 Is_Preelaborable_Expression.
7082 (Has_Preelaborable_Initialization): In the case of a generic actual
7083 subtype, (that is, Is_Generic_Actual is True), return the result of
7084 applying Has_Preelaborable_Initialization to the generic actual's base
7087 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7089 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
7090 call to Jan_1_Day _Of_Week to optimize its performance.
7091 (Is_Leap): Move the routine to the scope of Week_In_Year.
7092 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
7093 weekday on which January 1 falls of Year - 1 and Year + 1. This function
7094 avoids calling Time_Of and Split, thus making it more efficent.
7095 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
7097 * g-calend.ads (Week_In_Year): Change comment to reflect new
7100 2007-09-26 Emmanuel Briot <briot@adacore.com>
7102 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
7103 Command_Line): New types
7104 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
7105 support for defining how switches can be grouped on a command line (as
7106 is the case for -gnatw... for GNAT), and how simple switches can be
7107 used as aliases for more complex switches (-gnatwa is same as
7109 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
7110 (Start, Current_*): New subprograms
7111 Added support for parsing an array of strings in addition to the real
7113 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
7114 be moved from the body to the private part of the spec.
7115 (*): All subprograms now have an extra parameter with default value to
7116 specify which parser should be used. For backward compatibility, it
7117 defaults to parsing the command line of the application. They were also
7118 modified to properly handle cases where each of the argument does not
7119 start at index 1 (which is always true for Ada.Command_Line, but not
7120 when processing any Argument_List).
7121 (Free): New subprogram
7122 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
7123 Argument): New subprograms
7124 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
7125 special characters like ':', '=',... are now handled in a single place,
7126 which makes the code more extensible eventually.
7127 (Getopt, Full_Switch): When the switch was returned as part of the
7128 special character '*', make sure it is prepended by the switch character
7129 ('-' in general), so that the application knows whether "foo" or "-foo"
7130 was specified on the command line.
7132 2007-09-26 Florian Villoing <villoing@adacore.com>
7134 * g-dirope.adb (Remove_Dir): In case we are removing directories
7135 recursively, make sure that if an exception is raised during the
7136 processing, the current working directory is reset to its initial
7137 value before propagating the exception.
7139 2007-09-26 Vincent Celier <celier@adacore.com>
7141 * gnatbind.adb: If there are several ALI files specified and there is
7142 a main program to bind, the first ALI is expected to contain the main
7143 subprogram and the names of the binder generated files will be derived
7144 from the first ALI file name.
7145 (Gnatbind): Fix insertion character in invocation of Error_Msg
7147 2007-09-26 Vincent Celier <celier@adacore.com>
7149 * gnatcmd.adb (Check_Files): Do not include sources that have been
7150 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
7152 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7154 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
7155 information about each of its index types, following the type
7156 reference for its component type.
7158 2007-09-26 Vincent Celier <celier@adacore.com>
7160 * make.adb: (Kill): New procedure (__gnat_kill imported)
7161 (Running_Compile, Outstanding_Compiles): Global variables that
7162 were previously local to procedure Compile_Sources.
7163 (Sigint_Intercepted): Send signal SIGINT to all outstanding
7164 compilation processes.
7166 (Gnatmake): If project files are used, create the mapping of all the
7167 sources, so that the correct paths will be found.
7169 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
7171 2007-09-26 Vincent Celier <celier@adacore.com>
7173 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
7175 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
7176 Replace components Compiler_Min_Options and Binder_Min_Options with
7177 Compiler_Required_Switches and Binder_Required_Switches in record
7179 Remove components Default_Language and Config in Project_Tree_Data,
7182 * prj-attr.adb: New attributes Required_Switches (<language>) in
7183 packages Compiler and Binder.
7185 * prj-nmsc.adb: Major rewrite of the processing of configuration
7186 attributes for gprbuild. No impact on GNAT tools.
7188 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
7189 process configuration attributes: this is done in Prj.Nmsc.Check.
7190 (Recursive_Process): Make a full copy of packages inherited from project
7191 being extended, instead of a shallow copy.
7192 (Process_Project_Tree_Phase_1): New procedure
7193 (Process_Project_Tree_Phase_1): New procedure
7194 (Process): Implementation now uses the two new procedures
7196 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
7197 from the project config, not the tree config that no longer exists.
7199 2007-09-26 Vincent Celier <celier@adacore.com>
7201 * Make-lang.in: Update dependencies..
7203 2007-09-26 Vincent Celier <celier@adacore.com>
7205 * osint.adb, osint.ads: Minor reformatting
7207 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
7209 2007-09-26 Gary Dismukes <dismukes@adacore.com>
7211 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
7212 message to cite use of <> in aggregate component associations rather
7213 than wrongly indicating use of limited aggregates.
7215 2007-09-26 Robert Dewar <dewar@adacore.com>
7217 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
7220 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7222 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
7223 ancestor of the derived type, the operations are inherited from the
7224 primary dispatch table of the parent.
7225 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
7226 when the context is an explicit type conversion.
7228 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7230 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
7231 rule for qualified expressions properly, to detect improper conversions
7232 and resolve some cases of overloading.
7234 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7236 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
7237 proper kind of reference to the primitive operation, for better source
7239 (Valid_Conversion): A tagged conversion is legal if both operands are
7242 2007-09-26 Robert Dewar <dewar@adacore.com>
7244 * sem_warn.adb (Check_References): Catch more cases of unreferenced
7247 2007-09-26 Vincent Celier <celier@adacore.com>
7249 * snames.adb, snames.ads: Change Include_Option to Include_Switches
7251 2007-09-26 Robert Dewar <dewar@adacore.com>
7253 * s-wchstw.adb: provide messages for run time unit exceptions
7255 * a-witeio.adb: Minor reformatting
7257 * exp_ch13.adb: Minor reformatting
7259 2007-09-26 Sergey Rybin <rybin@adacore.com>
7261 * vms_data.ads: Revise gnatmetric qualifiers.
7262 Add qualified for the new gnatbind option '-y'
7264 * gnat_ugn.texi: Revise the gnatmetric section.
7265 Add entry for new gnatbind option '-y'.
7267 * gnat_rm.texi: Minor spelling correction.
7268 Document restriction on overlaying controlled types
7270 2007-09-26 Vincent Celier <celier@adacore.com>
7272 * makegpr.adb (Link_Executables): Do not fail when the root project has
7273 no sources, but is an extending project.
7275 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
7277 * trans.c: Fix misplaced #define.
7279 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
7281 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
7282 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
7284 2007-09-21 Olivier Hainque <hainque@adacore.com>
7286 * utils.c (type_for_nonaliased_component_p): Return false for
7287 all AGGREGATE_TYPEs.
7289 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
7291 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
7292 object covered by 13.3(19) volatile.
7294 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
7298 * utils.c (unchecked_convert): Use a subtype as the intermediate type
7299 in the special VIEW_CONVERT_EXPR case.
7301 2007-09-12 Robert Dewar <dewar@adacore.com>
7303 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
7305 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
7306 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
7307 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
7308 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
7309 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
7310 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
7311 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
7312 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
7313 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
7314 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
7315 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
7316 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
7317 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
7318 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
7319 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
7320 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
7321 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
7322 pragma Compiler_Unit and adds it to relevant library units.
7324 2007-09-12 Ed Schonberg <schonberg@adacore.com>
7326 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
7327 a box need not correspond to any component.
7329 2007-09-12 Robert Dewar <dewar@adacore.com>
7331 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
7332 the tasking version of the Ada run time when foreign threads are
7333 present and there are no explicit Ada tasks or tasking constructs.
7335 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
7337 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
7339 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
7340 the usage of switch -y.
7342 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
7343 when switch -y is present.
7345 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
7346 leap seconds in Ada.Calendar and its children.
7348 2007-09-12 Jose Ruiz <ruiz@adacore.com>
7350 * a-extiti.ads (Timer): The discriminant is a "not null access
7351 constant" in the Reference Manual.
7352 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
7354 2007-09-12 Robert Dewar <dewar@adacore.com>
7356 * a-swuwha.adb: Remove junk RM header
7358 2007-09-12 Vincent Celier <celier@adacore.com>
7360 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
7363 * g-bytswa.ads: Minor reformatting
7365 2007-09-12 Thomas Quinot <quinot@adacore.com>
7367 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
7368 Add new constant Thread_Blocking_IO, always True by default, set False
7369 on a per-runtime basis.
7370 (Need_Netdb_Buffer): New constant.
7372 2007-09-12 Arnaud Charlet <charlet@adacore.com>
7374 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
7375 Added renames for corresponding functions in System.Partition_Interface.
7377 2007-09-12 Doug Rupp <rupp@adacore.com>
7379 * Makefile.in: Remove VMS specific System.CRTL packages which are no
7382 * s-crtl-vms64.ads: Removed.
7384 2007-09-12 Olivier Hainque <hainque@adacore.com>
7386 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
7387 with discriminant constraints, generalize the code for BIT_FIELDs
7388 to PACKED fields of constant size and propagate DECL_PACKED.
7390 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
7392 * decl.c (array_type_has_nonaliased_component): New predicate.
7393 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
7394 set the TYPE_NONALIASED_COMPONENT flag on the type.
7395 <E_Array_Subtype>: Likewise.
7396 * gigi.h (type_for_nonaliased_component_p): Declare.
7397 * utils.c (type_for_nonaliased_component_p): New predicate.
7398 (create_field_decl): Invoke the above predicate to set the
7399 DECL_NONADDRESSABLE_P flag on the field.
7401 2007-09-11 Javier Miranda <miranda@adacore.com>
7403 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
7404 in library level record type entities if we are generating statically
7405 allocated dispatch tables.
7407 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
7408 importing/exporting the _tag declaration by new code
7409 importing/exporting the dispatch table wrapper. This change allows us
7410 to statically allocate of the TSD.
7411 (Make_DT.Export_DT): New procedure.
7412 (Build_Static_DT): New function.
7413 (Has_DT): New function.
7415 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
7416 True_Constant and Current_Value. Required to statically
7417 allocate the dispatch tables.
7418 (Check_Allocator): Make function iterative instead of recursive.
7419 Also return inner allocator node, when present, so that we do not have
7420 to look for that node again in the caller.
7422 2007-09-11 Jan Hubicka <jh@suse.cz>
7424 * misc.c (gnat_expand_body): Kill.
7425 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
7427 2007-09-10 Robert Dewar <dewar@adacore.com>
7429 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
7430 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
7431 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
7432 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
7433 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
7434 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
7435 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
7436 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
7437 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
7438 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
7439 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
7440 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
7441 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
7442 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
7443 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
7444 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
7445 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
7446 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
7447 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
7448 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
7449 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
7450 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
7451 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
7452 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
7453 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
7454 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
7455 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
7456 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
7457 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
7458 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
7459 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
7460 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
7461 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
7462 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
7463 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
7464 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
7465 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
7466 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
7467 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
7468 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
7469 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
7470 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
7471 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
7472 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
7473 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
7474 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
7475 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
7476 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
7477 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
7478 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
7479 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
7480 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
7481 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
7482 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
7483 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
7484 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
7485 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
7486 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
7487 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
7488 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
7489 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
7490 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
7491 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
7492 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
7493 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
7494 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
7495 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
7496 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
7497 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
7498 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
7499 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
7500 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
7501 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
7502 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
7503 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
7504 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
7505 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
7506 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
7507 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
7508 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
7509 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
7510 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
7511 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
7513 2007-09-10 Emmanuel Briot <briot@adacore.com>
7515 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
7518 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
7520 * adaint.c (__gnat_translate_vms): new function.
7522 2007-09-10 Gary Dismukes <dismukes@adacore.com>
7523 Thomas Quinot <quinot@adacore.com>
7525 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
7526 create an abstract subprogram in the case of 'Input. For 'Output we now
7527 create a real spec/body when the type is abstract, since it can
7528 potentially be called.
7529 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
7530 body for 'Output when the type is abstract (only the creation of the
7531 body for 'Input is excluded when the type is abstract).
7532 (Stream_Operation_OK): Add an additional condition in the return
7533 statement, so that False will be returned for TTS_Stream_Input if the
7534 associated tagged type is an abstract extension. Add comments for
7536 (Expand_N_Object_Declaration): For the case of a shared passive
7537 variable, insert init proc call only after the shared variable
7538 procedures have been processed, because the IP call needs to undergo
7539 shared passive variable reference expansion, which requires these
7540 procedures to be available (and elaborated).
7542 2007-09-10 Vincent Celier <celier@adacore.com>
7544 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
7545 parameter Runtime_Project.
7547 2007-09-10 Ed Schonberg <schonberg@adacore.com>
7549 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
7550 given a box association, the type of the component is discriminated,
7551 and the value of the discriminant is the discriminant of the enclosing
7552 type, retrieve its value from the aggregate itself, where it must have
7555 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
7556 to remove other spurious ambiguities on arithmetic operations involving
7557 literals and addresses, on systems where Address is a visible integer
7558 type, when the operator is called in functional notation.
7559 (Try_Primitive_Operation): Within an instance, a call in prefixed form
7560 is legal when the types match, even if the operation is currently
7563 2007-09-10 Ed Schonberg <schonberg@adacore.com>
7565 * sem_ch12.adb (Build_Local_Package): A formal package with no
7566 associations is legal if all formals have defaults. It is not
7567 equivalent to a formal declared with a box.
7569 2007-09-10 Sergey Rybin <rybin@adacore.com>
7571 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
7573 2007-09-10 Sergey Rybin <rybin@adacore.com>
7575 * gnat_ugn.texi: Add description of the new '-lratio' option
7576 Update 7.3.1 section about availability of the feature.
7578 2007-09-10 Thomas Quinot <quinot@adacore.com>
7580 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
7583 2007-09-10 Olivier Hainque <hainque@adacore.com>
7585 * Makefile.in: (mips-irix section): Activate build of libgmem.
7587 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
7589 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
7592 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
7594 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
7595 a debug renaming declaration specially.
7597 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
7599 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
7600 which a constant renaming is treated as a normal object declaration.
7601 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
7602 the N_Indexed_Component case.
7603 <N_Indexed_Component>: Fall through to above case.
7604 <N_Object_Renaming_Declaration>: Return true for all composite types.
7606 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
7608 * decl.c (make_packable_type): If the new type has been given BLKmode,
7609 try again to get an integral mode for it.
7611 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
7613 Re-apply accidentally reverted change:
7615 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
7617 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
7618 get_action_description_for): Replace _Unwind_Word with _uleb128_t
7619 and _Unwind_SWord with _sleb128_t.
7621 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
7623 * trans.c (convert_with_check): Update call to real_2expN.
7625 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
7627 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
7628 * utils.c (end_subprog_body): Likewise.
7630 2007-09-03 Nick Clifton <nickc@redhat.com>
7632 * Make-lang.in: Change copyright header to refer to version 3 of
7633 the GNU General Public License and to point readers at the
7634 COPYING3 file and the FSF's license web page.
7635 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
7636 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
7637 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
7638 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
7641 2007-08-31 Vincent Celier <celier@adacore.com>
7645 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
7646 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
7647 (Check_Version_And_Help): New procedure in package Switch to process
7648 switches --version and --help.
7649 Use Check_Version_And_Help in GNAT tools
7652 (Compile_Sources): Make sure that sources that are "excluded" are not
7654 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
7655 project file is used.
7656 (Version_Switch): Remove, moved to Switch
7657 (Help_Switch): Remove, moved to Switch
7658 (Display_Version): Remove, moved to Switch
7660 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
7661 package Switch to process switches --version and --help.
7662 (Display_Version): New procedure
7664 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
7666 2007-08-31 Javier Miranda <miranda@adacore.com>
7668 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
7671 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7673 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
7674 (Mark_Non_Null): If the node for which we just generated an access check
7675 is a reference to an *in* parameter and the reference appears in the
7676 declarative part of a subprogram body, mark the node as known non null.
7678 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7680 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
7681 structure of E_Exception to reflect the new flag.
7682 (Is_Raised, Set_Is_Raised): New inlined routines.
7683 Update the usage of available flag to reflect the addition of Is_Raised.
7684 (Is_Raised, Set_Is_Raised): Bodies of new routines.
7685 (Write_Entity_Flags): Write the status of flag Is_Raised.
7686 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
7687 spurious ambiguities when integer literals appear in the context of an
7688 address type that is a visible integer type.
7690 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
7691 exceptions never being raised.
7692 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
7695 2007-08-31 Javier Miranda <miranda@adacore.com>
7697 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
7698 statement when compiling under restriction No_Exceptions_Proparation.
7700 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7702 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
7703 initialization aggregate for the type, generate itype references for
7704 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
7706 2007-08-31 Gary Dismukes <dismukes@adacore.com>
7708 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
7709 library-level package renaming, pass the declaration associated with
7710 the renaming's special debug variable to Qualify_Entity_Names to ensure
7711 that its encoded name is properly qualified.
7713 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
7714 occurring in the list of entities to qualify, and do not attempt to
7715 traverse an entity list in that case. Variables associated with
7716 ` library-level package renamings can now occur in the table.
7718 * exp_dbug.ads: Revise documentation of the encoding for renaming
7721 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7723 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
7724 access type points to an unconstrained array.
7726 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
7728 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
7731 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
7732 simple redundant qualifications. The check is performed whenever the
7733 expression is a non-overloaded identifier.
7734 (Resolve_Type_Conversion): Enchance the redundant type conversion check
7735 to include loop parameters.
7736 (Valid_Conversion): Avoid generation of spurious error message.
7738 2007-08-31 Bob Duff <duff@adacore.com>
7740 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
7741 concatenations of string literals into a single literal, in order to
7742 avoid very deep recursion in the front end, which was causing stack
7745 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
7746 string, and the right operand is a string literal (the case of "" &
7747 "..."), optimize by avoiding copying the right operand -- just use the
7748 value of the right operand directly.
7750 * stringt.adb (Store_String_Chars): Optimize by growing the
7751 String_Chars table all at once, rather than appending characters one by
7753 (Write_String_Table_Entry): If the string to be printed is very long,
7754 just print the first few characters, followed by the length. Otherwise,
7755 doing "pn(n)" in the debugger can take an extremely long time.
7757 * sem_prag.adb (Process_Interface_Name): Replace loop doing
7758 Store_String_Char with Store_String_Chars.
7760 2007-08-31 Vincent Celier <celier@adacore.com>
7762 * prj-attr.adb: Add new attribute Excluded_Source_Files
7764 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
7765 Locally_Removed_Files.
7767 * snames.ads, snames.adb: New standard name Excluded_Source_Files
7769 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7771 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
7772 clauses of subunits, ignore limited_with_clauses that are illegal and
7773 have not been fully analyzed.
7775 2007-08-31 Ed Schonberg <schonberg@adacore.com>
7777 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
7778 flag, for effiency. It is called when analyzing arithmetic operators
7779 and also for actuals in calls that are universal_integers. The flag is
7780 set for the predefined type address, and for any type or subtype
7783 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
7784 Universal_Integer, when the formal is a descendent of address and the
7785 call appears in user code.
7786 (Analyze_Selected_Component): if the prefix is a private extension, the
7787 tag component is visible.
7789 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
7792 2007-08-31 Robert Dewar <dewar@adacore.com>
7794 * s-fileio.adb (Open): Normalize file name to lower case in non-case
7795 sensitive file name systems to avoid unexpected mismatch in Vista.
7797 2007-08-31 Vincent Celier <celier@adacore.com>
7799 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
7801 2007-08-31 Vincent Celier <celier@adacore.com>
7803 * symbols-vms.adb (Initialize): Read symbol files with continuation
7805 (Finalize): If symbol is long, split the line
7807 2007-08-31 Vincent Celier <celier@adacore.com>
7809 * fmap.ads: Minor comment updates
7811 2007-08-31 GNAT Script <nobody@adacore.com>
7813 * Make-lang.in: Makefile automatically updated
7815 2007-08-31 Bob Duff <duff@adacore.com>
7817 * sinfo.ads: Minor comment fix.
7819 2007-08-31 Thomas Quinot <quinot@adacore.com>
7821 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
7822 with implementation.
7823 Documentation cleanup only.
7825 2007-08-31 Sergey Rybin <rybin@adacore.com>
7827 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
7828 gnatpp '--separate-stmt-name' option.
7829 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
7832 * gnat_ugn.texi: Add description for the new gnatpp
7833 '--separate-stmt-name' and '--use-on-new-line' options.
7835 2007-08-31 Ben Elliston <bje@au.ibm.com>
7837 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7838 when compiling for powerpc64-*-linux.
7839 * system-linux-ppc64.ads: New file.
7841 2007-08-22 Krister Walfridsson <cato@df.lth.se>
7843 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
7846 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7848 * misc.c (gnat_type_max_size): Constify.
7850 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7852 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
7853 associated with Standard_Debug_Renaming_Type, to be used as the type of
7854 the special variables whose names provide debugger encodings for
7855 renaming declarations.
7857 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
7858 (Set_Debug_Renaming_Link): Change to set Node25.
7859 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
7860 (Write_Field25_Name): Add case for E_Variable to output
7861 "Debug_Renaming_Link".
7862 (Write_Field23_Name): Correct the output string for "Limited_View".
7864 * exp_dbug.adb: Add with and use of Tbuild.
7865 (Debug_Renaming_Declaration): Replace creation of an enumeration type
7866 and literal with creation of a variable of type
7867 Standard_Debug_Renaming_Type whose name encodes both the renamed object
7868 and the entity of the renaming declaration.
7869 (Qualify_Entity_Name): Add the delayed qualification of the entity name
7870 part of the name of a variable that has a Debug_Renaming_Link.
7872 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
7873 special type to be associated with variables that provide debugger
7874 encodings for renaming declarations.
7876 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7877 Ed Schonberg <schonberg@adacore.com>
7878 Javier Miranda <miranda@adacore.com>
7880 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
7881 ancestor part given by an aggregate to test for an unchecked conversion,
7882 since this can occur in some cases when the ancestor part is a function
7883 call, and we don't want to fall into the recursive call to this
7884 procedure in that case.
7886 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
7887 stream attributes on limited types to account for user-specified
7888 attributes as well as whether Input (resp. Output) becomes available
7889 due to Read (resp. Write) being available for the type. Change Boolean
7890 variable to the more accurate name
7891 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
7892 double-"not" predicate at beginning of return statement to more
7893 understandable form.
7895 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
7896 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
7897 in a block statement and use that as the first statement of the
7898 expanded return rather than incorrectly using the handled sequence as
7899 the first statement.
7901 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
7902 operation, generate an explicit freeze node for it rather than
7903 generating extra formals, to ensure that gigi has the proper order of
7904 elaboration for anonymous subtypes in the signature of the subprograms.
7905 (Build_In_Place_Formal): Move assertion to beginning of loop.
7906 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
7907 applied to a function call (occurs for some cases of 'Input).
7908 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
7909 applied to a function call (occurs for some cases of 'Input).
7911 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
7912 2005, generate an extended return statement enclosing the result object
7915 * freeze.adb (Freeze_Record_Type): Extend the current management of
7916 components that are access type with an allocator as default value: add
7917 missing support to the use of qualified expressions of the
7918 allocator (which also cause freezing of the designated type!)
7919 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
7920 dispatching operation, since extra formals may be needed by calls to
7921 build-in-place functions (such as stream 'Input).
7923 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
7924 formals for 'Constrained and accessibility level in the case of a
7925 predefined dispatching operation.
7927 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
7928 point, no need to find the parent node.
7930 2007-08-16 Javier Miranda <miranda@adacore.com>
7932 * exp_attr.adb (Attribute_Priority): Add missing support for entries
7935 2007-08-16 Javier Miranda <miranda@adacore.com>
7937 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
7938 is not really required and can introduce regression with the debugger.
7939 The original problem is fixed with the patch written for checks.adb.
7941 2007-08-16 Thomas Quinot <quinot@adacore.com>
7943 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
7944 Range_Check on Allocated_Table.
7946 2007-08-16 Vincent Celier <celier@adacore.com>
7948 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
7949 Including_Non_Switch set to False.
7950 (Gnatmake): For the compiler, call Test_If_Relative_Path with
7951 Including_Non_Switch set to False.
7953 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
7954 parameter Including_Non_Switch, defaulted to True. When
7955 Including_Non_Switch is False, options that are not switches and
7956 appear as relative path are not converted to absolute paths.
7958 2007-08-16 Nicolas Roche <roche@adacore.com>
7960 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
7963 * Make-lang.in: Update dependencies
7965 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
7967 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
7968 currently inspected is a selected component, retrieve the entity of
7970 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
7971 from the immediate ancestor of Main_Unit_Entity.
7972 (Install_Limited_Withed_Unit): Do not install the limited view of
7973 package P if P is reachable through an ancestor chain from package C
7974 and C also has a with clause for P in its body.
7975 (Has_Limited_With_Clause): New routine.
7976 (Has_With_Clause): New routine.
7978 2007-08-16 Ed Schonberg <schonberg@adacore.com>
7980 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
7981 generic for an enclosing instance is a global reference, even though
7982 its scope is the enclosing instance.
7984 2007-08-16 Gary Dismukes <dismukes@adacore.com>
7985 Javier Miranda <miranda@adacore.com>
7987 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
7988 initialize a limited object.
7989 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
7991 Make sure Has_Complex_Representation is inherited by derived type.
7993 2007-08-16 Robert Dewar <dewar@adacore.com>
7995 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
7998 2007-08-16 Ed Schonberg <schonberg@adacore.com>
8000 * sem_disp.adb (Check_Dispatching_Operation): If the operation
8001 implements an operation inherited from a progenitor interface, verify
8002 that they are subtype-conformant.
8004 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
8005 Bob Duff <duff@adacore.com>
8006 Nicolas Setton <setton@adacore.com>
8008 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
8009 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
8010 the statement which is being resolved comes from a predefined library
8011 unit, all non-predefined library interpretations are skipped.
8012 (Resolve_Op_Concat): If string concatenation was folded in the parser,
8013 but the "&" is user defined, give an error, because the folding would
8016 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
8017 the parser has folded a long sequence of concatenations of string
8020 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
8021 and "JMP_BUF" variables as artificial.
8022 (N_String_Literal): Do not use alloca for very long string literals. Use
8023 xmalloc/free instead. Otherwise the stack might overflow.
8025 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
8028 2007-08-16 Vincent Celier <celier@adacore.com>
8030 * vms_conv.adb (Process_Argument): Ensure that project related options
8031 are not put in the -cargs section when using GNAT COMPILE.
8033 2007-08-16 Robert Dewar <dewar@adacore.com>
8035 * gnat_ugn.texi: Add note on preprocessing (output file not written)
8037 2007-08-16 Thomas Quinot <quinot@adacore.com>
8039 * a-tags.adb: Minor reformatting.
8041 2007-08-16 Bob Duff <duff@adacore.com>
8043 * sem_type.ads, sem_ch4.adb: Minor reformatting.
8045 2007-08-14 Thomas Quinot <quinot@adacore.com>
8047 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
8048 s-osinte-interix.ads, system-interix.ads: Removed.
8050 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
8052 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
8053 calls to Check_Within_Time_Bounds.
8054 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
8055 (Difference): Account for possible rounding of the resulting difference
8057 2007-08-14 Robert Dewar <dewar@adacore.com>
8059 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
8060 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
8061 s-osinte-solaris.adb, s-osinte-solaris.ads,
8062 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
8064 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
8065 switch -gnatyS. Enable -gnatyS in GNAT style check mode
8067 2007-08-14 Robert Dewar <dewar@adacore.com>
8068 Ed Schonberg <schonberg@adacore.com>
8070 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
8071 Suppress unmodified in-out parameter warning in some cases
8072 This patch is a also fairly significant change to the way suppressible
8075 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
8076 needed for access to concurrent record types generated by the expander.
8077 (Generate_Range_Check): When generating a temporary to capture the
8078 value of a conversion that requires a range check, set the type of the
8079 temporary before rewriting the node, so that the type is always
8080 properly placed for back-end use.
8081 (Apply_Float_Conversion_Check): Handle case where the conversion is
8083 (Get_Discriminal): Code reformatting. Climb the scope stack looking
8084 for a protected type in order to examine its discriminants.
8086 2007-08-14 Robert Dewar <dewar@adacore.com>
8087 Gary Dismukes <dismukes@adacore.com>
8088 Ed Schonberg <schonberg@adacore.com>
8089 Thomas Quinot <quinot@adacore.com>
8091 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
8092 a-stwisu.adb, a-strsup.adb: Fix warnings for range
8093 tests optimized out.
8095 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
8096 (Get_Allocator_Final_List): For the case of an anonymous access type
8097 that has a specified Associated_Final_Chain, do not go up to the
8099 (Expand_N_Type_Conversion): Test for the case of renamings of access
8100 parameters when deciding whether to apply a run-time accessibility
8102 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
8103 aggregate code before allocator, and ahead of declaration for
8104 temporary, to prevent access before elaboration when the allocator is
8105 an actual for an access parameter.
8106 (Expand_N_Type_Conversion): On an access type conversion involving an
8107 access parameter, do not apply an accessibility check when the
8108 operand's original node was an attribute other than 'Access. We now
8109 create access conversions for the expansion of 'Unchecked_Access and
8110 'Unrestricted_Access in certain cases and clearly accessibility should
8111 not be checked for those.
8113 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
8114 includes a type conversion of a packed component that has been expanded,
8115 recover the original expression for the object, and use this expression
8116 in the post-call assignment statement, so that the assignment is made
8117 to the object and not to a back-end temporary.
8118 (Freeze_Subprogram): In case of primitives of tagged types not defined
8119 at the library level force generation of code to register the primitive
8120 in the dispatch table. In addition some code reorganization has been
8121 done to leave the implementation clear.
8122 (Expand_Call): When expanding an inherited implicit conversion,
8123 preserve the type of the inherited function after the intrinsic
8124 operation has been expanded.
8126 * exp_ch2.ads, exp_ch2.adb
8127 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
8128 of an entry formal appearing in an assignment statement does not assign
8130 (Expand_Current_Value): Instead of calling a routine to determine
8131 whether the prefix of an attribute reference should be optimized or
8132 not, prevent the optimization of such prefixes all together.
8134 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
8135 component whose prefix is known to be of an access type is an implicit
8136 dereference and does not assign to the prefix.
8138 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8139 Robert Dewar <dewar@adacore.com>
8141 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
8142 itype is visited, make an entry into table to link associated node and
8144 Add comments and correct harmless error in Build_NCT_Hash_Tables
8145 (Array_Aggr_Subtype): Associate each itype created for an index type to
8146 the corresponding range construct, and not to the aggregate itself. to
8147 maintain a one-to-one correspondence between itype and its associated
8148 node, to prevent errors when complex expression is copied.
8149 Fix mishandling of multiple levels of parens
8151 * sem_aggr.adb: Create a limited view of an incomplete type, to make
8152 treatment of limited views uniform for all visible declarations in a
8153 limited_withed package.
8154 (New_Copy_Tree): If hash table is being used and itype is visited,
8155 make an entry into table to link associated node and new itype.
8156 (Resolve_Record_Aggregate): Do not add an others box association for a
8157 discriminated record component that has only discriminants, when there
8158 is a box association for the component itself.
8160 * par-ch4.adb: Fix mishandling of multiple levels of parens
8162 2007-08-14 Robert Dewar <dewar@adacore.com>
8164 * comperr.adb: Fix problem with suppressing warning messages from gigi
8166 * erroutc.ads, erroutc.adb, errout.ads,
8167 errout.adb (Write_Eol): Remove trailing spaces before writing the line
8168 (Write_Eol_Keep_Blanks): New procedure to write a line, including
8169 possible trailing spaces.
8170 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
8171 Fix problem with suppressing warning messages from back end
8172 Improve handling of deleted warnings
8175 Fix problem with suppressing warning messages from back end
8176 Handle setting of Static_Dispatch_Tables flag.
8179 Fix problem with suppressing warning messages from back end
8181 * exp_intr.adb: Improve handling of deleted warnings
8183 2007-08-14 Robert Dewar <dewar@adacore.com>
8185 * debug.adb: Improve -gnatdI to cover all cases of serialization
8186 Add documentation of dZ, d.t
8188 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
8190 (Sprint_Node_Actual): Generate new output associated with implicit
8191 importation and implicit exportation of object declarations.
8193 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8194 Robert Dewar <dewar@adacore.com>
8195 Javier Miranda <miranda@adacore.com>
8196 Gary Dismukes <dismukes@adacore.com>
8198 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
8199 to make treatment of limited views uniform for all visible declarations
8200 in a limited_withed package.
8201 Improve warnings for in out parameters
8202 (Set_Related_Interaface/Related_Interface): Allow the use of this
8203 attribute with constants.
8204 (Write_Field26_Name): Handle attribute Related_Interface in constants.
8205 Warn on duplicate pragma Preelaborable_Initialialization
8207 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
8208 generation of a freezing node to ensure proper management of null
8209 excluding access types in the backend.
8210 (Create_Extra_Formals): Test base type of the formal when checking for
8211 the need to add an extra accessibility-level formal. Pass the entity E
8212 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
8213 originally being done in a couple of cases), to ensure that the
8214 Extra_Formals list gets set on the entity E when the first entity is
8216 (Conforming_Types): Add missing calls to Base_Type to the code that
8217 handles anonymous access types. This is required to handle the
8218 general case because Process_Formals builds internal subtype entities
8219 to handle null-excluding access types.
8220 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8221 functions that need it, even when not marked Requires_Overriding.
8222 Improve warnings for in out parameters
8223 (Analyze_Function_Return): Warn for disallowed null return
8224 Warn on return from procedure with unset out parameter
8225 Ensure consistent use of # in error messages
8226 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
8227 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
8228 the implicit conversion of the expression done for anonymous access
8229 types. This is required to generate the code of the null excluding
8230 check (if required).
8232 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
8233 A formal parameter is never publicly referenceable outside of its body.
8234 (Check_References): For an unreferenced formal parameter in an accept
8235 statement, use the same warning circuitry as for subprogram formal
8237 (Warn_On_Unreferenced_Entity): New subprogram, taken from
8238 Output_Unreferenced_Messages, containing the part of that routine that
8239 is now reused for entry formals as described above.
8240 (Goto_Spec_Entity): New function
8241 (Check_References): Do not give IN OUT warning for dispatching operation
8242 Improve warnings for in out parameters
8243 (Test_Ref): Check that the entity is not undefinite before calling
8244 Scope_Within, in order to avoid infinite loops.
8245 Warn on return from procedure with unset out parameter
8246 Improved warnings for unused variables
8248 2007-08-14 Robert Dewar <dewar@adacore.com>
8249 Javier Miranda <miranda@adacore.com>
8250 Gary Dismukes <dismukes@adacore.com>
8252 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
8253 (Expand_N_Attribute_Reference): Further unify the handling of the
8254 three forms of access attributes, using common code now for all three
8255 cases. Add a test for the case of applying an access attribute to
8256 an explicit dereference when the context is an access-to-interface
8257 type. In that case we need to apply the conversion to the prefix
8258 of the explicit dereference rather than the prefix of the attribute.
8259 (Attribute_Version, UET_Address): Set entity as internal to ensure
8260 proper dg output of implicit importation.
8261 (Expand_Access_To_Type): Removed.
8262 (Expand_N_Attribute_Reference): Merge the code from the three cases
8263 of access attributes, since the processing is largely identical for
8264 these cases. The substantive fix here is to process the case of a
8265 type name prefix (current instance case) before handling the case
8266 of interface prefixes.
8268 2007-08-14 Thomas Quinot <quinot@adacore.com>
8269 Ed Schonberg <schonberg@adacore.com>
8270 Javier Miranda <miranda@adacore.com>
8271 Robert Dewar <dewar@adacore.com>
8273 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
8274 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
8275 type that is an anonymous access to controlled object, establish
8276 an associated finalization chain to avoid corrupting the global
8277 finalization list when a dynamically allocated object designated
8278 by such a component is deallocated.
8279 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8280 functions that need it, even when not marked Requires_Overriding.
8281 (Initialize_Tag): Replace call to has_discriminants by call to
8282 Is_Variable_Size_Record in the circuitry that handles the
8283 initialization of secondary tags.
8284 (Is_Variable_Size_Record): New implementation.
8285 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
8286 Suppress_Initialization pragma for a derived type.
8287 (Is_Variable_Size_Record): New subprogram.
8288 (Build_Offset_To_Top_Functions): New implementation that simplifies the
8289 initial version of this routine and also fixes problems causing
8290 incomplete initialization of the table of interfaces.
8291 (Build_Init_Procedure): Improve the generation of code to initialize the
8292 the tag components of secondary dispatch tables.
8293 (Init_Secondary_Tags): New implementation that simplifies the previous
8294 version of this routine.
8295 (Make_DT): Add parameter to indicate when type has been frozen by an
8296 object declaration, for diagnostic purposes.
8297 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
8298 diagnose attemps to freeze a subprogram when some untagged type of its
8299 profile is a private type whose full view has not been analyzed yet.
8300 (Freeze_Array_Type): Generate init proc for packed array if either
8301 Initialize or Normalize_Scalars is set.
8302 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
8303 constructing the new profile, copy the null_exclusion indicator for each
8304 parameter, to ensure full conformance of the new body with the spec.
8306 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
8307 Create wrappers for constructor functions that need it, even when not
8308 marked Requires_Overriding.
8309 (Covers): Handle properly designated types of anonymous access types,
8310 whose non-limited views are themselves incomplete types.
8311 (Add_Entry): Use an entity to store the abstract operation which hides
8313 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
8314 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
8315 initialization aggregate.
8316 (Function_Interp_May_Be_Hidden): Rename to
8317 Function_Interp_Has_Abstract_Op.
8318 (Has_Compatible_Type): Remove machinery that skips interpretations if
8319 they are labeled as potentially hidden by an abstract operator.
8320 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
8321 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
8322 (Write_Overloads): Output the abstract operator if present.
8323 (Add_Entry): Before inserting a new entry into the interpretation table
8324 for a node, determine whether the entry will be disabled by an abstract
8326 (Binary_Op_Interp_May_Be_Hidden): New routine.
8327 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
8329 (Function_Interp_May_Be_Hidden): New routine.
8330 (Has_Compatible_Type): Do not consider interpretations hidden by
8331 abstract operators when trying to determine whether two types are
8333 (Has_Hidden_Interp): New routine.
8334 (Set_May_Be_Hidden_Interp): New routine.
8335 (Write_Overloads): Write the status of flag May_Be_Hidden.
8337 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8338 Javier Miranda <miranda@adacore.com>
8340 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
8341 types declared in the declarative part of a nested package body or in
8342 the proper body of a stub.
8343 (Set_All_DT_Position): Add missing check to avoid wrong assignation
8344 of the same dispatch table slot to renamed primitives.
8345 (Make_Select_Specific_Data_Table): Handle private types.
8346 (Tagged_Kind): Handle private types.
8347 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
8348 output of implicit importation and exportation.
8349 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
8350 first formal of the thunk is always associated with the controlling
8351 type. In addition perform the following code cleanup: remove formal
8352 Thunk_Alias which is no longer required, cleanup evaluation of the
8353 the controlling type, and update the documentation.
8354 Replace occurrence of Default_Prim_Op_Count by
8355 Max_Predef_Prims. Addition of compile-time check to verify
8356 that the value of Max_Predef_Prims is correct.
8357 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
8358 (Make_DT): Add parameter to indicate when type has been frozen by an
8359 object declaration, for diagnostic purposes.
8360 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
8361 construction of statically allocated dispatch tables.
8362 (Make_DT): In case of library-level tagged types export the declaration
8363 of the primary tag. Remove generation of tags (now done by Make_Tags).
8364 Additional modifications to handle non-static generation of dispatch
8365 tables. Take care of building tables for asynchronous interface types
8366 (Make_Tags): New subprogram that generates the entities associated with
8367 the primary and secondary tags of Typ and fills the contents of Access_
8368 Disp_Table. In case of library-level tagged types imports the forward
8369 declaration of the primary tag that will be declared later by Make_DT.
8370 (Expand_Interface_Conversion): In case of access types to interfaces
8371 replace an itype declaration by an explicit type declaration to avoid
8372 problems associated with the scope of such itype in transient blocks.
8374 2007-08-14 Robert Dewar <dewar@adacore.com>
8375 Ed Schonberg <schonberg@adacore.com>
8376 Javier Miranda <miranda@adacore.com>
8378 * exp_util.ads, exp_util.adb:
8379 This patch replaces a number of occurrences of explicit tests for N_Null
8380 with calls to Known_Null. This improves tracking of null values, since
8381 Known_Null also catches null constants, and variables currently known to
8382 be null, so we get better tracking.
8383 (Ensure_Defined): create an itype reference only in the scope of the
8385 (Side_Effect_Free): A selected component of an access type that
8386 denotes a component with a rep clause must be treated as not
8387 side-effect free, because if it is part of a linked structure its
8388 value may be affected by a renaming.
8389 (Expand_Subtype_From_Expr): For limited objects initialized with build
8390 in place function calls, do nothing; otherwise we prematurely introduce
8391 an N_Reference node in the expression initializing the object, which
8392 breaks the circuitry that detects and adds the additional arguments to
8393 the called function. Bug found working in the new patch for statically
8394 allocated dispatch tables.
8395 (Is_Library_Level_Tagged_Type): New subprogram.
8396 (Remove_Side_Effects): If the expression of an elementary type is an
8397 operator treat as a function call.
8398 (Make_Literal_Range): If the index type of the array is not integer, use
8399 attributes properly to compute the constraint on the resulting aggregate
8402 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
8403 class-wide type whose base type is an incomplete private type, leave
8404 class-wide type unfrozen so that freeze nodes can be generated
8405 properly at a later point.
8406 (Freeze_Entity, array case): Handle case of pragma Pack and component
8407 size attributre clause for same array.
8409 2007-08-14 Vincent Celier <celier@adacore.com>
8411 * prj.ads, prj.adb: Update Project Manager to new attribute names for
8413 Allow all valid declarations in configuration project files
8414 (Reset): Initialize all tables and hash tables in the project tree data
8415 Major update of the Project Manager and of the project aware tools,
8416 including gprmake, so that the same sources in the GNAT repository
8417 can be used by gprbuild.
8418 (Slash_Id): Change type to be Path_Name_Type
8419 (Slash): Return a Path_Name_Type instead of a File_Name_Type
8421 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
8423 Update Project Manager to new attribute names for ghprbuild
8424 Allow all valid declarations in configuration project files
8425 Major update of the Project Manager and of the project aware tools,
8426 including gprmake, so that the same sources in the GNAT repository
8427 can be used by gprbuild.
8430 Major update of the Project Manager and of the project aware tools,
8431 including gprmake, so that the same sources in the GNAT repository
8432 can be used by gprbuild.
8434 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8435 insensitive flag for attributes with optional index.
8436 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8437 array attribute, put the index in lower case.
8438 Update Project Manager to new attribute names for ghprbuild
8439 Allow all valid declarations in configuration project files
8440 Major update of the Project Manager and of the project aware tools,
8441 including gprmake, so that the same sources in the GNAT repository
8442 can be used by gprbuild.
8444 * prj-env.ads, prj-env.adb:
8445 Major update of the Project Manager and of the project aware tools,
8446 including gprmake, so that the same sources in the GNAT repository
8447 can be used by gprbuild.
8448 (Get_Reference): Change type of parameter Path to Path_Name_Type
8450 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
8451 removing '-' from the path to start with the first character of the
8453 Major update of the Project Manager and of the project aware tools,
8454 including gprmake, so that the same sources in the GNAT repository
8455 can be used by gprbuild.
8456 Major update of the Project Manager and of the project aware tools,
8457 including gprmake, so that the same sources in the GNAT repository
8458 can be used by gprbuild.
8460 * prj-nmsc.ads, prj-nmsc.adb:
8461 Update Project Manager to new attribute names for ghprbuild
8462 Allow all valid declarations in configuration project files
8463 (Search_Directories): Detect subunits that are specified with an
8464 attribute Body in package Naming. Do not replace a source/unit in the
8465 same project when the order of the source dirs are known. Detect
8466 duplicate sources/units in the same project when the order of the
8467 source dirs are not known.
8468 (Check_Ada_Name): Allow all identifiers that are not reserved words
8470 Major update of the Project Manager and of the project aware tools,
8471 including gprmake, so that the same sources in the GNAT repository
8472 can be used by gprbuild.
8473 (Look_For_Sources): If the list of sources is empty, set the object
8474 directory of non extending project to nil.
8475 Change type of path name variables to be Path_Name_Type
8476 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
8477 otherwise creating missing directories will fail.
8479 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
8480 prj-part.ads, prj-part.adb:
8481 Major update of the Project Manager and of the project aware tools,
8482 including gprmake, so that the same sources in the GNAT repository
8483 can be used by gprbuild.
8485 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
8486 insensitive flag for attributes with optional index.
8487 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
8488 array attribute, put the index in lower case.
8489 (Parse_Variable_Reference): Allow the current project name to be used in
8490 the prefix of an attribute reference.
8492 * prj-util.ads, prj-util.adb
8493 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
8494 defaulted to False. When True, always check against indexes in lower
8497 * snames.ads, snames.h, snames.adb:
8498 Update Project Manager to new attribute names for gprbuild
8499 Allow all valid declarations in configuration project files
8501 2007-08-14 Robert Dewar <dewar@adacore.com>
8502 Ed Schonberg <schonberg@adacore.com>
8504 * opt.ads: Warning for non-local exception propagation now off by
8506 New switch -gnatI to disable representation clauses
8507 Implement new pragma Implicit_Packing
8510 Warning for non-local exception propagation now off by default
8511 Add warning for unchecked conversion of pointers wi different
8513 New switch -gnatI to disable representation clauses
8515 * usage.adb: new switch -gnatyS
8517 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
8518 note that aggregates of anonymous array types are not flagged.
8519 -gnatwc now includes membership tests optimized away
8520 -gnatw.x warnings are now off by default
8521 Added conditional compilation Appendix
8522 Add documentation of -gnatI
8523 Add documentation for new -gnatyS style check
8524 Update documentation about SAL and auto-init on Windows.
8527 Add documentation for pragma Check_Name and 'Enabled attribute
8528 Document that Eliminate on dispatching operation is ignored
8529 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
8530 Document pragma Main
8531 Document pragma Implicit_Packing
8533 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
8534 different conventions
8535 New switch -gnatI to disable representation clauses
8537 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
8538 recognized, report the invalid characters including "-gnat" instead of
8539 just the first character in the switch.
8540 New switch -gnatI to disable representation clauses
8541 Set Warn_On_Object_Renames_Function true for -gnatg
8543 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
8544 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
8545 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
8546 to switch -aP (add directory to project search dir).
8548 * par-prag.adb: Implement new pragma Implicit_Packing
8550 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
8551 type as having a non-standard representation, to force expansion on
8552 conversion to related types.
8553 (Analyze_Pragma): Warn on misspelled pragma
8554 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
8555 Ensure consistent use of # in error messages
8556 Implement pragma Implicit_Packing
8558 2007-08-14 Olivier Hainque <hainque@adacore.com>
8559 Eric Botcazou <ebotcazou@adacore.com>
8561 * targtyps.c (get_target_maximum_default_alignment): New function.
8563 that the compiler might choose by default for a type or object.
8564 (get_target_default_allocator_alignment): New function. Alignment known
8565 to be honored by the target default allocator.
8566 (get_target_maximum_allowed_alignment): New function. Maximum alignment
8567 we might accept for any type or object on the target.
8568 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
8570 * gigi.h (get_target_maximum_default_alignment): Declare new function.
8571 (get_target_default_allocator_alignment): Likewise.
8572 (get_target_maximum_allowed_alignment): Likewise.
8575 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
8576 result of a function call, first try to use a stabilized reference for
8577 a constant renaming too.
8578 (validate_alignment): Use target_maximum_allowed_alignment instead of
8579 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
8580 (gnat_to_gnu_entity): Use common nodes directly.
8581 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
8582 alignment and size for the object.
8583 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
8584 and N_Procedure_Call_Statement.
8585 (takes_address): Rename to lvalue_required_p, add third parameter
8586 'aliased' and adjust recursive calls.
8587 <N_Indexed_Component>: Update 'aliased' from the array type.
8588 <N_Selected_Component>: New case.
8589 <N_Object_Renaming_Declaration>: New Likewise.
8590 (Identifier_to_gnu): Adjust for above changes.
8591 (maybe_stabilize_reference) <CONST_DECL>: New case.
8593 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
8594 between type variants.
8595 (build_simple_component_ref): Likewise.
8596 (build_call_alloc_dealloc): Use target_default_allocator_alignment
8597 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
8598 aligning type circuitry for allocations from the default storage pool.
8599 (build_allocator): Likewise.
8600 (build_simple_component_ref): Manually fold the reference for a
8601 constructor if the record type contains a template.
8603 * utils.c (value_zerop): Delete.
8604 (gnat_init_decl_processing): Emit debug info for common types.
8605 (rest_of_record_type_compilation): If a union contains a field
8606 with a non-constant qualifier, treat it as variable-sized.
8607 (finish_record_type): Give the stub TYPE_DECL a name.
8608 (rest_of_record_type_compilation): Likewise.
8609 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
8610 types are equivalent array types.
8611 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
8612 even if the type is not passed by reference.
8613 (static_ctors, static_dtors): Delete.
8614 (end_subprog_body): Do not record constructors and destructors.
8615 (build_global_cdtor): Delete.
8616 (gnat_write_global_declarations): Do not call build_global_cdtor.
8618 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
8619 -fRTS=rtp is specified.
8620 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
8623 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
8624 of the personality function with SJLJ exceptions.
8626 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
8627 the name of the personality function with SJLJ exceptions.
8629 2007-08-14 Robert Dewar <dewar@adacore.com>
8630 Ed Schonberg <schonberg@adacore.com>
8632 * par.ads, par.adb: Improve handling of extra right parens.
8633 (Par): Remove flag From_Limited_With_Clause.
8635 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
8636 Improve handling of extra right parens.
8638 2007-08-14 Robert Dewar <dewar@adacore.com>
8640 * par-tchk.adb (TF_Semicolon): Improve error recovery
8642 2007-08-14 Robert Dewar <dewar@adacore.com>
8643 Ed Schonberg <schonberg@adacore.com>
8645 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
8646 enumeration type, mark all literals as referenced.
8647 (Eval_Attribute, case 'Image): If the argument is an enumeration
8648 literal and names are available, constant-fold but mark nevertheless as
8650 Clean up function names.
8651 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
8653 (Requires_Simple_Name_Prefix): Removed.
8655 2007-08-14 Robert Dewar <dewar@adacore.com>
8656 Ed Schonberg <schonberg@adacore.com>
8658 * sem_ch11.adb: Improved warnings for unused variables
8660 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
8661 is a synchronized interface, the derived type is limited.
8662 (Analyze_Object_Declaration): Mark the potential coextensions in the
8663 definition and expression of an object declaration node.
8664 (Build_Derived_Type): For the completion of a private type declaration
8665 with a derived type declaration, chain the parent type's representation
8666 items to the last representation item of the derived type (not the
8667 first one) if they are not present already.
8668 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
8669 object declaration of forward references to tags.
8670 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
8671 subprogram types can appear as access discriminants of synchronized
8673 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
8674 given in prefixed form as a selected component.
8675 (Process_Discriminants): If not all discriminants have defaults, place
8676 error message on a default that is present.
8677 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
8678 extend a synchronized tagged type.
8679 Improved warnings for unused variables
8680 (Is_Visible_Component): Fix a visibility hole on a component inherited
8681 by a private extension when parent is itself declared as a private
8682 extension, and the derivation is in a child unit.
8683 (Find_Hidden_Interface): Move spec from the package body.
8685 2007-08-14 Robert Dewar <dewar@adacore.com>
8686 Ed Schonberg <schonberg@adacore.com>
8688 * sem_ch5.adb: Improve warnings on redundant assignments
8690 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
8692 (Is_Synchronized_Tagged_Type): New subprogram that returns true
8693 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
8694 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
8695 is set to False. Improves handling of Known_[Not_]Null.
8696 (Wrong_Type): Special case address arithmetic attempt
8697 (Collect_Abstract_Interfaces): Add new formal to allow collecting
8698 abstract interfaces just using the partial view of private types.
8699 (Has_Abstract_Interfaces): Add new formal to allow checking types
8700 covering interfaces using the partial view of private types.
8701 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
8702 component still needs to be defined in this case, but is never
8703 initialized as VMs are using other dispatching mechanisms.
8704 (Abstract_Interface_List): For a protected type, use base type to get
8706 Improve warnings on redundant assignments
8707 (Is_Variable): Handle properly an implicit dereference of a prefixed
8709 (Build_Actual_Subtype): If this is an actual subtype for an
8710 unconstrained formal parameter, use the sloc of the body for the new
8711 declaration, to prevent anomalises in the debugger.
8713 2007-08-14 Robert Dewar <dewar@adacore.com>
8715 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
8716 dispatching operation
8718 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8719 Gary Dismukes <dismukes@adacore.com>
8722 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
8723 expanded aggregate code before allocator, and ahead of declaration for
8724 temporary, to prevent access before elaboration when the allocator is
8725 an actual for an access parameter.
8726 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
8727 the TSD and the table of interfaces.
8728 (Convert_To_Assignments): Augment the test for delaying aggregate
8729 expansion for limited return statements to include the case of extended
8730 returns, to prevent creation of an unwanted transient scope.
8731 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
8732 (Expand_Array_Aggregate): Handle aggregates associated with
8733 statically allocated dispatch tables.
8734 (Expand_Record_Aggregate): Handle aggregates associated with
8735 statically allocated dispatch tables.
8736 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
8737 of anonymous access type.
8739 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8741 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
8742 is a variable that renames a slice, use the variable itself in the
8743 expannsion when the renamed expression itself may be modified between
8744 the declaration of the renaming and the array assignment.
8746 2007-08-14 Jerome Guitton <guitton@adacore.com>
8748 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
8749 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
8750 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
8751 New functions; dummy implementations.
8753 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
8754 functions, used to implement the multi-tasks mode routines on VxWorks.
8756 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
8758 binding to the VxWorks routines which have changed between VxWorks 5
8760 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
8761 which are not callable from a RTP.
8763 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
8764 implemented for the multi-tasks mode on VxWorks 5 and 6.
8766 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
8768 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
8771 2007-08-14 Vincent Celier <celier@adacore.com>
8773 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
8774 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
8775 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
8776 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8777 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8778 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
8779 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
8781 (Major_Id_Name): New function.
8782 mlib-tgt.ads/mlib.tgt.adb:
8783 (Library_Major_Minor_Id_Supported): New function, default returns True
8784 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
8785 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
8786 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
8787 Implementation of Library_Major_Minor_Id_Supported returns False
8789 (Clean_Library_Directory): If major/minor ids are supported, clean all
8791 Major update of the Project Manager and of the project aware tools,
8792 including gprmake, so that the same sources in the GNAT repository
8793 can be used by gprbuild.
8795 2007-08-14 Olivier Hainque <hainque@adacore.com>
8797 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
8798 (GCC_ZCX_Support): Switch to True.
8800 * s-intman-solaris.adb (Notify_Exception): Call
8801 Adjust_Context_For_Raise before raising, as expected for signal
8802 handlers in general.
8804 * s-intman-posix.adb (Notify_Exception): Remove declaration of
8805 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
8806 to other implementation bodies.
8808 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
8809 be visible by multiple implementation bodies.
8811 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
8812 only for conditions coming from hardware.
8813 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
8814 adjustments to signal context prior to exception raise from signal
8816 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
8818 Solaris section: (__gnat_adjust_context_for_raise): New function.
8819 Implementation of the machine context adjustments to perform prior to
8820 raise from a signal handler. Version for both sparc and x86.
8821 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
8822 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
8823 prior to raising as expected for any handler, before possible nested
8824 faults to make sure all the contexts in a chain have been adjusted by
8825 the time we propagate.
8827 2007-08-14 Pascal Obry <obry@adacore.com>
8829 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
8830 (SYSTEM_INFO): New record.
8831 (SetThreadIdealProcessor): New imported routine needed for supporting
8832 task_info pragma on Windows.
8834 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
8835 info can be applied to the current host.
8836 (Create_Task): Set the ideal processor if information is present.
8838 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
8839 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
8841 2007-08-14 Olivier Hainque <hainque@adacore.com>
8843 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
8844 stack size and initial stack pointer value for a given task.
8845 (Enter_Task): Get the stack attributes of the task we are entering and
8846 let the stack checking engine know about them.
8848 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
8849 Let the stack-checking engine know about the initial sp value and stack
8850 size associated with the current task.
8851 (Set_Stack_Info): If a stack base has been notified for the current
8852 task, honor it. Fallback to the previous less accurate method otherwise.
8854 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
8856 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8858 * sem_ch10.adb: Create a limited view of an incomplete type, to make
8859 treatment of limited views uniform for all visible declarations in a
8860 limited_withed package.
8861 Set flag indicating that a subprogram body for a child unit has a
8863 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
8864 separate declaration, remove the unit name from visibility after
8865 compilation, so that environment is clean for subsequent compilations.
8866 (Install_Limited_Context_Clauses): Do not install a
8867 limited_private_with_clause unless the current unit is a body or a
8869 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
8870 in the same fashion.
8871 (Install_Limited_Withed_Unit): Do not install a limited with clause if
8872 it applies to the declaration of the current package body.
8873 (Remove_Private_With_Clauses): If there is a regular with_clause for
8874 the unit, delete Private_With_Clause from context, to prevent improper
8875 hiding when processing subsequent nested packages and instantiations.
8877 2007-08-14 Jose Ruiz <ruiz@adacore.com>
8879 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
8880 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
8881 representing absolute path names.
8882 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
8884 * cstreams.c (__gnat_full_name for VxWorks): Use
8885 __gnat_is_absolute_path to detect whether we need to add the current
8886 directory to normalize the path.
8888 2007-08-14 Javier Miranda <miranda@adacore.com>
8891 a-tags.adb (Displace): Associate a message with the raised CE
8893 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
8894 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
8895 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
8897 (Default_Prim_Op_Count): Removed.
8898 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
8899 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
8900 Remove pragma Inline_Always.
8902 * rtsfind.ads (Default_Prim_Op_Count): Removed
8903 (Max_Predef_Prims): New entity
8904 (RE_Expanded_Name): Removed
8905 (RE_HT_Link): Removed
8906 (RE_Iface_Tag): Remmoved
8907 (RE_Ifaces_Table): Removed
8908 (RE_Interfaces_Array): Removed
8909 (RE_Interface_Data_Element): Removed
8910 (RE_Nb_Ifaces): Removed
8911 (RE_RC_Offset): Removed
8912 (RE_Static_Offset_To_Top): Removed
8914 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
8916 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
8917 Prim_Op_Count by Max_Predef_Prims.
8919 2007-08-14 Thomas Quinot <quinot@adacore.com>
8920 Vincent Celier <celier@adacore.com>
8922 * binde.adb (Elab_All_Links): Remove unnecessary call to
8923 Generic_Separately_Compiled (if a unit satisfies this predicate, there
8924 won't be an associated Afile).
8925 (Elab_All_Links): Fail if a referenced unit cannot be found
8928 Fix comments in bindgen regarding consistency checks done in Bcheck:
8929 the checks are made across units within a partition, not across several
8931 Fix generation of C binder file for VxWorks.
8933 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
8934 Generic_May_Lack_ALI, more descriptive of the current use of the
8935 predicate, and update documentation.
8937 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
8938 reorganization and documentation update for the case of predefined
8939 library generics (for which we do not reference an Afile).
8941 2007-08-14 Robert Dewar <dewar@adacore.com>
8943 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
8944 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
8945 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
8946 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
8947 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
8948 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
8949 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
8950 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
8951 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
8952 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
8953 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
8954 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
8955 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
8956 g-altcon.adb: Minor reformatting
8958 ada-tree.h: Delete empty line.
8960 ali.ads: Minor reformatting
8961 Clarification of comments.
8962 Minor spelling correction
8964 * exp_dbug.adb: Add Warnings Off to suppress new warning
8966 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
8969 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
8972 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
8974 * a-textio.ads: Reorder the standard input/output/error declarations
8977 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
8979 * par-ch2.adb: Recognize RM specially in errout
8980 Change 'R'M to RM in all error messages
8982 * scng.adb: Recognize RM specially in errout
8984 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
8985 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
8987 * s-direio.adb: Add missing routine header box.
8989 * sem_attr.ads: Add ??? comments
8991 * sem_eval.adb: Recognize RM specially in errout
8992 Change 'R'M to RM in all error messages
8994 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
8996 * s-tasinf.ads: Fix minor comment typo.
8998 * a-cihama.adb: Minor comment addition
9000 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
9003 * s-tasinf-tru64.ads: Fix minor comment typo.
9005 * itypes.ads: Comment update.
9007 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
9010 * argv.c: Added protection against null gnat_argv and gnat_envp.
9012 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
9013 warning message when Tolerate_Consistency_Errors is True.
9015 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
9016 Any_Id, as this subprogram is only applicable to *type* entities (it
9017 sets RM_Size). Instead initialize just Esize and Alignment.
9019 2007-08-14 Bob Duff <duff@adacore.com>
9021 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
9022 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
9023 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
9024 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
9025 a-coorse.ads (Next): Applied pragma Inline.
9026 Make all Containers packages Remote_Types (unless they are already
9028 (Previous): applied pragma Inline
9029 (Elements_Type): is now a record instead of an array
9031 2007-08-14 Thomas Quinot <quinot@adacore.com>
9033 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
9035 (Set_Item): When the new item is an element of the currently allocated
9036 table passed by reference, save a copy on the stack if we're going
9037 to reallocate. Also, in Table.Set_Item, make sure we test the proper
9038 variable to determine whether to call Set_Last.
9040 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
9041 symbols-vms.adb, symbols-processing-vms-alpha.adb,
9042 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
9043 some occurrences of the pattern
9045 T.Table (T.Last) := Value;
9046 with a cleaner call to
9049 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9050 Gary Dismukes <dismukes@adacore.com>
9051 Thomas Quinot <quinot@adacore.com>
9053 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
9054 derived type with interface progenitors use the analyzed formal as the
9055 parent of the actual, to create renamings for all the inherited
9056 operations in Derive_Subprograms.
9057 (Collect_Previous_Instances): new procedure within of
9058 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
9059 unit being loaded, to ensure that the generation of global symbols is
9060 consistent in different compilation modes.
9061 (Is_Tagged_Ancestor): New function testing the ancestor relation that
9062 takes progenitor types into account.
9063 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
9064 traversing over the primitives of the formal and actual types to locate
9065 any abstract subprograms of the actual type that correspond to a
9066 nonabstract subprogram of the formal type's ancestor type(s), and issue
9067 an error if such is found.
9068 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
9069 Instantiate_Package_Body, Instantiate_Subprogram_Body):
9070 Remove bogus guard around calls to Inherit_Context.
9071 (Reset_Entity): If the entity is the selector of a selected component
9072 that denotes a named number, propagate constant-folding to the generic
9073 template only if the named number is global to the generic unit.
9074 (Set_Instance_Env): Only reset the compilation switches when compiling
9075 a predefined or internal unit.
9077 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9079 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
9080 parameter to determine whether operation applies to the prefix.
9081 (Complete_Object_Operation): If actual has an access type and
9082 controlling formal is not an in_parameter, reject the actual if it is
9083 an access_to_constant type.
9084 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
9085 type, the candidate operations are found in the scope of declaration of
9086 the type, because the type has no primitive subprograms.
9087 (Analyze_Selected_Component): If prefix is class-wide, and root type is
9088 a private extension, only examine visible components before trying to
9089 analyze as a prefixed call.
9090 Change Entity_List to Type_To_Use, for better readability.
9091 (Has_Fixed_Op): Use base type when checking whether the type of an
9092 operator has a user-defined multiplication/division
9093 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
9094 user-defined operators are available for fixed-point types.
9096 2007-08-14 Thomas Quinot <quinot@adacore.com>
9097 Ed Schonberg <schonberg@adacore.com>
9099 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
9100 formal At_Any_Place indicating, when True, that we want to test for
9101 availability of the stream attribute at any place (as opposed to the
9102 current visibility context only).
9103 (Missing_Read_Write_Attributes): A stream attribute is missing for the
9104 purpose of enforcing E.2.2(8) only if it is not available at any place.
9105 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
9106 when checking the legality of an extension aggregate in a preelaborable
9107 package. Treat the literal null as a valid default expression in a
9108 component declaration for a type with preelaborable initialization.
9109 A limited interface is a legal progenitor for the designated type of a
9110 remote access to class-wide type.
9112 2007-08-14 Thomas Quinot <quinot@adacore.com>
9113 Ed Schonberg <schonberg@adacore.com>
9115 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
9116 reference): Use correct entity as denoted entity for the selector of
9118 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
9119 setting the Referenced_As_LHS flag for entities that are implicitly
9121 (Find_Type): If the type is an internally generated incomplete type,
9122 mark the full view as referenced, to prevent spurious warnings.
9123 (Find_Selected_Component, Has_Components): Handle properly non-limited
9124 views that are themselves incomplete types.
9125 Handle interfaces visible through limited-with clauses.
9126 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
9127 subprogram generic actual for which we have generated a renaming.
9128 Warn when the renaming introduces a homonym of
9129 the renamed entity, and the renamed entity is directly visible.
9131 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9132 Hristian Kirtchev <kirtchev@adacore.com>
9134 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
9135 appear in the subtree to the current allocator if it is not a static
9137 (Resolve_Allocator): Perform cleanup if resolution has determined that
9138 the allocator is not a coextension.
9139 (Resolve): Skip an interpretation hidden by an abstract operator only
9140 when the type of the interpretation matches that of the context.
9141 (Resolve): When looping through all possible interpretations of a node,
9142 do not consider those that are hidden by abstract operators.
9143 (Resolve_Actuals): When verifying that an access to class-wide object
9144 is an actual for a controlling formal, ignore anonymous access to
9145 subprograms whose return type is an access to class_wide type.
9146 (Resolve_Slice): If the prefix of the slice is a selected component
9147 whose type depends on discriminants, build its actual subtype before
9148 applying range checks on the bounds of the slice.
9149 (Valid_Conversion): In an instance or inlined body, compare root types,
9150 to prevent anomalies between private and public views.
9151 (Resolve): Improve error message for ambiguous fixed multiplication
9152 expressions that involve universal_fixed multiplying operations.
9154 2007-08-14 Javier Miranda <miranda@adacore.com>
9155 Hristian Kirtchev <kirtchev@adacore.com>
9157 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
9158 location to allow the correct generation of errors in case of
9159 restrictions applied to the expanded code.
9160 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
9161 function if the condition does not reference them.
9162 (Expand_Entry_Body_Declarations): Mark the index constant as having a
9165 2007-08-14 Thomas Quinot <quinot@adacore.com>
9166 Pablo Oliveira <oliveira@adacore.com>
9168 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
9169 typecode parameters for a union (in a variant record), remove
9170 extraneous layer of Any wrapping for member label.
9171 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
9172 elabration statements, register the package with the name server
9173 at the beginning, not at the end, of the elaboration statements so
9174 that they can create remote access to subprogram values that designate
9175 remote subprograms from the package.
9177 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9179 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
9180 values to compute the number of seconds since the Unix Epoc in order to
9181 account for Daylight Savings Time. Perform special processing for dates
9182 that are earlier than the Unix Epoc to obtain a negative number.
9184 2007-08-14 Emmanuel Briot <briot@adacore.com>
9186 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
9189 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
9191 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
9192 binder-generated file is not in Ada.
9193 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
9194 recorded in the ALI file.
9195 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
9197 2007-08-14 Vincent Celier <celier@adacore.com>
9199 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
9200 (Output_Source): Do nothing if parameter is No_Sdep_Id
9202 * make.adb (Gnatmake): Do not rebuild an archive simply because a
9203 shared library it imports has a later time stamp.
9204 (Check): Resolve the symbolic links in the path name of the object
9206 Check that the ALI file is in the correct object directory
9207 Check if a file name does not correspond to the mapping of units
9209 (Display_Version): New procedure
9210 (Initialize): Process switches --version and --help
9211 Use type Path_Name_Type for path name
9213 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
9215 * impunit.adb: Re-organize System.Random_Numbers and
9216 GNAT.Random_Numbers and add to builds.
9218 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
9220 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
9222 * a-assert.ads, a-assert.adb: New files.
9224 2007-08-14 Gary Dismukes <dismukes@adacore.com>
9226 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
9227 if AAMP_On_Target is True, then the size of the type encompasses two
9228 addresses (a static link and a subprogram address), except in the case
9229 of library-level access types.
9231 2007-08-14 Vincent Celier <celier@adacore.com>
9233 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
9235 (Write_Eol_Keep_Blanks): New procedure to write a line, including
9236 possible trailing spaces.
9237 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9239 2007-08-14 Javier Miranda <miranda@adacore.com>
9241 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
9242 null-excluding access types.
9244 2007-08-14 Javier Miranda <miranda@adacore.com>
9246 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
9247 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
9248 of private types add missing check on matching interfaces in the
9249 partial and full declarations.
9250 (Analyze_Protected_Type): Code cleanup.
9251 (Analyze_Task_Type): Code cleanup.
9253 2007-08-14 Javier Miranda <miranda@adacore.com>
9255 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
9256 generated interface thunk.
9258 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9260 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
9261 obsolescent warning on application of 'Class to an incomplete type.
9263 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
9264 prevent obsolescent warning on application of 'Class to an incomplete
9267 2007-08-14 Pascal Obry <obry@adacore.com>
9269 * s-fileio.adb (Is_Open): Add check for usability of the underlying
9272 2007-08-14 Cyrille Comar <comar@adacore.com>
9274 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
9275 since it is potentially used in cases implying double finalization of
9278 2007-08-14 Jose Ruiz <ruiz@adacore.com>
9280 * s-tasini.adb (Get_Stack_Info): Move this function to
9281 System.Soft_Links.Tasking because it is common to the full and the
9282 restricted run times.
9283 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
9284 in SSL.Tasking.Init_Tasking_Soft_Links.
9286 * s-solita.adb (Get_Stack_Info): Function moved from
9287 System.Tasking.Initialization because it is common to the full and the
9288 restricted run times.
9289 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
9291 2007-08-14 Arnaud Charlet <charlet@adacore.com>
9293 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
9294 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
9295 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
9298 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
9301 2007-08-14 Gary Dismukes <dismukes@adacore.com>
9303 * s-veboop.adb (SU): New named number initialized to
9304 System.Storage_Unit.
9305 (True_Val): The initialization expression is revised to use SU (=
9306 Storage_Unit) rather than assuming 8 for the component size of an
9307 unpacked Boolean array.
9309 2007-08-14 Tristan Gingold <gingold@adacore.com>
9311 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
9313 * tb-ivms.c: New file.
9315 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
9317 2007-08-14 Geert Bosch <bosch@adacore.com>
9319 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
9320 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
9321 Add required linker pragmas for automatically linking with the gnalasup
9322 linear algebra support library, and the systems math library.
9323 Rename cdot to cdotu and zdot to zdotu.
9324 Update header comment to describe purpose of package.
9326 2007-08-14 Thomas Quinot <quinot@adacore.com>
9328 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
9329 an explicitly specified Associated_Final_Chain, use that list.
9330 (Expand_N_Package_Body): Build dispatch tables of library level tagged
9332 (Expand_N_Package_Declaration): Build dispatch tables of library level
9333 tagged types. Minor code cleanup.
9335 2007-08-14 Vincent Celier <celier@adacore.com>
9337 * gnatchop.adb (Terminate_Program): Remove exception and use
9338 Types.Terminate_Program instead.
9340 * osint.ads, osint.adb (Current_Exit_Status): New global variable
9341 (Find_Program_Name): Added protection against empty name.
9342 (OS_Exit_Through_Exception): New procedure
9344 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
9345 (OS_Exit_Default): New procedure that contains the previous
9346 implementation of procedure OS_Exit.
9347 (Final_Value): Remove obsolete Interix stuff.
9349 2007-08-14 Thomas Quinot <quinot@adacore.com>
9351 * g-socket.ads: Reorganize example code so that it also works on
9354 2007-08-14 Tristan Gingold <gingold@adacore.com>
9356 * g-trasym.ads: AIX now supports symbolic backtraces.
9358 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9360 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
9361 units being loaded to detect circularities. A circularity may be
9362 present even if the current chain of pending units to load starts from
9363 a limited_with_clause.
9365 * lib-load.ads: Change profile of Load_Unit to use a with_clause
9366 rather than a boolean flag, in order to detect circularities in
9369 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
9370 than propagating the From_Limited_With flag, in order to handle
9371 properly circularities involving with_clauses.
9373 2007-08-14 Nicolas Setton <setton@adacore.com>
9375 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
9378 2007-08-14 Arnaud Charlet <charlet@adacore.com>
9380 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
9381 to build for libgnala.
9382 libgnat: Add rules to build libgnala.a
9383 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
9384 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
9385 Add s-osinte-vxworks-kernel.adb to the target pairs of the
9386 kernel run-time lib for VxWorks 6, which would provide a different
9387 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
9388 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
9389 running ZCX by default.
9390 Add g-sttsne-locking to LynxOS version.
9391 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
9392 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
9394 * system-darwin-x86.ads: New file.
9396 * Make-lang.in: Delete files before copying onto them, so if they are
9397 read-only, the copy won't fail.
9400 2007-08-14 Pascal Obry <obry@adacore.com>
9402 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
9405 2007-08-14 Vincent Celier <celier@adacore.com>
9407 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
9408 (Gcc): Initialize Gcc_Name at the first call
9410 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9412 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
9413 with_clauses of the enclosing unit when analyzing the package
9414 specification of a nested instance.
9416 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9418 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
9419 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
9420 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
9421 layout of N_Allocator.
9423 2007-08-14 Thomas Quinot <quinot@adacore.com>
9425 * rtsfind.adb (Check_RPC): Add PCS version check.
9427 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
9428 (Gnat_Free_Software): New function.
9430 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
9431 the PCS_Version value from s-parint, used to check that it is consistent
9432 with what exp_dist expects.
9434 * s-parint.ads (PCS_Version): New entity for checking consistency
9435 between exp_dist and PCS.
9437 * gen-soccon.c: (SO_REUSEPORT): New constant.
9439 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9441 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
9442 variable Sub_Second to Duration in order to accomodate a larger range
9443 of arithmetic operations.
9445 2007-08-14 Bob Duff <duff@adacore.com>
9447 * g-sttsne-locking.ads: Move comments from spec to body.
9448 * g-sttsne-locking.adb: Move comments from spec to body.
9449 * g-sttsne-vxworks.ads: Removed.
9450 * g-sttsne-vxworks.adb: Removed.
9452 2007-08-11 Ian Lance Taylor <iant@google.com>
9454 * misc.c (gnat_get_alias_set): Change return type to
9457 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9459 * decl.c, utils2.c: Fix whitespace in last change.
9461 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9463 * decl.c (compare_field_bitpos): Constify.
9464 * utils2.c (compare_elmt_bitpos): Likewise.
9466 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
9468 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
9469 anonymous access type.
9470 (pthread_sigmask): Now take an access sigset_t.
9472 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
9474 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
9476 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
9478 PR tree-optimization/25737
9479 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
9481 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
9483 * trans.c (Attribute_to_gnu): When subtracting an
9484 offset from a pointer, use POINTER_PLUS_EXPR with
9485 NEGATE_EXPR instead of MINUS_EXPR.
9486 (gnat_to_gnu): Likewise.
9487 * utils.c (convert): When converting between
9488 thin pointers, use POINTER_PLUS_EXPR and sizetype
9490 * utils2.c (known_alignment): POINTER_PLUS_EXPR
9491 have the same semantics as PLUS_EXPR for alignment.
9492 (build_binary_op): Add support for the semantics of
9493 POINTER_PLUS_EXPR's operands.
9494 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
9496 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
9498 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
9499 of get_signed_or_unsigned_type.
9500 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
9502 2007-06-11 Bob Duff <duff@adacore.com>
9503 Thomas Quinot <quinot@adacore.com>
9505 * g-stsifd-sockets.adb (Create): Work around strange behavior of
9506 'bind' on windows that causes 'connect' to fail intermittently, by
9507 retrying the 'bind'.
9508 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9510 2007-06-10 Duncan Sands <baldrick@free.fr>
9512 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
9513 than to void, for the fields when making a new fat pointer type.
9514 (gnat_substitute_in_type): Now substitute_in_type.
9515 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
9516 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
9517 * utils.c (update_pointer_to): Update fat pointers by updating the
9518 dummy node pointers used for the fields.
9520 2007-06-06 Thomas Quinot <quinot@adacore.com>
9521 Bob Duff <duff@adacore.com>
9523 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
9524 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
9525 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
9526 constant Thread_Blocking_IO, always True by default, set False
9527 on a per-runtime basis.
9528 (Need_Netdb_Buffer): New constant.
9530 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
9531 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
9534 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
9535 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
9536 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
9537 child package Task_Safe_NetDB
9538 (Host_Error_Messages): Add stub body.
9539 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9541 * g-soccon-mingw.ads: Add Windows-specific constants.
9542 (Need_Netdb_Buffer): New constant.
9543 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
9544 wrapper and import inet_addr(3) from the standard sockets library
9546 (In_Addr): Add alignment clause.
9547 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9549 2007-06-06 Robert Dewar <dewar@adacore.com>
9551 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
9552 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
9553 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
9554 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
9555 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
9556 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
9557 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
9558 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
9559 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
9560 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
9561 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
9562 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
9563 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
9564 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
9565 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
9566 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
9567 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
9568 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
9569 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
9570 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
9571 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
9572 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
9573 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
9574 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
9575 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
9576 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
9577 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
9578 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
9579 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
9580 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
9581 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
9582 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
9583 Unchecked_* by Ada.Unchecked_*
9585 2007-06-06 Robert Dewar <dewar@adacore.com>
9587 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
9588 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
9589 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
9590 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
9591 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
9592 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
9594 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
9595 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
9596 s-tasloc.adb, s-tasloc.ads: New files.
9598 2007-06-06 Bob Duff <duff@adacore.com>
9601 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
9602 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
9603 (Send_Signal, Close): Raise Invalid_Process if the process id is
9605 (Pattern_Matcher_Access): Is now a general access type to be able to
9608 2007-06-06 Thomas Quinot <quinot@adacore.com>
9609 Arnaud Charlet <charlet@adacore.com>
9611 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
9612 (SIGEMT is now used instead of SIGTERM on AIX).
9614 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
9615 (Time_Slice_Supported): Set to True.
9616 Use SIGEMT instead of SIGTERM as SIGADAABORT.
9618 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
9620 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
9621 (Time, Time)): Use To_Relative_Time rather than manual calculation to
9622 express the bounds of Duration as Time. Raise Time_Error when the
9623 result is greater or equal to the higher bound of Duration (on the
9625 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
9627 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
9629 ("-" (Time, Time)): Reorder code.
9630 (All_Leap_Seconds): Removed.
9631 (Arithmetic_Operations.Add): Remove sign related kludge.
9632 (Arithmetic_Operations.Difference): Control the leaps seconds processing
9633 with flag Leap_Support.
9634 (Arithmetic_Operations.Subtract): Remove sign related kludge.
9635 (Check_Within_Time_Bounds): New procedure.
9636 (Clock): Control the leap seconds processing with flag Leap_Support.
9637 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
9638 (Formatting_Operations.Split): Control the leap seconds processing with
9640 (Formatting_Operations.Time_Of): Control the leaps seconds processing
9641 with flag Leap_Support. Adjust the year, month and day (if applicable)
9642 when the value of day seconds designates a new day.
9643 (Split): Use parameter associations for better readability. Integrate
9645 (Time_Of): Use parameter associations for better readability. Integrate
9648 * a-calfor.adb (Split): Use parameter associations for better
9649 readability. Integrate flag Is_Ada_05.
9650 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
9651 better readability. Integrate flag Is_Ada_05.
9653 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9655 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
9656 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
9657 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
9658 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
9659 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
9660 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
9661 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
9662 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
9663 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
9664 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
9665 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
9666 time when entering this routine to detect a backward clock setting
9667 (manual setting or DST adjustment), to avoid waiting for a longer delay
9669 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
9670 Remove handling of deferred priority change, and replace by setting the
9671 task priority directly, as required by AI-188.
9673 (Max_Task_Image_Length): New constant.
9674 Replace Warnings (Off) by Unreferenced pragma, cleaner.
9675 (Dynamic_Priority_Support): Removed, no longer needed.
9676 (Poll_Base_Priority_Change): Ditto.
9677 (Set_Ceiling): Add this procedure to change the ceiling priority
9678 associated to a lock. This is a dummy implementation because dynamic
9679 priority ceilings are not supported by the underlying system.
9681 * a-dynpri.adb (Set_Priority): Take into account case where Target is
9682 accepting a RV with its priority boosted.
9683 Remove handling of deferred priority change, and replace by setting the
9684 task priority directly, as required by AI-188.
9686 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
9688 Remove handling of deferred priority change, and replace by setting the
9689 task priority directly, as required by AI-188.
9690 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
9693 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
9694 (Poll_Base_Priority_Change): Removed.
9695 Code clean up: use SSL.Current_Target_Exception.
9697 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
9698 to run as this is a potentially dispatching point.
9699 (Call_Synchronous): Use Local_Defer_Abort.
9700 (Callable): Relax assertion.
9701 (Selective_Wait): Relax assertion in case abort is not allowed.
9702 Remove handling of deferred priority change, and replace by setting the
9703 task priority directly, as required by AI-188.
9705 * s-tasuti.adb (Make_Passive): Adjust assertions.
9706 Remove handling of deferred priority change, and replace by setting the
9707 task priority directly, as required by AI-188.
9709 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9711 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
9712 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
9713 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
9714 system-vxworks-mips.ads, system-vxworks-alpha.ads,
9715 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
9716 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
9717 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
9718 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
9719 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
9720 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
9721 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
9722 This patch changes the largest non-binary modulus from 2**31-1 to
9724 (Compiler_System_Version): Removed, no longer used.
9725 Clean up system files by removing flags only used on a single target.
9726 Also remove obsolete flags, only used during bootstrap from system.ads
9727 (Address): Add a pragma Preelaborable_Initialization.
9729 * system-aix.ads: Ditto.
9730 (GCC_ZCX_Support): Set to true.
9731 Update priority range on AIX and map Ada priorities to target
9732 priorities appropriately for different scheduling policies.
9734 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
9736 2007-06-06 Vincent Celier <celier@adacore.com>
9738 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
9739 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
9741 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
9742 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
9743 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
9744 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
9745 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
9746 MLib.Tgt, containing the default versions of the exported subprograms.
9747 For each platform, create a specific version of the body of new child
9748 package MLib.Tgt.Specific that contains only the body of subprograms
9749 that are different from the default.
9750 (Archive_Builder_Append_Options): New function.
9752 2007-06-06 Matthew Gingell <gingell@adacore.com>
9754 * s-osinte-aix.adb: Map Ada priorities to target priorities
9755 appropriately for different scheduling policies.
9757 2007-06-06 Arnaud Charlet <charlet@adacore.com>
9759 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
9761 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
9762 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
9764 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
9766 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
9767 Noop on VMS, added for interface commonality.
9769 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
9770 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9771 Olivier Hainque <hainque@adacore.com>
9773 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
9774 renamed expression of a full renaming at toplevel.
9775 (gnat_to_gnu_entity, case object): If not defining, do not look inside
9776 the values the constant is initialized to if it is an N_Allocator.
9777 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
9778 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
9779 (make_aligning_type): Accept an extra ROOM argument for storage to be
9780 made available before the aligned field, and an extra BASE_ALIGN
9781 argument for callers to pass the alignment guaranteed to be honored for
9782 the whole aligning object. Avoid call to finish_record_type, which only
9783 interferes with the sizes we want to set.
9784 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
9785 make_aligning_type for super-aligned objects on stack.
9786 (components_to_record): Pass the adjusted size of the type when creating
9787 fields in the qualified union for the variant part.
9788 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
9789 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
9791 (maybe_pad_type): Set TYPE_USER_ALIGN.
9792 (make_aligning_type): Likewise.
9793 ALIGN argument is unsigned int.
9794 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
9795 (gnat_to_gnu_param): Likewise, for parameters.
9796 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
9797 if it is constant and stems from a function call.
9798 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
9799 of the record is specified. Adjust accordingly.
9800 (adjust_packed): New static function.
9801 (gnat_to_gnu_field): Use it to adjust the packedness setting.
9802 (components_to_record): Likewise.
9803 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
9804 side-effects if the object is deemed constant.
9805 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
9806 type instead of merely finalizing it. Tidy.
9807 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
9808 <E_Access_Type>: Likewise.
9809 (defer_debug_incomplete_list): Rename to defer_finalize_list.
9810 (defer_debug_level): Delete.
9811 (gnat_to_gnu_entity) <debug_deferred>: Likewise
9812 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
9814 <E_Record_Type>: Do not explicitly defer finalizing the type.
9815 Adjust for write_record_type_debug_info renaming.
9816 <E_Subprogram_Type>: Likewise.
9817 Finalize deferred types right after deferred incomplete types are
9819 (rest_of_type_decl_compilation): New global function.
9820 (components_to_record): Rename defer_debug parameter to do_not_finalize.
9821 (components_to_record): Propagate the packedness to the fields of the
9822 qualified union type if there is a variant part.
9823 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
9824 instead of inline code to adjust the XUT field offsets.
9825 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
9826 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
9827 and write the debug info if the type derives from a discriminated one.
9828 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
9829 <E_Array_Subtype>: Likewise.
9830 <E_String_Literal_Subtype>: Likewise.
9831 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
9832 an alignment clause.
9833 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
9834 before giving warning.
9835 (prepend_one_attribute_to): New function, helper to prepend an attribute
9836 to an attribute list.
9837 (gnat_to_gnu_entity) <E_Procedure>: Use it.
9838 (prepend_attributes): Likewise.
9839 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
9840 <E_Array_Type>: Declare the padding type for the element type, if any.
9841 <E_Array_Subtype>: Likewise.
9842 (defer_limited_with): New variable.
9843 (Gigi_Equivalent_Type): New function.
9844 (gnat_to_gnu_entity): Use it at start and use result throughout.
9845 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
9846 Gigi_Equivalent_Type, support Limited_With, allow two levels of
9847 indirection, precompute if unconstrained array to simplify logic, and
9848 use defer_limited_with to defer elaboration of some types from limited
9850 (finalize_from_with_types): New function.
9852 2007-06-06 Gary Dismukes <dismukes@adacore.com>
9853 Eric Botcazou <ebotcazou@adacore.com>
9854 Tristan Gingold <gingold@adacore.com>
9855 Olivier Hainque <hainque@adacore.com>
9857 * trans.c (Identifier_to_gnu): Change test for deferred constant by
9858 adding guard that the entity is an E_Constant before testing presence
9859 of Full_view (and remove unnecessary test that entity is not a type).
9860 For a CONST_DECL used by reference, manually retrieve
9861 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
9862 (struct language_function): Move from utils.c to here.
9863 (struct parm_attr): New structure.
9864 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
9865 (f_parm_attr_cache): New macro.
9866 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
9867 expressions for the 'First, 'Last and 'Length attributes of the
9868 unconstrained array IN parameters.
9869 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
9870 Allocate the information structure for the function earlier, as well
9871 as the language-specific part.
9872 If the parameter attributes cache has been populated, evaluate the
9873 cached expressions on entry.
9874 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
9875 N_Procedure_Call_Statement and N_Indexed_Component.
9876 (Pragma_to_gnu): Translate inspection_point to an asm statement
9877 containaing a comment and a reference to the object (either its address
9878 for BLKmode or its value).
9879 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
9880 to go to DECL_INITIAL. Together with the size constraint relaxation
9881 in create_var_decl, enlarges the set of situations in which an
9882 identifier may be used as an initializer without implying elaboration
9884 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
9885 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
9887 (maybe_stabilize_reference): Remove lvalues_only parameter.
9888 (gnat_stabilize_reference): Adjust for above change.
9889 (gnat_to_gnu): Do not set location information on the result
9890 if it is a reference.
9891 (add_cleanup): Add gnat_node parameter and set the location of the
9893 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
9894 (Exception_Handler_to_gnu_zcx): Likewise.
9895 (gigi): Remove the cgraph node if the elaboration procedure is empty.
9896 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
9897 the former right after the latter.
9898 (start_stmt_group): Make global.
9899 (end_stmt_group): Likewise.
9900 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
9902 (gnu_program_error_label_stack): Likewise.
9903 (gigi): Initialize them.
9904 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
9905 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
9907 (push_exception_label_stack): New function.
9908 (takes_address): New function.
9910 * utils.c (struct language_function): Move to trans.c from here.
9911 (unchecked_convert): Do not wrap up integer constants in
9913 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
9914 the latter for aggregate types, unexpected by later passes, and relax an
9915 arbitrary size constraint on the former.
9916 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
9917 to compare the sizes.
9918 (convert_vms_descriptor): When converting to a fat pointer type, be
9919 prepared for a S descriptor at runtime in spite of a SB specification.
9920 (shift_unc_components_for_thin_pointers): New function.
9921 (write_record_type_debug_info): For variable-sized fields, cap the
9922 alignment of the pointer to the computed alignment.
9923 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
9924 If REP_LEVEL is 2, do not compute the sizes.
9925 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
9926 (build_unc_object_type): Likewise.
9927 (declare_debug_type): New function.
9929 * ada-tree.def: USE_STMT: removed (not emitted anymore).
9931 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
9932 no statement is expandable anymore.
9933 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
9934 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
9935 when the user requested it explicitely.
9936 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
9938 (get_alias_set): Return alias set 0 for a type if
9939 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
9941 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
9942 (DECL_FUNCTION_STUB): New accessor macro.
9943 (SET_DECL_FUNCTION_STUB): New setter macro.
9945 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
9947 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
9950 2007-06-06 Jose Ruiz <ruiz@adacore.com>
9952 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
9953 Rename to Abort_Task_Interrupt to be able to keep the same interface
9954 as the rest of the targets.
9956 * s-osinte-vxworks.ads s-osinte-vxworks.adb
9957 (To_VxWorks_Priority): Remove explicit "in" mode indicator
9959 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
9962 2007-06-06 Robert Dewar <dewar@adacore.com>
9964 * a-chahan.ads: Remove obsolescent pragmas
9966 * a-chlat1.ads: Minor reformatting
9968 2007-06-06 Robert Dewar <dewar@adacore.com>
9970 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
9973 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
9976 * errout.ads (Finalize): Changed interface
9977 (Output_Messages): New procedure
9978 (Compilation_Errors): New Interface
9980 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
9981 Finalize/Output_Messages interface for Errout
9982 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
9985 2007-06-06 Thomas Quinot <quinot@adacore.com>
9986 Olivier Hainque <hainque@adacore.com>
9987 Robert Dewar <dewar@adacore.com>
9989 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
9991 (Raise_Current_Excep): Call Debug_Raise_Exception just before
9992 propagation starts, to let debuggers know about the event in a reliable
9994 (Local_Raise): Moved to System.Exceptions
9995 More convenient to have this as a separate unit
9997 * s-except.adb, s-except.ads: New files.
9999 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
10000 Debug_Unhandled_Exception in System.Exceptions where it belongs
10001 together with a couple of other debug helpers.
10002 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
10003 the former Unhandled_Exception.
10005 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
10006 (Warn_No_Exception_Propagation): New procedure
10007 (Warn_If_No_Propagation): Rewritten for new warning generation
10008 (Expand_Exception_Handlers): New warning generation
10009 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
10010 (Add_Exception_Label): Use Special_Exception_Package_Used for test
10011 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
10012 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
10013 even if restriction is set (makes life easier in Check_Returns)
10014 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
10015 checking exception identities.
10016 (Expand_Local_Exception_Handlers): Do not optimize when all others case
10017 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
10018 block for handler (used by Check_Returns)
10019 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
10020 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
10021 remove all exception handlers when optimizing local raise statements.
10022 (Find_Local_Handler): Use Get_Renamed_Entity
10023 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
10024 marked analyzed after expanding exception handlers, do not generate
10025 redundant cleanup actions, because they have been constructed already.
10027 2007-06-06 Thomas Quinot <quinot@adacore.com>
10029 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
10030 presence of this categorization pragma is mandated by the language.
10031 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
10034 2007-06-06 Vincent Celier <celier@adacore.com>
10035 Robert Dewar <dewar@adacore.com>
10037 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
10038 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
10039 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
10040 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
10041 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
10042 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
10043 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
10044 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
10045 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
10046 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
10047 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
10049 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
10050 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
10051 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
10052 Use variables of types File_Name_Type and Unit_Name_Type in error
10054 (Get_Name): Add parameter Ignore_Special, and set it reading file name
10055 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
10057 Define flags Flag217-Flag230 with associated subprograms
10058 (Flag_Word5): New record type.
10059 (Flag_Word5_Ptr): New access type.
10060 (To_Flag_Word5): New unchecked conversion.
10061 (To_Flag_Word5_Ptr): Likewise.
10062 (Flag216): New function.
10063 (Set_Flag216): New procedure.
10065 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10067 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
10070 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
10072 2007-06-06 Javier Miranda <miranda@adacore.com>
10074 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
10076 (Object_Specific_Data_Array): This is now internal to the package.
10077 (Object_Specific_Data): This is now internal to the package.
10078 (Select_Specific_Data_Element): This is now internal to the package.
10079 (Select_Specific_Data_Array): This is now internal to the package.
10080 (Select_Specific_Data): This is now internal to the package.
10081 (Offset_To_Top_Function_Ptr): This is now public.
10082 (To_Offset_To_Top_Function_Ptr): Removed.
10083 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
10084 local to subprogram Offset_To_Top.
10085 (Predefined_DT): Removed.
10086 (Typeinfo_Ptr): Removed.
10087 (OSD): This function is now internal to this package.
10088 (SSD): This function is now internal to this package.
10089 (DT): New function that displaces the pointer to the table of primitives
10090 to get access to the enclosing wrapper record.
10091 (IW_Membership): Code cleanup.
10092 (Offset_To_Top): Code cleanup.
10093 (Predefined_DT): Removed.
10094 (Register_Interface_Tag): Removed.
10095 (Set_Interface_Table): Removed.
10096 (Set_Offset_Index): Removed.
10097 (Set_Offset_To_Top): Code cleanup.
10098 (Set_OSD): Removed.
10099 (Set_Signature): Removed.
10100 (Set_SSD): Removed.
10101 (Set_Tagged_Kind): Removed.
10102 (Typeinfo_Ptr): Removed.
10104 (Displace): Add missing check on null actual.
10106 * exp_disp.ads, exp_disp.adb
10107 (Select_Expansion_Utilities): Removed.
10108 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
10109 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
10110 the interface requires a new parameter.
10111 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
10112 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
10113 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
10114 Done to remove package Select_Expansion_Utilities.
10115 (Make_DT): New implementation for statically allocated dispatch tables.
10116 (Make_Secondary_DT): Moved to the scope of Make_DT.
10117 (Register_Primitive): Code cleanup plus incoporate the use of the new
10118 function DT_Address_Attribute.
10119 (Expand_Interface_Thunk): The profile of this subprogram has been
10120 changed to return the Thunk_Id and the corresponding code.
10121 (Fill_DT_Entry): Removed. Its functionality is now provided by
10122 subprogram Register_Primitive.
10123 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
10124 subprogram Register_Primitive.
10125 (Register_Primitive): New subprogram that incorporates the previous
10126 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
10127 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
10128 was only required to call Make_DT_Access_Action, which is now removed.
10129 (Ada_Actions): Removed
10130 (Action_Is_Proc): Removed
10131 (Action_Nb_Arg): Removed
10132 Replace all the calls to Make_DT_Access_Action by direct calls to
10133 Make_Procedure_Call_Statement or Make_Function_Call.
10134 (Set_DTC_Entity_Value): New subprogram.
10135 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
10136 (Expand_Interface_Thunk): Add missing support for primitives that are
10137 functions with a controlling result (case in which there is no need
10138 to generate the thunk).
10140 * exp_atag.ads, exp_atag.adb
10141 (Build_DT): New subprogram that displaces the pointer to reference the
10142 base of the wrapper record.
10143 (Build_Typeinfo_Offset): Removed.
10144 (RTE_Tag_Node): Removed.
10145 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
10146 (Build_Get_RC_Offset): Removed.
10147 (Build_Inherit_Predefined_Prims): Removed.
10148 (Build_Inherit_TSD: Removed.
10149 (Build_New_TSD): Removed.
10150 (Build_Set_External_Tag): Removed.
10151 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
10152 (Build_Set_Prim_Op_Address): Add documentation.
10153 (Build_Set_TSD): Removed.
10155 * rtsfind.ads, rtsfind.adb
10156 (Load_Fail): If load fails and we are not in configurable run-time
10157 mode, then raise Unrecoverable_Error.
10158 (Text_IO_Kludge): Generate an error message if a run-time library is
10159 not available in a given run-time (ie. zfp run-time).
10160 (RTE_Record_Component): Add code to check that the component we search
10161 for is not found in two records in the given run-time package.
10162 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
10163 (RE_DT_Predef_Prims_Offset): New entity
10164 (RE_Static_Offset_To_Top): New entity
10165 (RE_HT_Link): New entity.
10166 (System_Address_Image): Addition of this run-time package.
10167 (RE_Address_Image): New entity.
10168 (RE_Abstract_Interface): Removed.
10169 (RE_Default_Prim_Op_Count): Removed.
10170 (RE_DT_Entry_Size): Removed.
10171 (RE_DT_Min_Prologue_Size): Removed.
10172 (RE_DT_Prologue_Size): Removed.
10173 (RE_Ifaces_Table_Ptr): Removed.
10174 (RE_Interface_Data_Ptr): Removed.
10175 (RE_Type_Specific_Data): Removed.
10176 (RE_Primary_DT): Removed.
10177 (RE_Register_Interface_Tag): Removed.
10178 (RE_Set_Offset_Index): Removed.
10179 (RE_Set_OSD): Removed.
10180 (RE_Set_SSD): Removed.
10181 (RE_Set_Signature): Removed.
10182 (RE_Set_Tagged_Kind): Removed.
10183 (RE_Address_Array): New entity.
10184 (RE_DT): New entity.
10185 (RE_Iface_Tag): New entity.
10186 (RE_Interfaces_Table): New entity.
10187 (RE_No_Dispatch_Table): New entity.
10188 (RE_NDT_Prims_Ptr): New entity.
10189 (RE_NDT_TSD): New entity.
10190 (RE_Num_Prims): New entity.
10191 (RE_Offset_To_Top_Function_Ptr): New entity.
10192 (RE_OSD_Table): New entity.
10193 (RE_OSD_Num_Prims): New entity.
10194 (RE_Predef_Prims): New entity
10195 (RE_Predef_Prims_Table_Ptr): New entity.
10196 (RE_Primary_DT): New entity.
10197 (RE_Signature): New entity.
10198 (RE_SSD): New entity.
10199 (RE_TSD): New entity.
10200 (RE_Type_Specific_Data): New entity.
10201 (RE_Tag_Kind): New entity.
10203 2007-06-06 Thomas Quinot <quinot@adacore.com>
10205 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
10206 C imported variable.
10207 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
10210 2007-06-06 Robert Dewar <dewar@adacore.com>
10212 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
10215 2007-06-06 Vincent Celier <celier@adacore.com>
10217 * a-tifiio.adb (Put, internal): For negative numbers, check that there
10218 is room for at least one digit and the minus sign.
10219 (Put.Put_Character): Never put a character outside of the range of
10222 2007-06-06 Olivier Hainque <hainque@adacore.com>
10223 Eric Botcazou <ebotcazou@adacore.com>
10225 * utils2.c (build_allocator): Provide the extra arguments to
10226 make_aligning_type for super-aligned objects allocated from the default
10227 pool. Leave enough room for a pointer before the aligning field, and
10228 store the system's allocator return value there.
10229 (build_call_alloc_dealloc): When releasing a super-aligned object,
10230 retrieve the system's allocator return value from where build_allocator
10231 has stored it, just ahead of the adjusted address we are passed.
10232 (build_call_raise): Handle properly the generation of line numbers when
10233 the node is marked No_Location.
10234 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
10235 by using DECL_UID on ties.
10236 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
10238 (build_call_raise): Handle converting exception into goto; support new
10240 (build_component_ref): Add new arg to build_call_raise.
10242 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10244 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
10245 "." in the case of nnn.xxx when nnn terminates with an underscore.
10246 Parse the remaining "#" or ":" in the case of nnn#.xxx#
10248 2007-06-06 Robert Dewar <dewar@adacore.com>
10250 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
10252 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10253 Vincent Celier <celier@adacore.com>
10254 Robert Dewar <dewar@adacore.com>
10256 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
10258 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
10259 ((destructor)) for adafinal, even when switch -a is used.
10260 Do not issue pragma Linker_Destructor for adafinal when switch -a is
10262 (Gen_Object_Files_Options): Add formatting of Linker Options, when
10263 Output_Linker_Option_List is set. Suppress this formatting when
10264 Zero_Formatting is set.
10265 Add case for CLI_Target.
10266 (System_Restrictions_Used): New flag, used to avoid generating with of
10267 System_Restrictions and initialization of the data unless there is
10268 some use of System.Restrictions in the partition.
10269 (Check_System_Restrictions_Used): New procedure
10271 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
10272 since we only with this unit in the binder file if it is used elsewhere
10275 2007-06-06 Vincent Celier <celier@adacore.com>
10277 * bindusg.adb: Add line for @<response file>
10278 Add lines for new switches -R and -Z
10280 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
10281 hierarchy in the list of files of the closure when -R is used
10282 (Gnatbind): Accept arguments starting with '@' to indicate response
10283 files and take the arguments from the response files.
10284 If List_Closure is set, display the referenced files
10286 2007-06-06 Javier Miranda <miranda@adacore.com>
10287 Robert Dewar <dewar@adacore.com>
10288 Ed Schonberg <schonberg@adacore.com>
10290 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
10291 which the address-clause is applied to in-mode actuals (allowed by
10293 (Apply_Discriminant_Check): Do not generate a check if the type is
10294 constrained by a current instance.
10295 (Activate_Division_Check): New procedure
10296 (Activate_Overflow_Check): New procedure
10297 (Activate_Range_Check): New procedure
10298 Call these new Activate procedures instead of setting flags directly
10299 (Apply_Array_Size_Check): Removed, no longer needed.
10300 Code clean up: remove obsolete code related to GCC 2.
10301 (Get_E_Length): Protect against bomb in case scope is standard
10302 (Selected_Range_Checks): If the node to be checked is a conversion to
10303 an unconstrained array type, and the expression is a slice, use the
10304 bounds of the slice to construct the required constraint checks.
10305 Improve NOT NULL error messages
10306 (Apply_Constraint_Check): If the context is a null-excluding access
10307 type, diagnose properly the literal null.
10309 2007-06-06 Pascal Obry <obry@adacore.com>
10311 * clean.adb (Clean_Archive): Use untouched casing for the archive name
10312 and the corresponding .deps file.
10313 (Clean_Interface_Copy_Directory): Use untouched casing for the library
10314 src directory. Minor code-clean-up. Use untouched casing for files
10315 read into the library src dir.
10316 (Clean_Library_Directory): Idem.
10317 (Parse_Cmd_Line): Accept new switch -aP
10319 2007-06-06 Javier Miranda <miranda@adacore.com>
10320 Ed Schonberg <schonberg@adacore.com>
10321 Robert Dewar <dewar@adacore.com>
10322 Eric Botcazou <ebotcazou@adacore.com>
10323 Arnaud Charlet <charlet@adacore.com>
10325 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
10326 applicable to types that have the With_Type flag set. Returns the
10327 non-limited view of the type, if available, otherwise the type itself.
10328 For class-wide types, there is no direct link in the tree, so we have
10329 to retrieve the class-wide type of the non-limited view of the Etype.
10330 New attributes Static_Initialization and Static_Elaboration_Desired.
10331 Remove the pragma Thread_Body, and the associated flag
10332 Is_Thread_Body in entities, and all related code.
10333 (Suppress_Value_Tracking_On_Call): New flag
10334 E_Exception has Esize and Alignment fields
10335 (Universal_Aliasing): New function.
10336 (Set_Universal_Aliasing): New procedure.
10337 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
10338 (Check_Nested_Access): New procedure.
10339 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
10340 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10341 (Related_Interface): New attribute. Present in dispatch table pointer
10342 components of records. Set to point to the entity of the corresponding
10344 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
10345 (Original_Access_Type): Remove, not needed.
10346 (Root_Type): Handle properly subtypes of class-wide-types.
10349 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
10350 class-wide types visible through limited-with clauses.
10351 (Try_Primitive_Operation): When examining all primitive operations of a
10352 tagged type, do not consider subprograms labeled as hidden unless they
10353 belong to a private generic type with a tagged parent.
10354 (Try_Object_Operation): Extensive rewriting, to handle properly various
10355 overloading cases, when several ancestors may have class-wide operations
10356 that are possible candidates, and when the overloaded functions return
10357 array types and have defaulted parameters so that the call may be
10358 interpreted as an indexing.
10359 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
10360 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
10361 successive actuals before analyzing the call itself.
10362 (Try_Primitive_Operation): A primitive operation is compatible with the
10363 prefix if the prefix has a synchronized type and the type of the formal
10364 is its corresponding record, as can be the case when the primitive
10365 operation is declared outside of the body of the type.
10366 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
10367 perform homonym traversal, looking for class-wide operation matches
10368 (formerly done in statements of Try_Class_Wide_Operation). Matches on
10369 access parameters are now restricted to anonymous access types.
10370 (Mark_Allocator): An allocator with a discriminant association parent is
10372 (Try_One_Prefix_Interpretation): If the type of the object is
10373 incomplete, as can be happen when it is a limited view obtained through
10374 a limited_with_clause, the selected component is not part of a prefixed
10376 (Complete_Object_Operation): Diagnose properly an object that is not
10377 aliased when the corresponding controlling formal is an access
10379 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
10380 ambiguous calls in prefixed notation, where two primitives differ only
10381 in that the controlling argument of one is an access parameter.
10383 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
10384 whether a function that returns an unconstrained type can be inlined.
10385 (Process_Formals): Diagnose properly the illegal use of an incomplete
10386 type in the profile of an access_to_subprogram declaration.
10387 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
10388 operations are attached to the corresponding record.
10389 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
10390 When processing a primitive of a concurrent type which implements an
10391 interface change the type of all controlling formals to that of the
10392 corresponding record type.
10393 (Check_Synchronized_Overriding): Relax the conditional logic when trying
10394 to determine the tagged type to which a primitive belongs.
10395 (Check_Conventions): Capture condition to ignore a primitive operation
10396 (which is shared between the loop in Check_Conventions and the one in
10397 Check_Convention) in a new local function Skip_Check.
10398 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
10399 confusion with Check_Conventions' own Prim_Op local variable.
10400 (Create_Extra_Formals): Test for a tagged result type rather than a
10401 controlling result when determining whether to add a BIP_Alloc_Form
10402 formal and a BIP_Final_List formal to the function.
10403 (Check_Conformance); For parameters that are anonymous access types,
10404 subtype conformance requires that the not null and the constant
10405 indicators must match
10406 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
10407 to retrieve the appropriate type when processing a concurrent type
10408 declared within a generic. Minor comment reformatting. Change invocation
10409 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
10411 (Analyze_Subprogram_Body): If the return type of a function is an
10412 anonymous access to the limited view of a class-wide type, and the
10413 non-limited view of the type is available, update the type of the
10414 function so that code can be generated.
10415 (Process_Formals): In case of access-subtype itype whose designated
10416 type is also an itype (situation that happens now with access to
10417 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
10418 attribute to avoid backend problems.
10419 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
10420 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
10421 anonymous types' designated types are same before testing
10422 Subtypes_Statically_Match.
10423 (Create_Extra_Formals): Test for a named access parameter that is a
10424 controlling formal as an additional condition for adding an
10425 accessibility level formal. This can occur in the subp type created for
10426 dispatching calls in Expand_Dispatching_Call, and allows calling
10427 Create_Extra_Formals from that procedure rather than special-casing the
10428 extra formals there.
10429 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
10430 when the function has a controlling result.
10431 (Check_Returns): Add much more knowledge of the optimization of local
10432 raise statements to gotos, to retain proper warnings in this case.
10433 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
10434 nodes when looking for last statement.
10436 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
10437 class-wide types visible through limited with clauses.
10438 (Add_One_Interp): If the operands are anonymous access types, the
10439 predefined operator on universal_access is immediately visibles
10440 (Find_Unique_Type): Handle anonymous access to subprogram types just as
10441 other anonymous access types.
10442 (Disambiguate): Take into account CIL convention.
10443 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
10445 2007-06-06 Robert Dewar <dewar@adacore.com>
10447 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
10448 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
10449 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
10450 Fix lower bound of tables.
10453 * nlists.adb: Ditto.
10454 (Prev_Node, Next_Node): Change index type to Int so that it properly
10455 covers the range First_Node_Id - 1 up.
10457 2007-06-06 Javier Miranda <miranda@adacore.com>
10458 Ed Schonberg <schonberg@adacore.com>
10459 Bob Duff <duff@adacore.com>
10460 Hristian Kirtchev <kirtchev@adacore.com>
10462 * exp_aggr.ads, exp_aggr.adb:
10463 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
10464 in extension aggregates.
10465 (Flatten): Other conditions being met, an aggregate is static if the
10466 low bound given by component associations is different from the low
10467 bound of the base index type.
10468 (Packed_Array_Aggregate_Handled): If the component type is itself a
10469 packed array or record, the front-end must expand into assignments.
10470 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
10471 Init_Pr, instead of Ancestor_Is_Expression.
10472 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
10473 coextension chain root, either generate a list controller or use the
10474 already existing one.
10475 (Static_Array_Aggregate): New procedure to construct a positional
10476 aggregate that can be handled by the backend, when all bounds and
10477 components are compile-time known constants.
10478 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
10479 types covering interface types into assignments.
10480 (Replace_Type): move to Build_Record_Aggr_Code.
10481 (Expand_Record_Aggr_Code): if the target of the aggregate is an
10482 interface type, convert to the definite type of the aggregate itself,
10483 so that needed components are visible.
10484 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
10485 components and the context is an extended return statement do not
10486 create a transient block for it, to prevent premature finalization
10487 before the return is executed.
10488 (Gen_Assign): Do not generate a call to deep adjust routine if the
10489 component type is itself an array of controlled (sub)-components
10490 initialized with an inner aggregate.
10491 (Component_Check): New name for Static_Check. This name is now more
10492 appropriate, and documentation is added which was missing.
10493 (Component_Check): Add test for bit aligned component value
10494 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
10495 Tagged_Comps, name is more appropriate given added function below.
10496 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
10498 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10499 Javier Miranda <miranda@adacore.com>
10500 Robert Dewar <dewar@adacore.com>
10502 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
10503 Terminated: Add unchecked type conversion from System.Address to
10504 System.Tasking.Task_Id when calling the predefined primitive
10506 Disable new Ada 05 accessibility check for JVM.NET targets, which
10507 cannot be implemented in a practical way.
10508 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
10509 the sources always references the tag of the actual object. Therefore,
10510 if 'Tag is applied in the sources to class-wide interface objects we
10511 generate code that displaces "this" to reference the base of the object.
10512 (Expand_N_Attribute_Reference, case Size): Return specified size if
10513 known to front end.
10514 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
10515 has code that displaces the pointer of the object to manage interface
10516 types. However this code must not be executed when the prefix is a
10517 subprogram. This bug caused the wrong expansion of the internally
10518 generated assignment that fills the dispatch table when the primitive
10519 is a function returning a class-wide interface type.
10520 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
10521 Set_Attribute_Name for Name_Unaligned_Valid.
10523 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10524 Gary Dismukes <dismukes@adacore.com>
10526 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
10527 If the initialization is the equivalent aggregate of the initialization
10528 procedure of the type, do not remove it.
10529 (Expand_N_Attribute_Definition_Clause): Exclude access variables
10530 initialized to null from having their expression reset to empty and
10531 note this exception in the comment.
10533 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10534 Robert Dewar <dewar@adacore.com>
10535 Ed Schonberg <schonberg@adacore.com>
10536 Gary Dismukes <dismukes@adacore.com>
10538 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
10539 Add "with" and "use" clauses for Sem_Attr.
10540 (Expand_Current_Value): Do not replace occurences of attribute
10541 references where the prefix must be a simple name.
10543 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
10544 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
10545 Attribute_Requires_Simple_Name_Prefix.
10546 (Name_Modifies_Prefix): Body of new function.
10547 (Requires_Simple_Name_Prefix): Body of new function.
10548 (Resolve_Attribute, case Access): Improve error message for case of
10549 mismatched conventions.
10550 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
10552 (Analyze_Attribute, case 'Access): If the type of the prefix is a
10553 constrained subtype for a nominal unconstrained type, use its base type
10554 to check for conformance with the context.
10555 (Resolve_Attribute): Remove test of the access type being associated
10556 with a return statement from condition for performing accessibility
10557 checks on access attributes, since this case is now captured by
10558 Is_Local_Anonymous_Access.
10559 (Analyze_Access_Attribute): Set Address_Taken on entity
10560 (Analyze_Attribute, case Address): Set Address_Taken on entity
10561 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
10562 validating an access attribute whose prefix is a current instance.
10563 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
10564 applied to dispatching operations, if freezing is required then we set
10565 the attribute Has_Delayed_Freeze in the prefix's entity.
10566 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
10567 current scope if access of local subprogram taken
10568 (Analyze_Access_Attribute): Check legality of self-reference even if the
10569 expression comes from source, as when a single component association in
10570 an aggregate has a box association.
10571 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
10572 the prefix if it is a protected operation and the attribute is
10573 Unrestricted_Access.
10574 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
10575 reference to the base type of the context, to force a constraint check
10576 when the context is an access subtype with an explicit constraint.
10577 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
10578 node is rewritten as an interface conversion. leave unanalyzed after
10579 resolution, to ensure that type checking against the context will take
10582 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10583 Javier Miranda <miranda@adacore.com>
10584 Robert Dewar <dewar@adacore.com>
10586 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
10587 wrapper when the full view of the controlling type of an inherited
10588 function that dispatches on result implements interfaces.
10589 (Expand_N_Object_Declaration): In cases where the type of the
10590 declaration is anonymous access, create finalization list for it.
10591 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
10592 if the object has no explicit initialization, to match description of
10593 functionality of pragam Persistent_BSS.
10594 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
10595 new function to build static aggregates, to replace initialization call
10596 when static initialization is desired.
10597 (Freeze_Type): Generate a list controller for an access type whenever
10598 its designated type has controlled anonymous access discriminants.
10599 (Build_Equivalent_Aggregate): New procedure to compute a static
10600 aggregate to be used as default initialization for composite types,
10601 instead of a generating a call to the initialization procedure for the
10603 (Build_Initialization_Call): When available, replace a call to the
10604 initialization procedure with a copy of the equivalent static aggregate
10606 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
10607 declarations for objects of a class-wide interface type, rather than
10608 just identifiers, to prevent visibility problems.
10609 (Expand_N_Object_Declaration): When expanding the declaration for an
10610 object of a class-wide interface type, preserve the homonym chain of
10611 the original entity before exchanging it with that of the generated
10612 renaming declaration.
10613 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
10614 active, because there is no way to handle the exception.
10615 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
10616 to do a minimum decoration of the Access_Disp_Table list.
10617 (Expand_Record_Controller): Avoid the addition of the controller between
10618 the component containing the tag of a secondary dispatch table and its
10619 adjacent component that stores the offset to the base of the object.
10620 This latter component is only generated when the parent type has
10621 discriminants ---documented in Add_Interface_Tag_Components).
10622 (Apply_Array_Size_Check): Removed, no longer needed.
10623 (Expand_N_Full_Type_Declaration): If the type has anonymous access
10624 components, create a Master_Entity for it only if it contains tasks.
10625 (Build_Init_Procedure): Suppress the tag assignment compiling under
10627 (Freeze_Record_Type): Remove code associated with creation of dispatch
10629 (Init_Secondary_Tags): Update type of actuals when generating calls to
10630 Ada.Tags.Set_Offset_To_Top
10631 (Stream_Operation_OK): Disable use of streams compiling under no
10633 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
10634 if Has_Init_Expression set.
10635 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
10636 Register_Primitive, which provides the same functionality.
10637 (Requires_Init_Proc): Return false in case of interface types.
10638 (Add_Secondary_Tables): Use the new attribute Related_Interface to
10640 (Predefined_Primitive_Freeze): Do not assume that an internal entity
10641 is always associated with a predefined primitive because the internal
10642 entities associated with interface types are not predefined primitives.
10643 Therefore, the call to Is_Internal is replaced by a call to the
10644 function Is_Predefined_Dispatching_Operation.
10645 (Make_Eq_If): When generating the list of comparisons for the
10646 components of a given variant, omit the controller component that is
10647 present if the variant has controlled components.
10649 2007-06-06 Javier Miranda <miranda@adacore.com>
10650 Hristian Kirtchev <kirtchev@adacore.com>
10651 Bob Duff <duff@adacore.com>
10653 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
10654 handle the creation of finalization lists and calls for nested
10655 coextensions when the root of the chains is part of a return statement.
10656 (Inside_A_Return_Statement): New function inside Complete_Coextension_
10658 (Expand_Record_Equality): Skip components that are interface types.
10659 (Displace_Allocator_Pointer): Add missing support for interface subtypes
10660 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
10661 with Rewrite_Coextension. Change the condition for detecting coextension
10663 (Is_Local_Access_Discriminant): Removed.
10664 (Rewrite_Coextension): New routine which rewrites a static coextension
10665 as a temporary and uses its unrestricted access in the construction of
10667 (Complete_Coextension_Finalization): New routine. Generate finalization
10668 attachment calls to all delayed coextensions.
10669 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
10670 the allocator is not a coextension itself and has delayed coextensions.
10671 If the current allocator is controlled, but also a coextension, delay
10672 the generation of the finalization attachment call.
10673 Rename local variable "Node" to "Nod" in order to avoid confusion with
10675 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
10676 limited types that are not inherently limited. Such an allocator is
10677 illegal, but is generated by the expander for a return statement, to
10678 copy the result onto the secondary stack. This is the only case where a
10679 limited object can be copied. Generate code to displace the pointer
10680 to the object if the qualified expression is a class-wide interface
10681 object. Such displacement was missing and hence the copy of the object
10683 (Apply_Accessibility_Check): Handle allocated objects initialized in
10685 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
10686 and Expand_Allocator_Expression. Allocating class-wide interface objects
10687 this routine displaces the pointer to the allocated object to reference
10688 the component referencing the corresponding secondary dispatch table.
10689 Expand_Allocator_Expression): Add missing support to allocate class-wide
10690 interface objects initialized with a qualified expression.
10691 (Get_Allocator_Final_List): Test for an anonymous access type that is a
10692 function result type, and use the finalization list associated with the
10693 function scope in that case (such an anonymous type should not be
10694 treated like an access parameter's type).
10696 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10697 Gary Dismukes <dismukes@adacore.com>
10698 Javier Miranda <miranda@adacore.com>
10700 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
10701 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
10702 required exception handler.
10703 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
10704 properly the case of a function whose return type is a limited
10705 class-wide interface type. Modify the code of the accessibility
10706 check to handle class-wide interface objects. In this case we need to
10707 displace "this" to reference the primary dispatch table to get access
10708 to the TSD of the object (to evaluate its accessibility level).
10709 (Expand_N_Extended_Return_Statement): Test for a tagged result type
10710 rather than a controlling result as one of the conditions for
10711 generating tests of the implicit BIP_Alloc_Form formal. The
10712 initialization assignment is also handled according to whether the
10713 result is tagged instead of controlling.
10714 In the case where the init assignment is inserted in the "then" part of
10715 the allocation conditional, rewrite the target to be a dereference of
10716 the implicit BIP_Object_Access formal.
10717 If the returned value is unconstrained and created on the secondary
10718 stack, mark the enclosing block and function so that the secondary
10719 stack is not reclaimed on return.
10720 Treat returns from functions with controlling results similarly to
10721 returns from functions with unconstrained result subtypes.
10722 If the object returned is unconstrained, and an allocator must be
10723 created for it, analyze the allocator once the block for the extended
10724 return is installed, to ensure that finalizable components
10725 of the expression use the proper finalization list. Guard the call to
10726 Move_Final_List with a check that there is something to finalize.
10727 (Make_Tag_Ctrl_Assignment): Use "old" handling
10728 of controlled type assignment for virtual machines, since new code uses
10729 unsupported features (such as direct access to bytes in memory).
10731 2007-06-06 Gary Dismukes <dismukes@adacore.com>
10732 Ed Schonberg <schonberg@adacore.com>
10734 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
10735 accessibility actual, check for the case of an aliased object that has
10736 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
10737 we fall into processing for the attribute rather than the name of the
10739 (Expand_Inline_Call): If an actual is a literal, and the corresponding
10740 formal has its address taken in the body, create a temporary to capture
10741 value. If the return type is a limited interface, do not treat the
10742 return value as Controlled.
10743 (Is_In_Place_Function): If the return type is a limited interface,
10744 treat as returning in place. The actual returned object may not always
10745 be limited, but the caller has to assume that it is returned in place.
10746 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
10747 context of an allocator, use the correct finalization chain (that is,
10748 the chain belonging to the access type, rather than the chain belonging
10749 to the current scope).
10750 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
10751 result type rather than a controlling result as a precondition for
10752 adding an allocation form actual to a build-in-place call.
10753 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
10754 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
10755 primitive in the dispatch tables. This work is now done by Make_DT when
10756 the type is frozen.
10757 (Register_Predefined_DT_Entry): Removed.
10758 (Add_Return): If end label is not present, use sloc of last statement
10759 for generated return statement in procedure, for better gdb behavior
10761 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
10762 object address nodes to ensure proper processing by routines like
10764 (Expand_Call): Fix generation of validity check for parameter
10765 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
10766 the allocation form parameter if the result subtype is constrained,
10767 except when the function has a controlling result.
10768 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
10769 rather than Is_Controlled and Has_Controlled_Component, since we want to
10770 include class-wide result types in this treatment. Also test for a
10771 controlling result, since that also requires passing a finalization
10773 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
10774 even when the result subtype is constrained, to handle calls involving
10775 controlling results.
10776 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
10777 is now called even when the result subtype is constrained, to handle
10778 calls involving controlling results.
10779 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
10780 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
10781 now performs the test).
10782 (Make_Build_In_Place_Call_In_Object_Declaration):
10783 Add_Alloc_Form_Actual_* is now called even when the result subtype is
10784 constrained, to handle calls involving controlling results.
10785 (Add_Return): Accomodate rewritten pattern from local raise to goto
10786 transformation, so that we still recognize an transfer statement
10787 and do the right thing here in that case.
10788 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
10789 and end of subprogram code.
10790 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
10791 support for primitives that are functions (without formals) with a
10792 controlling result.
10793 (Inherited_From_Formal): If the actual subtype has not generic parent
10794 type, it is not an actual for a formal derived type, and there is no
10795 operation to inherit from the formal.
10797 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10798 Thomas Quinot <quinot@adacore.com>
10800 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
10801 inserted cleanup code appropriately for GDB use.
10802 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
10803 exception handler for Deep_Adjust or Deep_Finalize.
10804 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
10805 Raise_From_Controlled_Operation is available, use a call to that
10806 subprogram instead of a plain "raise Program_Error" node to raise
10807 Program_Error if an exception is propagated from an Adjust or Finalize
10809 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
10810 appears in the optional statement list of a triggering alternative, the
10811 scope actions can be inserted directly there, and not in the list that
10812 includes the asynchronous select itself.
10814 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10815 Robert Dewar <dewar@adacore.com>
10816 Hristian Kirtchev <kirtchev@adacore.com>
10818 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
10819 generated exception handler appropriately when debugging generated code.
10820 Deal properly with No_Exception_Propagation restriction mode.
10821 (Expand_N_Abort_Statement): Add an unchecked type conversion from
10822 System.Address to System.Tasking.Task_Id when processing the result of
10823 the predefined primitive _disp_get_task_id.
10824 (Expand_N_Asynchronous_Select): Clarify comment.
10825 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
10826 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
10827 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
10828 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
10829 privals and for generated call to Complete_Entry_Body, for better gdb
10831 (Copy_Result_Type): Utility to construct a parameter and result profile
10832 for protected functions whose return type is an anonymous access to
10834 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
10836 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
10837 point when the local-raise-to-goto transformation has taken place.
10839 2007-06-06 Javier Miranda <miranda@adacore.com>
10840 Nicolas Setton <setton@adacore.com>
10842 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
10843 functionality when the backend is generating code.
10844 Otherwise any serious error
10845 reported by the backend calling the frontend routine Error_Msg
10846 changes the Compilation_Mode to Check_Semantics, disables the
10847 functionality of this routine and causes the generation of
10848 spureous additional errors.
10850 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
10851 debugging information now generated by the compiler for fat-pointer
10853 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
10855 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
10857 2007-06-06 Thomas Quinot <quinot@adacore.com>
10859 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
10860 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
10861 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
10862 For a remote call to a function with a classwide return type, apply an
10863 E.4(18) check to the returned value.
10864 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
10865 stream attributes of the designated type of an RACW, as they are not
10866 dispatching primitive operations.
10868 2007-06-06 Geert Bosch <bosch@adacore.com>
10870 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
10872 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
10874 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
10875 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
10877 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
10879 2007-06-06 Javier Miranda <miranda@adacore.com>
10881 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
10882 attribute compiling package Ada.Tags under No_Run_Time_Mode.
10884 2007-06-06 Javier Miranda <miranda@adacore.com>
10886 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
10887 deallocation of class-wide interface objects.
10888 (Expand_Dispatching_Constructor_Call): Take into account that if the
10889 result of the dispatching constructor is an interface type, the
10890 function returns a class-wide interface type; otherwise the returned
10891 object would be actual. The frontend previously accepted returning
10892 interface types because Expand_Interface_Actuals silently performed
10893 the management of the returned type "as if" it were a class-wide
10895 (Expand_Dispatching_Constructor_Call): Replace call to
10896 Make_DT_Access_Action by direct call to Make_Function_Call.
10898 2007-06-06 Robert Dewar <dewar@adacore.com>
10899 Ed Schonberg <schonberg@adacore.com>
10901 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
10902 compute masking constant, since we now set Esize properly to the
10904 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
10905 to match the alignment.
10906 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
10907 packed arrays of 8 bits or less.
10909 * freeze.adb (Freeze_Entity): When freezing the formals of a
10910 subprogram, freeze the designated type of a parameter of an access type
10911 only if it is an access parameter.
10912 Increase size of C convention enumeration object
10913 (Freeze_Entity, array type case): Make sure Esize value is properly
10914 adjusted for the alignment if it is known.
10915 (Freeze_Entity, array type case): When checking bit packed arrays for
10916 the size being incorrect, check RM_Size, not Esize.
10917 (Freeze_Record_Type): Check for bad discriminated record convention
10918 (In_Exp_Body): Return true if the body is generated for a subprogram
10919 renaming, either an attribute renaming or a renaming as body.
10920 (Check_Itype): If the designated type of an anonymous access component
10921 is a non-protected subprogram type, indicate that it is frozen, to
10922 prevent out-of-scope freeze node at some subsequent call.
10923 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
10924 only if the subprogram is neither imported nor exported, as well as the
10925 NCA descriptor class if the subprogram is exported.
10927 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10928 Arnaud Charlet <charlet@adacore.com>
10929 Robert Dewar <dewar@adacore.com>
10930 Gary Dismukes <dismukes@adacore.com>
10932 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
10933 default initialization on an imported object, when there is no
10934 initialization call generated for it.
10935 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
10938 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
10939 Static_Elaboration_Desired.
10940 Remove pragma Thread_Body.
10941 Implement a new pragma No_Body
10942 Removes the Explicit_Overriding pragma
10943 Remove Optional_Overriding pragma
10944 (Prag): Deal with Universal_Aliasing.
10945 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
10946 Pragma_CIL_Constructor): New names.
10948 * sem_cat.adb (Validate_Object_Declaration): An initialization that
10949 uses the equivalent aggregate of a type must be treated as an implicit
10951 (Get_Categorization): Check a unit for pragma Preelaborate only if it
10952 has none of the other categories.
10953 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
10954 to apply Import to an object renaming declaration.
10956 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
10957 from a C++ class should be declared as limited and that it will be
10958 considererd limited.
10959 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
10960 should be declared as limited and that it will be considererd limited.
10961 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
10962 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
10963 (Analyze_Pragma): Deal with Universal_Aliasing.
10964 (Sig_Flags): Likewise.
10965 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
10966 (Overflow_Checks_Unsuppressed): New flag.
10967 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
10968 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
10969 case of JVM or .NET targets, and compiling user code.
10970 Add debugging convenience routine rv
10972 2007-06-06 Robert Dewar <dewar@adacore.com>
10974 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
10975 are interface type.
10976 (Build_Elementary_Input_Call): For floating-point use right type in the
10977 absence of strange size or stream size clauses.
10978 (Build_Elementary_Write_Call): Same fix
10979 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
10980 set to value that does not match base type size.
10982 2007-06-06 Ed Schonberg <schonberg@adacore.com>
10984 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
10985 object of a limited type can be initialized with a call to a function
10986 that returns in place. If the limited type has unknown discriminants,
10987 and the underlying type is a constrained composite type, build an actual
10988 subtype from the function call, as is done for private types.
10989 (Side_Effect_Free): An expression that is the renaming of an object or
10990 whose prefix is the renaming of a object, is not side-effect free
10991 because it may be assigned through the renaming and its value must be
10992 captured in a temporary.
10993 (Has_Controlled_Coextensions): New routine.
10994 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
10995 as is done for other limited types.
10996 (Non_Limited_Designated_Type): new predicate.
10997 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
10999 Remove all handling of with_type clauses.
11001 * par-ch10.adb: Remove all handling of with_type clauses.
11003 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
11004 checksum if the main source could not be parsed.
11005 (Loat_Unit): When processing a child unit, determine properly whether
11006 the parent unit is a renaming when the parent is itself a child unit.
11007 Remove handling of with_type clauses.
11009 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
11010 (Set_Is_Static_Coextension): New procedure.
11011 (Has_Local_Raise): New function
11012 (Set_Has_Local_Raise): New procedure
11013 (Renaming_Exception): New field
11014 (Has_Init_Expression): New flag
11015 (Delay_Finalize_Attach): Remove because flag is obsolete.
11016 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
11017 Remove all handling of with_type clauses.
11018 (Exception_Junk): Can now be set in N_Block_Statement
11020 2007-06-06 Vincent Celier <celier@adacore.com>
11021 Robert Dewar <dewar@adacore.com>
11023 * frontend.adb (Frontend): Return immediately if the main source could
11024 not be parsed, because of preprocessing errors.
11026 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
11027 (Gnat1drv): Exit with errors if the main source could not be parsed,
11028 because of preprocessing errors.
11029 (Check_Rep_Info): New procedure
11031 2007-06-06 Robert Dewar <dewar@adacore.com>
11033 * g-hesorg.ads, g-heasor.ads,
11034 g-busorg.ads, g-bubsor.ads: Update documentation
11035 GNAT.Heap/Bubble_Sort_G is now pure
11037 2007-06-06 Robert Dewar <dewar@adacore.com>
11039 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
11041 2007-06-06 Robert Dewar <dewar@adacore.com>
11042 Ed Schonberg <schonberg@adacore.com>
11044 * g-comlin.ads, g-comlin.adb:
11045 Add new warning for renaming of function return objects
11047 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
11048 (Tree_Read): Use size of object instead of type'object_size, since the
11049 latter is incorrect for packed array types.
11050 (Tree_Write): Same fix
11052 * opt.ads: Add new warning for renaming of function return objects
11053 (Generating_Code): New boolean variable used to indicate that the
11054 frontend as finished its work and has called the backend to process
11055 the tree and generate the object file.
11056 (GCC_Version): Is now private
11057 (Static_Dispatch_Tables): New constant declaration.
11058 (Overflow_Checks_Unsuppressed): New flag.
11059 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
11060 (List_Closure): New flag for gnatbind (-R)
11061 Zero_Formatting: New flag for gnatbind (-Z)
11062 (Special_Exception_Package_Used): New flag.
11063 (Warn_On_Unrepped_Components): New flag.
11065 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
11066 unit is a compilation unit, rather than relying on its scope, so that
11067 Standard can be renamed.
11068 (Analyze_Object_Renaming): Add new warning for renaming of function
11070 Also reject attempt to rename function return object in Ada 83 mode.
11071 (Attribute_Renaming): In case of tagged types, add the body of the
11072 generated function to the freezing actions of the type.
11073 (Find_Type): A protected type is visible right after the reserved word
11074 "is" is encountered in its type declaration. Set the entity and type
11075 rather than emitting an error message.
11076 (New_Scope): Properly propagate Discard_Names to inner scopes
11077 (Check_Nested_Access): New procedure.
11078 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
11079 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11081 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
11082 Add new warning for renaming of function return objects
11083 (Check_References): Suppress warnings for objects whose type or
11084 base type has Warnings suppressed.
11085 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
11086 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
11088 2007-06-06 Vincent Celier <celier@adacore.com>
11089 Emmanuel Briot <briot@adacore.com>
11090 Olivier Hainque <hainque@adacore.com>
11092 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
11093 absolute value of Header.Block_Size when displaying the freed physical
11095 (Allocate): Compute Storage_Address using Integer_Address, not
11096 Storage_Offset, because the range of Storage_Offset may not be large
11098 (Configure): New parameter Low_Level_Traces
11099 (Allocate, Deallocation, Free_Physically): Added low-level traces
11100 (Configure): new parameter Errors_To_Stdout.
11101 (Output_File): new subprogram
11102 (Deallocate, Dereference): Send error messages to the proper stream
11103 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
11104 documented. Previous code would send it to the current output file
11105 defined in GNAT.IO, which might not be stdout
11106 (Is_Valid): Adjust comment to mention that a positive reply means that
11107 Header_Of may be used to retrieve the allocation header associated with
11108 the subprogram Storage address argument. Return False early if this
11109 address argument is misaligned.
11111 2007-06-06 Vincent Celier <celier@adacore.com>
11113 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
11115 (ASIS_Main): New global variable
11116 (Get_Closure): New procedure
11117 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
11118 check, metric or pretty. Call Get_Closure in this case.
11119 (Check_Files): For GNAT LIST, check all sources of all projects when
11120 All_Projects is True.
11121 (GNATCmd): Accept -U for GNAT LIST
11123 2007-06-06 Vincent Celier <celier@adacore.com>
11125 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
11127 Correct error message when invocation of the linker fails
11128 Add explicit size clause for the C imported variables
11129 Object_List_File_Supported and Using_GNU_Linker to emphasize that
11130 we expect char size.
11131 Read target parameters earlier, since this is needed to set
11132 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
11135 2007-06-06 Vincent Celier <celier@adacore.com>
11138 Add 3 spaces before the default project directory when displaying
11139 the project search path.
11140 Add new command line switch '-l' to display license information.
11142 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
11144 * gmem.c: Add support for timestamps on memory operations.
11146 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
11147 operations (not used currently, just foundation for future
11148 enhancements). Add possibility to perform full dump of gmem.out file.
11149 (Print_Back_Traces): Declare accesses to root arrays constants since
11150 they aren't modified.
11151 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
11153 2007-06-06 Vincent Celier <celier@adacore.com>
11155 * gnatsym.adb: Update Copyright notice
11156 (Parse_Cmd_Line): Accept new switch -D
11157 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
11160 * prj.ads (Policy): New policy Direct
11161 (Yes_No_Unknown): New enumeration type
11162 (Project_Data): New component Libgnarl_Needed
11164 * prj-nmsc.adb (Check_For_Source): When recording a source file make
11165 use the untouched pathname casing.
11166 (Get_Directories): Ensure that the Display_Exec_Directory is using the
11167 proper casing on non case-sensitive platforms like Windows.
11168 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
11169 on all platforms, as it is not possible to know which one is allowed
11170 before processing the project files.
11171 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
11172 specified when symbol policy is Direct. Check that when there is a
11173 symbol file defined (either by default or with attribute
11174 Library_Symbol_File) it is not the same as the reference symbol file.
11175 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
11176 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
11177 extending projects.
11178 (Record_Ada_Source): Record a source that has been locally removed in an
11181 * symbols.ads (Policy): New policy Direct
11183 * symbols-vms.adb (Initialize): Take new policy Direct in case
11186 2007-06-06 Vincent Celier <celier@adacore.com>
11188 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
11189 Correct obvious bug (return Dir; instead of return Directory;).
11190 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
11192 2007-06-06 Thomas Quinot <quinot@adacore.com>
11194 * g-pehage.adb (Produce): Open output files in Binary mode, so that
11195 they have UNIX line endings (LF only) even on Windows, and thus pass
11196 all GNAT style checks.
11198 2007-06-06 Emmanuel Briot <briot@adacore.com>
11200 * g-regpat.adb (Quote): Fix improper quoting of '.'
11202 2007-06-06 Thomas Quinot <quinot@adacore.com>
11204 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
11205 default, set False on a per-runtime basis.
11206 (Need_Netdb_Buffer): New constant.
11208 * g-socket.ads, g-socket.adb: Import new package
11209 GNAT.Sockets.Thin.Task_Safe_NetDB.
11210 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
11211 binding to obtain proper message.
11212 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
11213 Replace various occurrences of Arry (Arry'First)'Address with the
11214 equivalent Arry'Address (GNAT always follows implementation advice from
11216 (Get_Host_By_Address, Get_Host_By_Name,
11217 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
11218 instead, rely on platform-specific task safe netdb operations provided
11221 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
11222 parameter Process_Blocking_IO.
11223 (Host_Error_Messages): Add stub body.
11224 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11225 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
11226 Safe_Getservbyport): Move functions into new child package
11228 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
11229 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
11230 (In_Addr): Add alignment clause.
11232 2007-06-06 Robert Dewar <dewar@adacore.com>
11234 * g-trasym.ads, g-traceb.ads: Update list of supported targets
11235 Add note about symbolic traceback
11237 2007-06-06 Pascal Obry <obry@adacore.com>
11239 * hostparm.ads (Normalized_CWD): Use the host directory separator
11240 instead of the hardcoded forward slash which is not the proper
11241 character on Windows for example.
11242 (Java_VM): Removed.
11244 2007-06-06 Vincent Celier <celier@adacore.com>
11245 Arnaud Charlet <charlet@adacore.com>
11247 * a-clrefi.adb, a-clrefi.ads: New files
11249 * impunit.adb: Add s-os_lib in the list of user visible units.
11250 (Non_Imp_File_Names_95): Add a-clrefi to this list
11251 Remove obsolete run-time entries.
11252 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
11253 "a-exetim" -- Ada.Execution_Time
11254 "a-extiti" -- Ada.Execution_Time.Timers
11256 * mlib-prj.ads, mlib-prj.adb
11257 (Build_Library): Use untouched object dir and library dir. At the
11258 same time makes sure that the checks are done using the canonical
11259 form. Removes hard-coded directory separator and use the proper host
11261 (Process_Project): Do not look in object directory to check if libgnarl
11262 is needed for a library, if there is no object directory.
11263 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
11265 (Build_Library): When invoking gnatbind, use a response file if the
11266 total size of the arguments is too large.
11268 * Makefile.rtl: (g-sttsne): New object file.
11269 Add entry for a-clrefi, s-utf_32, System.Exceptions
11271 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
11272 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
11273 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
11274 Change g-string to s-string, g-os_lib to s-os_lib
11275 Change all g-utf_32 references to s-utf_32
11277 2007-06-06 Tristan Gingold <gingold@adacore.com>
11278 Olivier Hainque <hainque@adacore.com>
11280 * init.c: Do not adjust IP of an imported VMS exception of ia64.
11281 LIB$STOP is called to raise an exception and the IP of the exception
11282 is the instruction right after the call.
11283 (__gnat_adjust_context_for_raise, AIX): Implement.
11284 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
11285 adjust_context_for_raise before Raise_From_Signal_Hanler.
11286 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
11287 siginfo is passed to the handler, necessary to let the zcx propagation
11288 engine unwind past it.
11290 2007-06-06 Olivier Hainque <hainque@adacore.com>
11292 * initialize.c (__gnat_initialize for vxworks): Update documentation
11293 on the ZCX support, using different sets of crtstuff objects than with
11296 2007-06-06 Robert Dewar <dewar@adacore.com>
11298 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
11300 (Layout_Type): Fix recomputation of size from alignment.
11302 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11303 Javier Miranda <miranda@adacore.com>
11305 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
11306 association in an instance.
11307 (Copy_Generic_Node): If the node is a string literal, no need to copy
11309 (Is_Generic_Formal): For a formal subprogram, the declaration is the
11310 grandparent of the entity.
11311 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
11312 to simplify handling of formal interfaces that derive from other formal
11314 (Instantiate_Subprogram_Body): The defining unit name of the body of
11315 the instance should be a defining identifier.
11316 (Install_Formal_Packages): make global to the package, for use in
11317 instantiations of child units.
11318 (Analyze_Package_Instantiation): Do not attempt to set information on an
11319 enclosing master of an entry when expansion is disabled.
11320 (Instantiate_Type): If the actual is a tagged synchronized type and the
11321 generic ancestor is an interface, create a generic actual for the
11322 corresponding record.
11323 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
11324 declaration, to ensure that the interface list is processed correctly.
11325 (Inline_Instance_Body): If enclosing scope is an instance body, remove
11326 its entities from visibiility as well.
11327 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
11328 given with a named association, analyze the expression only, not the
11329 discriminant association itself.
11330 (Reset_Entity): If the analysis of a selected component is transformed
11331 into an expanded name in the prefix of a call with parameters, do not
11332 transform the original node into an expanded name, to prevent visibility
11333 errors in the case of nested generics.
11334 (Check_Private_View): For an array type, check whether the index types
11335 may need exchanging.
11337 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11338 Vincent Celier <celier@adacore.com>
11340 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
11341 since both are separated.
11342 Add support for imported CIL packages.
11343 Add further special handling of "value_type" for CIL.
11344 Add special handling of pragma Import for CIL.
11346 * make.ads, make.adb: When switch -eS is used, direct all outputs to
11347 standard output instead of standard error, except errors.
11348 (Absolute_Path): Use untouched casing for the parent directory.
11349 (Add_Library_Search_Dir): Use the untouched directory name.
11350 (Add_Source_Search_Dir): Idem.
11351 (Change_To_Object_Directory): Update output to use proper casing.
11352 (Create_Binder_Mapping_File): Use the untouched filename to set
11354 (Gnatmake): Use untouched library and executable directory names.
11355 (Insert_Project_Sources): Use untouched filename for spec and body.
11356 (Is_In_Object_Directory): Use untouched object directory.
11357 (Mark_Directory): Idem.
11358 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
11359 contains the non-canonical filename in all cases.
11360 (Change_To_Object_Directory): In verbose mode, display the name of the
11361 object directory we're changing to.
11362 (Compile_Sources): Make sure, when a project file is used, to compile
11363 the body of the unit, when there is one, even when only the spec is
11364 recorded in an ALI file.
11365 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
11367 (Report_Compilation_Failed): New procedure
11368 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
11369 procedures moved from the spec to the body.
11370 (Extract_Failure): Removed, not used
11371 Replace explicit raises of exception Bind_Failed and Link_Failed with
11372 calls to Make_Failed with the proper message.
11373 Replace explicit raises of exception Compilation_Failed with calls to
11374 procedure Report_Compilation_Failed.
11375 (Initialize): Create mapping files unconditionally when using project
11378 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11379 Pragma_CIL_Constructor): New names.
11381 * targparm.ads, targparm.adb
11382 (Compiler_System_Version): Removed, no longer used.
11383 (Get_Target_Parameters): Relax checks on system.ads validity. Add
11384 handling of two new system flags: JVM and CLI.
11386 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11387 Arnaud Charlet <charlet@adacore.com>
11389 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
11390 time, use the default s-interr body that provides interrupt support
11392 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
11393 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
11394 g-soccon.ads, and s-taprop.adb for the marte run time.
11395 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
11396 timers are supported on marte.
11397 (EH_MECHANISM for marte): Do not use ZCX.
11398 (THREADSLIB for marte): Use -lmarte.
11399 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
11400 Add mlib-tgt-specific.o to gnatmake objects
11401 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
11402 longer of MLib.Tgt.
11403 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
11404 6, either kernel or rtp, use a specialized version of s-osinte.ads.
11406 2007-06-06 Pascal Obry <obry@adacore.com>
11408 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
11410 2007-06-06 Vincent Celier <celier@adacore.com>
11412 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
11413 separator, use instead the proper host directory separator.
11414 (Copy_ALI_Files): Make sure that an already existing ALI file in the
11415 ALI copy dir is writable, before doing the copy.
11417 * mlib-utl.ads, mlib-utl.adb:
11418 (Gcc): If length of command line is too long, put the list of object
11419 files in a response file, if this is supported by the platform.
11420 (Ar): If invocation of the archive builder is allowed to be done in
11421 chunks and building it in one shot would go above an OS dependent
11422 limit on the number of characters on the command line, build the archive
11425 2007-06-06 Vincent Celier <celier@adacore.com>
11427 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
11428 of specified object file is not equal to base name of source.
11430 2007-06-06 Javier Miranda <miranda@adacore.com>
11431 Hristian Kirtchev <kirtchev@adacore.com>
11432 Ed Schonberg <schonberg@adacore.com>
11434 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
11435 the full type declaration.
11436 (Analyze_Component_Declaration): Add local variable E to capture the
11437 initialization expression of the declaration. Replace the occurences of
11438 Expression (N) with E.
11439 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
11440 limited interface object with a function call.
11441 (Array_Type_Declaration): If the declaration lacks subtype marks for
11442 indices, create a simple index list to prevent cascaded errors.
11443 (Is_Null_Extension): Ignore internal components created for secondary
11444 tags when checking whether a record extension is a null extension.
11445 (Check_Abstract_Interfaces): Add missing support for interface subtypes
11446 and generic formals.
11447 (Derived_Type_Declaration): Add missing support for interface subtypes
11448 and generic formals.
11449 (Analyze_Object_Declaration): If an initialization expression is
11450 present, traverse its subtree and mark all allocators as static
11452 (Add_Interface_Tag_Component): When looking for components that may be
11453 secondary tags, ignore pragmas that can appear within a record
11455 (Check_Abstract_Overriding): an inherited function that dispatches on
11456 result does not need to be overriden if the controlling type is a null
11458 (Mentions_T): Handle properly a 'class attribute in an anonymous access
11459 component declaration, when the prefix is an expanded name.
11460 (Inherit_Component): If the derivation is for a private extension,
11461 inherited components remain visible and their ekind should not be set
11463 (Find_Type_Of_Object): In the case of an access definition, always set
11464 Is_Local_Anonymous_Access. We were previously not marking the anonymous
11465 access type of a return object as a local anonymous type.
11466 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
11467 range with character literal bounds.
11468 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
11469 (Access_Subprogram_Declaration): Indicate that the type declaration
11470 depends on an incomplete type only if the incomplete type is declared
11472 (Analyze_Subtype_Declaration): Handle properly subtypes of
11473 synchronized types that are tagged, and that may appear as generic
11475 (Access_Subprogram_Declaration): An anonymous access to subprogram can
11476 appear as an access discriminant in a private type declaration.
11477 (Add_Interface_Tag_Components): Complete decoration of the component
11478 containing the tag of a secondary dispatch table and the component
11479 containing the offset to the base of the object (this latter component
11480 is only generated when the parent type has discriminants --as documented
11482 (Inherit_Components): Use the new decoration of the tag components to
11483 improve the condition that avoids inheriting the components associated
11484 with secondary tags of the parent.
11485 (Build_Discriminanted_Subtype): Indicate to the backend that the
11486 size of record types associated with dispatch tables is known at
11488 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
11489 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
11490 to include task, protected, and synchronized interfaces as limited
11492 (Process_Discriminants): Remove the setting of
11493 Is_Local_Anonymous_Access on the type of (anonymous) access
11494 discriminants of nonlimited types.
11495 (Analyze_Interface_Type_Declaration): Complete the decoration of the
11496 class-wide entity it is is already present. This situation occurs if
11497 the limited-view has been previously built.
11498 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
11500 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
11503 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11505 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
11506 of the type that specify the position of interface tags when the type
11507 inherits discriminated array components from the parent type.
11508 If a component is initialized with a box, check for the presence of a
11509 default expression in its declaration before using its default
11510 initialization procedure.
11511 (Resolve_Record_Aggregate): If a component is box-initialized, and the
11512 component type has a discriminants, create a partial aggregate for it
11513 by copying the discriminants of the component subtype.
11514 Reject attempt to initialize a discriminant with a box.
11515 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
11516 associated with dispatch tables is known at compile time.
11517 (Get_Value): If an association in a record aggregate has a box
11518 association, and the corresponding record component has a default
11519 expression, always copy the default expression, even when the
11520 association has a single choice, in order to create a proper
11521 association for the expanded aggregate.
11523 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11524 Robert Dewar <dewar@adacore.com>
11526 * par-ch12.adb (P_Generic_Associations): The source position of an
11527 Others association is that of the others keyword, not that of the token
11528 that follows the box.
11529 (P_Formal_Type_Definition): Handle formal access types that carry a
11530 not null indicator.
11532 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
11533 multiple identifier are present, save Scan_State before scanning the
11534 colon, to ensure that separate trees are constructed for each
11536 (P_Identifier_Declarations): For object declaration, set new flag
11537 Has_Init_Expression if initialization expression present.
11538 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
11539 Improve NOT NULL error messages
11541 2007-06-06 Robert Dewar <dewar@adacore.com>
11543 * par-ch4.adb: (P_Name): Recover from literal used as name
11545 2007-06-06 Vincent Celier <celier@adacore.com>
11547 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
11548 defaulted to False.
11549 In the "not" case, recursive call with Complemented set to True.
11550 Do not allow "or" or "and" operators when Complemented is True.
11552 2007-06-06 Vincent Celier <celier@adacore.com>
11554 * prj.adb (Project_Empty): Gives default value for new component
11557 * prj-attr.ads: Minor reformatting
11559 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
11560 directory using the untouched casing.
11561 (For_All_Source_Dirs): Idem.
11563 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
11564 directories specified with switches -aP.
11565 (Add_Search_Project_Directory): New procedure
11566 (Initialize_Project_Path): Put the directories in table
11567 Search_Directories in the project search path.
11568 (Initialize_Project_Path): For VMS, transform into canonical form the
11571 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11573 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
11574 true if configurable run-time or No_Run_Time is set.
11575 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
11576 processing an unit which is not the one being compiled.
11578 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11580 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
11581 Replace UC by Ada.UC
11583 * s-bitops.adb: Get rid of System.Pure_Exceptions.
11584 Replace UC by Ada.UC
11586 2007-06-06 Robert Dewar <dewar@adacore.com>
11588 * scng.adb: (Check_End_Of_Line): Deal with very long lines
11590 2007-06-06 Robert Dewar <dewar@adacore.com>
11592 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
11593 Remove no longer used nodes.
11595 2007-06-06 Javier Miranda <miranda@adacore.com>
11596 Ed Schonberg <schonberg@adacore.com>
11597 Robert Dewar <dewar@adacore.com>
11599 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
11600 on obsolescent withed unit in case of limited-withed units.
11601 (Analyze_Compilation_Unit): Add guard to code that removed an
11602 instantiation from visibility, to prevent compiler aborts when
11603 instantiation is abandoned early on.
11604 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
11605 current unit being analyzed, and Distinguish local incomplete types
11606 from limited views of types declared elsewhere.
11607 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
11608 to state that the class-wide entity is shared by the limited-view
11610 (Analyze_With_Clause): Improve placement of flag for case of
11611 unimplemented unit.
11612 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
11613 manner similar to GNAT.Current_Exception. This is a violation of
11614 restriction (No_Exception_Propagation), and also inhibits the
11615 optimization of local raise to goto.
11616 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
11617 and if so set Most_Recent_Exception_Used flag in Opt, and also check
11618 for violation of restriction No_Exception_Propagation.
11620 2007-06-06 Javier Miranda <miranda@adacore.com>
11621 Hristian Kirtchev <kirtchev@adacore.com>
11622 Gary Dismukes <dismukes@adacore.com>
11624 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
11625 use of entity Exception_Occurrence if it is not available in the
11628 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
11629 concurrent types are declared within an Ada 2005 generic, build their
11630 corresponding record types since they are needed for overriding-related
11632 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
11633 protected type does not implement a task interface or a nonlimited
11635 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
11636 type does not implement a protected interface or a nonlimited interface.
11637 (Single_Task_Declaration, Single_Protected_Declaration): use original
11638 entity for variable declaration, to ensure that debugging information
11639 is correcty generated.
11640 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
11641 routines if the expander is not active.
11642 (Analyze_Task_Body): Mark all handlers to stop optimization of local
11643 raise, since special things happen for task exception handlers.
11645 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
11646 concurrent types declared within a generic.
11647 (Check_Dispatching_Operation): Do not emit warning about late interface
11648 operations in the context of an instance.
11649 (Check_Dispatching_Call): Remove restriction against calling a
11650 dispatching operation with a limited controlling result.
11651 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
11652 Register_Interface_DT_Entry by calls to Register_Primitive.
11653 (Check_Dispatching_Formals): Handle properly a function with a
11654 controlling access result.
11656 2007-06-06 Robert Dewar <dewar@adacore.com>
11657 Arnaud Charlet <charlet@adacore.com>
11659 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
11660 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
11661 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
11662 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
11663 message when using a VM, since this attribute is not supported.
11664 (Analyze_Record_Representation_Clause): Give unrepped component warnings
11666 * usage.adb: Add new warning for renaming of function return objects
11667 Indicate that -gnatwp and -gnatwP concern front-end inlining
11668 Add line for -gnatyg
11669 Add usage information for -gnatw.c/C
11671 2007-06-06 Robert Dewar <dewar@adacore.com>
11672 Ed Schonberg <schonberg@adacore.com>
11675 (Find_Var): Do not consider function call in test for infinite loop
11676 warning if warnings set off for function entity.
11677 (One_Bound): Do not create a temporary for a loop bound if it is a
11679 (Analyze_Assignment): Traverse the right hand side of an assignment and
11680 mark all allocators as static coextensions.
11681 (Analyze_Assignment): Exempt assignments involving a dispatching call
11682 to a function with a controlling access result from the check requiring
11683 the target to be class-wide.
11685 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11686 Ed Schonberg <schonberg@adacore.com>
11687 Robert Dewar <dewar@adacore.com>
11688 Javier Miranda <miranda@adacore.com>
11690 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
11691 chain of coextensions when an allocator serves as the root of such a
11693 (Propagate_Coextensions): Remove the test for the root being an
11695 (Resolve_Allocator): Add condition to ensure that all future decoration
11696 occurs on an allocator node. Add processing and cleanup for static
11698 (Valid_Conversion): If the operand type is the limited view of a
11699 class-wide type, use the non-limited view is available to determine
11700 legality of operation.
11701 (Ambiguous_Character): move to spec, for use elsewhere.
11702 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
11703 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
11704 character literals.
11705 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
11706 Do_Division_Check flag explicitly.
11707 (Resolve_Actuals): If the actual is of a synchronized type, and the
11708 formal is of the corresponding record type, this is a call to a
11709 primitive operation of the type, that is declared outside of the type;
11710 the actual must be unchecked-converted to the type of the actual
11711 (Resolve_Call): Kill all current values for any subprogram call if
11712 flag Suppress_Value_Tracking_On_Call is set.
11713 (Resolve_Type_Conversion): Generate error message the the operand
11714 or target of interface conversions come from a limited view.
11715 (Check_Infinite_Recursion): Ignore generated calls
11716 (Check_Allocator_Discrim_Accessibility): New procedure for checking
11717 that an expression that constrains an access discriminant in an
11718 allocator does not denote an object with a deeper level than the
11719 allocator's access type.
11720 (Resolve_Allocator): In the case of an allocator initialized by an
11721 aggregate of a discriminated type, check that associations for any
11722 access discriminants satisfy accessibility requirements by calling
11723 Check_Allocator_Discrim_Accessibility.
11724 (Resolve_Equality_Op): Handle comparisons of anonymous access to
11725 subprogram types in the same fashion as other anonymous access types.
11726 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
11727 message that is not a continuation message.
11728 (Resolve_Type_Conversion): Add missing support for conversion to
11730 (Resolve_Actuals): Introduce a transient scope around the call if an
11731 actual is a call to a function returning a limited type, because the
11732 resulting value must be finalized after the call.
11733 (Resolve_Actuals): If the call was given in prefix notations, check
11734 whether an implicit 'Access reference or implicit dereference must be
11735 added to make the actual conform to the controlling formal.
11737 2007-06-06 Robert Dewar <dewar@adacore.com>
11738 Javier Miranda <miranda@adacore.com>
11740 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
11741 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
11742 overriding of an inherited private subprogram now there is no need to
11743 inherit its dispatching slot and reduce the size of the dispatch table.
11744 Set_All_DT_Position now ensures that the same slot is now assigned to
11745 both entities. This is required to statically build the dispatch table.
11746 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
11747 of calling Set_All_DT_Position to re-evaluate the position of the
11748 entries in the dispatch table. Such reevaluation is not desired if
11749 the tagged type is already frozen.
11751 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11752 Gary Dismukes <dismukes@adacore.com>
11753 Robert Dewar <dewar@adacore.com>
11754 Javier Miranda <miranda@adacore.com>
11756 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
11757 reference acts as an lvalue when the attribute name modifies the prefix
11758 (Is_Coextension_Root): New routine.
11759 (Mark_Static_Coextensions): New routine.
11760 (Type_Access_Level): Revise code for checking the level of the
11761 anonymous access type of a return object.
11762 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
11763 (Matches_Prefixed_View_Profile): Remove the no longer necessary
11764 retrieval of the corresponding controlling record type.
11765 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
11766 concurrent types declared within a generic as well as class wide types.
11767 Emit a mode incompatibility error whenever a protected entry or routine
11768 override an interface routine whose first parameter is not of mode
11769 "out", "in out" or access to variable.
11770 (Overrides_Synchronized_Primitive): Rename to
11771 Find_Overridden_Synchronized_Primitive.
11772 (Collect_Interface_Components): New subprogram that collects all the
11773 components of a tagged record containing tags of secondary dispatch
11775 (Add_Global_Declaration): New procedure
11776 (Abstract_Interface_List): Handle properly the case of a subtype of a
11778 (Type_Access_Level): In the case of a type whose parent scope is a
11779 return statement, call Type_Access_Level recursively on the enclosing
11780 function's result type to determine the level of the return object's
11782 (Build_Elaboration_Entity): Build name of elaboration entity from the
11783 scope chain of the entity, rather than the unit name of the file name.
11784 (Check_Nested_Access): New procedure.
11785 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11786 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11787 (Get_Renamed_Entity): Utility routine for performing common operation
11788 of chasing the Renamed_Entity field of an entity.
11790 2007-06-06 Robert Dewar <dewar@adacore.com>
11792 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
11794 (Check_A_Call): Add check for entry call which was causing blowup
11796 2007-06-06 Olivier Hainque <hainque@adacore.com>
11798 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
11799 special code on ia64-vms to handle major incompatibilities between the
11800 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
11801 this routine with a very different set of arguments and expectations on
11804 2007-06-06 Thomas Quinot <quinot@adacore.com>
11806 * socket.c (__gnat_close_signalling_fd): New function.
11807 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
11808 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
11809 New supporting functions for task safe Netdb operations.
11811 2007-06-06 Thomas Quinot <quinot@adacore.com>
11812 Olivier Hainque <hainque@adacore.com>
11814 * a-except-2005.ads, a-except-2005.adb
11815 (Raise_From_Controlled_Operation): New procedure in
11816 (private part of) Ada.Exceptions (standard runtime version). Used to
11817 provide informational exception message when Program_Error is raised as
11818 a result of an Adjust or Finalize operation propagating an exception.
11819 (Rmsg_28): Fix description for E.4(18) check.
11820 (Raise_Current_Excep): Call Debug_Raise_Exception just before
11821 propagation starts, to let debuggers know about the event in a reliable
11823 Take the address of E and dereference to make sure it is homed on stack
11824 and prevent the stores from being deleted, necessary for proper
11825 debugger behavior on "break exception" hits.
11826 (Local_Raise): Moved to System.Exceptions
11828 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
11829 exception message from the current occurrence and raise Program_Error
11830 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
11832 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11833 Arnaud Charlet <charlet@adacore.com>
11835 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
11838 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
11839 priority associated to a lock.
11841 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
11842 assertion to take into account case of no abort restriction.
11843 (Initialize_Protection_Entries): Add initialization for the field
11844 New_Ceiling associated to the protected object.
11845 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
11848 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11849 since this function needs to be set consistently with Update_Exception.
11851 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
11852 since this function needs to be set consistently with Update_Exception.
11854 * s-taskin.ads: Update comments on
11855 Interrupt_Server_Blocked_On_Event_Flag.
11856 (Unbind_Handler): Fix handling of server_task wakeup
11857 (Server_Task): Set self's state so that Unbind_Handler can take
11858 appropriate actions.
11859 (Common_ATCB): Now use a constant from System.Parameters to determine
11860 the max size of the Task_Image field.
11862 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
11863 Initialize_Analyzer function.
11864 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
11865 take into account case of no abort restriction.
11866 ([Vulnerable_]Complete_Master): Modify assertion.
11868 * s-tataat.adb (Finalize): Use the nestable versions of
11869 Defer/Undefer_Abort.
11871 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
11873 * s-tpobop.ads: Update comments.
11875 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
11876 of locking the object manually, to avoid inconsistencies between
11877 Lock/Unlock_Entry assertions.
11879 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
11881 application and System.Parameters.No_Abort is True.
11882 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
11883 (Unbind_Handler): Fix handling of server_task wakeup
11884 (Server_Task): Set self's state so that Unbind_Handler can take
11885 appropriate actions.
11887 2007-06-06 Thomas Quinot <quinot@adacore.com>
11889 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
11890 declarations instead of an explicit null body, for conciseness.
11892 2007-06-06 Robert Dewar <dewar@adacore.com>
11894 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
11895 illegal aggregate and the type is still Any_Composite.
11896 (Subtypes_Statically_Match): Fix problem of empty discriminant list
11898 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11900 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
11901 to prevent subsequent expansion.
11903 2007-06-06 Robert Dewar <dewar@adacore.com>
11905 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
11907 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11908 Robert Dewar <dewar@adacore.com>
11910 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
11912 (Write_Itype): Handle case of string literal subtype, which
11913 comes up in this context.
11914 (Update_Itype): when debugging expanded code, update sloc of itypes
11915 associated with defining_identifiers and ranges, for gdb use.
11916 (Sprint_Node_Actual): Add static keyword to object or exception
11917 declaration output if Is_Statically_Allocated is True.
11918 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
11919 or task body, so that the tree carries the proper Sloc information for
11921 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
11923 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11925 * s-secsta.adb (Chunk): Ensure this object has a static size known at
11926 compile time, to avoid dynamic memory allocation
11927 (Elaboration code): Only use dynamic memory allocation when needed.
11929 2007-06-06 Quentin Ochem <ochem@adacore.com>
11931 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
11933 (Stack_Analyzer): Added field "Overflow_Guard"
11934 (Task_Result): Added field "Overflow_Guard".
11935 (Index_Str): New constant.
11936 (Task_Name_Str): New constant.
11937 (Actual_Size_Str): New constant.
11938 (Pattern_Array_Element_Size): New constant.
11939 (Get_Usage_Range): New subprogram.
11940 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
11941 Now align the output.
11943 (Initialize): Added value for Overflow_Guard.
11944 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
11945 Update the value of the overflow guard according to the actual
11946 beginning of the pattern array.
11947 (Initialize_Analyzer): Added parameter Overflow_Guard.
11948 Take this parameter into accound when computing the max size.
11949 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
11950 (Report_Result): Removed extra useless procedure.
11951 Updated call to Output_Result.
11952 Moved full computation of the Task_Result here.
11954 2007-06-06 Thomas Quinot <quinot@adacore.com>
11956 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
11957 Thread_Blocking_IO, always True by default, set False on a per-runtime
11959 Add Windows-specific constants
11960 Add new constant Need_Netdb_Buffer.
11961 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11962 not, whether to use getXXXbyYYY_r.
11964 * gsocket.h: Add new constant Need_Netdb_Buffer.
11965 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
11966 not, whether to use getXXXbyYYY_r.
11968 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
11970 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
11971 than their first call.
11972 Add type Dummy_Communication_Block used in the generation of the pre-
11973 defined dispatching primitive _disp_asynchronous_select.
11974 (Storage_Element): Put Pragma Universal_Aliasing on it.
11976 2007-06-06 Vincent Celier <celier@adacore.com>
11978 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
11981 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
11982 letter if it is not followed by a '/' or a '\'.
11983 (Windows): New Boolean function
11985 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
11987 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
11989 (Containing_Directory): Raise Use_Error when the directory is a root
11991 (Extension): When returning the result, use a conversion to Result_Type,
11992 not a qualification.
11994 2007-06-06 Robert Dewar <dewar@adacore.com>
11996 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
11997 (Set_Style_Check_Options): Recognize new -gnatyg style switch
11999 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
12000 Warn_On_Non_Local_Exception to False, to turn off warnings for
12001 No_Exception_Propagation in ZFP runtime.
12002 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
12004 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
12006 2007-06-06 Vincent Celier <celier@adacore.com>
12008 * switch-b.adb (Scan_Binder_Switches): Add processing for new
12011 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
12012 (Scan_Make_Switches): Recognize new switch -aP
12014 2007-06-06 Matthew Gingell <gingell@adacore.com>
12015 Jose Ruiz <ruiz@adacore.com>
12017 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
12018 VxWorks task descriptor in the Ada run time, call a C subprogram
12019 (__gnat_get_stack_info) that extracts the required information.
12021 * sysdep.c: Back out temporary lynxos workaround.
12022 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
12023 time the stack information associated to the currently executing task.
12024 Only VxWorks systems require this function.
12026 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12028 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
12029 add the stack bias if the offset is computed from a frame address.
12030 (__gnat_backtrace): Adjust for above change.
12032 2007-06-06 Thomas Quinot <quinot@adacore.com>
12034 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
12035 PE_Non_Transportable_Actual.
12036 (By_Descriptor_Last): New constant.
12037 (By_Copy_Return): Likewise.
12039 2007-06-06 Vincent Celier <celier@adacore.com>
12041 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
12044 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
12045 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
12046 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
12047 Add missing comment for /OPTIMIZE=SPACE
12048 Add entry for OPTIMIZE=SPACE
12049 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
12050 Add documentation for new qualifiers corresponding to -gnatw.c/.C
12052 2007-06-06 Vincent Celier <celier@adacore.com>
12053 Robert Dewar <dewar@adacore.com>
12055 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
12058 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
12059 Document gnatbind switch -a
12060 (case Constructions): Document that variables declarations are allowed
12061 for previously declared variables.
12062 Fix external lib project example
12063 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
12064 Indicate that "#if not X or Y then" is not allowed in input files to
12066 Document gnatw.x and gnatw.X warning flags
12067 Mention -Winline switch to activate warnings when back-end inlining is
12069 Add gnatcheck rule descriptions
12070 Describe how to use the GNAT driver to call a tool on a closure.
12071 Describe how to run project-wide checks or metrics.
12072 Document gnatbind's -R option
12073 Updated to account for Ada 2005 support
12075 * gnat_rm.texi (Case Construction): Allow variable declarations for
12076 previously declared variables.
12077 (Representation Clauses and Pragmas): Lift restriction on alignment
12078 clauses for record types.
12079 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
12080 Document No_Exception_Propagation restriction
12081 Document No_Body pragma
12082 Updated to account for Ada 2005 support; corrected some typos
12083 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
12085 * gnat-style.texi: Make it clear that we never use mode IN for
12086 procedures or functions
12088 * ug_words: Add entries for -gnatw.x and -gnatw.X
12089 Add entries for -gnatw.c/.C
12091 2007-06-06 Pascal Obry <obry@adacore.com>
12092 Vincent Celier <celier@adacore.com>
12094 * makegpr.adb (Add_Archive_Path): Use untouched object and library
12095 dirs and library name.
12096 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
12098 (Build_Library): Idem.
12099 (Compile_Individual_Sources): Idem.
12100 (Compile_Link_With_Gnatmake): Idem.
12101 (Compile_Sources): Idem.
12102 (Get_Imported_Directories): Idem.
12103 (Link_Executables): Idem. Same change for the executable dir.
12104 (Check_Compilation_Needed): C_Source_Path new variable containing
12105 the canonical form of Source_Path to check against the source names
12106 in the dependency file.
12107 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
12108 verbose mode, display the name of the object directory we're changing
12110 (Saved_Switches): New name of table X_Switches
12111 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
12112 (Usage): New line for switch -aP
12113 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
12114 testing if a directory should be added to the search path.
12116 2007-06-06 Javier Miranda <miranda@adacore.com>
12118 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
12119 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
12120 declaration after freezing point of all its associated tagged types;
12121 otherwise such types are frozen too early.
12123 2007-06-06 Robert Dewar <dewar@adacore.com>
12125 * a-reatim.adb: Documentation addition
12127 * g-cgideb.adb: Minor code reorganization
12129 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
12130 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
12131 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
12133 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
12134 function. Change name New_Scope to Push_Scope
12135 (Get_Debug_Flag_K): Remove unused obsolete function.
12137 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
12140 * makeusg.adb: Update Copyright notice
12141 Add line for switch -aP
12143 * makeusg.adb: Fix wording of some usage messages
12145 * s-assert.adb (Raise_Assert_Failure): Add call to
12146 Debug_Raise_Assert_Failure.
12148 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
12149 (2, Standard'Alignment) for compatibility with AAMP (where alignment
12150 is restricted to 1).
12152 * s-wchjis.adb: Remove use of System.Pure_Exceptions
12154 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
12155 node location to No_Location when we're not debugging the expanded
12158 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
12160 * misc.c (enumerate_modes): Consider log2_b to always be one.
12162 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
12164 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
12166 2007-05-02 Pascal Obry <obry@adacore.com>
12168 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
12169 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
12170 encoding support of Stream_IO.
12171 (Write_Unit): Idem.
12173 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
12174 filename and corresponding encoding to match the OS requirement.
12175 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
12176 routine will fail on specific devices like CON: AUX: ...
12178 PR ada/29856: Add missing braces
12180 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
12183 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
12185 2007-04-21 Jan Hubicka <jh@suse.cz>
12187 * misc.c (gnat_expand_body): Don't call target for destructors,
12188 avoid redundant check on syntax errors.
12190 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
12192 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
12193 instead of checking GIMPLE_STMT_P in chain_next.
12195 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
12198 * system-linux-alpha.ads: Disable constant condition warning for the
12199 Default_Bit_Order variable.
12200 * system-linux-s390.ads: Likewise.
12201 * system-linux-s390x.ads: Likewise.
12202 * system-linux-sparc.ads: Likewise.
12204 2007-04-06 Javier Miranda <miranda@adacore.com>
12205 Matt Heaney <heaney@adacore.com>
12206 Robert Dewar <dewar@adacore.com>
12208 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
12209 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
12210 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
12211 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
12212 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
12213 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
12214 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
12215 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
12216 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
12217 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
12218 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
12219 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
12220 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
12221 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
12222 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
12223 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
12224 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
12225 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
12226 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
12227 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
12228 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
12229 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
12230 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
12231 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
12232 s-taprop-tru64.adb, s-taprop-irix.adb,
12233 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
12234 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
12235 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
12236 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
12237 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
12238 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
12239 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
12240 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
12241 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
12242 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
12243 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
12244 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
12245 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
12246 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
12247 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
12248 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
12249 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
12250 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
12251 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
12252 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
12254 Update documentation.
12257 2007-04-06 Robert Dewar <dewar@adacore.com>
12259 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12260 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
12261 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
12262 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
12263 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
12264 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
12265 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
12266 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
12267 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
12268 system-hpux-ia64.ads, targparm.adb,
12269 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
12271 * system.ads: Move Functions_Return_By_DSP to obsolete section,
12272 kept for bootstrap purposes only.
12274 2007-04-06 Arnaud Charlet <charlet@adacore.com>
12276 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12277 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
12278 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
12279 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
12281 2007-04-06 Robert Dewar <dewar@adacore.com>
12283 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
12284 (Local_Raise): New dummy procedure called when a raise is converted
12285 to a local goto. Used for debugger to detect that the exception
12288 * debug.adb: Document new d.g flag (expand local raise statements to
12289 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
12291 * exp_sel.adb: Use Make_Implicit_Exception_Handler
12293 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
12294 suppress warnings for unused handlers.
12295 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
12296 warnings for raise statements not handled locally.
12297 (Get_RT_Exception_Entity): New function
12298 (Get_Local_Call_Entity): New function
12299 (Find_Local_Handler): New function
12300 (Warn_If_No_Propagation): New procedure
12301 (Expand_At_End_Handler): Call Make_Implicit_Handler
12302 (Expand_Exception_Handlers): Major additions to deal with local handlers
12303 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
12304 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
12307 * exp_ch11.ads (Get_RT_Exception_Entity): New function
12308 (Get_Local_Call_Entity): New function
12310 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
12311 of restrictions that the binder will never suggest adding.
12313 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
12316 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
12317 be with'ed in the presence of pragma Restriction
12318 (No_Exception_Propagation).
12320 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
12322 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
12323 parameter, then the handler is not a suitable target for a local raise,
12324 and this is a violation of restriction No_Exception_Propagation.
12325 (Analyze_Handled_Statements): Analyze choice parameters in exception
12326 handlers before analyzing statement sequence (needed for proper
12327 detection of local raise statements).
12328 (Analyze_Raise_Statement): Reraise statement is a violation of the
12329 No_Exception_Propagation restriction.
12331 * s-rident.ads: Add new restriction No_Exception_Propagation
12333 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
12334 function, like Make_Exception_Handler but sets Local_Raise_Statements
12336 (Add_Unique_Serial_Number): Deal with case where this is called during
12337 processing of configuration pragmas.
12339 2007-04-06 Thomas Quinot <quinot@adacore.com>
12340 Pat Rogers <rogers@adacore.com>
12341 Pascal Obry <obry@adacore.com>
12343 * g-stsifd-sockets.adb: New file.
12345 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
12346 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
12347 g-socthi-vms.adb: Move signalling
12348 fd management to a nested package, so that they can conveniently be
12349 moved to a subunit that is shared across Windows, VMS, and VxWorks
12350 (Ada implementation) or completed with imported bodies from socket.c
12352 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
12354 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
12355 the signalling file descriptor.
12356 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
12357 signalling file descriptor.
12358 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
12359 instead of creating a pair of sockets for signalling here.
12361 * g-socthi.adb: Ditto.
12362 Set the runtime process to ignore SIGPIPEs on platforms that support
12363 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12365 * g-socthi-mingw.adb: Ditto.
12366 (WS_Version): Use Windows 2.2.
12367 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12369 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
12370 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12372 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
12373 added GNAT byte swapping facility
12374 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
12376 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
12378 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
12380 (__gnat_create_signalling_fds): New subprogram.
12381 Set the runtime process to ignore SIGPIPEs on platforms that support
12382 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12384 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
12385 Vincent Celier <celier@adacore.com>
12387 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
12388 New version of Ada.Calendar which supports the new upper bound of Ada
12389 time (2399-12-31 86_399.999999999).
12390 The following modifications have been made to the package:
12391 - New representation of time as count of nanoseconds since the start of
12392 Ada time (1901-1-1 0.0).
12393 - Target independent Split and Time_Of routines which service both
12394 Ada 95 and Ada 2005 code.
12395 - Target independent interface to the Ada 2005 children of Calendar.
12396 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
12397 - Handling of non-leap centenial years.
12398 - Updated clock function.
12399 - Updated arithmetic and comparison operators.
12401 * a-caldel.adb (To_Duration): Add call to target independent routine in
12402 Ada.Calendar to handle the conversion of time to duration.
12404 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
12406 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
12408 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
12409 targets do not have a natural time zone, GMT is used as a default.
12410 (__gnat_get_task_options): New.
12412 * a-direct.adb (Modification_Time): Add with and use clauses for
12413 Ada.Calendar and Ada.
12414 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
12415 since it is no longer needed.
12416 (Duration_To_Time): Removed.
12417 (OS_Time_To_Long_Integer): Removed.
12418 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
12419 Formatting Time_Of routines which automatically handle time zones,
12420 buffer periods and leap seconds.
12422 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
12423 target independent routines in Ada.Calendar.
12425 * a-calfor.ads, a-calfor.adb:
12426 Code cleanup and addition of validity checks in various routines.
12427 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
12430 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
12431 independent routine in Ada.Calendar.
12433 2007-04-06 Olivier Hainque <hainque@adacore.com>
12436 (convert_addresses): Adjust prototype and dummy definition to expect an
12437 extra file_name argument.
12439 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
12440 filling the now expected file_name argument with the appropriate
12442 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
12443 (tracebk): Array of void * instead of char *, corresponding to what
12444 convert_addresses expects.
12445 (exename): New static global, to hold the executable file name to be
12446 used in all convert_addresses invocations.
12447 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
12449 (__gnat_gmem_a2l_initialize): Resolve exename.
12450 (__gnat_convert_addresses): Use exename as the convert_addresses
12451 file_name argument.
12453 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
12454 "convert_addresses", now expecting a filename argument. Import the
12455 necessary entities to compute the filename to use and pass it to
12458 2007-04-06 Matt Gingell <gingell@adacore.com>
12460 * system-aix.ads: Back out previous change.
12461 (Functions_Return_By_DSP): Removed
12463 2007-04-06 Pascal Obry <obry@adacore.com>
12465 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
12466 or the monotonic used by Ada.Real_Time) to compute the sleep duration
12469 2007-04-06 Jose Ruiz <ruiz@adacore.com>
12471 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
12472 function. Its value changes in different VxWorks versions, and it is
12473 now handled by the function __gnat_get_task_options.
12475 * s-taprop-vxworks.adb (Create_Task): Call the function
12476 __gnat_get_task_options to get the required options for creating a task.
12478 2007-04-06 Pascal Obry <obry@adacore.com>
12479 Thomas Quinot <quinot@adacore.com>
12481 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
12482 dealing with filename.
12483 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
12484 filename from a standard string to a wide-string depending on the
12486 (__gnat_freopen): Idem.
12487 (__gnat_current_time): New function (wrapper for time(3) standard C
12490 * g-os_lib.ads (Current_Time): New function. Returns the current
12491 system time as an OS_Time value.
12493 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
12494 (Monotonic_Clock): Same.
12496 2007-04-06 Quentin Ochem <ochem@adacore.com>
12498 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
12500 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
12502 2007-04-06 Jose Ruiz <ruiz@adacore.com>
12504 * a-retide.adb: Add elaboration code to ensure that the tasking run
12505 time is initialized when using delay operations even when no task is
12508 2007-04-06 Javier Miranda <miranda@adacore.com>
12510 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
12511 component Num_Prim_Ops.
12512 (Set_Num_Prim_Ops): Removed.
12513 Remove all the assertions because all the routines of this
12514 package are inline always.
12515 (Get_Offset_Index): Add support to primary dispatch tables.
12516 Move the documentation about the dispatch table to a-tags.ads
12517 (Set_External_Tag): Removed
12518 (Inherit_TSD): Removed.
12519 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
12520 moved to a-tags.ads
12521 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
12522 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
12523 of the TSD field "Table" because this field has been renamed to
12525 (Inherit_CPP_DT): Removed.
12526 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
12527 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
12528 declarations have been moved to a-tags.ads
12529 (Check_Size): Removed.
12530 (Expanded_Name): Updated to get access to the new field of TSD
12531 containing the address of the expanded name.
12532 (Get_Access_Level/Set_Access_Level): Removed.
12533 (Get_Predefined_Prim_Op_Address): Removed.
12534 (Set_Predefined_Prim_Op_Address): Removed.
12535 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
12536 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
12537 (Set_Expanded_Name): Removed.
12538 (Inherit_DT): Removed.
12539 (Inherit_CPP_DT): Removed.
12540 (Set_RC_Offset): Removed.
12541 (Set_TSD): Removed.
12542 (Base_Address): New function that displaces "this" to point to the base
12543 of the object (that is, to point to the primary tag of the object).
12545 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12546 Javier Miranda <miranda@adacore.com>
12548 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
12549 anonymous access component, do not create a master_id if type already
12550 has one, as may happen if the type is a subcomponent of a packed array
12552 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
12553 Initialize_Tag): Remove code associated with the old CPP pragmas.
12554 CPP_Virtual and CPP_Vtable are no longer supported.
12555 (Build_Offset_To_Top_Internal): Add support for concurrent record types
12556 (Build_Offset_To_Top_Functions): Add support for concurrent record types
12557 (Freeze_Record_Type): Remove call to
12558 Init_Predefined_Interface_Primitives.
12559 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
12560 code required to initialize the tags of the secondary dispatch tables.
12561 This leaves the algoritm more clear.
12562 (Init_Secondary_Tags): Add support for concurrent record types
12563 (Make_Predefined_Primitive_Specs): Code cleanup.
12564 (Predefined_Primitive_Bodies): Code cleanup.
12565 (Build_Master_Renaming): New local subprogram.
12566 (Expand_N_Full_Type_Declaration): Build the master_id associated with
12567 anonymous access to task type components.
12568 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
12569 subtype indication are resolved during analysis, and must not be done
12571 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
12573 2007-04-06 Geert Bosch <bosch@adacore.com>
12574 Ed Schonberg <schonberg@adacore.com>
12575 Javier Miranda <miranda@adacore.com>
12576 Bob Duff <duff@adacore.com>
12578 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
12579 for conversion of a Float_Type'Truncation to integer.
12581 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
12582 check if a node is an attribute that can be handled directly by the
12584 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
12585 attributes that can be handled directly by the back end.
12586 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
12587 use new predicate Is_Access_Protected_Subprogram_Type.
12588 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
12589 and Unchecked_Union if it is generated as part of the default Output
12590 procedure for a type with default discriminants.
12591 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
12592 if we are compiling under restriction No_Dispatching_Calls.
12593 (Constrained): Use Underlying_Type, in case the type is private without
12594 discriminants, but the full type has discriminants.
12595 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
12596 call to Build_Get_Access_Level.
12597 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
12598 interface objects requires a call to the run-time subprogram that
12599 returns the base address of the object.
12600 (Valid_Conversion): Improve error message on illegal attempt to store
12601 an anonymous access to subprogram value into a record component.
12603 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
12605 (Simplify_Type_Conversion): New procedure that performs simplification
12606 of Int_Type (Float_Type'Truncation (X)).
12607 (Resolve_Type_Conversion): Call above procedure after resolving operand
12608 and before performing checks. This replaces the existing ineffective
12610 (Set_String_Literal_Subtype): When creating the internal static lower
12611 bound subtype for a string literal, use a newly created copy of the
12612 subtree representing the lower bound.
12613 (Resolve_Call): Exclude build-in-place function calls from transient
12614 scope treatment. Update comments to describe this exception.
12615 (Resolve_Equality_Op): In case of dispatching call check violation of
12616 restriction No_Dispatching_Calls.
12617 (Resolve_Call): If the call returns an array, the context imposes the
12618 component type of the array, and the function has one non-defaulted
12619 parameter, rewrite the call as the indexing of a call with a single
12620 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
12622 (Resolve_Actuals): If an actual is an allocator for an access parameter,
12623 the master of the created object is the innermost enclosing statement.
12624 (Remove_Conversions): For a binary operator, check if type of second
12625 formal is numeric, to check if an abstract interpretation is present
12626 in the case of exponentiation as well.
12628 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12629 Bob Duff <duff@adacore.com>
12631 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
12632 copying a parameter list in a call, set properly the First_Named_Formal
12633 and Next_Named_Formal fields in the new list and in the enclosing call.
12634 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
12635 names, to ease typing in the debugger. Improve comments.
12636 (Watch_Node): New variable, intended to be set in the debugger.
12637 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
12638 called when the watched node is created.
12639 (New_Node_Debugging_Output): Combined version of local procedures
12640 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
12641 with a parameter so that conditional breakpoints like "if Node = 12345"
12643 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
12644 Add Elist1 function
12646 2007-04-06 Thomas Quinot <quinot@adacore.com>
12647 Ed Schonberg <schonberg@adacore.com>
12648 Gary Dismukes <dismukes@adacore.com>
12650 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
12651 required for a conversion between two access-to-unconstrained-array
12653 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
12654 to discriminant constraints on discriminant objects. This rule must
12655 apply as well to discriminants of protected types in private components.
12656 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
12657 object of a null-excluding access type then don't require the
12658 the object declaration to have an expression and don't emit a
12661 2007-04-06 Arnaud Charlet <charlet@adacore.com>
12662 Eric Botcazou <botcazou@adacore.com>
12664 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
12667 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
12668 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
12671 * fe.h (Compiler_Abort): Add third parameter.
12673 * misc.c (internal_error_function): Build third argument from current
12674 input location and pass it to Compiler_Abort.
12676 2007-04-06 Gary Dismukes <dismukes@adacore.com>
12678 * cstand.adb (Create_Standard): When the target's storage unit size is
12679 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
12682 2007-04-06 Nicolas Roche <roche@adacore.com>
12684 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
12685 absolute path can have the following form: device:/a/b. In this case
12686 '/' should be inserted between the path and the filename.
12688 2007-04-06 Olivier Hainque <hainque@adacore.com>
12689 Eric Botcazou <botcazou@adacore.com>
12691 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
12692 VAR_DECL to a CONST_DECL we make for a public constant when we know the
12693 corresponding definition has created the so made visible variable.
12694 Handle anonymous access to protected subprogram.
12695 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
12696 object with an address clause volatile. Re-enable original fix.
12697 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
12699 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
12700 associated with either the Equivalent or Root type, instead of the
12702 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
12703 subtree for every field of a global record type.
12704 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
12705 discriminants, invoke again variable_size on its newly computed sizes.
12707 2007-04-06 Robert Dewar <dewar@adacore.com>
12708 Thomas Quinot <quinot@adacore.com>
12709 Ed Schonberg <schonberg@adacore.com>
12710 Bob Duff <duff@adacore.com>
12712 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
12713 (Next_Component_Or_Discriminant): New function and procedure
12714 (First_Index, First_Literal, Master_Id,
12715 Set_First_Index, Set_First_Literal, Set_Master_Id):
12716 Add missing Ekind assertions.
12717 (Is_Access_Protected_Subprogram_Type): New predicate.
12718 (Has_RACW): New entity flag, set on package entities to indicate that
12719 the package contains the declaration of a remote accecss-to-classwide
12721 (E_Return_Statement): This node type has the Finalization_Chain_Entity
12722 attribute, in case the result type has controlled parts.
12723 (Requires_Overriding): Add this new flag, because "requires
12724 overriding" is subtly different from "is abstract" (see AI-228).
12725 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
12726 Is_Abstract_Type. Make sure these are called only when appropriate.
12727 (Has_Pragma_Unreferenced_Objects): New flag
12729 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
12730 class-wide, the tag of the right-hand side must be an exact match, not
12731 an ancestor of that of the object on left-hand side.
12732 (Move_Activation_Chain): New procedure to create the call to
12733 System.Tasking.Stages.Move_Activation_Chain.
12734 (Expand_N_Extended_Return_Statement): Generate code to call
12735 System.Finalization_Implementation.Move_Final_List at the end of a
12736 return statement if the function's result type has controlled parts.
12737 Move asserts to Build_In_Place_Formal.
12738 (Move_Final_List): New function to create the call statement.
12739 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
12740 tagged type, replace generation of call to the run-time subprogram
12741 CW_Membership by call to Build_CW_Membership.
12742 (Expand_N_Return_Statement): Replace generation of call to the run-time
12743 subprogram Get_Access_Level by call to Build_Get_Access_Level.
12744 (Expand_N_Simple_Function_Return): Replace generation of call to the
12745 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
12747 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
12748 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
12749 access to protected operations.
12750 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
12751 master and chain actual parameters to a build-in-place function call
12753 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
12755 (Make_Build_In_Place_Call_In_Allocator,
12756 Make_Build_In_Place_Call_In_Anonymous_Context,
12757 Make_Build_In_Place_Call_In_Assignment,
12758 Make_Build_In_Place_Call_In_Object_Declaration): Call
12759 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
12760 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
12761 stubbed procedure with a null body, replace the call with a null
12762 statement without using the full inlining machinery, for efficiency
12763 and to avoid invalid values in source file table entries.
12765 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
12766 renamings of calls to build-in-place functions.
12768 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
12769 provides the functionality of RTE_Available to record components.
12770 (RTU_Entity): The function Entity has been renamed to RTU_Entity
12771 to avoid undesired overloading.
12772 (Entity): New subprogram that returns the entity for the referened
12773 unit. If this unit has not been loaded, it returns Empty.
12774 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
12775 Remove no longer used entities.
12776 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
12777 (RE_Type_Specific_Data): New entity.
12778 (RE_Move_Any_Value): New entity.
12779 (RE_TA_A, RE_Get_Any_Type): New entities.
12780 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
12781 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
12782 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
12783 (Entity): New subprogram that returns the entity for the referened
12784 unit. If this unit has not been loaded, it returns Empty.
12785 (RTE): Addition of a new formal that extends the search to the scopes
12786 of the record types found in the chain of the package.
12788 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
12789 "abstract subprograms must be visible" message, whether or not the type
12790 is an interface; that is, remove the special case for interface types.
12791 (Analyze_Function_Return): Remove error message "return of task objects
12792 is not yet implemented" because this is now implemented.
12793 (Create_Extra_Formals): Add the extra master and activation chain
12794 formals in case the result type has tasks.
12795 Remove error message "return of limited controlled objects is not yet
12797 (Create_Extra_Formals): Add the extra caller's finalization list formal
12798 in case the result type has controlled parts.
12799 (Process_Formals): In case of access formal types there is no need
12800 to continue with the analysis of the formals if we already notified
12802 (Check_Overriding_Indicator): Add code to check overriding of predefined
12804 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
12805 flags for formals that do not require them,.
12806 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
12807 hidden entity is use visible or directly visible.
12808 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
12809 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
12810 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
12811 New_Overloaded_Entity): Split Is_Abstract flag into
12812 Is_Abstract_Subprogram and Is_Abstract_Type.
12814 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
12815 a return statement's finalization list to the caller's list, used for
12816 build-in-place functions with result type with controlled parts.
12817 Remove no longer used entities.
12819 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
12820 longer needed, because the full type is now limited, and therefore a
12821 pass-by-reference type.
12822 (Foreign_Task_Level): New constant.
12824 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
12825 move tasks from the activation chain belonging to a return statement to
12826 the one passed in by the caller, and update the master to the one
12827 passed in by the caller.
12828 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
12829 of unactivated tasks, so we don't kill the ones that are being returned
12830 by a build-in-place function.
12831 (Create_Task): Ignore AI-280 for foreign threads.
12833 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12834 Robert Dewar <dewar@adacore.com>
12835 Bob Duff <duff@adacore.com>
12836 Gary Dismukes <dismukes@adacore.com>
12838 * errout.adb (Unwind_Internal_Type): Use predicate
12839 Is_Access__Protected_Subprogram_Type.
12841 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
12842 (Freeze_Entity, packed array case): Do not override explicitly set
12843 alignment and size clauses.
12844 (Freeze_Entity): An entity declared in an outer scope can be frozen if
12845 the enclosing subprogram is a child unit body that acts as a spec.
12846 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
12847 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
12848 Remove all code for DSP option
12850 * layout.adb (Layout_Record_Type): Use First/
12851 Next_Component_Or_Discriminant
12852 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
12853 to handle properly the anonymous access case.
12855 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
12856 for all access attributes, because overload resolution should work the
12857 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
12858 causes the error message for the ambiguous "X'Access = Y'Access" and
12859 "X'Unrestricted_Access = Y'Access" and so forth to match.
12860 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
12861 now that anonymous access to protected operations have their own kind.
12862 (Resolve_Attribute): In case of dispatching call check the violation of
12863 restriction No_Dispatching_Calls.
12864 (Check_Array_Type): Check new -gnatyA array index style option
12866 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
12867 attempt to derive from a synchronized tagged type.
12868 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
12869 type, inherit the class-wide type already created, because it may
12870 already have been used in a self-referential anonymous access component.
12871 (Mentions_T): Recognize self-referential anonymous access components
12872 that use (a subtype of) the class-wide type of the enclosing type.
12873 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
12874 Derived_Type for Prev formal on call to
12875 Check_Anonymous_Access_Components rather than Empty.
12876 (Make_Incomplete_Type_Declaration): Add test for case where the type has
12877 a record extension in deciding whether to create a class-wide type,
12878 rather than just checking Tagged_Present.
12879 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
12880 to stand-alone object declarations as well as component declarations.
12881 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
12882 prevent accidental overwriting when enclosing package appears in
12883 a limited_with_clause.
12884 (Array_Type_Declaration): If the component type is an anonymous access,
12885 the associated_node for the itype is the type declaration itself.
12886 (Add_Interface_Tag_Components): Modified to support concurrent
12887 types with abstract interfaces.
12888 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
12889 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
12890 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
12891 to complete the decoration of synchronized interface types. Add also
12892 a call to Check_Abstract_Interfaces to verify the ARM rules.
12893 (Derive_Interface_Subprograms): Modified to support concurrent types
12894 with abstract interfaces.
12895 (Analyze_Subtype_Indication): Resolve the range with the given subtype
12896 mark, rather than delaying the full resolution depending on context.
12897 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
12898 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
12899 Array_Type_Declaration,Build_Derived_Record_Type,
12900 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
12901 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
12902 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
12903 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
12904 called only when appropriate.
12905 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
12907 (Analyze_Subtype_Declaration): For an access subtype declaration, create
12908 an itype reference for the anonymous designated subtype, to prevent
12909 scope anonmalies in gigi.
12910 (Build_Itype_Reference): New utility, to simplify construction of such
12913 2007-04-06 Vincent Celier <celier@adacore.com>
12915 * errutil.adb (Initialize): Initialize warnings table, if all warnings
12916 are suppressed, supply an initial dummy entry covering all possible
12919 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
12920 and start with only one, such as "-RTS=none".
12921 (Collect_Arguments): Do not check for sources outside of projects.
12922 Do not collect arguments if project is externally built.
12923 (Compile_Sources): Do nothing, not even check if the source is up to
12924 date, if its project is externally built.
12925 (Compile): When compiling a predefined source, add -gnatpg
12926 as the second switch, after -c.
12927 (Compile_Sources): Allow compilation of Annex J renames without -a
12928 (Is_In_Object_Directory): Check if the ALI file is in the object
12929 even if there is no project extension.
12930 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
12931 gnatbind if the ALI file effectively exists.
12932 (Initialize): Add the directory where gnatmake is invoked in front of
12933 the path if it is invoked from a bin directory, even without directory
12934 information, so that the correct GNAT tools will be used when spawned
12935 without directory information.
12937 * makeusg.adb: Change switch -S to -eS
12938 Add lines for new switches -we, -wn and -ws
12939 Add line for new switch -p
12941 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
12942 Treat_As_Error and there are warnings.
12944 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
12945 -gnatww Change gnatmake switch -S to -eS
12946 (Scan_Make_Switches): Code reorganisation. Process separately multi
12947 character switches and single character switches.
12948 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
12949 False when switch is not recognized by gnatmake.
12950 (Scan_Make_Switches): Set Setup_Projects True when -p or
12951 --create-missing-dirs is specified.
12953 * fname.adb (Is_Predefined_File_Name): Return True for annex J
12954 renamings Calendar, Machine_Code, Unchecked_Conversion and
12955 Unchecked_Deallocation only when Renamings_Included is True.
12957 * par.adb: Allow library units Calendar, Machine_Code,
12958 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
12959 when -gnatg is not specified.
12960 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
12961 there is no need to generate always a record_definition_node in case
12962 of synchronized interface types.
12963 (SIS_Entry_Active): Initialize global variable to False
12964 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
12965 indicate cases where AI-447 says "not null" is legal.
12967 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
12969 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
12970 files with with several lines starting with the object fileb name.
12971 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
12973 (Initialize): Add the directory where gprmake is invoked in front of the
12974 path, if it is invoked from a bin directory or with directory
12975 information, so that the correct GNAT tools will be used when invoked
12977 (Check_Compilation_Needed): Process correctly backslashes on Windows.
12979 * vms_data.ads: Update switches/qualifiers
12981 2007-04-06 Ed Schonberg <schonberg@adacore.com>
12982 Thomas Quinot <quinot@adacore.com>
12985 If the array component is a discriminated record, the array aggregate
12986 is non-static even if the component is given by an aggregate with
12988 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
12989 (Convert_Aggr_In_Allocator): If the allocator is for an access
12990 discriminant and the type is controlled. do not place on a finalization
12991 list at this point. The proper list will be determined from the
12993 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
12994 initialize record controller if needed, before the components, to ensure
12995 that they are properly finalized.
12996 (Build_Record_Aggr_Code): For the case of an array component that has a
12997 corresponding array aggregate in the record aggregate, perform sliding
13000 2007-04-06 Javier Miranda <miranda@adacore.com>
13001 Gary Dismukes <dismukes@adacore.com>
13002 Ed Schonberg <schonberg@adacore.com>
13004 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
13005 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
13007 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
13008 accessibility on class-wide allocators if the allocator occurs at the
13009 same scope level as the allocator's type. The check is guaranteed to
13010 succeed in that case, even when the expression originates from a
13011 parameter of the containing subprogram.
13012 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
13013 under No_Dispatching_Calls restriction. During the semantic analysis
13014 we already notified such violation.
13015 (Tagged_Membership): Constant folding. There is no need to check
13016 the tag at run-time if the type of the right operand is non
13017 class-wide abstract.
13018 Replace call to Is_Ancestor by call to Is_Parent
13019 to support concurrent types with interface types.
13020 (Expand_N_Allocator): Add an assertion associated with the generation
13022 (Expand_N_Slice): Do not enable range check to nodes associated
13023 with the frontend expansion of the dispatch table.
13024 (Is_Local_Access_Discriminant): Subsidiary function to
13025 Expand_N_Allocator.
13026 (Tagged_Membership): Replace generation of call to the run-time
13027 subprogram CW_Membership by call to Build_CW_Membership.
13028 (Expand_Allocator_Expression): Replace generation of call to the
13029 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
13031 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
13032 initialize most the TSD components by means of an aggregate.
13033 Modify the declaration of the object containing the TSD
13034 because we now expand code that has a higher level of abstraction.
13035 The TSD has a discriminant containing the Inheritance Depth Level,
13036 value that is used in the membership test but also to fix the size
13037 of the table of ancestors.
13038 (Expand_Interface_Conversion): Insert function body at the closest place
13039 to the conversion expression, to prevent access-before-elaboration
13040 errors in the backend.
13041 Code improved to reduce the size of the dispatch table if
13042 compiling under restriction No_Dispatching_Calls plus code cleanup.
13043 Code reorganization plus removal of calls to Set_Num_Prim_Ops
13044 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
13045 (Expand_Dispatching_Call): Minor code reorganization plus addition of
13046 code to return immediately if compiling under No_Dispatching_Calls
13048 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
13049 CPP_Virtual and CPP_Vtable are no longer supported.
13050 (Expand_Interface_Conversion): Add missing support for interface type
13052 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
13053 Is_Parent to support concurrent types with interfaces.
13054 (Init_Predefined_Interface_Primitives): Removed.
13055 (Make_Secondary_DT): Modified to support concurrent record types.
13056 (Set_All_DT_Position): Modified to support concurrent record types.
13057 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
13058 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
13059 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
13060 with CW_Membership.
13061 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
13062 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
13063 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
13064 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
13065 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
13066 (Expand_Dispatching_Call): Replace generation of call to the run-time
13067 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
13068 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
13070 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
13071 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
13072 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
13073 Build_Set_Prim_Op_Address.
13074 (Get_Remotely_Callable): Subprogram removed.
13075 (Init_Predefined_Interface_Primitives): Replace generation of call to
13076 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
13079 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
13080 First (Parameter_Associations ()) with the call to First_Actual that
13081 returns an actual parameter expression for both named and positional
13084 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
13085 check violation of restriction No_Dispatching_Calls.
13086 (Check_Controlling_Type): A formal of a tagged incomplete type is a
13087 controlling argument.
13089 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
13090 First/Next_Component_Or_Discriminant
13091 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
13092 (Find_Implemented_Interface): Removed. All the calls to this subprogram
13093 specify Any_Limited_Interface, and this functionality is already
13094 provided by the function Has_Abstract_Interfaces.
13095 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
13096 support concurrent types implementing interfaces.
13097 (Find_Implemented_Interface): Removed. All the calls to this subprogram
13098 specify kind Any_Limited_Interface, and this functionality is already
13099 provided by the function Has_Abstract_Interfaces.
13100 (Remove_Side_Effects): replace Controlled_Type by
13101 CW_Or_Controlled_Type whenever the issue is related to
13102 using or not the secondary stack.
13104 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
13105 P_Interface_Type_Definition to fulfill the new interface (the formal
13106 Is_Synchronized is no longer required).
13108 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
13109 Update dependencies.
13111 * exp_atag.ads, exp_atag.adb: New file
13113 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13114 Bob Duff <duff@adacore.com>
13115 Cyrille Comar <comar@adacore.com>
13117 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
13118 anonymous, use finalization list of enclosing dynamic scope.
13119 (Expand_N_Package_Declaration): For a library package declaration
13120 without a corresponding body, generate RACW subprogram bodies in the
13121 spec (just as we do for the task activation call).
13122 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
13123 Is_Abstract_Type. Make sure these are called only when appropriate.
13124 Remove all code for DSP option
13125 (CW_Or_Controlled_Type): new subprogram.
13127 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13128 Ed Schonberg <schonberg@adacore.com>
13129 Gary Dismukes <dismukes@adacore.com>
13131 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
13132 parameter. If it is set to true, return a result capped according to
13133 the global upper bound for the index of an entry family.
13134 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
13135 (Build_Find_Body_Index): Adjust for above change.
13136 (Entry_Index_Expression): Likewise.
13137 (Is_Potentially_Large_Family): New function extracted from...
13138 (Collect_Entry_Families): ...here. Call it to detect whether the family
13139 is potentially large.
13140 (Build_Entry_Count_Expression): If the family is potentially large, call
13141 Family_Size with 'Cap' set to true.
13142 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
13143 a protected version of an operation declared in the private part of
13144 a protected object, because they may be invoked through a callback.
13145 (Set_Privals): If the type of a private component is an anonymous access
13146 type, do not create a new itype for each protected body.
13147 If the body of a protected operation creates
13148 controlled types (including allocators for class-widetypes), the
13149 body of the corresponding protected subprogram must include a
13151 (Build_Activation_Chain_Entity): Build the chain entity for extended
13153 (Type_Conformant_Parameters): Use common predicate Conforming_Types
13154 to determine whether operation overrides an inherited primitive.
13155 (Build_Wrapper_Spec): Add code to examine the parents while looking
13156 for a possible overriding candidate.
13157 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
13158 hold an actual parameter value since its initialization is separated
13159 from the the declaration. Prevents errors on null-excluding access
13162 2007-04-06 Thomas Quinot <quinot@adacore.com>
13163 Pablo Oliveira <oliveira@adacore.com>
13165 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
13166 Do an Unchecked_Conversion to handle the passage from the Underlying
13167 Type to the Base Type when calling Build_To_Any_Call and
13168 Build_From_Any_Call.
13169 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
13170 E_Constant, depending upon Variable formal.
13171 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13172 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
13173 parameter that requires an extra constrained parameter, declare
13174 temporary for actual as a variable, not a constant.
13175 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
13176 the unit being compiled is the one that contains the stub type.
13177 Change primitive operation name for the RACW associated with a RAS
13178 from Call to _Call so it cannot clash with any legal identifier.
13179 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
13181 (Append_RACW_Bodies): New subprogram.
13182 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
13183 Add_Receiving_Stubs_To_Declarations functions.
13184 When expanding a package body, this list correspond to the
13185 statements in the HSS at the end of the pacakge.
13186 When expanding a package spec, this list correspond to the
13188 (Add_Receiving_Stubs_To_Declarations): Append the function
13189 registering the receiving stubs at the end of the 'Stmts' list.
13190 (RCI_Package_Locator): Pass the new Version generic formal when
13191 instantiating a RCI_Locator package.
13192 (Build_From_Any_Function): To compute the High bound for an
13193 unconstrained array actual, we add the Low bound with the length.
13194 Thus we must convert the low bound and the length to an appropriate
13195 type before doing the sum.
13196 (Build_Subprogram_Receiving_Stubs, PolyORB):
13197 * Retrieve the extra formals parameters at the
13198 end of the parameter stream.
13199 * Use Move_Any_Value to write back out parameters
13200 after executing the request as it is more efficient
13201 than Copy_Any_Value.
13202 * Build the any containing Extra Formals with the
13203 appropriate typecode.
13204 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
13205 empty Component_List.
13206 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
13207 the tree the declaration for an object that serves as actual parameter
13208 in server-side stubs.
13209 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13210 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13211 Use Build_Actual_Object_Declaration to prepare the actuals.
13212 (Add_Parameter_To_NVList): Set the parameter mode to In for
13213 Extra Constrained Parameters.
13214 (Build_General_Calling_Stubs): Set the parameter type to boolean for
13215 Extra Constrained parameters.
13216 (Build_To_Any_Function, Build_From_Any_Function,
13217 Built_TypeCode_Function): When Typ is implicit, call the correct
13218 function with the first not implicit parent type.
13219 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
13220 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
13221 typecode from the Etype. Therefore we retrieve the correct typecode
13222 with a call to Get_Any_Type.
13223 (Copy_Specification): Do controlling formal type substitution based on
13224 Is_Controlling_Formal flag, instead of caller-provided object type.
13225 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
13226 a RACW primitive operation, we might get a subprogram declaration for an
13227 ancestor of the RACW designated type (not for the designated type
13228 itself), in the case where this operation is inherited. In this case we
13229 have no easy means of determining the original tagged type for which
13230 the primitive was declared, so instead we now rely on
13231 Copy_Specification to use the Is_Controlling_Formal flag to determine
13232 which formals require type substitution.
13234 2007-04-06 Robert Dewar <dewar@adacore.com>
13235 Ed Schonberg <schonberg@adacore.com>
13237 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
13238 GNAT.Current_Exception are not allowed if pragma Restrictions
13239 (No_Exception_Propagation) is set and in any case make the associated
13240 handler unsuitable as a target for a local raise statement.
13241 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
13242 run-time subprogram CW_Membership by call to Build_CW_Membership.
13243 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
13244 by a function call, a temporary must be created before expanding the
13245 Constructor_Call itself, to prevent out-of-order elaboration in the
13246 back-end when stack checking is enabled..
13248 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13250 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
13251 result are the bounds of the left operand, not the right.
13253 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13256 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
13257 discriminant defaults.
13258 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
13259 (Make_Component_List_Attributes): Ditto.
13261 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13262 Bob Duff <duff@adacore.com>
13264 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
13265 an association with a box as providing a value even though the
13266 initialization procedure for the type is not available.
13267 (Resolve_Record_Aggregate): Check that a choice of an association with a
13268 box corresponds to a component of the type.
13269 (Resolve_Record_Aggregate): Split Is_Abstract flag into
13270 Is_Abstract_Subprogram and Is_Abstract_Type.
13272 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
13275 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
13276 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13277 called only when appropriate.
13279 2007-04-06 Olivier Hainque <hainque@adacore.com>
13281 * g-alleve.ads (Low Level Vector type definitions): Map each to the
13282 associated vector view instead of all to the unsigned char view.
13284 * g-altcon.adb (Generic_Conversions): New internal generic package,
13285 offering facilities for all the Vector/View conversion routines
13286 implemented by this unit.
13287 (To_View/To_Vector - all versions): Reimplemented in a systematic
13288 manner, using the internal Generic_Conversions facilities.
13290 2007-04-06 Pascal Obry <obry@adacore.com>
13292 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
13294 (Create): Free the source string before storing the new one.
13296 2007-04-06 Vincent Celier <celier@adacore.com>
13298 * g-debpoo.adb (Validity): New package with a complete new
13299 implementation of subprograms Is_Valid and Set_Valid.
13300 (Is_Valid): Move to local package Validity
13301 (Set_Valid): Move to local package Validity
13303 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13304 Pablo Oliveira <oliveira@adacore.com>
13306 * g-expect.adb (Get_Command_Output): When expanding the output buffer
13307 we must ensure that there is enough place for the new data we are going
13310 2007-04-06 Thomas Quinot <quinot@adacore.com>
13312 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
13315 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13316 Vincent Celier <celier@adacore.com>
13318 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
13319 (Stack_String): Add this String that contains the name of the Stack
13320 package in the project file.
13321 (Packages_To_Check_By_Stack): Add this list that contains the packages
13322 to be checked by gnatstack, which are the naming and the stack packages.
13323 (Check_Files): If no .ci files were specified for gnatstack we add all
13324 the .ci files belonging to the projects, including binder generated
13326 (Non_VMS_Usage): Document that gnatstack accept project file switches.
13327 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
13328 Add gnatstack to the list of commands that use project file related
13329 switches, and get the single attribute Switches from the stack package
13330 in a project file when calling gnatstack. Parse the -U flag for
13331 processing files belonging to all projects in the project tree.
13332 Remove all processing for command Setup
13334 * prj-attr.adb: Add new package Stack with single attribute Switches
13336 * vms_conv.ads (Command_Type): Add command Stack.
13337 Move to body declarations that are only used in the body: types Item_Id,
13338 Translation_Type, Item_Ptr, Item and its subtypes.
13340 * vms_conv.adb: (Initialize): Add data for new command Stack.
13341 Add declarations moved from the spec: types Item_Id, Translation_Type,
13342 Item_Ptr, Item and its subtypes.
13343 (Cargs_Buffer): New table
13344 (Cargs): New Boolean global variable
13345 (Process_Buffer): New procedure to create arguments
13346 (Place): Put character in table Buffer or Cargs_Buffer depending on the
13348 (Process_Argument): Set Cargs when processing qualifiers for GNAT
13350 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
13351 empty, for table Cargs_Buffer.
13352 (Initialize): Remove component Setup in Command_List
13354 2007-04-06 Vincent Celier <celier@adacore.com>
13356 * gprep.adb (Process_Files.Process_One_File): Use full file name when
13357 issuing pragma Source_Reference.
13359 2007-04-06 Emmanuel Briot <briot@adacore.com>
13361 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
13362 [[:xdigit:]] character class.
13363 Also raise an exception when an invalid character class is used.
13365 2007-04-06 Pascal Obry <obry@adacore.com>
13367 * i-cstrea.ads: (fopen): Add encoding parameter.
13369 Change reference from a-sysdep.c to sysdep.c in comment.
13370 Update copyright notice.
13371 This set of patch add support for the encoding form parameter.
13373 * mingw32.h (S2WSU): New macro to convert from a string to a
13374 wide-string using the UTF-8 encoding. The S2WS macro supports now only
13375 standard 8bits encoding.
13376 (WS2SU): As above but converting from wide-sring to string.
13377 This is needed as it is necessary to have access to both versions in the
13378 runtime for the form parameter encoding support.
13379 This set of patch add support for the encoding form parameter.
13380 (S2WS): Improve implementation to handle cases where the filename is not
13381 UTF-8 encoded. In this case we default to using the current code page
13382 for the conversion.
13384 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
13385 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
13386 the constants defined in adaint.h.
13387 (fopen): Add encoding parameter.
13390 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
13391 encoding. This is needed for the Reset routine (freopen low level-call).
13393 * s-fileio.adb (Open): Decode encoding form parameter and set the
13394 corresponding encoding value into AFCB structure.
13395 (Reset): Pass the encoding value to freopen.
13396 (Close): Move the call to Lock_Task to the beginning of the procedure.
13398 2007-04-06 Geert Bosch <bosch@adacore.com>
13399 Robert Dewar <dewar@adacore.com>
13401 * i-fortra.ads: Add Double_Complex type.
13403 * impunit.adb: (Is_Known_Unit): New function
13404 Add Gnat.Byte_Swapping
13406 Add new Ada 2005 units
13407 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
13408 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
13409 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
13410 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
13412 * impunit.ads (Is_Known_Unit): New function
13414 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
13415 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
13416 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
13417 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
13418 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
13419 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
13422 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
13424 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
13426 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13427 Arnaud Charlet <charlet@adacore.com>
13429 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
13430 __gnat_adjust_context_for_raise.
13431 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
13432 implementation of floating point operations as native x86 targets.
13433 So the FPU should be initialized in the same way using finit. Fix
13434 floating point operations accuracy issues.
13435 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
13436 member in struct sigaction, so as to avoid warning for incompatible
13439 2007-04-06 Serguei Rybin <rybin@adacore.com>
13441 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
13442 switches from previously loaded tree
13444 2007-04-06 Thomas Quinot <quinot@adacore.com>
13446 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
13447 cases where a given dependency has a body or not.
13448 (Write_With_File_Names): New subprogram, common code for the two cases
13451 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13452 Javier Miranda <miranda@adacore.com>
13454 * lib-xref.ads, lib-xref.adb:
13455 Modify the loop that collects type references, to include interface
13456 types that the type implements. List each of these interfaces when
13457 building the entry for the type.
13458 (Generate_Definition): Initialize component Def and Typ of new entry
13459 in table Xrefs, to avoid to have these components unitialized.
13460 (Output_References): Split Is_Abstract flag into
13461 Is_Abstract_Subprogram and Is_Abstract_Type.
13462 (Generate_Reference): Add barrier to do not generate the warning
13463 associated with Ada 2005 entities with entities generated by the
13466 2007-04-06 Robert Dewar <dewar@adacore.com>
13467 Arnaud Charlet <charlet@adacore.com>
13468 Vincent Celier <celier@adacore.com>
13470 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
13471 Update 'Exception Handling Control' chapter which was outdated.
13472 Minor fix to documentation of -gnatwq
13473 Remove section "Adapting the Run Time to a New C++ Compiler" because
13474 it is now obsolete.
13475 Add passage on need of -nostart-files in some non-ada-main cases.
13476 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
13477 Update documentation about Interfacing with C++
13478 Add documentation for new gnatmake switch -p
13479 Add missing protocol part in URLs.
13481 Document pragma Compile_Time_Error
13482 Add documentation for Object_Size indicating that stand alone
13483 objects can have a larger size in some cases.
13484 Add node for GNAT.Byte_Swapping, GNAT.SHA1
13485 Update reference to the Ravenscar profile.
13486 Document pragma Unreferenced_Objects
13488 * gnat-style.texi: Fix typo
13490 2007-04-06 Vincent Celier <celier@adacore.com>
13492 * mlib.adb (Building_Library): Only output "building a library..." in
13495 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
13496 files in verbose mode.
13498 * mlib-utl.adb (Ar): Only output the first object files when not in
13500 (Gcc): Do not display all the object files if not in verbose mode, only
13503 2007-04-06 Robert Dewar <dewar@adacore.com>
13505 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
13506 it no longer destroys the contents of Name_Buffer or Name_Len and
13507 non-standard and invalid names are handled better.
13508 (Get_Decoded_Name_String): Improve performance by using
13509 Name_Has_No_Encodings flag in the name table.
13510 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
13511 Used for debugging printouts.
13513 2007-04-06 Robert Dewar <dewar@adacore.com>
13514 Javier Miranda <miranda@adacore.com>
13515 Bob Duff <duff@adacore.com>
13517 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
13518 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
13519 there is no need to generate always a record_definition_node in case
13520 of synchronized interface types.
13521 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
13522 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
13523 illegal in Ada 95, in cases where it is legal. Change the warnings to
13524 errors in other cases. Don't give the error unless the "not null"
13525 parses properly. Correct the source position at which the error occurs.
13526 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
13527 P_Null_Exclusion, to suppress "not null" warnings.
13528 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
13529 associated goto statements.
13531 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
13534 * scans.ads (Type_Token_Location): New flag
13536 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
13537 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
13538 P_Null_Exclusion, to suppress "not null" warnings.
13540 2007-04-06 Robert Dewar <dewar@adacore.com>
13541 Javier Miranda <miranda@adacore.com>
13542 Bob Duff <duff@adacore.com>
13543 Vincent Celier <celier@adacore.com>
13545 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
13546 (Extensions_Allowed): No longer sets Ada_Version
13547 Entry for pragma Unreferenced_Objects
13549 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
13550 system.tasking if pragma priority used in a procedure
13551 (Analyze_Pragma, case Warning): Handle dot warning switches
13552 (Process_Compile_Time_Warning_Or_Error): New procedure
13553 (Analyze_Pragma): Add processing for Compile_Time_Error
13554 Add support for extra arguments External_Name and Link_Name.
13555 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
13556 (Process_Import_Or_Interface): Add support for the use of pragma Import
13558 (Extensions_Allowed): No longer affects Ada_Version
13559 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
13560 Is_Abstract_Type. Make sure these are called only when appropriate.
13561 Add processing for pragma Unreferenced_Objects
13563 * snames.h, snames.ads, snames.adb: Add entry for pragma
13565 Add new standard name Minimum_Binder_Options for new gprmake
13566 Add new standard names for gprmake: Archive_Suffix,
13567 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
13568 Library_Support, Library_Version_Options,
13569 Shared_Library_Minimum_Options,
13570 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
13571 Change Name_Call to Name_uCall so that it cannot clash with a legal
13573 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
13574 Append C_Plus_Plus to convention identifiers as synonym for CPP
13575 Add new standard names Stack and Builder_Switches
13576 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
13577 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
13578 Run_Path_Option, Toolchain_Version.
13579 Entry for pragma Unreferenced_Objects
13581 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
13582 switches, without repetition of "eD". Make sure that last character of
13583 -gnatep= switch is not taken as -gnat switch character.
13584 Complete rewrite of circuit for handling saving compilation options
13585 Occasioned by need to support dot switchs for -gnatw, but cleans up
13587 -gnatX does not affect Ada_Version
13588 Include -gnatyA in -gnatg style switches
13590 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
13591 warnings on return objects.
13592 (Warn_On_Useless_Assignment): Exclude warnings on return objects
13593 (Set_Dot_Warning_Switch): New procedure
13594 (Check_References): Add missing case of test for
13595 Has_Pragma_Unreferenced_Objects
13596 (Output_Unreferenced_Messages): Implement effect of new pragma
13597 Unreferenced_Objects, remove special casing of limited controlled
13600 2007-04-06 Vincent Celier <celier@adacore.com>
13602 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
13603 the default project path, initially done during elaboration of the
13605 If the prefix returned by Sdefault is null, get the prefix from a call
13606 to Executable_Prefix_Path.
13607 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
13610 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
13611 canonical directory name to open the directory from which files are
13613 (Record_Other_Sources): Idem.
13614 (Locate_Directory): Add the possibility to create automatically missing
13615 directories when Setup_Projects is True.
13616 Call Locate_Directory so that the directory will be created when
13617 Setup_Projects is True, for object dir, library dir, library ALI dir,
13618 library source copy dir and exec dir.
13620 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
13623 2007-04-06 Robert Dewar <dewar@adacore.com>
13625 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
13626 Use First/Next_Component_Or_Discriminant
13627 (Analyze_Record_Representation_Clause):
13628 Use First/Next_Component_Or_Discriminant
13629 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
13630 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
13631 definition if type is unconstrained.
13632 (Adjust_Record_For_Reverse_Bit_Order): New procedure
13633 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
13634 Is_Abstract_Subprogram and Is_Abstract_Type.
13635 (Adjust_Record_For_Reverse_Bit_Order): New procedure
13637 * repinfo.adb (List_Record_Info): Use First/
13638 Next_Component_Or_Discriminant.
13640 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
13643 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
13644 Include -gnatyA in default switches
13646 * opt.ads: (Warn_On_Non_Local_Exception): New flag
13647 (Warn_On_Reverse_Bit_Order): New flag
13648 (Extensions_Allowed): Update the documentation.
13649 (Warn_On_Questionable_Missing_Parens): Now on by default
13651 * usage.adb: Add documentation of -gnatw.x/X switches
13652 Document new -gnatyA style switch
13653 -gnatq warnings are on by default
13655 2007-04-06 Ed Falis <falis@adacore.com>
13657 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
13658 full word is no longer compared twice.
13660 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13662 * sem_ch10.adb (Install_Limited_Context_Clauses.
13663 Expand_Limited_With_Clause): Use a new copy of selector name in the
13664 call to Make_With_Clause. This fixes the tree structure for ASIS
13665 purposes. Nothing is changed in the compiler behaviour.
13666 (Process_Body_Clauses): Handle properly use clauses whose prefix is
13667 a package renaming.
13668 (Install_Limited_With_Clauses): Do not install non-limited view when it
13669 is still incomplete.
13671 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13672 Gary Dismukes <dismukes@adacore.com>
13674 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
13675 when capturing size information, instead of base type, which for a
13676 formal array type will be the unconstrained type.
13677 (Analyze_Formal_Object_Declaration): Add check for illegal default
13678 expressions for a formal in object of a limited type.
13679 (Instantiate_Object): Ditto.
13680 (Check_Formal_Package_Instance): Skip entities that are formal objects,
13681 because they were defaulted in the formal package and no check applies
13683 (Check_Formal_Package_Instance): Extend conformance check to other
13684 discrete types beyond Integer.
13685 (Process_Default): Copy directly the unmatched formal. A generic copy
13686 has already been performed in Analyze_Formal_Package.
13687 (Analyze_Associations): If a formal subprogram has no match, check for
13688 partial parametrization before looking for a default, to prevent
13690 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
13691 not set the instantiation environment before analyzing the actuals.
13692 Fixes regression on 8515-003 with implementation of AI-133.
13693 Set_Instance_Env checks whether the generic unit is a predefined
13694 unit, in which case the instance must be analyzed with the latest Ada
13695 mode. This setting must take place after analysis of the actuals,
13696 because the actuals must be analyzed and frozen in the Ada mode extant
13697 outside of the current instantiation.
13698 (Save_Env, Restore_Env): Preserve and restore the configuration
13699 parameters so that predefined units can be compiled in the proper Ada
13701 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
13702 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
13703 and Is_Abstract_Type.
13704 (Analyze_Formal_Package): For better error recovery, Add exception
13705 handler to catch Instantion_Error, which can be raised in
13706 Analyze_Associations
13708 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13709 Bob Duff <duff@adacore.com>
13710 Gary Dismukes <dismukes@adacore.com>
13712 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
13713 prefix type is a discriminated subtype of the type of the formal.
13714 (Analyze_Allocator): Collect all coextensions regardless of the context.
13715 Whether they can be allocated statically is determined in exp_ch4.
13716 (Analyze_Selected_Component): If the prefix is a limited view and the
13717 non-limited view is available, use the non-limited one.
13718 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
13719 therefore illegal), suggest a qualified expression rather than a type
13720 conversion, because a type conversion would be illegal in this context.
13721 (Anayze_Allocator): Trace recursively all nested allocators so that all
13722 coextensions are on the corresponding list for the root. Do no mark
13723 coextensions if the root allocator is within a declaration for a stack-
13724 allocated object, because the access discriminants will be allocated on
13726 (Analyze_Call): Remove restriction on calls to limited functions for the
13727 cases of generic actuals for formal objects, defaults for formal objects
13728 and defaults for record components.
13729 (Analyze_Allocator): Before analysis, chain coextensions on the proper
13730 element list. Their expansion is delayed until the enclosing allocator
13731 is processed and its finalization list constructed.
13732 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
13733 for an operation with the given name among the primitive operations of
13734 the corresponding record type.
13735 (Analyze_Selected_Component): If the prefix is a task type that
13736 implements an interface, and there is no entry with the given name,
13737 check whether there is another primitive operation (e.g. a function)
13739 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
13740 properly the indexing of a function call written in prefix form, where
13741 the function returns an array type, and all parameters of the function
13742 except the first have defaults.
13743 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
13744 the original operands, rather than relocating them, for efficiency and
13745 to work properly when an operand is overloaded.
13746 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
13747 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
13748 (Analyze_Selected_Component): If the prefix is a private extension, only
13749 scan the visible components, not those of the full view.
13750 (Try_Primitive_Operation): If the operation is a procedure, collect all
13751 possible interpretations, as for a function, because in the presence of
13752 classwide parameters several primitive operations of the type can match
13753 the given arguments.
13755 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13756 Robert Dewar <dewar@adacore.com>
13758 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
13759 tag-indeterminate call to an abstract function, when the left-hand side
13761 (Analyze_Loop_Statement): Improve detection of infinite loops
13763 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13764 Thomas Quinot <quinot@adacore.com>
13766 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
13767 out of Analyze_Package_Declaration, because processing must be applied
13768 to package bodies as well, for deferred constants completed by pragmas.
13769 (Analyze_Package_Declaration): When the package declaration being
13770 analyzed does not require an explicit body, call Check_Completion.
13771 (May_Need_Implicit_Body): An implicit body is required when a package
13772 spec contains the declaration of a remote access-to-classwide type.
13773 (Analyze_Package_Body): If the package contains RACWs, append the
13774 pending subprogram bodies generated by exp_dist at the end of the body.
13775 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
13776 Is_Abstract_Subprogram and Is_Abstract_Type.
13777 (Preserve_Full_Attributes): The full entity list is not an attribute
13778 that must be preserved from full to partial view.
13780 * sem_dist.adb (Add_RAS_Dereference_TSS):
13781 Change primitive name to _Call so it cannot clash with any legal
13782 identifier, and be special-cased in Check_Completion.
13783 Mark the full view of the designated type for the RACW associated with
13784 a RAS as Comes_From_Source to get proper view switching when installing
13785 private declarations.
13786 Provite a placeholder nested package body along with the nested spec
13787 to have a place for Append_RACW_Bodies to generate the calling stubs
13788 and stream attributes.
13790 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13791 Robert Dewar <dewar@adacore.com>
13793 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
13794 that is a limited view, check the non-limited view if available.
13795 (Undefined): Refine error message for missing with of Text_IO
13796 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
13797 to distinguish real missing with cases.
13798 Fix format of all missing with messages
13799 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
13800 renaming as body when renamed entity is abstract.
13802 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13803 Javier Miranda <miranda@adacore.com>
13805 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
13806 predicate recursive, to handle complex expressions on literals whose
13807 spurious ambiguity comes from the abstract interpretation of some
13809 (Interface_Present_In_Ancestor): Add support to concurrent record
13811 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
13812 Is_Abstract_Subprogram and Is_Abstract_Type.
13814 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13815 Javier Miranda <miranda@adacore.com>
13817 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
13818 dereference of a local object R created as a reference to another
13819 object O, use the access level of O.
13820 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
13821 rather than local Same_Formal_Type, to check whether protected operation
13822 overrides an inherited one.
13823 (Same_Formal_Type): New predicate, used when matching signatures of
13824 overriding synchronized operations, to handle the case when a formal
13825 has a type that is a generic actual.
13826 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
13827 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
13828 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
13829 syntactic ambiguities involving indexing of function calls that return
13831 (Abstract_Interface_List): New subprogram that returns the list of
13832 abstract interfaces associated with a concurrent type or a
13833 concurrent record type.
13834 (Interface_Present_In_Parent): New subprogram used to check if a
13835 given type or some of its parents implement a given interface.
13836 (Collect_Abstract_Interfaces): Add support for concurrent types
13837 with interface types.
13838 (Has_Abstract_Interfaces): Add support for concurrent types with
13840 (Is_Parent): New subprogram that determines whether E1 is a parent
13841 of E2. For a concurrent type its parent is the first element of its
13842 list of interface types; for other types this function provides the
13843 same result than Is_Ancestor.
13844 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
13845 (Collect_Synchronized_Interfaces): Removed because the subprogram
13846 Collect_Abstract_Interfaces provides this functionality.
13847 (Collect_Abstract_Interfaces): Minor update to give support to
13848 concurrent types and thus avoid undesired code duplication.
13849 (Get_Subprogram_Entity): Handle entry calls.
13850 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
13852 (Enter_Name): Do not give -gnatwh hiding warning for record component
13853 entities, they never result in hiding.
13855 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13856 Robert Dewar <dewar@adacore.com>
13858 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
13859 to chain nested components that are allocators for access discriminants
13860 of the enclosing object.
13861 Add N_Push and N_Pop nodes
13862 New field Exception_Label added
13863 (Local_Raise_Statements): New field in N_Exception_Handler_Node
13864 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
13865 (Is_Coextension): New flag for allocators, to mark allocators that
13866 correspond to access discriminants of dynamically allocated objects.
13867 (N_Block_Statement): Document the fact that the corresponding entity
13868 can be an E_Return_Statement.
13869 (Is_Coextension): New flag for allocators.
13870 Remove all code for DSP option
13872 * sprint.ads, sprint.adb: Display basic information for class_wide
13873 subtypes. Add handling of N_Push and N_Pop nodes
13875 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13877 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
13878 before propagating exception.
13880 2007-04-06 Olivier Hainque <hainque@adacore.com>
13882 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
13883 an address always within the call instruction from a return address.
13885 2007-04-06 Olivier Hainque <hainque@adacore.com>
13886 Eric Botcazou <botcazou@adacore.com>
13888 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
13889 expression with a COMPOUND_EXPR including the call instead of emitting
13890 the call directly here.
13891 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
13892 high bound is constant and the slice is empty. Tidy.
13893 (tree_transform, case N_Op_Not): Handle properly the case where the
13894 operation applies to a private type whose full view is a modular type.
13895 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
13896 Address_Clause, use the associated Expression as the GNAT tree
13897 representing the choice value to ensure the corresponding GCC tree is
13898 of the proper kind.
13899 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
13900 instead of just the operands, as the base GCC stabilize_reference does.
13901 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
13902 requested; otherwise fail.
13903 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
13905 2007-04-06 Thomas Quinot <quinot@adacore.com>
13907 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
13908 implementation of UI_Div.
13909 (UI_Div): Reimplement as a call to UI_Div_Rem.
13910 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
13911 remainder, avoiding the cost of a multiplication and a subtraction.
13912 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
13913 provides both quotient and remainder in a single computation.
13914 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
13915 functions for uint.
13916 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
13917 is undefined if the given n is not inversible.
13919 2007-04-06 Olivier Hainque <hainque@adacore.com>
13921 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
13922 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
13925 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13926 Olivier Hainque <hainque@adacore.com>
13928 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
13929 when updating the contents of the old pointer to an unconstrained array.
13930 (end_subprog_body): Set error_gnat_node to Empty.
13931 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
13932 (unchecked_convert): For subtype to base type conversions, require that
13933 the source be a subtype if it is an integer type.
13934 (builtin_decls): New global, vector of available builtin functions.
13935 (gnat_pushdecl): Add global builtin function declaration nodes to the
13936 builtin_decls list.
13937 (gnat_install_builtins): Adjust comments.
13938 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
13939 calling gnat_pushdecl, so that it knows when it handed a builtin
13940 function declaration node.
13941 (builtin_decl_for): Search the builtin_decls list.
13943 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13945 * s-stchop-vxworks.adb:
13946 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
13948 2007-04-06 Robert Dewar <dewar@adacore.com>
13949 Arnaud Charlet <charlet@adacore.com>
13951 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
13953 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
13955 Add mention of -Sev (set initialize_scalars option from environment
13956 variable at run time) in gnatbind usage message.
13958 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
13960 * fname-uf.ads: Minor comment fix
13962 * osint.ads: Change pragma Elaborate to Elaborate_All
13964 * par-load.adb: Add documentation.
13966 * sem_cat.ads, sem_cat.adb: Minor code reorganization
13968 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
13970 * s-secsta.ads: Extra comments
13972 * s-soflin.ads: Minor comment fixes
13974 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
13976 * s-wchcon.ads: Minor comment addition
13978 * treepr.adb: Minor change in message
13979 (Print_Name,Print_Node): Make these debug printouts more robust: print
13980 "no such..." instead of crashing on bad input.
13982 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
13984 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
13985 instead of gnat_signed_or_unsigned_type.
13986 * utils.c (gnat_signed_or_unsigned_type): Remove.
13987 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
13988 * gigi.h (gnat_signed_or_unsigned_type): Remove
13990 2007-03-09 Roger Sayle <roger@eyesopen.com>
13992 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
13993 fold with the result of buildN.
13994 * decl.c (gnat_to_gnu_entity): Likewise.
13995 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
13996 * utils.c (finish_record_type, merge_sizes, max_size, convert):
13998 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
13999 nonbinary_modular_operation, build_binary_op, build_unary_op,
14000 build_cond_expr): Likewise.
14002 * utils.c (convert): Use fold_build1 when casting values to void.
14003 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
14004 fold_convert instead of convert when appropriate.
14006 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
14008 * Make-lang.in: Add install-pdf target as copied from
14009 automake v1.10 rules.
14011 2007-02-28 Andreas Schwab <schwab@suse.de>
14013 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
14014 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
14015 (doc/gnat-style.info): Likewise.
14017 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
14019 * gnat-style.texi: Standardize title page.
14020 * gnat_rm.texi: Likewise.
14021 * gnat_ugn.texi: Likewise.
14023 2007-02-25 Mark Mitchell <mark@codesourcery.com>
14025 * decl.c (annotate_value): Adjust for refactoring of tree_map
14028 2007-02-24 Mark Mitchell <mark@codesourcery.com>
14030 * decl.c (annotate_value): Adjust for refactoring of tree_map
14033 2007-02-21 Ed Schonberg <schonberg@adacore.com>
14036 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
14037 untagged derived type, add hidden components to keep discriminant
14038 layout consistent, when a given discriminant of the derived type
14039 constraints several discriminants of the parent type.
14041 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
14042 Sandra Loosemore <sandra@codesourcery.com>
14044 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
14045 build the call expression.
14046 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
14047 * utils.c (max_size) <tcc_exceptional>: Delete.
14048 <tcc_vl_exp>: New case.
14049 <tcc_expression>: Delete CALL_EXPR subcase.
14050 (build_global_cdtor): Use build_call_nary instead of build3.
14051 * utils2.c (build_call_1_expr): Likewise.
14052 (build_call_2_expr): Likewise.
14053 (build_call_0_expr): Likewise.
14054 (build_call_alloc_dealloc): Likewise.
14056 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
14058 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
14059 get_action_description_for): Replace _Unwind_Word with _uleb128_t
14060 and _Unwind_SWord with _sleb128_t.
14062 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
14064 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
14065 * decl.c: Include gt-ada-decl.h.
14066 (annotate_value_cache): New.
14067 (annotate_value): Use it instead of TREE_COMPLEXITY.
14069 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
14071 * misc.c, utils2.c: Fix comment typos.
14073 2007-01-24 Roger Sayle <roger@eyesopen.com>
14075 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
14076 TREE_CONSTANT_OVERFLOW.
14077 (allocatable_size_p, annotate_value): Likewise.
14078 * trans.c (gnat_to_gnu): Likewise.
14079 * utils.c (unchecked_convert): Likewise.
14080 * utils2.c (build_simple_component_ref): Likewise.
14082 2007-01-23 Richard Guenther <rguenther@suse.de>
14085 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
14086 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
14087 (gnatboot3): Likewise.
14088 (GNATBIND): Do not define.
14089 * Makefile.in (GNATBIND): Do not define.
14091 2007-01-08 Richard Guenther <rguenther@suse.de>
14093 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
14094 * trans.c (gnat_to_gnu): Likewise.
14096 2006-12-07 Geoffrey Keating <geoffk@apple.com>
14098 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
14099 * adaint.c: Likewise.
14101 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
14103 Merge from gimple-tuples-branch:
14104 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
14106 * ada-tree.h (lang_tree_node): Handle gimple tuples.
14107 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
14108 GIMPLE_MODIFY_STMT.
14110 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
14112 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
14113 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
14116 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
14119 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
14120 if the initializer takes into account the padding.
14122 2006-11-11 Richard Guenther <rguenther@suse.de>
14124 * trans.c (maybe_stabilize_reference): Remove handling of
14125 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
14127 2006-11-05 Arnaud Charlet <charlet@adacore.com>
14130 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
14131 (To_Target_Priority): New function.
14133 2006-10-31 Robert Dewar <dewar@adacore.com>
14135 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
14136 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
14137 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
14138 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
14139 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
14140 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
14141 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
14142 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
14143 a-szbzha.adb: Minor reformatting. Fix header.
14145 * a-numaux-x86.adb: Add parentheses for use of unary minus
14146 * a-ngcefu.adb: Supply missing parentheses for unary minus
14147 * a-ngcoty.adb: Add parens for use of unary minus
14148 * a-ngelfu.adb: Add missing parens for unary minus
14149 * a-tifiio.adb: Add parentheses for uses of unary minus
14151 2006-10-31 Robert Dewar <dewar@adacore.com>
14152 Bob Duff <duff@adacore.com>
14153 Ed Schonberg <schonberg@adacore.com>
14155 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
14156 with multiplying operator.
14157 (Expected_Type_Is_Any_Real): New function to determine from the Parent
14158 pointer whether the context expects "any real type".
14159 (Resolve_Arithmetic_Op): Do not give an error on calls to the
14160 universal_fixed "*" and "/" operators when they are used in a context
14161 that expects any real type. Also set the type of the node to
14162 Universal_Real in this case, because downstream processing requires it
14163 (mainly static expression evaluation).
14164 Reword some continuation messages
14165 Add some \\ sequences to continuation messages
14166 (Resolve_Call): Refine infinite recursion case. The test has been
14167 sharpened to eliminate some false positives.
14168 Check for Current_Task usage now includes entry barrier, and is now a
14169 warning, not an error.
14170 (Resolve): If the call is ambiguous, indicate whether an interpretation
14171 is an inherited operation.
14172 (Check_Aggr): When resolving aggregates, skip associations with a box,
14173 which are priori correct, and will be replaced by an actual default
14174 expression in the course of expansion.
14175 (Resolve_Type_Conversion): Add missing support for conversion from
14176 a class-wide interface to a tagged type. Minor code cleanup.
14177 (Valid_Tagged_Converion): Add support for abstact interface type
14179 (Resolve_Selected_Component): Call Generate_Reference here rather than
14180 during analysis, and use May_Be_Lvalue to distinguish read/write.
14181 (Valid_Array_Conversion): New procedure, abstracted from
14182 Valid_Conversion, to incorporate accessibility checks for arrays of
14183 anonymous access types.
14184 (Valid_Conversion): For a conversion to a numeric type occurring in an
14185 instance or inlined body, no need to check that the operand type is
14186 numeric, since this has been checked during analysis of the template.
14187 Remove legacy test for scope name Unchecked_Conversion.
14189 * sem_res.ads: Minor reformatting
14191 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
14192 (PE_Current_Task_In_Entry_Body): New exception code
14193 (SE_Restriction_Violation): Removed, not used
14195 * a-except.ads: Update comments.
14197 * types.h, types.ads: Add definition for Validity_Check
14198 (PE_Current_Task_In_Entry_Body): New exception code
14199 (SE_Restriction_Violation): Removed, not used
14201 2006-10-31 Thomas Quinot <quinot@adacore.com>
14203 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
14206 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
14207 Jose Ruiz <ruiz@adacore.com>
14209 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
14210 part of Ada.Calendar: all subprogram raise Unimplemented.
14211 (Split_W_Offset): Temp function body, raising Unimplemented
14213 * a-calend.ads, a-calend-vms.ads:
14214 Add imported variable Invalid_TZ_Offset used to designate targets unable
14215 to support time zones.
14216 (Unimplemented): Temporary function raised by the body of new
14218 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
14219 unit provides handling of leap seconds and is used by the new Ada 2005
14220 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
14221 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
14222 version returns an extra value which is the offset to UTC.
14224 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
14225 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
14226 (Split_W_Offset): New function body.
14227 (Time_Of): When a date is close to UNIX epoch, compute the time for
14228 that date plus one day (that amount is later substracted after
14229 executing mktime) so there are no problems with time zone adjustments.
14231 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
14233 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
14234 a-catizo.ads, a-catizo.adb: New files.
14236 * impunit.adb: Add new Ada 2005 entries
14238 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
14239 Rename all occurences of "__gnat_localtime_r" to
14240 "__gnat_localtime_tzoff".
14241 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
14242 zone data and calculate the GMT offset.
14243 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
14244 Use the field "tm_gmtoff" to extract the GMT offset.
14245 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
14246 the external variable "timezone" to calculate the GMT offset.
14248 2006-10-31 Arnaud Charlet <charlet@adacore.com>
14249 Jose Ruiz <ruiz@adacore.com>
14251 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
14252 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
14253 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
14254 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
14255 System.Any_Priority to a POSIX priority on the target.
14257 * system-linux-ia64.ads:
14258 Extend range of Priority types on Linux to use the whole range made
14259 available by the system.
14261 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
14262 function maps from System.Any_Priority to a POSIX priority on the
14264 (PTHREAD_PRIO_PROTECT): Set real value.
14265 (PTHREAD_PRIO_INHERIT): Now a function.
14266 (SIGCPUFAIL): New signal.
14267 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
14268 are documented as reserved by the OS.
14270 * system-aix.ads: Use the full range of priorities provided by the
14273 * s-taprop-posix.adb: Call new function To_Target_Priority.
14274 (Set_Priority): Take into account Task_Dispatching_Policy and
14275 Priority_Specific_Dispatching pragmas when determining if Round Robin
14276 must be used for scheduling the task.
14278 * system-linux-x86_64.ads, system-linux-x86.ads,
14279 system-linux-ppc.ads: Extend range of Priority types on Linux to use
14280 the whole range made available by the system.
14282 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
14283 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
14284 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
14285 when deallocating the TCB in order to avoid potential references to
14287 (Set_Priority): Take into account Task_Dispatching_Policy and
14288 Priority_Specific_Dispatching pragmas when determining if Round Robin
14289 or FIFO within priorities must be used for scheduling the task.
14291 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
14292 the Thread field (to be used internally by the run-time system) and the
14293 kernel-level task id in the LWP field (to be used by the debugger).
14294 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
14295 instance, and propagate the current task options to the spawned task.
14296 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
14297 (Initialize): Set Round Robin dispatching when the corresponding pragma
14300 2006-10-31 Robert Dewar <dewar@adacore.com>
14302 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
14303 system-linux-hppa.ads, system-hpux-ia64.ads,
14304 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
14305 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
14306 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
14307 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
14308 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14309 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14310 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
14311 Default_Bit_Order) to kill constant condition warnings for references
14314 2006-10-31 Vincent Celier <celier@adacore.com>
14315 Eric Botcazou <ebotcazou@adacore.com>
14317 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
14318 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
14319 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
14320 Ext_To, when building the library file name
14322 * mlib-tgt-vxworks.adb: ditto.
14323 (Get_Target_Suffix): Add support for x86 targets.
14325 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
14327 * mlib-tgt-darwin.adb:
14328 Use Append_To, instead of Ext_To, when building the library file name
14329 (Flat_Namespace): New global variable.
14330 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
14331 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
14332 (Link_Shared_Libgcc): Delete.
14333 (Build_Dynamic_Library): Adjust for above changes.
14335 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
14337 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
14339 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
14340 (Initialize): Add type conversions required by above change.
14342 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14344 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
14345 (getpid): New body for this function that uses the underlying taskIdSelf
14346 function for VxWorks 5 and VxWorks 6 in kernel mode.
14347 (unsigned_int): New type, modular to allow logical bit operations.
14348 (taskOptionsGet): New imported function.
14350 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
14351 field to be compliant with the type used by the corresponding operating
14354 2006-10-31 Pascal Obry <obry@adacore.com>
14355 Eric Botcazou <ebotcazou@adacore.com>
14356 Vincent Celier <celier@adacore.com>
14358 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
14359 ASCII version of the registry API. This is needed as the GNAT runtime
14360 is now UNICODE by default.
14362 (get_gcc_version): Do not hardcode the return value.
14363 (__gnat_file_time_name): On Windows properly set the default returned
14364 value to -1 which corresponds to Invalid_Time.
14365 (__gnat_fopen): New routine. A simple wrapper on all plateforms
14366 except on Windows where it does conversion for unicode support.
14367 (__gnat_freopen): Idem.
14368 (__gnat_locate_exec_on_path): If environment variable PATH does not
14369 exist, return a NULL pointer
14371 * adaint.h: (__gnat_fopen): Declare.
14372 (__gnat_freopen): Likewise.
14374 * mingw32.h (_tfreopen): Define this macro here for older MingW
14376 Activate the unicode support on platforms using a MingW runtime
14377 version 3.9 or newer.
14379 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
14380 This is needed for proper unicode support on Windows.
14383 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
14384 Nicolas Setton <setton@adacore.com>
14385 Olivier Hainque <hainque@adacore.com>
14386 Gary Dismukes <dismukes@adacore.com>
14388 * gigi.h: (tree_code_for_record_type): Declare.
14389 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
14390 (get_global_renaming_pointers): Rename to
14391 invalidate_global_renaming_pointers.
14392 (static_ctors): Delete.
14393 (static_dtors): Likewise.
14394 (gnat_write_global_declarations): Declare.
14395 (create_var_decl): Adjust descriptive comment to indicate that the
14396 subprogram may return a CONST_DECL node.
14397 (create_true_var_decl): Declare new function, similar to
14398 create_var_decl but forcing the creation of a VAR_DECL node.
14399 (get_global_renaming_pointers): Declare.
14400 (add_global_renaming_pointer): Likewise.
14402 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
14404 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
14405 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
14407 (gnat_to_gnu_entity): Remove From_With_Type from computation for
14409 <E_Access_Type>: Use the Non_Limited_View as the full view of the
14410 designated type if the pointer comes from a limited_with clause. Make
14411 incomplete designated type if it is in the main unit and has a freeze
14413 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
14414 Underlying_Full_View similarly. Return earlier if the full view already
14415 has an associated tree.
14416 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
14417 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
14418 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
14419 reference type built for objects with an address clause.
14420 Use create_true_var_decl with const_flag set for
14421 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
14423 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
14424 for Character and Wide_Character types. This info is read by the
14425 dwarf-2 writer, and is needed to be able to use the command "ptype
14426 character" in the debugger.
14427 (gnat_to_gnu_entity): When generating a type representing
14428 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
14429 so that debug writers can distinguish it from ordinary integers.
14430 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
14431 addition to TREE_READONLY to assert the constantness of variables for
14432 elaboration purposes.
14433 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
14434 parameters to call new Einfo function First_Formal_With_Extras.
14435 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
14436 protected type with its corresponding discriminant, to obtain a usable
14438 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
14439 for a multiple elaboration of the "equivalent" type.
14440 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
14441 into record_global_renaming_pointer.
14442 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
14443 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
14444 <E_Array_Subtype>: Likewise.
14445 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
14446 incomplete subtypes and incomplete subtypes of incomplete types visible
14447 through a limited with clause.
14448 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
14449 the base index type for the maximum size of the array only if they are
14451 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
14452 expression into a SAVE_EXPR if stabilization failed.
14454 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
14455 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
14456 by lower level compilation passes.
14457 (gnat_genericize): New function, lowering a function body to GENERIC.
14458 Turn the type of RESULT_DECL into a real reference type if the decl
14459 has been marked DECL_BY_REFERENCE, and adjust references to the latter
14461 (gnat_genericize_r): New function. Tree walking callback for
14463 (convert_from_reference, is_byref_result): New functions. Helpers for
14465 (create_type_decl): Call gnat_pushdecl before calling
14466 rest_of_decl_compilation, to make sure that field TYPE_NAME of
14467 type_decl is properly set before calling the debug information writers.
14468 (write_record_type_debug_info): The heuristics which compute the
14469 alignment of a field in a variant record might not be accurate. Add a
14470 safety test to make sure no alignment is set to a smaller value than
14471 the alignment of the field type.
14472 (make_dummy_type): Use the Non_Limited_View as the underlying type if
14473 the type comes from a limited_with clause. Do not loop on the full view.
14474 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
14475 (dummy_node_table): New global variable, moved from decl.c.
14476 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
14477 (save_gnu_tree): Use above macros.
14478 (get_gnu_tree): Likewise.
14479 (present_gnu_tree): Likewise.
14480 (init_dummy_type): New function, moved from decl.c. Use above macros.
14481 (make_dummy_type): Likewise.
14482 (tree_code_for_record_type): New function extracted from make_dummy_type
14483 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
14484 (static_ctors): Change it to a vector, make static.
14485 (static_dtors): Likewise.
14486 (end_subprog_body): Adjust for above change.
14487 (build_global_cdtor): Moved from trans.c.
14488 (gnat_write_global_declarations): Emit global constructor and
14489 destructor, and call cgraph_optimize before emitting debug info for
14490 global declarations.
14491 (global_decls): New global variable.
14492 (gnat_pushdecl): Store the global declarations in global_decls, for
14494 (gnat_write_global_declarations): Emit debug information for global
14496 (create_var_decl_1): Former create_var_decl, with an extra argument to
14497 state whether the creation of a CONST_DECL is allowed.
14498 (create_var_decl): Behavior unchanged. Now a wrapper around
14499 create_var_decl_1 allowing CONST_DECL creation.
14500 (create_true_var_decl): New function, similar to create_var_decl but
14501 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
14502 (create_field_decl): Do not always mark the field as addressable
14503 if its type is an aggregate.
14504 (global_renaming_pointers): New static variable.
14505 (add_global_renaming_pointer): New function.
14506 (get_global_renaming_pointers): Likewise.
14508 * misc.c (gnat_dwarf_name): New function.
14509 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
14510 (gnat_post_options): Add comment about structural alias analysis.
14511 (gnat_parse_file): Do not call cgraph_optimize here.
14512 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
14514 * trans.c (process_freeze_entity): Don't abort if we already have a
14515 non dummy GCC tree for a Concurrent_Record_Type, as it might
14516 legitimately have been elaborated while processing the associated
14517 Concurrent_Type prior to this explicit freeze node.
14518 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
14519 exception handler volatile if it is of variable size.
14520 (process_type): Remove bypass for types coming from a limited_with
14522 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
14523 actual, convert the corresponding gnu_actual to the real destination
14524 type when necessary.
14525 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
14526 originally TREE_READONLY but whose elaboration cannot be performed
14528 Part of fix for F504-021.
14529 (tree_transform, subprogram cases): Change loops on formal parameters to
14530 call new Einfo function First_Formal_With_Extras.
14531 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
14532 stemming from type conversion for the lhs.
14533 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
14534 number of bits per unit for components of records.
14535 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
14536 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
14537 with At_End_Proc after the SJLJ EH cleanup.
14538 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
14540 (elaborate_all_entities): Do not retest type_annotate_only.
14541 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
14542 result type of an abstract subprogram, which may be an itype associated
14543 with an anonymous access result (related to AI-318-02).
14544 (build_global_cdtor): Move to utils.c.
14545 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
14546 this choice is not a null tree nor an integer constant.
14547 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
14548 on the body of elaboration routines instead of mark_unvisited.
14549 (add_stmt): Do not mark the tree.
14550 (add_decl_expr): Tweak comment.
14551 (mark_unvisited): Delete.
14552 (unshare_save_expr): New static function.
14553 (call_to_gnu): Issue an error when making a temporary around a
14554 procedure call because of non-addressable actual parameter if the
14555 type of the formal is by_reference.
14556 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
14557 after building the elaboration routine.
14559 2006-10-31 Bob Duff <duff@adacore.com>
14561 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
14562 as finalization-started, so we can raise Program_Error on 'new'.
14564 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
14565 collection has already started.
14567 * s-finimp.ads (Collection_Finalization_Started): Added new special
14568 flag value for indicating that a collection's finalization has started.
14570 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
14571 create a task whose master has already waited for dependent tasks.
14573 2006-10-31 Robert Dewar <dewar@adacore.com>
14575 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
14577 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
14578 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
14579 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
14580 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
14581 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
14582 a-except-2005.ads: Add pragma Preelaborable_Warning
14584 2006-10-31 Robert Dewar <dewar@adacore.com>
14585 Jose Ruiz <ruiz@adacore.com>
14587 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
14589 * ali.adb (Get_Name): Properly handle scanning of wide character names
14590 encoded with brackets notation.
14591 (Known_ALI_Lines): Add S lines to this list.
14592 (Scan_ALI): Acquire S (priority specific dispatching) lines.
14593 New flag Elaborate_All_Desirable in unit table
14595 * ali.ads (Priority_Specific_Dispatching): Add this range of
14596 identifiers to be used for Priority_Specific_Dispatching table entries.
14597 (ALIs_Record): Add First_Specific_Dispatching and
14598 Last_Specific_Dispatching that point to the first and last entries
14599 respectively in the priority specific dispatching table for this unit.
14600 (Specific_Dispatching): Add this table for storing each S (priority
14601 specific dispatching) line encountered in the input ALI file.
14602 New flag Elaborate_All_Desirable in unit table
14604 * bcheck.adb: (Check_Configuration_Consistency): Add call to
14605 Check_Consistent_Dispatching_Policy.
14606 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
14607 verifying that the use of Priority_Specific_Dispatching,
14608 Task_Dispatching_Policy, and Locking_Policy is consistent across the
14611 * bindgen.adb: (Public_Version_Warning): function removed.
14612 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
14613 required information from ALI files in order to initialize the table
14614 containing the specific dispatching policy.
14615 (Gen_Adainit_Ada): Generate the variables required for priority specific
14616 dispatching entries (__gl_priority_specific_dispatching and
14617 __gl_num_specific_dispatching).
14618 (Gen_Adainit_C): Generate the variables required for priority specific
14619 dispatching entries (__gl_priority_specific_dispatching and
14620 __gl_num_specific_dispatching).
14621 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
14623 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
14624 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
14626 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
14627 a call to gnat_set_globals.
14628 Generate a string containing settings from
14629 Priority_Specific_Dispatching pragma entries.
14630 (Gen_Object_Files_Options): Do not include the runtime libraries when
14631 pragma No_Run_Time is specified.
14633 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
14634 consistency with s-intman-posix.adb.
14635 (__gnat_error_handler, case FreeBSD): Account for the fact that the
14636 handler is installed with SA_SIGINFO.
14637 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
14638 FreeBSD ZCX support, copied from Linux version.
14639 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
14640 sigfillset, and sigemptyset so the routines defined by MaRTE.
14641 (__gl_priority_specific_dispatching): Add this variable that stores the
14642 string containing priority specific dispatching policies in the
14644 (__gl_num_specific_dispatching): Add this variable that indicates the
14645 highest priority for which a priority specific dispatching pragma
14647 (__gnat_get_specific_dispatching): Add this routine that returns the
14648 priority specific dispatching policy, as set by a
14649 Priority_Specific_Dispatching pragma appearing anywhere in the current
14650 partition. The input argument is the priority number, and the result
14651 is the upper case first character of the policy name.
14652 (__gnat_set_globals): Now a dummy function.
14653 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
14654 mechargs instead of sigargs, as the latter can be retrieved from the
14655 former and sigargs is not what we want on ia64.
14656 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
14658 (__gnat_adjust_context_for_raise, ia64-vms): New function.
14659 (tasking_error): Remove unused symbol.
14660 (_abort_signal): Move this symbol to the IRIX specific part since this
14661 is the only target that uses this definition.
14662 (Check_Abort_Status): Move this symbol to the IRIX specific part since
14663 this is the only target that uses this definition.
14664 (Lock_Task): Remove unused symbol.
14665 (Unlock_Task): Remove unused symbol.
14667 * lib-writ.adb (Write_ALI): Output new S lines for
14668 Priority_Specific_Dispatching pragmas.
14669 Implement new flag BD for elaborate body desirable
14671 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
14672 (Specific_Dispatching): Add this table for storing the entries
14673 corresponding to Priority_Specific_Dispatching pragmas.
14674 Document new BD flag for elaborate body desirable
14676 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
14679 2006-10-31 Javier Miranda <miranda@adacore.com>
14681 * a-tags.ads, a-tags.adb:
14682 (Predefined_DT): New function that improves readability of the code.
14683 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
14684 Inherit_DT): Use the new function Predefined_DT to improve code
14686 (Register_Interface_Tag): Update assertion.
14687 (Set_Interface_Table): Update assertion.
14688 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
14689 determining progenitor interfaces in Tags.
14690 (Inherit_CPP_DT): New subprogram.
14692 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
14693 analysis of the thunk code.
14694 (Expand_Interface_Conversion): Handle run-time conversion of
14695 access to class wide types.
14696 (Expand_Dispatching_Call): When generating the profile for the
14697 subprogram itype for a dispatching operation, properly terminate the
14698 formal parameters chaind list (set the Next_Entity of the last formal
14700 (Collect_All_Interfaces): Removed. This routine has been moved to
14701 sem_util and renamed as Collect_All_Abstract_Interfaces.
14702 (Set_All_DT_Position): Hidden entities associated with abstract
14703 interface primitives are not taken into account in the check for
14704 3.9.3(10); this check is done with the aliased entity.
14705 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
14706 interfacing with CPP by default.
14707 (Expand_Interface_Conversion): Add missing support for static conversion
14708 from an interface to a tagged type.
14709 (Collect_All_Interfaces): Add new out formal containing the list of
14710 abstract interface types to cleanup the subprogram Make_DT.
14711 (Make_DT): Update the code to generate the table of interfaces in case
14712 of abstract interface types.
14713 (Is_Predefined_Dispatching_Alias): New function that returns true if
14714 a primitive is not a predefined dispatching primitive but it is an
14715 alias of a predefined dispatching primitive.
14716 (Make_DT): If the ancestor of the type is a CPP_Class and we are
14717 compiling under full ABI compatibility mode we avoid the generation of
14718 calls to run-time services that fill the dispatch tables because under
14719 this mode we currently inherit the dispatch tables in the IP subprogram.
14720 (Write_DT): Emit an "is null" indication for a null procedure primitive.
14721 (Expand_Interface_Conversion): Use an address as the type of the formal
14722 of the internally built function that handles the case in which the
14723 target type is an access type.
14725 2006-10-31 Robert Dewar <dewar@adacore.com>
14727 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
14729 2006-10-31 Robert Dewar <dewar@adacore.com>
14731 * bindusg.ads, bindusg.adb:
14732 Change to package and rename procedure as Display, which
14733 now ensures that it only outputs usage information once.
14735 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14737 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
14740 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
14743 2006-10-31 Robert Dewar <dewar@adacore.com>
14744 Ed Schonberg <schonberg@adacore.com>
14746 * treepr.adb: Use new subtype N_Membership_Test
14748 * checks.ads, checks.adb: Add definition for Validity_Check
14749 (Range_Or_Validity_Checks_Suppressed): New function
14750 (Ensure_Valid): Test Validity_Check suppressed
14751 (Insert_Valid_Check): Test Validity_Check suppressed
14752 (Insert_Valid_Check): Preserve Do_Range_Check flag
14753 (Validity_Check_Range): New procedure
14754 (Expr_Known_Valid): Result of membership test is always valid
14755 (Selected_Range_Checks): Range checks cannot be applied to discriminants
14756 by themselves. Disabling those checks must also be done for task types,
14757 where discriminants may be used for the bounds of entry families.
14758 (Apply_Address_Clause_Check): Remove side-effects if address expression
14759 is non-static and is not the name of a declared constant.
14760 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
14761 Code cleanup and new error messages.
14762 (Enable_Range_Check): Test for some cases of suppressed checks
14763 (Generate_Index_Checks): Suppress index checks if index checks are
14764 suppressed for array object or array type.
14765 (Apply_Selected_Length_Checks): Give warning for compile-time detected
14766 length check failure, even if checks are off.
14767 (Ensure_Valid): Do not generate a check on an indexed component whose
14768 prefix is a packed boolean array.
14769 * checks.adb: (Alignment_Checks_Suppressed): New function
14770 (Apply_Address_Clause_Check): New procedure, this is a completely
14771 rewritten replacement for Apply_Alignment_Check
14772 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
14773 we request a discriminal value only in case of discriminants.
14774 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
14775 assignments where the target subtype is unconstrained and the target
14776 object is a parameter or dereference (other aliased cases are known
14777 to be unconstrained).
14779 2006-10-31 Robert Dewar <dewar@adacore.com>
14781 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
14782 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
14783 vms_conv.adb: Fix bad table increment values (much too small)
14785 * table.adb (Realloc): Make sure we get at least some new elements
14786 Defends against silly small values for table increment
14788 2006-10-31 Robert Dewar <dewar@adacore.com>
14789 Ed Schonberg <schonberg@adacore.com>
14790 Bob Duff <duff@adacore.com>
14792 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
14793 entities. Move other fields around to make this possible
14794 (Is_Derived_Type): Add missing call to Is_Type.
14795 (Extra_Formals): New function for subprograms, entries, subprogram
14797 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
14798 (First_Formal_With_Extras): New function for subprogs, entries, subp
14800 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
14801 Add node information for E_Return_Statement.
14802 (Elaborate_Body_Desirable): New flag
14803 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
14804 to be Is_Inherently_Limited_Type, because return-by-reference has
14805 no meaning in Ada 2005.
14806 (E_Return_Statement): New entity kind.
14807 (Return_Applies_To): Field of E_Return_Statement.
14808 (Is_Return_Object): New flag in object entities.
14809 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
14810 (Must_Have_Preelab_Init): New flag
14811 (Known_To_Have_Preelab_Init): New flag
14812 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
14813 (Is_Visible_Formal): New flag on entities in formal packages.
14814 (Low_Bound_Known): New flag
14815 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
14817 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
14818 output when Id is an incomplete subtype.
14820 2006-10-31 Robert Dewar <dewar@adacore.com>
14822 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
14823 Avoid abbreviation Creat
14824 (Finalize): List all sources in extended mail source if -gnatl
14826 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
14827 (Finalize): Implement new -gnatl=xxx switch to output listing to file
14828 (Set_Specific_Warning_On): New procedure
14829 (Set_Specific_Warning_Off): New procedure
14830 Add implementation of new insertion \\
14831 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
14832 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
14834 (Error_Msg_Internal): Make sure that we set Last_Killed to
14835 True when a message from another package is suppressed.
14836 Implement insertion character ~ (insert string)
14837 (First_Node): Minor adjustments to get better placement.
14840 Implement new -gnatl=xxx switch to output listing to file
14843 Implement new -gnatl=xxx switch to output listing to file
14845 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
14846 (Commands_To_Stdout): New flag
14847 Implement new -gnatl=xxx switch to output listing to file
14848 New switch Dump_Source_Text
14849 (Warn_On_Deleted_Code): New warning flag for -gnatwt
14850 Define Error_Msg_Line_Length
14851 (Warn_On_Assumed_Low_Bound): New switch
14853 * osint.ads, osint.adb
14854 (Normalize_Directory_Name): Fix bug.
14855 Implement new -gnatl=xxx switch to output listing to file
14856 (Concat): Removed, replaced by real concatenation
14857 Make use of concatenation now allowed in compiler
14858 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
14859 we find the 'lib' or 'bin' directory even when the tool has been
14860 invoked with a relative path.
14861 (Executable_Name): New function taking string parameters.
14863 * osint-c.ads, osint-c.adb:
14864 Implement new -gnatl=xxx switch to output listing to file
14866 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
14869 Implement new -gnatl=xxx switch to output listing to file
14870 Recognize new -gnatL switch
14871 (no longer keep in old warning about old style usage)
14872 Use concatenation to simplify code
14873 Recognize -gnatjnn switch
14874 (Scan_Front_End_Switches): Clean up handling of -gnatW
14875 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
14877 2006-10-31 Robert Dewar <dewar@adacore.com>
14879 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
14880 (Set_Specific_Warning_Off): New procedure
14881 (Warning_Specifically_Suppressed): New function
14882 (Validate_Specific_Warnings): New procedure
14883 (Output_Msg_Text): Complete rewrite to support -gnatjnn
14885 * err_vars.ads: Implement insertion character ~ (insert string)
14887 2006-10-31 Bob Duff <duff@adacore.com>
14888 Ed Schonberg <schonberg@adacore.com>
14890 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
14891 the parent part is a build-in-place function call, generate assignments.
14892 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
14893 are build-in-place function calls.
14894 (Replace_Self_Reference): New subsidiary of
14895 Make_OK_Assignment_Statement, to replace an access attribute that is a
14896 self-reference into an access to the appropriate component of the
14897 target object. Generalizes previous mechanism to handle self-references
14898 nested at any level.
14899 (Is_Self_Referential_Init): Remove, not needed.
14900 (Is_Self_Referential_Init): New predicate to simplify handling of self
14901 referential components in record aggregates.
14902 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
14903 check for presence of entity before checking for self-reference.
14904 (Has_Default_Init_Comps): Return True if a component association is a
14905 self-reference to the enclosing type, which can only come from a
14906 default initialization.
14907 (Make_OK_Assignment_Statement): If the expression is of the form
14908 Typ'Acc, where Acc is an access attribute, the expression comes from a
14909 default initialized self-referential component.
14910 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
14911 that has been derived from several abstract interfaces we must also
14912 initialize the tags of the secondary dispatch tables.
14914 2006-10-31 Ed Schonberg <schonberg@adacore.com>
14915 Thomas Quinot <quinot@adacore.com>
14916 Javier Miranda <miranda@adacore.com>
14917 Robert Dewar <dewar@adacore.com>
14920 (Expand_Access_To_Protected_Op): If the context indicates that an access
14921 to a local operation may be transfered outside of the object, create an
14922 access to the wrapper operation that must be used in an external call.
14923 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
14924 target, pass the Valid attribute applied to a floating-point prefix on
14925 to the back end without expansion.
14926 (Storage_Size): Use the new run-time function Storage_Size to retrieve
14927 the allocated storage when it is specified by a per-object expression.
14928 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
14929 Nothing to do here, the attribute has been rewritten during semantic
14931 (Expand_Attribute_Reference): Handle expansion of the new Priority
14933 (Find_Fat_Info): Handle case of universal real
14934 (Expand_Access_To_Protected_Op): Fix use of access to protected
14935 subprogram from inside the body of a protected entry.
14936 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
14937 'Access and 'Unrestricted_Access, to transform the attribute reference
14938 into a fat pointer.
14939 (Is_Constrained_Aliased_View): New predicate to help determine whether a
14940 subcomponent's enclosing variable is aliased with a constrained subtype.
14941 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
14942 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
14943 an aliased prefix must be known to be constrained in order to use True
14944 for the attribute value, and now it's possible for some aliased views
14945 to be unconstrained.
14947 2006-10-31 Robert Dewar <dewar@adacore.com>
14949 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
14950 (Expand_Entity_Reference): Correct error of not handling subprogram
14951 formals in current_value processing.
14953 2006-10-31 Javier Miranda <miranda@adacore.com>
14954 Robert Dewar <dewar@adacore.com>
14955 Ed Schonberg <schonberg@adacore.com>
14956 Gary Dismukes <dismukes@adacore.com>
14958 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
14959 register in the final list objects containing class-wide interfaces;
14960 otherwise we incorrectly register the tag of the interface in the final
14962 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
14963 generate the wrapper if the parent primitive is abstract. This is
14964 required to report the correct error message.
14965 (Expand_N_Subtype_Indication): Do validity checks on range
14966 (Clean_Task_Names): If an initialization procedure includes a call to
14967 initialize a task (sub)component, indicate that the procedure will use
14968 the secondary stack.
14969 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
14970 compatibility for interfacing with CPP by default.
14971 (Expand_N_Object_Declaration): Only build an Adjust call when the
14972 object's type is a nonlimited controlled type.
14973 * exp_ch3.adb: Add with and use of Exp_Ch6.
14974 (Expand_N_Object_Declaration): Check for object initialization that is a
14975 call to build-in-place function and apply Make_Build_In_Place_Call_In_
14976 Object_Declaration to the call.
14977 (Freeze_Type): When the designated type of an RACW was not frozen at the
14978 point where the RACW was declared, validate the primitive operations
14979 with respect to E.2.2(14) when it finally is frozen.
14980 (Build_Initialization_Call,Expand_Record_Controller): Rename
14981 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
14982 return-by-reference has no meaning in Ada 2005.
14983 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
14984 to register tag of the immediate ancestor interfaces in the
14985 run-time structure.
14986 (Init_Secondary_Tags): Moved to the specification to allow the
14987 initialization of extension aggregates with abstract interfaces.
14988 (Build_Master_Renaming): Make public, for use by function declarations
14989 whose return type is an anonymous access type.
14990 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
14991 Insert_List_Before_And_Analyze after the generation of the specs
14992 associated with null procedures.
14993 (Expand_Tagged_Root): Update documentation in its specification.
14994 (Init_Secondary_Tags): Update documentation.
14995 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
14996 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
14997 then generate code to inherit the contents of the dispatch table
14998 directly from the ancestor.
14999 (Expand_Record_Controller): Insert controller component after tags of
15000 implemented interfaces.
15001 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
15002 create null procedure overridings when null procedures are inherited
15004 (Make_Null_Procedure_Specs): New procedure to generate null procedure
15005 declarations for overriding null primitives inherited from interfaces.
15006 (Is_Null_Interface_Procedure): New function in
15007 Make_Null_Procedure_Specs.
15008 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
15009 immediate ancestor of a tagged type is an abstract interface type we
15010 must generate the specification of the predefined primitives associated
15011 with controlled types (because the dispatch table of the ancestor is
15012 null and hence these entries cannot be inherited). This is required to
15013 elaborate well the dispatch table.
15015 2006-10-31 Javier Miranda <miranda@adacore.com>
15016 Ed Schonberg <schonberg@adacore.com>
15017 Bob Duff <duff@adacore.com>
15018 Gary Dismukes <dismukes@adacore.com>
15019 Robert Dewar <dewar@adacore.com>
15021 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
15023 (Expand_N_In): Do validity checks on range
15024 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
15025 (Expand_N_Allocator): For "new T", if the object is constrained by
15026 discriminant defaults, allocate the right amount of memory, rather than
15027 the maximum for type T.
15028 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
15029 when the allocator is initialized by a build-in-place call, since the
15030 allocator is already rewritten as a reference to the function result,
15031 and this prevents an unwanted duplication of the function call.
15032 Add with and use of Exp_Ch6.
15033 (Expand_Allocator_Expresssion): Check for an allocator whose expression
15034 is a call to build-in-place function and apply
15035 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
15036 untagged designated types).
15037 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
15038 optimization if source or target is biased.
15039 (Expand_N_Allocator): Add comments for case of an allocator within a
15040 function that returns an anonymous access type designating tasks.
15041 (Expand_N_Allocator): apply discriminant checks for access
15042 discriminants of anonymous access types (AI-402, AI-416)
15044 2006-10-31 Bob Duff <duff@adacore.com>
15045 Robert Dewar <dewar@adacore.com>
15046 Gary Dismukes <dismukes@adacore.com>
15047 Ed Schonberg <schonberg@adacore.com>
15049 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
15051 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
15052 (Expand_N_Assignment_Statement): Call
15053 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
15054 build-in-place function call. Currently, this can happen only for
15055 assignments that come from aggregates.
15056 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15057 in order to alleviate the upward compatibility introduced by AI-318.
15058 (Expand_N_Extended_Return_Statement): Add support for handling the
15059 return object as a build-in-place result.
15060 (Expand_Non_Function_Return): Implement simple return statements nested
15061 within an extended return.
15062 (Enable_New_Return_Processing): Turn on the new processing of return
15064 (Expand_Non_Function_Return): For a return within an extended return,
15065 don't raise Program_Error, because Sem_Ch6 now gives a warning.
15066 (Expand_N_Extended_Return_Statement): Implement AI-318
15067 (Expand_Simple_Function_Return): Ditto.
15068 (Expand_N_If_Statement): Handle new -gnatwt warning
15069 (Expand_N_Case_Statement): Handle new -gnatwt warning
15070 (Expand_N_Assignment): Handle assignment to the Priority attribute of
15071 a protected object.
15072 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
15073 validity checking of assignments to elementary record components.
15074 (Expand_N_Return_Statement): return Class Wide types on the secondary
15075 stack independantly of their controlled status since with HIE runtimes,
15076 class wide types are not potentially controlled anymore.
15078 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
15081 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
15082 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
15083 it expects a block, procedure, or task. The return statement will get
15084 turned into a block, and Expand_Cleanup_Actions will happen then.
15086 2006-10-31 Robert Dewar <dewar@adacore.com>
15087 Ed Schonberg <schonberg@adacore.com>
15088 Bob Duff <duff@adacore.com>
15089 Gary Dismukes <dismukes@adacore.com>
15091 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
15093 (Expand_Inlined_Call): Tagged types are by-reference types, and
15094 therefore should be replaced by a renaming declaration in the expanded
15095 body, as is done for limited types.
15096 (Expand_Call): If this is a call to a function with dispatching access
15097 result, propagate tag from context.
15098 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
15100 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
15101 build-in-place when the right-hand side of an assignment is a
15102 build-in-place function call.
15103 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
15104 of the explicit dereference of the allocator to the result subtype of
15105 the build-in-place function. This is needed to satisfy type checking
15106 in cases where the caller's return object is created by an allocator for
15107 a class-wide access type and the type named in the allocator is a
15109 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
15110 conversion of the reference to the declared object to the result subtype
15111 of the build-in-place function. This is needed to satisfy type checking
15112 in cases where the declared object has a class-wide type. Also, in the
15113 class-wide case, change the type of the object entity to the specific
15114 result subtype of the function, to avoid passing a class-wide object
15115 without explicit initialization to the back end.
15116 (Register_Interface_DT_Entry): Moved outside the body of
15117 Freeze_Subprogram because this routine is now public; it is called from
15118 Check_Dispatching_Overriding to handle late overriding of abstract
15119 interface primitives.
15120 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
15121 adding an implicit access actual on a call to a build-in-place function.
15122 (Expand_Actuals): Test for an actual parameter that is a call to a
15123 build-in-place function and apply
15124 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
15125 (Is_Build_In_Place_Function): New function to determine whether an
15126 entity is a function whose calls should be handled as build-in-place.
15127 (Is_Build_In_Place_Function_Call): New function to determine whether an
15128 expression is a function call that should handled as build-in-place.
15129 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
15130 calls to build-in-place functions as the initialization of an allocator.
15131 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
15132 handling calls to build-in-place functions in contexts that do not
15133 involve init of a separate object (for example, actuals of subprogram
15135 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
15136 handling calls to build-in-place functions as the initialization of an
15137 object declaration.
15138 (Detect_Infinite_Recursion): Add explicit parameter Process to
15139 instantiation of Traverse_Body to avoid unreferenced warning.
15140 (Check_Overriding_Inherited_Interfaces): Removed.
15141 (Register_Interface_DT_Entry): Code cleanup.
15142 (Register_Predefined_DT_Entry): Code cleanup.
15143 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
15144 inlined statements if within a transient scope.
15145 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
15146 formal parameters with occurrences of actuals in inlined body, establish
15147 visibility on the proper view of the actual's subtype for the body's
15149 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
15150 compatibility mode and we have an imported CPP subprogram because
15151 for now we assume that imported CPP primitives correspond with
15152 objects whose constructor is in the CPP side (and therefore we
15153 don't need to generate code to register them in the dispatch table).
15154 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
15155 aligned selected component.
15156 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
15157 the actual of an in-mode parameter is a type conversion.
15158 (Expand_Actuals): If the call does not come from source and the actual
15159 is potentially misaligned, let gigi handle it rather than rejecting the
15160 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
15161 Class Wide types as returning by reference independantly of their
15162 controlled status since with HIE runtimes class wide types are not
15163 potentially controlled anymore.
15165 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15167 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
15168 references that are private components of the protected object.
15169 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
15170 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
15171 instantiation to deal with warnings.
15172 (Initialize_Protection): If expression for priority is non-static, use
15173 System_Priority as its expected type, in case the expression has not
15176 2006-10-31 Robert Dewar <dewar@adacore.com>
15178 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
15179 initialization of Homonym_Len.
15180 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
15181 names from fully qualified name. Fixes problem of duplicate
15182 external names differing only in the presence of such a block name.
15184 2006-10-31 Thomas Quinot <quinot@adacore.com>
15185 Pablo Oliveira <oliveira@adacore.com>
15187 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
15188 subprogram Ids, even if they are not yet assigned.
15189 (Build_Subprogram_Id): It is now this function that will take care of
15190 calling Assign_Subprogram_Ids if necessary.
15191 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
15192 should be done only once they are assigned.
15193 (Build_From_Any_Function, case of tagged types): Add missing call to
15195 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
15196 type for an RACW type.
15197 (Add_RACW_Features): When processing an RACW declaration for which the
15198 designated type is already frozen, enforce E.2.2(14) rules immediately.
15199 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
15200 special reordering of controlling formals.
15202 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
15203 associated stub type for an RACW type.
15205 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15207 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
15208 fixed-point operations in an integer context, i.e. as operands of a
15209 conversion to an integer type, indicate that result must be rounded.
15211 2006-10-31 Robert Dewar <dewar@adacore.com>
15213 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
15214 cases, pass the encoding method, since it is now required by the run
15217 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
15218 assumption that Str'First = 1.
15219 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
15220 it on to the Value_Wide_Wide_Character call.
15221 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
15222 properly handles a string of the form quote-encoded_wide_char-quote.
15224 * s-wchcnv.adb: Minor reformatting
15226 2006-10-31 Javier Miranda <miranda@adacore.com>
15228 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
15229 run-time membership test to ensure that the constructed object
15230 implements the target abstract interface.
15232 2006-10-31 Robert Dewar <dewar@adacore.com>
15234 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
15235 Machine_Attribute pragma internally to implement the user pragma.
15236 Add processing for pragma Interface so that it is now completely
15237 equivalent to pragma Import.
15239 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
15240 so that it can be applied to all entities, including record components
15241 and enumeration literals.
15242 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
15243 priority ranges are correct, verify compatibility against task
15244 dispatching and locking policies, and if everything is correct an entry
15245 is added to the table containing priority specific dispatching entries
15246 for this compilation unit.
15247 (Delay_Config_Pragma_Analyze): Delay processing
15248 Priority_Specific_Dispatching pragmas because when processing the
15249 pragma we need to access run-time data, such as the range of
15250 System.Any_Priority.
15251 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
15252 Allow pragma Unreferenced as a context item
15253 Add pragma Preelaborable_Initialization
15254 (Analyze_Pragma, case Interface): Interface is extended so that it is
15255 now syntactically and semantically equivalent to Import.
15256 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
15257 insertion characters.
15258 Add handling for Pragma_Wide_Character_Encoding
15259 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
15260 never supercedes a real restriction, and that a real restriction
15261 always supercedes a warning.
15262 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
15265 2006-10-31 Bob Duff <duff@adacore.com>
15266 Ed Schonberg <schonberg@adacore.com>
15267 Robert Dewar <dewar@adacore.com>
15269 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
15270 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
15271 Is_Inherently_Limited_Type, because return-by-reference has no meaning
15273 (Find_Node_To_Be_Wrapped): Use new method of determining the result
15274 type of the function containing a return statement, because the
15275 Return_Type field was removed. We now use the Return_Applies_To field.
15277 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
15278 (Build_Task_Image_Decl): If procedure is not called from an
15279 initialization procedure, indicate that function that builds task name
15280 uses the sec. stack. Otherwise the enclosing initialization procedure
15281 will carry the indication.
15282 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
15283 N_Object_Declaration instead.
15284 (Kill_Dead_Code): New interface to implement -gnatwt warning for
15285 conditional dead code killed, and change implementation accordingly.
15286 (Insert_Actions): Add N_Return_Object_Declaration case.
15287 Correct comment to mention N_Extension_Aggregate node.
15288 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
15289 attempts to save information for global variables which cannot be
15291 (Get_Current_Value_Condition): Handle conditions the other way round
15292 (constant on left). Also handle right operand of AND and AND THEN
15293 (Set_Current_Value_Condition): Corresponding changes
15294 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
15295 (Get_Current_Value_Condition): Handle simple boolean operands
15296 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
15297 (Get_Current_Value_Condition): If the variable reference is within an
15298 if-statement, does not appear in the list of then_statments, and does
15299 not come from source, treat it as being at unknown location.
15300 (Get_Current_Value_Condition): Enhance to allow while statements to be
15301 processed as well as if statements.
15302 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
15304 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
15305 of loop. This is safe now that we fixed Kill_Current_Values.
15306 (OK_To_Do_Constant_Replacement): Check whether current scope is
15307 Standard, before examining outer scopes.
15309 2006-10-31 Vincent Celier <celier@adacore.com>
15311 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
15312 When True, apply VMS treatment to children of packages A, G, I and S.
15315 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
15317 2006-10-31 Robert Dewar <dewar@adacore.com>
15318 Ed Schonberg <schonberg@adacore.com>
15320 * freeze.adb: Add handling of Last_Assignment field
15321 (Warn_Overlay): Supply missing continuation marks in error msgs
15322 (Freeze_Entity): Add check for Preelaborable_Initialization
15324 * g-comlin.adb: Add Warnings (Off) to prevent new warning
15326 * g-expect.adb: Add Warnings (Off) to prevent new warning
15328 * lib-xref.adb: Add handling of Last_Assignment field
15329 (Generate_Reference): Centralize handling of pragma Obsolescent here
15330 (Generate_Reference): Accept an implicit reference generated for a
15331 default in an instance.
15332 (Generate_Reference): Accept a reference for a node that is not in the
15333 main unit, if it is the generic body corresponding to an subprogram
15336 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
15338 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
15340 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
15342 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
15343 use clauses, to avoid messages on packages used to qualify, and also
15344 to avoid messages from obsolescent units.
15345 (Warn_On_Useless_Assignments): Don't generate messages for imported
15346 and exported variables.
15347 (Warn_On_Useless_Assignments): New procedure
15348 (Output_Obsolescent_Entity_Warnings): New procedure
15349 (Check_Code_Statement): New procedure
15351 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
15352 Change name Is_Ada_2005 to Is_Ada_2005_Only
15353 (Last_Assignment): New field for useless assignment warning
15355 2006-10-31 Olivier Hainque <hainque@adacore.com>
15357 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
15358 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
15360 2006-10-31 Bob Duff <duff@adacore.com>
15361 Robert Dewar <dewar@adacore.com>
15362 Ed Schonberg <schonberg@adacore.com>
15364 * g-awk.adb (Default_Session, Current_Session): Compile this file in
15365 Ada 95 mode, because it violates the new rules for AI-318.
15367 * g-awk.ads: Use overloaded subprograms in every case where we used to
15368 have a default of Current_Session. This makes the code closer to be
15369 correct for both Ada 95 and 2005.
15371 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
15372 code, relying on the fact that the compiler generates a warning
15373 instead of an error in -gnatg mode.
15375 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
15376 E_Return_Statement entity kind.
15377 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
15379 * par.adb (P_Interface_Type_Definition): Addition of one formal to
15380 report an error if the reserved word abstract has been previously found.
15381 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
15383 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
15384 parenthesized range attribute usage
15385 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
15387 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
15388 in the syntax for extended_return_statement. This is not in the latest
15389 RM, but the ARG is expected to issue an AI allowing this.
15390 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
15391 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
15392 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
15393 P_Return_Statement): Parse the new syntax for extended_return_statement.
15395 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
15396 Output_End_Missing): Add error-recovery code for the new
15397 extended_return_statement syntax; that is, the new E_Return entry on
15400 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
15401 limited to nonlimited, because otherwise we violate the new Ada 2005
15402 rules about returning limited types in function Create_AST_Handler in
15405 * sem.adb (Analyze): Add cases for new node kinds
15406 N_Extended_Return_Statement and N_Return_Object_Declaration.
15408 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
15409 type is in the same category as type of context before applying check,
15410 to prevent anomalies in instantiations.
15411 (Resolve_Aggregate): Remove test for limited components in aggregates.
15412 It's unnecessary in Ada 95, because if it has limited components, then
15413 it must be limited. It's wrong in Ada 2005, because limited aggregates
15415 (Resolve_Record_Aggregate): Move check for limited types later, because
15416 OK_For_Limited_Init requires its argument to have been resolved.
15417 (Get_Value): When copying the component default expression for a
15418 defaulted association in an aggregate, use the sloc of the aggregate
15419 and not that of the original expression, to prevent spurious
15420 elaboration errors, when the expression includes function calls.
15421 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
15422 were missing. We also didn't handle qualified expressions. Now also
15423 allow function calls. Use new common routine OK_For_Limited_Init.
15424 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
15425 with space can upper case letter).
15427 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
15428 Has_Static_Discriminants flag
15429 (Record_Type_Declaration): Diagnose an attempt to declare an interface
15430 type with discriminants.
15431 (Process_Range_Expr_In_Decl): Do validity checks on range
15432 (Build_Discriminant_Constraints): Use updated form of
15433 Denotes_Discriminant.
15434 (Process_Subtype): If the subtype is a private subtype whose full view
15435 is a concurrent subtype, introduce an itype reference to prevent scope
15437 (Build_Derived_Record_Type, Collect_Interface_Primitives,
15438 Record_Type_Declaration): The functionality of the subprograms
15439 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
15440 is now performed by a single routine.
15441 (Build_Derived_Record_Type): If the type definition includes an explicit
15442 indication of limitedness, then the type must be marked as limited here
15443 to ensure that any access discriminants will not be treated as having
15444 a local anonymous access type.
15445 (Check_Abstract_Overriding): Issue a detailed error message when an
15446 abstract subprogram was not overridden due to incorrect mode of its
15448 (Analyze_Private_Extension_Declaration): Add support for the analysis of
15449 synchronized private extension declarations. Verify that the ancestor is
15450 a limited or synchronized interface or in the generic case, the ancestor
15451 is a tagged limited type or synchronized interface and all progenitors
15452 are either limited or synchronized interfaces.
15453 Derived_Type_Declaration): Check for presence of private extension when
15454 dealing with synchronized formal derived types.
15455 Process_Full_View): Enchance the check done on the usage of "limited" by
15456 testing whether the private view is synchronized.
15457 Verify that a synchronized private view is completed by a protected or
15459 (OK_For_Limited_Init_In_05): New function.
15460 (Analyze_Object_Declaration): Move check for limited types later,
15461 because OK_For_Limited_Init requires its argument to have been resolved.
15462 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15463 in order to alleviate the upward compatibility introduced by AI-318.
15464 (Constrain_Corresponding_Record): If the constraint is for a component
15465 subtype, mark the itype as frozen, to avoid out-of-scope references to
15466 discriminants in the back-end.
15467 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
15468 this subprogram against wrong sources.
15469 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
15470 discriminant of limited type completed with a protected type, when the
15471 discriminant is used to constrain a private component of the type, and
15472 expansion is disabled.
15473 (Find_Type_Of_Object): Do not treat a return subtype that is an
15474 anonymous subtype as a local_anonymous_type, because its accessibility
15475 level is the return type of the enclosing function.
15476 (Check_Initialization): In -gnatg mode, turn the error "cannot
15477 initialize entities of limited type" into a warning.
15478 (OK_For_Limited_Init): Return true for generated nodes, since it
15479 sometimes violates the legality rules.
15480 (Make_Incomplete_Declaration): If the type for which an incomplete
15481 declaration is created happens to be the currently visible entity,
15482 preserve the homonym chain when removing it from visibility.
15483 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
15484 inherited subprograms.
15485 (Access_Definition): If this is an access to function that is the return
15486 type of an access_to_function definition, context is a type declaration
15487 and the scope of the anonymous type is the current one.
15488 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
15489 incomplete subtype to the set of private dependents of the original
15491 (Constrain_Discriminated_Type): Emit an error message whenever an
15492 incomplete subtype is being constrained.
15493 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
15494 corresponding subtype of the full view of the original incomplete type.
15495 (Check_Incomplete): Properly detect invalid usage of incomplete types
15498 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15500 * g-catiio.ads, g-catiio.adb (Value): New function.
15501 Given an input String, try and parse a valid Time value.
15503 2006-10-31 Vincent Celier <celier@adacore.com>
15505 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
15506 Integer_Address arithmetic, as in Set_Valid.
15508 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15509 Robert Dewar <dewar@adacore.com>
15511 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
15512 handling executable extension manually and duplicating code.
15514 * make.adb: Implement new -S switch
15515 (Gnatmake): Use new function Osint.Executable_Name instead
15516 of handling executable extension manually.
15518 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
15519 is specified, the executable name ends with this suffix.
15520 Take advantage of Osint.Executable_Name instead of duplicating code.
15522 * switch-m.adb: Recognize new gnatmake -S switch
15524 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
15526 (Get_Target_Parameters): Set Executable_Extension_On_Target if
15529 * makeusg.adb: Add line for gnatmake -S switch
15531 2006-10-31 Vincent Celier <celier@adacore.com>
15533 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
15534 call it with -static-libgcc, as there are some platforms, such as
15535 Darwin, where one of these two switches is compulsory to link.
15537 2006-10-31 Vincent Celier <celier@adacore.com>
15539 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
15540 instead of ADA_PROJECT_PATH, for the project path.
15541 (Gnatls): When displaying the project path directories, use host dir
15544 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
15545 names in the project path, as absolute paths may correspond to
15546 multi-valued VMS logical names.
15548 2006-10-31 Vincent Celier <celier@adacore.com>
15550 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
15551 absolute path name.
15552 (Locate_Regular_File): Ditto
15553 (Change_Dir): Remove, no longer used
15554 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
15555 on Windows. Get it calling Get_Current_Dir.
15556 (OpenVMS): Remove imported boolean, no longer needed.
15557 (Normalize_Pathname)[VMS]: Do not resolve directory names.
15558 (Pid_To_Integer): New function to convert a Process_Id to Integer
15560 2006-10-31 Thomas Quinot <quinot@adacore.com>
15562 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
15563 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
15565 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
15568 2006-10-31 Robert Dewar <dewar@adacore.com>
15570 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
15571 initial letter o as a zero.
15573 2006-10-31 Robert Dewar <dewar@adacore.com>
15575 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
15577 2006-10-31 Robert Dewar <dewar@adacore.com>
15579 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
15581 (Layout_Variant_Record): Retrieve the discriminants from the entity
15582 rather than from the type definition, because in the case of a full
15583 type for a private type we need to take the discriminants from the
15585 (Layout_Component_List): When applying the Max operator to variants with
15586 a nonstatic size, check whether either operand is static and scale that
15587 operand from bits to storage units before applying Max.
15588 (Layout_Type): In VMS, if a C-convention access type has no explicit
15589 size clause (and does not inherit one in the case of a derived type),
15590 then the size is reset to 32 from 64.
15592 2006-10-31 Vincent Celier <celier@adacore.com>
15594 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
15595 its file has already been loaded, according to the unit being loaded,
15596 not to the current value of Multiple_Unit_Index.
15598 2006-10-31 Thomas Quinot <quinot@adacore.com>
15599 Eric Botcazou <ebotcazou@adacore.com>
15600 Arnaud Charlet <charlet@adacore.com>
15602 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
15603 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
15605 (a-except.o): Pass it to the compiler.
15606 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
15607 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
15608 a-calend-mingw.adb version.
15610 * Makefile.rtl: Added s-dsaser.
15611 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
15612 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
15613 Ada.Dispatching.Round_Robin.
15614 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
15616 * Make-lang.in: Remove all references to gt-ada-decl.h.
15617 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
15619 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
15620 Update dependencies.
15622 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
15624 2006-10-31 Vincent Celier <celier@adacore.com>
15626 * mlib-utl.adb (Initialized): Remove, no longer used
15627 (Initialize): Remove, no longer used
15628 (Ar): If Ar_Exec is null, get the location of the archive builder and,
15629 if there is one, the archive indexer. Fail if the archive builder cannot
15631 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
15634 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15636 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
15637 Process_Body_Clauses): If the context of a body includes a use clause
15638 for P.Q then a with_clause for P in the same body is not redundant,
15639 even if the spec also has a with_clause on P.
15640 Add missing continuation mark to error msg
15641 (Build_Limited_Views): A limited view of a type is tagged if its
15642 declaration includes a record extension.
15643 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
15644 node, even if the subunit has errors. This avoids malfunction by
15645 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
15646 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
15647 generation of obsolescent messages for with statements (cannot do
15648 this too early, or we cannot implement avoiding the messages in the
15649 case of obsolescent units withing obsolescent units).
15650 (Install_Siblings): If the with_clause is on a remote descendant of
15651 an ancestor of the current compilation unit, find whether there is
15652 a sibling child unit that is immediately visible.
15653 (Remove_Private_With_Clauses): New procedure, invoked after completing
15654 the analysis of the private part of a nested package, to remove from
15655 visibility the private with_clauses of the enclosing package
15657 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
15658 now centralized in Generate_Reference.
15659 (Install_Limited_Context_Clauses): Remove superfluous error
15660 message associated with unlimited view visible through use
15661 and renamings. In addition, at the point in which the error
15662 is reported, we add the backslash to the text of the error
15663 to ensure that it is reported as a single error message.
15664 Use new // insertion for some continuation messages
15665 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
15666 to create implicit with_clause for parent unit mentioned in original
15667 limited_with_clause.
15668 (Install_Limited_With_Unit): Set entity of parent identifiers if the
15669 unit is a child unit. For ASIS queries.
15670 (Analyze_Subunit): If the subunit appears within a child unit, make all
15671 ancestor child units directly visible again.
15673 2006-10-31 Robert Dewar <dewar@adacore.com>
15675 * par-ch10.adb (P_Context_Clause): Minor error message fix
15677 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15678 Javier Miranda <miranda@adacore.com>
15680 * par-ch12.adb: Grammar update and cleanup.
15681 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
15682 support for synchronized derived type definitions.
15683 Add the new actual Abstract_Present to every call to
15684 P_Interface_Type_Definition.
15685 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
15686 a formal object declaration with an access definition or a subtype mark
15687 with a null exclusion.
15688 (P_Generic_Association): Handle association with box, and others_choice
15689 with box, to support Ada 2005 partially parametrized formal packages.
15691 2006-10-31 Robert Dewar <dewar@adacore.com>
15692 Javier Miranda <miranda@adacore.com>
15694 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
15695 (P_Type_Declaration): Remove barrier against the reserved word "limited"
15696 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
15697 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
15698 private extensions.
15699 (P_Type_Declaration): Add the new actual Abstract_Present to every call
15700 to P_Interface_Type_Definition.
15701 (P_Interface_Type_Definition): Addition of one formal to report an error
15702 if the reserved word abstract has been previously found.
15703 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
15704 object renaming declaration with an access definition or subtype mark
15705 with a possible null exclusion.
15707 * par-ch9.adb: Minor error msg fix
15709 * par-load.adb: Add missing continuation mark to error msg
15711 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
15713 2006-10-31 Vincent Celier <celier@adacore.com>
15715 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
15716 unknown attribute in unknown package or in package that does not need
15718 (Parse_Package_Declaration): Do not issue warning for unknown package in
15721 2006-10-31 Vincent Celier <celier@adacore.com>
15723 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
15724 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
15727 2006-10-31 Vincent Celier <celier@adacore.com>
15729 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
15730 on VMS, change "__" to '.' before checking the name.
15731 (Record_Ada_Source): Always add the source file name in the list of
15732 of sources, even if it is not the first time, as it is for another
15734 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
15735 dot, instead of replacing only the first '_'.
15737 * prj-part.adb (Parse): Convert project file path to canonical form
15739 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
15740 extended, the project id of the project extending it is recorded in its
15741 data, even when it has already been processed as an imported project.
15743 2006-10-31 Robert Dewar <dewar@adacore.com>
15745 * repinfo.adb (List_Entities): Don't list entities from renaming
15748 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15749 Robert Dewar <dewar@adacore.com>
15751 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
15752 only a restriction warning is active for the given restriction. This is
15753 desirable because we do not want to modify code in the case where only
15755 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
15756 causes overriding of real restrictions.
15757 Take advantage of new No_Restrictions constant.
15759 * raise.h: (__gnat_set_globals): Change profile.
15761 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15763 * rtsfind.adb: Remove s-polint from comment as it exists no more.
15766 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
15767 Move all the entities in obsolete package System.PolyORB_Interface to
15768 System.Partition_Interface.
15769 (RE_Storage_Size): New function in System.Tasking.
15770 (RE_Get_Ceiling): New entity.
15771 (RE_Set_Ceiling): New entity.
15772 (RO_PE_Get_Ceiling): New entity.
15773 (RO_RE_Set_Ceiling): New entity.
15774 (Inherit_CPP_DT): New entity
15776 2006-10-31 Robert Dewar <dewar@adacore.com>
15778 * scng.adb (Scan, case of numeric literal): Better msg for identifier
15779 starting with a digit.
15781 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15782 Thomas Quinot <quinot@adacore.com>
15783 Javier Miranda <miranda@adacore.com>
15784 Gary Dismukes <dismukes@adacore.com>
15786 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
15787 properly an attempt to apply Unchecked_Access to a protected operation.
15788 (OK_Self_Reference): New subprogram to check the legality of an access
15789 attribute whose prefix is the type of an enclosing aggregate.
15790 Generalizes previous mechanism to handle attribute references nested
15791 arbitrarily deep within the aggregate.
15792 (Analyze_Access_Attribute): An access attribute whose prefix is a type
15793 can appear in an aggregate if this is a default-initialized aggregate
15794 for a self-referential type.
15795 (Resolve_Attribute, case Access): Ditto.
15796 Add support for new implementation defined attribute Stub_Type.
15797 (Eval_Attribute, case Attribute_Stub_Type): New case.
15798 (Analyze_Attribute, case Attribute_Stub_Type): New case.
15799 (Stream_Attribute_Available): Implement using new subprogram from
15800 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
15801 Has_Specified_Stream_Attribute flag.
15802 Disallow Storage_Size and Storage_Pool for access to subprogram
15803 (Resolve_Attribute, case 'Access et al): Take into account anonymous
15804 access types of return subtypes in extended return statements. Remove
15805 accessibility checks on anonymous access types when Unchecked_Access is
15807 (Analyze_Attribute): Add support for the use of 'Class to convert
15808 a class-wide interface to a tagged type.
15809 Add support for the attribute Priority.
15810 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
15811 whether the designated type is discriminated with a constrained partial
15812 view and require static matching in that case.
15813 Add local variable Des_Btyp. The Designated_Type
15814 of an access to incomplete subtype is either its non-limited view if
15815 coming from a limited with or its etype if regular incomplete subtype.
15817 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
15818 Fix predicate to identify and allow cases of (expander-generated)
15819 references to tag of designated object of a RACW.
15820 (Validate_Static_Object_Name): In Ada 2005, a formal object is
15821 non-static, and therefore cannot appear as a primary in a preelaborable
15823 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
15824 Has_Read_Write_Attributes.
15825 (Has_Read_Write_Attributes): Reimplement in termes of
15826 Has_Stream_Attribute_Definition.
15827 (Missing_Read_Write_Attributes): When checking component types in a
15828 record, unconditionally call Missing_Read_Write_Attributes recursively
15829 (remove guard checking for Is_Record_Type / Is_Access_Type).
15831 2006-10-31 Robert Dewar <dewar@adacore.com>
15833 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
15834 useless assignments here and conditionalize it on absence of exception
15836 (Analyze_Exception_Handlers): Small code reorganization of error
15837 detection code, for new handling of formal packages.
15839 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15840 Hristian Kirtchev <kirtchev@adacore.com>
15842 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
15843 that has been constant-folded, preserve information of original tree,
15845 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
15846 generated private extension declaration if the formal derived type is
15847 synchronized. Carry synchronized present over to the generated private
15849 (Validate_Derived_Type_Instance): Ensure that the actual of a
15850 synchronized formal derived type is a synchronized tagged type.
15851 (Instantiate_Formal_Package): When creating the instantiation used to
15852 validate the actual package of a formal declared without a box, check
15853 whether the formal itself depends on a prior actual.
15854 (Instantiate_Formal_Subprogram): Create new entities for the defining
15855 identifiers of the formals in the renaming declaration, for ASIS use.
15856 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
15857 a renaming declaration or a subtype declaration for an actual in an
15858 instance, capture location information of declaration in generic, for
15860 (Instantiate_Formal_Package): Add comments on needed additional tests.
15861 AI-317 (partial parametrization) is fully implemented.
15862 (Validate_Private_Type_Instance): Add check for actual which
15863 must have preelaborable initialization
15864 Use new // insertion for some continuation messages
15865 (Analyze_Formal_Object_Declaration): Change usage of Expression to
15866 Default_Expression. Add type retrieval when the declaration has an
15867 access definition. Update premature usage of incomplete type check.
15868 (Check_Access_Definition): New subsidiary routine. Check whether the
15869 current compilation version is Ada 05 and the supplied node has an
15871 (Instantiate object): Alphabetize local variables. Handle the creation
15872 of new renaming declarations with respect to the kind of definition
15873 used - either an access definition or a subtype mark. Guard against
15874 unnecessary error message in the context of anonymous access types after
15875 they have been resolved. Add check for required null exclusion in a
15876 formal object declaration.
15877 (Switch_View): A private subtype of a non-private type needs to be
15878 switched (the base type can have been switched without its private
15879 dependents because of the last branch of Check_Private_View.
15880 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
15882 (Instantiate_Type): Emit an error message whenever a class-wide type of
15883 a tagged incomplete type is used as a generic actual.
15884 (Find_Actual_Type): Extend routine to handle a component type in a child
15885 unit that is imported from a formal package in a parent.
15886 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
15887 agree on constrainedness, rather than checking against ultimate ancestor
15888 (Instantiate_Subprogram_Body): Create a cross-reference link to the
15889 generic body, for navigation purposes.
15891 2006-10-31 Robert Dewar <dewar@adacore.com>
15892 Thomas Quinot <quinot@adacore.com>
15894 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
15896 (New_Stream_Subprogram): When processing an attribute definition clause
15897 for a stream-oriented subprogram, record an entity node occurring at
15898 the point of clause to use for checking the visibility of the clause,
15899 as defined by 8.3(23) as amended by AI-195.
15900 (New_Stream_Subprogram): New procedure, factoring behaviour from both
15901 New_Stream_Function and New_Stream_Procedure.
15902 (New_Stream_Function, New_Stream_Procedure): Removed.
15903 (Analyze_Attribute_Definition_Clause, case Address): Check new
15904 Alignment_Check check
15906 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15907 Javier Miranda <miranda@adacore.com>
15908 Robert Dewar <dewar@adacore.com>
15910 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
15911 generate the same errors compiling under -gnatc.
15912 (Try_Object_Operation): If no candidate interpretation succeeds, but
15913 there is at least one primitive operation with the right name, report
15914 error in call rather than on a malformed selected component.
15915 (Analyze_Selected_Component): If the prefix is an incomplete type from
15916 a limited view, and the full view is available, use the full view to
15917 determine whether this is a prefixed call to a primitive operation.
15918 (Operator_Check): Verify that a candidate interpretation is a binary
15919 operation before checking the type of its second formal.
15920 (Analyze_Call): Add additional warnings for function call contexts not
15922 (Analyze_Allocator): Move the check for "initialization not allowed for
15923 limited types" after analyzing the expression. This is necessary,
15924 because OK_For_Limited_Init looks at the structure of the expression.
15925 Before analysis, we don't necessarily know what sort of expression it
15926 is. For example, we don't know whether F(X) is a function call or an
15927 indexed component; the former is legal in Ada 2005; the latter is not.
15928 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
15929 were missing. We also didn't handle qualified expressions. Now also
15930 allow function calls. Use new common routine OK_For_Limited_Init.
15931 (Analyze_Type_Conversion): Do not perform some legality checks in an
15932 instance, because the error message will be redundant or spurious.
15933 (Analyze_Overloaded_Selected_Component): Do not do style check when
15934 setting an entity, since we do not know it is the right entity yet.
15935 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
15936 (Analyze_Overloaded_Selected_Component): Same change
15937 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
15938 since regular incomplete subtypes are transformed into corresponding
15939 subtypes of their full views.
15940 (Complete_Object_Operation): Treat name of transformed subprogram call
15941 as coming from source, for browsing purposes.
15942 (Try_Primitive_Operation): If formal is an access parameter, compare
15943 with base type of object to determine whether it is a primitive
15945 (Operator_Check): If no interpretation of the operator matches, check
15946 whether a use clause on any candidate might make the operation legal.
15947 (Try_Class_Wide_Operation): Check whether the first parameter is an
15948 access type whose designated type is class-wide.
15950 2006-10-31 Robert Dewar <dewar@adacore.com>
15951 Ed Schonberg <schonberg@adacore.com>
15952 Gary Dismukes <dismukes@adacore.com>
15954 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
15955 warn on infinite loops.
15956 Add \\ to some continuation messages
15957 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
15958 (Process_Bounds): If the bounds are integer literals that result from
15959 constant-folding, and they carry a user-defined type, preserve that type
15960 rather than treating this as an integer range.
15961 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
15962 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
15963 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
15964 left hand side of assignment.
15965 (Analyze_Assignment): Add suport to manage assigments to the attribute
15966 priority of a protected object.
15967 (Check_Possible_Current_Value_Condition): Allow fully qualified names
15968 not just identifiers.
15969 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
15970 or AND THEN for possible tracking.
15971 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
15972 case of while loops so we can track values in the loop body.
15974 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15975 Hristian Kirtchev <kirtchev@adacore.com>
15976 Bob Duff <duff@adacore.com>
15978 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
15979 procedure cannot be a protected operation (it is a basic_declaration,
15980 not a subprogram_declaration).
15981 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
15982 Subp. Add logic for entry processing.
15983 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
15984 Determine whether an entry or subprogram of a protected or task type
15985 override an inherited primitive of an implemented interface.
15986 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
15987 Update the actual used in calls to Check_Overriding_Indicator.
15988 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
15989 generate the proper reference to the parent unit, for cross-reference.
15990 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
15992 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15993 (Add_Extra_Formal): Revise procedure to allow passing in associated
15994 entity, scope, and name suffix, and handle setting of the new
15995 Extra_Formals field.
15996 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
15997 pass new parameters. Add support for adding the new extra access formal
15998 for functions whose calls are treated as build-in-place.
15999 (Analyze_A_Return_Statement): Correct casing in error message.
16000 Move Pop_Scope to after Analyze_Function_Return, because an extended
16001 return statement really is a full-fledged scope. Otherwise, visibility
16002 doesn't work right. Correct use of "\" for continuation messages.
16003 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
16004 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
16005 the node doesn't get properly marked as analyzed.
16006 (Analyze_Subprogram_Body): If subprogram is a function that returns
16007 an anonymous access type that denotes a task, build a Master Entity
16009 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
16010 proper usage of null exclusion in a result definition.
16011 (Process_Formals): Code cleanup and new error message.
16012 (Process_Formals): Detect incorrect application of null exclusion to
16014 (Conforming_Types): Handle conformance between [sub]types and itypes
16015 generated for entities that have null exclusions applied to them.
16016 (Maybe_Primitive_Operation): Add an additional type retrieval when the
16017 base type is an access subtype. This case arrises with null exclusions.
16018 (New_Overloaded_Entity): Do not remove the overriden entity from the
16019 homonym chain if it corresponds with an abstract interface primitive.
16020 (Process_Formals): Replace membership test agains Incomplete_Kind with a
16021 call to the synthesized predicate Is_Incomplete_Type.
16022 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
16024 (Analyze_Subprogram_Declaration): Check that abstract interface
16025 primitives are abstract or null.
16026 (Analyze_Subprogram_Specification): Remove previous check for abstract
16027 interfaces because it was not complete.
16028 (Has_Interface_Formals): Removed.
16030 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16031 Javier Miranda <miranda@adacore.com>
16033 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
16034 of Analyze_Package_Body, to create Itype references for anonymous
16035 access types created in the package declaration, whose designated types
16036 may have only a limited view.
16037 (Analyze_Package_Specification): For the private part of a nested
16038 package, install private_with_clauses of enclosing compilation unit if
16039 we are in its visible part.
16040 (Declare_Inherited_Private_Subprograms): Complete barrier
16041 to ensure that the primitive operation has an alias to some parent
16042 primitive. This is now required because, after the changes done for the
16043 implementation of abstract interfaces, the contents of the list of
16044 primitives has entities whose alias attribute references entities of
16045 such list of primitives.
16046 (Analyze_Package_Specification): Simplify code that handles parent units
16047 of instances and formal packages.
16048 (Uninstall_Declarations): Check the convention consistency among
16049 primitive overriding operations of a tagged record type.
16051 2006-10-31 Robert Dewar <dewar@adacore.com>
16052 Hristian Kirtchev <kirtchev@adacore.com>
16053 Javier Miranda <miranda@adacore.com>
16054 Ed Schonberg <schonberg@adacore.com>
16056 * sem_ch8.adb: Minor error msg rewording
16057 (Undefined): When checking for misspellings, invert arguments (to get
16058 expected and found set right)
16059 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
16060 (Analyze_Generic_Renaming): Same fix
16061 (Use_One_Package): Do not take into account the internal entities of
16062 abstract interfaces during the analysis of entities that are marked
16063 as potentially use-visible.
16064 (Find_Type): Handle the case of an attribute reference for
16065 implementation defined attribute Stub_Type (simply let the analysis of
16066 the attribute reference rewrite it).
16067 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
16068 type that appears in a Use_Type clause.
16069 (Analyze_Object_Renaming): Add support for renaming of the Priority
16071 (Find_Type): In Ada 2005, a task type can be used within its own body,
16072 when it appears in an access definition.
16073 (Analyze_Object_Renaming): Remove warning on null_exclusion.
16074 (Analyze_Object_Renaming): Introduce checks for required null exclusion
16075 in a formal object declaration or in a subtype declaration.
16076 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
16077 (Check_Null_Exclusion): New local routine to
16078 Analyze_Subprogram_Renaming. Check whether the formals and return
16079 profile of a renamed subprogram have required null exclusions when
16080 their counterparts of the renaming already impose them.
16081 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
16082 Determine whether an entity is inside a generic scope.
16083 (In_Open_Scope): First pass of documentation update.
16084 (Find_Expanded_Name): Add support for shadow entities associated with
16085 limited withed packages. This is required to handle nested packages.
16086 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
16087 that makes a renaming of a limited withed package illegal.
16089 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16090 Ed Schonberg <schonberg@adacore.com>
16092 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
16093 Check_Overriding_Indicator.
16094 (Analyze_Task_Definition): Ditto.
16095 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
16096 (Check_Overriding_Indicator): To find overridden interface operation,
16097 examine only homonyms that have an explicit subprogram declaration, not
16098 inherited operations created by an unrelated type derivation.
16099 (Check_Overriding_Indicator): When checking for the presence of "null"
16100 in a procedure, ensure that the queried node is a procedure
16102 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
16103 type when the formal is an access to variable.
16104 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
16105 (Analyze_Task_Type): Same addition
16106 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
16107 provide navigation capabilities for entries.
16109 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16110 Ed Schonberg <schonberg@adacore.com>
16111 Javier Miranda <miranda@adacore.com>
16112 Gary Dismukes <dismukes@adacore.com>
16114 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
16115 inherited from an interface ancestor by another interface in the
16116 context of an instance as 'late'.
16117 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
16118 of a call to a function that dispatches on access result.
16119 (Check_Dispatching_Operation): In case of late overriding of a primitive
16120 that covers abstract interface subprograms we register it in all the
16121 secondary dispatch tables associated with abstract interfaces.
16122 (Check_Dispatching_Call): Add check that a dispatching call is not made
16123 to a function with a controlling result of a limited type. This is a
16124 current implementation restriction.
16125 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
16126 (Check_Dispatching_Operation): Do no emit a warning if the controlling
16127 argument is an interface type that is a generic formal.
16128 (Is_Interface_Subprogram): Removed.
16129 (Check_Dispatching_Operation): If the subprogram is not a dispatching
16130 operation, check the formals to handle the case in which it is
16131 associated with an abstract interface type.
16133 2006-10-31 Robert Dewar <dewar@adacore.com>
16134 Ed Schonberg <schonberg@adacore.com>
16136 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
16137 Add new calls to this procedure during traversal
16138 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
16139 another unit if expansion is disabled.
16141 2006-10-31 Robert Dewar <dewar@adacore.com>
16143 * sem_eval.adb (Compile_Time_Compare): Make use of information from
16144 Current_Value in the conditional case, to evaluate additional
16145 comparisons at compile time.
16147 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16148 Hristian Kirtchev <kirtchev@adacore.com>
16149 Javier Miranda <miranda@adacore.com>
16151 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
16152 subprogram type to provide better diagnostics in case of ambiguity.
16153 (Covers): Handle coverage of formal and actual anonymous access types in
16154 the context of generic instantiation.
16155 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
16156 abstract interface types; this is required to handle concurrent types
16157 with discriminants and abstract interface types.
16158 (Covers): Include type coverage of both regular incomplete subtypes and
16159 incomplete subtypes of incomplete type visibles through a limited with
16162 2006-10-31 Robert Dewar <dewar@adacore.com>
16163 Hristian Kirtchev <kirtchev@adacore.com>
16164 Ed Schonberg <schonberg@adacore.com>
16166 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
16167 messages for entities in packages which are not used.
16168 (Collect_Synchronized_Interfaces): New procedure.
16169 (Overrides_Synchronized_Primitive): New function.
16170 (Denotes_Discriminant): Extend predicate to apply to task types.
16171 Add missing continuation marks in error msgs
16172 (Unqualify): New function for removing zero or more levels of
16173 qualification from an expression. There are numerous places where this
16174 ought to be used, but we currently only deal properly with zero or one
16176 (In_Instance); The analysis of the actuals in the instantiation of a
16177 child unit is not within an instantiation, even though the parent
16178 instance is on the scope stack.
16179 (Safe_To_Capture_Value): Exclude the case of variables that are
16181 (Check_Obsolescent): Removed
16182 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
16183 is an aliased view, even when rewritten as a reference to the target
16184 object in an assignment.
16185 (Get_Subprogram_Entity): New function
16186 (Known_To_Be_Assigned): New function
16187 (Type_Access_Level): Compute properly the access level of a return
16188 subtype that is an anonymous access type.
16189 (Explain_Limited_Type): Correct use of "\" for continuation messages.
16190 (Is_Transfer): The new extended_return_statement causes a transfer of
16192 (Has_Preelaborable_Initialization): New function
16193 (Has_Null_Exclusion): New function. Given a node N, determine whether it
16194 has a null exclusion depending on its Nkind.
16195 Change Is_Lvalue to May_Be_Lvalue
16196 (May_Be_Lvalue): Extensive additional code to deal with subprogram
16197 arguments (IN parameters are not Lvalues, IN OUT parameters are).
16198 (Safe_To_Capture_Value): Extend functionality so it can be used for
16199 the current value condition case.
16200 (Has_Compatible_Alignment): New function
16201 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
16202 objects to handle the Ada 2005 case, where aliasedness no longer implies
16203 that the object is constrained. In particular, for dereferenced names,
16204 the designated object must be assumed to be unconstrained.
16205 (Kill_Current_Values): Properly deal with the case where we encounter
16206 a loop in the scope chain.
16207 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
16209 (Compile_Time_Constraint_Error): Improve error message in error case
16211 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
16212 associated with entities of abstract interface primitives.
16213 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
16215 2006-10-31 Robert Dewar <dewar@adacore.com>
16217 * s-osinte-tru64.adb:
16218 Mark Asm statements Volatile to prevent warnings (seems a
16219 reasonable change anyway)
16222 * s-mastop-irix.adb: Add Volatile to Asm statements
16223 Suppresses warning, and seems appropriate in any case
16225 * s-osinte-vms.adb: Add Volatile to Asm statement
16227 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
16229 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
16231 Add call to Check_Code_Statement
16233 2006-10-31 Robert Dewar <dewar@adacore.com>
16234 Ed Schonberg <schonberg@adacore.com>
16235 Bob Duff <duff@adacore.com>
16237 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
16238 Synchronized_Present): Add Formal_Derived_Type_Definition and
16239 Private_Extension_Declaration to the list of assertions.
16240 (Is_Entry_Barrier_Function): New flag
16241 (Has_Self_Reference): New flag on aggregates, to indicate that they
16242 contain a reference to the enclosing type, inserted through a default
16244 (Next_Rep_Item): Move from Node4 to Node5.
16245 (Entity): Add this field for N_Attribute_Definition_Clause.
16246 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
16247 (N_Return_Object_Declaration): Remove this node kind. We now use
16248 N_Object_Declaration instead.
16249 (Actual_Designated_Subtype): Move to a different place to make room in
16250 N_Extended_Return_Statement.
16251 (Procedure_To_Call): Move to a different place to make room in
16252 N_Extended_Return_Statement.
16253 (Return_Type): Removed this field to make room in return statements
16255 (Return_Statement_Entity): New field in return statements, in part to
16256 replace Return_Type, and in part to support the fact that return
16257 statements are now pushed on the scope stack during semantic analysis.
16258 (Return_Object_Declarations): New field to support extended return
16260 (N_Extended_Return_Statement): New node for extended_return_statement
16262 (N_Return_Object_Declaration): New node for part of
16263 extended_return_statement nonterminal. Needed because all the necessary
16264 fields won't fit in N_Extended_Return_Statement.
16265 Generic_associations now carry the Box_Present flag, to indicate a
16266 default for an actual in a partially parametrized formal package.
16268 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
16269 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
16270 and for the new predefined dispatching policies: EDF_Across_Priorities,
16271 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
16272 Introduce new name Stub_Type for implementation defined attribute.
16273 Add pragma Preelaborable_Initialization
16274 Add entry for Priority attribute.
16275 Add Pragma_Wide_Character_Encoding
16276 (Get_Convention_Name): Given a convention id, this function returns the
16277 corresponding name id from the names table.
16279 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16280 Robert Dewar <dewar@adacore.com>
16281 Bob Duff <duff@adacore.com>
16283 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
16284 print null exclusion twice in the case of an access definition,
16285 Implement new -gnatL switch
16286 Remove N_Return_Object_Declaration. We now use
16287 N_Object_Declaration instead. Implement the case for
16288 N_Extended_Return_Statement. Alphabetize the cases.
16289 Add cases for new nodes N_Extended_Return_Statement and
16290 N_Return_Object_Declaration. The code is not yet written.
16291 Update the output for N_Formal_Object_Declaration
16292 and N_Object_Renaming_Declaration.
16293 (Write_Itype): Account for the case of a modular integer subtype whose
16294 base type is private.
16296 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16298 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
16299 Remove elaboration code, now done in the binder.
16301 * s-rident.ads: Make this unit Preelaborate.
16302 (No_Restrictions): New constant used to clean up code and follow
16303 preelaborate constraints.
16306 Add System.Restrictions dependence, referenced directly from the
16307 binder generated file.
16309 2006-10-31 Gary Dismukes <dismukes@adacore.com>
16311 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
16312 True when AAMP extended floating-point is in use (48-bit). Change type
16313 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
16314 the two byte array types on AFloat. Change type of IV_Ilf overlay
16315 variable from Byte8 to ByteLF. Add appropriate initializations of
16316 floating-point overlays for AAMP cases.
16318 2006-10-31 Javier Miranda <miranda@adacore.com>
16320 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
16321 (Get_Ceiling): New subprogram that returns
16322 the ceiling priority of the protected object.
16323 (Set_Ceiling): New subprogram that sets the new ceiling priority of
16324 the protected object.
16326 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
16328 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
16330 2006-10-31 Jose Ruiz <ruiz@adacore.com>
16332 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
16333 requeuing to the same protected object to give higher priority tasks
16334 the opportunity to execute.
16336 2006-10-31 Robert Dewar <dewar@adacore.com>
16338 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
16339 add more precise check for the character sequence that follows '[' to
16340 avoid possible confusion in case if '[' is the last character of a
16342 (Scan_Wide): Always allow brackets encoding
16344 2006-10-31 Olivier Hainque <hainque@adacore.com>
16346 * s-stchop.ads: make this unit preelaborate. This is desirable in
16347 general and made mandatory by the use of this unit by s-taprop which
16348 is itself preelaborate.
16350 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
16351 Td_Events component.
16353 2006-10-31 Vincent Celier <celier@adacore.com>
16355 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
16358 2006-10-31 Vincent Celier <celier@adacore.com>
16360 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
16362 2006-10-31 Vincent Celier <celier@adacore.com>
16364 * makegpr.adb (Check_Compilation_Needed): Take into account path names
16366 (Check_Compilation_Needed): When checking a C or C++ source, do not
16367 resolve symbolic links.
16368 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
16369 When not in verbose mode and Ellipse is True, display "..." for the
16370 first argument with Display set to False.
16371 (Build_Global_Archive): Always set Display True for the first object
16372 file. Call Display_Command with Ellipse set to True.
16374 2006-10-31 Matt Heaney <heaney@adacore.com>
16376 * a-crbtgo.ads: Commented each subprogram
16378 * a-crbtgo.adb: Added reference to book from which algorithms were
16381 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
16382 indicate which child.
16383 (Generic_Conditional_Insert): changed parameter name from "Success" to
16385 (Generic_Unconditional_Insert_With_Hint): improved algorithm
16387 * a-coorse.adb (Replace_Element): changed parameter name in call to
16388 conditional insert operation.
16390 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
16392 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
16395 * a-ciorse.adb (Replace_Element): changed parameter name in call to
16396 conditional insert operation.
16398 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
16401 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
16402 instead of mode inout.
16404 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
16406 (Generic_Read): preserve existing buckets array if possible
16407 (Generic_Write): don't send buckets array length anymore
16409 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
16410 instead of mode inout.
16412 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
16413 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16415 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
16416 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
16417 (Replace_Element): local operation is now an instantiation
16419 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
16420 check current length.
16421 (Generic_Replace_Element): new operation
16423 2006-10-31 Doug Rupp <rupp@adacore.com>
16425 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
16426 Call TBK$SYMBOLIZE without omitting parameters.
16428 2006-10-31 Vincent Celier <celier@adacore.com>
16430 * symbols-processing-vms-ia64.adb,
16431 symbols-processing-vms-alpha.adb (Process): Do not include symbols
16432 that come from generic instantiations in bodies.
16434 2006-10-31 Pat Rogers <rogers@adacore.com>
16436 * a-rttiev.ads, a-rttiev.adb:
16437 This is a significant redesign primarily for the sake of automatic
16438 timer task termination but also to fix a design flaw.
16439 Therefore we are now using an RTS lock, instead of a protected
16440 object, to provide mutual exclusion to the queue of pending events
16441 and the type Timing_Event is no longer a protected type.
16443 2006-10-31 Robert Dewar <dewar@adacore.com>
16444 Cyrille Comar <comar@adacore.com>
16445 Ben Brosgol <brosgol@adacore.com>
16447 * debug.adb: Update flags documentation
16449 * gnat_ugn.texi: Add documentation for new -gnatwq switch
16450 Clean up documentation for several other warning switches
16451 Clarify how task stack size can be specified with various
16452 versions of Windows.
16453 Add note that -gnatVo includes ranges including loops
16454 Add documentation for -gnatL switch
16455 Add note on elaboration warning for initializing variables
16456 Add documentation for new -gnatwt warning switch
16457 Document new form of pragma Warnings (On|Off, string)
16458 Add comment on use of pragma Warnings to control warnings
16459 Add documentation for -gnatjnn switch
16460 Modify section on interfacing with C for VMS 64-bit.
16461 Add doc for -gnatVe/E
16462 Add documentation of new warning flags -gnatww/-gnatwW
16463 Add warnings about address clause overlays to list of warnings
16464 (Exception Handling Control): Document that the option --RTS must be
16465 used consistently for gcc and gnatbind.
16466 Clarify that inlining is not always possible
16467 Update documentation on pragma Unchecked_Union.
16470 Add documentation for new extended version of pragma Obsolescent
16471 Add documentation for implementation defined attribute 'Stub_Type.
16472 Add note on use of Volatile in asm statements
16473 Add documentation on use of pragma Unreferenced in context clause
16474 Document new form of pragma Warnings (On|Off, pattern)
16475 Document pragma Wide_Character_Encoding
16476 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
16477 enforced if code generation is active.
16478 Add section on pragma Suppress to document GNAT specific check
16480 Clarify difference between No_Dispatching_Calls & No_Dispatch.
16481 Add documentation for pragma Restrictions (No_Elaboration_Code)
16484 Add comments on layout of subprogram local variables in the
16485 presence of nested subprograms.
16487 * ug_words: Resync.
16489 * elists.ads: Minor reformatting
16490 Node returns Node_Or_Entity_Id (doc change only)
16492 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
16494 * g-arrspl.ads (Create): Update comments.
16496 * sem.ads: Add details on the handling of the scope stack.
16498 * usage.adb: Update documentation.
16500 * validsw.ads, validsw.adb:
16501 Add definition of Validity_Check_Components and implement -gnatVe/E
16503 * vms_data.ads: Add missing VMS qualifiers.
16505 * s-addope.ads: Add documentation on overflow and divide by zero
16507 2006-10-31 Robert Dewar <dewar@adacore.com>
16508 Thomas Quinot <quinot@adacore.com>
16509 Arnaud Charlet <charlet@adacore.com>
16511 * fmap.adb: Put routines in alpha order
16513 * g-boumai.ads: Remove redundant 'in' keywords
16515 * g-cgi.adb: Minor reformatting
16517 * g-cgi.ads: Remove redundant 'in' keywords
16519 * get_targ.adb: Put routines in alpha order
16521 * prj-attr.ads: Minor reformatting
16523 * s-atacco.ads: Minor reformatting
16525 * scn.adb: Put routines in alpha order
16527 * sinput-l.adb: Minor comment fix
16529 * sinput-p.adb: Minor comment fix
16531 * s-maccod.ads: Minor reformatting
16533 * s-memory.adb: Minor reformatting
16535 * s-htable.adb: Fix typo in comment.
16537 * s-secsta.adb: Minor comment update.
16539 * s-soflin.adb: Minor reformatting
16542 Add comment about odd qualification in Storage_Offset declaration
16545 Remove unnecessary 'in' keywords for formal parameters.
16547 * treeprs.adt: Minor reformatting
16549 * urealp.adb: Put routines in alpha order
16551 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
16554 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16556 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
16558 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
16559 workaround as on other platforms.
16561 * g-eacodu-vms.adb: Remove redundant 'in' keywords
16562 * g-expect-vms.adb: Remove redundant 'in' keywords
16564 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
16565 clear error message if the list-of-files file cannot be opened.
16567 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
16568 equality operator is always visible.
16570 * lang.opt: Woverlength-strings: New option.
16573 Update copyright, since nmake.ads and nmake.adb have changed.
16575 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
16576 (Binder_Output_Time_Stamps_Set): removed.
16577 (Old_Binder_Output_Time_Stamp): idem.
16578 (New_Binder_Output_Time_Stamp): idem.
16579 (Recording_Time_From_Last_Bind): idem.
16580 (Recording_Time_From_Last_Bind): Make constant.
16582 * output.ads, output.adb (Write_Str): Allow LF characters
16583 (Write_Spaces): New procedure
16585 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
16587 * inline.adb: Minor reformatting
16589 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
16591 * s-mastop-vms.adb: Remove redundant 'in' keywords
16593 * s-osprim-vms.adb: Remove redundant 'in' keywords
16595 * s-trafor-default.adb: Remove redundant 'in' keywords
16597 * 9drpc.adb: Remove redundant 'in' keywords
16599 * s-osinte-mingw.ads: Minor reformatting
16601 * s-inmaop-posix.adb: Minor reformatting
16603 * a-direio.ads: Remove quotes from Compile_Time_Warning message
16605 * a-exexda.adb: Minor code reorganization
16607 * a-filico.adb: Minor reformatting
16609 * a-finali.adb: Minor reformatting
16611 * a-nudira.ads: Remove quote from Compile_Time_Warning message
16613 * a-numeri.ads: Minor reformatting
16615 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
16617 * exp_pakd.ads: Fix obsolete comment
16619 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
16620 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
16621 Probably not a bug, but certainly neater and more efficient.
16623 * a-tienio.adb: Minor reformatting
16625 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
16626 Avoid assuming low bound of string is 1.
16628 * gnatbind.adb: Change Bindusg to package and rename procedure as
16629 Display, which now ensures that it only outputs usage information once.
16630 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
16632 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
16635 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
16637 (Match): Add pragma Assert to ensure that Matches'First is zero
16639 * g-regpat.ads (Match): Document that Matches lower bound must be zero
16641 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
16642 documented preconditions (also kills warnings about bad indexes).
16644 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
16646 (Build_Import_Library): Ditto;
16648 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
16650 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
16652 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
16653 lower bound of choice table is 1.
16655 * sem_case.ads (Analyze_Choices): Document that lower bound of
16658 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
16661 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
16662 and add appropriate Assert pragma to suppress warnings.
16664 * atree.h, atree.ads, atree.adb
16665 Change Elist24 to Elist25
16666 Add definitions of Field28 and Node28
16667 (Traverse_Field): Use new syntactic parent table in sinfo.
16669 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16671 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
16673 * exp_tss.adb: Put routines in alpha order
16675 * fe.h: Remove redundant declarations.
16677 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
16679 * utils.c (builtin_function): Rename to gnat_builtin_function.
16680 Move common code to add_builtin_function.
16681 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
16682 gnat_builtin_function.
16683 * gigi.h (builtin_function): Rename to gnat_builtin_function.
16684 Change the signature.
16686 2006-10-16 Brooks Moses <bmoses@stanford.edu>
16688 * Makefile.in: Add TEXI2PDF definition.
16689 * Make-lang.in: Add "ada.pdf" target.
16691 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
16693 * decl.c, utils.c: Fix comment typos.
16694 * utils.c: Fix a typo.
16696 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
16698 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
16699 on "pure" Ada subprograms if SJLJ exceptions are used.
16700 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
16701 on the declaration node of JMPBUF_SAVE.
16702 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
16703 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
16704 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
16706 2006-08-20 Laurent Guerby <laurent@guerby.net>
16709 g-socket.adb (Bind_Socket): Call Set_Address.
16711 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
16714 * decl.c (same_discriminant_p): New static function.
16715 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
16716 subtype and we have discriminants, fix up the COMPONENT_REFs
16717 for the discriminants to make them reference the corresponding
16718 fields of the parent subtype after it has been built.
16720 2006-09-15 Roger Sayle <roger@eyesopen.com>
16723 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
16724 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
16726 2006-09-13 Olivier Hainque <hainque@adacore.com>
16729 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
16730 of a SAVE_EXPR, just make the operand addressable/not-readonly and
16731 let the common gimplifier code make and propagate a temporary copy.
16732 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
16733 out/in-out actuals and defer setting the addressable/readonly bits
16736 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
16739 * decl.c (components_to_record): Defer emitting debug info for the
16740 record type associated with the variant until after we are sure to
16743 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
16746 * gigi.h (gnat_internal_attribute_table): Declare.
16747 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
16748 * utils.c (gnat_internal_attribute_table): New global variable.
16749 (builtin_function): Always call decl_attributes on the builtin.
16750 (handle_const_attribute): New static function.
16751 (handle_nothrow_attribute): Likewise.
16753 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
16755 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
16757 2006-06-23 Olivier Hainque <hainque@adacore.com>
16759 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
16760 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
16762 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
16763 Eric Botcazou <ebotcazou@adacore.com>
16766 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
16767 check-gnat into check-acats.
16769 2006-06-17 Karl Berry <karl@gnu.org>
16771 * gnat-style.texi (@dircategory): Use "Software development"
16772 instead of "Programming", following the Free Software Directory.
16774 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16777 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
16779 2006-06-06 Laurent Guerby <laurent@guerby.net>
16782 mlib-utl.adb: Use Program_Name.
16784 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
16786 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
16787 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
16788 trans.c, utils.c: Fix comment typos. Follow spelling
16790 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
16793 2006-05-19 Nicolas Setton <setton@adacore.com>
16795 * misc.c (gnat_dwarf_name): New function.
16796 (LANG_HOOKS_DWARF_NAME): Define to it.
16798 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
16800 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
16801 (ada/misc.o): Likewise.
16802 (ada/utils.o): Likewise.
16804 2006-04-08 Aurelien Jarno <aurel32@debian.org>
16806 * Makefile.in: Add Ada support for GNU/kFreeBSD.
16807 * s-osinte-kfreebsd-gnu.ads: New file.
16809 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
16811 * Make-lang.in: Rename docdir to gcc_docdir.
16813 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
16815 * gigi.h (get_ada_base_type): Delete.
16816 * utils2.c (get_ada_base_type): Likewise.
16817 * trans.c (convert_with_check): Operate in the real base type.
16819 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16821 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
16823 2006-03-02 Richard Sandiford <richard@codesourcery.com>
16825 * utils.c (create_var_decl): Use have_global_bss_p when deciding
16826 whether to make the decl common.
16828 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
16830 * Make-lang.in (Ada): Remove.
16831 (.PHONY): Remove Ada
16833 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16835 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
16836 aggregate, check the interpretations of the other operand to find one
16837 that may be a boolean array.
16839 (Analyze_Selected_Component): Fix flow-of-control typo in case where
16840 the prefix is a private extension.
16842 2006-02-17 Eric Botcazou <botcazou@adacore.com>
16845 * utils2.c (find_common_type): If both input types are BLKmode and
16846 have the same constant size, keep using the first one.
16848 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
16850 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
16852 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
16854 2006-02-17 Jose Ruiz <ruiz@adacore.com>
16856 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
16857 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
16858 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
16859 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
16860 Abort_Defer/Undefer pairs to avoid the possibility of a task being
16861 aborted while owning a lock.
16863 2006-02-17 Javier Miranda <miranda@adacore.com>
16864 Robert Dewar <dewar@adacore.com>
16866 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
16867 through an access to class-wide interface we force the displacement of
16868 the pointer to the allocated object to reference the corresponding
16869 secondary dispatch table.
16870 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
16871 if Long_Shifts are supported on the target, even if 64 bit divides
16872 are not supported (configurable run time mode).
16873 (Expand_N_Type_Conversion): Do validity check if validity checks on
16874 operands are enabled.
16875 (Expand_N_Qualified_Expression): Do validity check if validity checks
16876 on operands are enabled.
16878 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16880 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
16881 must be materialized when the renamed expression is an explicit
16884 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16886 * freeze.adb (Statically_Discriminated_Components): Return false if
16887 the bounds of the type of the discriminant are not static expressions.
16889 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
16890 the bounds of the discriminant type are not static.
16892 2006-02-17 Robert Dewar <dewar@adacore.com>
16894 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
16895 then we close To if it is valid.
16897 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
16899 * init.c (facility_resignal_table): new array
16900 (__gnat_default_resignal_p): enhance default predicate to resignal if
16901 VMS condition has one of the predefined facility codes.
16903 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
16905 * Makefile.in: Use VMS64 specialized versions of several units in
16906 Interfaces.C hierarchy to be compatible with HP C default size choices.
16907 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
16909 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16911 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
16912 instantiation, the corresponding entity is the related_instance of the
16913 wrapper package created for the instance.
16915 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16917 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
16918 the current instance is nested within another instance in a child unit.
16920 2006-02-17 Javier Miranda <miranda@adacore.com>
16921 Ed Schonberg <schonberg@adacore.com>
16923 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
16924 type we cannot inherit the primitive operations; we inherit the
16925 Corresponding_Record_Type (which has the list of primitive operations).
16926 (Check_Anonymous_Access_Types): When creating anonymous access types for
16927 access components, use Rewrite in order to preserve the tree structure,
16929 (Analyze_Object_Declaration): For limited types with access
16930 discriminants with defaults initialized by an aggregate, obtain
16931 subtype from aggregate as for other mutable types.
16932 (Derived_Type_Declaration): If the derived type is a limited interface,
16933 set the corresponding flag (Is_Limited_Record is not sufficient).
16935 2006-02-17 Ed Schonberg <schonberg@adacore.com>
16937 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
16938 to inline a function that returns an unconstrained type, the return
16939 expression must be the first variable declared in the body of the
16942 2006-02-17 Javier Miranda <miranda@adacore.com>
16944 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
16945 abstract interface type, the static analysis is not enough to know if
16946 the interface is implemented or not by the source tagged type. Hence
16947 we must pass the work to the expander to generate the required code to
16948 evaluate the conversion at run-time.
16949 (Resolve_Equality_Op): Do not apply previous
16950 transformation if expansion is disasbled, to prevent anomalies when
16951 locating global references in a generic unit.
16953 2006-02-17 Vincent Celier <celier@adacore.com>
16955 * snames.ads, snames.adb: New standard names for new project attributes:
16956 archive_builder, archive_indexer, compiler_pic_option,
16957 config_body_file_name, config_body_file_name_pattern,
16958 config_file_switches, config_file_unique, config_spec_file_name,
16959 config_spec_file_name_pattern, default_builder_switches,
16960 default_global_compiler_switches, default_language,
16961 dependency_file_kind, global_compiler_switches, include_path,
16962 include_path_file, language_kind, linker_executable_option,
16963 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
16964 roots, runtime_project.
16966 2006-02-17 Matthew Heaney <heaney@adacore.com>
16968 * a-convec.ads, a-convec.adb:
16969 (operator "&"): handle potential overflow for large index types
16970 (Insert): removed Contraint_Error when using large index types
16971 (Insert_Space): removed Constraint_Error for large index types
16972 (Length): moved constraint check from Length to Insert
16974 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
16975 as not null access.
16976 Explicit raise statements now include an exception message.
16977 (operator "&"): handle potential overflow for large index types
16978 (Insert): removed Contraint_Error when using large index types
16979 (Insert_Space): removed Constraint_Error for large index types
16980 (Length): moved constraint check from Length to Insert
16982 2006-02-17 Robert Dewar <dewar@adacore.com>
16984 * s-wchcnv.adb: Document handling of [ on output (we do not change
16985 this to ["5B"] and the new comments say why not.
16988 Add note for -gnatVo that this now includes the cases of type
16989 conversions and qualified expressions.
16990 Add comments on handling of brackets encoding for Text_IO
16992 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
16993 Thomas Quinot <quinot@adacore.com>
16994 Robert Dewar <dewar@adacore.com>
16995 Javier Miranda <miranda@adacore.com>
16997 * expander.adb: Fix typo in comment
16999 * exp_pakd.adb: Fix typo
17000 Minor comment reformatting.
17002 * g-dyntab.adb: Minor reformatting
17004 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
17005 aliased subprograms to look for the abstract interface subprogram.
17007 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
17009 * env.c (__gnat_setenv): Use size_t.
17010 (__gnat_unsetenv): Likewise.
17011 (__gnat_clearenv): Likewise.
17013 2006-02-16 Arnaud Charlet <charlet@adacore.com>
17015 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
17017 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17019 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
17020 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
17021 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
17022 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
17023 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
17024 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
17025 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
17026 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
17027 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
17030 2006-02-13 Jose Ruiz <ruiz@adacore.com>
17032 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
17033 protection against race conditions is not needed.
17034 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
17036 (Set_Specific_Handler): Add mutual exclusive access to the specific
17038 (Specific_Handler): Add mutual exclusive access for retrieving the
17041 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
17044 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
17045 Fall_Back_Handler and Specific_Handler.
17047 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
17048 termination handlers.
17049 Set two different owerflow depending on the maximal stack size.
17051 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
17052 protection against race conditions is not needed when executing the
17053 task termination handler.
17055 2006-02-13 Robert Dewar <dewar@adacore.com>
17057 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
17058 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
17059 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
17060 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
17061 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
17062 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
17063 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
17064 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
17065 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
17066 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
17067 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
17068 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
17069 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
17070 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
17071 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
17072 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
17073 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
17074 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
17075 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
17076 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
17077 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
17078 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
17079 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
17080 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
17081 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
17082 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
17083 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
17084 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
17085 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
17086 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
17087 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
17088 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
17089 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
17090 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
17093 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
17095 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
17096 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
17097 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
17098 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
17099 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
17100 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
17101 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
17102 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
17103 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
17105 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17107 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
17108 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
17109 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
17110 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
17111 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
17112 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
17113 replaced by anonymous access type.
17114 (pthread_sigmask): Now take an access sigset_t
17116 * s-osinte-hpux.ads: Ditto.
17117 (pthread_mutex_t, pthread_cond_t): Update definitions to support
17118 properly 32 and 64 bit ABIs.
17120 2006-02-13 Pascal Obry <obry@adacore.com>
17122 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
17123 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
17124 s-taprop-linux.adb, s-taprop-solaris.adb,
17125 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
17126 adjustement is already done when calling this routine.
17128 2006-02-13 Pascal Obry <obry@adacore.com>
17130 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
17131 table to take advantage of the 16 priority levels available on Windows
17132 2000 and XP. On NT4 there are only 7 priority levels, this is properly
17133 supported by this new mapping.
17135 2006-02-13 Nicolas Setton <setton@adacore.com>
17137 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
17138 (get_encoding): New subprogram. Extracts the encodings from an encoded
17141 2006-02-13 Pascal Obry <obry@adacore.com>
17142 Nicolas Roche <roche@adacore.com>
17143 Arnaud Charlet <charlet@adacore.com>
17145 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
17147 (__gnat_try_lock): Add unicode support by using a specific section on
17149 (__gnat_get_current_dir): Idem.
17150 (__gnat_open_read): Idem.
17151 (__gnat_open_rw): Idem.
17152 (__gnat_open_create): Idem.
17153 (__gnat_create_output_file): Idem.
17154 (__gnat_open_append): Idem.
17155 (__gnat_open_new): Idem.
17156 (__gnat_file_time_name): Idem.
17157 (__gnat_set_file_time_name): Idem.
17158 (__gnat_stat): Idem.
17159 (win32_no_block_spawn): Idem.
17160 (__gnat_locate_exec_on_path): Idem.
17161 (__gnat_opendir): New routine.
17162 (__gnat_closedir): Idem.
17163 (__gnat_readdir): Add new parameter length (pointer to int). Update
17164 implementation to use it and add specific Win32 code for Unicode
17166 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
17167 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
17168 (convert_addresses): Do not define this dummy routine on VMS.
17170 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
17171 runtime Unicode support will be activated.
17172 (S2WS): String to Wide-String conversion. This version just copy a
17173 string in non Unicode version.
17174 (WS2S): Wide-String to String conversion. This version just copy a
17175 string in non Unicode version.
17177 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
17178 (Open): Now import __gnat_opendir from adaint.c.
17179 (Read): Change the implementation to support unicode characters. It is
17180 not possible to use strlen() on Windows as this version supports only
17181 standard ASCII characters. So the length of the directory entry is now
17182 returned from the imported __gnat_readdir routine.
17183 Update copyright notice.
17185 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
17186 (opendir): Moved to adaint.c.
17188 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
17189 (Get_Directory): Fix wrong indexing.
17190 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
17191 __gnat_getenv from env.c
17192 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
17195 * env.h, env.c: New file.
17197 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
17198 adaint.c by __gnat_getenv from env.c
17200 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
17201 adaint.c by __gnat_getenv from env.c
17203 * Make-lang.in: Add env.o in the list of C object needed by gnat1
17205 Update dependencies.
17207 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17208 Olivier Hainque <hainque@adacore.com>
17209 Eric Botcazou <ebotcazou@adacore.com>
17211 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
17213 * gigi.h (value_factor_p): Add prototype and description, now public.
17215 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
17216 promotion for field with rep clause if the associated size was proven
17218 Expand comments describing attempts to use a packable type.
17219 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
17220 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
17221 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
17222 necessary since these are not different types and pointers may
17223 actually designate any subtype in this hierarchy.
17224 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
17225 discriminants but put them into record only if not Unchecked_Union;
17226 pass flag to components_to_record showing Unchecked_Union.
17227 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
17228 components before variants; don't set TYPE_UNCHECKED_UNION_P.
17229 (components_to_record): New argument UNCHECKED_UNION.
17230 Remove special case code for Unchecked_Union and instead use main code
17231 with small changes.
17234 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
17235 variable with the expression being built, only its inner field.
17237 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
17238 emit_sequence_entry_statements.
17239 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
17240 (establish_gnat_vms_condition_handler): Move before
17241 Subprogram_Body_to_gnu.
17242 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
17243 for a subprogram if it has a foreign convention or is exported.
17244 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
17245 substituted for a CONST_DECL.
17246 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
17247 Etype to assoc_to_constructor.
17248 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
17249 discriminants of Unchecked_Union.
17250 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
17251 don't need cluttering preprocessor directives.
17252 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
17253 condition handler as current in the compiled function.
17254 (body_with_handlers_p): New function. Tell whether a given sequence of
17255 statements node is attached to a package or subprogram body and involves
17256 exception handlers possibly nested within inner block statements.
17257 (emit_sequence_entry_statements): New function, to emit special
17258 statements on entry of sequences when necessary. Establish GNAT
17259 condition handler in the proper cases for VMS.
17260 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
17261 emit_sequence_entry_statements.
17263 * utils2.c (find_common_type): If both input types are BLKmode and
17264 have a constant size, use the smaller one.
17265 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
17268 * utils.c (value_factor_p): Make public, to allow uses from other gigi
17270 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
17271 (convert, case UNION_TYPE): Remove special treatment for unchecked
17275 (update_pointer_to): Update variants of pointer types to unconstrained
17276 arrays by attaching the list of fields of the main variant.
17278 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17279 Robert Dewar <dewar@adacore.com>
17281 * a-exexpr.adb, a-exexpr-gcc.adb
17282 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
17283 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
17284 Remove code unused for exception propagation for the compiler itself
17285 from a-except.adb and update to still share separate packages.
17287 * a-except.ads, a-except.adb: Ditto.
17288 Add comments that this version is now used only by the compiler and
17289 other basic tools. The full version that includes the Ada 2005 stuff
17290 is in separate files a-except-2005.ads/adb. The reason is that we do
17291 not want to cause bootstrap problems with compilers not recognizing
17293 Add exception reason code PE_Implicit_Return
17294 Add new exception reason code (Null Exception_Id)
17296 * a-except-2005.adb, a-except-2005.ads: New files.
17298 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
17300 * s-wchcon.adb: New file.
17302 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
17303 (traceback.o deps): Likewise.
17304 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
17305 Activate build of GMEM instrumentation library on VMS targets.
17306 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
17307 Use a-except-2005.ads/adb for all run-time library builds unless
17308 specified otherwise.
17309 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
17310 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
17311 Use s-parame.adb on all native platforms.
17312 Use s-parame-vxworks.adb on all vxworks platforms.
17313 Add env.c env.h in LIBGNAT_SRCS
17314 Add env.o in LIBGNAT_OBJS
17315 (GNATMAKE_OBJS): Remove ctrl_c.o object.
17316 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
17317 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17318 supports VxWorks 6 RTPs.
17319 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
17320 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17322 * types.h, types.ads (Terminate_Program): New exception
17323 Add comment on modifying multiple versions of a-except.adb when the
17324 table of exception reasons is modified.
17325 Add exception reason code PE_Implicit_Return
17326 Add new exception reason code (Null Exception_Id)
17328 * clean.adb (Initialize): Get the target parameters before checking
17329 if target is OpenVMS. Move the OpenVMS specific code here from package
17330 body elaboration code.
17332 2006-02-13 Thomas Quinot <quinot@adacore.com>
17333 Vincent Celier <celier@adacore.com>
17334 Robert Dewar <dewar@adacore.com>
17336 * ali-util.adb (Get_File_Checksum): Update to account for change in
17337 profile of Initialize_Scanner.
17339 * gprep.adb (Gnatprep): Update to account for change in profile of
17340 Initialize_Scanner.
17341 (Process_One_File): Same.
17343 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
17344 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
17345 that behaviour using the new Unit information recorded in the source
17346 files table, rather than going through all units every time.
17347 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
17348 (Get_Source_Unit): Same.
17350 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
17351 change in profile of Initialize_Scanner.
17352 (Prepare_To_Preprocess): Same.
17354 * lib.ads: Fix typo in comment (templace -> template).
17356 * prj-part.adb (Parse_Single_Project): Update to account for change in
17357 profile of Initialize_Scanner.
17359 * scn.adb (Initialize_Scanner): Account for change in profile of
17360 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
17361 Also record the association of the given Source_File_Index to the
17362 corresponding Unit_Number_Type.
17364 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
17366 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
17367 Remove Unit formal for generic scanner: this formal
17368 is only relevant to Scn (the scanner instance used to parse Ada source
17369 files), not to other instances. Update comment accordingly.
17370 (Scan): Use new function Snames.Is_Keyword_Name.
17372 * sinfo-cn.adb: Fix typo in comment.
17374 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
17377 * sinput.ads (Source_File_Record): New component Unit, used to capture
17378 the unit identifier (if any) associated to a source file.
17380 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
17381 Unit in Source_File_Record.
17383 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
17384 in profile of Initialize_Scanner.
17386 * scans.adb (Initialize_Ada_Keywords): New procedure
17388 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
17389 Ada keywords in the Namet table, without the need to call
17390 Initialize_Scanner.
17392 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
17393 (Is_Keyword_Name): New function
17395 * snames.ads: Add subtype Configuration_Pragma_Names
17396 Add pragma Ada_2005 (synonym for Ada_05)
17397 (Is_Keyword_Name): New function
17399 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
17401 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17403 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
17406 * a-stwima.adb (To_Set): Add extra check when N = 0.
17408 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
17410 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17412 * s-parame-mingw.adb, s-parame-linux.adb,
17413 s-parame-solaris.adb: Removed, replaced by s-parame.adb
17415 * s-parame-vxworks.ads: Fix typo.
17417 * s-parame-vxworks.adb: New file.
17419 * s-parame.adb: Version now used by all native platforms.
17420 (Default_Stack_Size): Use 2 megs for default stack size and use
17421 __gl_default_stack_size when available.
17422 (Minimum_Stack_Size): Use 12K.
17424 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
17425 (Create_Task): Refine implementation taking advantage of the XP stack
17426 size support. On XP, we now create the thread using the flag
17427 STACK_SIZE_PARAM_IS_A_RESERVATION.
17429 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
17431 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
17432 XP and 0 on older Windows versions.
17434 * interfac-vms.ads: Removed, no longer used.
17436 2006-02-13 Matthew Heaney <heaney@adacore.com>
17438 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
17439 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
17440 a-cohase.adb: All explicit raise statements now include an exception
17443 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
17444 (Update_Element_Preserving_Key): renamed op to just Update_Element.
17445 Explicit raise statements now include an exception message
17447 * a-cihase.ads, a-cohase.ads: Removed comment.
17449 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
17450 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
17451 a-szbzha.adb, a-szfzha.ads: New files.
17453 2006-02-13 Matthew Heaney <heaney@adacore.com>
17455 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
17458 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
17460 * lang.opt: Wvariadic-macros: New option.
17461 Wold-style-definition: Likewise.
17462 Wmissing-format-attribute: Likewise.
17464 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
17465 -Wold-style-definition and -Wmissing-format-attribute.
17467 2006-02-13 Robert Dewar <dewar@adacore.com>
17469 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
17471 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
17473 2006-02-13 Nicolas Roche <roche@adacore.com>
17475 * a-envvar.adb, a-envvar.ads: New files.
17477 2006-02-13 Douglas Rupp <rupp@adacore.com>
17479 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
17481 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
17483 2006-02-13 Pat Rogers <rogers@adacore.com>
17485 * a-rttiev.adb, a-rttiev.ads: New files.
17487 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
17489 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
17490 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
17492 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
17494 2006-02-13 Robert Dewar <dewar@adacore.com>
17496 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
17497 sem_case.adb: Minor code reorganization (not Present should be No)
17499 2006-02-13 Geert Bosch <bosch@adacore.com>
17500 Gary Dismukes <dismukes@adacore.com>
17502 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
17503 0, since the lower bound of the actual string may be greater than one.
17506 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
17507 layout is requested.
17509 2006-02-13 Vincent Celier <celier@adacore.com>
17511 * back_end.adb (Scan_Compiler_Arguments): Check if
17512 Search_Directory_Present is True and, if it is, add the argument in
17513 the source search directory path.
17515 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
17516 Search_Directory_Present to True.
17518 2006-02-13 Joel Brobecker <brobecke@adacore.com>
17520 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
17521 volatile, to tell the compiler to preserve this variable at any level
17523 (Gen_Versions_Ada): Temporarily work around codegen bug.
17525 2006-02-13 Vincent Celier <celier@adacore.com>
17527 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
17528 gcc to link with option -shared-libgcc.
17529 (Gnatlink): Remove duplicate switches -shared-libgcc
17531 2006-02-13 Robert Dewar <dewar@adacore.com>
17533 * gnatvsn.ads (Current_Year): New constant, used to easily update
17534 copyright on all GNAT tools.
17536 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
17539 2006-02-13 Robert Dewar <dewar@adacore.com>
17541 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
17542 after hyphen (small aesthetic change useful for a range of numbers
17544 Suppress range checks for a couple of assignments which otherwise
17545 cause validity checks with validity checking turned on.
17547 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
17548 Improvement in error message for object.
17549 (Rep_Item_Too_Late): Remove '!' in warning message.
17551 2006-02-13 Robert Dewar <dewar@adacore.com>
17552 Eric Botcazou <ebotcazou@adacore.com>
17554 * err_vars.ads: Suppress range checks for a couple of assignments
17555 which otherwise cause validity checks with validity checking turned on.
17558 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
17559 Make message unconditional if it is a warning.
17560 (Error_Msg_NEL): Always output warning messages.
17561 Suppress range checks for a couple of assignments which otherwise
17562 cause validity checks with validity checking turned on.
17564 * errout.ads (Message Insertion Characters): Document that '!' is
17565 implied by '?' in error messages.
17567 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
17568 (Gnat1drv): Use a goto to end of main subprogram instead of
17569 Exit_Program (E_Success) so that finalization can occur normally.
17571 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
17573 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
17576 2006-02-13 Vincent Celier <celier@adacore.com>
17578 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
17579 Unchecked_Conversion functions.
17580 (Modification_Time): Use direct conversion of OS_Time to Calendar time
17581 when OpenVMS returns False.
17583 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
17584 a-dirval.adb (OpenVMS): New Boolean function
17586 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17587 Thomas Quinot <quinot@adacore.com>
17589 * checks.adb (Build_Discriminant_Checks): If the expression being
17590 checks is an aggregate retrieve the values of its discriminants to
17591 generate the check, rather than creating a temporary and a reference
17593 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
17594 (Install_Null_Excluding_Check): Ditto
17595 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
17596 not for the renamed object, so that the actual itype is attached in the
17599 2006-02-13 Robert Dewar <dewar@adacore.com>
17600 Vincent Celier <celier@adacore.com>
17602 * debug.adb: Eliminate numeric switches for binder/gnatmake
17604 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
17605 switches for the compiler.
17606 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
17607 (Scan_Make_Switches): When failing with an illegal switch, output an
17608 error message with the full switch.
17609 Eliminate numeric switches for binder/gnatmake
17611 * switch.ads, switch.adb (Bad_Switch): New procedure
17613 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
17614 Remove 0-9 as debug flag character possibilities
17615 -d is now controlling the primary stack size when its value is a
17616 positive. Also add checks against invalid values, and support for kb,
17617 mb. Ditto for -D switch.
17619 2006-02-13 Robert Dewar <dewar@adacore.com>
17620 Serguei Rybin <rybin@adacore.com>
17622 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
17623 save/restore routines.
17624 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17625 were not always properly handled previously.
17626 Since we are changing the tree format anyway, also get rid of the
17627 junk obsolete Immediate_Errors flag.
17628 (Tree_Read): Change the way of reading Tree_Version_String - now we
17629 read the version string from the tree even if its length is not the
17630 same as the length of the version string computed from Gnatvsn.
17631 (Search_Directory_Present): New Boolean flag for the compiler.
17632 Define Tree_Version_String as a dynamic string.
17633 (Default_Stack_Size): new variable, used to handle switch -d.
17636 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
17637 only for main unit.
17638 Add pragma Ada_2005 (synonym for Ada_05)
17639 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
17640 were not always properly handled previously.
17642 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
17643 explicit Ada_95 to Ada_2005.
17645 2006-02-13 Javier Miranda <miranda@adacore.com>
17646 Robert Dewar <dewar@adacore.com>
17647 Ed Schonberg <schonberg@adacore.com>
17649 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
17650 against errors in the source program: a private types for which the
17651 corresponding full type declaration is missing and pragma CPP_Virtual
17653 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
17654 (Is_Known_Null): New flag
17655 (Has_Pragma_Pure): New flag
17656 (No_Return): Present in all entities, set only for procedures
17657 (Is_Limited_Type): A type whose ancestor is an interface is limited if
17658 explicitly declared limited.
17659 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
17660 entities. Only used for component marked Is_Tag. If present it stores
17661 the Offset_To_Top function used to provide this value in tagged types
17662 whose ancestor has discriminants.
17664 * exp_ch2.adb: Update status of new Is_Known_Null flag
17666 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
17668 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
17669 the categorization sense if Is_Pure was set by pragma Pure_Function.
17671 2006-02-13 Quentin Ochem <ochem@adacore.com>
17672 Olivier Hainque <hainque@adacore.com>
17674 * bindusg.adb: Updated documentation for -d and -D switches.
17676 * raise.h (__gnat_set_globals): added new parameter for
17677 Default_Stack_Size.
17679 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
17680 (__gnat_handle_vms_condition): Adjust context before raise.
17681 (__gnat_install_handler): Restore the global vector setup for GCC
17682 versions before 3.4, as the frame based circtuitry is not available
17684 (__gnat_set_globals): added a parameter default_stack_size
17685 (__gl_default_stack_size): new variable.
17687 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17689 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
17690 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
17691 does not exist in the Ada RM.
17692 (Compatible_Int_Bounds): Determine whether two integer range bounds
17693 are of equal length and have the same start and end values.
17694 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
17695 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
17696 aggregate when it is part of an object declaration.
17697 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
17698 constrains discriminants of its parent, add explicitly the discriminant
17699 constraints of the ancestor by retrieving them from the
17700 stored_constraint of the parent.
17702 2006-02-13 Robert Dewar <dewar@adacore.com>
17704 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
17705 attribute Mechanism_Code is applied to renamed subprogram, modify
17706 prefix to point to base subprogram.
17707 Max/Min attributes now violate Restriction No_Implicit_Conditionals
17709 * sinfo.ads: Document that Mechanism_Code cannot be applied to
17710 renamed subprograms so that the front-end must replace the prefix
17713 2006-02-13 Javier Miranda <miranda@adacore.com>
17714 Gary Dismukes <dismukes@adacore.com>
17716 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
17717 availability of RE_Interface_Tag.
17718 (Build_Initialization_Call): Fix wrong access to the discriminant value.
17719 (Freeze_Record_Type): Do not generate the tables associated with
17720 timed and conditional dispatching calls through synchronized
17721 interfaces if compiling under No_Dispatching_Calls restriction.
17722 When compiling for Ada 2005, for a nonabstract
17723 type with a null extension, call Make_Controlling_Function_Wrappers
17724 and insert the wrapper function declarations and bodies (the latter
17725 being appended as freeze actions).
17726 (Predefined_Primitive_Bodies): Do not generate the bodies of the
17727 predefined primitives associated with timed and conditional
17728 dispatching calls through synchronized interfaces if we are
17729 compiling under No_Dispatching_Calls.
17730 (Build_Init_Procedure): Use RTE_Available to check if a run-time
17731 service is available before generating a call.
17732 (Make_Controlling_Function_Wrappers): New procedure.
17733 (Expand_N_Full_Type_Declaration): Create a class-wide master for
17734 access-to-limited-interfaces because they can be used to reference
17735 tasks that implement such limited interface.
17736 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
17737 procedure spec and body of the Offset_To_Top function that is generated
17738 when the parent of a type with discriminants has secondary dispatch
17740 (Init_Secondary_Tags): Handle the case in which the parent of the type
17741 containing secondary dispatch tables has discriminants to generate the
17742 correct arguments to call Set_Offset_To_Top.
17743 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
17745 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
17746 Add Wide_[Wide_]Expanded_Name.
17747 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
17748 the same functionality of Get_Prim_Op_Address but applied to predefined
17749 primitive operations because the pointers to the predefined primitives
17750 are now saved in a separate table.
17751 (Parent_Size): Modified to get access to the separate table of primitive
17752 operations or the parent type.
17753 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
17754 functionality of Set_Prim_Op_Address but applied to predefined primitive
17756 (Set_Signature): New subprogram used to store the signature of a DT.
17757 (Displace): If the Offset_To_Top value is not static then call the
17758 function generated by the expander to get such value; otherwise use
17759 the value stored in the table of interfaces.
17760 (Offset_To_Top): The type of the actual has been changed to Address to
17761 give the correct support to tagged types with discriminants. In this
17762 case this value is stored just immediately after the tag field.
17763 (Set_Offset_To_Top): Two new formals have been added to indicate if the
17764 offset_to_top value is static and hence pass this value to the run-time
17765 to store it in the table of interfaces, or else if this value is dynamic
17766 and then pass to the run-time the address of a function that is
17767 generated by the expander to provide this value for each object of the
17770 * rtsfind.ads (Default_Prin_Op_Count): Removed.
17771 (Default_Prim_Op_Count): New entity
17772 (Get_Predefined_Prim_Op_Address): New entity
17773 (Set_Predefined_Prim_Op_Address): New entity
17774 (RE_Set_Signature): New entity
17776 2006-02-13 Thomas Quinot <quinot@adacore.com>
17777 Ed Schonberg <schonberg@adacore.com>
17779 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
17780 Make_Adjust_Call done for a newly-allocated object.
17782 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
17783 in a subprogram are wrapped in a cleanup block, indicate that the
17784 subprogram contains an inner block with an exception handler.
17785 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
17786 Adjust call is for a newly-allocated object. In that case we must not
17787 assume that the finalization list chain pointers are correct (since they
17788 come from a bit-for-bit copy of the original object's pointers) so if
17789 the attach level would otherwise be zero (no change), we set it to 4
17790 instead to cause the pointers to be reset to null.
17792 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
17793 reset chain pointers to null.
17795 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17797 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
17798 string, and the context requires a loop for the assignment (e.g.
17799 because the left-hand side is packed), generate a unique name for the
17800 temporary that holds the string, to prevent spurious name clashes.
17802 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17803 Javier Miranda <miranda@adacore.com>
17804 Robert Dewar <dewar@adacore.com>
17805 Gary Dismukes <dismukes@adacore.com>
17807 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
17808 return unconstrained arrays.
17810 (Expand_Call): An indirect call through an access parameter of a
17811 protected operation is not a protected call.
17812 Add circuit to raise CE in Ada 2005 mode following call
17813 to Raise_Exception.
17814 (Register_DT_Entry): Do nothing if
17815 the run-time does not give support to abstract interfaces.
17816 (Freeze_Subprogram): In case of dispatching operations, do not generate
17817 code to register the operation in the dispatch table if the source
17818 is compiled with No_Dispatching_Calls.
17819 (Register_Predefined_DT_Entry): Generate code that calls the new
17820 run-time subprogram Set_Predefined_Prim_Op_Address instead of
17821 Set_Prim_Op_Address.
17823 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
17824 on array assignments if the right-hand side is a function call that has
17825 been inlined. Check is performed on the assignment in the block.
17826 (Process_Bounds): If bounds and range are overloaded, apply preference
17827 rule for root operations to disambiguate, and diagnose true ambiguity.
17828 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
17829 a tag-indeterminate right-hand side even when Expander_Active is True.
17830 Needed to ensure that dispatching calls to T'Input are allowed and
17831 get the tag of the target class-wide object.
17833 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
17834 an inherited primitive operation that already overrides several
17835 abstract interface primitives. For transitivity, the new entity must
17836 also override all the abstract interface primitives covered by the
17837 inherited overriden primitive.
17838 Emit warning if new entity differs from homograph in same scope only in
17839 that one has an access parameter and the other one has a parameter of
17840 a general access type with the same designated type, at the same
17841 position in the signature.
17842 (Make_Inequality_Operator): Use source locations of parameters and
17843 subtype marks from corresponding equality operator when creating the
17844 tree structure for the implicit declaration of "/=". This does not
17845 change anything in behaviour except that the decoration of the
17846 components of the subtree created for "/=" allows ASIS to get the
17847 string images of the corresponding identifiers.
17848 (Analyze_Return_Statement): Remove '!' in warning message.
17849 (Check_Statement_Sequence): Likewise.
17850 (Analyze_Subprogram_Body): For an access parameter whose designated type
17851 is an incomplete type imported through a limited_with clause, use the
17852 type of the corresponding formal in the body.
17853 (Check_Returns): Implicit return in No_Return procedure now raises
17854 Program_Error with a compile time warning, instead of beging illegal.
17855 (Has_Single_Return): Function returning unconstrained type cannot be
17856 inlined if expression in unique return statement is not an identifier.
17857 (Build_Body_To_Inline): It is possible to inline a function call that
17858 returns an unconstrained type if all return statements in the function
17859 return the same local variable. Subsidiary procedure Has_Single_Return
17860 verifies that the body conforms to this restriction.
17862 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
17863 same type, and one of them is of an anonymous access type, convert
17864 the other operand to it, so that this is a valid binary operation for
17866 (Resolve_Type_Conversion): Handle subtypes of protected types and
17867 task types when accessing to the corresponding record type.
17868 (Resolve_Allocator): Add '\' in 2-line warning message.
17869 Remove '!' in warning message.
17870 (Resolve_Call): Add '\' in 2-line warning message.
17871 (Valid_Conversion): Likewise.
17872 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
17873 resulting type may be an access type with an implicit dereference.
17874 Obtain the proper component from the designated type.
17875 (Make_Call_Into_Operator): Handle properly a call to predefined equality
17876 given by an expanded name with prefix Standard, when the operands are
17877 of an anonymous access type.
17878 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
17879 Explicit_Dereference and Resolve_Selected_Component, to verify that the
17880 prefix of the expression is not of an incomplete type. Allows full
17881 diagnoses of all semantic errors.
17882 (Resolve_Actuals): If the actual is an allocator whose directly
17883 designated type is a class-wide interface we build an anonymous
17884 access type to use it as the type of the allocator. Later, when
17885 the subprogram call is expanded, if the interface has a secondary
17886 dispatch table the expander will add a type conversion to force
17887 the displacement of the pointer.
17888 (Resolve_Call): If a function that returns an unconstrained type is
17889 marked Inlined_Always and inlined, the call will be inlined and does
17890 not require the creation of a transient scope.
17891 (Check_Direct_Boolean_Op): Removed
17892 (Resolve_Comparison_Op): Remove call to above
17893 (Resolve_Equality_Op): Remove call to above
17894 (Resolve_Logical_Op): Inline above, since this is only call.
17895 (Valid_Conversion): Handle properly conversions between arrays of
17896 convertible anonymous access types.
17899 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
17900 the literal in an unchecked conversion, because GCC 4.x needs a static
17901 value for a string bound.
17903 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17904 Hristian Kirtchev <kirtchev@adacore.com>
17906 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
17907 components of the corresponding record, take into account component
17908 definitions that are access definitions.
17909 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
17910 procedure is not considered a dispatching call and will be expanded
17913 2006-02-13 Javier Miranda <miranda@adacore.com>
17915 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
17916 controlling argument of the dispatching call is an abstract interface
17917 class-wide type then we use it directly.
17918 Check No_Dispatching_Calls restriction.
17919 (Default_Prim_Op_Position): Remove the code that looks for the last
17920 entity in the list of aliased subprograms. This code was wrong in
17922 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
17923 when the source is compiled with the No_Dispatching_Calls restriction.
17924 (Init_Predefined_Interface_Primitives): No need to inherit primitives
17925 if we are compiling with restriction No_Dispatching_Calls.
17926 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
17927 subprograms if we are compiling under No_Dispatching_Calls restriction.
17928 (Make_DT): Generate a dispatch table with a single dummy entry if
17929 we are compiling with the No_Dispatching_Calls restriction. In
17930 addition, in this case we don't generate code that calls to the
17931 following run-time subprograms: Set_Type_Kind, Inherit_DT.
17932 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
17933 of this subprogram if compiling with the No_Dispatching_Calls
17935 (Expand_Type_Conversion): Instead of using the actual parameter,
17936 the argument passed as parameter to the conversion function was
17937 erroneously referenced by the expander.
17938 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
17939 Set_Predefined_Primitive_Op_Address and Set_Signature.
17940 (Expand_Dispatching_Call): Generate call to
17941 Get_Predefined_Prim_Op_Address for predefined primitives.
17942 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
17943 predefined primitives.
17944 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
17945 primitives we reserve one dummy entry to ensure that the tag does not
17946 point to some memory that is associated with some other object. In
17947 addition, remove all the old code that generated the assignments
17948 associated with the signature of the dispatch table and replace them
17949 by a call to the new subprogram Set_Signature.
17950 (Set_All_DT_Position): Change the algorithm because now we have a
17951 separate dispatch table associated with predefined primitive operations.
17952 (Expand_Interface_Conversion): In case of non-static offset_to_top
17953 add explicit dereference to get access to the object after the call
17954 to displace the pointer to the object.
17955 (Expand_Interface_Thunk): Modify the generation of the actual used
17956 in the calls to the run-time function Offset_To_Top to fulfil its
17958 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
17960 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17962 * exp_dist.adb (Copy_Specification): For access parameters, copy
17963 Null_Exclusion flag, which will have been set for stream subprograms
17966 2006-02-13 Pascal Obry <obry@adacore.com>
17968 * expect.c (__gnat_expect_portable_execvp): New implementation. The
17969 previous implementation was using the C runtime spawnve routine but
17970 the corresponding wait was using directly the Win32 API. This was
17971 causing some times a lock when waiting for an event using
17972 WaitForSingleObject in __gnat_waitpid. This new implementation uses
17973 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
17974 API fixes this problem.
17976 2006-02-13 Robert Dewar <dewar@adacore.com>
17978 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
17981 2006-02-13 Thomas Quinot <quinot@adacore.com>
17983 * exp_pakd.ads: Fix typos in comments.
17985 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
17986 array reference that is an explicit dereference, mark the converted
17987 (packed) array reference as analyzed to prevent a forthcoming
17988 reanalysis from resetting its type to the original (non-packed) array
17991 2006-02-13 Ed Schonberg <schonberg@adacore.com>
17992 Javier Miranda <miranda@adacore.com>
17993 Eric Botcazou <ebotcazou@adacore.com>
17995 * exp_util.ads, exp_util.adb (Find_Prim_Op,
17996 Is_Predefined_Primitive_Operation): When
17997 searching for the predefined equality operator, verify that operands
17998 have the same type.
17999 (Is_Predefined_Dispatching_Operation): Remove the code that looks
18000 for the last entity in the list of aliased subprograms. This code
18001 was wrong in case of renamings.
18002 (Set_Renamed_Subprogram): New procedure
18003 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
18004 Exp_Type constant computed when entering this subprogram.
18005 (Known_Null): New function
18006 (OK_To_Do_Constant_Replacement): New function
18007 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
18008 (Side_Effect_Free): An attribute reference 'Input is not free of
18009 side effect, unlike other attributes that are functions. (from code
18011 (Remove_Side_Effects): Expressions that involve packed arrays or records
18012 are copied at the point of reference, and therefore must be marked as
18013 renamings of objects.
18014 (Is_Predefined_Dispatching_Operation): Return false if the operation is
18015 not a dispatching operation.
18018 (Remove_Side_Effects): Lift enclosing type conversion nodes for
18019 elementary types in all cases.
18021 2006-02-13 Javier Miranda <miranda@adacore.com>
18023 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
18024 task types when accessing to the corresponding record type.
18025 Remove '!' in warning message.
18027 2006-02-13 Olivier Hainque <hainque@adacore.com>
18029 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
18030 to avoid useless and space inefficient overalignments on targets where
18031 Max_Alignment is larger than 16.
18033 2006-02-13 Pascal Obry <obry@adacore.com>
18035 * g-catiio.adb (Sec_Number): New type used to compute the number of
18036 seconds since 1-1-1970.
18037 (Image) [Natural]: The parameter was an Integer, as we can't deal with
18038 negative numbers (years, months...) it is better to have a Natural here.
18040 (Image) [Number]: Change parameter from Long_Integer to Number.
18041 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
18042 overflow for dates past year 2038.
18044 2006-02-13 Matthew Heaney <heaney@adacore.com>
18046 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
18049 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18051 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
18053 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
18054 finalization can occur normally.
18056 2006-02-13 Vincent Celier <celier@adacore.com>
18058 * gnatcmd.adb (Rules_Switches): New table
18059 (Add_To_Rules_Switches): New procedure
18060 (GNATCmd): For command CHECK, put all options following "-rules" in the
18061 Rules_Switches table. Append these -rules switches after the -cargs
18064 2006-02-13 Robert Dewar <dewar@adacore.com>
18066 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
18067 These two cases were generating incorrect output, and if this unit
18068 was built with checks on, generated a discriminant mismatch constraint
18071 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18072 Robert Dewar <dewar@adacore.com>
18074 * lib-xref.adb (Get_Type_Reference): For a private type whose full
18075 view is an array type, indicate the component type as well, for
18076 navigation purposes.
18077 (Generate_Reference): Don't consider array ref on LHS to be a case
18078 of violating pragma Unreferenced.
18079 Do not give Ada 2005 warning except on real reference.
18081 2006-02-13 Vincent Celier <celier@adacore.com>
18083 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
18084 main source, add switch -mdebug-main=_ada_ so that the executable can
18085 be debugged by the standard VMS debugger.
18086 (Gnatmake): Set No_Main_Subprogram to True when there is no main
18087 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
18088 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
18089 of the last source, as the binding and linking phases are never
18091 Set all executable obsolete when rebuilding a library.
18093 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
18096 2006-02-13 Javier Miranda <miranda@adacore.com>
18099 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
18100 code to improve the error message reported when the program has
18101 declarations of abstract interface types and it is not compiled with
18102 the -gnat05 switch.
18103 (P_Access_Definition): Reorganize the code to improve the error
18104 message reported when the new Ada 2005 syntax for anonymous
18105 access types is used and the program is not compiled with the
18108 2006-02-13 Robert Dewar <dewar@adacore.com>
18110 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
18111 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
18114 2006-02-13 Javier Miranda <miranda@adacore.com>
18116 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
18117 against source containing syntax errors.
18119 2006-02-13 Vincent Celier <celier@adacore.com>
18121 * prj.adb (Reset): Initialize the first element of table Namings with
18122 the standard naming data.
18124 2006-02-13 Vincent Celier <celier@adacore.com>
18126 * prj.ads (Error_Warning): New enumeration type
18128 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
18129 unknown, use the location of the project to report the error.
18130 (When_No_Sources): New global variable
18131 (Report_No_Ada_Sources): New procedure
18132 (Check): New parameter When_No_Sources. Set value of global variable
18134 (Find_Sources): Call Report_No_Ada_Sources when appropriate
18135 (Get_Sources_From_File): Ditto
18136 (Warn_If_Not_Sources): Better warning messages indicating the unit name
18139 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
18140 Call Prj.Proc.Process with parameter When_No_Sources.
18142 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
18143 Call Recursive_Check with parameter When_No_Sources.
18144 (Recursive_Check): New parameter When_No_Sources. Call itself and
18145 Prj.Nmsc.Check with parameter When_No_Sources.
18146 (Process): New parameter When_No_Sources. Call Check with parameter
18148 (Copy_Package_Declarations): New procedure to copy renamed parameters
18149 and setting the location of the declared attributes to the location
18150 of the renamed package.
18151 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
18154 2006-02-13 Vincent Celier <celier@adacore.com>
18156 * prj-makr.adb (Make): Preserve the comments from the original project
18158 When removing nodes (attributes Source_Dirs, Source_Files,
18159 Source_List_File and package Naming), save the comments and attach the
18160 saved comments to the newly created nodes.
18161 Do not add a with clause for the naming package if one already exists.
18163 2006-02-13 Javier Miranda <miranda@adacore.com>
18164 Gary Dismukes <dismukes@adacore.com>
18165 Robert Dewar <dewar@adacore.com>
18167 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
18169 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
18170 aliased entities to look for the overriden abstract interface
18172 (Is_Interface_Subprogram): Complete documentation.
18173 (Check_Dispatching_Operation): Do not generate code to register the
18174 operation in the dispatch table if the source is compiled with
18175 restriction No_Dispatching_Calls.
18176 (Override_Dispatching_Operation): Check for illegal attempt to override
18177 No_Return procedure with procedure that is not No_Return
18178 (Check_Dispatching_Call): Suppress the check for an abstract operation
18179 when the original node of an actual is a tag-indeterminate attribute
18180 call, since the attribute, which must be 'Input, can never be abstract.
18181 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
18182 call to the Input attribute (even when rewritten).
18183 (Propagate_Tag): Augment comment to indicate the possibility of a call
18184 to an Input attribute.
18186 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
18187 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
18189 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
18190 No_Wide_Characters is no longer partition-wide
18191 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
18194 2006-02-13 Douglas Rupp <rupp@adacore.com>
18196 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
18198 2006-02-13 Javier Miranda <miranda@adacore.com>
18200 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
18201 handles default-initialized components to keep separate the management
18202 of this feature but also avoid the unrequired resolution and
18203 expansion of components that do not have partially initialized
18205 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
18206 (Check_Bounds): Likewise.
18207 (Check_Length): Likewise.
18209 2006-02-13 Javier Miranda <miranda@adacore.com>
18210 Ed Schonberg <schonberg@adacore.com>
18212 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
18213 abstract interface type call analyze_and_resolve to expand the type
18214 conversion into the corresponding displacement of the
18215 reference to the base of the object.
18216 (Eval_Attribute, case Width): For systems where IEEE extended precision
18217 is supported, the maximum exponent occupies 4 decimal digits.
18218 (Accessibility_Message): Add '\' in 2-line warning message.
18219 (Resolve_Attribute): Likewise.
18220 (case Attribute_Access): Significantly revise checks
18221 for illegal access-to-subprogram Access attributes to properly enforce
18222 the rules of 3.10.2(32/2).
18223 Diagnose use of current instance with an illegal attribute.
18225 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
18227 (Enclosing_Generic_Unit): New function to return a node's innermost
18228 enclosing generic declaration node.
18229 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
18230 (Type_Access_Level): The accessibility level of anonymous acccess types
18231 associated with discriminants is that of the current instance of the
18232 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
18233 (Compile_Time_Constraint_Error): Handle case of conditional expression.
18234 (Kill_Current_Values_For_Entity): New function
18235 (Enter_Name): Change formal type to Entity_Id
18237 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18238 Ed Schonberg <schonberg@adacore.com>
18239 Gary Dismukes <dismukes@adacore.com>
18241 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
18242 Analyze_Compilation_Unit.
18243 Detect and warn on redundant with clauses detected in a package spec
18244 and/or body when -gnatwr is used.
18245 (Analyze_Context): Analyze config pragmas before other items
18246 (Install_Context_Items): Don't analyze config pragmas here
18247 (Install_Limited_Withed_Unit): Set limited entity of package in
18248 with_clause so that cross-reference information or warning messages on
18249 unused packages can be properly generated
18250 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
18251 has Error_Posted set. Prevent infinite loops in illegal programs.
18252 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
18253 to the point of the error test requiring the current unit to be private.
18254 This ensures that private with clauses are not exempted from the basic
18255 checking for being a descendant of the same library unit parent as a
18256 withed private descendant unit.
18257 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
18258 handle private with clauses properly, as well as to account for cases
18259 where the withed unit is a public descendant of a private ancestor
18260 (in which case the current unit must be a descendant of the private
18261 ancestor's parent). The spec comments were updated accordingly. Also,
18262 the old error message in this subprogram was replaced with error
18263 messages that mirror the errors tested and reported by
18264 Check_Private_Child_Unit.
18265 Parameter and variable names improved for readability.
18266 (Install_Limited_Context_Clauses): Remove test for a withed unit being
18267 private as the precondition for calling
18268 Check_Private_Limited_Withed_Unit since that subprogram has been
18269 revised to test public units as well as private units.
18271 2006-02-13 Thomas Quinot <quinot@adacore.com>
18272 Robert Dewar <dewar@adacore.com>
18273 Ed Schonberg <schonberg@adacore.com>
18274 Javier Miranda <miranda@adacore.com>
18276 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
18277 that Scope_Stack.First = 1.
18278 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18279 were not always properly handled previously.
18280 (Formal_Entity): Complete rewrite, to handle properly some complex case
18281 with multiple levels of parametrization by formal packages.
18282 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
18283 to the corresponding derived type declaration for proper semantics.
18285 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
18286 (Check_Component): Enforce restriction on components of
18287 unchecked_unions: a component in a variant cannot contain tasks or
18289 (Unchecked_Union): Allow nested variants and multiple discriminants, to
18291 Add pragma Ada_2005 (synonym for Ada_05)
18292 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18293 were not always properly handled previously.
18294 Document that pragma Propagate_Exceptions has no effect
18295 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
18296 (Set_Convention_From_Pragma): Check that if a convention is
18297 specified for a dispatching operation, then it must be
18298 consistent with the existing convention for the operation.
18299 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
18300 longer required to specify an vtable-ptr component in the record. For
18301 compatibility reasons we leave the support for the previous definition.
18302 (Analyze_Pragma, case No_Return): Allow multiple arguments
18304 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
18305 non-overrideen inherited operation with a controlling result as
18306 illegal only its implicit declaration comes from the derived type
18307 declaration of its result's type.
18308 (Check_Possible_Deferred_Completion): Relocate the object definition
18309 node of the subtype indication of a deferred constant completion rather
18310 than directly analyzing it. The analysis of the generated subtype will
18311 correctly decorate the GNAT tree.
18312 (Record_Type_Declaration): Check whether this is a declaration for a
18313 limited derived record before analyzing components.
18314 (Analyze_Component_Declaration): Diagnose record types not explicitly
18315 declared limited when a component has a limited type.
18316 (Build_Derived_Record_Type): Code reorganization to check if some of
18317 the inherited subprograms of a tagged type cover interface primitives.
18318 This check was missing in case of a full-type associated with a private
18320 (Constant_Redeclaration): Check that the subtypes of the partial and the
18321 full view of a constrained deferred constant statically match.
18322 (Mentions_T): A reference to the current type in an anonymous access
18323 component declaration must be an entity name.
18324 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
18325 class_wide type to refer to full type, not to the incomplete one.
18326 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
18327 available. Required to give support to the certified run-time.
18328 (Analyze_Component_Declaration): In case of anonymous access components
18329 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
18330 (Process_Discriminants): For an access discriminant, use the
18331 discriminant specification as the associated_node_for_itype, to
18332 simplify accessibility checks.
18334 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18335 Javier Miranda <miranda@adacore.com>
18337 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
18338 abstract interpretations on an operator, remove interpretations that
18339 yield Address or a type derived from it, if one of the operands is an
18341 (Try_Object_Operation.Try_Primitive_Operation,
18342 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
18343 location when creating the new reference to a primitive or class-wide
18344 operation as a part of rewriting a subprogram call.
18345 (Try_Primitive_Operations): If context requires a function, collect all
18346 interpretations after the first match, because there may be primitive
18347 operations of the same type with the same profile and different return
18348 types. From code reading.
18349 (Try_Primitive_Operation): Use the node kind to choose the proper
18350 operation when a function and a procedure have the same parameter
18352 (Complete_Object_Operation): If formal is an access parameter and prefix
18353 is an object, rewrite as an Access reference, to match signature of
18354 primitive operation.
18355 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
18356 by an expanded name with prefix Standard, when the operands are of an
18357 anonymous access type.
18358 (Remove_Abstract_Operations): If the operation is abstract because it is
18359 inherited by a user-defined type derived from Address, remove it as
18360 well from the set of candidate interpretations of an overloaded node.
18361 (Analyze_Membership_Op): Membership test not applicable to cpp-class
18364 2006-02-13 Bob Duff <duff@adacore.com>
18366 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
18367 redundant use clauses.
18368 In particular, if the scope of two use clauses overlaps, but one is not
18369 entirely included in the other, we should not warn. This can happen
18370 with nested packages.
18371 (Analyze_Subprogram_Renaming): Protect the compiler against previously
18372 reported errors. The bug was reported when the compiler was built
18373 with assertions enabled.
18374 (Find_Type): If the node is a 'Class reference and the prefix is a
18375 synchronized type without a corresponding record, return the type
18378 2006-02-13 Javier Miranda <miranda@adacore.com>
18380 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
18381 if this is the full-declaration associated with a private declaration
18382 that implement interfaces, then the private type declaration must be
18384 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
18385 as aliased. The use of the 'access attribute is not available for such
18386 object (for this purpose the object should be explicitly marked as
18387 aliased, but being an anonymous type this is not possible).
18389 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18390 Robert Dewar <dewar@adacore.com>
18392 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
18393 compilation unit is an elaboration scope.
18394 (Add_Task_Proc): Add '\' in 2-line warning message.
18395 (Activate_All_Desirable): Deal with case of unit with'ed by parent
18397 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18398 Javier Miranda <miranda@adacore.com>
18400 * sem_type.adb (Write_Overloads): Improve display of candidate
18402 (Add_One_Interp): Do not add to the list of interpretations aliased
18403 entities corresponding with an abstract interface type that is an
18404 immediate ancestor of a tagged type; otherwise we have a dummy
18405 conflict between this entity and the aliased entity.
18406 (Disambiguate): The predefined equality on universal_access is not
18407 usable if there is a user-defined equality with the proper signature,
18408 declared in the same declarative part as the designated type.
18409 (Find_Unique_Type): The universal_access equality operator defined under
18410 AI-230 does not cover pool specific access types.
18411 (Covers): If one of the types is a generic actual subtype, check whether
18412 it matches the partial view of the other type.
18414 2006-02-13 Thomas Quinot <quinot@adacore.com>
18416 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
18417 line. This is necessary to allow In_Extended_Main_Unit to provide
18418 correct results for itypes while writing out expanded source.
18419 (Close_File): No need to update the source_index_table here since it's
18420 now done for each line.
18422 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18423 Robert Dewar <dewar@adacore.com>
18425 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
18426 preserve the source unit where the itype is declared, and prevent a
18428 (Note_Implicit_Run_Time_Call): New procedure
18429 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
18432 * sprint.ads: Document use of $ for implicit run time routine call
18434 2006-02-13 Quentin Ochem <ochem@adacore.com>
18436 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
18439 2006-02-13 Bob Duff <duff@adacore.com>
18441 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
18442 Scan_Unsigned, so we do not scan leading blanks and sign twice.
18443 Integer'Value("- 5") and Integer'Value("-+5") now correctly
18444 raise Constraint_Error.
18446 * s-vallli.adb (Scan_Long_Long_Integer): Call
18447 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
18448 do not scan leading blanks and sign twice.
18449 Integer'Value("- 5") and Integer'Value("-+5") now correctly
18450 raise Constraint_Error.
18452 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
18453 Scan_Long_Long_Unsigned): Split out most of the processing from
18454 Scan_Long_Long_Unsigned out into
18455 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
18456 This prevents scanning leading blanks and sign twice.
18457 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
18460 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
18461 out most of the processing from Scan_Unsigned out into
18462 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
18463 This prevents scanning leading blanks and sign twice.
18465 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
18466 use with Modular'Value attribute.
18467 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
18470 2006-02-13 Robert Dewar <dewar@adacore.com>
18472 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
18474 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18476 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
18477 (PPC VxWorks): Likewise.
18478 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
18479 (forced_callee): Make non-inlinable and non-pure.
18480 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
18482 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18483 Ben Brosgol <brosgol@adacore.com>
18484 Robert Dewar <dewar@adacore.com>
18486 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
18488 Document that gnatbind -M option is for cross environments only.
18489 Added description of using gnatmem to trace gnat rtl allocs and deallocs
18490 Add note on use of $ to label implicit run time calls
18491 Add documentation for -gnatyI (check mode IN)
18492 Updated chapter on compatibility with HP Ada
18493 VMS-oriented edits.
18494 Ran spell and corrected errors
18495 Add documentation for gnatbind -d and rework documentation of -D
18497 Add subprogram/data elimination section.
18498 Minor editing of annex A.
18499 Add section for gnatcheck.
18500 Add documentation for restriction No_Dispatching_Calls
18501 Add documentation for pragma Ada_2005
18502 Remove mention of obsolete pragma Propagate_Exceptions
18503 Document that pragma Unreferenced can appear after DO in ACCEPT
18504 Clarify Pure_Function for library level units
18505 Mention Max/Min in connection with No_Implicit_Conditionals
18506 No_Wide_Characters restriction is no longer partition-wide
18507 Add a nice example for Universal_Literal_String attribute
18508 Document that pragma No_Return can take multiple arguments
18510 * ug_words: Added entry for gnatcheck
18512 * g-ctrl_c.ads (Install_Handler): Enhance comments
18514 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
18516 * g-trasym.ads: Add documentation on how to do off line symbolic
18517 traceback computation.
18519 * s-fatgen.adb: Add comments for Unaligned_Valid
18521 * stand.ads: Fix typo in comment
18523 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18525 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
18527 2006-02-06 Roger Sayle <roger@eyesopen.com>
18529 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
18531 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18534 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
18535 implementation that calls __main.
18537 2006-01-25 Peter O'Gorman <peter@pogma.com>
18540 * Makefile.in (GCC_LINK): Remove quotes.
18541 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
18544 (powerpc-darwin): Pass -shared-libgcc when building shared library.
18546 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18549 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
18551 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18553 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
18555 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18557 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
18560 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18562 * Make-lang.in: Update dependencies
18564 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18566 * Make-lang.in: Add rule for ada/exp_sel.o
18568 2005-12-12 Arnaud Charlet <charlet@adacore.com>
18570 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
18572 2005-12-09 Arnaud Charlet <charlet@adacore.com>
18574 * gnatvsn.ads (Library_Version): Bump to version 4.2
18575 (ASIS_Version_Number): Bumped.
18577 2005-12-09 Doug Rupp <rupp@adacore.com>
18579 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
18580 Ada bind file prefix on VMS from b$ to b__.
18581 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
18584 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
18585 Targparm.OpenVMS_On_Target.
18586 (Object_Suffix): Initialize with target object suffix.
18587 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
18589 * butil.adb: Change some Hostparm.OpenVMS checks to
18590 Targparm.OpenVMS_On_Target.
18592 * clean.adb: Change some Hostparm.OpenVMS checks to
18593 Targparm.OpenVMS_On_Target.
18594 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
18595 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
18596 Ada bind file prefix on VMS from b$ to b__.
18598 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
18599 --GCC so that Get_Target_Parameters can find system.ads.
18600 (Gnatlink): Call Get_Target_Parameters in mainline.
18601 Initialize standard packages for Targparm.
18602 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
18603 (Process_Args): Also Check for object files with target object
18605 (Make_Binder_File_Names): Create with target object extension.
18606 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
18609 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
18610 Targparm.OpenVMS_On_Target.
18611 ({declaration},Build_Library,Check_Library): Change Ada bind file
18612 prefix on VMS from b$ to b__.
18614 * osint-b.adb: Change some Hostparm.OpenVMS checks to
18615 Targparm.OpenVMS_On_Target.
18616 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
18619 * targext.c: New file.
18621 * Makefile.in: add support for vxworks653 builds
18622 (../../vxaddr2line): gnatlink with targext.o.
18623 (TOOLS_LIBS): Move targext.o to precede libgnat.
18624 (init.o, initialize.o): Minor clean up in dependencies.
18625 (GNATLINK_OBJS): Add targparm.o, snames.o
18626 Add rules fo building targext.o and linking it explicitly with all
18628 Also add targext.o to gnatlib.
18630 * Make-lang.in: Add rules for building targext.o and linking it in
18631 with gnat1 and gnatbind.
18632 Add entry for exp_sel.o.
18634 * osint.adb Change some Hostparm.OpenVMS checks to
18635 Targparm.OpenVMS_On_Target.
18636 (Object_File_Name): Use target object suffix.
18638 * osint.ads (Object_Suffix): Remove, no longer used.
18639 (Target_Object_Suffix): Initialize with target object suffix.
18641 * rident.ads: Add special exception to license.
18643 * targparm.adb (Get_Target_Parameters): Set the value of
18644 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
18646 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
18648 * targparm.ads: Add special exception to license.
18650 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
18652 (Copy_File): Make sure from file is closed if error on to file
18653 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
18655 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
18656 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
18658 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
18659 target object suffix.
18661 2005-12-09 Jose Ruiz <ruiz@adacore.com>
18662 Quentin Ochem <ochem@adacore.com>
18663 Florian Villoing <villoing@adacore.com>
18665 * a-taster.ads, a-taster.adb: New files.
18667 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
18668 link to the version that does nothing. This way the task termination
18669 routine is not executed twice for the environment task when finishing
18670 because of an unhandled exception.
18672 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
18673 handler because of an unhandled exception.
18675 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
18676 System.Tasking.Utilities instead of that in System.Tasking.Stages.
18678 * s-finimp.adb (initialization code): Modify the soft link for the
18679 finalization of the global list instead of Adafinal.
18681 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
18682 non-tasking version of the soft link for task termination. We do
18683 nothing since if we are using the non-tasking version it
18684 means that the task termination functionality is not used.
18685 (Null_Finalize_Global_List): Add this null version for the procedure
18686 in charge of finalizing the global list for controlled objects.
18687 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
18688 instead for handling run-time termination in a more flexible way.
18689 (Adafinal_NT): This new procedure will take care of finalizing the
18690 global list for controlled objects if needed, but no tasking
18693 * s-tarest.adb (Task_Lock): Do not try to lock again the
18694 Global_Task_Lock if we already own it. Otherwise, we get blocked in
18695 some run-time operations.
18696 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
18697 until all nested locks have been released.
18698 (Task_Wrapper): Call the fall-back task termination handler. It
18699 applies to all tasks but the environment task.
18700 (Finalize_Global_Tasks): Add the call for the task termination
18701 procedure for the environment task.
18702 (Task_Wrapper): suppress warnings around declaration of
18703 Secondary_Stack_Address.
18705 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
18706 moved to the Common_ATCB record.
18707 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
18708 Common_ATCB record.
18709 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
18710 Common_ATCB record.
18712 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
18713 Fall_Back_Handler, and Specific_Handler.
18715 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
18716 defined in Ada.Task_Termination, to avoid circular dependencies.
18717 (Termination_Handler): Redefine this type here, alredy defined in
18718 Ada.Task_Termination, for avoiding circular dependencies.
18719 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
18720 for storing task termination handlers. In addition,
18721 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
18722 Common_ATCB because it is used by both the regular and the restricted
18724 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
18725 Common_ATCB because it is used by both the regular and the restricted
18727 (Common_ATCB): Added a dynamic task analyzer field.
18729 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
18730 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
18731 (Task_Wrapper): Call the task termination handler. It applies to all
18732 tasks but the environment task.
18733 (Finalize_Global_Tasks): Call the task termination procedure for the
18734 environment task. The call to Finalize_Global_List is now performed
18735 using the soft links mechanism.
18736 (Task_Wrapper): added dynamic stack analysis.
18738 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
18739 potentially blocking operations has been moved from
18740 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
18741 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
18742 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
18743 this run-time check.
18745 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
18746 of task termination procedure.
18747 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
18748 link for the task termination procedure.
18750 * bindusg.adb: (Bindusg): Added documentation for -u option.
18752 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
18753 (Get_Main_C): Add handling of dynamic stack analysis.
18754 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
18756 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
18757 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
18758 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
18760 * opt.ads: Added flags used by dynamic stack measurement.
18761 (Max_Line_Length): Remove (not used anymore)
18763 * s-io.ads, s-io.adb (Standard_Error): new subprogram
18764 (Standart_Output): new subprogram
18765 (Set_Output): new subprogram
18766 (Put): now uses the value of Current_Out to know if the output has to be
18767 send to stderr or stdout.
18769 * s-stausa.ads: Complete implementation.
18771 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
18773 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
18774 list of Ada 05 files.
18775 (GNAT Library Units): Add AltiVec files.
18777 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
18778 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
18779 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
18781 2005-12-09 Nicolas Setton <setton@adacore.com>
18783 * adaint.c (__gnat_locate_regular_file): Return immediately if
18784 file_name is empty.
18786 2005-12-09 Javier Miranda <miranda@adacore.com>
18787 Hristian Kirtchev <kirtchev@adacore.com>
18789 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
18790 to the specification because the frontend generates code that uses this
18792 (Set_Interface_Table): Add missing assertion.
18793 Update documentation describing the run-time structure.
18794 (Displace): New subprogram that displaces the pointer to the object
18795 to reference one of its secondary dispatch tables.
18796 (IW_Membership): Modified to use the new table of interfaces.
18797 (Inherit_TSD): Modified to use the new table of interfaces.
18798 (Register_Interface_Tag): Use the additional formal to fill the
18799 contents of the new table of interfaces.
18800 (Set_Interface_Table): New subprogram that stores in the TSD the
18801 pointer to the table of interfaces.
18802 (Set_Offset_To_Top): Use the additional formal to save copy of
18803 the offset value in the table of interfaces.
18804 Update structure of GNAT Primary and Secondary dispatch table diagram.
18805 Add comment section on GNAT dispatch table prologue.
18806 (Offset_To_Signature): Update the constant value of the Signature field.
18807 (Dispatch_Table): Update comment on hidden fields in the prologue.
18808 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
18809 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
18810 the type of formal parameter T to Tag, introduce additional assertions.
18811 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
18813 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
18815 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
18816 in all the calls to Expand_Interface_Thunk. Instead of referencing the
18817 record component containing the tag of the secondary dispatch table we
18818 have to use the Offset_To_Top run-time function to get this information;
18819 otherwise if the pointer to the base of the object has been displace
18820 we get a wrong value if we use the 'position attribute.
18822 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
18823 all the calls to Expand_Interface_Thunk.
18824 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
18825 interfaces; hence the call to Set_Interface_Table was clearly wrong.
18826 (Collect_All_Interfaces): Modify the internal subprogram Collect to
18827 ensure that the interfaces implemented by the ancestors are placed
18828 at the header of the generated list.
18829 (Expand_Interface_Conversion): Handle the case in which the displacement
18830 associated with the interface conversion is not statically known. In
18831 this case we generate a call to the new run-time subprogram Displace.
18832 (Make_DT): Generate and fill the new table of interfaces.
18833 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
18834 Get_Tagged_Kind and Set_Tagged_Kind.
18835 (Tagged_Kind): New function that determines the tagged kind of a type
18836 with respect to limitedness and concurrency and returns a reference to
18838 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
18839 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
18840 primary dispatch table for a type.
18841 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
18842 secondary dispatch table respectively of a tagged type.
18844 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
18845 (Expand_Interface_Conversion): New subprogram to indicate if the
18846 displacement of the type conversion is statically known.
18847 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
18849 * rtsfind.ads (RE_Offset_To_Top): New entity
18850 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
18851 accessible to users.
18852 (Re_Displace): New entity
18853 (RE_Interface_Data): New entity
18854 (RE_Set_Interface_Data): New_Entity
18855 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
18856 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
18857 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
18858 RE_TK_Tagged, RE_TK_Task.
18860 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
18861 Init_Secondary_Tags_Internal to allow its use with interface types and
18862 also to generate the code for the new additional actual required
18863 by Set_Offset_To_Top.
18864 (Build_Init_Statements): In case of components associated with abstract
18865 interface types there is no need to generate a call to its IP.
18866 (Freeze_Record_Type): Generate Select Specific Data tables only for
18868 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
18869 the bodies and specifications of the predefined primitive operations
18870 dealing with dispatching selects and abort, 'Callable, 'Terminated only
18871 for concurrent types.
18873 * exp_sel.ads, exp_sel.adb: New files.
18875 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
18876 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
18877 properly protected objects and attach handler in the case of the
18878 restricted profile.
18879 Move embeded package Select_Expansion_Utilities into a separate external
18881 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
18882 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
18883 (Build_K, Build_S_Assignment): New subprograms, part of the select
18884 expansion utilities.
18885 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
18886 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
18887 where the trigger is a dispatching procedure of a limited tagged type.
18889 2005-12-09 Olivier Hainque <hainque@adacore.com>
18891 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
18892 pointer initialization values. Make a SAVE_EXPR instead. Add comments
18893 about the use and expansion of SAVE_EXPRs in the various possible
18894 renaming handling cases.
18895 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
18896 abusing DECL_FCONTEXT.
18898 2005-12-09 Matthew Heaney <heaney@adacore.com>
18900 * a-convec.adb (Merge): Added assertions to check whether vector params
18903 * a-coinve.adb (Merge): Added assertions to check whether vector params
18906 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
18908 (Cursor'Read): raises PE
18910 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
18911 to its default value.
18913 * a-cihama.adb: Manually check whether cursor's key and elem are
18916 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
18917 (Merge): Assert that target and source lists are in order
18918 (Swap): Declare non-const temporaries, to pass to Splice
18920 * a-cdlili.ads: (Splice): Changed param name and param mode
18922 * a-cdlili.adb: (Splice): Changed param name and param mode
18923 (Merge): Assert that target and source lists are in order
18924 (Swap): Declare non-const temporaries, to pass to Splice
18926 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
18927 (Write): declare Stream param as not null
18929 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
18930 an exception message.
18932 2005-12-09 Thomas Quinot <quinot@adacore.com>
18933 Robert Dewar <dewar@adacore.com>
18935 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
18936 which is the absolute maximum length we can support.
18938 * frontend.adb: For the processing of configuration pragma files,
18939 remove references to Opt.Max_Line_Length, which is not checked anymore.
18941 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
18944 * scn.adb, scng.adb:
18945 Always check line length against the absolute supported maximum,
18946 Hostparm.Max_Line_Length.
18948 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
18949 value for the maximum line length is Max_Line_Length (not
18950 Column_Number'Last).
18951 Minor error msg update
18952 (Set_Style_Check_Options): New interface returning error msg
18953 Minor code reorganization (processing for 'M' was out of alpha order)
18955 * switch-c.adb: New interface for Set_Style_Check_Options
18957 * stylesw.ads (Set_Style_Check_Options): New interface returning error
18960 2005-12-09 Javier Miranda <miranda@adacore.com>
18962 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
18963 with IP subprogram were only supported if there were limited types.
18965 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
18966 records with IP subprogram were only supported if there were limited
18969 2005-12-09 Olivier Hainque <hainque@adacore.com>
18970 Eric Botcazou <ebotcazou@adacore.com>
18972 * trans.c (tree_transform, emit_check): Adjust calls to
18973 build_call_raise, passing the now expected GNAT_NODE argument.
18975 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
18976 source line information than what the current global locus indicates
18979 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
18980 field has overflowed.
18981 (build_call_raise): Add a GNAT_NODE argument to convey better source
18982 line information than what the current global locus indicates when
18984 (build_component_ref): Adjust call to build_call_raise.
18986 2005-12-09 Pascal Obry <obry@adacore.com>
18988 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
18989 the iterator is quitting iteration on parent directory.
18991 2005-12-09 Javier Miranda <miranda@adacore.com>
18993 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
18994 and the assignment to a class-wide object, before the assignment we
18995 generate a run-time check to ensure that the tag of the Target is
18996 covered by the tag of the source.
18998 2005-12-09 Robert Dewar <dewar@adacore.com>
19000 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
19001 parameter in call to Image_Wide_Character.
19003 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
19004 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
19005 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
19006 annoying FFFE/FFFF inconsistency.
19008 2005-12-09 Robert Dewar <dewar@adacore.com>
19009 Javier Miranda <miranda@adacore.com>
19010 Ed Schonberg <schonberg@adacore.com>
19012 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
19013 of type conversion.
19014 (Find_Interface): New subprogram that given a tagged type and one of its
19015 component associated with the secondary table of an abstract interface
19016 type, return the entity associated with such abstract interface type.
19017 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
19018 base type to create anonymous subtype, because entity may be a locally
19019 declared subtype or generic actual.
19020 (Find_Interface): New subprogram that given a tagged type and one of its
19021 component associated with the secondary table of an abstract interface
19022 type, return the entity associated with such abstract interface type.
19024 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
19025 conversion cannot be handled at compile time. In this case we pass this
19026 information to the expander to generate the appropriate code.
19028 2005-12-09 Robert Dewar <dewar@adacore.com>
19029 Ed Schonberg <schonberg@adacore.com>
19030 Gary Dismukes <dismukes@adacore.com>
19031 Javier Miranda <miranda@adacore.com>
19032 Hristian Kirtchev <kirtchev@adacore.com>
19034 * einfo.adb (Itype_Printed): New flag
19035 (Is_Limited_Type): Derived types do not inherit limitedness from
19036 interface progenitors.
19037 (Is_Return_By_Reference_Type): Predicate does not apply to limited
19040 * einfo.ads (Itype_Printed): New flag
19041 Move Is_Wrapper_Package to proper section
19042 Add missing Inline for Is_Volatile
19044 * output.ads, output.adb (Write_Erase_Char): New procedure
19045 (Save/Restore_Output_Buffer): New procedures
19046 (Save/Restore_Output_Buffer): New procedures
19048 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
19049 Add missing support for anonymous access type
19050 (Write_Id): Insert calls to Write_Itype
19051 (Write_Itype): New procedure to output itypes
19053 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
19054 use of "limited" in declaration.
19056 * sinfo.ads, sinfo.adb:
19057 Formal derived types can carry an explicit "limited" indication.
19059 * sem_ch3.adb: Add with and use of Targparm.
19060 (Create_Component): If Frontend_Layout_On_Target is True and the
19061 copied component does not have a known static Esize, then reset
19062 the size and positional fields of the new component.
19063 (Analyze_Component_Declaration): A limited component is
19064 legal within a protected type that implements an interface.
19065 (Collect_Interfaces): Do not add to the list the interfaces that
19066 are implemented by the ancestors.
19067 (Derived_Type_Declaration): If the parent of the full-view is an
19068 interface perform a transformation of the tree to ensure that it has
19069 the same parent than the partial-view. This simplifies the job of the
19070 expander in order to generate the correct object layout, and it is
19071 needed because the list of interfaces of the full-view can be given in
19073 (Process_Full_View): The parent of the full-view does not need to be
19074 a descendant of the parent of the partial view if both parents are
19076 (Analyze_Private_Extension_Declaration): If declaration has an explicit
19077 "limited" the parent must be a limited type.
19078 (Build_Derived_Record_Type): A derived type that is explicitly limited
19079 must have limited ancestor and progenitors.
19080 (Build_Derived_Type): Ditto.
19081 (Process_Full_View): Verify that explicit uses of "limited" in partial
19082 and full declarations are consistent.
19083 (Find_Ancestor_Interface): Remove function.
19084 (Collect_Implemented_Interfaces): New procedure used to gather all
19085 implemented interfaces by a type.
19086 (Contain_Interface): New function used to check whether an interface is
19088 (Find_Hidden_Interface): New function used to determine whether two
19089 lists of interfaces constitute a set equality. If not, the first
19090 differing interface is returned.
19091 (Process_Full_View): Improve the check for the "no hidden interface"
19092 rule as defined by AI-396.
19094 2005-12-09 Robert Dewar <dewar@adacore.com>
19096 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
19097 types, not on record subtypes.
19098 (Freeze_Entity): Code cleanup. Add barrier to the loop
19099 that generates the references for primitive operations. This allows to
19100 remove an unnecessary exception handler.
19101 Code reformatting and comment clean ups.
19103 2005-12-09 Vincent Celier <celier@adacore.com>
19105 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
19106 If GNAT CHECK is called with a project file, but with no
19107 source on the command line, call gnatcheck with all the compilable
19108 sources of the project.
19109 Take into account the new command Check, for gnatcheck. Treat as for
19110 other ASIS tools: take into account project, specific package Check and
19112 For ASIS tools, add the switches in package Compiler for
19113 the invocation of the compiler.
19115 * prj-attr.adb: Add package Check and its attributes
19117 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
19119 * vms_conv.adb (Initialize): Change Params of command Check to
19121 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19122 Add data for new command Check
19124 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
19126 Add qualifiers for Check command options
19127 (Command_Type): New command Check
19129 2005-12-09 Thomas Quinot <quinot@adacore.com>
19131 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
19132 command line switch overruns the output buffer.
19134 2005-12-09 Robert Dewar <dewar@adacore.com>
19136 * sem_prag.adb: Processing for new pragma Complete_Representation
19137 (Analyze_Pragma, case Debug): Implement two argument form.
19139 * par-prag.adb: Entry for new pragma Complete_Representation
19140 (Prag, case Debug): Recognize two argument form of pragma Debug
19141 New interface for Set_Style_Check_Options.
19143 * sem_ch13.adb: Implement new pragma Complete_Representation.
19145 * snames.adb, snames.ads, snames.h: Entry for new pragma
19146 Complete_Representation.
19148 2005-12-09 Gary Dismukes <dismukes@adacore.com>
19150 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
19151 available user-specified stream attributes on limited parameters to
19152 also test the type directly rather than only its underlying type (for
19153 Ada 95) and, in the case of Ada 2005, to check that the user-specified
19154 attributes are visible at the point of the subprogram declaration.
19155 For Ada 2005, the error message is modified to indicate that the
19156 type's stream attributes must be visible (again, only for -gnat05).
19158 2005-12-09 Ed Schonberg <schonberg@adacore.com>
19160 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
19161 anonymous access types.
19163 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
19164 matching of anonymous access types and anonymous access to subprogram
19165 types. 'R'M 4.9.1 (2/2).
19167 2005-12-09 Ed Schonberg <schonberg@adacore.com>
19169 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
19170 rule prematurely when operands are universal, remaining ambiguities
19171 will be removed during resolution.
19174 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
19175 that are Ada 2005 functions.
19176 (Has_Abstract_Interpretation): Subsidiary to
19177 Remove_Conversions, to remove ambiguities caused by abstract operations
19178 on numeric types when operands are universal.
19180 2005-12-09 Robert Dewar <dewar@adacore.com>
19182 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
19183 for case where spec is categorized.
19185 2005-12-09 Javier Miranda <miranda@adacore.com>
19187 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
19188 types use the corresponding record type. This was not needed before
19189 the implementation of Ada 2005 synchronized types because
19190 concurrent types were never tagged types in Ada 95.
19192 2005-12-09 Ed Schonberg <schonberg@adacore.com>
19194 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
19195 first subtype of the type of the expression to verify that it is a
19198 2005-12-09 Robert Dewar <dewar@adacore.com>
19200 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
19203 2005-12-09 Quentin Ochem <ochem@adacore.com>
19204 Robert Dewar <dewar@adacore.com>
19205 Ed Falis <falis@adacore.com>
19206 Florian Villoing <villoing@adacore.com>
19207 Thomas Quinot <quinot@adacore.com>
19208 Arnaud Charlet <charlet@adacore.com>
19210 * gnat_ugn.texi: Created section "Stack Related Tools"
19211 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
19212 "Stack Related Tools"
19213 Added subsection "Static Stack Usage Analysis"
19214 Added subsection "Dynamic Stack Usage Analysis"
19215 Include documentation of itypes in sprint listing (-gnatG)
19216 Documented gnatbind -D switch (default sec stack size for fixed sec
19218 Added Interrupt_State and Persistent_BSS to list of configuration
19220 Add missing doc for maximum value of nnn in -gnatyMnnn
19222 * gnat_rm.texi: Document the AltiVec binding.
19223 Add documentation for pragma Complete_Representation
19224 Shortened an overly long line (> 79 chars)
19225 Clarify documentation of unchecked conversion in implementation
19227 Document two argument form of pragma Debug
19229 * types.ads (Column_Number): Update documentation.
19231 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
19232 library level Finalize_Storage_Only objects (these are not attached to
19233 any finalization list).
19235 * system-mingw.ads: (Underlying_Priorities): Update comment.
19237 2005-12-09 Robert Dewar <dewar@adacore.com>
19239 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
19240 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
19241 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
19242 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
19243 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
19244 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
19245 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
19246 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
19249 2005-12-09 Robert Dewar <dewar@adacore.com>
19251 * s-vaflop-vms-alpha.adb: (Ne_F): New function
19252 (Ne_G): New function
19254 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
19255 for tag assignment.
19256 (Rewrite_Comparison): Handle case where operation is not a comparison
19257 and ignore, and also handle type conversion case.
19259 2005-12-09 Thomas Quinot <quinot@adacore.com>
19261 * exp_aggr.ads: Fix typo in comment.
19262 ???-mark Convert_Aggr_In_Assignment as needing documentation.
19264 2005-12-09 Gary Dismukes <dismukes@adacore.com>
19266 * layout.adb: Replace various uses of byte by storage unit throughout.
19267 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
19268 static size, convert to storage units before returning, to conform to
19271 2005-12-09 Matthew Gingell <gingell@adacore.com>
19273 * g-exctra.ads: Fix typo in comment.
19275 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19277 * utils.c: Minor reformatting.
19279 2005-12-09 Robert Dewar <dewar@adacore.com>
19282 Further comment fixes to make the status of the default file clear
19284 * s-bitops.adb: Clarify comment for Bits_Array
19286 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19288 * Make-lang.in (ada.install-normal): Remove.
19290 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19292 * Make-lang.in: Remove all dependencies on s-gtype.
19294 2005-12-05 Richard Guenther <rguenther@suse.de>
19296 * utils.c (convert): Use fold_convert where appropriate.
19298 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
19300 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
19303 2005-12-02 Richard Guenther <rguenther@suse.de>
19305 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
19307 2005-12-01 Roger Sayle <roger@eyesopen.com>
19309 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
19312 2005-11-23 Laurent Guerby <laurent@guerby.net>
19314 * mlib-prj.adb (Build_Library): Initialize Delete.
19316 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
19318 * socket.c: Add extern int h_errno for rtems since networking header
19319 files are not available at this point in a tool bootstrap. Newlib
19320 only has basic C library header files.
19322 2005-11-19 Richard Guenther <rguenther@suse.de>
19323 Roger Sayle <roger@eyesopen.com>
19326 * misc.c (internal_error_function): Don't use vsprintf to format
19327 the error message text, instead use pp_format_text and the new
19328 pretty printer APIs. This allows handling of %qs, %w, etc.
19330 2005-11-18 Laurent Guerby <laurent@guerby.net>
19333 * Makefile.in: Use s-auxdec-empty for RTEMS.
19335 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19338 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
19339 a temporary if taking the address of something that is neither
19340 reference, declaration, or constant, since the gimplifier
19341 can't handle that case.
19343 2005-11-17 Laurent Guerby <laurent@guerby.net>
19346 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
19348 2005-11-16 Richard Guenther <rguenther@suse.de>
19350 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
19352 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
19355 * raise-gcc.c: Add missing stdarg.h include.
19357 2005-11-16 Richard Guenther <rguenther@suse.de>
19359 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
19360 (ada/misc.o): Likewise.
19362 2005-11-14 Thomas Quinot <quinot@adacore.com>
19364 * g-soccon.ads: Minor reformatting. Update comments.
19366 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
19367 gain visibility on the declaration of struct timeval.
19369 * g-soccon-freebsd.ads,
19370 g-soccon-darwin.ads,
19371 g-soccon-tru64.ads,
19375 g-soccon-solaris.ads,
19377 g-soccon-mingw.ads,
19378 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
19380 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
19381 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
19382 g-soccon-linux-x86.ads: New files.
19384 * g-socthi-mingw.adb:
19385 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
19387 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
19388 (time_t, suseconds_t): New types constructed to match the tv_sec
19389 and tv_usec fields of C struct timeval.
19390 (Timeval): Construct structure in terms of the new types.
19391 (Host_Errno): New function (imported from socket.c), returns last hosts
19394 * g-socthi-vxworks.adb: Add error handling circuitry.
19396 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
19397 components of struct timeval.
19398 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
19399 (Check_Selector): In error conditions, clear internal socket sets to
19400 avoid a memory leak.
19401 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
19402 Send_Timeout, Receive_Timeout.
19404 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
19405 the tv_sec and tv_usec fields of C struct timeval.
19406 (Timeval): Construct structure in terms of the new types.
19407 (Host_Errno): New function (imported from socket.c), returns last hosts
19410 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
19411 hosts database last error code.
19413 * gen-soccon.c: Complete value expansion should not be performed on
19414 TARGET, as it has the form of a math expression, and some components
19415 may be platform-defined macros.
19416 For VxWorks, generate the OK and ERROR values.
19417 New constants giving the sizes of the components of C struct timeval.
19419 2005-11-14 Robert Dewar <dewar@adacore.com>
19420 Ed Schonberg <schonberg@adacore.com>
19423 * types.ads: Include All_Checks in Suppress_Array
19425 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
19426 not(a=b), since we no longer do this rewriting, and hence it is not
19428 (Elaboration_Checks_Suppressed): Add special casing to
19429 deal with different cases of static and dynamic elaboration checks (all
19430 checks does not count in the first case, but does in the second).
19431 (Expr_Known_Valid): Do not assume that the result of any arbitrary
19432 function call is valid, since this is not the case.
19433 (Ensure_Valid): Do not apply validity check to a real literal
19434 in a universal or fixed context
19436 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
19437 elementary types using the operator in standard. It is cleaner not to
19438 modify the programmers intent, especially in the case of floating-point.
19439 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
19440 it did not matter because we always rewrote a/=b to not(a=b).
19441 (Expand_Allocator_Expression): For an allocator expression whose nominal
19442 subtype is an unconstrained packed type, convert the expression to its
19443 actual constrained subtype.
19444 Implement warning for <= or >= where < or > not possible
19445 Fix to Vax_Float tests (too early in many routines, causing premature
19446 Vax_Float expansions.
19448 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
19449 to be used with packages and generic packages as well as with
19451 (Suppress): Set All_Checks, but not Elaboration_Check, for case
19452 of pragma Suppress (All_Checks)
19453 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
19454 a string literal for precise control over warnings.
19455 Avoid raise of pragma in case of unrecognized pragma and just return
19458 * sem_prag.ads: Minor reformatting
19460 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
19461 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
19462 Switch. Do not handle any exception.
19463 Include -gnatwx as part of -gnatg (warn on redundant parens)
19464 Allow optional = after -gnatm
19465 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
19466 longer sets Elaboration_Checks.
19467 Code to set warning mode moved to Sem_Warn
19468 so that it can be shared by pragma processing.
19470 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
19473 * s-taprop-solaris.adb:
19474 Change some <= to =, to avoid new warning
19476 * a-exexda.adb, prj-proc.adb:
19477 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
19478 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
19480 2005-11-14 Robert Dewar <dewar@adacore.com>
19482 * exp_vfpt.adb: Handle /= case
19483 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
19484 so that we do not get duplicate scaling for fixed point conversions.
19486 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
19488 2005-11-14 Matthew Gingell <gingell@adacore.com>
19490 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
19491 Increase default priority on Lynx from 15 to 17, and meet the Ada
19492 requirement that Default_Priority be ((Priority'First +
19493 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
19495 2005-11-14 Vincent Celier <celier@adacore.com>
19497 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19498 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
19499 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
19500 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
19501 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
19502 mlib-tgt-lynxos.adb (DLL_Prefix): New function
19504 2005-11-14 Doug Rupp <rupp@adacore.com>
19506 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
19509 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19511 * s-traces-default.adb, s-trafor-default.ads,
19512 s-tratas-default.adb: Fix compilation errors.
19514 2005-11-14 Jose Ruiz <ruiz@adacore.com>
19516 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
19517 raising the exception so the memory used is freed.
19519 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19521 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
19522 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
19523 (convert_address): Update comments and list of platforms using this.
19525 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
19528 2005-11-14 Pascal Obry <obry@adacore.com>
19529 Vincent Celier <celier@adacore.com>
19531 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
19534 * memroot.adb: Remove redundant with/use clause on
19535 System.Storage_Elements.
19537 2005-11-14 Arnaud Charlet <charlet@adacore.com>
19539 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
19540 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
19541 related code to a-exexpr.adb
19542 (Save_Occurrence_And_Private): Move GCC EH related code to
19544 (Raise_Current_Excep): Add new variable Id with pragma
19545 volatile, to ensure that the variable lives on stack.
19547 * a-exexpr-gcc.adb, raise-gcc.c: New file.
19549 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
19551 Move GCC EH related code to a-exexpr-gcc.adb
19553 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
19555 Split the Linux version of g-soccon into separate variants for 32 and 64
19557 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
19558 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
19559 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
19560 of host variable $(RANLIB_FLAGS).
19561 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
19562 Code clean up: remove unused/obsolete targets.
19563 (EH_MECHANISM): New variable introduced to differenciate between the
19564 two EH mechanisms statically.
19565 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
19566 (LIBGNAT_OBJS): Add raise-gcc.o
19567 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
19568 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19569 supports VxWorks 6 RTPs.
19570 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
19571 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19573 * raise.c: Move all GCC EH-related routines to raise-gcc.c
19575 2005-11-14 Jose Ruiz <ruiz@adacore.com>
19577 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
19578 deferral level, when abort is not allowed, to a later stage (the
19580 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
19581 it will not get changed by the generated code. It was previously done
19584 2005-11-14 Thomas Quinot <quinot@adacore.com>
19585 Olivier Hainque <hainque@adacore.com>
19586 Eric Botcazou <ebotcazou@adacore.com>
19589 Factor common code to build a storage type for an unconstrained object
19590 from a fat or thin pointer type and a constrained object type.
19591 (annotate_value): Handle BIT_AND_EXPR.
19592 (annotate_rep): Don't restrict the back annotation of inherited
19593 components to the type_annotate_only case.
19594 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
19595 we are not defining the type.
19596 <E_Record_Type>: Likewise.
19597 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
19598 to get advantage of the new maybe_stabilize_reference interface, to
19599 ensure that what we reference is indeed stabilized instead of relying
19600 on assumptions on what the stabilizer does.
19601 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
19602 type imported through a limited_with clause, use its non-limited view.
19603 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
19605 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
19606 of #if sections + explicit comparisons of convention identifiers.
19607 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
19608 before early-returning for certain types when code generation is
19610 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
19611 nullification of gnu_expr we do for objects with address clause and
19612 that we are not defining.
19613 (elaborate_expression_1): Do not create constants when creating
19614 variables needed by the debug info: the dwarf2 writer considers that
19615 CONST_DECLs is used only to represent enumeration constants, and emits
19617 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
19618 object with an address clause into an indirect reference, drop the
19619 initializing expression.
19621 (STACK_CHECK_BUILTIN): Delete.
19622 (STACK_CHECK_PROBE_INTERVAL): Likewise.
19623 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
19624 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
19625 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
19626 corresponding to the renamed object as ignored for debugging purposes.
19628 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
19629 related): For a prefix that is a dereference of a fat or thin pointer,
19630 if there is an actual subtype provided by the front-end, use that
19631 subtype to build an actual type with bounds template.
19632 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
19633 is provided by the front-end, use that subtype to compute the size of
19634 the deallocated object.
19635 (gnat_to_gnu): When adding a statement into an elaboration procedure,
19636 check for a potential violation of a No_Elaboration_Code restriction.
19637 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19638 with extra arguments to control whether to recurse through non-values
19639 and to let the caller know if the stabilization has succeeded.
19640 (gnat_stabilize_reference): Now a simple wrapper around
19641 maybe_stabilize, for common uses without restriction on lvalues and
19642 without need to check for the success indication.
19643 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
19644 pass false instead of 0 as the FORCE argument which is a bool.
19645 (Identifier_to_gnu): Remove checks ensuring that an renamed object
19646 attached to a renaming pointer has been properly stabilized, as no such
19647 object is attached otherwise.
19648 (call_to_gnu): Invoke create_var_decl to create the temporary when the
19649 function uses the "target pointer" return mechanism.
19650 Reinstate conversion of the actual to the type of the formal
19651 parameter before any other specific treatment based on the passing
19652 mechanism. This turns out to be necessary in order for PLACEHOLDER
19653 substitution to work properly when the latter type is unconstrained.
19655 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
19657 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
19658 with extra arguments to control whether to recurse through non-values
19659 and to let the caller know if the stabilization has succeeded.
19661 * utils2.c (gnat_build_constructor): Only sort the fields for possible
19662 static output of record constructor if all the components are constant.
19663 (gnat_build_constructor): For a record type, sort the list of field
19664 initializers in increasing bit position order.
19665 Factor common code to build a storage type for an unconstrained object
19666 from a fat or thin pointer type and a constrained object type.
19667 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
19668 types variants, and process special cases of VIEW_CONVERT expressions
19669 as their NOP_EXPR counterpart to ensure we get to the
19670 CORRESPONDING_VARs associated with CONST_DECls.
19671 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
19672 on the right-hand side.
19674 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
19676 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
19677 are converting back to its original type.
19678 (convert) <JM input>: Fallthrough regular conversion code instead of
19679 extracting the object if converting to a type variant.
19680 (create_var_decl): When a variable has an initializer requiring code
19681 generation and we are at the top level, check for a potential violation
19682 of a No_Elaboration_Code restriction.
19683 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
19684 SIZE and SIZE_UNIT which we need for later back-annotations.
19685 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
19686 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
19687 is an unchecked union.
19688 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
19689 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
19690 main variant, just replace the VIEW_CONVERT_EXPR.
19691 <UNION_TYPE>: Revert 2005-03-02 change.
19693 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
19695 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
19697 2005-11-14 Matthew Heaney <heaney@adacore.com>
19699 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
19700 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
19701 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
19702 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
19703 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
19704 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
19705 Compiles against the spec for ordered maps described in sections
19706 A.18.6 of the most recent (August 2005) AI-302 draft.
19708 2005-11-14 Olivier Hainque <hainque@adacore.com>
19710 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
19711 to ensure bias adjustments take place when need be and to prevent
19712 occurrences of intermediate overflows.
19714 2005-11-14 Matthew Gingell <gingell@adacore.com>
19715 Olivier Hainque <hainque@adacore.com>
19717 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
19720 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
19721 tracebacks on ia64 HP-UX and provide explanatory comment.
19722 Enable backtraces on ia64 GNU/Linux.
19723 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
19724 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
19726 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
19727 Javier Miranda <miranda@adacore.com>
19729 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
19730 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
19731 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
19732 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
19734 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
19735 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
19738 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
19739 subprogram that generates the external name associated with a
19740 secondary dispatch table.
19741 (Get_Secondary_DT_External_Name): New subprogram that generates the
19742 external name associated with a secondary dispatch table.
19744 2005-11-14 Emmanuel Briot <briot@adacore.com>
19746 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
19747 line in the ALI file to include both an instantiation reference, and a
19750 2005-11-14 Vincent Celier <celier@adacore.com>
19752 * clean.adb (Check_Project): Look for Ada code in extending project,
19753 even if Ada is not specified as a language.
19754 Use new function DLL_Prefix for DLL_Name
19755 (Clean_Interface_Copy_Directory): New procedure
19756 (Clean_Library_Directory): New procedure
19757 (Clean_Directory): Remove procedure, no longer used
19758 (Clean_Project): Do not delete any file in an externally built project
19760 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
19761 directory of an extending project, even when there are no Ada source
19763 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
19764 (Set_Ada_Paths.Add.Recursive_Add): Ditto
19766 * mlib-prj.adb (Check_Library): For all library projects, get the
19767 library file timestamp.
19768 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
19769 (Build_Library): Use new function DLL_Prefix for the DLL_Name
19770 (Clean): Remove procedure, no longer used
19771 (Ultimate_Extension_Of): New function
19772 (Build_Library): When cleaning the library directory, only remove an
19773 existing library file and any ALI file of a source of the project.
19774 When cleaning the interface copy directory, remove any source that
19775 could be a source of the project.
19777 * prj.ads, prj.adb (Project_Empty): Add values of new components
19778 Library_TS and All_Imported_Projects.
19779 (Project_Empty): Add values for new components of Project_Data:
19780 Library_ALI_Dir and Display_Library_ALI_Dir
19782 * prj-attr.adb: New project level attribute name Library_ALI_Dir
19784 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
19785 attribute Library_ALI_Dir.
19786 (Check_Library_Attributes): The library directory cannot be the same as
19787 any source directory of the project tree.
19788 (Check_Stand_Alone_Library): The interface copy directory cannot be
19789 the same as any source directory of the project tree.
19791 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
19792 all temporary files.
19794 2005-11-14 Robert Dewar <dewar@adacore.com>
19795 Ed Schonberg <schonberg@adacore.com>
19797 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19798 (Check_Elab_Call): A call within a protected body is never an
19799 elaboration call, and does not require checking.
19800 (Same_Elaboration_Scope): Take into account protected types for both
19802 (Activate_Elaborate_All_Desirable): New procedure
19804 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
19807 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
19808 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
19810 * lib-writ.ads, lib-writ.adb:
19811 Implement new AD/ED for Elaborate_All/Elaborate desirable
19812 Use new Elaborate_All_Desirable flag in N_With_Clause node
19814 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
19815 N_Free_Statement nodes.
19816 Define new class N_Subprogram_Instantiation
19817 Add Elaborate_Desirable flag to N_With_Clause node
19818 Add N_Delay_Statement (covering two kinds of delay)
19820 * debug.adb: Introduce d.f flag for compiler
19821 Add -da switch for binder
19823 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19824 Cyrille Comar <comar@adacore.com>
19826 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
19827 for task component, in the case of a limited aggregate. The enclosed
19828 object declaration will create it earlier. Otherwise, in the case of a
19829 nested aggregate, the object may appear in the wrong scope.
19830 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
19831 (Gen_Assign): If the component being assigned is an array type and the
19832 expression is itself an aggregate, wrap the assignment in a block to
19833 force finalization actions on the temporary created for each row of the
19835 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
19836 structures are initialized after all discriminants are set so that
19837 they can be accessed even when their offset is dynamic.
19839 2005-11-14 Robert Dewar <dewar@adacore.com>
19840 Hristian Kirtchev <kirtchev@adacore.com>
19842 * sem_attr.adb: Implement Machine_Rounding attribute
19843 (Analyze_Access_Attribute): The access attribute may appear within an
19844 aggregate that has been expanded into a loop.
19845 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
19846 'Terminated whenever the prefix is of a task interface class-wide type.
19847 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
19848 the prefix is of a task interface class-wide type.
19850 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
19853 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
19854 Remove pragma Inline for [Unaligned_]Valid.
19855 Add comments that Valid routines do not work for Vax_Float
19857 * exp_attr.adb: Implement Machine_Rounding attribute
19859 * snames.h: Add entry for Machine_Rounding attribute
19861 2005-11-14 Javier Miranda <miranda@adacore.com>
19862 Robert Dewar <dewar@adacore.com>
19863 Hristian Kirtchev <kirtchev@adacore.com>
19865 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
19866 and related): For a prefix that is an explicit dereference of an
19867 access to unconstrained packed array type, annotate the dereference
19868 with an actual subtype so GIGI can make a correct size computation.
19869 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
19870 'Unrestricted_Access, if the designated type is an interface we
19871 add a type conversion to force the displacement of the pointer
19872 to the secondary dispatch table.
19873 Use Universal_Real instead of Long_Long_Float when we need a high
19874 precision float type for the generated code (prevents gratuitous
19875 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
19876 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
19877 'Terminated for task interface class-wide objects. Generate a call to
19878 the predefined dispatching routine used to retrieve the _task_id from
19879 a task corresponding record.
19880 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
19882 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
19883 (Check_Dispatching_Operation): Protect the frontend againts
19884 previously detected errors.
19886 * Makefile.rtl: Add new instantiations of system.fat_gen
19888 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
19889 Change name of instantiated package for better consistency
19890 with newly added system.fat_gen instantiations.
19892 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
19893 s-fvagfl.ads: New files.
19895 2005-11-14 Cyrille Comar <comar@adacore.com>
19896 Thomas Quinot <quinot@adacore.com>
19898 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
19899 assignment of a value of a tagged type that has been rewritten to a
19900 block statement, it is known by construction that no checks are
19901 necessary for the statements within the block: analyze it with checks
19903 (Expand_N_If_Statement): When killing a dead then-branch in an
19904 if-statement that has elsif_parts, recompute the Current_Value node
19905 for any entity whose value is known from the condition of the first
19907 (Expand_N_Return_Statement): When returning a mutable record, convert
19908 the return value into its actual subtype in order to help the backend
19909 to return the actual size instead of the maximum. This is another
19910 aftermath of not returning mutable records on the sec-stack anymore.
19912 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
19913 handling of error msg for suspicious reverse range iteration.
19914 (Check_Possible_Current_Value_Condition): Move declaration from body to
19915 spec, to allow this subprogram to be called from exp_ch5.
19917 2005-11-14 Thomas Quinot <quinot@adacore.com>
19919 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
19920 generate a set of nested array aggregates instead of a single flat
19921 aggregate for multi-dimensional arrays.
19923 2005-11-14 Pascal Obry <obry@adacore.com>
19925 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
19926 by spawnve is a process handle, no need to convert. Add a parameter
19927 close to control wether the process handle must be closed.
19928 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
19929 a process handle, not need to convert.
19930 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
19932 * g-expect.adb: (Kill): Document the new close parameter.
19933 (Close): Do not release the process handle in the kill there as
19934 waitpid() is using it.
19935 (Send_Signal): Release the process handle.
19937 2005-11-14 Robert Dewar <dewar@adacore.com>
19939 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
19940 need a high precision float type for the generated code (prevents
19941 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19944 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
19945 need a high precision float type for the generated code (prevents
19946 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
19948 (Expand_Width_Attribute): In configurable run-time, the attribute is not
19949 allowed on non-static enumeration subtypes. Force a load error to emit
19950 the correct diagnostic.
19952 2005-11-14 Thomas Quinot <quinot@adacore.com>
19953 Robert Dewar <dewar@adacore.com>
19954 Ed Schonberg <schonberg@adacore.com>
19956 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
19957 subtype to compute the size of the designated object at run-time,
19958 create such a subtype and store it in the Actual_Designated_Subtype
19959 attribute of the N_Free_Statement.
19960 Generate itype for classwide designated object in both cases of
19961 user-specified storage pool: specific and class-wide, not only in the
19963 Raise CE when trying to set a not null access type object to null.
19964 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
19965 an explicit loop, because freeze nodes make its position variable.
19967 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
19970 2005-11-14 Javier Miranda <miranda@adacore.com>
19972 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
19973 Build_Stream_Procedure): Add the null-excluding attribute to the first
19975 This has no semantic meaning under Ada95 mode but it is a
19976 requirement under Ada05 mode.
19978 * par-ch3.adb (P_Access_Definition): Addition of warning message if
19979 the null exclusion is used under Ada95 mode
19980 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
19981 (P_Access_Definition): Remove assertion that forbids the use of
19982 the null-exclusion feature in Ada95.
19984 2005-11-14 Robert Dewar <dewar@adacore.com>
19986 * impunit.adb: Exclude container helper units not intended for use by
19989 2005-11-14 Ed Schonberg <schonberg@adacore.com>
19991 * freeze.adb (Freeze_Entity): For an access formal that is an access
19992 to subprogram, freeze the anonymous subprogram type at the same time,
19993 to prevent later freezing in the wrong scope, such as the enclosing
19995 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
19996 subprogram whenever available.
19998 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20001 * gnatvsn.ads (Library_Version): Bump to 4.1
20003 2005-11-14 Robert Dewar <dewar@adacore.com>
20005 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
20006 Storage_Offset to avoid wrap around causing invalid results.
20008 2005-11-14 Pascal Obry <obry@adacore.com>
20010 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
20012 (Scan_Bind_Arg): Fail with an error message if -M option is used
20013 on a native compiler.
20015 2005-11-14 Robert Dewar <dewar@adacore.com>
20016 Vincent Celier <celier@adacore.com>
20018 * gprep.adb: Implement -C switch to scan comments
20020 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
20022 * scans.ads: Comment updates (including new use of Tok_Comment in
20025 * opt.ads: Add documentation for flags that are used by gprmake,
20026 currently and in the next version of gprmake.
20027 (Verbosity_Level): New variable
20028 Add Replace_In_Comments switch
20030 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
20032 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
20034 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20036 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
20037 message, friendlier.
20039 2005-11-14 Robert Dewar <dewar@adacore.com>
20041 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
20043 2005-11-14 Doug Rupp <rupp@adacore.com>
20045 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
20047 2005-11-14 Robert Dewar <dewar@adacore.com>
20049 * interfac.ads: Change declarations of IEEE float types so that we no
20050 longer need a separate version of this package for VMS.
20052 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20054 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
20055 internal entity created for the declaration of a child subprogram body
20056 with no spec as coming from source, to generate proper cross-reference
20059 2005-11-14 Vincent Celier <celier@adacore.com>
20061 * make.adb (Compile_Sources): Change verbose message to minimum
20062 verbosity level High for "is in an Ada library", "is a read-only
20063 library" and "is an internal library",
20064 (Create_Binder_Mapping_File): Path name of ALI file for library project
20065 must include the library directory, not the object directory.
20066 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
20067 for new switches -vl, -vm and -vh.
20068 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
20069 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
20070 (Compile_Sources): Do not attempt to compile if an ALI file is missing
20071 in a project that is externally built.
20072 (Compute_All_Imported_Projects): New procedure
20073 (Gnatmake): Check if importing libraries should be regenerated because
20074 at least an imported library is more recent.
20075 (Initialize): For each project compute the list of the projects it
20076 imports directly or indirectly.
20077 (Add_Library_Search_Dir): New procedure, used in place of
20078 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
20079 put in the search paths.
20080 (Add_Source_Search_Dir): New procedure, used in place of
20081 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
20082 put in the search paths.
20083 (Mark_Directory): Resolve the absolute path the directory before marking
20086 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
20087 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
20088 Switch. Do not handle any exception.
20089 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
20090 so that the switch is recognized as valid.
20091 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
20093 2005-11-14 GNAT Script <nobody@adacore.com>
20095 * Make-lang.in: Makefile automatically updated
20097 2005-11-14 Pascal Obry <obry@adacore.com>
20099 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
20101 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
20102 In both cases the last argument was dropped.
20104 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
20106 * namet.h: (Column_Numbe): New type.
20107 (Get_Column_Number): Define to sinput__get_column_number.
20108 (Instantiation): Define to sinput__instantiation.
20109 (Get_Column_Number): Declare.
20110 (Instantiation): Likewise.
20112 2005-11-14 Robert Dewar <dewar@adacore.com>
20114 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
20115 syntax, which could cause compiler hangs.
20117 2005-11-14 Vincent Celier <celier@adacore.com>
20119 * prj-ext.adb: Take into account new environment variable
20120 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
20122 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
20123 normalize its path name, making it absolute and resolving symbolic
20124 links, and replace the original if resolved path is different.
20126 2005-11-14 Vincent Celier <celier@adacore.com>
20128 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
20129 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
20131 2005-11-14 Emmanuel Briot <briot@adacore.com>
20133 * prj-pp.adb (Print): Do not output the with statement if the
20134 associated name is empty, which happens for virtual extending projects.
20135 (Print): Preserve the "extends all" attribute when printing the project.
20137 * prj-tree.ads (String_Value_Of): Add comment about returned value for
20138 a virtual extending project.
20140 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20142 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
20143 rhs of an assignment even if the type is unconstrained, when the
20144 context is non-expanding.
20145 In an inlined body, if the context type is private,
20146 resolve with its full view, which must be a composite type.
20148 2005-11-14 Robert Dewar <dewar@adacore.com>
20149 Ed Schonberg <schonberg@adacore.com>
20151 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20152 Do not give obsolescent warning on with of subprogram (since we
20154 (Analyze_With_Clause): Add test for obsolescent package
20155 (Install_Context_Clauses): If the unit is the body of a child unit, do
20156 not install twice the private declarations of the parents, to prevent
20157 circular lists of Use_Clauses in a parent.
20158 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
20159 compiling body of child unit.
20160 Use new class N_Subprogram_Instantiation
20161 (Expand_With_Clause): If this is a private with_clause for a child unit,
20162 appearing in the context of a package declaration, then the implicit
20163 with_clauses generated for parent units are private as well.
20164 (License_Check): Do not generate message if with'ed unit is internal
20166 2005-11-14 Gary Dismukes <dismukes@adacore.com>
20167 Ed Schonberg <schonberg@adacore.com>
20168 Thomas Quinot <quinot@adacore.com>
20170 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
20171 names are internal, because they will not have a corresponding partner
20172 in the actual package.
20173 (Analyze_Formal_Package): Move the setting of the formal package spec's
20174 Generic_Parent field so that it occurs prior to analyzing the package,
20175 to allow proper operation of Install_Parent_Private_Declarations.
20176 (Analyze_Package_Instantiation): Set the instantiated package entity's
20177 Package_Instantiation field.
20178 (Get_Package_Instantiation_Node): Move declaration to package spec.
20179 Retrieve the N_Package_Instantiation node when the Package_Instantiation
20181 (Check_Generic_Child_Unit): Within an inlined call, the only possible
20182 instantiation is Unchecked_Conversion, for which no parents are needed.
20183 (Inline_Instance_Body): Deinstall and record the use_clauses for all
20184 parent scopes of a scope being removed prior to inlining an instance
20186 (Analyze_Package_Instantiation): Do not perform front-end inlining when
20187 the current context is itself an instance within a non-instance child
20188 unit, to prevent scope stack errors.
20189 (Save_References): If the node is an aggregate that is an actual in a
20190 call, rewrite as a qualified expression to preserve some type
20191 information, to resolve possible ambiguities in the instance.
20192 (Instance_Parent_Unit): New global variable to record the ultimate
20193 parent unit associated with a generic child unit instance (associated
20194 with the existing Parent_Unit_Visible flag).
20195 (type Instance_Env): New component Instance_Parent_Unit for stacking
20196 parents recorded in the global Instance_Parent_Unit.
20197 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
20199 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
20200 it's not a top-level unit, and only do this if Instance_Parent_Unit is
20201 not already set. Replace test of Is_Child_Unit with test of parent's
20202 scope against package Standard. Add comments and a ??? comment.
20203 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
20204 on a child instance parent to test that the parent equals
20205 Instance_Parent rather than simply checking that the unit is not a
20207 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
20208 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
20209 a formal interface are ancestors of the corresponding actual.
20210 (Validate_Formal_Interface_Type): Additional legality checks.
20211 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
20212 interface types with ancestors.
20213 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
20214 to diagnose attempts to use generic within its own declaration.
20216 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20217 Javier Miranda <miranda@adacore.com>
20219 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
20221 (Build_Private_Derived_Type): The entity of the created full view of the
20222 derived type does not come from source. If after installing the private
20223 declarations of the parent scope the parent is still private, use its
20224 full view to construct the full declaration of the derived type.
20225 (Build_Derived_Record_Type): Relax the condition that controls the
20226 execution of the check that verifies that the partial view and
20227 the full view agree in the set of implemented interfaces. In
20228 addition, this test now only takes into account the progenitors.
20229 (Derive_Interface_Subprograms): No need to derive subprograms
20230 of ancestors that are interfaces.
20231 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
20233 Change name Is_Package to Is_Package_Or_Generic_Package
20234 (Complete_Subprograms_Derivation): Handle the case in which the full
20235 view is a transitive derivation of the ancestor of the partial view.
20236 (Process_Full_View): Rename local subprogram Find_Interface_In_
20237 Descendant to Find_Ancestor_Interface to leave the code more clear.
20238 Remove wrong code that avoids the generation of an error message
20239 when the immediate ancestor of the partial view is an interface.
20240 In addition some minor reorganization of the code has been done to
20241 leave it more clear.
20242 (Analyze_Type_Declaration): If type has previous incomplete tagged
20243 partial view, inherit properly its primitive operations.
20244 (Collect_Interfaces): Make public, for analysis of formal
20246 (Analyze_Interface_Declaration): New procedure for use for regular and
20247 formal interface declarations.
20248 (Build_Derived_Record_Type): Add support for private types to the code
20249 that checks if a tagged type implements abstract interfaces.
20250 (Check_Aliased_Component_Type): The test applies in the spec of an
20252 (Access_Type_Declaration): Clean up declaration of malformed type
20253 declared as an access to its own classwide type, to prevent cascaded
20255 (Collect_Interfaces): For private extensions and for derived task types
20256 and derived protected types, the parent may be an interface that must
20257 be included in the interface list.
20258 (Access_Definition): If the designated type is an interface that may
20259 contain tasks, create Master_Id for it before analyzing the expression
20260 of the declaration, which may be an allocator.
20261 (Record_Type_Declaration): Set properly the interface kind, for use
20262 in allocators, the creation of master id's for task interfaces, etc.
20264 2005-11-14 Javier Miranda <miranda@adacore.com>
20265 Ed Schonberg <schonberg@adacore.com>
20267 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
20268 omitted in case of stream attribute subprograms.
20269 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
20270 appear immediately after a subprogram body, when there is no previous
20271 subprogram declaration.
20272 Change name Is_Package to Is_Package_Or_Generic_Package
20273 (Process_Formals): A non null qualifier on a non null named access
20274 type is not an error, and is a warning only if Redundant_Constructs
20277 2005-11-14 Gary Dismukes <dismukes@adacore.com>
20278 Ed Schonberg <schonberg@adacore.com>
20280 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
20281 nested within Analyze_Package_Specification to install the private
20282 declarations and use clauses within each of the parent units of a
20283 package instance of a generic child package.
20284 (Analyze_Package_Specification): When entering a private part of a
20285 package associated with a generic instance or formal package, the
20286 private declarations of the parent must be installed (by calling new
20287 procedure Install_Parent_Private_Declarations).
20288 Change name Is_Package to Is_Package_Or_Generic_Package
20289 (Preserve_Full_Attributes): For a synchronized type, the corresponding
20290 record is absent in a generic context, which does not indicate a
20293 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20295 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
20296 not try to rewrite a renamed stream attribute, because the operations
20297 on the type may not have been generated.
20298 Handle properly a renaming_as_body generated for a stream operation
20299 whose default is abstract because the object type itself is abstract.
20300 (Find_Type): If the type is incomplete and appears as the prefix of a
20301 'Class reference, it is tagged, and its list of primitive operations
20302 must be initialized properly.
20303 (Chain_Use_Clauses): When chaining the use clauses that appear in the
20304 private declaration of a parent unit, prior to compiling the private
20305 part of a child unit, find on the scope stack the proper parent entity
20306 on which to link the use clause.
20307 (Note_Redundant_Use): Emit a warning when a redundant use clause is
20309 (Analyze_Object_Renaming): An attribute reference is not a legal object
20310 if it is not a function call.
20312 2005-11-14 Robert Dewar <dewar@adacore.com>
20313 Ed Schonberg <schonberg@adacore.com>
20315 * sem_eval.adb: Implement d.f flag
20316 (Subtype_Statically_Match): A generic actual type has unknown
20317 discriminants when the corresponding actual has a similar partial view.
20318 If the routine is called to validate the signature of an inherited
20319 operation in a child instance, the generic actual matches the full view,
20321 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
20322 Ed Schonberg <schonberg@adacore.com>
20323 Robert Dewar <dewar@adacore.com>
20324 Thomas Quinot <quinot@adacore.com>
20326 * sem_res.adb (Resolve_Call): Provide a better error message whenever
20327 a procedure call is used as a select statement trigger and is not an
20328 entry renaming or a primitive of a limited interface.
20329 (Valid_Conversion): If the operand has a single interpretation do not
20330 remove address operations.
20331 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
20332 statement to inhibit warning.
20333 (Resolve_Unary_Op): Do not produce a warning when
20334 processing an expression of the form -(A mod B)
20335 Use Universal_Real instead of Long_Long_Float when we need a high
20336 precision float type for the generated code (prevents gratuitous
20337 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20338 (Resolve_Concatenation_Arg): Improve error message when argument is an
20339 ambiguous call to a function that returns an array.
20340 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
20341 there is an implicit operator in the given scope if we are within an
20342 instance: legality check has been performed on the generic.
20343 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
20344 after resolving operand, to avoid false warnings on overloaded calls.
20346 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20347 Javier Miranda <miranda@adacore.com>
20350 * sem_type.adb (Covers): In an inlined body, a composite type matches
20351 a private type whose full view is a composite type.
20352 (Interface_Present_In_Ancestor): Protect the frontend against
20353 previously detected errors to ensure that its compilation
20354 with assertions enabled gives the same output that its
20355 compilation without assertions.
20356 (Interface_Present_In_Ancestor): Add support for private types.
20357 Change name In_Actual to In_Generic_Actual (clean up)
20358 (Disambiguate): New predicate In_Actual, to recognize expressions that
20359 appear in the renaming declaration generated for generic actuals, and
20360 which must be resolved in the outer context.
20362 2005-11-14 Robert Dewar <dewar@adacore.com>
20363 Thomas Quinot <quinot@adacore.com>
20364 Hristian Kirtchev <kirtchev@adacore.com>
20365 Ed Schonberg <schonberg@adacore.com>
20367 * sem_util.ads, sem_util.adb: Change name Is_Package to
20368 Is_Package_Or_Generic_Package.
20369 (Check_Obsolescent): New procedure.
20370 (Set_Is_Public): Remove obsolete junk test.
20371 (Set_Public_Status): Do not set Is_Public on an object whose declaration
20372 occurs within a handled_sequence_of_statemets.
20373 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
20374 for a parameterless procedure.
20375 (Enter_Name): Recognize renaming declarations created for private
20376 component of a protected type within protected operations, so that
20377 the source name of the component can be used in the debugger.
20379 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20380 Robert Dewar <dewar@adacore.com>
20382 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
20383 of a generic subprogram are not visible outside the body.
20384 (Set_Warning_Switch): New procedure (code to set warning mode moved
20385 here from Switch.C so that it can be shared by pragma processing.
20386 (Check_References): Special case warning for non-modified non-imported
20388 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
20389 form with a string literal argument
20391 2005-11-14 Javier Miranda <miranda@adacore.com>
20393 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
20395 (Write): Addition of "not null" to the anonymous access.
20396 (Read): Addition of "not null" to the anonymous access.
20397 (Write): Addition of "not null" to the anonymous access.
20399 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
20400 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
20401 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
20402 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
20403 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
20404 "not null" to the anonymous access.
20406 2005-11-14 Robert Dewar <dewar@adacore.com>
20408 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
20411 2005-11-14 Vincent Celier <celier@adacore.com>
20413 * switch.adb (Bad_Switch): New procedure
20414 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
20415 message when in error.
20417 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
20418 Too_Many_Output_Files): Remove declarations, no longer used.
20419 (Scan_Nat): New parameter Switch
20421 (Bad_Switch): New procedure
20423 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
20424 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
20425 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
20426 to Osint.Fail. Do not handle any exception.
20428 2005-11-14 Vincent Celier <celier@adacore.com>
20430 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
20431 designates a non existent directory.
20433 2005-11-14 Robert Dewar <dewar@adacore.com>
20435 * xgnatugn.adb: Replace invalid membership test by 'Valid
20437 2005-11-14 Vincent Celier <celier@adacore.com>
20439 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
20440 there is no object directory.
20442 2005-11-14 Robert Dewar <dewar@adacore.com>
20444 * usage.adb: Minor adjustment to output format, use nn instead of nnn
20445 (so that -gnateInnn does not run into next column)
20447 2005-11-14 Ed Falis <falis@adacore.com>
20449 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
20452 2005-11-14 Cyrille Comar <comar@adacore.com>
20454 * s-chepoo.ads: Add comments on Dereference.
20455 Remove unnecessary inherited abstract primitives.
20458 2005-11-14 Robert Dewar <dewar@adacore.com>
20460 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
20461 node parameter, not needed, since it is available as Declaration_Node.
20463 2005-11-14 Geert Bosch <bosch@adacore.com>
20465 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
20466 grammatically correct.
20468 2005-11-14 Vincent Celier <celier@adacore.com>
20470 * s-fileio.ads: Correct spelling error in comment
20472 2005-11-14 Cyrille Comar <comar@adacore.com>
20473 Robert Dewar <dewar@adacore.com>
20474 Vincent Celier <celier@adacore.com>
20475 Ben Brosgol <brosgol@adacore.com>
20476 Jose Ruiz <ruiz@adacore.com>
20477 Pascal Obry <obry@adacore.com>
20480 Document that -fstack-check is needed for strict compliance with the
20481 Ada 95 Reference Manual.
20482 Correct reference to VAX systems to meet HP guidelines
20483 Add documentation for new gnatmake switches -vl, -vm and -vh
20484 Replace DEC Ada by HP Ada
20485 Replace DIGITAL by HP
20486 Remove empty section on tools in compatibility section
20487 Clarify the Windows convention semantics.
20488 Document the Win32 calling convention.
20489 The Stdcall, Win32 and DLL convention are synonyms.
20490 Add a note in -gnatR description about zero size record components
20491 Note on new >= and <= warnings for -gnatwc
20492 Document that equal sign after -gnatm is optional.
20493 Note that strip is working fine on DLL built with a Library
20494 Project. The restriction apply only to DLL built with gnatdll.
20495 Update section about the way to debug a DLL.
20496 Update information about the DLL convention.
20497 Document -C switch for gnatprep
20498 Document new attribute Library_ALI_Dir
20499 Update elaboration doc to include implicit Elaborate pragmas now
20500 generated for subprogram instantiations.
20501 Document limitation on executable names that include spaces for --GCC,
20502 --GNATBIND, and --GNATLINK switches.
20503 Document that -w causes -gnatws to be added at start of gcc switches
20505 * gnat_rm.texi: Document that -mieee is needed for generating infinite
20506 and NaN values in case of overflow on machines that are not fully
20507 compliant with the IEEE floating-point standard.
20508 Create a section describing the set of compiler options needed for
20509 strict compliance with the Ada 95 Reference Manual.
20510 Add documentation for pragma Obsolescent applied to a package
20511 Clarify potential issues of mixed language programs related to the
20512 I/O buffering enabling in the elaboration of the GNAT runtime.
20513 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
20514 This documentation only patch adds extra documentsion for pragma
20515 Restrictions (No_Elaboration_Code), explaining why it is not possible
20516 to document this restriction in terms of allowed source constructs.
20517 Document string literal form of pragma Warnings
20518 Document new attribute Library_ALI_Dir
20519 Add documentation on stable attributes in project files that was missing
20521 * gnat-style.texi: Indicate that paragraphs within a single comment
20522 should be separated by empty comment lines
20524 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
20527 * bindusg.adb: Minor cleanup, put -m before -M for consistency
20529 2005-11-14 Robert Dewar <dewar@adacore.com>
20531 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
20532 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
20533 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
20534 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
20535 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
20536 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
20537 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
20538 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
20539 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
20540 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
20541 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
20542 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
20543 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
20544 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
20545 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
20546 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
20547 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
20548 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
20549 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
20550 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
20551 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20552 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
20553 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
20554 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
20555 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
20556 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
20557 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
20558 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
20559 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
20560 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
20561 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
20562 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
20563 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
20564 system-interix.ads, system-solaris-sparc.ads,
20565 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
20566 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
20567 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
20568 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
20569 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
20570 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
20571 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
20572 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
20573 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
20574 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
20575 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
20576 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
20577 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
20578 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
20579 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
20580 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
20581 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
20582 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
20583 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
20584 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
20585 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
20586 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
20587 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
20588 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
20589 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
20590 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20591 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
20592 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
20593 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
20594 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
20595 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
20596 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
20597 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20598 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
20599 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
20600 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
20601 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
20602 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
20603 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
20604 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
20605 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
20606 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
20607 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
20608 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
20609 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
20610 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
20611 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
20612 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
20613 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
20614 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
20615 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
20616 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
20617 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
20618 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
20619 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
20620 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
20621 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
20622 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
20623 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
20624 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
20625 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
20626 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
20627 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
20628 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
20629 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
20630 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
20631 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
20632 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
20633 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
20634 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
20635 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
20636 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
20637 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
20638 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
20639 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
20640 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
20641 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
20642 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
20643 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
20644 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
20645 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
20646 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
20647 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
20648 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
20649 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
20650 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
20651 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
20652 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
20653 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
20654 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
20655 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
20656 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
20657 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
20658 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
20659 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
20660 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
20661 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
20662 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
20663 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
20664 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
20665 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
20666 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
20667 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
20668 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
20669 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
20670 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
20671 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
20672 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
20673 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
20674 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
20675 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
20676 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
20677 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
20678 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
20679 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
20680 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
20681 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
20682 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
20683 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
20684 a-numaux-darwin.ads, a-numaux-darwin.adb,
20685 a-swuwha.ads, a-stunha.ads: Minor reformatting
20687 2005-11-14 Robert Dewar <dewar@adacore.com>
20690 * osint-m.adb: Add pragma Elaborate_All for Osint
20692 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
20695 * trans.c (call_to_gnu): Restore statement lost in translation.
20697 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
20699 * init.c: Use the Linux-specific section for the IA-64/Linux target.
20700 (__gnat_adjust_context_for_raise): Add conditional code so that the
20701 IA-64 is also supported.
20703 2005-11-03 James E Wilson <wilson@specifix.com>
20706 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
20707 TREE_OVERFLOW check.
20709 2005-09-21 Olivier Hainque <hainque@adacore.com>
20712 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
20713 as we create them to store a size in bits.
20715 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
20723 * utils2.c (build_return_expr): New helper function.
20724 * gigi.h (build_return_expr): Declare it.
20725 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
20726 of manually building the RETURN_EXPR tree.
20727 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
20728 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
20729 build_binary_op for the "target pointer" case. Use build_return_expr
20730 instead of manually building the RETURN_EXPR tree.
20732 2005-09-16 Laurent Guerby <laurent@guerby.net>
20735 * s-tpinop.ads: Make this unit Preelaborate.
20737 2005-09-16 Andreas Jaeger <aj@suse.de>
20739 * socket.c: Add string.h for memcpy.
20741 2005-09-05 Arnaud Charlet <charlet@adacore.com>
20743 * dec-io.ads, dec-io.adb: Removed, no longer used.
20745 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20747 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
20749 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20750 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
20751 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
20752 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
20753 dependent units are Preelaborate.
20754 (Initialize): Call Interrupt_Managemeent.Initialize and
20755 OS_Primitives.Initialize to ensure proper initialization of this unit.
20756 Remove use of System.Soft_Links
20757 Make this unit Preelaborate.
20759 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20760 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
20761 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
20762 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
20763 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
20764 s-tratas.ads, s-tasinf.ads: Minor reformatting.
20765 Add pragma Preelaborate, since these packages are suitable for this
20769 * s-traent-vms.ads, s-intman-dummy.adb,
20770 s-taprop-dummy.adb: Make this unit Preelaborate.
20772 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
20773 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
20774 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
20775 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
20776 s-intman-solaris.adb, s-intman-irix-athread.adb,
20777 s-intman-irix.adb: Mark this unit Preelaborate.
20778 (Initialize): New procedure.
20781 * s-taspri-linux.ads: Removed.
20783 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
20784 as done by other implementations (e.g. posix).
20786 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
20787 responsible for deferring abort.
20788 Mark this unit Preelaborate.
20790 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
20791 proper initialization of the tasking run-time.
20793 * s-tasdeb.ads: Mark this unit Preelaborate.
20794 (Known_Tasks): Add explicit default value to avoid elaboration code.
20796 * s-inmaop-vms.adb (Elaboration code): Add call to
20797 Interrupt_Management.Initialize since the elaboration code depends on
20798 proper initialization of this package.
20800 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
20801 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
20802 s-osprim-posix.adb: Make this unit Preelaborate.
20804 * a-calend.adb: Add call to OS_Primitives.Initialize
20806 * a-elchha.adb: Update use of Except.Id.Full_Name.
20807 Minor reformatting.
20808 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
20810 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
20811 Move with clauses outside Warnings Off now that dependent units are
20813 Use raise xxx with "..."; Ada 2005 form.
20815 * a-taside.ads, a-taside.adb:
20816 Remove some dependencies, to make it easier to make this unit truly
20818 Rewrite some code to be conformant with Preelaborate rules.
20820 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
20821 marked Preelaborate in the future.
20823 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
20824 these units Preelaborate.
20826 * s-exctab.adb: Update use of Except.Id.Full_Name.
20828 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
20829 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
20830 Set_Exc_Stack_Addr): Removed, no longer used.
20831 Remove reference to *Machine_State_Addr*, no longer needed.
20833 * s-stalib.ads: Mark this unit as Preelaborate[_05].
20834 (Exception_Data): Full_Name is now a System.Address so that this unit
20835 can be made Preelaborate.
20836 Clean up/simplify code thanks to Full_Name being a System.Address.
20837 Remove obsolete pragma Suppress (All_Checks), no longer needed.
20839 * s-taskin.ads, s-taskin.adb:
20840 Move with clauses outside Warnings Off now that dependent units are
20842 Make this unit Preelaborate.
20843 (Initialize): New proceduure, replace elaboration code and makes the
20844 set up of the tasking run-time cleaner.
20845 (Detect_Blocking): Now a function instead of a deferred boolean, to
20846 obey Preelaborate rules.
20848 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
20849 soft links, no longer used.
20851 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
20852 packages are suitable for this categorization.
20854 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
20855 since we compile run-time sources in Ada 2005 mode.
20856 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
20857 avoid having s-taprop*.adb depend on s-soflin and to avoid code
20859 Remove reference to *Machine_State_Addr*, no longer needed.
20861 2005-09-01 Arnaud Charlet <charlet@adacore.com>
20863 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
20864 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20865 Remove reference to System.Exceptions.
20867 * s-mastop-x86.adb: Removed, no longer used.
20869 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
20871 * a-excach.adb: Minor reformatting.
20873 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
20874 instead fix new warnings that were hidden by this change.
20875 (AAA, ZZZ): Removed, replaced by...
20876 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
20877 are used instead of constants, to help make Ada.Exception truly
20879 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
20880 Raise_Storage_Error): File is now a System.Address, to simplify code.
20881 (Elab code): Removed, no longer used.
20882 (Null_Occurrence): Remove Warnings Off and make this construct
20884 Remove code related to front-end zero cost exception handling, since
20885 it is no longer used.
20886 Remove -gnatL/-gnatZ switches.
20888 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
20889 Update use of Except.Msg.
20891 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
20892 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
20893 to front-end zero cost exception handling, since it is no longer used.
20894 Remove -gnatL/-gnatZ switches.
20896 * lib-writ.ads: Minor reformatting
20899 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
20901 * Make-lang.in: Remove references to s-except.ads
20903 * s-except.ads: Removed, no longer used.
20905 * s-mastop.ads, s-mastop.adb:
20906 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
20907 Remove reference to System.Exceptions.
20909 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
20910 switch-b.adb: Remove code related to front-end zero cost exception
20911 handling, since it is no longer used.
20912 Remove -gnatL/-gnatZ switches.
20914 2005-09-01 Robert Dewar <dewar@adacore.com>
20915 Gary Dismukes <dismukes@adacore.com>
20916 Javier Miranda <miranda@adacore.com>
20918 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
20919 type by valid test and generate warning.
20920 (Tagged_Membership): Generate call to the run-time
20921 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
20922 Change formal name Subtype_Mark to Result_Definition in several calls to
20923 Make_Function_Specification.
20924 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
20925 check for proper accessibility of the operand of a class-wide allocator.
20926 The check can be left out if checks are suppressed or if the expression
20927 has a specific tagged type whose level is known to be safe.
20929 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
20930 generates the run-time check associated with null-excluding entities.
20931 (Expand_N_Return_Statement): Add tests to determine if the accessibility
20932 check on the level of the return expression of a class-wide function
20933 can be elided. The check usually isn't needed if the expression has a
20934 specific type (unless it's a conversion or a formal parameter). Also
20935 add a test for whether accessibility checks are suppressed. Augment
20936 the comments to describe the conditions for performing the check.
20938 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
20939 Javier Miranda <miranda@adacore.com>
20940 Gary Dismukes <dismukes@adacore.com>
20941 Ed Schonberg <schonberg@adacore.com>
20943 * a-tags.adb (IW_Membership): Give support to
20944 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
20945 subprogram has been extended to look for the tag in the ancestors tag
20947 Update the structure of the GNAT Dispatch Table to reflect the
20948 additional two tables used in dispatching selects.
20949 Introduce appropriate array types and record components in
20950 Type_Specific_Data to reflect the two tables.
20951 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
20952 the TSD of a tag, indexed by position.
20953 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
20954 operation kind in the TSD of a tag, indexed by position.
20956 * a-tags.ads: Introduce an enumeration type to capture different
20957 primitive operation kinds. Define a constant reflecting the number of
20958 predefined primitive operations.
20959 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
20960 of an entry wrapper.
20961 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
20962 callable entity of a primitive operation.
20964 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
20965 primitive operations used in dispatching selects for limited
20966 interfaces, limited tagged, task and protected types what implement a
20968 (Freeze_Type): Generate the bodies of the primitive operations used in
20969 dispatching selects for limited tagged, task and protected types that
20970 implement a limited interface. Generate statements to populate the two
20971 auxiliary tables used for dispatching in select statements.
20972 (Freeze_Record_Type): Add call to initialize the dispatch table entries
20973 associated with predefined interface primitive operations.
20974 (Build_Dcheck_Function): Change Set_Subtype_Mark to
20975 Set_Result_Definition.
20976 (Build_Variant_Record_Equality): Change Subtype_Mark to
20978 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
20979 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
20980 (Build_Assignment): Simplify the code that adds the run-time-check.
20981 (Expand_N_Object_Declaration): Code cleanup.
20983 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
20984 entries when there is a protected type that implements a limited
20987 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
20988 common routines used in expansion of dispatching selects.
20989 (Add_Private_Declarations): Select the appropriate protection type when
20990 there is a protected type that implements a limited interface.
20991 (Build_Parameter_Block): Generate a wrapped parameter block.
20992 (Build_Protected_Subprogram_Body): Select the appropriate type for
20993 locking entries when there is a protected type that implements a
20995 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
20996 classified as entry wrappers.
20997 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
20998 asynchronous selects.
20999 (Expand_N_Conditional_Entry_Call): Add support for expansion of
21000 dispatching conditional selects.
21001 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
21002 protection when there is a protected type that implements limited
21004 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
21006 (Extract_Dispatching_Call): Extract the entity of the name of a
21007 dispatching call, the object parameter, actual parameters and
21008 corresponding formals.
21009 (Make_Initialize_Protection): Correct logic of protection initialization
21010 when there is a protected type that implements a limited interface.
21011 (Parameter_Block_Pack): Populate a wrapped parameter block with the
21012 values of actual parameters.
21013 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
21014 block and assign them to the original actual parameters.
21016 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
21017 (Build_Protected_Sub_Specification): Change the type and name of the
21018 last formal to account for the increased variety of protection modes.
21020 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
21021 entities. Used to save the value of the Is_Hidden attribute when the
21022 limited-view is installed.
21023 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
21024 the attribute of procedures classified as entry wrappers.
21025 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
21026 entity of a primitive wrapper.
21027 (Write_Entity_Flags): Output the name and value of the
21028 Is_Primitive_Wrapper attribute.
21029 (Write_Field27_Name): Output the name and entity of the field Wrapped_
21031 (Underlying_Type): If we have an incomplete entity that comes from
21032 the limited view then we return the Underlying_Type of its non-limited
21033 view if it is already available.
21034 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
21035 including operators.
21036 (Write_Field26_Name): Add entry for Overridden_Operation
21037 (Overridden_Operation): New attribute of functions and procedures.
21039 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
21040 predefined position in the dispatch table for the primitive operations
21041 used in dispatching selects.
21042 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
21043 predefined primitive operations and replace it with
21044 Default_Prim_Op_Count.
21045 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
21046 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
21047 the names of the generated primitive operations used in dispatching
21049 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
21050 case of abstract interface types. They will be inherit by the objects
21051 implementing the interface.
21052 (Make_DT): There is no need to inherit the dispatch table of the
21053 ancestor interface for the elaboration of abstract interface types.
21054 The dispatch table will be inherited by the object implementing the
21056 (Copy_Secondary_DTs): Add documentation.
21057 (Validate_Position): Improve this static check in case of
21058 aliased subprograms because aliased subprograms must have
21060 (Init_Predefined_Interface_Primitives): New subprogram that initializes
21061 the entries associated with predefined primitives of all the secondary
21063 (Build_Anonymous_Access_Type): Removed.
21064 (Expand_Interface_Actuals): With the previous cleanup there is no need
21065 to build an anonymous access type. This allows further cleanup in the
21066 code generated by the expander.
21067 (Expand_Interface_Conversion): If the actual is an access type then
21068 build an internal function to handle the displacement. If the actual
21069 is null this function returns null because no displacement is
21070 required; otherwise performs a type conversion that will be
21071 expanded in the code that returns the value of the displaced actual.
21072 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
21073 conversions that have no effect in the generated code because no
21074 displacement is required. Code cleanup; use local variables to
21075 avoid repeated calls to the subprogram directly_designated_type().
21077 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
21078 Classify the primitive operations used in dispatching selects as
21080 (Implements_Limited_Interface): Determine whether some type either
21081 directly implements a limited interface or extends a type that
21082 implements a limited interface.
21083 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
21084 (Expand_Subtype_From_Expr): Do not build actual subtype if the
21085 expression is limited.
21086 (Find_Interface_Tag): Add code to handle class-wide types and
21087 entities from the limited-view.
21089 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
21090 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
21091 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
21092 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
21095 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
21096 of procedure name or prefix that appears as a trigger in a triggering
21099 * uintp.ads: Introduce constants Uint_11 and Uint_13.
21101 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21103 * s-tataat.adb, a-tasatt.adb:
21104 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
21106 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
21107 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
21108 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
21111 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21112 Jose Ruiz <ruiz@adacore.com>
21114 * s-taprop-vxworks.adb:
21115 Move with clauses outside Warnings Off now that dependent units are
21117 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
21118 initialization of this unit.
21119 (Specific): Add new procedures Initialize and Delete so that this
21120 package can be used for VxWorks 5.x and 6.x
21121 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
21122 differences between VxWorks 5.x and 6.x
21123 Minor reformatting.
21124 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
21126 Use only Preelaborate-compatible constructs.
21128 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
21129 Primitives.Operations.
21130 (Delete, Initialize): New procedures.
21132 * s-osinte-vxworks.adb: Body used to handle differences between
21133 VxWorks 5.x and 6.x
21134 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
21136 * s-osinte-vxworks.ads: Minor reformatting.
21137 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
21138 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
21140 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
21141 between Vxworks 5 and 6.
21142 (taskLock, taskUnlock): Removeed, no longer used.
21144 * adaint.c: The wait.h header is not located in the sys directory on
21145 VxWorks when using RTPs.
21146 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
21148 (__gnat_dup): dup is available on Vxworks when using RTPs.
21149 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
21151 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
21153 * expect.c: The wait.h header is not located in the sys directory on
21154 VxWorks when using RTPs.
21156 2005-09-01 Thomas Quinot <quinot@adacore.com>
21158 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
21160 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
21162 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
21163 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21164 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
21165 g-soccon-freebsd.ads: Add new constants:
21167 SO_RCVTIMEO/SO_SNDTIMEO
21171 Move all target-specific file inclusions and macro definitions to
21172 gsocket.h, in order to ensure that any C code in socket.c will see a
21173 set of constants that is consistent with the contents of g-soccon.ads.
21175 * gsocket.h: Code imported from gen-soccon.c:
21176 Move all target-specific file inclusions and macro definitions to
21177 gsocket.h, in order to ensure that any C code in socket.c will see a set
21178 of constants that is consistent with the contents of g-soccon.ads.
21179 This change also makes gen-soccon self-contained (removing dependencies
21180 upon GCC internal headers).
21182 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
21184 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
21186 * socket.c: Minor reformatting.
21188 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21189 Thomas Quinot <quinot@adacore.com>
21191 * fname-sf.adb, mlib-tgt.ads,
21192 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
21193 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
21194 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
21195 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
21196 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
21197 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
21198 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
21199 makegpr.adb: Remove redundant use_clauses.
21201 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21203 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
21204 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
21205 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
21206 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
21207 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
21208 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
21209 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
21210 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
21211 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
21212 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
21213 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
21214 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
21215 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
21216 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
21217 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
21218 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
21219 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
21220 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
21221 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
21222 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
21223 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
21224 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
21225 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
21226 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
21227 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
21228 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
21229 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
21230 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
21231 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
21232 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
21233 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
21234 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
21235 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
21236 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
21237 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
21238 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
21239 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
21240 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
21241 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
21242 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
21243 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
21244 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
21245 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
21246 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
21247 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
21248 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
21249 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
21250 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
21251 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
21252 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
21253 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
21254 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
21255 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
21256 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
21257 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
21258 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
21259 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
21260 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
21261 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
21262 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
21263 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
21264 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
21265 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
21266 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
21267 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
21268 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
21269 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
21270 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
21271 and always use the no parameter form for consistency.
21273 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
21275 2005-09-01 Robert Dewar <dewar@adacore.com>
21277 * binde.adb: Minor reformatting
21278 (Find_Elab_Order): Output warning if -p used with static elab order
21280 2005-09-01 Robert Dewar <dewar@adacore.com>
21282 * checks.adb (Check_Needed): New procedure, deals with removing checks
21283 based on analysis of short-circuited forms. Also generates warnings for
21284 improper use of non-short-circuited forms.
21287 2005-09-01 Robert Dewar <dewar@adacore.com>
21289 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
21292 2005-09-01 Robert Dewar <dewar@adacore.com>
21294 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
21296 Implement new insertion char < (conditional warning)
21297 * errutil.adb, erroutc.adb: Implement new insertion char <
21298 (conditional warning).
21299 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
21300 (Error_Msg_Warn): New variable for < insertion char.
21301 * prj-nmsc.adb: Implement new errout insertion char < (conditional
21303 (Check_For_Source): Change value of Source_Id only after the current
21304 source has been dealt with.
21306 2005-09-01 Robert Dewar <dewar@adacore.com>
21307 Doug Rupp <rupp@adacore.com>
21309 * exp_attr.adb: Handle vax fpt for 'Valid attribute
21310 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
21311 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
21312 (Valid_D, Valid_F, Valid_G): New functions
21314 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21315 Hristian Kirtchev <kirtchev@adacore.com>
21316 Javier Miranda <miranda@adacore.com>
21318 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
21319 from object notation, the original node is unanalyzed and carries no
21320 semantic information, so that accessiblity checks must be performed on
21321 the type of the actual itself.
21322 (Expand_N_Subprogram_Declaration): Change last actual parameter for
21323 compatibility with Build_Protected_Sub_Specification.
21324 (Check_Overriding_Inherited_Interfaces): Add suport to handle
21325 overloaded primitives.
21326 (Register_Interface_DT_Entry): Use the new name of the formal
21327 the the calls to Expand_Interface_Thunk
21329 * exp_dbug.ads: Augment comments on encoding of protected types to
21330 include the generation of dispatching subprograms when the type
21331 implements at least one interface.
21333 * lib.ads: Extend information in Load_Stack to include whether a given
21334 load comes from a Limited_With_Clause.
21336 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
21337 whether a potential circularity is harmless, because it includes units
21338 loaded through a limited_with clause. Extends previous treatment which
21339 did not handle properly arbitrary combinations of limited and
21340 non-limited clauses.
21342 2005-09-01 Nicolas Setton <setton@adacore.com>
21344 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
21345 to be encoded as typ___XBLU_lowerbound__upperbound instead of
21346 typ___XB_lowerbound__upperbound.
21348 2005-09-01 Thomas Quinot <quinot@adacore.com>
21350 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
21351 dummy access formal for RACW/RAS TypeCode TSS.
21352 (Build_TypeCode_Call): Do not generate dummy null access actual for
21353 calls to the TypeCode TSS.
21355 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21357 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
21358 fully qualified name, to distinguish instances with the same local name.
21360 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
21363 2005-09-01 Robert Dewar <dewar@adacore.com>
21365 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
21368 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
21370 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
21371 (Free): New deallocation procedure for filter elements
21372 (Close): Deallocate any existing filter for the concerned connection
21374 2005-09-01 Laurent Pautet <pautet@adacore.com>
21376 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
21377 position set is provided, we compute one in order to reduce the maximum
21378 length of the keys. This computation first selects a character
21379 position between 1 and the minimum length of the keys in order to
21380 avoid reducing one of the keys to an empty string.
21381 (Initialize, Compute): When the ratio V to K is too low, the algorithm
21382 does not converge. The initialization procedure now comes with a
21383 maximum number of iterations such that when exceeded, an exception is
21384 raised in Compute. The user can initialize this ratio to another value
21386 Reformating and updated headers.
21388 2005-09-01 Javier Miranda <miranda@adacore.com>
21390 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
21391 that given an entity T creates and returns an Itype that duplicates the
21392 contents of T. The returned Itype has the null-exclusion
21393 attribute set to True, and its Etype attribute references T
21394 to keep the association between the two entities.
21395 Update copyright notice
21397 * sem_aggr.adb (Check_Can_Never_Be_Null,
21398 Aggregate_Constraint_Checks, Resolve_Aggregate,
21399 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
21401 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
21403 2005-09-01 Gary Dismukes <dismukes@adacore.com>
21404 Robert Dewar <dewar@adacore.com>
21405 Hristian Kirtchev <kirtchev@adacore.com>
21407 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
21410 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
21412 Call Set_Result_Definition instead of Set_Subtype_Mark.
21413 (P_Subprogram_Specification): Add parsing of anonymous access result
21414 plus null exclusions. Call Set_Result_Definition instead of
21417 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21418 (P_Access_Type_Definition): Add parsing for an anonymous access result
21419 subtype, plus parsing for null exclusions. Call Set_Result_Definition
21420 instead of Set_Subtype_Mark.
21422 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
21423 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
21424 (Result_Definition): New function for N_Function_Specifications.
21425 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
21426 N_Function_Specification.
21427 (Set_Null_Exclusion_Present): Allow this flag for
21428 N_Function_Specification.
21429 (Set_Result_Definition): New procedure for N_Function_Specifications.
21430 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
21431 and N_Function_Specification.
21433 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
21434 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
21435 Add support for LIMITED NEW for Ada 2005 AI-419
21436 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
21437 syntax for anonymous access results.
21438 Replace Subtype_Mark field by Result_Definition in
21439 N_Function_Specification and N_Access_Definition specs.
21440 Add Null_Exclusion_Present to spec of N_Function_Specification.
21441 (Result_Definition): New function for N_Function_Specification and
21442 N_Access_Function_Definition.
21443 (Set_Result_Definition): New procedure for N_Function_Specification and
21444 N_Access_Function_Definition.
21446 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
21447 Result_Definition for cases of N_Access_Function_Definition and
21448 N_Function_Specification.
21449 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
21451 2005-09-01 Vincent Celier <celier@adacore.com>
21453 * lib-writ.adb: Update Copyright notice
21454 (Write_With_Lines): On platforms where file names are case-insensitive,
21455 record the file names in lower case.
21456 (Write_ALI): For D lines, on platforms where file names are
21457 case-insensitive, record the file names in lower case.
21459 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21460 Emmanuel Briot <briot@adacore.com>
21462 * lib-xref.adb (Output_Overridden_Op): Display information on
21463 overridden operation.
21465 * lib-xref.ads: Add documentation on overridden operations.
21467 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
21470 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
21471 overriding entity information.
21473 2005-09-01 Vincent Celier <celier@adacore.com>
21475 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
21476 including those that are inherited.
21478 2005-09-01 Robert Dewar <dewar@adacore.com>
21480 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
21482 * par-prag.adb: Implement new pragma Debug_Policy
21484 * sem_prag.adb Implement new pragma Debug_Policy
21485 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
21486 Component_Size attribute specification. Give warning for ignored pragma
21489 * snames.h, snames.ads, snames.adb: Introduce entries in
21490 Preset_Names for Name_Disp_Asynchronous_Select,
21491 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
21492 Name_Disp_Timed_Select.
21493 New pragma Debug_Policy
21495 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
21497 Switch -gnata also sets Debug_Pragmas_Enabled
21499 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
21500 handle an explicit -gnata when compiling predefined files.
21502 2005-09-01 Vincent Celier <celier@adacore.com>
21504 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
21505 directories of projects that have no Ada sources.
21507 2005-09-01 Robert Dewar <dewar@adacore.com>
21509 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
21510 (makes a difference for wide characters)
21512 * widechar.adb, widechar.ads:
21513 Add Wide_Char_Byte_Count feature to count chars vs bytes
21515 2005-09-01 Thomas Quinot <quinot@adacore.com>
21516 Ed Schonberg <schonberg@adacore.com>
21517 Robert Dewar <dewar@adacore.com>
21519 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
21520 'Address attribute reference with an overloaded prefix, use the
21521 location of the prefix (not the location of the attribute reference) as
21522 the error location.
21523 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
21524 a function renaming thereof, is a valid prefix for 'Size (where it is
21525 intepreted as a function call).
21526 (Statically_Denotes_Entity): New predicate to determine whether the
21527 prefix of an array attribute can be considered static.
21530 (Eval_Attr): Fix failure to evaluate Component_Size for
21531 unconstrained arrays (resulted in wrong value in packed case, since
21532 back end cannot handle this case)
21534 2005-09-01 Robert Dewar <dewar@adacore.com>
21536 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
21537 error msgs for most common cases.
21538 Use new errout insertion char < (conditional warning)
21540 2005-09-01 Javier Miranda <miranda@adacore.com>
21541 Ed Schonberg <schonberg@adacore.com>
21543 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
21544 become local to the whole package.
21545 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
21546 the package was already analyzed the new algorithm "replaces" the
21547 real entities by the shadow ones. This is required to ensure that
21548 the order of these entities in the homonym chains does not change;
21549 otherwise we can have undefined references at linking time because
21550 in case of conflicts the external name of the entities will have
21551 a suffix that depends on the order of the entities in the chain.
21552 (Remove_Limited_With_Clause): Complementary code that completes the
21553 new algorithm and replaces the shadow entities by the real ones.
21554 (Install_Limited_Withed_Unit): When unchaining entities before the
21555 installation of the shadow entities, only regular entities of the
21556 public part must be taken into account. This is required to
21557 keep this routine in synch with the work done by Remove_Limited_
21559 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
21560 even if unit is analyzed, because the analysis of the unit is
21561 idempotent in any case, and the limited view of the unit may have to
21562 be installed for proper visibility.
21563 (Expand_Limited_With_Clause): Even if the unit in the implicit
21564 with_clause has been analyzed already, a limited view of the package
21565 must be built for the current context, if it does not exist yet.
21567 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21568 Javier Miranda <miranda@adacore.com>
21569 Gary Dismukes <dismukes@adacore.com>
21571 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
21572 defining entity for the instance body, make a new defining identifier
21573 rather than copying the entity of the spec, to prevent accidental
21574 sharing of the entity list.
21575 (Check_Private_View): When exchanging views of private types, build the
21576 list of exchanged views as a stack, to ensure that on exit the exchanges
21577 are undone in the proper order.
21578 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
21579 Restore the compilation environment in case of instantiation_error.
21580 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
21581 for an anonymous access result.
21582 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
21583 (Formal_Entity): Handle properly the case of a formal package that
21584 denotes a generic package renaming.
21586 2005-09-01 Thomas Quinot <quinot@adacore.com>
21588 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
21589 clause if the array aggregate is surrounded by parentheses.
21591 2005-09-01 Cyrille Comar <comar@adacore.com>
21592 Gary Dismukes <dismukes@adacore.com>
21593 Ed Schonberg <schonberg@adacore.com>
21594 Javier Miranda <miranda@adacore.com>
21596 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
21598 to check if a type is Constrained in cases related to code generation
21599 (rather than semantic checking) since otherwise we do not generate
21600 similar code for mutable private types depending if their
21601 discriminants are visible or not.
21602 (Check_Abstract_Overriding): Do not complain about failure to override
21603 the primitive operations used in dispatching selects since they will
21604 always be overriden at the freeze point of the type.
21605 (Access_Definition): Separate out handling for resetting the scope
21606 of an anonymous access function result type. Retrieve the scope
21607 of the associated function rather than using Current_Scope, which
21608 does not have a consistent value (depends on whether we're in the
21609 middle of analyzing formal parameters). Add ??? comment about
21610 finding a cleaner way to handle the special cases of scope setting.
21611 (Process_Incomplete_Dependents): A protected operation is never a
21612 dispatching operation (only its wrapper may be).
21613 (Build_Derived_Record_Type): In case of tagged private types that
21614 implement interfaces add derivation of predefined primitive
21616 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
21617 by two parameters that are used in case of derivation from abstract
21618 interface types: No_Predefined_Prims is used to avoid the derivation
21619 of predefined primitives from the interface, and Predefined
21620 Prims_Only is used to complete the derivation predefined primitives
21621 in case of private tagged types implementing interfaces.
21622 Fix typo in comments
21623 (Find_Interface_In_Descendant): Protect the frontend against
21624 wrong code with large circularity chains.
21625 (Is_Private_Overriding): Add support for entities overriding interface
21626 subprograms. The test failed because Entities associated with overriden
21627 interface subprograms are always marked as hidden (and used to build
21628 the secondary dispatch table); in this case the overriden entity is
21629 available through the field abstract_interface_alias (cf. override_
21630 dispatching_operation)
21631 (Access_Definition): Set the scope of the type to Current_Scope for the
21632 case of a function with an anonymous access result type.
21633 (Access_Subprogram_Declaration): Handle creation of the type entity for
21634 an access-to-function type with an anonymous access result.
21635 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
21636 in handling for N_Access_Function_Definition.
21637 (Analyze_Subtype_Declaration): Modify the text of error message.
21638 (Derived_Type_Declaration): Modify the text of error message.
21639 (Process_Subtype): Modify the text of error message plus cleanup
21640 of one redundant error message.
21641 (Analyze_Component_Declaration): Code cleanup.
21642 (Analyze_Object_Declaration): Code cleanup.
21643 (Analyze_Subtype_Declaration): Propagate the null-exclusion
21644 attribute in case of access types. Code cleanup.
21645 (Array_Type_Declaration): Code cleanup.
21646 (Process_Discriminants): Create the new null-excluding itype
21647 if required. Code cleanup.
21648 (Process_Subtype): Create the new null-excluding itype if
21649 required. Code cleanup.
21650 (Build_Derived_Record_Type): Code cleanup to avoid calling
21651 twice the subprogram derive_subprograms in case of private
21652 types that implement interfaces. In this particular case the
21653 subprogram Complete_Subprograms_Derivation already does the
21654 job associated with the second call.
21656 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
21657 conversion to the full view when generating an operation for a
21658 discriminant whose type may currently be private.
21660 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21661 Javier Miranda <miranda@adacore.com>
21663 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
21664 V (Obj.F), the rewriting does not involve the indexed component, but
21665 only the selected component itself.
21666 Do not apply the transformation if the analyzed node is an actual of a
21667 call to another subprogram.
21668 (Complete_Object_Operation): Retain the entity of the
21669 dispatching operation in the selector of the rewritten node. The
21670 entity will be used in the expansion of dispatching selects.
21671 (Analyze_One_Call): Improve location of the error message associated
21673 (Analyze_Selected_Component): No need to resolve prefix when it is a
21674 function call, resolution is done when parent node is resolved, as
21676 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
21677 when attempting to resolve a call transformed from its object notation.
21678 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
21679 of the argument list for each interpretation of the operation.
21680 (Try_Object_Operation): The designated type of an access parameter may
21681 be an incomplete type obtained through a limited_with clause, in which
21682 case the primitive operations of the type are retrieved from its full
21684 (Analyze_Call): If this is an indirect call, and the return type of the
21685 access_to_subprogram is incomplete, use its full view if available.
21687 2005-09-01 Javier Miranda <miranda@adacore.com>
21688 Gary Dismukes <dismukes@adacore.com>
21690 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
21691 access types the null-exclusion and access-to-constant attributes must
21693 (Analyze_Return_Statement): When the result type is an anonymous access
21694 type, apply a conversion of the return expression to the access type
21695 to ensure that appropriate accessibility checks are performed.
21696 (Analyze_Return_Type): For the case of an anonymous access result type,
21697 generate the Itype and set Is_Local_Anonymous_Access on the type.
21698 Add ??? placeholder for check to disallow returning a limited object
21699 in Ada 2005 unless it's an aggregate or a result of a function call.
21700 Change calls from Subtype_Mark to Result_Definition.
21701 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
21702 Result_Definition in call to Make_Function_Specification.
21703 (Build_Body_To_Inline): Change Set_Subtype_Mark to
21704 Set_Result_Definition.
21705 (Make_Inequality_Operator): Change formal Subtype_Mark to
21706 Result_Definition in call to Make_Function_Specification.
21707 (Process_Formals): Create the new null-excluding itype if required.
21708 (New_Overloaded_Entity): For an entity overriding an interface primitive
21709 check if the entity also covers other abstract subprograms in the same
21710 scope. This is required to handle the general case, that is, overriding
21711 other interface primitives and overriding abstract subprograms inherited
21712 from some abstract ancestor type.
21713 (New_Overloaded_Entity): For an overriding entity that comes from
21714 source, note the operation that it overrides.
21715 (Check_Conformance, Type_Conformant): Addition of one new formal
21716 to skip controlling formals in the analysis. This is used to
21717 handle overloading of abstract interfaces.
21718 (Base_Types_Match): Add missing case for types imported from
21719 limited-with clauses
21720 (New_Overloaded_Entity): Add barrier to protect the use of
21721 the "alias" attribute.
21723 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21725 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
21726 verify that the procedure and the entry are mode conformant.
21727 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
21728 as a different operator, which is often a cut-and-paste error.
21730 2005-09-01 Javier Miranda <miranda@adacore.com>
21731 Ed Schonberg <schonberg@adacore.com>
21733 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
21734 used in controlling parameters exclude null because it is necessary to
21735 read the tag to dispatch, and null has no tag.
21736 (Override_Dispatching_Operation): If the previous operation is inherited
21737 from an interface, it becomes hidden and does not participate in later
21740 2005-09-01 Javier Miranda <miranda@adacore.com>
21741 Ed Schonberg <schonberg@adacore.com>
21742 Gary Dismukes <dismukes@adacore.com>
21744 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
21745 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
21746 the expander will generate the corresponding run-time check to evaluate
21748 (Resolve_Call): Check for legal type of procedure name or prefix that
21749 appears as a trigger in a triggering alternative.
21750 (Valid_Conversion): If expression is ambiguous and the context involves
21751 an extension of System, remove System.Address interpretations.
21752 (Resolve_Qualified_Expression): Reject the case of a specific-type
21753 qualification applied to a class-wide argument. Enhance comment
21754 to explain checking of Original_Node.
21755 (Resolve_Type_Conversion): The location of the error message was not
21756 general enough to handle the general case and hence it has been removed.
21757 In addition, this patch improves the text of the message.
21758 (Resolve_Type_Conversion): Add missing support for access to interface
21760 (Resolve_Type_Conversion): If the target is a class-wide interface type,
21761 do not expand if the expression is the actual in a call, because proper
21762 expansion will take place when the call itself is expanded.
21763 (Resolve_Allocator): If the context is an unchecked conversion, the
21764 allocator inherits its storage pool, if any, from the target type of
21767 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21768 Javier Miranda <miranda@adacore.com>
21770 * sem_type.adb (Add_One_Interp): If a candidate operation is an
21771 inherited interface operation that has an implementation, use the
21772 implementation to avoid spurious ambiguities.
21773 (Interface_Present_In_Ancestor): In case of concurrent types we can't
21774 use the Corresponding_Record_Typ attribute to look for the interface
21775 because it is set by the expander (and hence it is not always
21776 available). For this reason we traverse the list of interfaces
21777 (available in the parent of the concurrent type).
21778 (Interface_Present_In_Ancestor): Handle entities from the limited view
21780 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21782 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
21783 from the list of required components.
21784 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
21785 primitive procedure of a limited interface with a controlling first
21787 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
21789 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
21790 capture if it is generated in the second operand of a short-circuit
21792 Do not capture values for variables with address clauses.
21793 (Is_Object_Reference): Treat a function call as an object reference only
21794 if its type is not Standard_Void_Type.
21796 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21798 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
21799 to a variable that is statically known to be constant.
21801 2005-09-01 Geert Bosch <bosch@adacore.com>
21802 Robert Dewar <dewar@adacore.com>
21804 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
21805 (VAXGF_Safe_First): Idem.
21807 2005-09-01 Robert Dewar <dewar@adacore.com>
21808 Arnaud Charlet <charlet@adacore.com>
21810 * g-dirope.ads: Minor reformatting
21811 Document that bounds of result of Base_Name match the input index
21813 Add documentation on environment variable syntax for Expand_Path
21815 * gnat_ugn.texi: Update documentation to include mention of -m switches
21816 Document new treatment of wide characters in max line length
21818 Remove -gnatL/-gnatZ switches, no longer used.
21819 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
21822 * gnat_rm.texi: Add doc for two argument form of pragma
21823 Float_Representation.
21824 Add documentation for pragma No_Strict_Aliasing
21825 Add note that explicit component clause overrides pragma Pack.
21826 Add documentation of pragma Debug_Policy
21828 2005-09-01 Matthew Heaney <heaney@adacore.com>
21830 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
21831 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
21832 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
21833 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
21834 draft (Draft 13, August 2005) of Ada Amendment 1.
21836 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21838 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
21839 Note that the platform-specific version of g-soccon.ads for VMS is now
21840 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
21841 really is a package spec).
21842 Replace s-taspri-linux.ads by s-taspri-posix.ads
21843 Remove references to s-mastop-x86.adb
21845 * system-vxworks-xscale.ads: Removed, no longer used.
21846 * s-vxwork-xscale.ads: Removed, no longer used.
21848 2005-09-01 Robert Dewar <dewar@adacore.com>
21850 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
21851 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
21852 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
21853 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
21854 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
21855 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
21856 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
21857 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
21858 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
21859 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
21860 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
21861 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
21862 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
21863 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
21864 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
21865 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
21866 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
21867 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
21868 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
21869 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
21870 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
21872 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21876 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
21878 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21879 Doug Rupp <rupp@adacore.com>
21881 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
21883 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
21884 this code in the GNAT run-time.
21886 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
21889 * init.c (__gnat_error_handler [many]): Mark "msg" as const
21890 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
21892 (__gnat_inside_elab_final_code): Moved here from
21893 Standard_Library and only defined for the compiler.
21894 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
21895 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
21896 using RTPs because directly vectored Interrupt routines are not
21897 supported on this configuration.
21898 (getpid): Do not redefine this function on VxWorks when using RTPs
21899 because this primitive is well supported by the RTP libraries.
21900 (copy_msg): Correct the code that checks for buffer overflow.
21901 Discovered during code reading.
21903 2005-08-29 Olivier Hainque <hainque@adacore.com>
21905 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
21906 a library level mutable variable with an initializer, tell
21907 build_allocator to ignore the initializer's size. It may not be large
21908 enough for all the values that might be assigned to the variable later
21911 2005-08-29 Arnaud Charlet <charlet@adacore.com>
21912 Eric Botcazou <ebotcazou@adacore.com>
21914 * trans.c: Protect < in error msg with quote
21915 Replace GCC_ZCX by Back_End_Exceptions.
21916 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
21917 has been sufficiently aligned in the record.
21919 2005-08-15 James E. Wilson <wilson@specifix.com>
21921 * system-linux-alpha.ads: Change ia64 to alpha.
21923 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
21925 * decl.c, utils.c: Fix comment typos.
21927 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
21929 * decl.c, init.c, initialize.c: Fix comment typos.
21931 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
21933 Make CONSTRUCTOR use VEC to store initializers.
21934 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
21936 * trans.c (extract_values): Likewise.
21937 * utils.c (convert, remove_conversions): Likewise.
21938 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
21939 gnat_build_constructor): Likewise.
21941 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
21943 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
21945 (compare_field_bitpos): Likewise.
21947 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
21949 * utils.c (create_var_decl): Only set DECL_COMMON on
21950 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
21951 VAR_OR_FUNCTION_DECL_P.
21953 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
21955 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
21958 2005-07-07 Pascal Obry <obry@adacore.com>
21960 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
21961 returned type on Windows.
21963 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
21966 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
21967 exception in this case.
21968 Simplify the code as "Image (Image'Range)" = "Image".
21970 2005-07-07 Vincent Celier <celier@adacore.com>
21972 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
21973 the destructor/constructor attributes for <lib>final/<lib>init.
21975 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
21977 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
21979 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
21980 type if the parameter is not passed by copy but reference by default.
21982 2005-07-07 Javier Miranda <miranda@adacore.com>
21984 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
21985 Reimplementation of the support for abstract interface types in order
21986 to leave the code more clear and easy to maintain.
21988 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
21989 abstract interface types in order to leave the code clearer and easier
21992 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
21993 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
21994 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
21995 appropriate entry of the secondary dispatch table.
21996 (Make_DT): Add code to inherit the secondary dispatch tables of
21999 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
22000 implementing both functionalities by means of a common routine, each
22001 routine has its own code.
22003 2005-07-07 Javier Miranda <miranda@adacore.com>
22005 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
22007 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
22010 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
22013 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
22014 use of tag incomplete types.
22016 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
22017 give support to tagged incomplete types.
22019 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
22020 expression is a discriminant reference and its type is private, as can
22021 happen within a stream operation for a mutable record, use the full
22022 view of the type to resolve the case alternatives.
22023 (Analyze_Assignment): Check wrong dereference of incomplete types.
22025 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
22028 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
22031 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
22032 N_Incomplete_Type_Declaration nodes.
22034 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
22035 Tag_Present to give support to tagged incomplete types:
22037 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
22040 2005-07-07 Olivier Hainque <hainque@adacore.com>
22043 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
22044 definitions for the Unwind wrappers in the compiler case.
22046 2005-07-07 Ed Schonberg <schonberg@adacore.com>
22047 Javier Miranda <miranda@adacore.com>
22049 * par-load.adb (Load): If a child unit is loaded through a limited_with
22050 clause, each parent must be loaded as a limited unit as well.
22052 * sem_ch10.adb (Previous_Withed_Unit): Better name for
22053 Check_Withed_Unit. Return true if there is a previous with_clause for
22054 this unit, whether limited or not.
22055 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
22057 (Is_Visible_Through_Renamings): New local subprogram of install_limited
22058 _withed_unit that checks if some package installed through normal with
22059 clauses has a renaming declaration of package whose limited-view is
22060 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
22061 of the current Draft document for Ada 2005.
22062 (Analyze_Context): Complete the list of compilation units that
22063 are allowed to contain limited-with clauses. It also contains
22064 checks that were previously done by Install_Limited_Context_Clauses.
22065 This makes the code more clear and easy to maintain.
22066 (Expand_Limited_With_Clause) It is now a local subprogram of
22067 Install_Limited_Context_Clauses, and contains the code that adds
22068 the implicit limited-with clauses for parents of child units.
22069 This functionality was prevously done by Analyze_Context.
22071 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
22074 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
22075 been erroneously named in a limited-with clause of its own context.
22076 In this case the error has been previously notified by Analyze_Context.
22078 2005-07-07 Ed Schonberg <schonberg@adacore.com>
22080 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
22081 generic package that contains local declarations with the same name.
22082 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
22084 2005-07-07 Bernard Banner <banner@adacore.com>
22086 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
22087 ia64 platform only on platforms that you the GCC unwind library
22088 rather than the system unwind library.
22090 2005-07-07 Thomas Quinot <quinot@adacore.com>
22092 * expect.c: Minor reformatting
22094 2005-07-07 Sergey Rybin <rybin@adacore.com>
22096 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
22099 * gnat_ugn.texi: Add description for new gnatpp option
22102 2005-07-04 Thomas Quinot <quinot@adacore.com>
22104 * g-expect-vms.adb, g-expect.ads, g-expect.adb
22105 (Get_Command_Output): New subprogram to launch a process and get its
22106 standard output as a string.
22108 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22109 Olivier Hainque <hainque@adacore.com>
22111 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
22112 fetch a code-range descriptor associated with the machine state. On
22113 failure set the machine state's PC to 0; on success, pass the
22114 descriptor to exc_virtual_unwind.
22116 * init.c (Tru64 section): New function __gnat_set_code_loc.
22118 2005-07-04 Vincent Celier <celier@adacore.com>
22120 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22121 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22122 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
22123 Remove all auto-initialization code, as this is now done through the
22124 constructor mechanism.
22126 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
22127 __gnat_sals_init_using_constructors): New functions.
22129 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
22130 Linker_Constructor and Linker_Destructor when switch -a is used.
22132 * bindusg.adb: Add line for new switch -a
22134 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
22135 (Gnatbind): When switch -a is used, check if it is allowed
22137 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
22139 2005-07-04 Joel Brobecker <brobecker@adacore.com>
22141 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
22142 This prevents us from hitting a limitation during the debug info
22143 generation when using stabs.
22144 (Prims_Ptr): Likewise.
22146 2005-07-04 Gary Dismukes <dismukes@adacore.com>
22147 Ed Schonberg <schonberg@adacore.com>
22148 Javier Miranda <miranda@adacore.com>
22150 * checks.adb (Null_Exclusion_Static_Checks): In the case of
22151 N_Object_Declaration, only perform the checks if the Object_Definition
22152 is not an Access_Definition.
22154 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
22155 where the parent of an the access definition is an N_Object_Declaration
22156 when determining the Associated_Node_For_Itype and scope of an
22157 anonymous access-to-subprogram type.
22159 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
22160 Corresponding_Spec on the body created for a null procedure. Add ???
22161 comment. Remove New_Copy_Tree call on body argument to
22162 Set_Body_To_Inline.
22164 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
22165 discriminants, use the type of the actual as well, because the
22166 discriminants may be read by the called subprogram.
22168 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
22169 access type we do not need to handle non-limited views.
22170 (Build_Derived_Record_Type): Additional check to check that in case of
22171 private types, interfaces are only allowed in private extensions.
22173 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22175 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
22176 <Pragma_Linker_Destructor>: Likewise.
22178 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
22179 Pragma_Linker_Destructor.
22181 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
22182 ATTR_LINK_DESTRUCTOR.
22183 (static_ctors, static_dtors): New variables.
22185 * misc.c (gnat_expand_body): Output current function as constructor
22186 and destructor if requested.
22188 * par-prag.adb: Add processing for pragma Linker_Constructor and
22191 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
22192 extracted from Check_Interrupt_Or_Attach_Handler.
22193 (Check_Interrupt_Or_Attach_Handler): Invoke it.
22194 Implement pragma Linker_Constructor and Linker_Destructor with the
22195 help of Find_Unique_Parameterless_Procedure.
22196 Replace Name_Alias with Name_Target for pragma Linker_Alias.
22198 * snames.h, snames.ads, snames.adb:
22199 Add Name_Linker_Constructor and Name_Linker_Destructor.
22200 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
22201 * snames.adb: Remove Name_Alias.
22203 * trans.c: Include cgraph.h.
22204 (build_global_cdtor): New function.
22205 (Compilation_Unit_to_gnu): Build global constructor and destructor if
22207 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
22209 (addressable_p) <COMPONENT_REF>: Unconditionally test
22210 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
22212 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
22213 variable if it is external.
22215 (static_ctors, static_dtors): New global variables.
22216 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
22217 <ATTR_LINK_DESTRUCTOR>: Likewise.
22218 (end_subprog_body): Chain function as constructor and destructor
22221 * exp_util.adb (Force_Evaluation): Unconditionally invoke
22222 Remove_Side_Effects with Variable_Ref set to true.
22223 (Remove_Side_Effects): Handle scalar types first. Use a renaming
22224 for non-scalar types even if Variable_Ref is true and for class-wide
22227 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22229 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
22230 to prevent spurious warnings.
22232 2005-07-04 Thomas Quinot <quinot@adacore.com>
22234 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
22235 Itypes. Itypes are really unexpected there.
22236 (Build_TypeCode_Function): Generalise special processing for Itypes to
22237 handle the case of numeric implicit base types as well as enumerated
22240 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22242 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
22243 controlled, indicate the expected type of the dereference that is
22244 created for the call to Deep_Finalize, to prevent spurious errors when
22245 the designated type is private and completed with a derivation from
22246 another private type.
22248 2005-07-04 Vincent Celier <celier@adacore.com>
22250 * make.adb (Change_To_Object_Directory): When unable to change the
22251 current dir to the object directory, output the full path of the
22254 2005-07-04 Matthew Gingell <gingell@adacore.com>
22256 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
22258 * indepsw-linux.adb: Replace by...
22260 * indepsw-gnu.adb: ...this new file
22262 2005-07-04 Vincent Celier <celier@adacore.com>
22264 * mlib-prj.adb (Auto_Initialize): New constant String
22265 (SALs_Use_Constructors): New Boolean function
22266 (Build_Library): Call gnatbind with Auto_Initialize switch when
22267 SALs_Use_Constructors returns True.
22269 * mlib-tgt.ads: Minor reformatting
22271 * mlib-utl.ads: Minor reformatting
22273 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
22275 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22277 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
22278 single protected declarations can have an interface list.
22279 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
22280 with seriously malformed entry declarations, and lead to compilation
22281 abandoned messages.
22283 2005-07-04 Javier Miranda <miranda@adacore.com>
22285 * par-load.adb: Load the context items in two rounds.
22287 2005-07-04 Robert Dewar <dewar@adacore.com>
22289 * scng.adb: Do not consider Mod used as an attribute to be a keyword
22291 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22292 Javier Miranda <miranda@adacore.com>
22294 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
22295 type extension needs a limited view.
22296 Remove previous restriction on private types available through the
22297 limited-view (only tagged private types were previously allowed).
22298 (Install_Withed_Unit): In the code that implements the
22299 legality rule given in AI-377, exclude a child unit with the name
22300 Standard, because it is a homonym of the Standard environment package.
22302 2005-07-04 Thomas Quinot <quinot@adacore.com>
22304 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
22305 overloaded function call, carry interpretations from the original tree
22308 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22310 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
22311 types check whether some designated type is a limited view, and use
22312 the non-limited view if available.
22314 2005-07-04 Gary Dismukes <dismukes@adacore.com>
22316 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
22317 constraint of full view of a private view T1 if present, when T2 is a
22318 discriminated full view.
22320 2005-07-04 Thomas Quinot <quinot@adacore.com>
22322 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
22323 actual that is a view conversion of a bit packed array reference.
22325 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22327 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
22328 present before checking whether an interface type covers a synchronized
22331 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22333 * sem_util.adb (Is_Object_Reference): An indexed or selected component
22334 whose prefix is an implicit dereference is an object reference. Removes
22335 spurious errors when compiling with -gnatc.
22337 2005-07-04 Robert Dewar <dewar@adacore.com>
22340 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
22342 2005-07-04 Matthew Gingell <gingell@adacore.com>
22344 * tracebak.c: Enable tracebacks on ia64 platforms
22346 2005-07-04 Vincent Celier <celier@adacore.com>
22348 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
22349 the GNAT BIND command, as gnatbind accepts multiples ALI files with
22350 the -L or -n switches.
22352 2005-07-04 Vincent Celier <celier@adacore.com>
22354 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
22355 correctly computed and the main project data is not modified while
22357 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
22358 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
22359 c++linker as this does not work on some platforms.
22361 2005-07-04 Matthew Heaney <heaney@adacore.com>
22363 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
22365 * a-coinve.adb: Perform constraint checks explicitly.
22367 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22368 Thomas Quinot <quinot@adacore.com>
22370 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
22371 new target gen-soccon.
22373 2005-07-04 Robert Dewar <dewar@adacore.com>
22375 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
22377 2005-07-04 Thomas Quinot <quinot@adacore.com>
22379 * g-socket.ads (Check_Selector): Minor rewording of comment.
22381 2005-07-04 Vincent Celier <celier@adacore.com>
22383 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
22385 2005-07-04 Thomas Quinot <quinot@adacore.com>
22387 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
22389 2005-07-04 Sergey Rybin <rybin@adacore.com>
22391 * gnat_ugn.texi: Add description of --eol gnatpp option
22393 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22394 Thomas Quinot <quinot@adacore.com>
22396 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
22397 if the user wants all calls of a subprogram to be flagged,
22398 independently of whether they are made from within the same unit or
22400 Mention restriction for pragma Linker_Alias on some platforms.
22401 Document pragma Linker_Constructor and Linker_Destructor.
22402 Rewrite documentation of Weak_External, Linker_Section and
22403 Linker_Alias pragmas.
22405 2005-07-04 Arnaud Charlet <charlet@adacore.com>
22407 * s-stausa.ads, s-stausa.adb: New files.
22409 2005-06-30 Kelley Cook
22411 * all files: Update FSF address in copyright headers.
22412 * gen-soccon.co (main): Output new FSF address in generated files.
22414 2005-06-28 Paul Brook <paul@codesourcery.com>
22416 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
22418 2005-06-14 Olivier Hainque <hainque@adacore.com>
22419 Eric Botcazou <ebotcazou@adacore.com>
22421 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
22422 exc_unwind, now that we are generating proper .debug_frame output for
22425 * tracebak.c: Remove the mips-irix section, as we are now using the
22426 s-mastop based unwinder again.
22427 Under SPARC/Solaris, take into account the stack bias to compute the
22428 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
22431 2005-06-14 Doug Rupp <rupp@adacore.com>
22433 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
22435 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
22437 2005-06-14 Pascal Obry <obry@adacore.com>
22439 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
22440 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
22441 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
22444 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
22445 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
22446 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
22447 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22448 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
22449 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
22450 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
22451 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
22452 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
22453 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
22454 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
22455 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
22456 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
22457 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
22458 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
22459 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
22460 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
22461 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
22462 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
22463 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
22464 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
22465 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
22466 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
22467 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
22468 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
22469 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
22470 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
22471 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
22472 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
22473 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
22474 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
22475 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
22476 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
22477 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
22478 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
22479 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
22480 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
22481 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
22482 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
22483 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
22484 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
22485 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
22486 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
22487 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
22488 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
22489 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
22490 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
22491 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
22492 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
22493 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
22494 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22495 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
22496 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
22497 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
22498 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
22499 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22500 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
22501 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
22502 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
22503 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
22504 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
22505 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
22506 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
22507 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
22508 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
22509 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
22510 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
22511 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
22512 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
22513 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
22514 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
22515 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
22516 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
22517 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
22518 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
22519 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
22520 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
22521 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
22522 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
22523 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
22524 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
22525 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
22526 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
22527 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
22528 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
22529 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
22530 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
22531 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
22532 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
22533 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
22534 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
22535 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
22536 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
22537 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
22538 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
22539 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
22540 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
22541 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
22542 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
22543 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
22544 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
22545 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
22546 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
22547 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
22548 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
22549 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
22550 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
22551 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
22552 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
22553 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
22554 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
22555 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
22556 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
22557 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
22558 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
22559 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
22560 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
22561 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
22562 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
22563 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
22564 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
22565 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
22566 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
22567 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
22568 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
22569 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
22570 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
22571 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
22572 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
22573 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
22574 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
22575 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
22576 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
22578 2005-06-14 Jose Ruiz <ruiz@adacore.com>
22579 Arnaud Charlet <charlet@adacore.com>
22581 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
22582 longer protected objects. They have been replaced by lower-level
22583 suspension objects made up by a mutex and a condition variable (or
22584 their equivalent given a particular OS) plus some internal data to
22585 reflect the state of the suspension object.
22586 (Initialize, Finalize): Add this initialization procedure for
22587 Suspension_Object, which is a controlled type.
22588 (Finalize): Add the finalization procedure for Suspension_Object,
22589 which is a controlled type.
22591 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
22592 Ada.Synchronous_Task_Control because there is no longer a need for a
22593 VxWorks specific version of this package. Target dependencies
22594 has been moved to System.Task_Primitives.Operations.
22596 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
22598 (InitializeCriticalSection, EnterCriticalSection,
22599 LeaveCriticalSection, DeleteCriticalSection): Replace the type
22600 pCriticalSection by an anonymous access type so that we avoid problems
22601 of accessibility to local objects.
22603 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
22604 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
22605 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
22606 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
22607 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
22608 set the environment task mask here.
22609 (Current_State): Add this function that returns the state of the
22611 (Set_False): Add this procedure that sets the state of the suspension
22613 (Set_True): Add this procedure that sets the state of the suspension
22614 object to True, releasing the task that was suspended, if any.
22615 (Suspend_Until_True): Add this procedure that blocks the calling task
22616 until the state of the object is True. Program_Error is raised if
22617 another task is already waiting on that suspension object.
22618 (Initialize): Add this procedure for initializing the suspension
22619 object. It initializes the mutex and the condition variable which are
22620 used for synchronization and queuing, and it sets the internal state
22622 (Finalize): Add this procedure for finalizing the suspension object,
22623 destroying the mutex and the condition variable.
22625 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
22626 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
22627 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
22628 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
22629 which provides a low-level abstraction (using operating system
22630 primitives) for Ada.Synchronous_Task_Control.
22631 This object is made up by a mutex (for ensuring mutual exclusion), a
22632 condition variable (for queuing threads until the condition is
22633 signaled), a Boolean (State) indicating whether the object is open,
22634 and a Boolean (Waiting) reflecting whether there is a task already
22635 suspended on this object.
22637 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
22638 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
22639 s-intman-vms.ads, s-intman-mingw.adb,
22640 (Initialize_Interrupts): Removed, no longer used.
22642 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
22643 (Setup_Interrupt_Mask): New procedure.
22645 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
22647 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
22649 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
22650 this is no longer done in the body of s-taprop
22651 (Server_Task): Explicitely test for Pending_Action in case
22652 System.Parameters.No_Abort is True.
22654 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
22655 is no longer done in the body of s-taprop
22657 2005-06-14 Robert Dewar <dewar@adacore.com>
22659 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22660 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22661 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22662 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22663 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22664 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
22665 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
22666 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22667 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
22668 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
22669 system-linux-hppa.ads, system-vms_64.ads,
22670 system-vxworks-alpha.ads: Minor comment update for
22671 AI-362 (unit is Pure).
22673 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
22674 Add pragma Pure_05 for AI-362
22675 Make remaining conversion functions obsolescent in Ada 95
22677 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22678 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
22679 Add entries for a-wichun and a-zchuni
22680 Add a-widcha a-zchara for AI-395
22681 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
22683 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
22684 Add entries for a-wichun.o and a-zchuni.o
22685 Entries for a-widcha.o and a-zchara.o
22686 Add entry for a-chacon.o
22688 * a-ztenau.adb: Add with of Ada.Characters.Conversions
22690 * a-chacon.ads, a-chacon.adb: New files.
22692 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
22693 categorization violations.
22695 * a-strmap.ads: Add pragma Pure_05 for AI-362
22696 * a-strmap.ads: Add note on implicit categorization for AI-362
22698 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
22700 * par-prag.adb: Dummy entry for pragma Persistent_BSS
22701 Set Ada_Version_Explicit, for implementation of AI-362
22702 Add processing for pragma Pure_05 and Preelaborate_05
22703 Add entry for Assertion_Policy pragma
22705 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
22706 when needed for proper processing of categorization stuff
22709 For several cases, make errors in preealborate units warnings,
22710 instead of errors, if GNAT_Mode is set. For AI-362.
22712 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
22713 preelaborate unit is now warning if in GNAT mode
22715 * s-stoele.ads: Document AI-362 for pragma preelaborate
22717 2005-06-14 Doug Rupp <rupp@adacore.com>
22719 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
22720 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
22721 Default_Exception_Msg_Max_Length: new parameter.
22723 * a-except.ads: (Exception_Msg_Max_Length): Set to
22724 System.Parameters.Default_Exception_Msg_Max_Length
22725 Add pragma Preelaborate_05 for AI-362
22726 Add warnings off to allow categorization violations for AI-362
22728 2005-06-14 Vincent Celier <celier@adacore.com>
22730 * gnatsym.adb: Adapt to modification of package Symbols: procedure
22731 Process is now in package Processing.
22733 * symbols.ads, symbols.adb:
22734 (Processing): New package, containing procedure Process
22736 * symbols-vms-alpha.adb:
22737 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
22739 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
22740 symbols-processing-vms-ia64.adb: New files.
22742 2005-06-14 Pascal Obry <obry@adacore.com>
22744 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
22745 implementation. This new version generates the proper DllMain routine
22746 to initialize the SAL. The DllMain is generated in Ada and compiled
22747 before being added as option to the library build command.
22749 2005-06-14 Doug Rupp <rupp@adacore.com>
22750 Pascal Obry <obry@adacore.com>
22752 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
22753 call to decc$translate_vms.
22754 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
22755 need to remove those quotes before catenating the filename.
22756 (__gnat_locate_exec_on_path): improvements to the Win32 section:
22757 * avoid allocating the memory twice for better efficiency;
22758 * allocate 32K buffer for environment expansion as suggested by MSDN;
22759 * prepend ".;" to the path so that current directory is searched too.
22761 2005-06-14 Robert Dewar <dewar@adacore.com>
22763 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
22764 instead of raising CE (AI-241)
22765 Add warnings off to allow categorization violations for AI-362
22767 2005-06-14 Robert Dewar <dewar@adacore.com>
22769 * ali-util.adb, gnatbind.adb: Remove references to
22770 Force_RM_Elaboration_Order.
22772 * switch-b.adb: Remove recognition of -f switch
22774 2005-06-14 Pascal Obry <obry@adacore.com>
22776 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
22777 implementation which is slightly more efficient.
22779 2005-06-14 Gary Dismukes <dismukes@adacore.com>
22780 Javier Miranda <miranda@adacore.com>
22781 Ed Schonberg <schonberg@adacore.com>
22782 Hristian Kirtchev <kirtchev@adacore.com>
22784 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
22785 allocator's designated type is a class-wide type, and compiling for
22786 Ada 2005, emit a run-time check that the accessibility level of the
22787 type given in the allocator's expression is not deeper than the level
22788 of the allocator's access type.
22790 (Tagged_Membership): Modified to gives support to abstract interface
22793 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
22795 (Descendant_Tag): New predefined function
22796 (Is_Descendant_At_Same_Level): New predefined function
22797 (Get_Access_Level): New private function
22798 (Set_Access_Level): New private procedure
22799 (IW_Membership): New function. Given the tag of an object and the tag
22800 associated with an interface, evaluate if the object implements the
22802 (Register_Interface_Tag): New procedure used to initialize the table of
22803 interfaces used by the IW_Membership function.
22804 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
22805 of the dispatch table.
22806 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
22807 table of interfaces of the parent.
22808 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
22809 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
22810 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
22811 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
22812 Ada 2005 semantics for the new predefined function.
22814 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
22815 call to Descendant_Tag rather than Internal_Tag.
22816 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
22817 the accessibility level of the attribute's Item parameter is not deeper
22818 than the level of the attribute's prefix type. Tag_Error is raised if
22819 the check fails. The check is only emitted for Ada_05.
22820 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
22821 requested stream attribute, use it.
22822 (Expand_N_Attribute_Reference): If the designated type is an interface
22823 then rewrite the referenced object as a conversion to force the
22824 displacement of the pointer to the secondary dispatch table.
22825 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
22826 is a dereference of an object with a constrained partial view.
22828 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
22829 type is a class-wide type, emit a run-time check that the accessibility
22830 level of the returned object is not deeper than the level of the
22831 function's master (only when compiling for Ada 2005).
22833 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
22834 Action_Nb_Arg): Add entries for new Get_Access_Level and
22835 Set_Access_Level routines in these tables.
22836 (Make_DT): Generate a call to set the accessibility level of the
22837 tagged type in its TSD.
22838 (Make_DT): Code cleanup. The functionality of generating all the
22839 secondary dispatch tables has been moved to freeze_record_type.
22840 (Make_Abstract_Interface_DT): Minor code cleanup.
22841 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
22842 this subprogram implements a new algorithm that provides the
22843 same functionality and it is more clear in case of primitives
22844 associated with abstract interfaces.
22845 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
22846 clean up, the functionality of this subprogram is now provided
22847 by Set_All_DT_Position.
22848 (Write_DT): New subprogram: a debugging procedure designed to be called
22849 within gdb to display the dispatch tables associated with a tagged
22851 (Collect_All_Interfaces): New subprogram that collects the whole list
22852 of interfaces that are directly or indirectly implemented by a tagged
22854 (Default_Prim_Op_Position): New subprogram that returns the fixed
22855 position in the dispatch table of the default primitive operations.
22856 (Expand_Interface_Actuals): New subprogram to generate code that
22857 displaces all the actuals corresponding to class-wide interfaces to
22858 reference the interface tag of the actual object.
22859 (Expand_Interface_Conversion): New subprogram. Reference the base of
22860 the object to give access to the interface tag associated with the
22861 secondary dispatch table.
22862 (Expand_Interface_Thunk): New subprogram that generates the code of the
22863 thunk. This is required for compatibility with the C+ ABI.
22864 (Make_Abstract_Interface_DT): New subprogram that generate the
22865 declarations for the secondary dispatch tables associated with an
22866 abstract interface.
22867 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
22868 attribute for each primitive operation covering interface subprograms
22869 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
22870 These subprograms were upgraded to give support to abstract interfaces
22872 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
22873 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
22874 RE_Set_Access_Level.
22875 (RE_Unit_Table): Add entries for new Ada.Tags operations.
22876 Add support to call the followig new run-time subprograms:
22877 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
22879 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
22880 match its full declaration when both have an access definition with
22881 statically matching designated subtypes.
22882 (Analyze_Component_Declaration): Delete commented out code that was
22883 incorrectly setting the scope of an anonymous access component's type.
22884 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
22885 an access discriminant when the containing type is nonlimited.
22886 (Make_Incomplete_Type_Declaration): Create an incomplete type
22887 declaration for a record type that includes self-referential access
22889 (Check_Anonymous_Access_Types): Before full analysis of a record type
22890 declaration, create anonymous access types for each self-referential
22892 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
22893 an access component in this context is a Local_Anonymous_Access, for
22894 proper accessibility checks.
22895 (Access_Definition): Set properly the scope of the anonymous access type
22896 created for a stand-alone access object.
22897 (Find_Type_Of_Object): An object declaration may be given with an access
22899 (Complete_Subprograms_Derivation): New subprogram used to complete
22900 type derivation of private tagged types implementing interfaces.
22901 In this case some interface primitives may have been overriden
22902 with the partial-view and, instead of re-calculating them, they
22903 are included in the list of primitive operations of the full-view.
22904 (Build_Derived_Record_Type): Modified to give support to private
22905 types implemening interfaces.
22906 (Access_Definition): Reject ALL on anonymous access types.
22907 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
22908 type derivation to occur at a deeper accessibility level than the
22910 For the case of derivation within a generic body however, disallow the
22911 derivation if the derived type has an ancestor that is a formal type
22912 declared in the formal part of an enclosing generic.
22913 (Analyze_Object_Declaration): For protected objects, remove the check
22914 that they cannot contain interrupt handlers if not declared at library
22916 (Add_Interface_Tag_Components): New subprogram to add the tag components
22917 corresponding to all the abstract interface types implemented by a
22918 record type or a derived record type.
22919 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22920 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22921 Process_Full_View, Record_Type_Declaration): Modified to give
22922 support to abstract interface types
22923 (Collect_Interfaces): New subprogram that collects the list of
22924 interfaces that are not already implemented by the ancestors
22925 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
22926 when partial view has no discriminants and full view has defaults.
22927 (Constrain_Access): Reject a constraint on a general access type
22928 if the discriminants of the designated type have defaults.
22929 (Access_Subprogram_Declaration): Associate the Itype node with the inner
22930 full-type declaration or subprogram spec. This is required to handle
22931 nested anonymous declarations.
22932 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
22933 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
22934 Process_Full_View, Record_Type_Declaration): Modified to give
22935 support to abstract interface types
22936 (Derive_Subprograms): Addition of a new formal to indicate if
22937 we are in the case of an abstact-interface derivation
22938 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
22939 to the specification because it is requied to analyze all the
22940 identifiers found in a list of interfaces
22942 * debug.adb: Complete documentation of flag "-gnatdZ"
22944 * exp_ch3.adb: Implement config version of persistent_bss pragma
22945 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
22946 testing for TSS presence to properly enforce visibility rules.
22947 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
22948 Make_Abstract_Interfaces_DT to generate the secondary tables
22949 associated with abstract interfaces.
22950 (Build_Init_Procedure): Modified to initialize all the tags
22952 (Component_Needs_Simple_Initialization): Similar to other tags,
22953 interface tags do not need initialization.
22954 (Freeze_Record_Type): Modified to give support to abstract interface
22956 (Expand_N_Object_Declaration): Do not generate an initialization for
22957 a scalar temporary marked as internal.
22959 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
22960 in-out parameter that is a component in an initialization procedure,
22961 whose constraint might depend on discriminants, and that may be
22962 misaligned because of packing or representation clauses.
22963 (Is_Legal_Copy): New predicate to determine whether a possibly
22964 misaligned in-out actual can actually be passed by copy/return. This
22965 is an error in case the type is by_reference, and a warning if this is
22966 the consequence of a DEC import pragma on the subprogram.
22967 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
22969 (Expand_Inlined_Call): Mark temporary generated for the return value as
22970 internal, so that no useless scalar normalization is generated for it.
22971 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
22972 null procedure can always be inlined.
22973 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
22974 procedure, generate an explicit empty body for it.
22976 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
22977 Given a type implementing an interface, returns the corresponding
22978 access_disp_table value.
22979 (Find_Interface_Tag): New subprogram. Given a type implementing an
22980 interface, returns the record component containing the tag of the
22982 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
22983 previous ones that return the corresponding tag and access_disp_table
22985 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
22986 is a predefined primitive operation.
22987 (Expand_Subtype_From_Expr): If the expression is a selected component
22988 within an initialization procedure, compute its actual subtype, because
22989 the component may depend on the discriminants of the enclosing record.
22991 * i-cpp.ads, i-cpp.adb:
22992 This package has been left available for compatibility with previous
22993 versions of the frontend. As part of the new layout this is now a
22994 dummy package that uses declarations available at a-tags.ads
22996 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
22997 "constant access" and "aliased [constant] access" when not compiling
22999 Suppress Ada 2005 keyword warning if -gnatwY used
23000 (P_Identifier_Declarations): Add support for object declarations with
23001 access definitions.
23002 (Private_Extension_Declaration): Complete the documentation
23003 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
23004 attribute in case of private extension declaration
23005 (P_Type_Declaration): Mark as "abstract" the type declarations
23006 corresponding with protected, synchronized and task interfaces
23007 (P_Declarative_Items): "not" and "overriding" are overriding indicators
23008 for a subprogram or instance declaration.
23010 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
23011 instantiation that is a dispatching operation has controlling access
23012 parameters that are null excluding.
23013 Save and restore Ada_Version_Explicit, for implementation of AI-362
23014 (Validate_Derived_Type_Instance): Add check for abstract interface
23016 (Analyze_Formal_Package): Establish Instantiation source for the copy of
23017 the generic that is created to represent the formal package.
23018 (Analyze_Package_Instantiation): Instantiate body immediately if the
23019 package is a predefined unit that contains inlined subprograms, and
23020 we are compiling for a Configurable_Run_Time.
23021 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
23022 If the program has a null default, generate an empty body for it.
23024 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
23025 error message condition, null procedures are correctly detected now.
23026 (New_Overloaded_Entity): Bypass trivial overriding indicator check
23027 for subprograms in the context of protected types. Instead, the
23028 indicator is examined in Sem_Ch9 while analysing the subprogram
23030 (Check_Overriding_Indicator): Check consistency of overriding indicator
23031 on subprogram stubs as well.
23032 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
23034 (Analize_Subprogram_Specification): When analyzing a subprogram in which
23035 the type of the first formal is a concurrent type, replace this type
23036 by the corresponding record type.
23037 (Analyze_Subprogram_Body): Undo the previous work.
23038 (Analyze_Procedure_Call): If the call has the form Object.Op, the
23039 analysis of the prefix ends up analyzing the call itself, after which
23041 (Has_Interface_Formals): New subprogram subsidiary to analyze
23042 subprogram_specification that returns true if some non
23043 class-wide interface subprogram is found
23044 (New_Overloaded_Entity): Modified to give support to abstract
23046 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
23047 access to subprograms must be recursive.
23048 (Is_Unchecked_Conversion): Improve the test that recognizes
23049 instantiations of Unchecked_Conversion, and allows them in bodies that
23050 are to be inlined by the front-end. When the body comes from an
23051 instantiation, a reference to Unchecked_Conversion will be an
23052 Expanded_Name, even though the body has not been analyzed yet.
23053 Replace Is_Overriding and Not_Overriding in subprogram_indication with
23054 Must_Override and Must_Not_Override, to better express intent of AI.
23055 (Analyze_Subprogram_Body): If an overriding indicator is given, check
23056 that it is consistent with the overrinding status of the subprogram
23058 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
23060 If the subprogram is a null procedure, indicate that it does not need
23063 * sem_disp.adb (Check_Controlling_Type): Give support to entities
23064 available through limited-with clauses.
23065 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
23066 allowed as the last primitive of a tagged type if it has no previous
23068 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
23069 to give support to abstract interface types
23071 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
23072 in the case where the target type is an anonymous access type of an
23073 object or component (that is, when Is_Local_Anonymous_Access is true).
23074 Prevent the special checks for conversions of access discriminants in
23075 the case where the discriminant belongs to a nonlimited type, since
23076 such discriminants have their accessibility level defined in the same
23077 way as a normal component of an anonymous access type.
23078 (Resolve_Allocator): When an allocator's designated type is a class-wide
23079 type, check that the accessibility level of type given in the
23080 allocator's expression or subtype indication is not statically deeper
23081 than the level of the allocator's access type.
23082 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
23083 name in a discriminant constraint of a record component.
23084 (Resolve_Explicit_Dereference): Do not check whether the type is
23085 incomplete when the dereference is a use of an access discriminant in
23086 an initialization procedure.
23087 (Resolve_Type_Conversion): Handle conversions to abstract interface
23089 (Valid_Tagged_Conversion): The conversion of a tagged type to an
23090 abstract interface type is always valid.
23091 (Valid_Conversion): Modified to give support to abstract interface types
23092 (Resolve_Actuals): Enable full error reporting on view conversions
23093 between unrelated by_reference array types.
23094 The rule for view conversions of arrays with aliased components is
23095 weakened in Ada 2005.
23096 Call to obsolescent subprogram is now considered to be a violation of
23097 pragma Restrictions (No_Obsolescent_Features).
23098 (Check_Direct_Boolean_Operator): If the boolean operation has been
23099 constant-folded, there is nothing to check.
23100 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
23101 check on possible violation of restriction No_Direct_Boolean_Operators
23102 until after expansion of operands, to prevent spurious errors when
23103 operation is constant-folded.
23105 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
23106 Has_Compatible_Type): Modified to give support to abstract interface
23108 (Interface_Present_In_Ancestor): New function to theck if some ancestor
23109 of a given type implements a given interface
23111 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
23112 prefix is a parameterless function that returns an access_to_procedure.
23113 (Transform_Object_Operation): Handle properly function calls of the
23114 form Obj.Op (X), which prior to analysis appear as indexed components.
23115 (Analyze_One_Call): Complete the error notification to help new Ada
23117 (Analyze_Allocator): For an allocator without an initial value, where
23118 the designated type has a constrained partial view, a discriminant
23119 constraint is illegal.
23121 2005-06-14 Robert Dewar <dewar@adacore.com>
23123 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
23124 do with treatment of Set_Col when positioned at end of line character.
23126 2005-06-14 Robert Dewar <dewar@adacore.com>
23128 * atree.adb: (Elist*): Protect against uninitialized field
23130 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23132 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
23133 for an attribute reference that returns an access type.
23134 (Apply_Discriminant_Check): No need for check if (designated) type has
23135 constrained partial view.
23137 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
23138 both bound checks, rather than a conjunction.
23139 (Insert_Valid_Check): If the expression is an actual that is an indexed
23140 component of a bit-packed array, force expansion of the packed element
23141 reference, because it is specifically inhibited elsewhere.
23143 2005-06-14 Vincent Celier <celier@adacore.com>
23145 * clean.adb (Clean_Project): Correctly delete executable specified as
23146 absolute path names.
23148 * make.adb (Gnatmake): Allow relative executable path names with
23149 directory information even when project files are used.
23150 (Change_To_Object_Directory): Fail gracefully when unable to change
23151 current working directory to object directory of a project.
23152 (Gnatmake): Remove exception handler that could no longer be exercized
23153 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
23154 may be deallocated by Normalize_Arguments.
23155 (Collect_Arguments): Eliminate empty arguments
23157 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
23158 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
23159 (Check_Project): Return False when Project is No_Project. Return True
23160 when All_Projects is True.
23161 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
23162 All_Projects to True.
23165 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23166 Javier Miranda <miranda@adacore.com>
23167 Thomas Quinot <quinot@adacore.com>
23168 Robert Dewar <dewar@adacore.com>
23169 Hristian Kirtchev <kirtchev@adacore.com>
23170 Gary Dismukes <dismukes@adacore.com>
23172 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
23173 anonymous access types, to indicate that the accessibility level of
23174 the type is determined by that of the enclosing declaration.
23175 (Has_Persistent_BSS): New flag
23176 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
23177 of this attribute with functions.
23178 (Is_Primitive_Wrapper): Remove the barrier.
23179 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
23180 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
23182 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
23183 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
23185 (Is_Pure_Unit_Access_Type): New flag
23186 (Abstract_Interfaces): Complete the assertion to cover all usages.
23187 (Set_Is_Interface): Complete the assertion to cover all usages.
23188 (Is_Primitive_Wrapper): New attribute.
23189 (Is_Obsolescent): Now applies to all entities (though it is only set
23190 for subprograms currently)
23191 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
23192 which solves various problems concerning access subtypes.
23193 (Has_Persistent_BSS): New flag
23194 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
23195 Remove these subprograms because this attribute is currently
23198 Has_Specified_Stream_Input (Flag190)
23199 Has_Specified_Stream_Output (Flag191)
23200 Has_Specified_Stream_Read (Flag192)
23201 Has_Specified_Stream_Write (Flag193)
23202 Present in all type and subtype entities. Set for a given view if the
23203 corresponding stream-oriented attribute has been defined by an
23204 attribute definition clause. When such a clause occurs, a TSS is set
23205 on the underlying full view; the flags are used to track visibility of
23206 the attribute definition clause for partial or incomplete views.
23207 (Is_Pure_Unit_Access_Type): New flag
23208 Clarify use of Is_Internal.
23209 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
23210 internally generated to wrap the invocation of tasks and protected
23211 types that implement interfaces.
23212 (Implementation_Base_Type): Documentation correction
23213 (Is_Obsolescent): Now applies to all entities (though it is only set
23214 for subprograms currently)
23215 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
23216 which solves various problems concerning access subtypes.
23218 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
23219 for examined parameters. Identify unequal parameter list lengths as
23220 non-conformant parameters.
23221 (Overriding_Possible): Do not check for "All" qualifier in declaration
23222 of controlling access parameter, following prescription of AI-404.
23223 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
23224 that build the procedure body that wraps an entry invocation
23225 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
23226 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
23227 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
23228 give support to abstract interface types
23230 * freeze.adb (Freeze_Entity): Issue error message if
23231 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
23232 type has no storage pool (Ada 2005) AI-366.
23233 Also modified to give support to abstract interface types
23234 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
23235 Inline_Always pragma.
23237 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
23238 now begin an entry declaration.
23239 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
23240 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
23241 a subprogram declaration preceded by an overriding indicator.
23242 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
23243 declarations or subprogram declarations preceded by reserved words
23244 "not" or "overriding".
23245 (P_Entry_Declaration): Update comment. Parse and check overriding
23246 indicator, set semantic flags of entry declarations.
23247 (P_Task): New error message in case of private applied
23248 to a task type declaration.
23249 (P_Protected): New error message in case of private applied
23250 to a task type declaration.
23252 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
23253 in which the full view of a type implementing an interface is a
23255 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
23256 Declare_Inherited_Private_Subprograms): If an explicit operation
23257 overrides an operation that is inherited in the private part, mark the
23258 explicit one as overriding, to enable overriding indicator checks.
23259 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
23260 full view to partial view, to simplify handling in back-end.
23262 * sprint.adb: Print interface lists where needed: derived types,
23263 protected types, task types.
23264 output "is null" for null procedures. Part of implementation of
23266 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
23267 relaxation of rules for access types in pure, shared passive partitions.
23269 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
23270 first read discriminants into temporary objects, performing checks on
23271 the read values, then possibly performing discriminant checks on the
23272 actual (if it is constrained), and only finally reading the components
23273 into a constrained temporary object.
23274 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
23275 case of reading discriminants of a mutable record type to recognize
23276 the new form of the code generated by
23277 Build_Mutable_Record_Read_Procedure.
23279 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
23280 of a simple call to Make_TSS_Name.
23281 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
23282 buffer, in order for Is_TSS to work correctly on local TSS names.
23284 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
23285 Is_Local_Anonymous_Access to check legaliy of attributes in the
23286 context of access components and stand-alone access objects.
23287 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
23288 treated as available for a limited private type if there is an
23289 attribute_definition_clause that applies to its full view, but not in
23290 other cases where the attribute is available for the full view
23291 (specifically, the sole fact that the full view is non-limited does not
23292 make the attribute available for the partial view).
23293 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
23294 non-overloaded intrinsic subprogram.
23295 (Check_Stream_Attribute): Reject an attribute reference for an
23296 unavailable stream attribute even if the prefix is not a limited type
23297 (case of a 'Input attribute reference for an abstract, non-classwide
23299 (Stream_Attribute_Available): New function to determine whether a stream
23300 attribute is available at a place.
23301 (Check_Attribute): Use Stream_Attribute_Available instead of just
23302 testing for TSS presence on the implementation base type.
23303 (Analyze_Attribute): Modified to give support to task interfaces.
23304 (Analyze_Access_Attribute): Add error check for use of an Access (or
23305 Unrestricted_Access) attribute with a subprogram marked as
23307 (Analyze_Attribute, case Attribute_Address): Add error check for use of
23308 an Address attribute with a subprogram marked as Inline_Always.
23309 Update Eval_Attribute to handle new value of Width from AI-395
23311 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
23312 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
23313 Factor common code across the stream-oriented attribute circcuits into
23314 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
23315 processing is functionally identical to the previous duplicated one,
23316 except that an expression that denotes an abstract subprogram will now
23317 be rejected, as mandated by AI-195 item 5.
23319 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
23320 Is_Local_Anonymous_Access to apply accessibility checks to access
23321 components and stand-alone access objects.
23322 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
23324 (Is_Potentially_Persistent_Type): New function
23325 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
23326 a heap-object whose type has a constrained partial view, the object is
23327 unconstrained and the component may depend on a discriminant, making its
23330 * sinfo.ads, sinfo.adb
23331 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
23332 (Must_Override): Flag applicable to N_Entry_Declaration.
23333 Indicate that interface_list can appear in single task and single
23334 protected declarations.
23335 Replace Is_Overriding and Not_Overriding with Must_Override and
23336 Must_Not_Override, to better express intent of AI.
23337 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
23338 of an overriding indicator in a subprogram or instance.
23339 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
23340 Add the overriding indicator [[not] overriding] construct to the
23341 following grammar productions:
23343 GENERIC_INSTANTIATION
23344 SUBPROGRAM_SPECIFICATION
23346 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
23347 can start with an overriding indicator.
23349 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
23350 flags accordingly on subrogram specifications or instances.
23353 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
23354 overriding_indicator, if present, is consistent with status of spec.
23355 Improve error message for null-excluding checks on controlling access
23357 (Check_In_Previous_With_Clause): Protect the frontend against
23358 previously reported critical errors in the context clauses.
23359 Save and restore Ada_Version_Explicit, for implementation of AI-362
23360 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
23361 operation verify that controlling formals of the renamed entity that
23362 are access parameters are explicitly non-null.
23363 (Find_Expanded_Name): Improve error message when prefix is an illegal
23364 reference to a private child unit.
23366 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
23367 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
23368 Rewrite to correspond to new wide character names in AI-395
23370 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
23371 default procedures.
23373 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23374 Robert Dewar <dewar@adacore.com>
23376 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
23377 code, not on the bodies of predefined operations, to cut down on
23380 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23382 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
23383 be expanded in place. The size computation does not require a
23384 subtraction, which would raise an exception on a compiler built with
23385 assertions when the upper bound is Integer'first.
23386 (Flatten): For an array of composite components, take into account the
23387 size of the components to determine whether it is safe to expand the
23388 array into a purely positional representation.
23390 2005-06-14 Thomas Quinot <quinot@adacore.com>
23392 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
23393 denoting a formal parameter into account.
23395 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23397 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
23398 the entry_call alternative of a conditional entry call, wrap the
23399 conditional entry call itself.
23401 2005-06-14 Nicolas Setton <setton@adacore.com>
23402 Ed Schonberg <schonberg@adacore.com>
23404 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
23405 the "simple_choice" member in a variant record, in accordance with the
23406 description in the package spec: the information output for a constant
23407 should be "S number", not "SS number".
23408 (Get_Encoded_Name): Return at once if not generating code. Avoids name
23409 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
23411 2005-06-14 Thomas Quinot <quinot@adacore.com>
23413 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
23414 RACW without any primitives, do not generate the if statement for
23415 dispatching by name in the PolyORB/DSA case, as it would be malformed
23416 (it would have an Elsif_Parts list that is not No_List, but with a
23419 2005-06-14 Robert Dewar <dewar@adacore.com>
23421 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
23423 2005-06-14 Jose Ruiz <ruiz@adacore.com>
23425 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
23426 can determine whether pragma Suppress_Exception_Locations is in effect.
23428 * utils2.c (build_call_raise): Do not pass the file name to the
23429 exception handler if pragma Suppress_Exception_Locations is in effect.
23430 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
23432 2005-06-14 Emmanuel Briot <briot@adacore.com>
23434 * g-debpoo.adb (Deallocate, Dereference): Improve output.
23436 2005-06-14 Nicolas Roche <roche@adacore.com>
23438 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
23440 (Next_Level): Fix minor bug in handling of ../dir case
23441 (Read): Add dir separator to Directory name so that "" is understood as
23444 2005-06-14 Pascal Obry <obry@adacore.com>
23446 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
23447 releasing the items.
23449 2005-06-14 Vincent Celier <celier@adacore.com>
23450 Cyrille Comar <comar@adacore.com>
23452 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
23453 with output file descriptor and with output file name.
23454 (Dup, Dup2): Now global procedures as they are used by two subprograms
23455 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
23457 2005-06-14 Thomas Quinot <quinot@adacore.com>
23460 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
23462 (Create_Selector): Bind listening socket used to create the signalling
23463 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
23464 Set listen backlog to 1 to ensure that we detect socket theft by a
23465 failure of our own connect(2) call.
23466 (Check_Selector): Improve documentation of the selector mechanism.
23467 (Broadcast_Inet_Addr): New constant.
23469 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23471 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
23472 type which turns out to be an incomplete and incorrect fix.
23473 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
23474 of the type is declared in a record (for determination of insertion
23476 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
23477 a private type and ensure that the primary entity is used for the type
23478 of the newly created function's V formal by taking the Etype of the
23481 2005-06-14 Javier Miranda <miranda@adacore.com>
23482 Jose Ruiz <ruiz@adacore.com>
23483 Robert Dewar <dewar@adacore.com>
23484 Ed Schonberg <schonberg@adacore.com>
23486 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
23487 that indicates if we are parsing a compilation unit found in a
23488 limited-with clause.
23489 It is use to avoid the circularity check.
23491 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
23492 we are parsing a compilation unit found in a limited-with clause. This
23493 is use to avoid the circularity check.
23495 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
23496 unit as a consequence of parsing a limited-with clause. This is used
23497 to avoid the circularity check.
23499 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
23500 (Analyze_Context): Limited-with clauses are now allowed
23501 in more compilation units.
23502 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
23503 againts previously reported critical errors in context clauses
23504 (Install_Limited_Withed_Unit): Code cleanup plus static detection
23505 of two further errors: renamed subprograms and renamed packages
23506 are not allowed in limited with clauses.
23507 (Install_Siblings): Do not install private_with_clauses on the package
23508 declaration for a non-private child unit.
23509 (Re_Install_Parents): When a parent of the subunit is reinstalled,
23510 reset visibility of child units properly.
23511 (Install_Withed_Unit): When a child unit appears in a with_clause of its
23512 parent, it is immediately visible.
23514 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23515 Emmanuel Briot <briot@adacore.com>
23517 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
23518 declared within an inlined body as referenced, to prevent spurious
23520 (Output_One_Ref): If an entity renames an array component, indicate in
23521 the ALI file that this aliases (renames) the array. Capture as well
23522 function renamings that rename predefined operations.
23523 Add information about generic parent for package and subprogram
23525 (Get_Type_Reference): For a subtype that is the renaming of an actual in
23526 an instantiation, use the first_subtype to ensure that we don't generate
23527 cross-reference information for internal types.
23528 For objects and parameters of a generic private type, retain the '*'
23529 indicator to distinguish such an entity from its type.
23531 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
23532 to store information about instantiated entities.
23534 * ali.adb (Scan_ALI): Add support for parsing the reference to the
23537 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
23538 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
23541 2005-06-10 Doug Rupp <rupp@adacore.com>
23542 Arnaud Charlet <charlet@adacore.com>
23543 Olivier Hainque <hainque@adacore.com>
23544 Jose Ruiz <ruiz@adacore.com>
23546 * Make-lang.in: Add initialize.o when needed.
23547 Remove obsolete references to RT_FLAGS.
23548 Add missing dependencies for sdefault.o
23550 * initialize.c: New file.
23552 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
23553 [VMS] cond_signal_table: Fix problem in declaration.
23554 [VMS] __gnat_error_handler: rewrite.
23555 Move all __gnat_initialize() routines to initialize.c
23556 Specialize the former "hpux" section to "hppa hpux", as this is what the
23557 section really is here for and we now have other hpux ports that need
23558 different contents.
23559 (__gnat_adjust_context_for_raise) i386-linux: First version of this
23560 function for this target. Adjust PC by one in the machine context. This
23561 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
23562 it is more reliable to do that in the signal handler itself.
23563 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
23564 flags, so that the handler is passed the context structure to adjust
23565 prior to the raise.
23566 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
23567 SA_SIGINFO sigaction should look like. Call
23568 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
23569 Machine_State_Operations stuff.
23570 Add conditional code so that the x86_64 is also supported.
23572 2005-06-14 Pascal Obry <obry@adacore.com>
23574 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
23577 2005-06-14 Robert Dewar <dewar@adacore.com>
23579 * opt.ads, opt.adb: New flags for persistent_bss mode
23580 Add Ada_Version_Explicit, for implementation of AI-362
23581 Add Assertions_Enabled_Config and associated handling
23582 Needed since setting can be changed with Assertion_Policy pragma
23583 Add new flag Warn_On_Ada_2005_Compatibility
23585 * switch-c.adb: Recognize -gnatwy/Y
23586 Set Ada_Version_Explicit, for implementation of AI-362
23587 The -gnatg switch now includes -gnatyu
23589 * usage.adb: Add -gnatwy/Y
23590 Remove wrong asterisk on -gnatwX line
23591 Add line for -gnatyu switch
23593 2005-06-14 Vincent Celier <celier@adacore.com>
23595 * osint.adb (Add_Default_Search_Dirs): Put source and object
23596 directories of project files before directories coming from
23597 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
23599 2005-06-14 Robert Dewar <dewar@adacore.com>
23602 * par-ch2.adb (Scan_Pragma_Argument): New procedure
23603 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
23605 2005-06-14 Vincent Celier <celier@adacore.com>
23607 * prep.adb (Preprocess): Ignore error when scanning the first token of
23610 2005-06-14 Vincent Celier <celier@adacore.com>
23612 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
23613 (Check_Stand_Alone_Library): If the specified reference symbol file does
23614 not exist, only issue a warning when the symbol policy is not
23615 Controlled. And, when symbol policy is Compliant, set the symbol
23616 policy to Autonomous.
23618 2005-06-14 Vincent Celier <celier@adacore.com>
23620 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
23621 when the project file in a with clause is not the last one, that is the
23622 project file name is followed by a comma.
23623 * prj-pp.adb: (First_With_In_List): New Boolean global variable
23624 (Print): Issue list of project files separated by commas in with clauses
23625 according to the values returned by Is_Not_Last_In_List.
23626 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
23627 (Set_Is_Not_Last_In_List): New procedure
23629 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
23631 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
23633 2005-06-14 Robert Dewar <dewar@adacore.com>
23635 * scng.adb: Add call to new Check_EOF routine
23636 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
23637 Add some comments regarding wide character handling
23639 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
23641 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
23643 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
23644 characters are now considered graphic characters and hence yield false
23647 * nmake.adt: Modify header so that xnmake does not generate output
23648 files with multiple blank lines.
23650 * treeprs.adt: Remove a blank line so that output from xtreeprs does
23651 not have an extra blank line
23653 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23655 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
23656 expression when the component type is an anonymous access type to
23657 ensure that appropriate accessibility checks are done.
23659 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
23660 expression of an assignment when the target object is of an anonymous
23661 access type. This ensures that required accessibility checks are done.
23662 (One_Bound): Move the check for type Universal_Integer to
23664 (Process_Bounds): Check whether the type of the preanalyzed range is
23665 Universal_Integer, and in that case set Typ to Integer_Type prior
23666 to setting the type of the original range and the calls to One_Bound.
23668 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23670 * sem_case.adb (Expand_Others_Choice): Improve warning.
23672 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23674 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
23675 constraint of full view if present, when other type is discriminated.
23676 (Eval_Relational_Op): Recognize tests of pointer values against Null,
23677 when the pointer is known to be non-null, and emit appropriate warning.
23679 2005-06-14 Robert Dewar <dewar@adacore.com>
23680 Ed Schonberg <schonberg@adacore.com>
23683 * sem_prag.adb: Implement pragma Persistent_BSS
23684 Remove obsolete pragma Persistent_Data, Persistent_Object
23685 Set Ada_Version_Explicit, for implementation of AI-362
23686 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
23687 Add processing for pragma Pure_05 and Preelaborate_05
23688 Add processing for Assertion_Policy pragma
23689 Add pragma identifiers for Assert
23690 (Analyze_Pragma, case Assert): Check number of arguments
23691 (Process_Inline): Additional guard against an illegal program, where the
23692 argument of the pragma is undefined, and warnings on redundant
23693 constructs are enabled.
23694 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
23695 Ada_05 to this pragma, specifying that the pragma is only active in
23697 (Check_Arg_Order): New procedure
23698 Add appropriate calls to this procedure throughout
23699 Also throughout, check entity name before doing any other checks
23701 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
23702 Remove obsolete pragma Persistent_Data, Persistent_Object
23703 Add entries for pragma Pure_05 and Preelaborate_05
23704 Add entries for Assertion_Policy pragma and associated names
23705 Add some names for pragma argument processing
23707 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
23709 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23711 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
23712 appears within a negation (either from source or as a rewriting of
23713 inequality) adjust text of warning accordingly.
23715 2005-06-14 Thomas Quinot <quinot@adacore.com>
23717 * s-strxdr.adb: Follow AI95-00132
23719 2005-06-14 Arnaud Charlet <charlet@adacore.com>
23721 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
23723 2005-06-14 Arnaud Charlet <charlet@adacore.com>
23724 Jose Ruiz <ruiz@adacore.com>
23726 * s-tposen.adb, s-tpobop.adb
23727 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
23729 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
23730 there is no violation of the Max_Entry_Queue_Length restriction (if it
23731 has been set); Program_Error is raised otherwise.
23732 (Requeue_Call): Before requeuing the task on the target entry queue we
23733 check that there is no violation of the Max_Entry_Queue_Length
23734 restriction (if it has been set); Program_Error is raised otherwise.
23736 2005-06-14 Robert Dewar <dewar@adacore.com>
23738 * styleg.adb: Fix several remaining problems in -gnatyu switch
23739 Blank line count not reset at start
23740 Scanning outside source buffer in some cases
23741 Confusing message for blanks at end of file
23742 Non-empty blank lines not recognized
23744 * nmake.adt: Modify header so that xnmake does not generate output
23745 files with multiple blank lines.
23747 * treeprs.adt: Remove a blank line so that output from xtreeprs does
23748 not have an extra blank line
23750 2005-06-14 Sergey Rybin <rybin@adacore.com>
23752 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
23754 2005-06-14 Doug Rupp <rupp@adacore.com>
23755 Vincent Celier <celier@adacore.com>
23757 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
23760 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23761 Remove "Library" command.
23762 Change keyword for style check -gnatyd from NOCRLF to
23764 Remove useless second style check keyword NONE
23765 Remove help documentation for inexistent style check keyword
23767 Add help documentation for style check keywords DOS_LINE_ENDINGS,
23768 UNNECESSARY_BLANK_LINES and XTRA_PARENS
23769 Add UNNECESSARY_BLANK_LINES for -gnatyu
23770 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
23772 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
23774 2005-06-14 Vincent Celier <celier@adacore.com>
23776 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
23777 gprmake was invoked with -d.
23778 (Compile_Sources): If -d was used, output the "completed ..." message
23779 for each compilation.
23780 (Scan_Arg): Recognize new switch -d
23781 When -c and at least one main is specified, set
23782 Unique_Compile to True to guarantee that no other sources will be
23785 2005-06-14 Matthew Heaney <heaney@adacore.com>
23787 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
23788 * a-swuwha.ads, a-swuwha.adb: New files
23790 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
23791 * a-szuzha.ads, a-szuzha.adb: New files.
23793 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
23794 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
23795 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
23796 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
23797 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
23798 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
23799 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
23800 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
23801 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
23802 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
23805 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
23806 Olivier Hainque <hainque@adacore.com>
23807 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23808 Pascal Obry <obry@adacore.com>
23810 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
23812 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
23813 making a temporary around a procedure call because of non-addressable
23815 (process_freeze_entity): If entity is a private type, capture size
23816 information that may have been computed for the full view.
23817 (tree_transform, case N_Allocator): If have initializing expression,
23818 check type for Has_Constrained_Partial_View and pass that to
23820 (tree_transform, case N_Return_Statement): Pass extra arg to
23823 * decl.c (annotate_value): Remove early return if -gnatR is not
23825 (gnat_to_gnu_field): Don't make a packable type for a component clause
23826 if the position is byte aligned, the field is aliased, and the clause
23827 size isn't a multiple of the packable alignment. It serves no useful
23828 purpose packing-wise and would be rejected later on.
23829 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
23832 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
23833 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
23835 (create_concat_name): Idem.
23837 2005-06-10 Robert Dewar <dewar@adacore.com>
23838 Eric Botcazou <ebotcazou@adacore.com>
23839 Ben Brosgol <brosgol@adacore.com>
23840 Cyrille Comar <comar@adacore.com>
23841 Sergey Rybin <rybin@adacore.com>
23842 Pascal Obry <obry@adacore.com>
23844 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
23845 Document second argument (Ada_05) of pragma Obsolescent
23846 Add note that call to subprogram marked with pragma Obsolescent
23847 is now considered to be a violation of program Restrictions
23848 (No_Obsolescent_Features).
23849 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
23850 that only machine-dependent attributes are supported.
23853 Commented out menu lines and empty section for gnatclean examples
23855 Fix some over long lines
23856 Clarify and enhance documentation of ADA_PROJECT_PATH.
23857 Rework section 2.11.2(3) about linking with a non-GNU compiler.
23858 Mention new switch -fcallgraph-info.
23859 Mention new switch -fstack-usage.
23860 For gnatpp, replace '-notab' with '-N' and add this option to Index
23861 Corrected VMS example.
23862 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
23864 Add documentation for -gnatyu switch (unnecessary blank lines)
23865 Document new switch -U for GNAT PRETTY and GNAT METRIC
23866 Add note about Stdcall being handled as C convention on non Windows OS.
23867 Remove some junk typo in description of gnatbind -S switch
23868 Remove reference to Extensions_Allowed pragma
23869 Document the new order of the directories to be searched (source and
23870 object directories of project files before directories in ADA_*_PATH
23871 environment variables.
23873 * g-trasym.ads: Document that IRIX is supported
23875 2005-06-10 Arnaud Charlet <charlet@adacore.com>
23877 * Makefile.in: Add initialize.o when needed.
23878 Adapt to new VMS package body Symbols and subunits
23879 No specialized version of a-sytaco is needed for VxWorks.
23881 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
23882 * a-zchara.ads, a-widcha.ads: New files.
23884 * system-hpux-ia64.ads: New file.
23886 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
23887 is imported from the VxWorks kernel.
23889 2005-06-14 Robert Dewar <dewar@adacore.com>
23891 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
23892 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
23893 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
23894 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
23895 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
23896 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
23897 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
23898 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
23899 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
23900 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
23901 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
23902 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
23904 2005-06-14 Thomas Quinot <quinot@adacore.com>
23906 * xeinfo.adb: Fix typo in comment
23908 2005-06-14 Javier Miranda <miranda@adacore.com>
23910 * repinfo.ads: Fix typo in comment
23912 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23914 * s-finimp.adb (Parent_Tag): Delete this imported function (function
23915 Parent_Tag is now in the visible part of Ada.Tags).
23916 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
23917 using imported function.
23919 2005-06-14 Bernard Banner <banner@adacore.com>
23921 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
23922 also apply for handling support for VxSim 653.
23924 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
23926 * xsnames.adb: Add automatic generation of snames.h.
23928 2005-06-14 Thomas Quinot <quinot@adacore.com>
23930 * gen-soccon.c: Add IP_MULTICAST_IF constant
23931 Minor reformatting and adjustments to prevent warnings.
23933 2005-06-14 Pascal Obry <obry@adacore.com>
23935 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
23937 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
23939 * trans.c (gnat_gimplify_expr): Call
23940 recompute_tree_invarant_for_addr_expr when we change
23941 the operand of the ADDR_EXPR.
23943 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23945 * misc.c: Don't include errors.h.
23947 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23949 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
23951 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
23953 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
23955 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
23957 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
23960 * Makefile.in: Make TGT_LIB behave correctly.
23962 2005-04-23 DJ Delorie <dj@redhat.com>
23964 * misc.c: Adjust warning() callers.
23966 2005-04-16 Laurent Guerby <laurent@guerby.net>
23969 * a-nudira.adb (Value): Check for valid string.
23970 * a-nuflra.adb (Value): Likewise.
23972 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
23974 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
23976 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
23978 * adaint.c, init.c, tracebak.c: Fix comment typos.
23979 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
23981 2005-04-07 Laurent Guerby <laurent@guerby.net>
23982 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23984 * Makefile.in: Add make ifeq define for hppa linux tasking support.
23985 * system-hpux.ads: Define Signed_Zeros to be True.
23986 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
23988 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
23990 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
23991 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
23994 2005-03-30 Tom Tromey <tromey@redhat.com>
23996 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
23998 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
24000 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
24002 2005-03-29 Robert Dewar <dewar@adacore.com>
24004 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
24005 fixed-point expression has value that is not a multiple of the Small
24008 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
24010 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
24013 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
24015 2005-03-29 Vincent Celier <celier@adacore.com>
24017 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
24018 (Build_Dynamic_Library.Version_String): Return the empty string when
24019 Lib_Version is empty or when the symbol policy is not Autonomous.
24021 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
24022 a symbol is not in the reference symbol file, increase the Major ID
24023 and set the Minor ID to 0.
24024 Use gsmatch=lequal instead of gsmatch=equal
24026 2005-03-29 Doug Rupp <rupp@adacore.com>
24028 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
24029 name and translate.
24031 2005-03-29 Javier Miranda <miranda@adacore.com>
24033 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
24034 (Inherit_DT): The first formal has been redefined as a Tag.
24035 This allows us the removal of the subprogram Get_TSD.
24036 (TSD): Replace the call to Get_TSD by the actual code.
24038 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
24039 (Make_DT): Upgrade the call to Inherit_TSD according to the
24040 new interface: the first formal is now a Tag.
24042 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
24043 redefined as a Tag.
24044 This change allows us to remove the subprogram Get_TSD.
24045 (CPP_Get_TSD): Subprogram removed.
24046 (TSD): Replace the call to CPP_Get_TSD by the actual code.
24048 * rtsfind.ads: Remove support to call the run-time
24051 2005-03-29 Robert Dewar <dewar@adacore.com>
24053 * errutil.adb, errout.adb:
24054 Minor comment updates on Line_Terminator references
24056 * par-ch10.adb: Add ??? comment about line terminator
24058 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
24059 (check dos line terminator).
24060 (Check_Line_Max_Length): New procedure, split off from the existing
24061 Check_Line_Terminator routine. Separating this out allows -gnatyf to
24062 be properly recognized.
24064 * styleg.adb: Add ??? comment for line terminator reference
24066 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
24067 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
24069 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
24070 (check dos line terminator).
24071 (Check_Line_Max_Length): New procedure, split off from the existing
24072 Check_Line_Terminator routine. Separating this out allows -gnatyf to
24073 be properly recognized.
24075 * stylesw.ads, stylesw.adb:
24076 Add handling for new -gnatyd switch (check dos line terminator)
24078 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
24079 Recognize -gnatwb/-gnatwB switches
24080 Include Warn_On_Bad_Fixed_Value for -gnatg
24083 Add line for new -gnatyd switch (check dos line terminator)
24085 * usage.adb: Add lines for -gnatwb/-gnatwB
24087 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
24089 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
24091 * gnat_ugn.texi: Fix overlong lines
24092 Document new -gnatyd switch
24093 Document new -gnatwb/-gnatwB switches
24095 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24097 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
24098 order to retrieve the component list of the type, before examining
24099 individual components.
24101 * sem_type.adb (Covers): Types are compatible if one is the base type
24102 of the other, even though their base types might differ when private
24103 views are involved.
24105 2005-03-29 Thomas Quinot <quinot@adacore.com>
24107 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
24108 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
24109 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
24110 analyzed if expansion is disabled (which could otherwise cause spurious
24111 error messages if expansion has been disabled due to previous
24112 (unrelated) errors).
24114 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
24115 is disabled, the entity denoted by the argument is the access type
24116 itself, not an underlying record type, so there is no need to go back
24117 to the Corresponding_Remote_Type.
24119 2005-03-29 Gary Dismukes <dismukes@adacore.com>
24120 Robert Dewar <dewar@adacore.com>
24122 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
24123 expand a call to an instance of
24124 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
24125 Constructor actual of the instance. A class-wide membership
24126 check is also generated, to ensure that the tag passed to the instance
24127 denotes a type in the class.
24128 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
24129 of Name_Generic_Dispatching_Constructor.
24131 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
24132 05 unit for AI-260-02).
24134 * a-tgdico.ads: New file.
24136 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
24137 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
24139 * snames.ads, snames.adb (Preset_Names): Add entry for
24140 Generic_Dispatching_Constructor.
24143 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
24144 character type cases.
24145 (Analyze_Subprogram_Renaming): Add special handling for
24146 the case of renaming of stream attributes when the renaming denotes a
24147 generic formal subprogram association for an abstract formal subprogram.
24148 Check that the attribute is a primitive stream attribute (and not
24149 a class-wide stream attribute) and then rewrite the attribute name
24150 as the name of the appropriate compiler-generated stream primitive.
24152 2005-03-29 Robert Dewar <dewar@adacore.com>
24154 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
24156 (Is_Possibly_Unaligned_Object): Correct typo that
24157 resulted in inaccurate result for unaligned scalars within records.
24159 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24161 * freeze.adb (Freeze_Record_Type): If the type of the component is an
24162 itype whose parent is controlled and not yet frozen, do not create a
24163 freeze node for the itype if expansion is disabled.
24165 2005-03-29 Vincent Celier <celier@adacore.com>
24167 * make.adb (Gnatmake): Don't fail if the main project file is declared
24168 as having no Ada sources. Do not display message "no sources to
24169 compile" in quiet output.
24171 2005-03-29 Doug Rupp <rupp@adacore.com>
24173 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
24176 2005-03-29 Robert Dewar <dewar@adacore.com>
24178 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
24181 2005-03-29 Robert Dewar <dewar@adacore.com>
24183 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
24184 missing TYPE Improve the error message generated when compiling a
24185 limited interface in Ada83 or Ada95 mode.
24187 2005-03-29 Robert Dewar <dewar@adacore.com>
24189 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
24190 rather than proceed ahead using a junk attribute name.
24192 2005-03-29 Vincent Celier <celier@adacore.com>
24194 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
24196 * prj-part.adb (Parse_Single_Project): Set the location of a project
24197 on its defining identifier, rather than on the reserved word "project".
24199 * prj-proc.adb (Expression): Adapt to the fact that default of external
24200 references may be string expressions, not always literal strings.
24201 (Recursive_Process): Set Display_Name equal to Name
24202 when Location is No_Location, that is when there is no actual file.
24203 Get the Display_Name of the project from the source, when it is not a
24205 (Process): Use the Display_Name in error messages
24207 * prj-strt.adb (External_Reference): Allow default to be string
24208 expressions, not only literal strings.
24210 2005-03-29 Vincent Celier <celier@adacore.com>
24212 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
24213 file and the reference symbol file to be the same file.
24215 2005-03-29 Thomas Quinot <quinot@adacore.com>
24217 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
24218 forbid conversion of a local access-to-subprogram type to a remote one.
24220 * sem_util.adb (Wrong_Type): For a record type that is the expanded
24221 equivalent type for a remote access-to-subprogram type, go back to the
24222 original RAS entity when displaying an error message, so the casing is
24223 the original source casing.
24225 2005-03-29 Robert Dewar <dewar@adacore.com>
24227 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
24230 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24232 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
24233 subtype if code is being pre-analyzed, to prevent un-expanded
24234 references to protected formals, among others.
24235 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
24236 interpretation that can be a call, include the result of the call as a
24237 possible interpretation of the dereference.
24239 * sem_ch5.adb (Process_Bounds): Determine type of range by
24240 pre-analyzing a copy of the original range, and then analyze the range
24241 with the expected type.
24243 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
24244 with an overloaded prefix where not all interpretations yield an
24245 access to subprogram, do not rewrite node as a call.
24246 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
24247 the node as a call once the context identifies the interpretation of
24248 the prefix whose call yields the context type.
24249 (Valid_Conversion): For the case of a conversion between
24250 local access-to-subprogram types, check subtype conformance using
24251 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
24252 detailed error message.
24254 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24256 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
24257 indicator, indicate that the formal can never be null.
24258 (Process_Formals): If a formal has a non_null indicator, insert the
24259 resulting subtype immediately before the enclosing subprogram decl,
24260 and not at the beginning of the corresponding declarative part, to
24261 prevent access before elaboration (Ada2005).
24263 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24266 * utils.c (finish_record_type): Use variable_size when setting sizes.
24268 2005-03-29 Robert Dewar <dewar@adacore.com>
24270 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
24271 guarantee Unix style line terminators for the output files, even when
24272 running on windows.
24274 2005-03-29 Robert Dewar <dewar@adacore.com>
24276 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
24277 buffer if an exception is raised.
24279 2005-03-29 Ed Falis <falis@adacore.com>
24281 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
24284 2005-03-29 Robert Dewar <dewar@adacore.com>
24286 * sem_util.ads: Minor reformatting
24287 * gnat_rm.texi: Minor editing.
24289 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
24291 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
24292 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
24294 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
24296 * adaint.c (__gnat_portable_spawn): Adjust cast.
24298 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
24300 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
24302 2005-03-17 Pascal Obry <obry@adacore.com>
24304 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
24307 * expect.c (__gnat_waitpid): Moved here from adaint.c.
24308 Reimplement under Win32 using Win32 API.
24310 (__gnat_kill) [Win32]: Properly close the process handle before leaving
24313 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
24315 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
24316 (DECL_RENAMED_OBJECT): New accessor macro.
24317 (SET_DECL_RENAMED_OBJECT): New setter macro.
24319 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
24320 object in all cases. Attach the renamed object to the VAR_DECL.
24321 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
24322 field is not prescribed.
24324 * misc.c (gnat_handle_option): Handle -gnatO separately.
24325 (gnat_print_decl) <VAR_DECL>: New case.
24326 Print the DECL_RENAMED_OBJECT node.
24328 * lang.opt: Declare separate -gnatO option.
24330 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
24331 pointer, replace it with the renamed object.
24332 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
24333 pointer type if the source is not a fat pointer type whose underlying
24334 array has the same non-zero alias set as that of the destination array.
24336 2005-03-17 Javier Miranda <miranda@adacore.com>
24338 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
24339 (Get_Inheritance_Depth): Removed.
24340 (Set_Inheritance_Depth): Removed.
24342 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
24343 subprogram Get_Expanded_Name because it is not referenced by the
24346 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
24347 (CPP_Get_Inheritance_Depth): Removed.
24348 (CPP_Set_Inheritance_Depth): Removed.
24350 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
24352 2005-03-17 Robert Dewar <dewar@adacore.com>
24354 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
24355 3, since we now expect GCC 3 to do all the work.
24357 2005-03-17 Javier Miranda <miranda@adacore.com>
24359 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
24360 of one barrier to avoid wrong usage of this attribute.
24362 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
24363 First_Private_Entity.
24365 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
24366 the subprogram against wrong usage.
24367 Adapt the code to traverse the entities in the
24368 scope of a record_type because in addition to its usage regarding
24369 packages, this subprogram is also called by Expand_N_Freeze_Entity
24370 to install the visible declarations of the enclosing scope of a
24371 record_type_with_private to establish the proper visibility before
24372 freezing the entity and related subprograms.
24374 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24376 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
24379 2005-03-17 Thomas Quinot <quinot@adacore.com>
24381 * exp_ch3.adb (Check_Attr): New subprogram.
24382 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
24383 into a new Check_Attr subprogram, in order to provide a more
24384 explanatory error message (including the name of the missing attribute).
24385 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
24386 subprogram determines whether a default implementation exists for a
24387 given stream attribute.
24388 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
24389 Determine whether to generate a default implementation for each stream
24390 attribute separately, as this depends on the specific attribute.
24392 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
24393 limited extension where a stream attribute is missing for a limited
24394 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
24395 generate a bogus reference to the missing attribute to prevent
24396 cascaded errors. Instead, generate a null statement.
24398 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
24399 available for a limited type if it has been specified for an ancestor
24402 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24404 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
24405 entity is an operator.
24407 2005-03-17 Thomas Quinot <quinot@adacore.com>
24409 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24410 spec, to make this predicate available to other units.
24412 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
24415 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
24416 when no distribution runtime library is available.
24418 * sem_res.adb, sem_dist.adb: Disable expansion of remote
24419 access-to-subprogram types when no distribution runtime library is
24421 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
24422 predicate available to other units.
24424 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24425 spec, to make this predicate available to other units.
24427 2005-03-17 Vincent Celier <celier@adacore.com>
24429 * make.adb (Insert_Project_Sources): Make sure the Q is always
24432 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
24433 the default for the tree, not the global default naming.
24435 * prj-proc.adb (Recursive_Process): No need to put the default naming
24436 in the project data, it's already there.
24438 2005-03-17 Doug Rupp <rupp@adacore.com>
24440 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
24442 * 5xcrtl.ads: Renamed to...
24443 * s-crtl-vms64.ads: ...this new file
24445 2005-03-17 Robert Dewar <dewar@adacore.com>
24448 * namet.adb (Copy_One_Character): Set proper wide character encoding
24449 for upper half character if we have upper half encoding.
24451 2005-03-17 Robert Dewar <dewar@adacore.com>
24453 * par.adb (Par): Improved msg for attempt to recompile predefined unit
24455 2005-03-17 Thomas Quinot <quinot@adacore.com>
24457 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
24458 tagged limited type, the TSS is a newly built renaming declaration:
24459 insert it using Set_TSS, not Copy_TSS.
24461 2005-03-17 Javier Miranda <miranda@adacore.com>
24463 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
24464 Try_Object_Operation): Analyze the object that is accessible
24465 through the prefix of the subprogram call before we apply
24466 the transformation of the object-operation notation.
24468 2005-03-17 Jose Ruiz <ruiz@adacore.com>
24470 * s-taprob.adb (Initialize_Protection): Initialize the protected
24471 object's owner to Null_Task.
24472 (Lock): If pragma Detect_Blocking is in effect and the caller of this
24473 procedure is already the protected object's owner then Program_Error
24474 is raised. In addition the protected object's owner is updated.
24475 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
24476 of this procedure is already the protected object's owner then
24477 Program_Error is raised.
24478 In addition the protected object's owner is updated.
24479 (Unlock): Remove the ownership of the protected object.
24481 * s-taprob.ads (Protection): Add the field Owner, used to store the
24482 protected object's owner.
24483 This component is needed for detecting one type of potentially blocking
24484 operations (external calls on a protected subprogram with the same
24485 target object as that of the protected action). Document the rest of
24488 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
24489 Initialize the protected object's owner to Null_Task.
24490 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
24491 caller of this procedure is already the protected object's owner then
24492 Program_Error is raised.
24493 Do not raise Program_Error when this procedure is called from a
24495 (Unlock_Entries): Remove the ownership of the protected object.
24496 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
24497 of this procedure is already the protected object's owner then
24498 Program_Error is raised.
24499 Do not raise Program_Error when this procedure is called from
24500 a protected action.
24502 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
24503 used to store the protected object's owner.
24505 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
24506 effect and this procedure (a potentially blocking operation) is called
24507 from whithin a protected action, Program_Error is raised.
24508 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
24509 and this procedure (a potentially blocking operation) is called from
24510 whithin a protected action, Program_Error is raised.
24512 2005-03-17 Vincent Celier <celier@adacore.com>
24513 Nicolas Setton <setton@adacore.com>
24515 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
24516 switch, not supported by the linker on Darwin. Add '_' before
24517 <library>init, as this character is added unconditionally by the
24519 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
24520 correct one ".dylib". This fixes detection of the archive files when
24521 building library projects.
24523 2005-03-17 Vincent Celier <celier@adacore.com>
24525 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
24526 -gnat83, -gnat95 and -gnat05.
24528 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
24530 * gnat_ugn.texi: Document gnatmem restriction
24532 2005-03-17 Thomas Quinot <quinot@adacore.com>
24534 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
24537 2005-03-17 Robert Dewar <dewar@adacore.com>
24539 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
24540 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
24541 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
24543 * casing.adb: Comment improvements
24545 2005-03-17 Pascal Obry <obry@adacore.com>
24547 * g-expect.adb: Minor reformatting.
24549 2005-03-15 Zack Weinberg <zack@codesourcery.com>
24551 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
24552 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
24555 2005-03-15 Vincent Celier <celier@adacore.com>
24557 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
24558 Add new parameter In_Tree to specify the project tree: needed
24559 by the project manager. Adapt to changes in project manager
24560 using new parameter In_Tree.
24562 2005-03-15 Jakub Jelinek <jakub@redhat.com>
24564 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
24565 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
24566 ada/bldtools to avoid make -jN failures.
24568 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24570 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
24571 to NULL_TREE on entry.
24573 2005-03-15 Robert Dewar <dewar@adacore.com>
24575 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24576 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24577 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24578 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24579 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24580 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
24581 system-interix.ads, system-solaris-sparc.ads,
24582 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24583 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
24584 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
24585 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
24586 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
24587 Compiler_System_Version to be False.
24589 * opt.ads: Add new flag Opt.Address_Is_Private
24591 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
24592 Add new parameter Compiler_System_Version to avoid checking for
24593 completeness of parameters when compiler is compiling itself.
24594 Allows old versions of GNAT to be compiled with new compiler.
24596 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24598 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
24599 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
24601 (Stack_Base_Available): New flag.
24602 (Get_Page_Size): New overloaded functions imported from C.
24603 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
24604 PROT_ON, PROT_OFF): New constants.
24605 (mprotect): New function imported from C.
24606 (pthread_teb_t): New record type.
24608 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
24609 (Create_Task): Account for the Yellow Zone and the guard page.
24611 2005-03-15 Vincent Celier <celier@adacore.com>
24613 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24614 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24615 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
24616 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
24617 Library_File_Name_For): Add new parameter In_Tree
24618 to specify the project tree: needed by the project manager.
24619 Adapt to changes in project manager using new parameter In_Tree.
24620 Remove local imports, use functions in System.CRTL.
24622 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
24623 to use the project manager.
24625 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
24626 In_Tree to designate the project tree. Adapt to changes in the project
24627 manager, using In_Tree.
24629 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
24630 Copy_Interface_Sources): Add new parameter In_Tree to specify the
24631 project tree: needed by the project manager.
24632 (Build_Library): Check that Arg'Length >= 6 before checking if it
24633 contains "--RTS=...".
24635 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
24636 Library_File_Name_For): Add new parameter In_Tree to specify the
24637 project tree: needed by the project manager.
24639 * prj.ads, prj.adb: Major modifications to allow several project trees
24640 in memory at the same time.
24641 Change tables to dynamic tables and hash tables to dynamic hash
24642 tables. Move tables and hash tables from Prj.Com (in the visible part)
24643 and Prj.Env (in the private part). Move some constants from the visible
24644 part to the private part. Make other constants deferred.
24645 (Project_Empty): Make it a variable, not a function
24646 (Empty_Project): Add parameter Tree. Returns the data with the default
24647 naming data of the project tree Tree.
24648 (Initialize): After updating Std_Naming_Data, copy its value to the
24649 component Naming of Project Empty.
24650 (Register_Default_Naming_Scheme): Use and update the default naming
24651 component of the project tree, instead of the global variable
24653 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
24654 Tree is not defaulted, return the default naming data of the Tree.
24655 (Initial_Buffer_Size): Constant moved from private part
24656 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
24657 variables initialized in procedure Initialize.
24658 (Add_To_Buffer): Add two in out parameters to replace global variables
24659 Buffer and Buffer_Last.
24660 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
24662 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
24664 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24665 for the project tree.
24666 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
24667 constant at the beginning of the package spec, so that they cane be used
24668 in subprograms before their full declarations.
24669 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
24670 (Empty_Project): Add parameter of type Project_Node_Ref
24671 (Private_Project_Tree_Data): Add component Default_Naming of type
24673 (Buffer, Buffer_Last): remove global variables
24674 (Add_To_Buffer): Add two in out parameters to replace global variables
24675 Buffer and Buffer_Last.
24676 (Current_Packages_To_Check): Remove global variable
24677 (Empty_Name): Move to private part
24678 (No-Symbols): Make it a constant
24679 (Private_Project_Tree_Data): New type for the private part of the
24681 (Project_Tree_Data): New type for the data of a project tree
24682 (Project_Tree_Ref): New type to designate a project tree
24683 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
24684 for the project tree.
24686 * prj-attr.ads: Add with Table; needed, as package Prj no longer
24687 imports package Table.
24689 * prj-com.adb: Remove empty, no longer needed body
24691 * prj-com.ads: Move most of the content of this package to package Prj.
24693 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
24694 designate the project node tree and Packages_To_Check to replace
24695 global variable Current_Packages_To_Check.
24696 Add new parameters In_Tree and Packages_To_Check to local subprograms,
24697 when needed. Adapt to changes in project manager with project node tree
24700 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
24701 project tree to most subprograms. Move tables and hash tables to
24702 private part of package Prj.
24703 Adapt to changes in project manager using project tree In_Tree.
24705 * prj-makr.adb (Tree): New constant to designate the project node tree
24706 Adapt to change in project manager using project node tree Tree
24708 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
24709 display the Library_Src_Dir and the Library_Dir.
24710 Add new parameter In_Tree to designate the project node tree to most
24711 subprograms. Adapt to changes in the project manager, using project tree
24713 (Check_Naming_Scheme): Do not alter the casing on platforms where
24714 the casing of file names is not significant.
24715 (Check): Add new parameter In_Tree to designate the
24717 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
24718 designate the project tree.
24719 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
24721 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
24722 to replace those that were in the private part of package Prj.
24723 Add new parameter In__Tree to designate the project node tree to most
24724 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24725 (Post_Parse_Context_Clause): When specifying the project node of a with
24726 clause, indicate that it is a limited with only if there is "limited"
24727 in the with clause, not necessarily when In_Limited is True.
24728 (Parse): Add new parameter In_Tree to designate the project node tree
24730 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
24731 designate the project node tree. Adapt to change in Prj.Tree with
24732 project node tree In_Tree.
24734 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
24735 tree In_Tree in the call to function Empty_Process to give its initial
24736 value to the project data Processed_Data.
24737 Add new parameters In_Tree to designate the project tree and
24738 From_Project_Node_Tree to designate the project node tree to several
24739 subprograms. Adapt to change in project manager with project tree
24740 In_Tree and project node tree From_Project_Node_Tree.
24742 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
24743 to replace those that were in the private part of package Prj.
24744 Add new parameter In_Tree to designate the project node tree to most
24745 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
24747 * prj-tree.ads, prj-tree.adb: Add new parameter of type
24748 Project_Node_Tree_Ref to most subprograms.
24749 Use this new parameter to store project nodes in the designated project
24751 (Project_Node_Tree_Ref): New type to designate a project node tree
24752 (Tree_Private_Part): Change table to dynamic table and hash tables to
24753 dynamic hash tables.
24755 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
24756 the project tree to most subprograms. Adapt to changes in project
24757 manager using project tree In_Tree.
24759 * makegpr.adb (Project_Tree): New constant needed to use project
24762 2005-03-15 Olivier Hainque <hainque@adacore.com>
24764 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
24765 for sigactions with SA_SIGINFO set. Call
24766 __gnat_adjust_context_for_raise before raising, to perform the
24767 potentially required adjustments to the machine context for the GCC
24770 * raise.h (__gnat_adjust_context_for_raise): New prototype.
24772 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
24773 Adjust PC by one in the provided machine context.
24774 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
24775 so that the handler is passed the context structure to adjust prior to
24777 (__gnat_error_handler) HPUX: Adjust the signature to match what an
24778 SA_SIGINFO sigaction should look like. Call
24779 __gnat_adjust_context_for_raise before actually raising.
24780 (__gnat_adjust_context_for_raise): Default noop to help PC
24781 adjustments before raise from signal handlers.
24782 (__gnat_error_handler): Indirectly call a predicate function to
24783 determine if a condition should be resignaled or not.
24784 (__gnat_set_resignal_predicate): User interface to modify the predicate.
24785 (__gnat_default_resignal_p): Default GNAT predicate.
24787 2005-03-15 Doug Rupp <rupp@adacore.com>
24789 * adaint.c: Prefix #include of VMS system header files with vms/
24790 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
24791 Do not define a dummy function "convert_addresses" under Darwin,
24794 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
24797 2005-03-15 Nicolas Setton <setton@adacore.com>
24799 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
24802 2005-03-15 Robert Dewar <dewar@adacore.com>
24804 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
24807 * a-retide.ads: Minor comment changes
24809 2005-03-15 Robert Dewar <dewar@adacore.com>
24811 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
24812 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
24813 Realloc_For_Chunk to private part of package.
24814 New subprograms for AI-301
24816 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
24817 Get_Line procedure.
24818 Avoid unnecessary use of Get/Set_Wide_String
24820 2005-03-15 Robert Dewar <dewar@adacore.com>
24823 * a-stunau.ads, a-stunau.adb:
24824 Change interface to allow efficient (and correct) implementation
24825 The previous changes to allow extra space in unbounded strings had
24826 left this interface a bit broken.
24828 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
24830 * g-spipat.ads, g-spipat.adb: New interface for Get_String
24831 Minor reformatting (function specs)
24833 * g-spitbo.adb: New interface for Get_String
24835 * g-spitbo.ads: Minor reformatting
24837 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
24839 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
24841 2005-03-15 Javier Miranda <miranda@adacore.com>
24842 Robert Dewar <dewar@adacore.com>
24843 Thomas Quinot <quinot@adacore.com>
24844 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24846 * atree.ads, atree.adb: Add support for Elist24 field
24848 * atree.h: Fix wrong definition of Field27
24849 Add support for Elist16 field
24850 Add support for Elist24 field
24852 * einfo.ads, einfo.adb (Abstract_Interfaces,
24853 Set_Abstract_Interfaces): New subprograms.
24854 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
24856 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
24857 entities rather than a single node.
24858 (Is_Interface, Set_Is_Interface): New subprogram
24859 (First_Tag_Component): New syntesized attribute
24860 (Next_Tag_Component): New synthesized attribute
24861 (Write_Entity_Flags): Upgraded to write Is_Interface
24862 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
24863 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
24864 (Task_Body_Procedure): New subprogram to read this attribute.
24865 (Set_Task_Body_Procedure): New subprogram to set this attribute.
24866 (Has_Controlled_Component): Now applies to all entities.
24867 This is only a documentation change, since it always worked to apply
24868 this to other than composite types (yielding false), but now this is
24870 Update documentation on Must_Be_Byte_Aligned for new spec
24872 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
24873 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
24874 uses of the Access_Disp_Table attribute to reference the first dispatch
24875 table associated with a tagged type. As
24876 part of the implementation of abstract interface types,
24877 Access_Disp_Table has been redefined to contain a list of dispatch
24878 tables (rather than a single dispatch table).
24879 Similarly, upgrade all the references to Tag_Component by the
24880 new attribute First_Tag_Component.
24881 (Find_Inherited_TSS): Moved to exp_tss.
24882 Clean up test in Expand_N_Object_Declaration for cases
24883 where we need to do a separate assignment of the initial value.
24884 (Expand_N_Object_Declaration): If the expression in the
24885 declaration of a tagged type is an aggregate, no need to generate an
24886 additional tag assignment.
24887 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
24889 Bit packed array ops are only called if operands are known to be
24891 (Component_Equality): When returning an N_Raise_Program_Error statement,
24892 ensure that its Etype is set to Empty to avoid confusing GIGI (which
24893 expects that only expressions have a bona fide type).
24894 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
24895 determine the amount of data to be copied.
24897 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
24898 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
24899 INTERFACE_TYPE_DEFINITION ::=
24900 [limited | task | protected | synchronized] interface
24901 [AND interface_list]
24903 * par-ch3.adb (P_Type_Declaration): Modified to give support to
24905 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
24907 (P_Interface_Type_Definition): New subprogram that parses the new
24908 syntax rule of Ada 2005 interfaces
24909 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
24910 messages by the correct RENAMES (quotes removed).
24912 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
24913 attribute First_Tag_Component.
24915 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
24916 (Interface_List, Set_Interface_List): New subprograms.
24917 (Interface_Present, Set_Interface_Present): New subprograms.
24918 (Limited_Present, Set_Limited_Present): Available also in derived
24919 type definition nodes.
24920 (Protected_Present, Set_Protected_Present): Available also in
24921 record type definition and
24922 derived type definition nodes.
24923 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
24924 (Task_Present, Set_Task_Present): New subprogram.
24925 (Task_Body_Procedure): Removed.
24926 (Set_Task_Body_Procedure): Removed.
24927 These subprogram have been removed because the attribute
24928 Task_Body_Procedure has been moved to the corresponding task type
24929 or task subtype entity to leave a field free to store the list
24930 of interfaces implemented by a task (for AI-345)
24931 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
24932 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
24933 expression flag Do_Range_Check
24934 (Exception_Junk): Change to Flag7 to accomodate above change
24935 (Box_Present, Default_Name, Specification, Set_Box_Present,
24936 Set_Default_Name, Set_Specification): Expand the expression
24937 "X in N_Formal_Subprogram_Declaration" into the corresponding
24938 two comparisons. Required to use the csinfo tool.
24940 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
24941 "with string" given.
24943 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
24946 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
24949 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
24950 attribute Task_Body_Procedure rather than the old semantic field that
24951 was available in the task_type_declaration node.
24953 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
24954 interface type definitions.
24955 (P_Formal_Derived_Type_Definition): Modified to handle the list of
24958 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
24959 task type declaration.
24960 (P_Protected): Modified to handle the list of interfaces in a
24961 protected type declaration.
24963 2005-03-15 Doug Rupp <rupp@adacore.com>
24964 Vincent Celier <celier@adacore.com>
24966 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
24967 (Gen_Output_File_C): Likewise.
24968 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
24970 2005-03-15 Thomas Quinot <quinot@adacore.com>
24972 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
24973 is an N_Raise_Constraint_Error node, create a new copy of it without
24974 going through a call to Duplicate_Subexpr.
24976 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
24977 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24978 Nicolas Setton <setton@adacore.com>
24979 Ed Schonberg <schonberg@adacore.com>
24985 * decl.c (gnat_to_gnu_field): Reject aliased components with a
24986 representation clause that prescribes a size not equal to the rounded
24987 size of their types.
24988 (gnat_to_gnu_entity, case E_Component): Always look at
24989 Original_Record_Component if Present and not the entity.
24990 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
24991 of tagged extension types by not making field for components that are
24993 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
24994 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
24995 expression to the type of the object when the object is constant.
24996 Reverse defer_debug_incomplete_list before traversing it, so that trees
24997 are processed in the order at which they were added to the list. This
24998 order is important when using the stabs debug format.
24999 If we are deferring the output of debug information, also defer this
25000 output for a function return type.
25001 When adding fields to a record, prevent emitting debug information
25002 for incomplete records, emit the information only when the record is
25004 (components_to_record): New parameter defer_debug.
25005 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
25006 (gnat_to_gnu_field_decl): New function.
25007 (substitution_list, annotate_rep): Call it.
25008 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
25009 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
25010 No longer update discriminants to not be a COMPONENT_REF.
25011 (copy_alias_set): Strip padding from input type; also handle
25012 unconstrained arrays properly.
25014 * gigi.h (write_record_type_debug_info): New function.
25015 Convert to use ANSI-style prototypes. Remove unused
25016 declarations for emit_stack_check, elab_all_gnat and
25017 set_second_error_entity.
25018 (gnat_to_gnu_field_decl): New decl.
25020 * utils.c (write_record_type_debug_info): New function.
25021 (finish_record_type): Delegate generation of debug information to
25022 write_record_type_debug_info.
25023 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
25024 (update_pointer_to): Fix pasto.
25025 (convert) <UNION_TYPE>: Accept slight type variations when
25026 converting to an unchecked union type.
25028 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
25029 replace the N_Freeze_Entity with a null statement.
25031 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
25032 within a constrained subcomponent of an enclosing record, place the
25033 freeze nodes in the scope stack entry for the enclosing record.
25034 (Undelay_Type): New Subprogram.
25035 (Set_Small_Size): Pass T, the type to modify; all callers changed.
25036 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
25037 within records; allow them to have freeze nodes if their base types
25040 * exp_util.adb (Remove_Side_Effects): Properly test for
25041 Expansion_Delayed and handle case when it's inside an
25042 N_Qualified_Expression.
25044 * sem_ch3.adb (Derived_Type_Declaration): New predicate
25045 Comes_From_Generic, to recognize accurately that the parent type in a
25046 derived type declaration can be traced back to a formal type, because
25047 it is one or is derived from one, or because its completion is derived
25049 (Constrain_Component_Type): If component comes from source and has no
25050 explicit constraint, no need to constrain in in a subtype of the
25052 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
25053 Minor change to propagate Is_Ada_2005 flag
25055 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
25056 Expansion_Delayed is False.
25057 (assoc_to_constructor): Ignore fields that have a
25058 Corresponding_Discriminant.
25059 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
25060 function returns "by target", dereference the target pointer using the
25061 type of the actual return value.
25062 <all>: Be prepared for a null gnu_result.
25063 (processed_inline_subprograms): Check flag_really_no_inline
25064 instead of flag_no_inline.
25065 (set_second_error_entity): Remove unused function.
25066 (gnat_to_gnu, case N_Selected_Component): Call
25067 gnat_to_gnu_field_decl.
25068 (assoc_to_constructor): Likewise.
25070 2005-03-15 Robert Dewar <dewar@adacore.com>
25071 Ed Schonberg <schonberg@adacore.com>
25072 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25074 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
25075 Must_Be_Byte_Aligned for cases where we do not need to use a
25076 System.Pack_nn unit.
25078 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
25080 Needed now that we do some processing for IN parameters as well. This
25081 may well fix some unrelated errors.
25082 (Expand_Call): Handle case of unaligned objects (in particular those
25083 that come from packed arrays).
25084 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
25085 renamed entity is an inherited operation, re-expand the call using the
25086 original operation, which is the one to call.
25087 Detect attempt to inline parameterless recursive subprogram.
25088 (Represented_As_Scalar): Fix to work properly with private types
25089 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
25090 accurate estimate. Yields True in far fewer cases than before,
25091 improving the quality of code that depends on this test.
25093 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
25094 over both visible and private declarations to remove them from tree,
25095 and mark subprograms declared in package as eliminated, to prevent
25096 spurious use in subsequent compilation of generic units in the context.
25098 * exp_util.ads: Minor cleanup in variable names
25100 * sem_eval.ads, sem_eval.adb: Minor reformatting
25101 (Compile_Time_Known_Bounds): New function
25103 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25105 * exp_ch7.adb (Convert_View): Use base types of underlying types when
25106 determining whether an unchecked conversion is needed for the argument
25107 of an initialization call.
25109 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25111 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
25112 that appears in the instantiation rather than the internal subtype
25113 generated in the wrapper package, to avoid anomalies in gigi when the
25114 target is derived from a private type whose full view is an access type.
25116 2005-03-15 Robert Dewar <dewar@adacore.com>
25118 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
25120 Add documentation to replace the use of this flag
25121 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
25124 2005-03-15 Thomas Quinot <quinot@adacore.com>
25126 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
25127 here from exp_attr so it can be shared between exp_attr and exp_dist.
25128 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
25129 all TSS names, not a subset thereof, and the previous name introduced
25130 an unnecessarily confusion that a distinction might exist between
25131 "OK" TSS names and some "not OK" TSS names.
25133 2005-03-15 Doug Rupp <rupp@adacore.com>
25135 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
25138 2005-03-15 Pascal Obry <obry@adacore.com>
25139 Eric Botcazou <ebotcazou@adacore.com>
25143 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
25144 when IN_RTS. This is to work around a bootstrap path problem.
25146 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
25147 table and pass it to __gnat_install_SEH_handler().
25148 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
25150 * lang.opt: Fix specification of -fRTS=.
25152 2005-03-15 Doug Rupp <rupp@adacore.com>
25153 Bernard Banner <banner@adacore.com>
25154 Vincent Celier <celier@adacore.com>
25155 Arnaud Charlet <charlet@adacore.com>
25158 This change works fine when gnatlib is built from the gcc directory,
25159 but does not work when using the libada Makefile, since GCC_FOR_TARGET
25160 is not passed to ada/Makefile.in, so more work is needed by a
25161 Makefile/configure expert.
25163 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
25164 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
25165 Setup gnatlink switch -M for x86_64 linux, as it is already setup
25167 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
25168 Run ranlib on libgccprefix.a
25169 Define PREFIX_OBJS for Darwin, to build libgccprefix.
25170 (ADA_INCLUDE_SRCS): Split Ada packages.
25172 2005-03-15 Robert Dewar <dewar@adacore.com>
25174 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
25176 * impunit.adb: Add GNAT.UTF_32
25178 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
25180 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
25181 now uses GNAT.UTF_32).
25183 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
25184 capabilities for categorizing characters using Unicode categories
25186 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25188 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
25189 instantiation that has been rewritten as a package body, retrieve spec
25190 to generate proper name for implicit_with_clause.
25191 (Install_Parents): Recognize a parent that is an instantiation but has
25192 been rewritten as a package declaration during analysis.
25194 2005-03-15 Javier Miranda <miranda@adacore.com>
25195 Ed Schonberg <schonberg@adacore.com>
25197 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
25198 parameter reported some error we immediately return. This improves the
25199 behaviour of the frontend in case of errors.
25200 (Install_Parent, Remove_Parent): Introduce new flag
25201 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
25202 ancestor of a generic child unit, when the child is being instantiated.
25203 (Inline_Instance_Body): If we are compiling the private
25204 part or the body of a child unit, restore the proper visibility of the
25205 parents after compiling the instance body.
25207 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25208 Javier Miranda <miranda@adacore.com>
25211 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
25212 of a private type, in which case it is underlying_type that denotes
25213 the proper task. Also modified to use the new entity attribute
25214 that is directly available in the task type and task subtype entities
25215 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
25216 arrays when other dimensions than the first are constrained by
25217 discriminants of an enclosing record.
25218 (Insert_Explicit_Dereference): If the prefix is an indexed component or
25219 a combination of indexed and selected components, find ultimate entity
25220 and generate the appropriate reference for it, to suppress spurious
25222 (Note_Possible_Modification): If an entity name has no entity, return.
25223 (Is_Variable): A function call never denotes a variable.
25224 (Requires_Transient_Scope): For record types, recurse only on
25225 components, not on internal subtypes that may have been generated for
25226 constrained components.
25228 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25230 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
25231 Eliminated as candidates for resolution. Both efficient, and avoids
25232 anomalies with operators declared in deleted code.
25233 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
25234 expansion is disabled (as when compiling a generic) to prevent spurious
25235 warnings on prefixes of selected components.
25237 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25239 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
25240 attached to a list before checking whether it appears in the private
25241 declarations of the current package.
25242 (Make_Inequality_Operator): Insert declaration in proper declarative
25243 list rather than just setting the Parent field, so that
25244 Is_Private_Declaration can handle it properly.
25246 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25248 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
25249 a renaming a body, check that the renamed subprogram in not intrinsic.
25250 (Find_Direct_Name): If several use_visible entities hide
25251 each other, and the context is a predefined file compiled through
25252 rtsfind, keep only the entity that comes from a predefined file.
25254 2005-03-15 Geert Bosch <bosch@adacore.com>
25256 * s-fatgen.adb (Valid): Extend special exceptions to account for long
25257 long float padding to also cover AMD64 and IA64.
25259 2005-03-15 Gary Dismukes <dismukes@adacore.com>
25261 * s-imgwch.adb: Add with and use of Interfaces.
25262 (Img_Wide_Character): Change type of Val to Unsigned_16.
25263 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
25265 2005-03-15 Matthew Gingell <gingell@adacore.com>
25267 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
25269 2005-03-15 Robert Dewar <dewar@adacore.com>
25271 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
25273 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
25275 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
25277 2005-03-15 Robert Dewar <dewar@adacore.com>
25279 * s-bitops.adb, s-bitops.ads,
25280 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
25281 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
25282 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
25283 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
25284 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
25285 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
25286 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
25287 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
25290 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25292 * utils2.c (build_binary_op): Fix typo.
25294 2005-03-15 Doug Rupp <rupp@adacore.com>
25296 * s-crtl.ads (popen,pclose): New imports.
25298 2005-03-15 Cyrille Comar <comar@adacore.com>
25300 * comperr.adb (Compiler_Abort): remove references to obsolete
25301 procedures in the bug boxes for various GNAT builds.
25303 2005-03-15 Vincent Celier <celier@adacore.com>
25305 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
25307 2005-03-15 Geert Bosch <bosch@adacore.com>
25308 Arnaud Charlet <charlet@adacore.com>
25309 Robert Dewar <dewar@adacore.com>
25310 Cyrille Comar <comar@adacore.com>
25311 Sergey Rybin <rybin@adacore.com>
25313 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
25314 too specific and long-winded to be appropriate for the GNAT User's
25316 Warn about use of GCC switches not documented in the GNAT User's Guide,
25317 as these may cause generated code to not conform to Ada semantics.
25318 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
25319 Add documentation for -gnat95 and -gnat05 switches
25320 Remove paragraph documenting obsolete way to refer to third party
25322 Add a few references to Ada_05 that were missing.
25323 Update documentation on -gnatZ/-gnatL.
25324 Document limitation when using -m64 under Solaris.
25325 Change the "Name Casing" subsection of the pretty-printer section
25326 according to the changes in the dictionary processing.
25328 * gnat_rm.texi: Document the Ada_05 pragma.
25329 Section on record representation clauses describes the new more
25330 relaxed rules about placement of large packed bit array components.
25331 Add documentation of GNAT.UTF_32
25333 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
25335 * misc.c (gnat_post_options): Turn off structural
25338 2005-03-08 Laurent Guerby <laurent@guerby.net>
25340 * system-linux-sparc.ads: Fix typo in previous commit.
25342 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
25343 Laurent Guerby <laurent@guerby.net>
25346 * system-linux-sparc.ads: New.
25347 * Makefile.in: Add sparc linux entry.
25349 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
25351 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
25352 parameters as unused.
25354 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
25355 Partial merge from libada-gnattools-branch:
25357 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25358 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
25359 into code in gnattools/Makefile.in. Remove direct dependencies on
25360 stamp-tools by tools clauses.
25361 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25362 * config-lang.in: Add gnattools to $lang_dirs.
25364 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
25367 * utils.c (gnat_type_for_mode): Return null instead of ICE because
25368 we asked for an unknown mode.
25370 2005-02-12 Richard Henderson <rth@redhat.com>
25372 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
25373 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
25375 2005-02-10 Andreas Jaeger <aj@suse.de>
25377 * init.c (__gnat_initialize): Mark parameter as unused.
25379 2005-02-09 Doug Rupp <rupp@adacore.com>
25381 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
25382 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
25384 2005-02-09 Doug Rupp <rupp@adacore.com>
25386 * gnatchop.adb (dup, dup2),
25387 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
25389 * gnatlbr.adb (mkdir),
25390 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
25392 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
25394 2005-02-09 Doug Rupp <rupp@adacore.com>
25396 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
25398 2005-02-09 Robert Dewar <dewar@adacore.com>
25399 Thomas Quinot <quinot@adacore.com>
25400 Javier Miranda <miranda@adacore.com>
25401 Pascal Obry <obry@adacore.com>
25402 Ed Schonberg <schonberg@adacore.com>
25403 Doug Rupp <rupp@adacore.com>
25404 Gary Dismukes <dismukes@adacore.com>
25405 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25407 * g-zstspl.ads: New file.
25409 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
25411 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
25413 Add definition of Wide_Wide_Space for AI-285
25415 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
25416 interface (to support Ada 95 and Ada 2005 units).
25417 Add Unbounded_IO files
25418 Add entries for Wide_Wide packages for AI-285
25419 Add list of containers packages to Ada 2005 unit list
25421 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
25422 support new Unbounded_IO package cleanly.
25424 * g-utf_32.ads, g-utf_32.adb: New files.
25426 * Makefile.rtl: Add entry for g-utf_32
25427 Add new files for Unbounded_IO
25428 Adjust make file for new AI-285 wide wide packages
25429 Add AI-302 containers to the run time.
25431 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
25432 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
25433 subprograms for AI-301.
25435 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
25437 * a-stunau.ads: Minor comment correction
25439 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
25441 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
25442 (Check_RPC): Update to match changes in expanded code.
25443 Clean up unused entity.
25445 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
25446 was not taken into account.
25447 This includes proper initialization with Normalize_Scalars.
25448 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
25449 normalize scalars cases (particularly the latter) to do a better job
25450 of finding invalid representations.
25452 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
25454 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
25457 * exp_dist.adb: Add support for wide wide character type
25458 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
25459 private part, generate stub bodies at the end of the private part,
25460 not the visible part.
25461 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
25463 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
25464 generic wrapper to execute final processing after completing the
25465 expansion of the RPC receiver for an RACW.
25467 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
25468 packages and attributes.
25469 (Preset_Names): Addition of the new reserved words of Ada 2005,
25470 that is interface, overriding and synchronized.
25471 (Get_Pragma_Id): Give support to the use of the new reserved word
25472 "interface" as a pragma name.
25473 (Is_Pragma_Name): Give support to the use of the new reserved word
25474 "interface" as a pragma name.
25475 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
25476 attribute implementation.
25478 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
25479 checks to entities that are output parameters of Asm operations.
25480 Handle the Stream_Size attribute.
25481 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
25483 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
25485 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
25486 for second parameter being 0.0.
25487 Add support for wide wide character type.
25488 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
25490 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
25491 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
25492 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
25493 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
25494 for wide wide character cases.
25496 * cstand.adb: Create entities for Wide_Wide_Character and
25499 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
25500 accordance with AI-258.
25501 Add new declarations for 16/32 bit C character types (Part of AI285)
25503 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
25504 (Obsolescent_Warning): New field
25505 (Rep_Clause): New local subprogram used to share code. Returns the rep
25506 clause for which the name is given in parameter.
25507 (Has_Stream_Size_Clause): New routine.
25508 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
25509 (Address_Clause): Implementation is now using Rep_Clause.
25510 (Alignment_Clause): Idem.
25511 (Size_Clause): Idem.
25513 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
25514 entity in non-Ada 2005 mode and generate warning.
25516 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
25517 (Prag): Code cleanup. Remove old gnat pragma "overriding"
25519 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
25520 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
25521 on the named unit if the pragma is not in the current compilation unit,
25522 so that elaboration calls in the current unit can set up an elaboration
25523 dependency on the named unit, as needed.
25524 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
25525 subprogram as well as for subprograms declared within a package.
25526 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
25529 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
25530 to z) to avoid some instances of duplication for Wide_Wide packages.
25532 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
25535 * scn.adb: Char_Literal_Value field is now a Uint
25537 * scng.adb: Significant rewrite to handle new Ada 2005 features
25538 allowing wide and wide wide characters in program text, e.g. for
25539 identifiers, as described in AI-285.
25540 (Set_Reserved): New procedure, makes setting up keywords cleaner.
25541 (Initialize_Scanner): Register the new reserved words of Ada 2005.
25542 (Scan): Give support to the new reserved words.
25544 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
25545 warning notifying that interface, overriding, and synchronized are
25546 new reserved words.
25547 (P_Pragma): Allow the use of the new reserved word "interface" as
25550 * gnatls.adb, gnatbind.adb,
25551 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
25552 identifiers named "interface" to "SAL_Interface".
25554 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
25555 (Structured Exception handling).
25556 (Gen_Main_C): Idem.
25559 (Gen_Main_Ada): Set the default exit code if specified.
25560 (Gen_Main_C): Likewise.
25562 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
25563 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
25565 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
25568 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
25569 has a collision with the new Ada 2005 "interface" reserved word.
25571 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
25572 generate a warning notifying that interface, overriding, and
25573 synchronized are new reserved words.
25575 * scans.ads (Token_Type): Addition of the tokens corresponding to the
25576 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
25577 and Tok_Synchronized.
25579 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
25580 "dispatching" rather than "primitive" operations, since dispatching
25581 calls are now allowed to abstract formal subprograms (which are not
25583 Char_Literal_Value field is now a Uint
25584 (Resolve_Slice): If the prefix is an access to an unconstrained array,
25585 compute the actual subtype of the designated object to impose the proper
25587 (Resolve_Selected_Component): Do not insert an access check if the
25588 prefix is an access type: such a node is expanded into an explicit
25589 dereference, on which the access check is performed anyway. Removes
25590 expensive duplicate checks.
25591 (Resolve_Call): Use new flag Is_Obsolescent and field
25592 Obsolescent_Warning so that pragma Obsolescent works on library
25594 Add support for wide wide character type
25595 (Resolve_Allocator): Replace the error message on wrong null-exclusion
25596 value by a warning message.
25597 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
25598 as fixed-point, and one of the operands is non-static and universal, it
25599 can only be an illegal exponentiation operation, in which case there is
25600 no real value to retrieve.
25602 * exp_strm.adb: Add support for wide wide character type
25603 (Build_Elementary_Input_Call): Compute the size of the stream element by
25604 querying the rep chain to find the Stream_Attribute attribute value.
25605 (Build_Elementary_Write_Call): Ditto.
25607 * sem_aggr.adb: Char_Literal_Value field is now a Uint
25608 Add support for wide wide character type
25609 Replace the error messages on wrong null-exclusion value by warnings
25610 as described in Ada 2005.
25611 (Resolve_Extension_Aggregate): Document the fact that the error
25612 message on class-wide expressions in extensions aggregates.
25614 * sem_case.adb: Add support for wide wide character type
25616 * sem_ch13.adb: Add support for wide wide character type
25617 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
25619 * sem_ch3.adb: Add support for wide wide character type
25620 (Process_Subtype): If constraint is illegal for the type, set Ekind of
25621 now-useless Itype, to prevent cascaded errors on a compiler built
25624 * sem_ch8.adb: Add with and use of Sem_Disp.
25625 (Analyze_Subprogram_Renaming): Replace unclean uses of
25626 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
25627 of Corresponding_Spec to Empty).
25628 (Attribute_Renaming): Replace use of Corresponding_Spec with
25629 Corresponding_ Formal_Spec and simplify condition.
25630 (Use_One_Package): Check that scope of homonym of identifier is defined,
25631 before checking whether it is a wrapper package.
25632 Add support for wide wide character type
25634 * sem_eval.adb: Add support for wide wide character type.
25635 (Eval_Arithmetic_Op): Check for compile time known signed integer
25636 overflow in the non-static case.
25637 (Subtypes_Statically_Match): A formal scalar type and its base type do
25638 not statically match.
25640 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
25641 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
25643 (Unit_Declaration_Node): Ditto.
25644 (Is_Variable_Prefix): For the case of an indexed component whose prefix
25645 has a packed array type, the prefix has been rewritten into a type
25646 conversion. Determine variable-ness from the converted expression.
25647 Handle wide wide character cases.
25649 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
25651 * stringt.ads, stringt.adb: Handle full UTF-32 range.
25652 Remove ["0A"] from comment, since it can look like a line terminator.
25653 Currently we don't permit this, but this is under discussion by the
25654 ARG, and it is easy enough to use a different example.
25656 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
25657 handling UTF-32 encoding for wide wide character.
25658 Implement new brackets coding ["hhhhhhhh"]
25659 Add UTF-8 encodings for full UTF-32 range
25661 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
25663 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
25664 bit range Add full UTF-32 support.
25665 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
25666 notify that constraint error will be raised at run-time
25667 because a null value is assigned to a null-excluding object.
25668 Remove some obsolete declarations and make Char_Code
25671 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
25672 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
25673 Rcheck subprograms.
25675 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
25676 wrong null-exclusion value by a warning message.
25677 (Enable_Range_Check): Do range check if the prefix is an
25678 explicit dereference whose designated object is an unconstrained array.
25679 Current algorithm for removing duplicate checks is over-eager in this
25682 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
25683 null-exclusion value by a warning message
25685 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
25686 completely. Add support for Uint2 field
25688 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
25689 exp_prag.adb: Char_Literal_Value field is now a Uint.
25691 * exp_util.adb (Insert_Actions): Replace
25692 N_Formal_Subprogram_Declaration by
25693 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
25694 Char_Literal_Value field is now a Uint.
25696 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
25697 defined for subprogram renaming declarations. When set, the field
25698 indicates the defining entity of a corresponding formal subprogram
25699 when the renaming corresponds to a formal subprogram association in an
25701 (Set_Corresponding_Formal_Spec): New procedure to return
25702 Corresponding_Formal_Spec field.
25703 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
25704 (which is now a subtype).
25705 Char_Literal_Value field is now a Uint
25707 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
25708 pointer to the base of the dispatch table.
25709 Minor changes to comments.
25710 (Controlling_Type): New function for determining the tagged type
25711 associated with a tagged primitive subprogram.
25712 (Expand_Dispatching_Call): Add support for a controlling actual that is
25713 directly a value of type Ada.Tag rather than a tagged object.
25715 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
25716 describing the new layout.
25717 (Dispatch_Table): The expander computes the actual array size, allocates
25718 the Dispatch_Table record accordingly, and generates code that displaces
25719 the base of the record after the Typeinfo_Ptr component. The access to
25720 these components is done by means of local functions.
25721 (Offset_To_Top): New function.
25722 (Typeinfo_Ptr): New function.
25723 (Get_TSD): Modified to access the new position of the TSD.
25724 (Set_TSD): Modified to save the TSD in its new position.
25726 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
25727 case of formal abstract subprograms. Add check and message for -gnat05.
25730 * sem_ch12.adb: Add with and use for Sem_Disp.
25731 (Analyze_Associations): Minor change from "=" to "in" for use of
25732 N_Formal_Subtype_Declaration (which is now a subtype).
25733 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
25734 N_Formal_Subtype_Declaration (which is now a subtype).
25735 (Analyze_Formal_Subprogram): Add handling for
25736 N_Formal_Abstract_Subprogram, marking the formal as abstract and
25737 dispatching, setting the controlling status of the formal parameters
25738 and result, and issuing an error if there is no controlling type for
25739 the formal subprogram.
25740 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
25741 which is an unclean use of that field, we set the new field
25742 Corresponding_Formal_Spec to make the formal subprogram available to
25743 processing in Analyze_Subprogram_Declaration.
25744 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
25745 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
25746 Constrained, so that it is is does not statically match its anonymous
25749 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
25750 abstract formal subprograms in error check for functions returning
25751 abstract types. Set scope of new designator for
25752 a parameterless subprogram, so that it is available when checking the
25753 body for nested subprograms, before full analysis of said body.
25754 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
25755 subprogram only if inner one comes from source.
25756 (Analyze_Function_Call): If the call is given in object notation, the
25757 analysis of the name rewrites the node and analyzes it with the proper
25758 argument list. After analyzing the name, if the call has been rewritten
25759 and the result type is set, no further analysis is needed.
25760 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
25761 mark in function specification, in a context where the formals are
25762 visible and hide outer homographs.
25764 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
25765 as the tagged type for the cases of abstract formal subprograms and
25766 renamings of those. Clean up spec comments.
25767 (Check_Dispatching_Context): Add error message to indicate "abstract
25768 procedure", covering the case of a call to a formal abstract procedure
25769 that has statically tagged operands.
25770 (Check_Dispatching_Call): Check for the case of an actual given by
25771 a tag-indeterminate function call whose type is an ancestor of the
25772 containing call's associated tagged type. This situation can occur
25773 for inherited primitives with function defaults. In this case we
25774 use the tagged type's tag directly as the controlling argument for
25776 (Expand_Call): Name change on call to Expand_Dispatch_Call.
25778 * sprint.adb (Sprint_Node_Actual): Split
25779 N_Formal_Subprogram_Declaration into two alternatives for the new
25780 cases N_Formal_Abstract_Subprogram_Declaration and
25781 N_Formal_Concrete_Subprogram_Declaration.
25782 Char_Literal_Value field is now a Uint.
25784 * trans.c: Get rid of junk Uint2 reference.
25785 Char_Literal_Value field is now a Uint.
25786 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
25787 (gigi): Correct third arg to gimplify_body.
25789 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
25790 (TYPE_LANG_FLAG_0): Check for record or union.
25792 * treepr.adb: Char_Literal_Value field is now a Uint
25794 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
25797 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
25798 Add full UTF-32 support
25799 Char_Code is now 32 bits
25801 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
25802 wide character UTF_32 line terminators.
25803 Initialize Main_Source_File to avoid error when no main
25806 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
25807 (Main_Source_File) when no main source has been loaded, to avoid
25810 2005-02-09 Robert Dewar <dewar@adacore.com>
25812 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
25813 Fix name of Set routine
25815 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
25818 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
25819 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
25822 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
25823 forms of Get_Line subprograms for AI-301.
25825 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
25826 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
25827 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
25828 a-stwima.ads: Minor reformatting.
25830 2005-02-09 Doug Rupp <rupp@adacore.com>
25831 Thomas Quinot <quinot@adacore.com>
25833 * adaint.c, adaint.h
25834 [VMS] (to_ptr32): New function.
25835 (MAYBE_TO_PTR32): New macro.
25836 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
25838 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
25839 [VMS] (#define fork()): Remove since unneccessary.
25840 (__gnat_set_close_on_exec): New routine to support
25841 GNAT.OS_Lib.Set_Close_On_Exec.
25843 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
25844 the parent side as close-on-exec so that they are not inherited by the
25847 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
25848 set or clear the FD_CLOEXEC flag on a file descriptor.
25850 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
25851 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25855 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
25856 on the field if Pragma Component_Alignment (Storage_Unit).
25857 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
25858 side-effects as if it were a constant; also make SAVE_EXPR to protect
25860 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
25862 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
25863 (components_to_record): Test it.
25864 Fix improper usage of REFERENCE_CLASS_P.
25866 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
25869 * utils2.c: Minor reformatting.
25871 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
25872 handle other cases like RECORD_TYPE.
25874 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
25876 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25878 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
25879 component of an array of arrays in an assignment context, and the
25880 aggregate has component associations that require sliding on
25881 assignment, force reanalysis of the aggregate to generate a temporary
25882 before the assignment.
25883 (Must_Slide): Make global to the package, for use in Gen_Assign.
25885 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25887 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
25888 unchecked union with no inferable discriminants, return a
25889 Raise_Program_Error node, rather than inserting it at the point the
25891 (Expand_Record_Equality, Component_Equality): Handle properly the case
25892 where some subcomponent is an unchecked union whose generated equality
25893 code raises program error.
25895 2005-02-09 Doug Rupp <rupp@adacore.com>
25897 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
25898 [VMS] (#define exit hack): Remove.
25900 2005-02-09 Pascal Obry <obry@adacore.com>
25901 Arnaud Charlet <charlet@adacore.com>
25903 * init.c (__gnat_initialize): Add a new parameter eh which contains the
25904 address of the exception registration. The Win32 version of this
25905 routine calls __gnat_install_SEH_handler() to initialize the SEH
25906 (Structured Exception Handling) handler.
25907 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
25908 SEH (Structured Exception Handling) now.
25909 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
25910 (__gnat_initialize for ppc-vxworks): Adjust comments and the
25911 preprocessor condition protecting the call to the extra eh setup
25912 subprogram, which is only available for the ppc target.
25913 (__gnat_clear_exception_count): replaced reference to
25914 variable taskIdCurrent by call to taskIdSelf(), cleaner.
25916 * seh_init.c: New file.
25918 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
25919 (GNATBIND_OBJS): Idem.
25921 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
25922 routine takes a new parameter (a pointer to the exception registration
25923 for the SEH (Structured Exception Handling) support.
25925 * raise.h: (__gnat_install_SEH_handler): New prototype.
25926 Update copyright notice.
25928 * s-tassta.adb (Task_Wrapper): Declare the exception registration
25929 record and initialize it by calling __gnat_install_SEH_handler.
25931 2005-02-09 Vincent Celier <celier@adacore.com>
25933 * make.adb (Gnatmake): Do not fail when the main project has no object
25936 2005-02-09 Doug Rupp <rupp@adacore.com>
25938 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
25939 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
25940 [VMS]: Add translations for g-enblsp.adb.
25942 * s-asthan-vms.adb: Removed.
25943 * s-asthan-vms-alpha.adb: Added.
25945 2005-02-09 Pascal Obry <obry@adacore.com>
25947 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
25948 (LIBGNAT_OBJS): Add seh_init.o.
25950 2005-02-09 Arnaud Charlet <charlet@adacore.com>
25953 * Makefile.in: Link all gnat tools with -static-libgcc, since
25954 -shared-libgcc is now used by default on some systems (e.g. linux with
25956 Remove references to Makefile.prolog/generic, no longer used.
25958 2005-02-09 Vincent Celier <celier@adacore.com>
25960 * prj-makr.adb (Process_Directory): Put file name in canonical case
25961 before matching against the patterns.
25962 If gnatname has been invoked as <prefix>-gnatname
25963 then invoke the compiler as <prefix>-gcc, not just "gcc".
25965 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25967 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
25968 with expansion disabled. The actual subtype is needed among other
25969 places when the selected component appears in the context of a loop
25970 bound, and denotes a packed array.
25971 (Operator_Check): Always use the first subtype in the
25972 error message, to avoid the appearance of internal base types.
25973 (Transform_Object_Operation): Copy each actual in full
25974 to the parameter associations of the constructed call, rather than
25975 using the shallow copy mechanism of New_Copy_List. This ensures that
25976 the chaining of named associations is done properly.
25977 (Complete_Object_Operation): Rewrite node, rather than
25978 replacing it, so that we can trace back to the original selected
25981 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
25982 and calls that use object notation, if the called function is not
25983 declared in a withed unit, place the elaboration constraint on the
25984 unit in the context that makes the function accessible.
25985 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
25986 imposes an elaboration constraint between two packages.
25988 2005-02-09 Ed Schonberg <schonberg@adacore.com>
25990 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
25991 views of a private type after handling its private dependents, to
25992 maintain proper stack discipline between entry and exit from the
25995 2005-02-09 Cyrille Comar <comar@adacore.com>
25997 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
25998 Minor reformatting.
26000 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26002 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
26003 fields for foreign threads.
26005 2005-02-09 Doug Rupp <rupp@adacore.com>
26007 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
26008 recursion warnings when compiled with -gnatdm.
26010 2005-02-09 Robert Dewar <dewar@adacore.com>
26012 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
26013 Slight fix to documentation of -gnaty with no parameters
26015 * xr_tabls.ads: Add ??? comment for missing overall comment
26017 * xsinfo.adb: Make default file name be sinfo.h, since this is what
26018 we now use by default.
26020 * xsnames.adb: Adjust end of file test to look for five space followed
26021 by '#' instead of six spaces. The format of xsnames.adb was modified
26022 in the last update.
26024 * a-numeri.ads: Add reference to AI-388 for greek letter pi
26027 * clean.adb: Minor reformatting.
26029 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
26030 gnatname.adb: Minor reformatting
26031 Add 2005 to copyright output when utility is run
26033 * csets.adb: Eliminate obsolete comment
26035 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
26038 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
26040 2005-02-09 Sergey Rybin <rybin@adacore.com>
26042 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
26043 the difference between compact and incompact layout and add the record
26044 representation clause to the example illustrating different layouts.
26045 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
26046 component clauses").
26048 2005-02-09 Florian Villoing <villoing@adacore.com>
26050 * gnat_ugn.texi: Fix typos.
26051 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
26053 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
26054 in the generated documentation.
26056 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26058 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
26060 Update linker wrapper when linking with non GNU C++.
26062 2005-02-09 Pascal Obry <obry@adacore.com>
26065 Document the procedure to debug the DllMain routine on Windows.
26066 Add note about -funwind-tables and mixed Ada and C/C++ programming in
26068 Document new BIND qualifer /RETURN_CODES=VMS.
26070 2005-02-09 Ben Brosgol <brosgol@adacore.com>
26072 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
26073 Edited gnatmetric chapter
26075 2005-02-09 Robert Dewar <dewar@adacore.com>
26078 Changes to document new wide wide character support
26080 Update documentation on Normalize_Scalars and Initialize_Scalars
26082 2005-02-09 Pascal Obry <obry@adacore.com>
26084 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
26086 2005-02-09 Jose Ruiz <ruiz@adacore.com>
26088 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
26089 from the VxWorks kernel) that is needed for getting the active
26090 priority of the different tasks.
26092 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
26093 Use a pragma Elaborate_Body in the spec file instead.
26094 Noticed by code reading.
26096 2005-02-09 Thomas Quinot <quinot@adacore.com>
26098 * exp_util.ads: Minor correction in comment.
26100 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26102 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
26103 since this procedure is now too complex to be worth inlining.
26105 2005-02-09 Richard Henderson <rth@redhat.com>
26107 * utils.c (gnat_define_builtin): Remove.
26108 (gnat_install_builtins): Use build_common_builtin_nodes.
26110 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26112 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26113 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
26114 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
26115 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
26116 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
26117 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
26118 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
26119 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
26120 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
26121 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
26122 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
26123 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
26124 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
26125 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
26126 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
26127 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
26128 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
26129 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
26130 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
26131 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
26132 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
26133 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
26134 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
26135 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
26136 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
26137 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
26138 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
26139 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
26140 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
26141 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
26142 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
26143 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
26144 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
26145 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
26148 2005-01-27 Laurent Guerby <laurent@guerby.net>
26150 * Makefile.in: Fix a-intnam.ads from previous commit,
26151 add 2005 to copyright.
26152 * a-intman-rtems.ads: Renamed to...
26153 * a-intnam-rtems.ads:
26155 2005-01-27 Laurent Guerby <laurent@guerby.net>
26157 * Makefile.in: Rename GNAT RTEMS specific files.
26158 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
26159 5rosinte.ads, 5rparame.adb: Replaced by files below.
26160 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
26161 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
26163 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
26164 Laurent Guerby <laurent@guerby.net>
26167 * 5rosinte.ads: Add No_Key constant.
26168 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
26169 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
26171 2005-01-26 Laurent Guerby <laurent@guerby.net>
26174 * i-cobol.adb (Valid_Numeric): Handle zero length case.
26176 2005-01-20 Richard Henderson <rth@redhat.com>
26178 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
26179 a-intnam-linux.ads and system-linux-alpha.ads.
26180 * a-intnam-linux-alpha.ads: Remove file.
26181 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
26182 * system-linux-alpha.ads: New file.
26184 2005-01-18 Jakub Jelinek <jakub@redhat.com>
26187 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
26188 set to the new string.
26190 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
26192 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
26195 2005-01-18 Richard Henderson <rth@redhat.com>
26197 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
26198 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
26200 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
26202 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
26204 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
26205 (GCC_ZCX_Support): Likewise.
26207 2005-01-11 Bastian Blank <waldi@debian.org>
26209 * system-linux-s390.ads: Define Preallocated_Stacks.
26210 * system-linux-s390x.ads: Likewise.
26212 2005-01-04 Arnaud Charlet <charlet@adacore.com>
26214 * gnat_ugn.texi: Fix texi errors with null variables.
26216 2005-01-03 Thomas Quinot <quinot@adacore.com>
26218 * gen-soccon.c: New utility program to generate g-soccon.ads
26221 * socket.c, gsocket.h: Split inclusion of system header files into a
26222 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
26224 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
26225 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26226 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
26227 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
26228 should not be edited by hand anymore, but should be regenerated using
26231 2005-01-03 Robert Dewar <dewar@adacore.com>
26232 Ed Schonberg <schonberg@adacore.com>
26233 Vincent Celier <celier@adacore.com>
26235 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
26236 on/off, since this is an obsolescent feature, for which we now generate
26239 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
26240 warning mode is set and obsolescent usage of this attribute occurs.
26241 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
26242 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
26243 predates, and partly motivates, the adoption of the AI.
26244 Implement new Ada 2005 attribute Mod
26246 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
26249 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
26251 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
26252 pragma restrictions.
26253 New entry for Ada 2005 attribute Mod.
26256 Add recognition of new pragma Restrictions No_Dependence
26257 Recognize restriction No_Obsolescent_Features at parse time
26259 * bcheck.adb: Add circuitry for checking for consistency of
26260 No_Dependence restrictions.
26262 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
26265 * restrict.ads, restrict.adb: Add subprograms to deal with
26266 No_Dependence restrictions.
26268 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
26271 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
26272 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
26274 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
26275 dummy parameter to scng instantiation.
26276 Needed for new restriction No_Obsolescent_Features
26278 * scn.adb: (Obsolescent_Check): New procedure
26279 Needed for new restriction No_Obsolescent_Features
26281 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
26282 specified by AI-285, needed for implementation of AI-388 (adding greek
26283 pi to Ada.Numerics).
26284 Add new generic formal to scng, needed for new restriction
26285 No_Obsolescent_Features.
26287 * s-rident.ads: Add new restriction No_Obsolescent_Features.
26289 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
26290 restrictions lines.
26291 (Scan_ALI): When finding an unexpected character on an R line, raise
26292 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
26293 Ignore_Errors is True, default restrictions are set and scanning of the
26294 ALI file continues with the next line. Also, when Bad_R_Line is raised
26295 and Ignore_Errors is True, skip to the end of le line.
26297 * sem_ch10.adb: Check that explicit with's do not violate
26298 No_Dependence restrictions.
26299 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
26300 illegal context clauses containing child units of instance.
26302 * sem_prag.adb: Processing and checking for new No_Dependence
26304 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
26305 analyze and check the External argument.
26307 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
26309 2005-01-03 Robert Dewar <dewar@adacore.com>
26311 * atree.adb: Add a fifth component to entities
26312 This allows us to add 32 flags and four new fields
26314 * atree.ads: Add a fifth component to entities
26315 This allows us to add 32 flags and four new fields
26317 * einfo.ads, einfo.adb: Document new fields and new flags now available
26318 Add routines for printing new fields
26320 * treepr.adb: Call routines to print out additional fields if present
26322 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26324 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
26325 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
26327 * Makefile.in: Add support to build shared Ada libraries on solaris x86
26328 Remove gpr2make, replaced by gprmake.
26329 Remove references to gnatmem and libaddr2line.
26330 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
26331 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
26332 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
26333 a-numaux-darwin.ads and a-numaux-darwin.adb
26334 Enable mlib-tgt-lynxos.adb on lynxos.
26336 * Make-lang.in: Remove rules for gpr2make.
26337 When generating sdefault.adb, do not call Relocate_Path
26338 on S3 for function Target_Name, as it is not a path.
26339 Remove references to gnatmem and libaddr2line.
26341 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
26344 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
26346 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
26347 address is incompatible with its base type alignment constraints when
26348 this can be decided statically.
26350 2005-01-03 Olivier Hainque <hainque@adacore.com>
26352 * decl.c (compatible_signatures_p): New function. The intended purpose
26353 is to check if two function signatures for a call-site and a callee are
26354 compatible enough for the call to be valid. The underlying purpose is
26355 to check if a call to a mapped builtin is using the right interface.
26356 The current code actually does not check antyhing - this a placeholder
26357 for future refinements.
26358 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
26359 builtin calls for convention Intrinsic.
26361 * gigi.h (builtin_decl_for): Declare (new function).
26363 * utils.c (gnat_install_builtins): Install the target specific builtins.
26364 (builtin_decl_for): New function, provide a dummy body for now.
26366 2005-01-03 Geert Bosch <bosch@adacore.com>
26368 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
26369 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
26370 (Pred): Implement in terms of Succ.
26372 * trans.c (convert_with_check): Reimplement conversion of float to
26375 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26376 Vincent Celier <celier@adacore.com>
26378 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
26379 bounds can be negative, and must be declared Int, not Nat.
26381 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
26382 array is checked after using the index in the array.
26384 * makegpr.adb (Add_Switches): Check if there is a package for the
26385 processor. If there is no package, do not look for switches.
26387 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26389 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
26390 generation of predefined stream operations (specs and bodies) should
26391 proceed. Under various restrictions these subprograms must not be
26394 2005-01-03 Thomas Quinot <quinot@adacore.com>
26397 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
26398 amount of PCS-specific code in RACW stubs generation.
26399 (Copy_Specification): Set Etype on copied formal parameter entities, as
26400 this information is needed for PolyORB stubs generation.
26401 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
26402 variable Dynamic_Async.
26403 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
26404 (Build_RPC_Receiver_Specification): Make generic again, as recent
26405 changes have allowed RPC receivers to have the same profile for both
26406 variants of the PCS.
26407 Reorganise RPC receiver generation to reduce differences between the
26408 structure of GARLIC and PolyORB RPC receivers.
26409 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
26411 Simplify elaboration code for RCI packages.
26413 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
26414 generation to reduce differences between the structure of GARLIC and
26415 PolyORB RPC receivers.
26417 * s-stratt.adb: Fix typo in comment.
26419 2005-01-03 Thomas Quinot <quinot@adacore.com>
26421 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
26422 copied from Make_Init_Call).
26424 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
26425 reads and assignments on a temporary variable declared with appropriate
26428 2005-01-03 Robert Dewar <dewar@adacore.com>
26430 * i-c.adb (To_C): Raise CE if string is null and Append_Null
26432 2005-01-03 Robert Dewar <dewar@adacore.com>
26434 * i-cstrin.adb (Update): Do not append a null in form called with a
26435 String. This avoids unintended behavior.
26437 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26440 * init.c: Fix warnings on Free BSD section.
26442 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26445 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
26448 2005-01-03 Vincent Celier <celier@adacore.com>
26450 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
26451 libraries when Unique_Compile is True (-u switch).
26454 2005-01-03 Robert Dewar <dewar@adacore.com>
26456 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
26457 upper case letter or underscore after W, as allowed by spec.
26459 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26461 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
26462 darwin port by using proper type definitions from header files.
26463 Use SIGTERM instead of SIGABRT for SIGADAABORT.
26465 2005-01-03 Robert Dewar <dewar@adacore.com>
26467 * par.adb: Enhance error message handling for configuration file
26470 2005-01-03 Robert Dewar <dewar@adacore.com>
26472 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
26473 removed during the previous update (test properly for case of dividing
26474 largest negative number by -1, which generates overflow).
26476 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26477 Sergey Rybin <rybin@adacore.com>
26479 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
26480 to use as the defining identifier for a formal package.
26481 (Remove_Parent): If the instance takes place within (an instance of)
26482 a sibling, preserve private declarations of common parent.
26484 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26486 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
26487 to determine whether one of the operands is a fixed-point type for
26488 which a user-defined multiplication or division operation might be
26491 * sem_res.adb (Valid_Conversion): The legality rules for conversions
26492 of access types are symmetric in Ada 2005: either designated type can
26495 2005-01-03 Vincent Celier <celier@adacore.com>
26497 * s-fileio.adb (Temp_File_Record): Change length of string component
26498 Name from L_tmpnam + 1 to max_path_len + 1.
26500 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26502 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
26503 Self_Id.Deferral_Level = 0.
26504 (Do_Pending_Action): Move this function to the spec.
26506 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
26507 Do_Pending_Action explicitely when needed, in case we're using
26508 No_Abort restrictions.
26510 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
26511 deferral level since it will not get changed by the generated code.
26512 Keeping a default value of 1 would prevent some operations (e.g.
26513 select or delay) to proceed successfully.
26515 2005-01-03 Ben Brosgol <brosgol@adacore.com>
26516 Robert Dewar <dewar@adacore.com>
26517 Cyrille Comar <comar@adacore.com>
26519 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
26520 porting guide chapter (vms version).
26521 Revised doc title (removed "for native platforms") and subtitle.
26522 Add discussion on warning flag for obsolescent features. First we
26523 note that it applies to obsolete GNAT features, which was previously
26524 omitted. Second we contrast the behavior with that of the new
26525 Ada 2005 AI-368 restriction No_Obsolescent_Features.
26526 Preliminary rewriting of GNAT & libraries chapter in order to take
26527 into account default project locations & new project manager
26530 2005-01-03 Robert Dewar <dewar@adacore.com>
26532 * cstand.adb (Create_Operators): Clean up format and documentation of
26533 unary and binary operator result tables. No change in code, just
26534 reformatting and addition of comments.
26536 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
26537 sem_ch2.adb: Minor reformatting
26539 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
26540 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
26541 comments for Tree_Read and Tree_Write.
26543 2005-01-03 Pascal Obry <obry@adacore.com>
26545 * exp_attr.ads: Minor reformatting.
26547 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
26549 * comperr.adb (Compiler_Abort): Add specialized message for GAP
26552 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26554 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
26555 whether the ancestor type is private, as may be the case with nested
26558 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
26561 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
26563 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
26565 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
26566 * utils2.c (build_unary_op): Likewise.
26568 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26570 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
26572 2004-12-19 Richard Henderson <rth@redhat.com>
26574 * trans.c (gigi): Update gimplify_body call.
26576 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
26578 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
26580 2004-12-07 Ed Falis <falis@adacore.com>
26582 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
26583 current task being suspended.
26585 * init.c (__gnat_clear_exception): added to reset VxWorks exception
26587 (__gnat_map_signal): removed test for current task being suspended.
26589 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26591 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
26592 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
26593 targets (such as AAMP).
26595 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26597 * atree.adb (Visit_Itype): Create a new name for the generated itype,
26598 because the back-end may otherwise treat it as a redefinition of the
26601 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
26603 * back_end.adb (Scan_Back_End_Switches): Accept --param.
26605 * lang-specs.h: Accept --param.
26607 2004-12-07 Vincent Celier <celier@adacore.com>
26609 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
26610 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
26611 Current_Body_Suffix => Ada_Body_Suffix).
26612 Take into account Externally_Built attribute.
26614 * clean.adb (In_Extension_Chain): Always return False when one of the
26615 parameter is No_Project.
26616 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
26617 Ada_Language_Index).
26618 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
26619 Process_Languages for procedure Parse).
26621 * gnatcmd.adb (Carg_Switches): New table.
26622 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
26623 Adapt to name changes in package Prj (Current_Spec_Suffix =>
26624 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
26626 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
26627 Header_Num and function Hash are now declared in package Prj,
26630 * prj.adb (Suffix_Of): New function.
26631 (Set (Suffix)): New procedure.
26632 (Hash): One function moved from Prj.Com
26633 (Is_Present, Language_Processing_Data_Of): New functions
26634 (Set): Two new procedures
26635 (Add_Language_Name, Display_Language_Name): New procedures
26637 * prj.ads: (Suffix_Of): New function
26638 (Set (Suffix)): New procedure
26639 Add several types and tables for multi-language support.
26640 (Header_Num): Type moved from Prj.Com
26641 (Hash): Two functions moved from Prj.Com
26642 (Is_Present, Language_Processing_Data_Of): New functions
26643 (Set): Two new procedures
26644 (Add_Language_Name, Display_Language_Name): New procedures
26645 (Naming): Component name changes:
26646 Current_Spec_Suffix => Ada_Spec_Suffix,
26647 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
26648 Impl_Suffixes, Supp_Suffixes.
26649 (Project_Data): New components: Externally_Built, Supp_Languages,
26650 First_Language_Processing, Supp_Language_Processing, Default_Linker,
26651 Default_Linker_Path.
26653 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
26654 new package Language_Processing with its attributes (Compiler_Driver,
26655 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
26656 Binder_Driver, Default_Linker).
26658 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
26659 (Header_Num): Type moved to package Prj
26661 * prj-env.adb: Adapt to name changes in package Prj
26662 (Current_Spec_Suffix => Ada_Spec_Suffix,
26663 Current_Body_Suffix => Ada_Body_Suffix).
26665 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
26666 default to the project path, except the "-" is one of the directories
26667 in env var ADA_PROJECT_PATH.
26668 (Current_Project_Path): Global variable, replacing Project_Path
26669 that was in the body of Prj.Part.
26670 (Project_Path): New function
26671 (Set_Project_Path): New procedure
26672 Initialize Current_Project_Path during elaboration of the package
26673 Remove dependency on Prj.Com, no longer needed
26675 * prj-ext.ads (Project_Path): New function
26676 (Set_Project_Path): New procedure
26678 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
26679 suffix is defined for language <lang>.
26680 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
26681 accessing directly the components of Naming.
26682 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
26683 Reorganise of this package.
26684 Break procedure Check in several procedures.
26686 * prj-nmsc.ads: Replace all procedures (Ada_Check,
26687 Other_Languages_Check and Language_Independent_Check) with a single
26690 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
26691 Process_Languages, no longer needed.
26693 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
26694 Current_Project_Path.
26695 Remove elaboration code, moved to the body of Prj.Ext
26696 Use new function Prj.Ext.Project_Path instead of old variable
26698 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
26699 When comparing with project paths on the stack, first put the resolved
26700 path in canonical case.
26701 (Parse_Single_Project): Set the path name of the project file in the
26702 tree to the normalized path.
26704 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
26705 parameter Process_Languages, no longer needed.
26706 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
26707 Other_Languages_Check.
26709 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
26710 to store the resolved canonical path of the project file.
26711 Remove dependency to Prj.Com, no longer needed
26713 * prj-util.adb: Adapt to name changes in package Prj
26714 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
26717 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
26718 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
26719 Externally_Built, Include_Option, Language_Processing.
26721 * makegpr.adb: Numerous changes due to changes in packages
26724 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
26725 default to the project path, except whe "-" is one of the directories
26726 in env var ADA_PROJECT_PATH.
26727 (Gnatls): In verbose mode, add the new section "Project Search Path:"
26729 2004-12-07 Robert Dewar <dewar@adacore.com>
26731 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
26733 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
26736 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
26737 flag. No longer needed now that we handle this in gnat1drv.adb.
26739 * repinfo.ads: Minor reformatting
26741 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26742 Olivier Hainque <hainque@adacore.com>
26743 Eric Botcazou <ebotcazou@adacore.com>
26745 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
26746 TYPE_SIZE_UNIT of result type if SIZE is not specified.
26747 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
26748 of a bitfield, which we know is useless and causes trouble because of
26749 alignment implications.
26751 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
26753 (process_attributes): Clear DECL_COMMON again when a section attribute
26755 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
26756 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
26757 (create_field_decl): Special case ADDRESSABLE negative to mean
26758 "no bitfield creation", to be used by make_aligning_type. Don't
26759 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
26760 fields claimed addressable still have to be bitfields. Use
26761 value_factor_p instead of a raw binop construction to check for the
26762 position's alignment.
26764 2004-12-07 Geert Bosch <bosch@adacore.com>
26766 * eval_fat.adb: Revert previous change.
26768 2004-12-07 Thomas Quinot <quinot@adacore.com>
26769 Ed Schonberg <schonberg@adacore.com>
26771 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
26772 with an implicit dereference as its prefix, use
26773 Insert_Explicit_Dereference instead of merely rewriting the prefix into
26774 an explicit dereference. This ensures that a reference to the original
26775 prefix is generated, if appropriate.
26777 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
26778 dereference is rewritten to an explicit one, generate a reference to
26779 the entity denoted by its prefix using the original prefix node, so
26780 the dereference can be properly recorded as a read of the denoted
26781 access value, if appropriate.
26783 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
26784 emitting 'assigned but never read' warning on a variable on the basis
26785 that it has an access type.
26786 (Check_References): Emit unreferenced warning when the scope is a
26789 2004-12-07 Robert Dewar <dewar@adacore.com>
26790 Ed Schonberg <schonberg@adacore.com>
26792 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
26795 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
26796 leaving call unchanged.
26797 This deals with the case where the pragma Import specified
26798 an external name, to be handled by the back end.
26800 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
26801 subprogram which is Imported with convention Intrinsic if an
26802 External_Name argument is specified.
26803 (Process_Import_Or_Interface): Properly diagnose link name argument.
26804 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
26805 with Sem_Ch6.Cannot_Inline.
26806 (Process_Inline): Provide separate warning for inapplicable inline
26808 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
26809 treatment is uniform on different targets.
26811 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26813 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
26814 construct is rewritten, preserve end label to permit source navigation.
26816 2004-12-07 Thomas Quinot <quinot@adacore.com>
26818 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
26819 Specific_Build_Stub_Target): New subprograms.
26820 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
26821 the PCS implementation used, using the above PCS-customized subprograms.
26822 Minor reformatting.
26823 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
26824 for generation of DSA code targeted to the PolyORB PCS.
26825 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
26826 implementation of the partition communication subsystem in ancillary
26828 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
26829 PolyORB_Support.Build_Stub_Type): New subrograms containing the
26830 PCS-specific part of Add_Stub_Type.
26831 (Insert_Partition_Check): Use runtime library function to perform
26834 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
26835 (RE_Same_Partition): New entity, from s-parint.
26837 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
26839 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26841 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
26842 Output the copyright message on a separate line from the version
26845 2004-12-07 Joel Brobecker <brobecker@adacore.com>
26847 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
26848 compile-time warning.
26850 2004-12-07 Robert Dewar <dewar@adacore.com>
26852 * g-regpat.adb: (Match): Change a misuse of or to or else
26854 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26857 (Generate_Reference): Handle properly a reference to an entry formal,
26858 when an accept statement has a pragma Unreferenced for it.
26860 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
26861 and the Has_Pragma_Unreferenced flag for each formal before analyzing
26862 the body, to ensure that warnings are properly emitted for each accept
26863 statement of a given task entry.
26865 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
26867 * Makefile.in: Add support for foreign threads on VMS.
26869 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26871 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
26873 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
26875 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
26877 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
26879 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
26881 2004-12-07 Robert Dewar <dewar@adacore.com>
26883 * nlists.adb (Prepend_Debug): Remove parameters and nest within
26885 (Remove_Next_Debug): Same fix
26887 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
26888 maintain back pointers now, though we did not used to, and comments
26890 (Prepend): Remove pragma Inline.
26891 (Remove_Next): Same cleanup
26893 2004-12-07 Thomas Quinot <quinot@adacore.com>
26895 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
26896 used to record an implicit dereference as a read operation on its
26897 prefix when operating under -gnatc. Necessary to avoid spurious
26898 'variable assigned but never read' warnings in that mode.
26899 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
26900 is a non-overloaded implicit dereference, call the above subprogram to
26901 ensure proper recording of references.
26903 2004-12-07 Gary Dismukes <dismukes@adacore.com>
26905 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
26906 to be resolved later as part of Analyze_Iteration_Scheme's call to
26909 2004-12-07 Ed Schonberg <schonberg@adacore.com>
26911 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
26912 prefix is not a scalar type, place error message on prefix, not on
26915 2004-12-07 Bernard Banner <banner@adacore.com>
26917 * vxaddr2line.adb: Add support for x86 vxworks
26919 2004-12-07 Thomas Quinot <quinot@adacore.com>
26921 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
26922 documentation of the behaviour of these functions when passed an IP
26923 address that has no record in the system hosts database and no reverse
26926 * cstand.adb, a-tags.ads: Fix typos in comment.
26928 2004-12-07 Robert Dewar <dewar@adacore.com>
26930 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
26931 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
26932 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
26933 s-poosiz.ads: Minor reformatting
26935 * make.adb: Minor reformatting
26936 Add some ??? comments asking for more comments
26938 * s-poosiz.adb: Minor reformatting
26939 Add comments on alignment requirement
26941 * sinfo.ads: Remove obsolete comment and fix typo.
26943 2004-12-07 Vincent Celier <celier@adacore.com>
26944 Sergey Rybin <rybin@adacore.com>
26946 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
26947 Files" with the new tool and package names.
26948 Reformatting to suppress most of the warnings for line too long
26949 Document the new section "Project Search Path:" in the output of
26951 Add gnatmetric section
26953 2004-12-07 Vincent Celier <celier@adacore.com>
26955 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
26956 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
26957 and -eit to -ept. Added qualifier
26958 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
26960 2004-11-27 Andreas Schwab <schwab@suse.de>
26962 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
26964 2004-11-25 Arnaud Charlet <charlet@adacore.com>
26966 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
26967 internal implementation unit GNAT.Sockets.Thin,
26968 as their usage for sockets is non-portable (using the read and write
26969 functions from the system runtime library is fine on UNIX but won't
26970 work under Windows).
26972 * mingw32.h: Update copyright notice.
26974 2004-11-25 Arnaud Charlet <charlet@adacore.com>
26976 * ada-tree.h: Minor reformatting of previous change to avoid lines
26977 longer than 79 characters.
26979 2004-11-25 Olivier Hainque <hainque@adacore.com>
26981 * tb-gcc.c: GCC infrastructure based implementation of
26984 2004-11-24 Steven Bosscher <stevenb@suse.de>
26986 * misc.c (gnat_post_options): Don't clear
26987 flag_inline_functions.
26989 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
26992 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
26995 2004-11-21 Andreas Jaeger <aj@suse.de>
26997 * stylesw.adb: Change Style_Check_Subprogram_Order to
26998 Style_Check_Order_Subprograms.
27000 2004-11-18 Arnaud Charlet <charlet@adacore.com>
27002 * adaint.h, adaint.c
27003 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
27005 Add also a cast to kill another warning.
27006 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
27007 parameter with the priority class of the parent process instead of
27008 always using the NORMAL_PRIORITY_CLASS.
27009 (__gnat_dup): New function.
27010 (__gnat_dup2): New function.
27011 (__gnat_is_symbolic_link): Enable the effective body of this
27012 function when __APPLE__ is defined.
27014 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
27017 2004-11-18 Olivier Hainque <hainque@adacore.com>
27019 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
27020 address of which may be used to represent "others" and "all others"
27021 choices in exception tables, instead of the current harcoded
27022 (void *)0 and (void *)1.
27023 (Setup_Exception): Do nothing in the GNAT SJLJ case.
27025 * gigi.h (others_decl, all_others_decl): New decls representing the
27026 new Others_Value and All_Others_Value objects.
27027 (struct attrib): Rename "arg" component as "args", since GCC expects a
27028 list of arguments in there.
27030 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
27031 corresponding objects exported by a-exexpr, instead of hardcoded dummy
27034 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
27035 others_decl and all_others_decl instead of hardcoded dummy addresses
27036 to represent "others" and "all others" choices, which is cleaner and
27037 more flexible with respect to the possible eh pointer encoding policies.
27039 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
27040 (process_attributes): Account for the naming change of the "args"
27041 attribute list entry component.
27043 * decl.c (build_attr_list): Rename into prepend_attributes to allow
27044 cumulating attributes for different entities into a single list.
27045 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
27046 attributes for the current entity and propagate first subtype
27047 attributes to other subtypes.
27048 <E_Procedure>: Attribute arguments are attr->args and not
27049 attr->arg any more.
27050 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
27051 argument provided, as this is what GCC expects. Use NULL_TREE instead
27054 2004-11-18 Robert Dewar <dewar@adacore.com>
27056 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
27057 Minor reformatting througout (including new function specs)
27058 Add ??? comments asking for clarification.
27060 2004-11-18 Thomas Quinot <quinot@adacore.com>
27062 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
27063 incomplete duplicate implementation of this subprogram from butil.
27065 2004-11-18 Thomas Quinot <quinot@adacore.com>
27067 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
27068 procedures factors the common processing for building an RPC receiver
27069 for an RCI package or an RACW type.
27070 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
27071 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
27072 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
27074 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
27076 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
27078 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
27079 distribution subprogram identifiers that are either subprogram numbers
27081 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
27082 string distribution identifiers assigned to a given subprogram.
27083 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
27084 (Add_RAS_Dereference_TSS): Add comments.
27085 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
27086 is not referenced yet because it will be used by the PolyORB DSA
27088 (Insert_Partition_Check): Remove fossile code.
27089 (First_RCI_Subprogram_Id): Document this constant.
27090 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
27092 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
27093 replaced with calls to Get_Library_Unit_Name_String. Previously there
27094 were several instances of the same code in different locations in the
27095 compiler; this checkin completes the replacement of all of these
27096 instances with calls to a common subprogram.
27097 Minor reformatting.
27099 * sem_dist.adb: Remove comment noting that RPC receiver generation
27100 should be disabled for RACWs that implement RASs.
27101 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
27103 * sem_util.ads, sem_util.adb (Has_Stream): New function
27104 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
27105 qualified name of a library unit into the name buffer.
27106 (Note_Possible_Modification): Generate a reference only
27107 if the context comes from source.
27109 * snames.ads (PCS_Names): New subtype corresponding to names of
27110 supported implementations of the Partition Communication Subsystem
27111 (PCS) (i.e. the runtime library support modules for the distributed
27114 2004-11-18 Robert Dewar <dewar@adacore.com>
27115 Ed Schonberg <schonberg@adacore.com>
27117 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
27118 (Has_Rep_Pragma): New function
27119 (Has_Attribute_Definition_Clause): New function
27120 (Record_Rep_Pragma): Moved here from sem_ch13.adb
27121 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
27123 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
27125 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
27126 (Expand_Pragma_Psect_Object): New procedure
27127 These procedures contain the revised and cleaned up processing for
27128 these two pragmas. This processing was formerly in Sem_Prag, but
27129 is more appropriately moved here. The cleanup involves making sure
27130 that the pragmas are properly attached to the tree, and that no
27131 nodes are improperly shared.
27133 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
27134 pragmas to Exp_Prag, which is more appropriate.
27135 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
27136 check for duplicates Remove use of Is_Psected flag, no longer needed.
27137 Use new Make_String_Literal function with string.
27139 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
27140 that are functions return universal values, that have to be converted
27141 to the context type.
27142 Use new Make_String_Literal function with string.
27143 (Get_Stream_Convert_Pragma): New function, replaces the use of
27144 Get_Rep_Pragma, which had to be kludged to work in this case.
27146 * freeze.adb: Use new Has_Rep_Pragma function
27148 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
27149 function with string.
27150 Use new Has_Rep_Pragma function.
27152 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
27155 2004-11-18 Robert Dewar <dewar@adacore.com>
27157 * errout.ads, errout.adb: (First_Sloc): New function
27159 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
27160 check (-gnatyx) instead of being included as a redundant construct
27163 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
27164 Style_Check_Order_Subprograms.
27166 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
27167 stylesw.adb: Add Style_Check_Xtra_Parens
27169 * usage.adb: Add line for -gnatyx (check extra parens)
27171 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
27173 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27174 Robert Dewar <dewar@adacore.com>
27176 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
27177 discriminant of a constrained subtype, analyze the copy of the
27178 corresponding constraint, because in some cases it may be only
27179 partially analyzed.
27180 Removes long-lived ??? comments.
27182 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
27183 handled controlled or secondary-stack expressions within the
27184 iteration_scheme of a loop.
27186 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
27187 bounds that may contain functions calls, to prevent memory leaks when
27188 the bound contains a call to a function that uses the secondary stack.
27189 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
27190 generate temporaries for loop bounds that might contain function calls
27191 that require secondary stack and/or finalization actions.
27193 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
27194 selected component and the selector is overloadable (not just a
27195 function) treat as function call, Analyze_Call will disambiguate if
27197 (Analyze_Selected_Component): Do not generate an actual subtype for the
27198 selected component if expansion is disabled. The actual subtype is only
27199 needed for constraint checks.
27200 (Analyze_Allocator): If restriction No_Streams is set, then do
27201 not permit objects to be declared of a stream type, or of a
27202 composite type containing a stream.
27204 * restrict.ads: Remove the a-stream entry from Unit_Array, since
27205 No_Streams no longer prohibits with'ing this package.
27207 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
27208 discriminants, but the parent base has unknown discriminants, there is
27209 no discriminant constraint to inherit. Such a discrepancy can arise
27210 when the actual for a formal type with unknown discriminants is a
27211 similar private type whose full view has discriminants.
27212 (Analyze_Object_Declaration): If restriction No_Streams is set, then
27213 do not permit objects to be declared of a stream type, or of a
27214 composite type containing a stream.
27216 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27218 * exp_dbug.ads: Update documentation to reflect simpler encoding for
27219 protected operations.
27221 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
27222 generated name, it complicates decoding in gdb and hinders debugging
27223 of protected operations.
27224 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
27225 flag for the protected entry barrier function.
27226 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
27227 flag for the protected entry function.
27229 2004-11-18 Nicolas Setton <setton@adacore.com>
27231 * expect.c: Define __unix__ when __APPLE__ is defined.
27233 * Makefile.in: Inform the value of the variable GMEM_LIB in the
27234 Darwin-specific section.
27236 * lang-specs.h: Change the placement of the %1 marker.
27237 Works around the fact that gcc adds -fPIC by default under Darwin.
27239 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27241 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
27242 type of the object with the packed array type, set the Analyzed flag
27243 on the object if it is an entity or simple indexed component, to avoid
27244 spurious type errors.
27246 2004-11-18 Gary Dismukes <dismukes@adacore.com>
27248 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
27249 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
27250 separate line from the version message.
27252 2004-11-18 Ed Falis <falis@adacore.com>
27254 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
27256 (init_float): Eliminate initialization of floating point status for
27257 AE653. The instructions have no effect for vThreads.
27259 2004-11-18 Vincent Celier <celier@adacore.com>
27261 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
27262 gnatbind is invoked with -shared.
27264 2004-11-18 Jose Ruiz <ruiz@adacore.com>
27266 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
27267 for Detect_Blocking which is redundant with the check done within the
27268 procedure Protected_Single_Entry_Call.
27269 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
27270 Detect_Blocking which is redundant with the check done within the
27271 procedure Protected_Single_Entry_Call.
27273 2004-11-18 Vincent Celier <celier@adacore.com>
27275 * makegpr.adb (Compile): Put the compiling switches (in package
27276 Compiler and on the command line) immediately after "-c", instead of
27277 at the end of the command line invocation of the compiler, when
27278 compiling a non-Ada file.
27279 (Build_Global_Archive): When there is no need to rebuild the archive,
27280 set Global_Archive_Exists, so that the archive is passed to the linker
27283 2004-11-18 Robert Dewar <dewar@adacore.com>
27284 Sergey Rybin <rybin@adacore.com>
27287 Remove extra paren check from list of checks for redundant constructs
27288 Add documentation of new -gnatyx style check (check extra parens)
27289 Remove paragraph about gnatelim debug options.
27291 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
27292 objects rather than forbidding dependencies on the package Ada.Streams.
27294 * sinfo.ads: Add ??? note that we should document pragmas passed to
27297 * g-expect.ads: Fix a few typos in the comments.
27299 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
27301 * misc.c (gnat_handle_option): Use %< and %> for quoting in
27304 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27306 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
27308 2004-11-07 Andreas Schwab <schwab@suse.de>
27310 * Makefile.in (install-gnatlib): Remove spurious hyphen.
27312 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
27315 * Makefile.in (darwin): Set soext to .dylib.
27317 2004-10-26 Vincent Celier <celier@gnat.com>
27318 Thomas Quinot <quinot@act-europe.fr>
27320 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
27321 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
27322 there is no use of GNAT.Sockets.Constants.
27323 Remove remaining pragma Import for C_Write
27324 Remove C_Read and C_Write from internal implementation unit
27325 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
27326 the read and write functions from the system runtime library is fine
27327 on UNIX but won't work under Windows).
27329 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
27330 (Check_Selector): Use C_Recv instead of C_Read.
27331 Selectors are the GNAT.Sockets abstraction to perform a select()
27332 call on a set of descriptors. To allow abortion of an ongoing
27333 select operation, some data is written to a dedicated socket that
27334 is always monitored.
27335 Under Windows, the write and read library functions cannot operate
27336 on sockets, so we need to use send and recv instead, which is portable
27337 across all supported platforms.
27339 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
27340 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
27341 (using the read and write functions from the system runtime library is
27342 fine on UNIX but won't work under Windows).
27344 2004-10-26 Nicolas Setton <setton@act-europe.fr>
27346 * mlib-tgt-darwin.adb: New file.
27348 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27349 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27350 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27351 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
27354 * Makefile.in: Add support for building shared libraries under Darwin.
27355 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
27356 the low level EH init subprogram to be called from __gnat_initialize.
27358 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
27359 indicates which options to pass to the archive indexer.
27361 * mlib-utl.adb: Add support for calling ranlib with additional
27362 options. This is needed for instance under Mac OS X.
27363 (Ranlib_Options): New global variable, used to store the potential
27364 options to pass to ranlib.
27365 (Ar): Use Ranlib_Options when spawning ranlib.
27366 (Initialize): Set the value of ranlib option.
27368 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27370 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
27371 instead of 8K, to reflect the real potential needs for stack-checking
27374 2004-10-26 Pascal Obry <obry@gnat.com>
27376 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
27378 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
27379 Windows only the initial thread stack size can be set so it is good to
27380 start we a low stack size.
27381 The OS will adjust the size as needed.
27383 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27384 Nicolas Setton <setton@act-europe.fr>
27386 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
27387 "__unix__" instead of "unix".
27388 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
27389 sections were just mistakenly ignored. The former is
27390 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
27391 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
27392 of hpux. This prevents an unwanted definition of the symbol
27393 convert_addresses in adaint.o.
27395 2004-10-26 Gary Dismukes <dismukes@gnat.com>
27397 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
27398 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
27400 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27402 * a-filico.ads, a-filico.adb: fix incorrect header.
27404 2004-10-26 Javier Miranda <miranda@gnat.com>
27406 * a-ststio.ads: Fix typo in identifier
27408 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27410 * sem_ch4.adb: Minor reformatting.
27412 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27414 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
27415 enabled, check the result of unary and binary operations when the
27416 expression is the right-hand side of an assignment.
27418 2004-10-26 Vincent Celier <celier@gnat.com>
27420 * clean.adb (Delete): Do not output warnings when in quiet output and
27421 not in verbose mode.
27422 (Force_Deletions): New Boolean flag, defaulted to False
27423 (Delete): Only delete a file if it is writable, and when
27424 Force_Deletions is True.
27425 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
27426 (Usage): Line for new switch -f
27427 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
27430 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
27432 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
27433 JM type only if its size matches that of the wrapper. When a size is
27434 prescribed and the field is not aliased, remove the wrapper of a JM
27435 type only if the size is not greater than that of the packed array.
27436 (gnat_to_gnu_entity): Change the extension of packed array wrappers
27439 2004-10-26 Geert Bosch <bosch@gnat.com>
27441 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
27442 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27443 (Pred): Implement in terms of Succ.
27445 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27447 * exp_aggr.adb (Safe_Component): An aggregate component that is an
27448 unchecked conversion is safe for in-place use if the expression of the
27449 conversion is safe.
27450 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
27451 be expandable in place even if the aggregate does not come from source.
27452 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
27453 designated object of an allocator in place, rather than building it
27454 first on the stack. The previous scheme forces a full copy of the array,
27455 and may be altogether unsusable if the size of the array is too large
27456 for stack allocation.
27458 2004-10-26 Robert Dewar <dewar@gnat.com>
27460 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
27461 compares if the component is atomic.
27463 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
27464 array assignment if the component type is atomic.
27466 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27467 Eric Botcazou <ebotcazou@act-europe.fr>
27469 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
27470 is aliased and is a by_reference type, do not pass by copy.
27471 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
27472 detect whether the call is in the right side of an assignment or
27473 the expression of an object declaration. Recurse on component
27474 association within aggregates.
27475 Call it in the condition that determines whether the temporary is
27476 necessary for correct stack-checking.
27478 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27480 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
27481 RACW_Type, used in the PolyORB version.
27482 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
27483 version and the GARLIC version.
27485 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
27486 Rename RCI_Info to RCI_Locator for better consistency between the
27487 GARLIC and PolyORB versions of the distributed systems annex.
27488 (DSA_Implementation_Name): This enumeration lists the possible
27489 implementations of the Partition Communication Subsystem for the
27490 Distributed Systems Annex (DSA). The three available implementations
27491 are the dummy stub implementation (No_DSA), and two versions based on
27492 two different distribution runtime libraries: GARLIC and PolyORB. Both
27493 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
27495 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
27498 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
27499 between the GARLIC and PolyORB versions of the distributed systems
27501 Remove RE_Unbounded_Reclaim_Pool since it is unused.
27503 2004-10-26 Gary Dismukes <dismukes@gnat.com>
27505 * gnat1drv.adb: Suppress calling the back end when
27506 Frontend_Layout_On_Target is true.
27508 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27510 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
27511 Set_Read_Only): New subprograms.
27512 These new routines allow the user to set or unset the Owner execute
27513 and Owner write permission flags on a file.
27515 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
27516 GNAT.OS_Lib.Set_Executable instead of rolling our own.
27518 2004-10-26 Matthew Gingell <gingell@gnat.com>
27520 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
27522 2004-10-26 Pascal Obry <obry@gnat.com>
27524 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
27525 memory before the faulting page we properly test the process read
27526 access for this address using appropriate Win32 routine.
27527 (HPUX sections): guard with "__hpux__" instead of "hpux".
27529 2004-10-26 Robert Dewar <dewar@gnat.com>
27531 * lib-xref.adb (Generate_Reference): Don't complain about reference to
27532 entry parameter if pragma Unreferenced set, since we do not properly
27533 handle the case of multiple parameters.
27535 2004-10-26 Vincent Celier <celier@gnat.com>
27537 * prj-env.adb: (Contains_ALI_Files): New Boolean function
27538 (Ada_Objects_Path.Add): For a library project, add to the object path
27539 the library directory only if there is no object directory or if the
27540 library directory contains ALI files.
27541 (Set_Ada_Paths.Add.Recursive_Add): Ditto
27543 2004-10-26 Vincent Celier <celier@gnat.com>
27545 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
27546 extension of library projects.
27548 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
27549 path defaults to ".:<prefix>/lib/gnat".
27550 (Parse): For an extending all project, allow direct import of a project
27551 that is virtually extended.
27553 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
27554 the specified name is directly imported, return its ID. Otherwise, if
27555 an extension of this project is imported, return the ID of the
27558 2004-10-26 Robert Dewar <dewar@gnat.com>
27560 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
27561 (Sub3): New procedure, used by Scaled_Divide
27562 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
27563 correct more than one instance of failure to propagate carries
27565 (Double_Divide): Handle overflow case of largest negative number
27566 divided by minus one.
27568 * s-arit64.ads (Double_Divide): Document that overflow can occur in
27569 the case of a quotient value out of range.
27572 2004-10-26 Robert Dewar <dewar@gnat.com>
27574 * s-bitops.adb (Bit_Eq): Remove redundant check.
27576 * s-bitops.ads: Minor comment updates
27577 Change some occurrences of Address to System.Address
27579 * s-carsi8.ads: Fix minor cut-and-paste error in comments
27581 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27583 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
27584 accessibility check to prefix that is a protected operation.
27586 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27588 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
27589 empty, post message on stub.
27591 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27592 Javier Miranda <miranda@gnat.com>
27594 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
27595 current instance appears within a unit that is directly in the context
27597 Used to determine whether the body of the instance should be analyzed
27598 immediately after its spec, to make its subprogram bodies available
27599 for front-end inlining.
27600 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
27601 constraint is not allowed on the component type (AARM 12.5.3(3))
27603 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27605 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
27606 'Storage_Pool): enhance, document & limit detection of non-sharable
27609 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
27611 * s-pooglo.ads: Add more documentation now that this pool is properly
27614 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27616 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
27617 or protected type with discriminants, do not constrain the
27618 corresponding record type if the subtype declaration has no
27619 discriminant constraints. This can be the case in source code, or in
27620 the subtype declaration created to rename an actual type within an
27623 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27625 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
27626 different kind of stub (possibly wrong name for file), do not check
27628 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
27629 includes call to some function that returns an unconstrained type, do
27632 2004-10-26 Ed Schonberg <schonberg@gnat.com>
27634 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
27635 appear in the code for the main unit. Dependencies among units in the
27636 context of the main unit are established when those other units are
27637 compiled. Otherwise spurious elaboration constraints can generate
27638 incorrect elaboration circularities.
27640 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27641 Ed Schonberg <schonberg@gnat.com>
27643 * sem_util.adb (Is_Aliased_View): Defend against the case where this
27644 subprogram is called with a parameter that is not an object name. This
27645 situation arises for some cases of illegal code, which is diagnosed
27646 later, and in this case it is wrong to call Is_Aliased, as that might
27647 cause a compiler crash.
27648 (Explain_Limited_Type): Refine previous fix to include
27649 inherited components of derived types, to provide complete information.
27651 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
27652 is the prival for a protected object.
27653 It is necessary to mark this entity as a variable, in addition to
27654 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
27655 modified to avoid checking the Aliased flag on entities that are not
27656 objects. (Checking that flag for non-objects is erroneous and could
27657 lead to a compiler crash).
27659 2004-10-26 Robert Dewar <dewar@gnat.com>
27661 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
27662 X_Frac = 0.5, then we know that the number X must be positive.
27663 (Succ): Remove the same redundant test, and also fix the primary test
27664 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
27666 (Decompose): Add fuller comments to spec
27668 2004-10-26 Pascal Obry <obry@gnat.com>
27670 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
27671 validity (process must have read access). Set to 0 in all other cases.
27672 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
27673 violation on Win32.
27674 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
27675 segmentation violation.
27677 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
27679 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
27680 whose type is a constructed subtype of an aliased object with an
27681 unconstrained nominal subtype, convert the actual to the constructed
27682 subtype before taking its address.
27684 2004-10-26 Vincent Celier <celier@gnat.com>
27686 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
27687 (Is_Path_Name_Case_Sensitive): New function
27689 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
27690 (Base_Name, Simple_Name, Current_Directory, Compose,
27691 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
27694 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27695 Vasiliy Fofanov <fofanov@act-europe.fr>
27696 Vincent Celier <celier@gnat.com>
27698 * gnat_ugn.texi: Generalize "finding memory problems" section into a
27699 "memory management issues" section and document some of the useful
27700 memory pools provided as part of the GNAT library.
27701 Remove "virtual" from declaration of A::method2 in
27702 the simple example of Ada/C++ mixed system.
27703 Library Projects may be virtually extended: their virtual extensions
27704 are not Library Projects.
27705 Added section on extending project hierarchies.
27707 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
27709 * adaint.c (__gnat_get_libraries_from_registry): Cast value
27711 (__gnat_portable_spawn): Remove const.
27713 * mingw32.h (MAXPATHLEN): Check for previous definition.
27715 2004-10-17 Matthias Klose <doko@debian.org>
27717 * gnatvsn.ads: Set gnat library version to 4.0.
27719 2004-10-05 Vincent Celier <celier@gnat.com>
27721 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
27723 2004-10-04 Laurent Guerby <laurent@guerby.net>
27726 * Makefile.in: Define and use RANLIB_FLAGS.
27728 2004-10-04 Pascal Obry <obry@gnat.com>
27730 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
27731 other x86 platforms).
27733 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
27735 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
27736 in general and triggers stack alignment adjustment for thread entry
27737 points on targets where this is necessary.
27739 2004-10-04 Bernard Banner <banner@gnat.com>
27742 * Makefile.in: Add section for powerpc linux
27743 Add variant i-vxwork-x86.ads
27745 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
27747 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
27749 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
27750 table registration calls when need be. Ensures no reference to the crt
27751 ctors symbol are issued in the SJLJ case, which avoids possible
27752 undefined symbol errors in the case of modules to be statically linked
27755 2004-10-04 Javier Miranda <miranda@gnat.com>
27757 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
27758 in-line the code corresponding to subprogram Analyze_Actuals. In
27759 addition, analyze the actuals only in case of subprogram call.
27761 2004-10-04 Ed Falis <falis@gnat.com>
27763 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
27765 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
27767 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
27768 in the documentation.
27770 2004-10-04 Robert Dewar <dewar@gnat.com>
27772 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
27774 (Analyze_Block_Statement): Add circuitry to detect following dead code
27775 (Check_Unreachable_Code): Handle case of block exit
27777 2004-10-04 Robert Dewar <dewar@gnat.com>
27779 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
27780 (XMatchD): Avoid warning for Logic_Error call
27782 2004-10-04 Robert Dewar <dewar@gnat.com>
27784 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
27785 consider expressions buried within a procedure actual to be an actual.
27786 This caused some blowups with uses of packed slices within a procedure
27789 2004-10-04 Robert Dewar <dewar@gnat.com>
27791 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
27792 longer need to be initialized to zero.
27793 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
27794 initialized to zero.
27796 * checks.adb (Expr_Known_Valid): Packed arrays are now always
27797 considered valid, even if the representation is modular. That's correct
27798 now that we no longer initialize packed modular arrays to zero.
27800 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
27801 suffixes. These are now documented as the only cases in which the
27802 debugger ignores outer records.
27803 Previously, the spec allowed arbitrary suffixes for this purpose.
27804 Change name of LJM to JM for packed array pad records
27805 Create separate section on packed array handling, and add a whole new
27806 set of comments to this section describing the situation with packed
27807 modular types and justification requirements depending on endianness.
27809 2004-10-04 Robert Dewar <dewar@gnat.com>
27811 * a-except.adb: Add a comment for last change
27813 * einfo.ads: Minor spelling correction in comment
27815 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
27817 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
27820 * sem_util.ads: Minor comment update
27822 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27824 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
27825 Inline_Always when in Configurable_Run_Time mode.
27827 * sem_prag.adb (Process_Convention): If entity is an inherited
27828 subprogram, apply convention to parent subprogram if in same scope.
27829 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
27830 when in Configurable_Run_Time mode.
27832 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27834 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
27835 class_wide type after component list has been inherited.
27837 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27839 * sem_ch12.adb (Check_Generic_Actuals): New predicate
27840 Denotes_Previous_Actual, to handle properly the case of a private
27841 actual that is also the component type of a subsequent array actual.
27842 The visibility status of the first actual is not affected when the
27843 second is installed.
27844 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
27845 make fully recursive the treatment of formals of packages declared
27847 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
27848 the above on exit from an instantiation.
27849 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
27850 current instantiation which is now complete.
27851 (Analyze_Package_Instantiation): No instantiated body is needed if the
27852 main unit is generic. Efficient, and avoid anomalies when a instance
27853 appears in a package accessed through rtsfind.
27855 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27857 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
27858 do not generate a declaration for a temporary if the call is part of a
27859 library-level instantiation.
27861 2004-10-04 Ed Schonberg <schonberg@gnat.com>
27863 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
27864 searching for a limited component to flag.
27866 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
27867 expansion of Input, to account for the fact that the implicit call
27868 generated by the attribute reference must freeze the user-defined
27869 stream subprogram. This is only relevant to 'Input, because it can
27870 appear in an object declaration, prior to the body of the subprogram.
27872 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
27873 expansion can proceed and further errors uncovered.
27874 (Minor clean up): Fix cases of using | instead of \ for continuation
27877 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27879 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
27881 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
27882 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
27883 Use gcc_assert and gcc_unreachable.
27885 * decl.c (gnat_to_gnu_entity, case object): Check and process a
27886 specified alignment before validating size.
27887 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
27888 stripped-down declaration for the type of the inner field when making
27891 * utils.c (finish_record_type): Do not compute the size in units
27892 incrementally. Instead compute it once for the rep clause case.
27893 Use gcc_assert and gcc_unreachable.
27895 2004-10-04 Vincent Celier <celier@gnat.com>
27897 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
27899 (Is_Valid_Path_Name): Take '/' as a directory separator.
27901 2004-10-04 Vincent Celier <celier@gnat.com>
27903 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
27904 (Extended_Project) only if Extended_Project is defined, to avoid
27906 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
27908 (Parse_Single_Project): Ditto.
27910 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
27911 Add_To_Project_Path for virtual projects.
27913 2004-10-04 Vincent Celier <celier@gnat.com>
27915 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27916 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27917 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
27918 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
27919 parameter Options_2.
27921 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
27922 Build_Dynamic_Library with an empty Options_2.
27924 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
27927 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
27928 directory separator, if any.
27929 (Gprmake): Do not allow mains on the command line for library projects.
27930 Do not attempt to link when the project is a library project.
27931 (Library_Opts): New table to store Library_Options.
27932 (Build_Library): If Library_Options is specified, pass these options
27933 when building a shared library.
27935 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
27937 * s-tposen.adb (Service_Entry): The object must be always unlocked at
27938 the end of this procedure now that the unlock operation was inserted
27941 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
27943 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
27944 corresponding to the Preallocated_Stacks flags in System.
27945 (Get_Target_Parameters): Including the processing for
27946 Preallocated_Stacks.
27948 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
27949 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
27950 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
27951 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
27952 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
27953 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
27954 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
27955 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
27956 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
27957 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
27958 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
27959 used to signal whether the compiler creates the required stacks and
27960 descriptors for the different tasks (when True) or it is done by the
27961 underlying operating system at run time (when False).
27962 It is initially set to False in all targets.
27964 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
27965 if it is supported by the target.
27966 (Make_Task_Create_Call): Pass the stack address if it has been
27967 previously created. Otherwise pass a Null_Address.
27969 * snames.adb: Add _stack.
27971 * snames.ads: Add Name_uStack. Required to allow the expander to
27972 statically allocated task stacks.
27974 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
27975 Stack_Address argument.
27976 Check that its value is equal to Null_Address because this target does
27977 not support the static stack allocation.
27979 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27981 * usage.adb: Change "pragma inline" to "pragma Inline" in information
27984 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27986 * exp_dist.adb: Split declaration of asynchronous flag out of
27987 Add_RACW_Read_Attribute.
27988 Minor reformatting for better alignment with PolyORB version.
27989 Store the entity for the asynchronous flag of an RACW, rather than the
27990 expression, in the asynchronous flags table. This will allow this flag
27991 to be used in other subprograms beside Add_RACW_Read_Attribute.
27993 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
27995 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
27996 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27997 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
27998 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
27999 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
28000 sockets constant MSG_NOSIGNAL (Linux-specific).
28001 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
28002 all Send operations.
28003 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
28004 from trigerring SIGPIPE.
28005 Rename components to avoid clash with Ada 2005 possible reserved
28007 (Check_Selector): When the select system call returns with an error
28008 condition, propagate Socket_Error to the caller.
28010 2004-10-01 Jan Hubicka <jh@suse.cz>
28012 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
28014 2004-09-23 Robert Dewar <dewar@gnat.com>
28017 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
28018 instead do this at freeze time (we won't do it if there is an address
28020 Change "pragma inline" to "pragma Inline" in information and error
28022 Minor reformatting.
28024 * freeze.adb (Check_Address_Clause): Remove previous change, not the
28025 right way of doing things after all.
28026 (Freeze_Entity): For object, set Is_Public for imported entities
28027 unless there is an address clause present.
28029 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
28031 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
28032 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
28033 ensures proper handling of types with rep clauses, which might have
28034 their TYPE_SIZE set already.
28036 2004-09-21 Robert Dewar <dewar@gnat.com>
28038 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
28039 packed array types in both little- and big-endian cases. This change
28040 ensures that we no longer count on the unused bits being initialized
28041 for such types (and in particular ensures that equality testing will
28042 only read the relevant bits).
28043 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
28044 These changes mean that we no longer need to initialize small packed
28046 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
28047 optimization to an LJM field as to its parent field.
28049 * ada-tree.h, trans.c, utils.c, utils2.c:
28050 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
28052 2004-09-20 Jan Hubicka <jh@suse.cz>
28054 * utils.c (gnat_finalize): Remove.
28055 (end_subprog_body): Directly call cgraph_finalize_function;
28056 do not lower the nested functions.
28058 2004-09-20 Robert Dewar <dewar@gnat.com>
28061 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
28062 if an address clause is present, since that means that the Import
28065 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
28067 * 5tsystem.ads: Removed, no longer used.
28069 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
28070 Zack Weinberg <zack@codesourcery.com>
28072 * ada-tree.def: Use tree_code_class enumeration constants
28073 instead of code letters.
28074 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
28075 Update for new tree-class enumeration constants.
28077 2004-09-17 Vincent Celier <celier@gnat.com>
28079 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
28080 capabilities of the general project manager.
28082 2004-09-09 Vincent Celier <celier@gnat.com>
28084 * a-direct.ads: Add pragma Ada_05
28085 (Directory_Entry_Type): Give default value to component Kind to avoid
28086 not initialized warnings.
28088 * a-direct.adb (Current_Directory): Remove directory separator at the
28090 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
28091 an existing directory.
28092 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
28093 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
28094 Convert the result to File_Size.
28096 * prj.ads: (Project_Error): New exception
28098 * prj-attr.adb: Except in procedure Initialize, Fail comes from
28099 Prj.Com, not from Osint.
28100 (Attrs, Package_Attributes): Tables moved to private part of spec
28101 (Add_Attribute, Add_Unknown_Package): Moved to new child package
28103 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
28104 Prj.Project_Error after call to Fail.
28105 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
28106 Fail. Check that package name is not already in use.
28108 * prj-attr.ads: Comment updates to indicate that all subprograms may be
28109 used by tools, not only by the project manager, and to indicate that
28110 exception Prj.Prj_Error may be raised in case of problem.
28111 (Add_Unknown_Package, Add_Attribute): Moved to new child package
28113 (Attrs, Package_Attributes): Table instantiations moved from the body to
28114 the private part to be accessible from Prj.Attr.PM body.
28116 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
28117 from new package Prj.Attr.PM.
28118 (Parse_Attribute_Declaration): Call Add_Attribute from new package
28121 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
28123 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
28124 instead of Elaboration_Checks).
28126 * a-calend.adb: Minor reformatting
28128 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28130 * gigi.h (maybe_pad_type): New declaration.
28131 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
28133 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
28135 * cuintp.c: Convert to use buildN.
28137 * decl.c (maybe_pad_type): No longer static.
28138 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
28140 Convert to use buildN.
28142 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
28143 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
28144 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
28146 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
28147 (gnat_gimplify_expr, case ADDR_EXPR): New case.
28148 Convert to use buildN.
28150 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
28151 TREE_READONLY for const.
28152 Convert to use buildN.
28154 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
28155 (create_var_decl): Refine when TREE_STATIC is set.
28156 Convert to use buildN.
28158 2004-09-09 Gary Dismukes <dismukes@gnat.com>
28160 * gnat_ugn.texi: Delete text relating to checking of ali and object
28163 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
28166 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
28168 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
28169 pragmas recognized by GNAT.
28171 * gnat_rm.texi: Document pragma Detect_Blocking.
28173 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
28174 raise Program_Error if called from a protected operation.
28176 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
28177 the protected action nesting level.
28178 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
28179 protected action nesting level.
28180 (Unlock): When pragma Detect_Blocking is active decrease the protected
28181 action nesting level.
28183 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
28184 Protected_Action_Nesting.
28186 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
28187 Common_ATCB record. It contains the dynamic level of protected action
28188 nesting for each task. It is needed for checking whether potentially
28189 blocking operations are called from protected operations.
28190 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
28191 Detect_Blocking is active or not in the partition.
28193 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
28194 raise Program_Error if called from a protected operation.
28195 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
28196 Program_Error if called from a protected operation.
28197 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
28198 Program_Error if called from a protected operation.
28200 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
28201 raise Program_Error if called from a protected operation.
28203 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
28204 raise Program_Error if called from a protected operation, and increase
28205 the protected action nesting level.
28206 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
28207 Program_Error if called from a protected operation, and increase the
28208 protected action nesting level.
28209 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
28210 protected action nesting level.
28212 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
28213 raise Program_Error if called from a protected operation, and increase
28214 the protected action nesting level.
28215 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
28216 Program_Error if called from a protected operation, and increase the
28217 protected action nesting level.
28218 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
28219 raise Program_Error if called from a protected operation.
28220 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
28221 active, raise Program_Error if called from a protected operation.
28222 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
28223 protected action nesting level.
28225 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
28226 insertion of the statement raising Program_Error. The run time
28227 contains the required machinery for handling that.
28229 * sem_util.ads: Change comment associated to procedure
28230 Check_Potentially_Blocking_Operation.
28231 This procedure does not insert a call for raising the exception because
28232 that is currently done by the run time.
28234 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
28236 * init.c: Add the global variable __gl_detect_blocking that indicates
28237 whether pragma Detect_Blocking is active (1) or not (0). Needed for
28238 making the pragma available at run time.
28239 (__gnat_set_globals): Pass and update the detect_blocking parameter.
28241 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
28242 pragma Detect_Blocking is active.
28244 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
28246 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
28247 DB is found in the ali file. Any unit compiled with pragma
28248 Detect_Blocking active forces its effect in the whole partition.
28250 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
28251 Detect_Blocking is active and delay is called from a protected
28254 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
28255 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
28256 Detect_Blocking is active (0 otherwise).
28257 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
28258 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
28261 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
28263 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
28264 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
28267 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
28268 (Register_Receiving_Stub): Add Subp_Info formal parameter.
28269 Update API in placeholder implemetation of s-parint to reflect changes
28270 in distribution runtime library.
28272 * sem_ch3.adb (Expand_Derived_Record): Rename to
28273 Expand_Record_Extension.
28275 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
28276 primitive operations of potentially distributed object types that have
28277 non-controlling anonymous access formals.
28279 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
28281 New implementation of expansion for remote access-to-subprogram types,
28282 based on the RACW infrastructure.
28283 This version of sem_dist is compatible with PolyORB/DSA as well as
28286 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
28287 Asynchrronous that applies to a remote access-to-subprogram type, mark
28288 the underlying RACW type as asynchronous.
28290 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
28291 __gnat_using_gnu_linker to 1.
28293 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
28294 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
28295 GNAT.Perfect_Hash_Generators, and remove the empty
28296 GNAT.Perfect_Hash package.
28298 * atree.adb: Minor reformatting
28300 * exp_ch3.adb (Expand_Derived_Record): Rename to
28301 Expand_Record_Extension.
28302 (Build_Record_Init_Proc.Build_Assignment): The default expression in
28303 a component declaration must remain attached at that point in the
28304 tree so New_Copy_Tree copies it if the enclosing record type is derived.
28305 It is therefore necessary to take a copy of the expression when building
28306 the corresponding assignment statement in the init proc.
28307 As a side effect, in the case of a derived record type, we now see the
28308 original expression, without any rewriting that could have occurred
28309 during expansion of the ancestor type's init proc, and we do not need
28310 to go back to Original_Node.
28312 * exp_ch3.ads (Expand_Derived_Record): Rename to
28313 Expand_Record_Extension.
28315 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
28316 Returns the RACW type used to implement a remote access-to-subprogram
28318 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
28319 New subprograms. Used to create a proxy tagged object for a remote
28320 subprogram. The proxy object is used as the designated object
28321 for RAS values on the same partition (unless All_Calls_Remote applies).
28322 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
28323 System.Partition_Interface.Get_Unique_Remote_Pointer.
28324 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
28325 Renamed from Add_RAS_*_Attribute.
28326 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
28328 New implementation of expansion for remote access-to-subprogram types,
28329 based on the RACW infrastructure.
28331 * exp_dist.ads (Copy_Specification): Update comment to note that this
28332 function can copy the specification from either a subprogram
28333 specification or an access-to-subprogram type definition.
28335 2004-09-09 Ed Schonberg <schonberg@gnat.com>
28337 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
28338 in an instance, between an explicit subprogram an one inherited from a
28339 type derived from an actual.
28341 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
28342 add a polling call if the subprogram is to be inlined by the back-end,
28343 to avoid repeated calls with multiple inlinings.
28345 * checks.adb (Apply_Alignment_Check): If the expression in the address
28346 clause is a call whose name is not a static entity (e.g. a dispatching
28347 call), treat as dynamic.
28349 2004-09-09 Robert Dewar <dewar@gnat.com>
28351 * g-trasym.ads: Minor reformatting
28353 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
28354 packed arrays, since unused bits are expected to be zero for a
28357 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
28359 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
28362 2004-09-09 Pascal Obry <obry@gnat.com>
28364 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
28365 enable map file generation. Add the right option to generate the map
28366 file if Map_File is set to True.
28368 * gnatdll.adb (Gen_Map_File): New variable.
28369 (Syntax): Add info about new -m (Map_File) option.
28370 (Parse_Command_Line): Add support for -m option.
28371 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
28372 Minor reformatting.
28374 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
28376 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
28377 new gnatdist implementation.
28378 Define a subpackage isolating the output routines specific to this
28381 2004-09-09 Joel Brobecker <brobecker@gnat.com>
28383 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
28385 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
28387 2004-09-09 Cyrille Comar <comar@act-europe.fr>
28389 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
28392 * opt.ads: Add Ada_Version_Runtime constant used to decide which
28393 version of the language is used to compile the run time.
28395 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
28397 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
28398 of variable length temporaries for function return now that the
28399 back-end and gigi support it.
28401 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28403 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
28405 * trans.c (struct stmt_group): Delete field GLOBAL.
28406 (gnat_init_stmt_group): Do not initialize it.
28407 (call_to_gnu): Use save_expr, not protect_multiple_eval.
28408 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
28409 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
28410 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
28411 (start_stmt_group): Likewise.
28412 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
28414 * utils2.c (ggc.h): Include.
28415 (build_call_raise): Call build_int_cst, not build_int_2.
28417 * utils.c (gnat_init_decl_processing): Fix arg to
28418 build_common_tree_nodes.
28419 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
28420 (gnat_define_builtin): Set built_in_decls.
28421 (init_gigi_decls): Call build_int_cst, not build_int_2.
28423 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
28424 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
28425 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
28426 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
28427 SET_TYPE_MODULE): Use them.
28428 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
28429 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
28430 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
28431 SET_TYPE_ADA_SIZE): Likewise.
28432 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
28433 (DECL_CONST_CORRESPONDING_VAR,
28434 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
28435 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
28436 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
28437 (TYPE_RM_SIZE_NUM): New macro.
28438 (TYPE_RM_SIZE): Modified to use above.
28440 * cuintp.c: (build_cst_from_int): New function.
28441 (UI_To_gnu): Use it.
28443 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
28444 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
28445 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
28446 MIN_EXPR for the size, copy it into new.
28448 2004-09-01 Robert Dewar <dewar@gnat.com>
28450 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
28451 packed indexed component where array is an IN OUT formal. This
28452 generated garbage code previously.
28454 * gnat_ugn.texi: Document -fverbose-asm
28456 * gnat-style.texi: Minor updates (note that boolean constants and
28457 variables are joined with AND/OR rather than short circuit forms).
28459 2004-09-01 Ed Schonberg <schonberg@gnat.com>
28461 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
28462 it is an upward conversion of an untagged type with no representation
28465 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
28467 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
28468 System.Partition_Interface.
28470 * checks.adb (Apply_Access_Checks): Do not generate checks when
28471 expander is not active (but check for unset reference to prefix of
28474 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
28475 pragma Debug as an if statement with a constant condition, for
28476 consistent treatment of entity references contained within the
28477 enclosed procedure call.
28479 2004-09-01 Vincent Celier <celier@gnat.com>
28481 * bindgen.adb: (Set_EA_Last): New procedure
28482 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
28484 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
28485 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
28486 linked without errors.
28487 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
28489 (Gen_Exception_Table_C): Correct same bugs
28491 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
28493 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
28494 on Windows, make sure that the drive letter is in upper case.
28496 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
28497 Windows, when the drive letter is added and Case_Sensitive is True, the
28498 drive letter is forced to upper case.
28500 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
28501 to Options_2 for the call to MLib.Utl.Gcc.
28503 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
28504 directory separator when defining BASE_DIR.
28506 2004-09-01 Pascal Obry <obry@gnat.com>
28508 * gprcmd.adb (Extend): Do not output trailing directory separator. This
28509 is not needed and it confuses Windows GNU/make which does not report
28510 directory terminated by a slash as a directory.
28511 (gprcmd): Idem for "pwd" internal command.
28513 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
28514 target names rewrite to fix regressions with recent version of
28515 GNU/make. Starting with GNU/make 3.80 the pipe character was not
28516 handled properly anymore.
28518 2004-09-01 Andreas Schwab <schwab@suse.de>
28520 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
28521 * raise.c [!IN_RTS]: Undef abort.
28523 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
28525 * utils2.c (build_allocator): Use ssize_int.
28527 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
28529 2004-08-27 Andreas Schwab <schwab@suse.de>
28531 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
28533 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
28534 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28536 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
28538 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
28540 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
28541 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28542 * utils.c (init_gigi_decls): Likewise.
28543 * utils2.c (build_call_raise, build_allocator): Likewise.
28545 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
28547 * utils.c (gnat_init_decl_processing): Adjust
28548 build_common_tree_nodes call.
28550 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
28552 * utils2.c (build_allocator): Use build_int_cst for negative
28555 2004-08-18 Richard Henderson <rth@redhat.com>
28557 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
28559 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
28561 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
28563 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
28564 (gnat_to_gnu): Likewise.
28566 2004-08-16 Pascal Obry <obry@gnat.com>
28568 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
28569 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
28570 option and not mdll anymore. Update comment.
28572 2004-08-16 Pascal Obry <obry@gnat.com>
28574 * bld.adb (Put_Include_Project): Properly handle directory separators
28577 2004-08-16 Ed Schonberg <schonberg@gnat.com>
28579 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
28580 decreasing the number of allocated junk nodes while searching for the
28581 appropriate subprogram.
28583 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
28585 * cuintp.c (UI_To_gnu): Use build_int_cst..
28586 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
28587 * utils.c (init_gigi_decls): Likewise.
28588 * utils2.c (build_call_raise): Likewise.
28590 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
28592 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
28593 for a global aliased object with a variable size and an unconstrained
28594 nominal subtype, pretend there is no initializer if the one we have is
28595 incomplete, and avoid referencing an inexistant component in there. The
28596 part we have will be rebuilt anyway and the reference may confuse
28597 further operations.
28599 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
28601 * einfo.ads: Minor reformatting
28603 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
28604 restrictions in the ALI if we only want to warn about violations.
28606 2004-08-13 Vincent Celier <celier@gnat.com>
28608 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
28609 when creating a new Unit_Record in table Units.
28611 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
28612 that are violated, if any.
28614 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
28615 add directory separator if path already ends with a directory separator.
28617 2004-08-13 Ed Schonberg <schonberg@gnat.com>
28619 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
28620 unit, this is an attempt to inline a construct that is not available in
28621 the current restricted mode, so abort rather than trying to continue.
28623 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
28624 discriminants that rename those of the parent, recover names of
28625 original discriminants for the constraint on the full view of the
28627 (Complete_Private_Subtype): Do not create a subtype declaration if the
28628 subtype is an itype.
28630 * gnat_rm.texi: Added section on implementation of discriminated
28631 records with default values for discriminants.
28633 2004-08-13 Ed Schonberg <schonberg@gnat.com>
28636 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
28637 the second operand is overloaded.
28639 2004-08-10 Richard Henderson <rth@redhat.com>
28641 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
28642 add __builtin_alloca.
28644 2004-08-10 Richard Henderson <rth@redhat.com>
28646 * config-lang.in (boot_language): Yes.
28648 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
28650 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
28651 from complaining on potential uninitialized reference.
28652 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
28653 new specification and test explicitly for non-zero return value.
28655 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
28656 returning C.int, to avoid using a derived boolean type.
28658 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
28659 Duplicate_Subexpr_No_Checks in preference to direct use of
28660 Remove_Side_Effects and New_Copy_Tree.
28661 Clear Comes_From_Source on prefix of 'Size attribute reference.
28663 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
28664 g-socthi-vxworks.adb: Change calls to
28665 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
28666 and test explicitly for non-zero return value.
28668 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
28669 (Is_Socket_In_Set): Declare imported function as returning C.int, to
28670 avoid using a derived boolean type.
28672 2004-08-09 Albert Lee <lee@gnat.com>
28674 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
28676 2004-08-09 Pascal Obry <obry@gnat.com>
28678 * gnat_ugn.texi: Document new way to build DLLs on Windows using
28679 GCC's -shared option.
28681 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
28682 Options_2 parameter (options put after object files).
28684 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
28686 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
28687 ignore overflows on low and high bounds of an index to also account for
28688 differences in signedness between sizetype and gnu_index_subtype.
28689 These are as legitimate as the ones caused by a lower TYPE_PRECISION
28692 2004-08-09 Robert Dewar <dewar@gnat.com>
28694 * s-solita.ads, s-solita.adb: Minor reformatting
28696 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
28697 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
28698 obsolescent section
28699 Add note that No_Implicit_Conditionals does not suppress
28700 run time constraint checks.
28702 * vms_conv.ads: Minor reformatting
28704 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
28705 and necessary for following change).
28706 (Mark): Return new format Mark_Id containing sec stack address
28707 (Release): Use sec stack address from Mark_Id avoiding Self call
28709 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
28710 pointer (cleanup and necessary for following change).
28711 Define Mark_Id as record containing address of secondary stack, that way
28712 Release does not need to find the stack again, decreasing the number of
28713 calls to Self and improving efficiency.
28715 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
28717 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
28718 case variable into the individual case branches when possible.
28720 * sem_ch11.adb: Minor reformatting
28722 * prj.ads: Correct spelling of suffixs
28724 * prj-nmsc.adb: Minor reformatting
28725 Correct spelling suffixs throughout (also in identifiers)
28727 * freeze.adb: Minor spelling correction
28729 * exp_ch2.adb: Cleanups to handling of Current_Value
28730 (no functional effect).
28732 * bld.adb: Correct spelling of suffixs
28734 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
28736 2004-08-09 Ed Schonberg <schonberg@gnat.com>
28739 * sem_ch7.adb (Install_Private_Declarations): In the body of the
28740 package or of a child, private entities are both immediately_visible
28743 2004-08-09 Ed Schonberg <schonberg@gnat.com>
28745 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
28746 there are no range checks on the value of the literal.
28748 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
28749 wrapped is the triggering alternative of an asynchronous select, action
28750 statements mustbe inserted before the select itself.
28752 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
28753 case where the prefix is a protected function call.
28754 (Resolve_Attribute, case 'Access): The attribute reference on a
28755 subprogram is legal in a generic body if the subprogram is declared
28758 2004-08-09 Vincent Celier <celier@gnat.com>
28760 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
28761 languages, otherwise building the library may fail with unresolved
28763 (Compile_Sources): Do not build libraries if -c switch is used
28765 * gnatlink.adb (Process_Args): New switches -M and -Mmap
28766 (Write_Usage): If map file creation is supported, output new switches
28768 (Gnatlink): When -M is specified, add the necessary switch(es) to the
28769 gcc call, when supported.
28771 * Makefile.in: Added indepsw.o to the object list for gnatlink
28772 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
28774 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
28775 indepsw.adb, indepsw.ads: New files.
28777 2004-08-09 Bernard Banner <banner@gnat.com>
28779 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
28781 * Makefile.in: add section for vxworks x86
28783 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
28785 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
28786 per-object constrained components where the discriminant is of an
28788 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
28789 the parent initialization procedure for derived Unchecked_Unions.
28790 Instead, derived Unchecked_Unions build their own initialization
28792 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
28793 Check the body of the subprogram for details.
28794 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
28795 functions for derived Unchecked_Union types by introducing a condition.
28796 Allow the creation of TSS equality functions for Unchecked_Unions.
28797 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
28798 Add formal parameter Discr to function signature. Discr is used to
28799 control the generated case statement for Unchecked_Union types.
28800 (Make_Eq_If): Rename formal parameter Node to E in function signature.
28802 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
28804 Check the body of the subprogram for details.
28805 (Expand_Composite_Equality): Augment composite type equality to include
28806 correct handling of Unchecked_Union components.
28807 (Expand_N_In): Add condition to detect illegal membership tests when the
28808 subtype mark is a constrained Unchecked_Union and the expression lacks
28809 inferable discriminants, and build a Raise_Program_Error node.
28810 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
28811 to detect types that contain components of unconstrained Unchecked_Union
28812 subtype. Add condition to detect equality between types that have an
28813 unconstrained Unchecked_Union component, and build a Raise_Program_Error
28814 node. Add condition to detect equality between Unchecked_Union types
28815 that lack inferable discriminants, and build a Raise_Program_Error node.
28816 Otherwise build a TSS equality function call.
28817 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
28818 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
28819 with the operand lacking inferable discriminants, and build a Raise_
28820 Program_Error node.
28821 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
28822 composite equality.
28823 (Has_Inferable_Discriminants): Implement new predicate for objects and
28824 expressions of Unchecked_Union type. Check the body of subprogram for
28826 (Has_Unconstrained_UU_Components): Add function
28827 Component_Is_Unconstrained_UU. It is used to detect whether a single
28828 component is of an unconstrained Unchecked_Union subtype. Add function
28829 Variant_Is_Unconstrained_UU. It is used to detect whether a single
28830 component inside a variant is of an unconstrained Unchecked_Union type.
28832 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
28833 inferred discriminant values. Add condition to generate a case
28834 statement with an inferred discriminant as the switch.
28835 (Make_Component_List_Assign): Introduce a Boolean flag that determines
28836 the behaviour of the subprogram in the presence of an Unchecked_Union.
28837 Add condition to trigger the usage of the inferred discriminant value
28838 as the generated case statement switch.
28839 (Make_Field_Assign): Introduce a Boolean flag that determines the
28840 behaviour of the subprogram in the presence of an Unchecked_Union. Add
28841 condition to trigger the usage of the inferred discriminant value as
28842 the right-hand side of the generated assignment.
28844 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
28845 parameter generation when dealing with Unchecked_Unions.
28847 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
28848 checks for Unchecked_Unions.
28850 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
28852 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
28853 Raise_Program_Error nodes for the execution of Read and Write
28854 attributes of Unchecked_Union types and the execution of Input and
28855 Output attributes of Unchecked_Union types that lack default
28856 discriminant values.
28858 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
28859 Unchecked_Union. Add procedure Check_Component. It is used to inspect
28860 per-object constrained components of Unchecked_Unions for being
28861 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
28862 check individual components withing a variant.
28864 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
28865 comparison of Unchecked_Unions.
28866 (Resolve_Equality_OP): Remove guard that prevents equality between
28869 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
28870 of component subtypes for Unchecked_Union components.
28871 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
28872 since it is the actual subtype.
28874 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
28875 pass of Unchecked_Union subtypes as generic actuals to formal types
28876 that lack known_discriminant_parts or that are derived Unchecked_Union
28877 types, and do nothing. In any other case, produce an error message.
28879 * sem_ch3.adb (Analyze_Component_Declaration): Add function
28880 Contains_POC. It determines whether a constraint uses the discriminant
28881 of an enclosing record type.
28882 Add condition to detect per-object constrained component and set the
28884 (Derived_Type_Declaration): Remove guard that prevents derivation from
28885 Unchecked_Union types.
28886 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
28889 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
28890 references to Unchecked_Union discriminants.
28892 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
28893 formal generation when dealing with Unchecked_Unions.
28894 (Set_Actual_Subtypes): Add condition to prevent generation of actual
28895 subtypes for Unchecked_Unions.
28897 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
28898 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
28899 completions of discriminated partial views by Unchecked_Unions and
28900 produce an error message.
28902 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28904 * trans.c (struct stmt_group): New field, GLOBAL.
28905 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
28906 (struct elab_info): New struct.
28907 (elab_info_list, gnu_elab_proc_stack): New variables.
28908 (Compilation_Unit_to_gnu): New procedure.
28909 (gigi): Call it and also handle elaboration procs we've saved.
28910 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
28911 global field from parent.
28912 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
28913 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
28914 (start_stmt_group): Initialize global field from parent.
28915 (add_decl_expr): Set to global for current statement group.
28916 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
28919 * utils.c (global_bindings_p): True when no current_function_decl; no
28920 longer check current_binding_level.
28922 2004-08-09 Ben Brosgol <brosgol@gnat.com>
28924 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
28927 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
28929 2004-08-06 Andreas Schwab <schwab@suse.de>
28931 * utils.c (gnat_define_builtin): Remove second parameter of
28933 (begin_subprog_body): Likewise.
28935 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
28937 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
28938 optimization, not supported by the tree-ssa back-end.
28940 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
28942 * s-mastop-irix.adb: Update comments.
28944 * a-except.adb (Exception_Information): Raise Constraint_Error if
28945 exception Id is Null_Id.
28946 This is required behavior, which is more reliably and clearly checked
28947 at the top level interface level.
28949 2004-07-26 Javier Miranda <miranda@gnat.com>
28951 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
28952 call if a component has no default_expression and the box is used.
28954 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
28955 default_expression and you use box, it behaves as if you had declared a
28956 stand-alone object.
28957 (Resolve_Record_Aggregate): If a component has no default_expression and
28958 you use box, it behaves as if you had declared a stand-alone object.
28960 * sem_ch10.adb (Install_Siblings): Do not make visible the private
28961 entities of private-with siblings.
28963 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28965 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
28966 for a component of an itype, set the parent pointer for analysis,
28967 there is no list in which to insert it.
28969 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
28970 bona-fide renamings, not for inherited operations.
28972 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
28973 actual for a formal that is an access parameter, create local
28974 finalization list even if the expression is not an aggregate.
28976 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28979 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
28980 Diagnose properly illegal subprogram renamings that are library units.
28982 2004-07-26 Ed Schonberg <schonberg@gnat.com>
28985 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
28986 conversion rewritten as an unchecked conversion, check that original
28987 expression is a variable.
28989 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
28990 unchecked_conversion, create new node rather than rewriting in place,
28991 to preserve original construct.
28993 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28995 * gigi.h (gnat_expand_body): Deleted.
28997 * Make-lang.in: (trans.o): Depends on function.h.
28999 * misc.c: (gnat_expand_body): Moved to here.
29001 * trans.c (gnat_expand_body_1): Deleted.
29002 (gnat_expand_body): Moved from here.
29003 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
29004 (add_stmt): Check for marked visited with global_bindings_p.
29005 (gnat_gimplify_expr, case COMPONENT_REF): New case.
29006 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
29008 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
29009 VIEW_CONVERT_EXPR if not operation type.
29011 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
29014 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
29015 changes: reformatting of negation operators, removing unneeded
29016 inequality comparison with zero, converting equality comparisons with
29017 zero to negations, changing int/0/1 to bool/false/true, replace calls
29018 to gigi_abort with abort, and various other similar changes.
29020 2004-07-26 Vincent Celier <celier@gnat.com>
29022 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
29025 * make.adb (Gnatmake): Fail when a library is not present and there is
29026 no object directory.
29028 * mlib-prj.adb (Check_Library): No need to check if the library needs
29029 to be rebuilt if there is no object directory, hence no object files
29030 to build the library.
29032 * opt.ads (Setup_Projects): New Boolean flag.
29034 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
29036 Create directory when Kind /= "" and in "gnat setup". Report error if
29037 directory cannot be created.
29038 (Ada_Check): Create library interface copy dir if it does not exist
29039 and we are in "gnat setup".
29040 (Find_Sources): No error if in "gnat setup" and no Ada sources were
29042 (Language_Independent_Check): Create object directory, exec directory
29043 and/or library directory if they do not exist and we are in
29046 * vms_conv.ads: (Command_Type): New command Setup.
29048 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
29050 * vms_data.ads: Add qualifiers/switches for new built-in command
29053 2004-07-25 Richard Henderson <rth@redhat.com>
29055 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
29056 DECL_IGNORED_P on RESULT_DECL.
29058 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
29060 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
29061 allocation and potentially overflowing update with
29062 Tailored_Exception_Information. Use the sec-stack free procedural
29063 interface to output Exception_Information instead.
29065 * a-except.adb (To_Stderr): New subprogram for character, and string
29066 version moved from a-exextr to be visible from other separate units.
29067 (Tailored_Exception_Information): Remove the procedural version,
29068 previously used by the default Last_Chance_Handler and not any more.
29069 Adjust various comments.
29071 * a-exexda.adb: Generalize the exception information procedural
29072 interface, to minimize the use of secondary stack and the need for
29073 local buffers when the info is to be output to stderr:
29074 (Address_Image): Removed.
29075 (Append_Info_Character): New subprogram, checking for overflows and
29076 outputing to stderr if buffer to fill is of length 0.
29077 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
29078 (Append_Info_Address, Append_Info_Exception_Name,
29079 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
29080 Append_Info_Basic_Exception_Traceback,
29081 Append_Info_Exception_Information): New subprograms.
29082 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
29083 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
29084 Exception_Info_Maxlength, Exception_Name_Length,
29085 Exception_Message_Length): New subprograms.
29086 (Exception_Information): Use Append_Info_Exception_Information.
29087 (Tailored_Exception_Information): Use
29088 Append_Info_Basic_Exception_Information.
29089 Export services for the default Last_Chance_Handler.
29091 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
29092 other separate units.
29094 2004-07-20 Vincent Celier <celier@gnat.com>
29096 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
29098 2004-07-20 Ed Schonberg <schonberg@gnat.com>
29100 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
29101 emit itype references for the designated types of component types that
29102 are declared outside of the full record declaration, and that may
29103 denote a partial view of that record type.
29105 2004-07-20 Ed Schonberg <schonberg@gnat.com>
29108 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
29109 which is the designated type in an access component declaration, to the
29110 list of incomplete dependents of the parent type, to avoid elaboration
29111 issues with out-of-scope subtypes.
29112 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
29113 full view of the parent.
29115 2004-07-20 Ed Schonberg <schonberg@gnat.com>
29118 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
29119 entities that are hidden, such as references to generic actuals
29120 outside an instance.
29122 2004-07-20 Javier Miranda <miranda@gnat.com>
29124 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
29125 support to the new notation.
29126 (Analyze_Selected_Component): Add call to Try_Object_Operation.
29128 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
29130 * s-taprob.adb: Adding the elaboration code required for initializing
29131 the tasking soft links that are common to the full and the restricted
29134 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
29135 restricted run time has been moved to the package
29136 System.Soft_Links.Tasking.
29138 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
29139 restricted run time has been moved to the package
29140 System.Soft_Links.Tasking.
29142 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
29144 * s-solita.ads, s-solita.adb: New files.
29146 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29148 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
29149 Case_Statement_to_gnu): Split off from gnat_to_gnu.
29150 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
29151 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
29152 Exception_Handler_to_gnu_zcx): Likewise.
29154 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
29156 * gigi.h (builtin_function): Declare.
29158 2004-07-15 Robert Dewar <dewar@gnat.com>
29160 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
29163 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
29164 access values as an example of a warning.
29166 * gnat_rm.texi: Document new attribute Has_Access_Values
29168 * gnat-style.texi: Document that box comments belong on nested
29171 * sem_util.ads (Has_Access_Values): Improved documentation
29173 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
29175 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
29176 (Process_Interface_Name): Call to this new procedure
29177 (Set_Extended_Import_Export_External_Name): Call to this new procedure
29179 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
29181 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
29183 * einfo.ads: Minor comment typo fixed
29185 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
29187 * snames.adb: Add _atcb.
29189 * snames.ads: Add Name_uATCB.
29191 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
29192 (in the expanded code) when using the restricted run time.
29194 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
29195 a in parameter in order to allow ATCBs to be preallocated (in the
29198 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
29199 order to allow ATCBs to be preallocated. In case of error, the ATCB is
29200 deallocated in System.Tasking.Stages.
29202 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
29203 order to allow ATCBs to be preallocated.
29205 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
29206 here. It was previously done in Initialize_ATCB.
29208 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
29210 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
29211 Restricted run time.
29213 * exp_ch3.adb: When using the Restricted run time, pass the
29214 preallocated Ada_Task_Control_Block when creating a task.
29216 2004-07-15 Ed Schonberg <schonberg@gnat.com>
29218 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
29219 function call that is itself an actual in an enclosing call, diagnose
29220 problem here rather than assuming that resolution will catch it.
29222 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
29223 the local copy of a generic unit for a formal package, and the generic
29224 is a child unit, install private part of ancestors before compiling
29225 private part of spec.
29227 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
29228 use scope entities rather than tree structures, to handle properly
29229 parent units that are instances rewritten as bodies for inlining
29232 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
29233 Remove_Parents): Handle properly a parent unit that is an
29234 instantiation, when the unit has been rewritten as a body for inlining
29237 * par.adb (Goto_List): Global variable to collect goto statements in a
29238 given unit, for use in detecting natural loops.
29240 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
29241 use in detecting natural loops.
29243 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
29244 backwards goto's, and rewrite as a infinite loop, to improve locality
29247 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
29248 subcomponent that includes an indexed reference, to prevent the
29249 generation of copies that would miscompile the desired assignment
29251 (Build_Task_Image_Decls): Add a numeric suffix to
29252 generated name for string variable, to avoid spurious conflicts with
29253 the name of the type of a single protected object.
29255 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
29256 loop with an explicit exit statement, to avoid generating an
29257 out-of-range value with 'Succ leading to spurious constraint_errors
29258 when compiling with -gnatVo.
29260 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
29262 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
29263 might not be analyzed yet, even if its Etype is already set (case of an
29264 unchecked conversion built using Unchecked_Convert_To, for example).
29265 If the prefix has already been analyzed, this will be a nop anyway.
29267 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
29268 controller type, or an assignment of a record type with controlled
29269 components, copy only user data, and leave the finalization chain
29270 pointers untouched.
29272 2004-07-15 Vincent Celier <celier@gnat.com>
29274 * make.adb (Collect_Arguments): Improve error message when attempting
29275 to compile a source not part of any project, when -x is not used.
29277 * prj.ads: (Defined_Variable_Kind): New subtype
29279 * prj-attr.adb (Register_New_Package): Two new procedures to register
29280 a package with or without its attributes.
29281 (Register_New_Attribute): Mew procedure to register a new attribute in a
29283 New attribute oriented subprograms: Attribute_Node_Id_Of,
29284 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29285 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29287 New package oriented subprograms: Package_Node_Id_Of,
29288 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29290 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
29292 (Package_Node_Id): Now a private, self initialized type
29293 (Register_New_Package): New procedure to register a package with its
29295 New attribute oriented subprograms: Attribute_Node_Id_Of,
29296 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29297 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29299 New package oriented subprograms: Package_Node_Id_Of,
29300 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29302 * prj-dect.adb (Parse_Attribute_Declaration,
29303 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
29305 * prj-makr.adb (Make): Parse existing project file before creating
29306 other files. Fail if there was an error during parsing.
29308 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
29309 new spec of Prj.Attr.
29311 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
29312 to new spec of Prj.Attr.
29314 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29316 * utils2.c: Fix typo in comment.
29318 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29320 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
29321 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
29323 2004-07-14 Andreas Schwab <schwab@suse.de>
29325 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
29327 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29329 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
29331 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
29334 * misc.c (gnat_types_compatible_p): New function.
29335 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
29336 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
29338 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
29339 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
29340 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
29341 (mark_visited): Don't mark dummy type.
29342 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
29343 parameter, we must remove any LJM building from GNU_NAME.
29344 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
29345 (pos_to_constructor): Use int_const_binop.
29346 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
29349 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
29350 (gnat_pushlevel): Set TREE_USE on BLOCK node.
29351 (gnat_install_builtins): Add __builtin_memset.
29353 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
29355 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
29356 for a renaming, stabilize the initialization expression if we are at a
29357 local level. At the local level, uses of the renaming may be performed
29358 by a direct dereference of the initializing expression, and we don't
29359 want possible variables there to be evaluated for every use.
29361 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
29362 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
29363 them on the way. Account for the fact that we may introduce side
29364 effects in the process.
29366 2004-07-13 Richard Henderson <rth@redhat.com>
29368 * misc.c (default_pass_by_ref): Use pass_by_reference.
29370 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
29372 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
29373 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
29375 2004-07-08 Richard Henderson <rth@redhat.com>
29377 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
29380 2004-07-06 Vincent Celier <celier@gnat.com>
29382 * vms_conv.ads: Minor reformatting.
29383 Alphabetical order for enumerated values of type Command_Type, to have
29384 the command in alphabetical order for the usage.
29386 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
29387 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
29389 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
29391 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
29392 (Add_Archive_Path): Only add the global archive if there is one.
29393 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
29394 or not any object file to put in the global archive, and don't build
29395 a global archive if there is none.
29396 (X_Switches): New table
29397 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
29398 in the X_Switches table, if any.
29399 (Initialize): Make sure the X_Switches table is empty
29400 (Scan_Arg): Record -X switches in table X_Switches
29402 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
29404 * make.adb: Minor comment fix
29406 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
29407 invoked with directory information, add the directory in front of the
29410 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
29411 invoked with directory information, add the directory in front of the
29414 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
29415 when Keep_Temporary_Files is False.
29416 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
29417 directory information, add the directory in front of the path.
29418 When not on VMS, handle new switch -dn before the command to set
29419 Keep_Temporary_Files to True.
29420 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
29423 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
29424 invoked with directory information, add the directory in front of the
29427 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
29429 * snames.ads, snames.adb (Name_Stub): New name for the distributed
29432 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
29433 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
29435 * g-socket.adb (To_Timeval): Fix incorrect conversion of
29436 Selector_Duration to Timeval for the case of 0.0.
29438 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
29439 documentation from Evolve_And_Then.
29441 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
29443 * s-taprop-tru64.adb, s-taprop-os2.adb,
29444 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
29446 2004-07-06 Robert Dewar <dewar@gnat.com>
29448 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
29449 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
29450 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
29451 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
29452 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
29453 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
29454 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
29455 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
29456 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
29457 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
29458 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
29459 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
29460 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
29461 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
29462 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
29463 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
29464 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
29465 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
29466 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
29467 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
29468 vms_data.ads: Minor reformatting,
29469 Fix bad box comment format.
29471 * gnat_rm.texi: Fix minor grammatical error
29473 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
29475 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
29476 more cases of discriminated records to be recognized as not needing a
29478 (Has_Access_Values): New function.
29480 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
29482 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
29483 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
29484 with LRM terminology).
29485 Change terminology in comments primitive type => elementary type.
29487 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29490 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
29491 parameters do not impose any requirements on the presence of a body.
29493 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29496 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
29497 compilation unit and is in an open scope at the point of instantiation,
29498 assume that a body may be present later.
29500 2004-07-06 Ed Schonberg <schonberg@gnat.com>
29502 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
29503 Improve error message when specified size is not supported.
29505 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
29506 is never a primitive operation.
29508 2004-07-05 Andreas Schwab <schwab@suse.de>
29510 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
29511 RECORD_OR_UNION_CHECK.
29512 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
29514 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
29516 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
29517 dependency on xgnatugn, instead build it via a submake.
29518 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
29520 2004-07-04 Richard Henderson <rth@redhat.com>
29522 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
29524 2004-07-01 Richard Henderson <rth@redhat.com>
29526 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
29527 * utils.c (max_size): Likewise.
29529 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29531 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
29532 and rest_of_type_compilation; add arg to create_*_decl.
29533 (annotate_decl_with_node): Deleted.
29534 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
29535 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
29536 (get_current_block_context, gnat_pushdecl): New declarations.
29537 (gnat_init_stmt_group): Likewise.
29538 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
29539 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
29540 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
29541 (gnat_init): Call gnat_init_stmt_group.
29542 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
29543 (gnu_pending_elaboration_list): Deleted.
29544 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
29545 (gigi): Rearrange initialization calls and move some to last above.
29546 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
29547 Delete calls to add_decl_expr; add arg to create_*_decl.
29548 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
29549 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
29550 begin_subprog_body and call it.
29551 Don't push and pop ggc context.
29552 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
29553 (add_stmt): Remove handling of DECL_EXPR from here.
29554 If not in function, mark visited.
29555 (add_decl_expr): Put global at top level.
29556 Check for cases of DECL_INITIAL we have to handle here.
29557 (process_type): Add extra arg to create_type_decl.
29558 (build_unit_elab): Rework to just gimplify.
29559 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
29560 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
29561 (get_pending_elaborations, pending_elaborations_p): Likewise.
29562 (push_pending_elaborations, pop_pending_elaborations): Likewise.
29563 (get_elaboration_location, insert_elaboration_list): Likewise.
29564 (gnat_binding_level): Renamed from ada_binding_level.
29565 (init_gnat_to_gnu): Don't clear pending_elaborations.
29566 (global_bindings_p): Treat as global if no current_binding_level.
29567 (set_current_block_context): New function.
29568 (gnat_pushdecl): Renamed from pushdecl; major rework.
29569 All callers changed.
29570 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
29571 (finish_record_type): Call call pushdecl for stub decl.
29572 (function_nesting_depth): Deleted.
29573 (begin_subprog_body): Delete obsolete code.
29574 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
29576 2004-06-28 Robert Dewar <dewar@gnat.com>
29578 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29579 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
29580 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
29581 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29582 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
29584 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
29585 deal with problem of inefficient slices on machines with strict
29586 alignment, when the slice is a component of a composite.
29588 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
29589 machines, we need the check there as well.
29591 2004-06-28 Ed Schonberg <schonberg@gnat.com>
29593 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
29594 determine safe copying direction for overlapping slice assignments
29595 when component is controlled.
29597 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
29598 formal derived type in the actual for a formal package are visible in
29599 the enclosing instance.
29601 2004-06-28 Ed Schonberg <schonberg@gnat.com>
29604 * sem_util.adb (Trace_Components): Diagnose properly an illegal
29605 circularity involving a private type whose completion includes a
29606 self-referential component.
29607 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
29608 renaming or an instantiation from an implicit derived operation.
29610 2004-06-28 Pascal Obry <obry@gnat.com>
29612 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
29614 (Library_File_Name_For): Idem.
29616 2004-06-28 Matthew Gingell <gingell@gnat.com>
29618 * g-traceb.ads: Add explanatory note on the format of addresses
29619 expected by addr2line.
29621 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
29623 * Makefile.in: Force debugging information on s-tasdeb.adb,
29624 a-except.adb and s-assert.adb needed by the debugger.
29626 2004-06-28 Vincent Celier <celier@gnat.com>
29628 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
29632 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
29634 * prj.adb: Minor reformatting
29635 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
29637 * prj.ads: Comment updates
29639 (Project_Data): Change Flag1 to Need_To_Build_Lib.
29640 Remove Flag2: not used.
29642 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
29645 * gnat_ugn.texi: Put a "null;" declaration in one project file example
29647 * gnat_rm.texi: Document Empty declarations "null;".
29649 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
29650 front of the linker options.
29651 (Link_Foreign): Put the global archives and the libraries in front of
29652 the linker options.
29654 2004-06-28 Javier Miranda <miranda@gnat.com>
29656 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
29657 (RTU_Loaded): Code cleanup
29658 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
29659 withed predefined units.
29661 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
29662 explicitly withed predefined units.
29663 Fix typo in comment
29665 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
29666 explicitly withed predefined units.
29668 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29670 * ada-tree.def (DECL_STMT): Deleted.
29671 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
29672 (DECL_STMT_VAR): Deleted.
29673 * decl.c: add_decl_stmt now add_decl_expr.
29674 * gigi.h: Likewise.
29675 * trans.c: Likewise.
29676 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
29677 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
29678 (add_stmt): Only handle padded type here.
29679 (add_stmt_with_node): Allow gnat_node to not be present.
29680 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
29681 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
29682 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
29683 make a SAVE_EXPR for the entire fat pointer.
29684 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
29685 (create_index_type): Make a DECL_EXPR.
29686 (end_subprog_body): Don't call allocate_struct_function here but
29689 2004-06-25 Pascal Obry <obry@gnat.com>
29691 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
29692 Relocatable from Build_Dynamic_Library call.
29694 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
29695 Relocatable are now synonym.
29697 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
29699 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
29700 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
29703 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
29704 Lib_Address and Relocatable.
29705 (Default_DLL_Address): Removed.
29707 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29708 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29709 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
29710 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
29711 (Default_DLL_Address): Removed.
29713 * mlib-tgt-mingw.adb: Ditto.
29714 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
29716 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
29717 the initial thread stack size.
29719 * a-strmap.ads: Move package L to private part as it is not used in
29720 the spec. Found while reading code.
29722 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
29724 * tracebak.c: Introduce support for a GCC infrastructure based
29725 implementation of __gnat_backtrace.
29727 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
29728 any more. Use accessors instead. This eases maintenance and relaxes
29729 some alignment constraints.
29730 (_GNAT_Exception structure): Remove the Ada specific fields
29731 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
29733 (is_handled_by, __gnat_eh_personality): Replace component references to
29734 exception structure by use of the new accessors.
29736 * init.c (__gnat_initialize): Adjust comments to match the just
29737 reverted meaning of the -static link-time option.
29739 * adaint.c (convert_addresses): Arrange not to define a stub for
29740 mips-irix any more, as we now want to rely on a real version from a
29741 recent libaddr2line.
29743 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
29744 the personality routine can use them and not have to rely on a C
29745 counterpart of the record anymore. This simplifies maintenance and
29746 relaxes the constraint of having Standard'Maximum_Alignment match
29748 Update comments, and add a section on the common header alignment issue.
29750 2004-06-25 Geert Bosch <bosch@gnat.com>
29752 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
29753 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
29755 2004-06-25 Robert Dewar <dewar@gnat.com>
29757 * gnat_rm.texi: Fix section on component clauses to indicate that the
29758 restriction on byte boundary placement still applies for bit packed
29760 Add comment on stack usage from Initialize_Scalars
29762 * gnat_ugn.texi: Add documentation for -gnatyLnnn
29764 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
29765 limiting nesting level.
29767 * usage.adb: Add line for -gnatyLnnn switch
29769 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
29770 sem_ch13.adb, exp_aggr.adb: Minor reformatting
29772 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
29773 type as well as on the subtype. This corrects a problem in freeze in
29774 setting alignments of atomic types.
29776 * sem_eval.ads: Minor comment typo fixed
29778 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
29779 level. Minor reformatting.
29781 * fname.adb (Is_Predefined_File_Name): Require a letter after the
29782 minus sign. This means that file names like a--b.adb will not be
29783 considered predefined.
29785 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
29786 record Test new flag and give diagnostic for bad component clause.
29787 (Freeze_Entity): Set alignment of array from component alignment in
29788 cases where this is safe to do.
29790 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
29793 * cstand.adb: (Create_Standard): Set alignment of String to 1
29795 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
29797 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
29798 code in the common constrained array cases.
29800 * a-storio.adb: Change implementation to avoid possible alignment
29801 problems on machines requiring strict alignment (data should be moved
29802 as type Buffer, not type Elmt).
29804 * checks.adb (Apply_Array_Size_Check): Improve these checks by
29805 killing the overflow checks which we really do not need (64-bits is
29808 2004-06-25 Vincent Celier <celier@gnat.com>
29810 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
29811 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
29812 inconditionally for the main project.
29813 (Recursive_Add_Archives.Add_Archive_Path): New procedure
29814 (Link_Executables.Check_Time_Stamps): New procedure
29815 (Link_Executables.Link_Foreign): New procedure
29816 Changes made to reduce nesting level of this package
29817 (Check): New procedure
29818 (Add_Switches): When not in quiet output, check that a switch is not
29819 the concatenation of several valid switches. If it is, issue a warning.
29820 (Build_Global_Archive): If the global archive is rebuilt, linking need
29822 (Compile_Sources): Rebuilding a library archive does not imply
29823 rebuilding the global archive.
29824 (Build_Global_Archive): New procedure
29825 (Build_Library): New name for Build_Archive, now only for library
29827 (Check_Archive_Builder): New procedure
29828 (Create_Global_Archive_Dependency_File): New procedure
29829 (Gprmake): Call Build_Global_Archive before linking
29830 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
29832 (Scan_Arg): Display the Copyright notice when -v is used
29834 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
29837 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
29839 Add new GNAT LIST qualifier /FILES=
29840 Added qualifier /DIRECTORY= to GNAT METRIC
29841 Added qualifier /FILES= to GNAT METRIC
29842 Added qualifier /FILES to GNAT PRETTY
29844 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
29845 to take into account both versions of the switch.
29847 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
29848 always be the last switch to the gcc driver. Disable switch storing so
29849 that switches automatically added by the gcc driver are not put in the
29852 * prj.adb (Project_Empty): Take into account changes in components of
29855 * prj.ads (Languages_Processed): New enumaration value All_Languages.
29857 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
29858 used. Split Boolean component Ada_Sources_Present in two Boolean
29859 components Ada_Sources_Present and Other_Sources_Present.
29862 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
29863 instead of Sources_Present.
29864 (Set_Ada_Paths.Add.Recursive_Add): Ditto
29866 * prj-nmsc.adb: Minor reformatting
29867 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
29868 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
29869 Check_Ada_Naming_Scheme.
29870 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
29873 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
29875 Make sure that all cycles where there is at least one "limited with"
29877 (Parse_Single_Project): New Boolean parameter In_Limited
29879 * prj-proc.adb (Recursive_Check): When Process_Languages is
29880 All_Languages, call first Prj.Nmsc.Ada_Check, then
29881 Prj.Nmsc.Other_Languages_Check.
29883 * prj-proc.adb (Process): Use Ada_Sources_Present or
29884 Other_Sources_Present (instead of Sources_Present) depending on
29887 * lang-specs.h: Keep -g and -m switches in the same order, and as the
29890 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
29891 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
29893 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
29896 * lib.ads (Disable_Switch_Storing): New procedure.
29898 * make.adb: Modifications to reduce nesting level of this package.
29899 (Check_Standard_Library): New procedure
29900 (Gnatmake.Check_Mains): New procedure
29901 (Gnatmake.Create_Binder_Mapping_File): New procedure
29902 (Compile_Sources.Compile): Add switch -gnatez as the last option
29903 (Display): Never display -gnatez
29905 * Makefile.generic:
29906 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
29908 * gnatcmd.adb (Check_Project): New function
29909 (Process_Link): New procedure to reduce nesting depth
29910 (Check_Files): New procedure to reduce the nesting depth.
29911 For GNAT METRIC, include the inherited sources in extending projects.
29912 (GNATCmd): When GNAT LS is invoked with a project file and no files,
29913 add the list of files from the sources of the project file. If this list
29914 is too long, put it in a temp text files and use switch -files=
29915 (Delete_Temp_Config_Files): Delete the temp text file that contains
29916 a list of source for gnatpp or gnatmetric, if one has been created.
29917 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
29918 in the project file is too large, create a temporary text file that
29919 list them and pass it to the tool with "-files=<temp text file>".
29920 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
29922 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
29923 generated file is in not in Ada.
29925 * gnatls.adb: Remove all parameters And_Save that are no longer used.
29926 (Scan_Ls_Arg): Add processing for -files=
29927 (Usage): Add line for -files=
29929 * g-os_lib.adb (On_Windows): New global constant Boolean flag
29930 (Normalize_Pathname): When on Windows and the path starts with a
29931 directory separator, make sure that the resulting path will start with
29934 * clean.adb (Clean_Archive): New procedure
29935 (Clean_Project): When there is non-Ada code, delete the global archive,
29936 the archive dependency files, the object files and their dependency
29937 files, if they exist.
29938 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
29940 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
29942 * sinfo.ads: Fix typo in comment.
29944 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
29945 the TSS for remote access-to-subprogram types, since these TSS are
29946 always present once the type has been analyzed.
29947 (RAS_E_Dereference): Same.
29949 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
29950 reference raises Bad_Attribute, mark the reference as analyzed so the
29951 node (and any children resulting from rewrites that could have occurred
29952 during the analysis that ultimately failed) is not analyzed again.
29954 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
29956 * exp_dist.adb: Minor comment fix.
29958 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
29959 type is an anonymous access type, no unchecked deallocation of the
29960 allocated object can occur. If the object is controlled, attach it with
29961 a count of 1. This allows attachment to the Global_Final_List, if
29962 no other relevant list is available.
29963 (Get_Allocator_Final_List): For an anonymous access type that is
29964 the type of a discriminant or record component, the corresponding
29965 finalisation list is the one of the scope of the type.
29967 2004-06-25 Ed Schonberg <schonberg@gnat.com>
29969 * sem_ch3.adb (Replace_Type): When computing the signature of an
29970 inherited subprogram, use the first subtype if the derived type
29971 declaration has no constraint.
29973 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
29974 before applying previous optimization. Minor code cleanup.
29976 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
29977 placed at the beginning of an unpacked record without explicit
29978 alignment, a slice of it will be aligned and does not need a copy when
29981 2004-06-25 Ed Schonberg <schonberg@gnat.com>
29985 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
29986 reference is written with expressions mimicking parameters.
29988 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
29991 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
29992 STEP 2a. The constraints of a full type declaration of a derived record
29993 type are checked for conformance with those declared in the
29994 corresponding private extension declaration. The message
29995 "not conformant with previous declaration" is emitted if an error is
29998 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
30000 * g-traceb.ads: Document the need for -E binder switch in the spec.
30002 * g-trasym.ads: Document the need for -E binder switch in the spec.
30004 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
30006 * sem_prag.adb: Add handling of pragma Detect_Blocking.
30008 * snames.h, snames.ads, snames.adb: Add entry for pragma
30011 * s-rident.ads: Change reference to pragma Detect_Blocking.
30013 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
30016 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
30017 to indicate whether pragma Detect_Blocking is active.
30019 * par-prag.adb: Add entry for pragma Detect_Blocking.
30021 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
30022 of not handling WITH.
30023 Note that this replaces the previous update which was incorrect.
30025 2004-06-25 Javier Miranda <miranda@gnat.com>
30027 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
30028 use-clauses to have a clean environment.
30030 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
30031 the installation of the use-clauses to stablish a clean environment in
30032 case of compilation of a separate unit; otherwise the call to
30033 use_one_package is protected by the barrier Applicable_Use.
30035 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
30036 the installation of the use-clauses to stablish a clean environment in
30037 case of compilation of a separate unit.
30038 (End_Use_Clauses): Minor comment cleanup.
30040 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
30042 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
30044 2004-06-23 Richard Henderson <rth@redhat.com>
30046 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
30048 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30050 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
30051 now bool instead of int.
30052 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
30053 * trans.c (gnu_switch_label_stack): New function.
30054 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
30055 elaboration of renamed entity returns.
30056 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
30057 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
30058 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
30059 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
30060 DECL_SIZE_UNIT and simplify variable-sized case.
30061 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
30062 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
30063 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
30064 (build_unit_elab): Disable for now.
30065 * utils.c (mark_visited): New function.
30066 (pushdecl): Walk tree to call it for global decl.
30067 (update_pointer_to): Update all variants of pointer and ref types.
30068 Add arg to COMPONENT_REF.
30069 (convert): Likewise.
30070 Move check for converting between variants lower down.
30071 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
30072 (build_allocator): Don't force type of MODIFY_EXPR.
30073 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
30074 put_var_into_stack.
30076 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30078 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
30079 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
30080 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
30082 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
30083 all callers changed.
30084 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
30085 the way that EXIT_STMT finds the loop label.
30086 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
30087 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
30088 (add_stmt): Use annotate_with_locus insted of setting directly.
30089 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
30090 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
30091 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
30092 (build_vms_descriptor): Add extra args to ARRAY_REF.
30093 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
30094 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
30096 (build_binary_op): Don't make explicit CONVERT_EXPR.
30097 Add extra rgs to ARRAY_REF.
30099 2004-06-14 Pascal Obry <obry@gnat.com>
30101 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
30102 Windows. Fix minor typo.
30104 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
30105 which is now supported on Windows. With this implementation using the
30106 Library Project feature is no different on Windows than on UNIX.
30108 2004-06-14 Vincent Celier <celier@gnat.com>
30110 * makegpr.adb (Compile_Sources): Nothing to do when there are no
30113 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
30115 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
30116 found, show the project name and the path of the previously parsed
30119 2004-06-14 Ed Schonberg <schonberg@gnat.com>
30121 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
30122 array, avoid copying the actual before the call.
30124 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
30126 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
30127 Instead, allocate memory on worst-case alignment assumptions, and then
30128 return an aligned address within the allocated zone.
30130 2004-06-14 Robert Dewar <dewar@gnat.com>
30132 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
30133 elab entities in predefined units in No_Run_Time_Mode.
30134 (Gen_Adainit_C): Same fix
30135 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
30136 units in No_Run_Time_Mode
30137 (Gen_Elab_Calls_C): Same fix
30139 * symbols-vms-alpha.adb: Minor reformatting
30141 * g-debpoo.ads: Minor reformatting
30143 * lib.adb (In_Same_Extended_Unit): Version working on node id's
30145 * lib.ads (In_Same_Extended_Unit): Version working on node id's
30147 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
30150 * make.adb: Minor reformatting
30152 * par-ch12.adb: Minor reformatting
30154 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
30156 * prj-strt.adb: Minor reformatting
30158 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
30161 * sem_attr.adb: Minor reformatting
30163 * sem_ch7.adb: Minor reformatting
30165 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
30166 for type in the same unit as the object declaration.
30168 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
30169 static string expressions and not just string literals.
30171 (Set_Warning): Reset restriction warning flag for restriction pragma
30172 Implement pragma Profile_Warnings
30173 Implement pragma Profile (Restricted)
30174 Give obolescent messages for old restrictions and pragmas
30176 * snames.h, snames.ads, snames.adb: Add new entry for pragma
30179 * s-rident.ads: Add declarations for restrictions required by profile
30180 Restricted and profile Ravenscar.
30182 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
30184 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
30185 configuration pragmas.
30187 2004-06-11 Vincent Celier <celier@gnat.com>
30189 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
30190 gnatsym, when symbol policy is Restricted.
30192 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
30193 gnatsym, when symbol policy is Restricted.
30195 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
30196 read the symbol file.
30197 (Finalize): Fail in symbol policy Restricted if a symbol in the original
30198 symbol file is not in the object files. Do not create a new symbol file
30199 when symbol policy is Restricted.
30201 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
30204 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
30206 (Usage): Line for new switch -R
30208 * make.adb (Initialize): When the platform is not VMS, add the
30209 directory where gnatmake is invoked in the front of the path, if
30210 gnatmake is invoked with directory information. Change the Scan_Args
30211 while loop to a for loop.
30212 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
30213 if Depth is equal or greater than the proposed depth, there is nothing
30215 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
30218 * prj.ads: Add new symbol policy Restricted.
30220 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
30221 with the new parameters Check_All_Labels and Case_Location.
30223 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
30224 (Library_Symbol_File needs to be defined).
30226 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
30227 and Case_Location If Check_All_Labels is True, check that all values of
30228 the string type are used, and output warning(s) if they are not.
30230 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
30233 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
30235 * gnat_ugn.texi: Update documentation about the library directory in
30238 * makegpr.adb (Display_Command): In verbose mode, also display the
30239 value of the CPATH env var, when the compiler is gcc.
30240 (Initialize): Change the Scan_Args while loop to a for loop
30241 (Compile_Individual_Sources): Change directory to object directory
30242 before compilations.
30244 * symbols.ads: New symbol policy Restricted.
30246 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
30248 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
30249 is now taken care of internally in the Exception_Propagation package
30250 and does not require clients assistance any more.
30252 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
30253 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
30254 functions. Helpers to maintain a predicate required in the handling of
30255 occurrence transfer between tasks.
30256 This is now handled internally and does not require clients assistance
30257 for the setup/propagate separation anymore.
30258 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
30259 allocation strategy, handle the Setup_And_Not_Propagated predicate and
30262 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
30263 raise_after_setup, now that everything is handled internally within the
30264 setup/propagation engine.
30266 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
30268 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
30269 Add additional conditions for the case of an actual being a simple
30270 name or literal. Improve inlining by preventing the generation
30271 of temporaries with a short lifetime (one use).
30273 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
30276 * einfo.ads: Minor comment updates for Has_Completion and
30277 E_Constant list of flags.
30279 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
30280 and constant redeclarations now set the Has_Completion flag of their
30281 defining identifiers.
30283 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
30284 Inspect_Deferred_Constant_Completion.
30285 Used to detect private deferred constants that have not been completed
30286 either by a constant redeclaration or pragma Import. Emits error message
30287 "constant declaration requires initialization expression".
30289 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
30290 completes a deferred constant.
30292 2004-06-11 Geert Bosch <bosch@gnat.com>
30294 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
30296 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
30297 calculating exponent for scaling denormal numbers.
30298 (Leading_Part): Properly raise Constraint_Error for zero or negative
30300 (Remainder): Properly raise Constraint_Error for zero divisor.
30302 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
30304 * sem_util.adb: Minor reformatting.
30306 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
30307 dereference when accessing the entry parameter record.
30308 (Check_Array_Type): Always check for possible implicit dereference.
30309 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30310 Abort if a pointer is still present (denoting that an implicit
30311 dereference was left in the tree by the front-end).
30313 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
30314 dereference when accessing the entry parameter record.
30315 (Check_Array_Type): Always check for possible implicit dereference.
30316 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30317 Abort if a pointer is still present (denoting that an implicit
30318 dereference was left in the tree by the front-end).
30320 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
30322 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
30323 message, like the compiler itself does. Easier to parse the output.
30325 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
30327 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
30328 be base names, and not includes directories.
30330 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
30332 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
30333 so that dependencies are properly taken into account by make.
30335 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
30338 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
30339 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
30341 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
30343 * Makefile.in (install-gnatlib): install target-specific run-time files.
30345 * Make-lang.in: Remove obsolete targets.
30347 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30349 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
30350 specification, to catch misuses of program unit names.
30352 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
30353 superfluous conversions in an instance.
30355 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30358 * sem_ch12.adb (Save_References): If operator node has been folded to
30359 enumeration literal, associated_node must be discarded.
30361 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
30363 * s-stchop-vxworks.adb: Add required pragma Convention to
30364 Task_Descriptor because it is updated by a C function.
30366 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
30369 * Makefile.in: Remove target specific SO_OPT on IRIX
30371 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30373 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
30374 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
30375 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
30376 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
30377 (STMT_STMT, USE_STMT): New statement codes.
30378 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
30379 * ada-tree.h: Reflect above changes.
30380 (struct tree_loop_id): Deleted.
30381 (union lang_tree_node, struct lang_decl, struct lang_type):
30382 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
30383 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
30384 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
30385 (IS_ADA_STMT): New macro.
30386 * decl.c (annotate_decl_with_node): New function.
30387 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
30388 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
30389 Call add_stmt_with_node to do needed assignments.
30390 Add call to update setjmp buffer directly, not via EXPR_STMT.
30391 (maybe_variable): Argment GNAT_NODE deleted.
30392 * gigi.h (maybe_variable): Likewise.
30393 (make_transform, add_stmt_with_node, set_block_for_group): New.
30394 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
30395 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
30396 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
30397 (set_lineno, set_lineno_from_sloc): Likewise.
30398 (record_code_position, insert_code_for): Likewise.
30399 (gnat_poplevel): Now returns void.
30400 (end_subprog_body): Now takes argument.
30401 * misc.c (cgraph.h, tree-inline.h): New includes.
30402 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
30403 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
30404 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
30405 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
30406 (gnat_parse_file): Don't set immediate_size_expand.
30407 Call cgraph functions.
30408 (gnat_expand_expr): Remove most cases.
30409 (record_code_position, insert_code_for): Remove from here.
30410 * trans.c (toplev.h, tree-gimple.h): Now included.
30411 (discard_file_names): Deleted.
30412 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
30413 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
30414 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
30415 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
30416 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
30417 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
30418 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
30419 (set_block_for_group, add_stmt_list): Likewise.
30420 (start_stmt_group): Renamed from start_block_stmt.
30421 (end_stmt_group): Likewise, from end_block_stmt.
30422 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
30423 (gigi): Don't set discard_file_names or call set_lineno.
30424 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
30425 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
30426 Numerous changes throughout to reflect new names and complete
30427 function-at-a-time implementation.
30428 (gnat_expand_stmt): Delete or comment out all cases.
30429 (process_inlined_subprograms): Use add_stmt.
30430 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
30431 call set_lineno; also remove unneeded block handling.
30432 (process_type): Remove unneeded block handling.
30433 (build_unit_elab): Remove calls to deleted functions.
30434 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
30435 (tree-dump.h): Likewise.
30436 (struct ada_binding_level): Add field jmpbuf_decl.
30437 (gnat_define_builtin, gnat_install_builtins): New.
30438 (gnat_gimplify_function, gnat_finalize): Likewise.
30439 (gnat_poplevel): No longer return BLOCK, set it instead.
30440 Remove code dealing with nested functions.
30441 (gnat_init_decl_processing): Also set size_type_node.
30442 Call gnat_install_builtins.
30443 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
30444 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
30445 Remove special-case for "main".
30446 (end_subprog_body): Add arg and rework for tree-ssa.
30447 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
30448 Add case for BOOLEAN_TYPE.
30449 * utils2.c (rtl.h): Now include.
30450 (build_call_raise): Test Debug_Flag_NN directly.
30451 (build_call_alloc_dealloc): Don't use local stack allocation for now.
30452 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
30453 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
30455 2004-06-07 Robert Dewar <dewar@gnat.com>
30457 * a-direct.ads, einfo.ads: Minor comment updates
30459 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
30460 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30461 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
30462 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
30463 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
30465 * s-interr-sigaction.adb: Remove unreferenced variable
30466 (Attached_Interrupts). Minor reformatting.
30467 Avoid use of variable I (replace by J).
30469 * par-ch10.adb: Fix text of one error message
30471 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
30472 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
30473 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
30474 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
30475 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
30476 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
30477 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
30478 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
30479 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
30480 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
30481 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
30484 2004-06-07 Doug Rupp <rupp@gnat.com>
30486 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
30488 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
30490 * mlib-tgt-vms-ia64.adb: New file.
30492 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
30493 Add mlib-tgt-vms-ia64.adb
30494 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
30495 Move to alpha specific ifeq section.
30496 Add VMS specific versions of symbols.adb
30497 Renaming of 5q vms files.
30499 * 5qsystem.ads renamed to system-vms_64.ads.
30501 2004-06-07 Vincent Celier <celier@gnat.com>
30503 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
30504 explain that when a time of day corresponding to the non existing hour
30505 on the day switching to DST is specified, Split may return a different
30508 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
30511 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
30512 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
30514 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
30516 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
30517 the linking options.
30518 (Build_Library.Check_Libs): On VMS, if there is a dependency on
30519 g-trasym.ads, set Gtrasymobj_Needed to True.
30521 * prj-attr.adb: Add new package Metrics for gnatmetric
30523 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
30524 canonical case to take into account files with upper case characters on
30526 (Ada_Check): Load the reference symbol file name in the name buffer to
30527 check it, not the symbol file name.
30529 * snames.ads, snames.adb: Add standard name Metrics (name of project
30530 file package for gnatmetric).
30532 * vms_conv.ads: Add Metric to Comment_Type
30534 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
30536 * vms_data.ads: Add qualifiers for GNAT METRIC
30538 * makegpr.adb (Link_Executables): Take into account the switches
30539 specified in package Linker of the main project.
30541 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
30543 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
30544 the index of the last element is Units.Last, not Units.Table'Last
30545 (which is usually not a valid index within the actually allocated
30546 storage for the table).
30548 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
30549 determines whether to generate a call to a checked storage pool
30550 Dereference action.
30551 Generate such a call only for a dereference that either comes from
30552 source, or is the result of rewriting a dereference that comes from
30555 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
30557 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
30559 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
30561 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
30562 file level, elaborate the stride for inner dimensions in alignment
30565 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
30568 2004-06-07 Javier Miranda <miranda@gnat.com>
30570 * exp_ch6.adb: Correct wrong modification in previous patch
30572 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
30574 * g-trasym.ads: Corrected comment to properly reflect level of support
30577 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
30579 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
30580 includes case of a variable referenced on the left hand side of an
30581 assignment, therefore remove redundant code. Variables and prefixes of
30582 indexed or selected components are now marked as referenced on left
30583 hand side. Warnings are now properly emitted when variables or prefixes
30584 are assigned but not read.
30586 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
30587 left hand side referenced variables. Private access types do not
30588 produce the warning "variable ... is assigned but never read".
30589 Add also additional checks to left hand side referenced variables.
30590 Aliased, renamed objects and access types do not produce the warning
30591 "variable ... is assigned but never read" since other entities may read
30592 the memory location.
30594 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
30596 * Makefile.in: In the powerpc/vxworks-specific section, restore
30597 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
30600 2004-06-07 Ed Schonberg <schonberg@gnat.com>
30602 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
30603 predefined operators.
30604 Removes spurious type errors from g-trasym-vms.adb.
30606 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
30607 distinct from the operator appearing in the source, call appropriate
30608 routine to insert conversions when needed, and complete resolution of
30610 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
30611 interpretations for rewritten right operand.
30612 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
30613 the other operand is overloaded and the context is a type conversion.
30615 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30617 * ada-tree.def (BLOCK_STMT): Now has two operands.
30620 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
30622 * gigi.h: (gnat_poplevel): Now returns a tree.
30624 * trans.c (end_block_stmt): Add arg; all callers changed.
30625 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
30626 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
30627 (add_stmt): Set TREE_TYPE.
30628 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
30629 (gnat_expand_stmt, case BREAK_STMT): New case.
30631 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
30633 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
30635 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
30636 procedure Set_Stack_Size that is not needed.
30638 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
30640 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
30641 used for gnatpp input file and for the files upon which it depends
30643 2004-06-07 Ben Brosgol <brosgol@gnat.com>
30645 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
30647 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
30649 * gnatvsn.ads: Bump version numbers appropriately.
30650 Add new build type.
30652 2004-06-07 Pascal Obry <obry@gnat.com>
30654 * gnat_ugn.texi: Improve comments about imported names and link names
30655 on Windows. Add a note about the requirement to use -k gnatdll's option
30656 when working with a DLL which has stripped stdcall symbols (no @nn
30659 2004-05-27 Vincent Celier <celier@gnat.com>
30661 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
30662 COMMENTS_LAYOUT=UNTOUCHED
30664 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
30665 symbols-vms-alpha.adb
30667 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
30669 * sem.ads: Clarify documentation on checks suppression.
30671 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
30673 2004-05-27 Ed Schonberg <schonberg@gnat.com>
30675 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
30676 the case of multiple derivations.
30677 (Is_Object_Reference): For a selected component, verify that the prefix
30678 is itself an object and not a value.
30680 * sem_ch12.adb (Same_Instantiated_Constant): New name for
30681 Same_Instantiated_Entity.
30682 (Same_Instantiated_Variable): Subsidiary to
30683 Check_Formal_Package_Instance, to recognize actuals for in-out generic
30684 formals that are obtained from a previous formal package.
30685 (Instantiate_Subprogram_Body): Emit proper error when
30686 generating code and the proper body of a stub is missing.
30688 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
30689 has a universal interpretation, do the disambiguation here.
30691 * exp_ch4.adb (Expand_N_Type_Conversion,
30692 Expand_N_Unchecked_Type_Conversion): Special handling when target type
30693 is Address, to avoid typing anomalies when Address is a visible integer
30696 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
30697 to determine whether a subprogram should not be marked Pure, even when
30698 declared in a pure package.
30700 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
30702 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
30704 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
30705 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
30706 Update the documentation about the Ravenscar profile, following the
30707 definition found in AI-249.
30709 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
30710 setting the Profile (Ravenscar). This must be done in addition to
30711 setting the required restrictions.
30713 * rtsfind.ads: Add the set of operations defined in package
30716 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
30719 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
30721 lang-specs.h: Always require -c or -S and always redirect to /dev/null
30722 if -gnatc or -gnats is passed.
30724 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
30726 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
30727 a significant reference. Warnings are now properly emitted when a
30728 discriminated type is not referenced.
30730 * lib-xref.adb (Generate_Reference): A deferred constant completion,
30731 record representation clause or record type discriminant does not
30732 produce a reference to its corresponding entity. Warnings are now
30733 properly emitted when deferred constants and record types are not
30736 2004-05-27 Geert Bosch <bosch@gnat.com>
30738 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
30739 Fixes ACATS Annex G tests.
30741 2004-05-27 Robert Dewar <dewar@gnat.com>
30743 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
30746 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
30748 * s-interr.adb (Server_Task): Take into account case of early return
30749 from sigwait under e.g. linux.
30751 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
30753 * gnat_ugn.texi: Add description for the new gnatpp options:
30754 -rnb - replace the original source without creating its backup copy
30755 -c0 - do not format comments
30757 2004-05-24 Geert Bosch <bosch@gnat.com>
30759 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
30760 with 192 bits of precision, sufficient to reduce a double-extended
30761 arguments X with a maximum relative error of T'Machine_Epsilon, for X
30762 in -2.0**32 .. 2.0**32.
30763 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
30764 reduction by the processor, which only uses a 68-bit approximation of
30766 (Tan): Always reduce arguments and compute function either using
30767 the processor's fptan instruction, or by dividing sin and cos as needed.
30769 2004-05-24 Doug Rupp <rupp@gnat.com>
30771 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
30772 gcc error on 32/64 bit VMS.
30774 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
30776 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
30777 since this is what we get for stack overflows although not documented
30779 Document the issues which may require adjustments to our signal
30782 2004-05-24 Ed Schonberg <schonberg@gnat.com>
30784 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
30785 enclosing dynamic scope if the instantiation is within a generic unit.
30787 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
30789 * exp_dbug.ads: Fix typo.
30791 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
30792 Rename it to its proper name: system-linux-ia64.ads
30793 (stamp-gnatlib1): Remove extra target specific run time files when
30794 setting up the rts directory.
30796 2004-05-24 Javier Miranda <miranda@gnat.com>
30798 * einfo.ads, einfo.adb (Limited_Views): Removed.
30799 (Limited_View): New attribute that replaces the previous one. It is
30800 now a bona fide package with the limited-view list through the
30801 first_entity and first_private attributes.
30803 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
30804 limited-private-with clause.
30805 (Install_Limited_Withed_Unit): Install the private declarations of a
30806 limited-private-withed package. Update the installation of the shadow
30807 entities according to the new structure (see Build_Limited_Views)
30808 (Build_Limited_Views): Replace the previous implementation of the
30809 limited view by a package entity that references the first shadow
30810 entity plus the first shadow private entity (required for limited-
30811 private-with clause)
30812 (New_Internal_Shadow_Entity): Code cleanup.
30813 (Remove_Limited_With_Clause): Update the implementation to undo the
30814 new work carried out by Build_Limited_Views.
30815 (Build_Chain): Complete documentation.
30816 Replace Ada0Y by Ada 0Y in comments
30819 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
30820 types the level of accessibility depends on the enclosing type
30823 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
30824 entities. Complete documentation of previous change.
30826 2004-05-24 Robert Dewar <dewar@gnat.com>
30828 * namet.adb: Minor reformatting
30829 Avoid use of name I (replace by J)
30830 Minor code restructuring
30832 * sem_ch6.adb: Minor reformatting
30834 * lib-writ.adb: Do not set restriction as active if this is a
30835 Restriction_Warning case.
30837 * sem_prag.adb: Reset restriction warning flag if real pragma
30838 restriction encountered.
30840 * s-htable.adb: Minor reformatting
30841 Change rotate count to 3 in Hash (improves hash for small strings)
30843 * 5qsystem.ads: Add comments for type Address (no literals allowed).
30845 * gnat_ugn.texi: Add new section of documentation "Code Generation
30846 Control", which describes the use of -m switches.
30848 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
30850 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
30851 through the DECL_INITIAL for renamed variables.
30853 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
30855 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
30857 2004-05-19 Joel Brobecker <brobecker@gnat.com>
30859 * exp_dbug.ads: Correct comments concerning handling of overloading,
30860 since we no longer use $ anymore.
30862 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
30864 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
30865 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
30866 with illegal subunits.
30868 2004-05-19 Ed Schonberg <schonberg@gnat.com>
30870 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
30871 body with front-end inlining enabled, check whether an inline pragma
30872 appears immediately after the body and applies to it.
30874 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
30875 enabled and the pragma appears after the body of the subprogram.
30877 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30879 Part of function-at-a-time conversion
30881 * misc.c (adjust_decl_rtl): Deleted.
30882 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
30885 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
30886 (add_decl_stmt, add_stmt, block_has_vars): New functions.
30887 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
30889 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
30890 when making a decl.
30891 (gnat_to_gnu_entity): Likewise.
30892 Use add_stmt to update setjmp buffer.
30893 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
30895 No longer call adjust_decl_rtl.
30896 (DECL_INIT_BY_ASSIGN_P): New macro.
30897 (DECL_STMT_VAR): Likewise.
30899 * trans.c (gigi): Call start_block_stmt to make the outermost
30901 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
30902 Call start_block_stmt and end_block_stmt temporarily.
30903 Use gnat_expand_stmt instead of expand_expr_stmt.
30904 (add_decl_stmt): New function.
30905 (tree_transform): Call it.
30906 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
30907 (end_block_stmt): Set type and NULL_STMT.
30908 (gnat_expand_stmt): Make recursize call instead of calling
30910 (gnat_expand_stmt, case DECL_STMT): New case.
30911 (set_lineno_from_sloc): Do nothing if global.
30912 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
30913 (start_block_stmt, add_stmt, end_block_stmt): New functions.
30914 (build_block_stmt): Call them.
30915 (gnat_to_code): Don't expand NULL_STMT.
30916 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
30918 (tree_transform): Likewise.
30919 (tree_transform, case N_Null_Statement): Return NULL_STMT.
30920 (gnat_expand_stmt, case NULL_STMT): New case.
30921 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
30924 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
30927 * utils.c (create_var_decl): Do not call expand_decl or
30929 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
30930 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
30932 (struct e_stack): Add chain_next to GTY.
30933 (struct binding_level): Deleted.
30934 (struct ada_binding_level): New struct.
30935 (free_block_chain): New.
30936 (global_binding_level, clear_binding_level): Deleted.
30937 (global_bindings_p): Rework to see if no chain.
30938 (kept_level_p, set_block): Deleted.
30939 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
30940 new data structure and work directly on BLOCK node.
30941 (gnat_poplevel): Similarly.
30942 (get_decls): Look at BLOCK_VARS.
30943 (insert_block): Work directly on BLOCK node.
30944 (block_has_var): New function.
30945 (pushdecl): Rework for new binding structures.
30946 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
30948 (build_subprog_body): Likewise.
30949 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
30951 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
30953 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
30954 (DECL_STMT_VAR): Likewise.
30956 2004-05-17 Robert Dewar <dewar@gnat.com>
30958 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
30961 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
30962 of restriction synonyums by using
30963 Restrict.Process_Restriction_Synonyms.
30965 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
30967 * s-restri.ads (Tasking_Allowed): Correct missing comment
30969 * s-rident.ads: Add entries for restriction synonyms
30971 * ali.adb: Fix some problems with badly formatted ALI files that can
30972 result in infinite loops.
30974 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
30975 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
30976 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
30977 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
30978 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
30979 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
30980 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
30981 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
30982 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
30983 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
30984 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
30985 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
30986 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
30987 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
30988 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
30989 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
30990 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
30991 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
30992 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
30993 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
30994 to Task_Id (minor cleanup).
30996 2004-05-17 Vincent Celier <celier@gnat.com>
30998 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
30999 directory separator.
31001 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
31002 project being extended, if Languages is not declared in extending
31005 2004-05-17 Javier Miranda <miranda@gnat.com>
31007 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
31008 limited view of a visible sibling.
31010 2004-05-14 Robert Dewar <dewar@gnat.com>
31012 * gnat_ugn.texi: Minor change to -gnatS documentation
31014 * sprint.adb: Remove some instances of Assert (False) and for this
31015 purpose replace them by output of a ??? string.
31017 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
31020 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
31021 flag processing. This was suppressing required dependencies in
31022 No_Run_Time mode and is not needed since the binder does not generate
31023 references for things in libgnat anyway.
31025 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
31028 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
31030 * gnat_ugn.texi: Document AIX-specific issue with initialization of
31033 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
31034 action for the case of an actual parameter in an init proc call.
31036 2004-05-14 Ed Schonberg <schonberg@gnat.com>
31038 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
31039 subtype, check visible entities in base type.
31041 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
31042 actions if the object is a renaming.
31044 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
31045 Check_Formal_Package_Instance, to determine more precisely when the
31046 formal and the actual denote the same entity.
31048 2004-05-14 Javier Miranda <miranda@gnat.com>
31050 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
31052 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
31053 corresponding to a private_with must be removed from visibility; it
31054 will be made visible later, just before we analyze the private part of
31056 (Check_Private_Child_Unit): Allow private_with clauses in public
31058 (Install_Siblings): Make visible the private entities of private-withed
31060 (Install_Withed_Unit): Do not install the private withed unit if we
31061 are compiling a package declaration and the Private_With_OK flag was
31062 not set by the caller. These declarations will be installed later,
31063 just before we analyze the private part of the package.
31065 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
31066 during the evaluation of the expression that initializes the object,
31067 decorate it with the expected type to avoid cascade errors.
31070 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
31071 subprogram we have to install the private_with clauses after its
31072 specification has been analyzed (as documented in AI-262.TXT).
31074 * sem_ch8.adb (Has_Private_With): New function. Determines if the
31075 current compilation unit has a private with on a given entity.
31076 (Find_Direct_Name): Detect the Beaujolais problem described in
31079 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
31080 provides the functionality of the function Is_Ancestor that was
31081 previously available in sem_ch10. It has been renamed to avoid
31084 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
31086 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31088 * utils.c (build_vms_descriptor): Use SImode pointers.
31090 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
31092 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
31094 2004-05-14 GNAT Script <nobody@gnat.com>
31096 * Make-lang.in: Makefile automatically updated
31098 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
31100 Renaming of target specific files for clarity
31102 * Makefile.in: Rename GNAT target specific files.
31104 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
31105 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
31106 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
31107 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
31108 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
31109 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
31110 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
31111 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
31112 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
31113 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
31114 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
31115 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
31116 51osinte.adb, 51osinte.ads, 51system.ads,
31117 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
31118 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
31119 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
31120 56tpopsp.adb, 57system.ads, 58system.ads,
31121 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
31122 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
31123 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
31124 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
31125 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
31126 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
31127 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
31128 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
31129 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
31130 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
31131 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
31132 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
31133 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
31134 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
31135 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
31136 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
31137 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
31138 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
31139 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
31140 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
31141 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
31142 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
31143 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
31144 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
31145 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
31146 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
31147 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
31148 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
31149 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
31150 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
31151 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
31152 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
31153 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
31154 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
31155 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
31156 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
31157 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
31158 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
31159 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
31160 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
31162 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
31163 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
31164 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
31165 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
31166 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
31167 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
31168 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
31169 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
31170 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
31171 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
31172 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
31173 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
31174 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
31175 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
31176 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
31177 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
31178 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
31179 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
31180 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
31181 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
31182 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
31183 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
31184 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
31185 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
31186 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
31187 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
31188 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
31189 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
31190 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
31191 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
31192 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
31193 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
31194 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
31195 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
31196 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
31197 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
31198 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
31199 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
31200 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
31201 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
31202 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
31203 s-osinte-vms.ads, s-osinte-vxworks.adb,
31204 s-osinte-vxworks.ads, s-osprim-mingw.adb,
31205 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
31206 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
31207 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
31208 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
31209 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
31210 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
31211 s-stchop-vxworks.adb, s-taprop-dummy.adb,
31212 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
31213 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
31214 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
31215 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
31216 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
31217 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
31218 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
31219 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
31220 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
31221 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
31222 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
31223 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
31224 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
31225 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
31226 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
31227 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
31228 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
31229 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
31230 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
31231 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
31232 system-irix-o32.ads, system-linux-x86_64.ads,
31233 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
31234 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
31235 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
31236 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
31237 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
31238 system-vxworks-mips.ads, system-vxworks-ppc.ads,
31239 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
31242 2004-05-13 Zack Weinberg <zack@codesourcery.com>
31244 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
31246 2004-05-13 Diego Novillo <dnovillo@redhat.com>
31248 Merge from tree-ssa-20020619-branch.
31250 * config-lang.in (boot_language, build_by_default): Set
31252 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
31253 (max_size): Add static chain op for call_expr.
31255 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
31258 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
31260 2004-05-11 Roger Sayle <roger@eyesopen.com>
31262 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
31265 2004-05-10 Doug Rupp <rupp@gnat.com>
31267 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
31270 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
31272 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
31274 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
31275 Fixes undefined symbols in IA64 gnatlib.
31277 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
31279 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
31280 Short_Address). This will be moved to system.auxdec.
31282 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
31284 * sem_util.adb: Replace test for presence of a node that is always
31285 present with a call to Discard_Node.
31287 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
31288 Analyze on the library unit node after generation of distribution stub
31289 constructs. The call was a no-op because Unit_Node has already been
31290 Analyzed, and the tree fragments for the distribution stubs are
31291 analyzed as they are inserted in Exp_Dist.
31292 Update comment regarding to distribution stubs to reflect that we
31293 do not generate stub in separate files anymore.
31295 * einfo.ads: Clarify the fact that a tagged private type has the
31296 E_Record_Type_With_Private Ekind.
31298 * erroutc.adb: Minor reformatting
31300 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
31301 values if line length is increased using -gnatyM (noticed during code
31304 * eval_fat.adb: Minor reformatting
31305 Put spaces around exponentiation operator
31307 2004-05-10 Ed Schonberg <schonberg@gnat.com>
31310 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
31311 has been rewritten as an explicit dereference, retrieve type of
31312 original node to check for possibly unconstrained record type.
31314 2004-05-10 Ed Schonberg <schonberg@gnat.com>
31316 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
31317 overriding, use the operation of the parent unconditionally.
31319 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
31320 operation when either operand is a literal, to avoid further
31323 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
31324 overridden by a previous explicit declaration, mark the previous entity
31327 * sem_disp.adb (Check_Dispatching_Operation): New predicate
31328 Is_Visibly_Controlled, to determine whether a declaration of a
31329 primitive control operation for a derived type overrides an inherited
31330 one. Add warning if the explicit declaration does not override.
31332 2004-05-10 Vincent Celier <celier@gnat.com>
31334 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
31335 some cases when the sources are no longer present.
31337 * make.adb (Collect_Arguments): Fail if an external source, not part
31338 of any project need to be compiled, when switch -x has not been
31341 * makeusg.adb: Document new switch -x
31343 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
31344 defaulted to False.
31346 * switch-m.adb (Scan_Make_Switches): New switch -x
31348 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
31349 gnatmake switch -x.
31351 * gnat_ugn.texi: Document new gnatmake switch -x
31353 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
31355 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
31357 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
31358 (process_attributes): Likewise.
31360 2004-05-10 Joel Brobecker <brobecker@gnat.com>
31362 * s-inmaop.ads: Fix spelling mistake in one of the comments.
31364 2004-05-10 Robert Dewar <dewar@gnat.com>
31366 * gnat_ugn.texi: Document that for config pragma files, the maximum
31367 line length is always 32767.
31369 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
31370 literals is now allowed.
31372 * gnat-style.texi: Remove statement about splitting long lines before
31373 an operator rather than after, since we do not follow this rule at all.
31374 Clarify rule (really lack of rule) for spaces around exponentiation
31376 * sem_elim.adb: Allow concatenation of string literals as well as a
31377 single string literal for pragma arguments.
31379 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
31381 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
31382 written for append case.
31384 * frontend.adb: Changes to avoid checking max line length in config
31387 * g-os_lib.ads: Minor reformatting
31389 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
31390 wrong in any case. Instead use standard value. Noticed during code
31393 * opt.ads (Max_Line_Length): New field, used to implement removal of
31394 limitation on length of lines when scanning config pragma files.
31396 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
31397 makeutl.ads, makeutl.adb: Minor reformatting
31399 * scn.adb: Do not check line length while scanning config pragma files
31400 Do not check line length while scanning out license information
31402 * scng.adb: Changes to avoid line length checks while parsing config
31405 2004-05-10 GNAT Script <nobody@gnat.com>
31407 * Make-lang.in: Makefile automatically updated
31409 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
31411 * osint.adb (Find_Program_Name): Fix handling of VMS version
31414 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
31416 * g-os_lib.ads (Invalid_Time): New constant
31418 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
31419 return OS_Time instead of time_t to match what is imported by Ada.
31420 Now return -1 if the file doesn't exist, instead of a random value
31422 2004-05-05 Robert Dewar <dewar@gnat.com>
31424 * usage.adb: Add line for -gnatR?s switch
31426 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
31428 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
31429 and for Match (Data_First, Data_last)
31431 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
31432 written when we are dealing with multi-unit files.
31434 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
31436 * Makefile.in: Remove unused targets and variables.
31438 2004-05-05 Vincent Celier <celier@gnat.com>
31440 * switch-m.adb: New gnatmake switch -eI
31442 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
31443 of new gnatmake switch -eInnn.
31445 * makegpr.adb: Take into account new parameters Index and Src_Index in
31448 * clean.adb: Implement support for multi-unit sources, including new
31451 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
31454 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
31455 (Extract_From_Q): New out parameter Index
31456 (Mark, Is_Marked): Subprograms moved to Makeutl
31457 (Switches_Of): New parameter Source_Index
31458 (Add_Switch): New parameter Index
31459 (Check): New parameter Source_Index
31460 (Collect_Arguments): New parameter Source_Index
31461 (Collect_Arguments_And_Compile): New parameter Source_Index
31462 (Compile): New parameter Source_Index
31463 Put subprograms in alphabetical order
31464 Add support for multi-source sources, including in project files.
31466 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
31467 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
31470 * makeusg.adb: New gnatmake switch -eInnn
31472 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
31475 * opt.ads (Main_Index): New variable, defaulted to 0.
31477 * osint.ads, osinte.adb (Add_File): New parameter Index
31478 (Current_Source_Index): New function
31480 * prj.adb: Take into account new components Index and Src_Index
31482 * prj.ads (String_Element): New component Index
31483 (Variable_Value): New component Index
31484 (Array_Element): New component Src_Index
31486 * prj-attr.adb: Indicate that optional index may be specified for
31487 attributes Main, Executable, Spec, Body and some of Switches.
31489 * prj-attr.ads (Attribute_Kind): New values for optional indexes
31490 (Attribute_Record): New component Optional_Index
31492 * prj-com.ads (File_Name_Data): New component Index
31494 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
31496 * prj-env.adb (Put): Output optional index
31498 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
31499 attributes Spec and Body.
31501 * prj-nmsc.adb: Process optional indexes
31503 * prj-pp.adb: Ouput "at" for optional indexes
31505 * prj-proc.adb: Take into account optional indexes
31507 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
31508 Optional_Index. For string literal,
31509 process optional index when Optional_Index is True.
31510 (Parse_Expresion): New Boolean parameter Optional_Index
31512 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
31513 (Set_Source_Index_Of): New procedure
31515 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
31518 * prj-util.ads (Executable_Of): New parameter Index
31519 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
31520 New parameter Src_Index, defaulted to 0.
31522 2004-05-05 Ed Schonberg <schonberg@gnat.com>
31525 * sem_ch3.adb (Access_Definition): If this is an access parameter
31526 whose designated type is imported through a limited_with clause, do
31527 not add the enclosing subprogram to the list of private dependents of
31530 2004-05-05 Ed Schonberg <schonberg@gnat.com>
31533 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
31534 a limited_with clause, and the other is its non-limited view.
31536 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
31538 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
31540 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
31541 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
31542 Stand.Boolean_Literals to produce references to entities
31543 Standard_False and Standard_True from compile-time computed boolean
31546 * stand.ads (Boolean_Literals): New variable, provides the entity
31547 values for False and True, for use by the expander.
31549 2004-05-05 Doug Rupp <rupp@gnat.com>
31551 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
31552 5vinmaop.adb: Unchecked convert Short_Address vice Address
31554 * adaint.c, raise.c: Caste CRTL function return value
31555 to avoid gcc error on 32/64 bit IVMS.
31557 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
31560 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
31562 * 5qsystem.ads (Address): Declare as Long_Integer
31563 (Short_Address): Declare as 32 bit subtype of Address
31564 Declare abstract address operations to avoid gratuitous ambiguities.
31566 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
31568 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
31569 instead of the old Boolean_Entry_Barriers.
31570 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
31572 2004-05-05 GNAT Script <nobody@gnat.com>
31574 * Make-lang.in: Makefile automatically updated
31576 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
31578 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
31580 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
31583 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
31584 alone. Replacing object references by literals is inappropriate in a
31585 so low level context.
31587 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
31589 * a-exexpr.adb: Add comments
31591 2004-05-03 Joel Brobecker <brobecker@gnat.com>
31593 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
31594 declare the Ancestor_Tags array in Type_Specific_Data with a small size
31595 without risking a bounds check error when accessing one of its
31597 (Type_Specific_Data): Define Ancestor_Tags as a small array.
31598 This prevents us from hitting a limitation during the debug info
31599 generation when using stabs.
31601 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
31603 This prevents us from hitting a limitation during the debug info
31604 generation when using stabs.
31606 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
31608 lang-specs.h: Remove -gnatz* from specs.
31610 2004-05-03 Vincent Celier <celier@gnat.com>
31612 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
31614 * Make-lang.in, Makefile.in: Add gprmake
31616 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
31618 * sem_aggr.adb: Fix typo in comment.
31620 2004-05-03 Robert Dewar <dewar@gnat.com>
31622 * make.adb: Minor reformatting
31624 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
31626 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
31627 so that it works when address is not a private type.
31629 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
31630 properly with rewritten unchecked conversions. This prevents
31631 order-of-elaboration issues that can otherwise arise.
31632 (Minimum_Size): Don't check size of access types under VMS
31634 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
31635 interpretations of integer literals as type System.Address.
31637 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
31638 (Is_Descendent_Of): New function
31640 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
31642 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31643 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
31644 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
31646 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
31647 of the old Max_Entry_Queue_Depth.
31649 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
31650 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
31651 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
31653 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
31654 New entry for proper handling of Max_Entry_Queue_Depth.
31655 New entry for proper handling of No_Dynamic_Interrupts.
31657 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
31658 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31659 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
31660 the GNAT specific restriction Max_Entry_Queue_Depth.
31661 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
31662 the GNAT specific restriction No_Dynamic_Interrupts.
31664 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
31665 instead of the old Boolean_Entry_Barriers.
31666 Use the new restriction No_Dynamic_Attachment instead of the old
31667 No_Dynamic_Interrupts.
31669 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
31670 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
31672 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
31673 of the old Max_Entry_Queue_Depth.
31675 2004-05-03 GNAT Script <nobody@gnat.com>
31677 * Make-lang.in: Makefile automatically updated
31679 2004-04-29 Ed Schonberg <schonberg@gnat.com>
31681 * checks.adb (Enable_Range_Check): If the prefix of an index component
31682 is an access to an unconstrained array, perform check unconditionally.
31684 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31686 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
31689 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
31691 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
31692 alternate stack setting. There was no support for the tasking cases
31693 and the changes eventually caused a number of side-effect failures in
31694 the non-tasking case too.
31696 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
31698 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
31701 2004-04-29 Vincent Celier <celier@gnat.com>
31703 * make.adb (Gnatmake): Increase max size of argument array for
31704 gnatbind for the potential addition of -F.
31705 If there are Stand-Alone Library projects, invoke gnatbind with -F to
31706 be sure that elaboration flags will be checked.
31708 * switch-c.adb: Correct call to Scan_Pos for -gnateI
31710 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
31712 * sem_warn.adb (Check_References): Move '<access-variable> may be
31713 null' warning out of under Warn_On_No_Value_Assigned.
31715 2004-04-29 Ed Falis <falis@gnat.com>
31717 * gnat_ugn.texi: Fixed texi error
31719 2004-04-29 Robert Dewar <dewar@gnat.com>
31721 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
31722 abstract operations if they come from predefined files.
31724 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
31727 * s-addope.adb: Correct obvious error in mod function
31729 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
31731 * Makefile.in: Add target pairs for powerpc darwin*
31734 * a-intnam-darwin.ads, s-osinte-darwin.adb,
31735 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
31737 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
31739 * Makefile.in: Add target macro definitions for s390*-linux*.
31740 * system-linux-s390.ads: New file.
31741 * system-linux-s390x.ads: New file.
31743 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
31745 * gnat_ugn.texi: Correct argument to @setfilename.
31747 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
31749 * a-exexpr.adb (Unwind_Word): New data type.
31750 (Unwind_Exception): Use it as type of Private1 and Private2.
31752 * raise.c (db_action_for): Fix debug printf.
31754 2004-04-27 Ed Schonberg <schonberg@gnat.com>
31756 * a-wtmoio.ads: Formal type must be a modular type, not a signed
31759 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31761 * decl.c (gnat_to_gnu_entity, case object): Call
31762 __builtin_update_setjmp_buf.
31764 * gigi.h (update_setjmp_buf): Deleted.
31765 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
31767 * misc.c: (update_setjmp_buf): Deleted.
31769 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
31770 around block of RTL.
31772 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
31774 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
31776 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
31777 subprogram for which no pragma All_Calls_Remote applies, store the
31778 address of the real subprogram in the underlying record type, so local
31779 dereferences do not go through the PCS.
31781 2004-04-26 Robert Dewar <dewar@gnat.com>
31783 * i-c.ads: Add some type qualifications to avoid ambiguities when
31784 compiling with s-auxdec.ads and a non-private address type.
31786 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
31788 * Makefile.rtl: Fix error in previous check-in:
31789 Add s-addope.o to non tasking object list (rather than tasking object
31792 2004-04-26 Javier Miranda <miranda@gnat.com>
31794 * sem_aggr.adb: Fix typo in comments
31795 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
31796 Required to check the null-exclusion attribute.
31798 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
31799 case of anonymous access types in record and array components. For a
31800 component definition the level is the same of the enclosing composite
31803 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
31804 that are anonymous access types the level of accessibility depends on
31805 the enclosing type declaration. In order to have this information, set
31806 the scope of the anonymous access type to the enclosing record type
31808 (Array_Type_Declaration): In case of components that are anonymous
31809 access types the level of accessibility depends on the enclosing type
31810 declaration. In order to have this information, set the scope of the
31811 anonymous access type to the enclosing array type declaration.
31813 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
31816 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
31817 renaming of anonymous access-to-constant types allowed if and only if
31818 the renamed object is access-to-constant.
31820 * sem_util.adb (Type_Access_Level): In case of anonymous access types
31821 that are component_definition or discriminants of a nonlimited type,
31822 the level is the same as that of the enclosing component type.
31824 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
31826 * sem_elim.adb: Some minor code reorganization from code reading. Fix
31827 misprint in the function name (File_Name_Match).
31829 2004-04-23 Laurent Guerby <laurent@guerby.net>
31831 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
31834 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31836 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
31838 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
31840 * adaint.c (__gnat_try_lock): No longer requires that the parent
31841 directory be writable, the directory itself is enough.
31842 (gnat_is_absolute_path): Change profile, so that the call from
31843 GNAT.OS_Lib can be made more efficient.
31845 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
31846 from GNAT.OS_Lib can be made more efficient.
31848 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
31849 one copy of the file name. Found by code reading.
31851 2004-04-23 Vincent Celier <celier@gnat.com>
31853 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
31854 Correct documentation on gnatmake switches transmitted to the compiler
31856 * ali.ads: Minor comment fix
31858 2004-04-23 Javier Miranda <miranda@gnat.com>
31860 * sem_ch6.adb: (Confirming Types): Code cleanup
31862 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
31863 subprogram types: E_Anonymous_Access_Subprogram_Type and
31864 E_Anonymous_Access_Protected_Subprogram_Type.
31866 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
31868 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31869 whether a pragma All_Calls_Remote applies to the subprogram on which
31871 No functional change is introduced by this revision; the new parameter
31872 will be used to allow calls to local RCI subprograms to be optimized
31873 to not use the PCS in the case where no pragma All_Calls_Remote applies,
31874 as is already done in the PolyORB implementation of the DSA.
31876 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
31877 whether a pragma All_Calls_Remote applies to the subprogram on which
31879 No functional change is introduced by this revision; the new parameter
31880 will be used to allow calls to local RCI subprograms to be optimized
31881 to not use the PCS in the case where no pragma All_Calls_Remote applies,
31882 as is already done in the PolyORB implementation of the DSA.
31884 2004-04-23 Robert Dewar <dewar@gnat.com>
31886 * Makefile.rtl: Add entry for s-addope.o in run time library list
31887 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
31888 * s-addope.ads, s-addope.adb: New files.
31890 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
31891 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
31892 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
31893 System.Address to be non-private and signed.
31895 * sem_elim.adb: Minor reformatting (fairly extensive)
31896 Some minor code reorganization from code reading
31897 Add a couple of ??? comments
31899 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31901 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
31902 (tree_transform, case N_If_Statement): Remove non-determinism.
31904 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
31906 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
31908 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
31909 Eliminate' section.
31911 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
31912 no longer used as a parameter name for Eliminate pragma).
31914 2004-04-22 Laurent Guerby <laurent@guerby.net>
31916 PR optimization/14984
31917 PR optimization/14985
31918 * trans.c (gigi): Fix non determinism leading to bootstrap
31919 comparison failures.
31921 2004-04-21 Pascal Obry <obry@gnat.com>
31923 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
31924 passed to spawnvp() to properly handle program pathname with spaces on
31927 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
31929 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
31930 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
31931 unlocked in case of exceptions.
31933 2004-04-21 Joel Brobecker <brobecker@gnat.com>
31935 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
31936 This function does not exist anymore.
31938 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
31940 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
31942 * link.c: Move variables to the __gnat name space.
31944 * Makefile.in: list link.o explicitly when needed.
31946 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
31948 2004-04-21 Javier Miranda <miranda@gnat.com>
31950 * einfo.adb (Original_Access_Type): New subprogram
31951 (Set_Original_Access_Type): New subprogram
31952 (Write_Field21_Name): Write the name of the new field
31954 * einfo.ads (Original_Access_Type): New field present in access to
31956 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
31957 E_Anonymous_Access_Protected_Subprogram_Type.
31959 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
31962 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
31963 to anonymous access to subprogram types.
31965 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
31966 to subprogram types.
31968 * sem_ch3.adb (Access_Definition): Complete decoration of entities
31969 corresponding to anonymous access to subprogram types.
31970 (Analyze_Component_Declaration): Add new actual to the call to
31971 subprogram replace_anonymous_access_to_protected_subprogram.
31972 (Array_Type_Declaration): Add new actual to the call to subprogram
31973 replace_anonymous_access_to_protected_subprogram.
31974 (Process_Discriminants): Add new actual to the call to subprogram
31975 replace_anonymous_access_to_protected_subprogram.
31976 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
31978 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
31981 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
31982 access to subprogram types.
31984 * sem_util.adb (Has_Declarations): Addition of package_specification
31987 2004-04-21 Ed Schonberg <schonberg@gnat.com>
31989 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
31990 inlined flags to renamed entity only if in current unit.
31992 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
31994 * s-parint.ads: Add DSA implementation marker.
31996 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
31997 value of System.Partition_Interface.DSA_Implementation to determine
31998 what version of the distributed systems annex is available (no
31999 implementation, GLADE, or PolyORB).
32001 2004-04-21 Joel Brobecker <brobecker@gnat.com>
32003 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
32005 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32007 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
32008 with new type if alias sets differ.
32009 Fixes ACATS c41103b.
32011 2004-04-21 Vincent Celier <celier@gnat.com>
32013 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
32014 Add array Lang_Args for the language specific compiling argument
32017 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
32019 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
32021 * gnat_rm.texi: Update the descripton of the Eliminate pragma
32022 according to the recent changes in the format of the parameters of the
32023 pragma (replacing Homonym_Number with Source_Location).
32025 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
32027 * 5isystem.ads: Removed, unused.
32029 * gnat_rm.texi: Redo 1.13 change.
32031 2004-04-19 Robert Dewar <dewar@gnat.com>
32033 * s-stoele.ads: Clean up definition of Storage_Offset (the new
32034 definition is cleaner, avoids the kludge of explicit Standard operator
32035 references, and also is consistent with a visible System.Address with
32036 no visible operations.
32038 * s-geveop.adb: Add declarations to avoid assumption of visible
32039 operations on type System.Address (since these might not be available
32040 if Address is a non-private type for which the operations
32041 are made abstract).
32043 * sem_eval.adb: Minor reformatting
32045 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
32046 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
32047 reformatting (new function spec format).
32049 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
32050 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
32051 s-caun64.adb: Add declarations to avoid assumption of visible
32052 operations on type System.Address (since these might not be available
32053 if Address is a non-private type for which the operations are made
32056 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
32058 * exp_intr.adb: Minor comment update
32060 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
32062 * 5omastop.adb: Add declarations to avoid assumption of visible
32063 operations on type System.Address (since these might not be available
32064 if Address is a non-private type for which the operations
32065 are made abstract).
32067 2004-04-19 Vincent Celier <celier@gnat.com>
32069 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
32071 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
32074 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
32076 Call Check with Process_Languages.
32077 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
32078 with Process_Languages.
32079 (Recursive_Check): New Boolean parameter Process_Languages. Call
32080 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
32083 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
32085 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
32086 parameter Ada_Main, defaulted to True.
32087 Check for Ada specific characteristics only when Ada_Main is True.
32089 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
32091 * prj.adb: (Project_Empty): Add new Project_Data components.
32093 * prj.ads: New types and tables for non Ada languages.
32094 (Project_Data): New components Languages, Impl_Suffixes,
32095 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
32096 Include_Path, Include_Data_Set.
32098 * prj-env.ads, prj-env.adb: Minor reformatting
32100 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
32101 Put subprograms in alphabetical order
32103 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
32104 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
32107 * mlib-prj.adb: Back out modification in last version, as they are
32109 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
32111 * make.adb: (Mains): Moved to package Makeutl
32112 (Linker_Opts): Moved to package Makeutl
32113 (Is_External_Assignment): Moved to package Makeutl
32114 (Test_If_Relative_Path): Moved to package Makeutl
32115 (Gnatmake): Move sorting of linker options to function
32116 Makeutl.Linker_Options_Switches.
32118 * makeutl.ads, makeutl.adb: New files.
32120 * Makefile.in: Add makeutl.o to the object files for gnatmake
32122 * makeusg.adb: Add line for new switch -eL.
32124 * gnatls.adb (Image): New function.
32125 (Output_Unit): If in verbose mode, output the list of restrictions
32126 specified by pragmas Restrictions.
32128 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
32131 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
32132 needed, to put it in the range 1970 (included) - 2026 (excluded).
32133 (Time_Of): Do not shift Unix_Min_Year (1970).
32134 Shift the date by multiple of 56 years, if needed, to put it in the
32135 range 1970 (included) - 2026 (excluded).
32137 * adaint.h, adaint.c (__gnat_set_executable): New function.
32139 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32141 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
32142 and pop GC context.
32143 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
32144 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
32145 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
32146 (tree_transform, case N_Code_Statement): Likewise.
32147 (gnat_expand_stmt, case LABEL_STMT): Don't look at
32148 LABEL_STMT_FIRST_IN_EH.
32149 (gnat_expand_stmt, case ASM_STMT): New case.
32151 * utils2.c (build_unary_op): Properly set TREE_READONLY of
32152 UNCONSTRAINED_ARRAY_REF.
32154 * utils.c (poplevel): Temporarily push/pop GC context around inline
32155 function expansion.
32157 * decl.c (maybe_variable): Properly set TREE_READONLY of
32158 UNCONSTRAINED_ARRAY_REF.
32159 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
32161 * ada-tree.def: (ASM_STMT): New.
32163 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
32164 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
32165 ASM_STMT_INPUT): New.
32166 (ASM_STMT_CLOBBER): Likewise.
32168 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
32170 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
32171 general rcheck mechanism to raise Program_Error for E.4(18), instead
32172 of a custom raiser in System.Partition_Interface.
32173 Part of general cleanup work before PolyORB integration.
32175 * snames.ads, snames.adb: Add new runtime library entities and names
32178 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32180 (Build_Subprogram_Id): New subprogram provided by exp_dist
32181 Code reorganisation in preparation for PolyORB integration.
32183 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32185 (Build_Subprogram_Id): New subprogram provided by exp_dist
32187 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
32188 actual parameter types for call to dereference of an
32189 access-to-subprogram type.
32191 * rtsfind.ads: Add new runtime library entities and names for PolyORB
32194 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
32195 instead, which has the same behaviour here since we never pass it a
32198 * link.c (run_path_option, Solaris case): Use -Wl, as for other
32201 * Makefile.in: adjust object file lists for gnatlink and gnatmake
32202 to account for new dependency upon Interfaces.C.Strings + link.o
32203 For x86 FreeBSD, use 86numaux.
32205 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
32206 from Mlib.Tgt to Mlib.
32208 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
32209 target-independent.
32211 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
32212 target-specific versions of this subprogram, now implemented as a
32213 target-independent function in Mlib.
32215 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
32216 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
32217 (Linker_Library_Path_Option): Remove target-specific versions of this
32218 subprogram, now implemented as a target-independent function in Mlib.
32220 * atree.adb: (Allocate_Initialize_Node): New subprogram.
32221 Factors out node table slots allocation.
32222 (Fix_Parents): New subprogram.
32223 Encapsulate the pattern of fixing up parent pointers for syntactic
32224 children of a rewritten node.
32225 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
32226 (Rewrite): Use New_Copy when creating saved copy of original node.
32227 (Replace): Use Copy_Node to copy nodes.
32229 2004-04-19 Javier Miranda <miranda@gnat.com>
32231 * sprint.adb (Sprint_Node_Actual): Give support to the new
32232 Access_To_Subprogram node available in Access_Definition nodes. In
32233 addition, give support to the AI-231 node fields: null-exclusion,
32234 all-present, constant-present.
32236 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
32238 * sinfo.ads, sinfo.adb:
32239 New field Access_To_Subprogram_Definition in Access_Definition nodes
32241 * sem_ch6.adb (Process_Formals): Move here the code that creates and
32242 decorates internal subtype declaration corresponding to the
32243 null-excluding formal. This code was previously in Set_Actual_Subtypes.
32244 In addition, carry out some code cleanup on this code. In case of
32245 access to protected subprogram call
32246 Replace_Anonymous_Access_To_Protected_Subprogram.
32247 (Set_Actual_Subtypes): Code cleanup.
32249 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
32250 Find_Type in case of anonymous access renamings. Add warning in case of
32251 null-excluding attribute used in anonymous access renaming.
32253 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
32256 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
32258 (Access_Definition): In case of anonymous access to subprograms call
32259 the corresponding semantic routine to decorate the node.
32260 (Access_Subprogram_Declaration): Addition of some comments indicating
32261 some code that probably should be added here. Detected by comparison
32262 with the access_definition subprogram.
32263 (Analyze_Component_Declaration): In case of access to protected
32264 subprogram call Replace_Anonymous_Access_To_Protected.
32265 (Array_Type_Declaration): In case of access to protected subprogram call
32266 Replace_Anonymous_Access_To_Protected_Subprogram.
32267 (Process_Discriminants): In case of access to protected subprogram call
32268 Replace_Anonymous_Access_To_Protected_Subprogram.
32270 * par.adb (P_Access_Definition): New formal that indicates if the
32271 null-exclusion part was present.
32272 (P_Access_Type_Definition): New formal that indicates if the caller has
32273 already parsed the null-excluding part.
32275 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
32276 (P_Identifier_Declarations): Code cleanup and give support to renamings
32277 of anonymous access to subprogram types.
32278 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
32279 (P_Array_Type_Definition): Give support to AI-254.
32280 (P_Component_Items): Give support to AI-254.
32281 (P_Access_Definition): New formal that indicates if the header was
32282 already parsed by the caller.
32283 (P_Access_Type_Definition): New formal that indicates if the caller has
32284 already parsed the null-excluding part.
32286 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
32287 call to P_Access_Definition.
32289 2004-04-19 Geert Bosch <bosch@gnat.com>
32291 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
32292 the delicate semantics of floating-point to integer conversion.
32293 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
32295 * eval_fat.adb (Machine_Mantissa): Moved to spec.
32296 (Machine_Radix): New function.
32298 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
32300 (Machine_Radix): New function also for use in conversion checks.
32302 2004-04-19 Ed Schonberg <schonberg@gnat.com>
32304 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
32306 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
32307 to decorate the access-to-protected subprogram and the equivalent type.
32309 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
32310 to anonymous access to subprogram types.
32312 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
32313 constant-folding, for legality checks in contexts that require an RM
32316 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
32317 temporary but stack checking is not enabled, increment serial number
32318 to so that symbol generation is consistent with and without stack
32321 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
32322 independent on whether stack checking is enabled, caller must check
32323 the corresponding flag.
32325 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
32327 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
32328 parent if it has discriminants.
32329 (Build_Derived_Private_Type): Constructed full view does
32330 not come from source.
32331 (Process_Discriminants): Default discriminants on a tagged type are
32332 legal if this is the internal completion of a private untagged
32335 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
32336 no constraint checks, because it corresponds to an existing object.
32338 * sem_prag.adb (Process_Convention): Pragma applies
32339 only to subprograms in the same declarative part, i.e. the same unit,
32340 not the same scope.
32342 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
32343 ignore type mismatch on a numeric conversion if expression comes from
32346 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
32348 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
32349 Homonym_Number parameter, add processing for Source_Location parameter
32351 (Check_Eliminated): Remove the check for homonym numbers, add the check
32352 for source location traces.
32354 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
32355 with Arg_Source_Location corresponding to the changes in the format of
32358 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
32359 Eliminate pragma corresponding to the changes in the format of the
32360 pragma: Homonym_Number is replaced with Source_Location, two ways of
32361 distinguishing homonyms are mutially-exclusive.
32363 2004-04-19 Joel Brobecker <brobecker@gnat.com>
32365 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
32367 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
32368 No_Dollar_In_Label, no longer necessary, as it is always True.
32369 (Strip_Suffixes): Likewise.
32371 2004-04-19 Gary Dismukes <dismukes@gnat.com>
32373 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
32374 modulus for compatibility with size clause on targets with 16-bit
32377 * layout.adb (Discrimify): In the case of private types, set Vtyp to
32378 full type to fix type mismatches on calls to size functions for
32379 discriminant-dependent array components.
32381 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
32383 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
32386 2004-04-19 Pascal Obry <obry@gnat.com>
32388 * mdll-utl.adb (Locate): New version is idempotent.
32390 2004-04-17 Laurent Guerby <laurent@guerby.net>
32392 PR ada/14988 (partial)
32393 * impunit.adb: Fix typo.
32395 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
32397 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
32398 and install-rts-cert targets. Remove all gnatlib and gnattools
32399 targets and all other rts-* targets (moved to libada). Remove (now)
32400 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
32401 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
32403 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32405 * trans.c (tree_transform): Shortcut returning error_mark_node for
32406 statements in annotate_only_mode.
32407 (tree_transform, case N_Label, case N_Return_Statement,
32408 N_Goto_Statement): Make statement tree instead of generating code.
32409 (tree_transform, case N_Assignment_Statement): No longer check
32410 type_annotate_only.
32411 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
32413 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
32415 (gnat_to_gnu): Collect any RTL generated and deal with it.
32416 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
32417 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
32418 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
32420 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
32422 * ada-tree.def (EXPR_STMT): Fix typo in name.
32423 (BLOCK_STMT, IF_STMT): New nodes.
32425 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
32426 LABEL_STMT_FIRST_IN_EH): New macros.
32427 (RETURN_STMT_EXPR): Likewise.
32429 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
32430 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
32432 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
32434 * atree.ads: Correct documentation on extended nodes.
32436 * link.c: Set run_path_option for FreeBSD.
32438 2004-04-08 Vincent Celier <celier@gnat.com>
32440 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
32441 one of the ALI file, do not link with DEC lib.
32443 * par.adb Remove the last two characters ("%s" or "%b") when checking
32444 if a language defined unit may be recompiled.
32446 2004-04-08 Ed Schonberg <schonberg@gnat.com>
32448 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
32449 removal of abstract operation leaves no possible interpretation for
32452 * sem_eval.adb (Eval_Qualified_Expression): Use
32453 Set_Raises_Constraint_Error on node when needed, so that it does not
32454 get optimized away by subsequent optimizations.
32456 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
32457 operands even when they are not wrapped in a type conversion.
32459 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
32461 * sem_prag.adb (Set_Exported): Warn about making static as result of
32462 export only when the export is coming from source. This may be not
32463 be true e.g. on VMS where we expand export pragmas for exception codes
32464 together with imported or exported exceptions, and we don't want the
32465 user to be warned about something he didn't write.
32467 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
32469 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
32470 duplication between normal entities and those declared as renamings.
32471 No functional change.
32473 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
32474 inline functions returning an unconstrained result.
32476 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
32478 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
32479 conform to what other front-ends do.
32481 2004-04-08 Doug Rupp <rupp@gnat.com>
32483 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
32486 2004-04-06 Pascal Obry <obry@gnat.com>
32488 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
32490 * osint.adb (Program_Name): Do not look past a directory separator.
32492 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
32494 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
32496 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
32497 requirement for preserving a copy of the original assignment node.
32499 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
32501 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
32503 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
32506 2004-04-06 Ed Schonberg <schonberg@gnat.com>
32508 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
32509 operator calls in functional notation, and apply
32510 Universal_Interpretation to operands, not to their type.
32512 2004-04-06 Robert Dewar <dewar@gnat.com>
32514 * 5wdirval.adb: Minor reformatting
32516 2004-04-06 Ed Falis <falis@gnat.com>
32518 * gnat_rm.texi: Improve a reference to the GCC manual
32520 2004-04-05 Vincent Celier <celier@gnat.com>
32522 * adaint.h, adaint.c: Add function __gnat_named_file_length
32524 * impunit.adb: Add Ada.Directories to the list
32526 * Makefile.in: Add VMS and Windows versions of
32527 Ada.Directories.Validity package body.
32529 * Makefile.rtl: Add a-direct and a-dirval
32531 * mlib-tgt.ads: Minor comment update.
32533 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
32534 a-direct.ads, a-direct.adb: New files.
32536 2004-04-05 Vincent Celier <celier@gnat.com>
32539 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
32540 just to the compiler.
32542 2004-04-05 Robert Dewar <dewar@gnat.com>
32544 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
32545 returned string is 1.
32547 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
32549 * eval_fat.ads: Minor reformatting
32551 * g-curexc.ads: Document that lower bound of returned string values
32554 * gnatlink.adb: Add ??? comment for previous change
32555 (need to document why this is VMS specific)
32557 * s-stoele.ads: Minor reformatting
32559 * tbuild.ads: Minor reformatting throughout (new function specs)
32561 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
32564 * scng.adb: Minor reformatting
32566 2004-04-05 Geert Bosch <bosch@gnat.com>
32568 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
32569 (Leading_Part): Still perform truncation to machine number if the
32570 specified radix_digits is greater or equal to machine_mantissa.
32572 2004-04-05 Javier Miranda <miranda@gnat.com>
32574 * par-ch3.adb: Complete documentation of previous change
32575 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
32576 (aliased must appear before constant).
32578 * par-ch4.adb: Complete documentation of previous change.
32580 * par-ch6.adb: Complete documentation of previous change.
32582 * sinfo.ads: Fix typo in commment.
32584 2004-04-05 Ed Schonberg <schonberg@gnat.com>
32586 * sem_ch3.adb (Inherit_Components): If derived type is private and has
32587 stored discriminants, use its discriminants to constrain parent type,
32588 as is done for non-private derived record types.
32590 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
32591 Ada 2005 AI-310: an abstract non-dispatching operation is not a
32592 candidate interpretation in an overloaded call.
32594 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
32595 expression is Null and target type is not an access type (e.g. a
32596 non-private address type).
32598 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
32600 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
32601 statement whose right-hand side is an inlined call, save a copy of the
32602 original assignment subtree to preserve enough consistency for
32603 Analyze_Assignment to proceed.
32605 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
32606 complete assignment subtree which is now unnecessary, as the expansion
32607 of inlined call has been improved to preserve a consistent assignment
32608 tree. Note_Possible_Modification must be called only
32609 after checks have been applied, or else unnecessary checks will
32612 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
32613 of explicit dereferences that do not Come_From_Source:
32614 - be selective on cases where we must go back to the dereferenced
32615 pointer (an assignment to an implicit dereference must not be
32616 recorded as modifying the pointer);
32617 - do not rely on Original_Node being present (Analyze_Assignment
32618 calls Note_Possible_Modification on a copied tree).
32620 * sem_warn.adb (Check_References): When an unset reference to a pointer
32621 that is never assigned is encountered, prefer '<pointer> may be null'
32622 warning over '<pointer> is never assigned a value'.
32624 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
32626 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
32629 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
32631 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
32632 libexc. We currently don't reference anything in this library and
32633 linking it in triggers linker warnings we don't want to see.
32635 * init.c: Update comments.
32637 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32639 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
32640 * utils.c (create_field_decl): Likewise.
32641 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
32643 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
32645 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
32646 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
32647 Add info directory entry and category.
32649 2004-04-02 Jan Hubicka <jh@suse.cz>
32651 * utils.c: Include function.h
32652 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
32654 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
32657 * Make-lang.in: Clean up generation of documentation
32659 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
32661 * xgnatug.adb: Removed, replaced by xgnatugn.adb
32663 * xgnatugn.adb: Replaces xgnatug.adb
32665 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
32667 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
32669 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32670 gnat_ug_wnt.texi: Removed.
32672 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
32674 * utils2.c: Update copyright notice.
32676 2004-04-01 Robert Dewar <dewar@gnat.com>
32678 * checks.adb: Minor reformatting throughout
32679 Note that prev checkin added RM reference to alignment warning
32681 2004-04-01 Ed Schonberg <schonberg@gnat.com>
32683 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
32684 non-static when building aggregate for bit-packed array.
32686 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
32687 function call that is itself the actual in a procedure call, build
32690 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
32691 a string literal, create a temporary for it, constant folding only
32692 handles scalars here.
32694 2004-04-01 Vincent Celier <celier@gnat.com>
32696 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
32697 Error_Msg_SP): New empty procedures to instantiate the Scanner.
32698 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
32700 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
32701 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
32702 and get the checksum.
32704 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
32706 Increase the Marking_Label at the end of the Multiple_Main_Loop,
32707 instead of at the beginning.
32709 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
32711 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
32714 * osint.ads (Multi_Unit_Index_Character): New Character global variable
32716 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
32719 * par.adb: Remove test on file name to detect language defined units.
32720 Add test on unit name, after parsing, to detect language defined units
32721 that are not compiled with -gnatg (except System.RPC and its children)
32723 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
32724 following units without style checking.
32726 * switch-c.adb: Change -gnatC to -gnateI
32728 * usage.adb: Document new switch -gnateInnn
32730 * scng.adb (Accumulate_Token_Checksum): New procedure
32731 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
32732 word or literal number.
32733 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
32736 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
32739 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
32740 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
32741 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
32742 5vtpopde.adb: Add missing 'constant' keywords.
32744 2004-04-01 Javier Miranda <miranda@gnat.com>
32746 * par-ch4.adb: (P_Allocator): Code cleanup
32748 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
32751 * sinfo.ads: Complete documentation of previous change
32753 2004-04-01 Pascal Obry <obry@gnat.com>
32755 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
32756 only on VMS. This special handling was done because an old GNU/ld bug
32757 on Windows which has been fixed.
32759 2004-04-01 GNAT Script <nobody@gnat.com>
32761 * Make-lang.in: Makefile automatically updated
32763 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32765 * decl.c (gnat_to_gnu_entity, make_type_from_size):
32766 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
32767 * trans.c (tree_transform, convert_with_check): Likewise.
32768 * utils.c (gnat_signed_or_unsigned_type): Likewise.
32769 (build_vms_descriptor, unchecked_convert): Likewise.
32770 * utils2.c (nonbinary_modular_operation): Likewise.
32772 2004-03-29 Javier Miranda <miranda@gnat.com>
32774 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
32775 (Install_Null_Excluding_Check): Local subprogram that determines whether
32776 an access node requires a runtime access check and if so inserts the
32777 appropriate run-time check.
32778 (Apply_Access_Check): Call Install_Null_Excluding check if required
32779 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
32781 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
32783 * einfo.ads: Fix typo in comment
32785 * exp_ch3.adb (Build_Assignment): Generate conversion to the
32786 null-excluding type to force the corresponding run-time check.
32787 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
32788 type to force the corresponding run-time check.
32790 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
32791 the null-excluding type to force the corresponding run-time check.
32793 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
32794 case of access types unless they have the null-excluding attribute.
32796 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
32799 * exp_util.ads: Fix typo in comment
32801 * par.adb (P_Null_Exclusion): New subprogram
32802 (P_Subtype_Indication): New formal that indicates if the null-excluding
32803 part has been scanned-out and it was present
32805 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
32807 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
32808 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
32809 type to force the corresponding run-time check
32810 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
32812 (Resolve_Array_Aggregate): Carry out some static checks
32813 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
32815 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
32816 attribute must be set only if specified by means of the null-excluding
32817 part. In addition, we must also propagate the access-constant attribute
32819 (Access_Subprogram_Declaration, Access_Type_Declaration,
32820 Analyze_Component_Declaration, Analyze_Object_Declaration,
32821 Array_Type_Declaration, Process_Discriminants,
32822 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
32823 and carry out some static checks.
32824 (Build_Derived_Access_Type): Set the null-excluding attribute
32825 (Derived_Type_Declaration, Process_Subtype): Carry out some static
32828 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
32830 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
32832 * sem_ch6.adb (Process_Formals): Carry out some static checks.
32833 (Set_Actual_Subtypes): Generate null-excluding subtype if the
32834 null-excluding part was present; it is not required to be done here in
32835 case of anonymous access types.
32836 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
32839 * sem_res.adb (Resolve_Actuals): Carry out some static check
32840 (Resolve_Null): Allow null in anonymous access
32842 * sinfo.adb: New subprogram Null_Exclusion_Present
32843 All_Present and Constant_Present available on access_definition nodes
32845 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
32846 object_declaration, derived_type_definition, component_definition,
32847 discriminant_specification, access_to_object_definition,
32848 access_function_definition, allocator, access_procedure_definition,
32849 access_definition, parameter_specification, All_Present and
32850 Constant_Present flags available on access_definition nodes.
32852 2004-03-29 Robert Dewar <dewar@gnat.com>
32854 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
32855 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
32856 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
32857 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
32858 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
32859 sem_prag.adb: Updates to handle multiple units/file
32861 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
32863 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
32864 sem_util.adb: Minor reformatting
32866 * sem_ch12.adb: Add comment for previous change
32868 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
32870 * osint.adb (Executable_Prefix): Set Exec_Name to the current
32871 executable name when not initialized. Otherwise, use its current value.
32873 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
32874 initialize it to another executable name than the current one. This
32875 allows to configure paths for an executable name (gnatmake) different
32876 from the current one (gnatdist).
32878 2004-03-29 Ed Schonberg <schonberg@gnat.com>
32880 * exp_ch6.adb (Expand_Call): A call to a function declared in the
32881 current unit cannot be inlined if it appears in the body of a withed
32882 unit, to avoid order of elaboration problems in gigi.
32884 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
32885 information for protected (wrapper) operation as well, to simplify gdb
32888 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
32889 protected body, indicate that the entity for the generated spec comes
32890 from source, to ensure that references are properly generated for it.
32891 (Build_Body_To_Inline): Do not inline a function that returns a
32894 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
32895 apply convention to homonyms that are declared explicitly.
32897 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
32898 that renames an equality operator and the operands are overloaded,
32899 resolve them with the declared formal types, before rewriting as an
32902 2004-03-29 GNAT Script <nobody@gnat.com>
32904 * Make-lang.in: Makefile automatically updated
32906 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32908 * memtrack.adb: Log realloc calls, which are treated as free followed
32911 2004-03-25 Vincent Celier <celier@gnat.com>
32913 * prj-makr.adb (Process_Directories): Detect when a file contains
32914 several units. Do not include such files in the config pragmas or
32915 in the naming scheme.
32917 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
32918 Resolve links only when not in Trusted_Mode.
32919 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
32920 Do not resolve links for the display names.
32922 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
32923 resolve links when computing the display names.
32925 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
32927 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
32928 attribute reference does not denote a subtype, it can be any
32929 expression that has a classwide type, potentially after an implicit
32930 dereference. In particular, the prefix can be a view conversion for
32931 a classwide type (for which Is_Object_Reference holds), but it can
32932 also be a value conversion for an access-to-classwide type. In the
32933 latter case, there is an implicit dereference, and the original node
32934 for the prefix does not verify Is_Object_Reference.
32936 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
32937 conversion of a discriminant-dependent component of a mutable object
32940 2004-03-25 Ed Schonberg <schonberg@gnat.com>
32942 * freeze.adb (Freeze_Entity): When an inherited subprogram is
32943 inherited, has convention C, and has unconstrained array parameters,
32944 place the corresponding warning on the derived type declaration rather
32945 than the original subprogram.
32947 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
32948 indication on renaming declaration, if formal has a box and actual
32951 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
32952 determine whether to generate an implicit or explicit reference to
32953 the renamed entity.
32955 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
32956 subprogram renaming comes from a defaulted formal subprogram in an
32959 2004-03-25 Gary Dismukes <dismukes@gnat.com>
32961 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
32962 value expressions to ensure that calls within a component definition
32963 will be checked (since those are evaluated during the record type's
32966 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
32968 * s-tpobop.adb: Code clean up:
32969 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
32971 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
32973 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
32975 * Makefile.in: Clean up in the ravenscar run time.
32977 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32979 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
32980 of No_Strict_Aliasing to build_pointer_type_for_mode.
32981 * utils.c (update_pointer_to): Walk pointer and ref chains.
32983 2004-03-22 Cyrille Comar <comar@act-europe.fr>
32985 * ali.ads: Fix Comment about Dynamic_Elab.
32987 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
32988 Has_RACW, Is_Generic, etc.)
32989 (Output_Object, Gnatls): Take into account ALI files not attached to
32992 2004-03-22 Vincent Celier <celier@gnat.com>
32994 * gprep.adb: Change all String_Access to Name_Id
32995 (Is_ASCII_Letter): new function
32996 (Double_File_Name_Buffer): New procedure
32997 (Preprocess_Infile_Name): New procedure
32998 (Process_Files): New procedure
32999 (Gnatprep): Check if output and input are existing directories.
33000 Call Process_Files to do the real job.
33002 2004-03-22 Robert Dewar <dewar@gnat.com>
33004 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
33005 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
33007 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
33009 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
33010 case when the source contains only comments.
33012 2004-03-22 Ed Schonberg <schonberg@gnat.com>
33014 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
33015 declaration for a child subprogram body that acts as a spec, indicate
33016 that the entity in the declaration needs debugging information.
33018 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
33019 full view if the subtype is created for a constrained record component;
33020 gigi has enough information to construct the record, and there is no
33021 place in the tree for the declaration.
33023 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
33024 serial number for the dummy body that is built for analysis, to avoid
33025 inconsistencies in the generation of internal names when compiling
33028 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
33030 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
33033 2004-03-22 GNAT Script <nobody@gnat.com>
33035 * Make-lang.in: Makefile automatically updated
33037 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33039 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
33040 * trans.c (tree_transform, emit_index_check): Likewise.
33041 * utils.c (build_template): Likewise.
33042 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
33043 (maybe_unconstrained_array, unchecked_convert): Likewise.
33044 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
33045 (build_unary_op): Likewise.
33046 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
33047 (fill_vms_descriptor): Likewise.
33048 (build_call_alloc_dealloc): Likewise.
33050 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
33052 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
33055 * gnat_ug.texi: Add info directory category and entry.
33056 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33057 gnat_ug_wnt.texi: Regenerate.
33059 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
33061 * ada-tree.h: Update copyright notice.
33062 Minor reformatting.
33064 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
33066 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
33067 as regular exception objects and not as mere integers representing the
33068 condition code. The latter approach required some dynamics to mask off
33069 severity bits, which did not fit well into the GCC table based model.
33070 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
33071 exception data objects. We don't it and it would conflict with the other
33072 external symbol we have to generate for such exceptions.
33074 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
33075 the special code for VMS exceptions, since these are now represented
33076 as regular exceptions objects.
33078 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33080 * decl.c (debug_no_type_hash): Remove.
33081 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
33082 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
33084 2004-03-19 Laurent Guerby <laurent@guerby.net>
33086 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
33087 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
33089 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33091 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
33092 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
33093 (TYPE_RM_SIZE_INT): Directly use type.values.
33094 (TREE_LOOP_ID): Clean up check.
33095 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
33096 TYPE_VALUES, not TYPE_FIELDS.
33097 * trans.c (convert_with_check): Delay access of bounds of basetype
33098 until sure is numeric.
33100 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
33102 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
33105 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
33106 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
33107 Specific.Set instead of direct call to e.g pthread_setspecific.
33109 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
33111 * adaint.c: Update comments.
33113 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
33114 GNATLIB_SHARED for FreeBSD.
33116 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
33118 * init.c [VxWorks]: Do not fix the stack size for the environment task.
33119 When needed (stack checking) the stack size is retrieved
33120 from the VxWorks kernel.
33122 * Makefile.in: Flag -nostdinc is required when building the run time
33123 for avoiding looking for files in the base compiler.
33124 Add the VxWorks specific version of the package body for
33125 System.Stack_checking.Operations (5zstchop.adb).
33127 * Make-lang.in: Add the object file for
33128 System.Stack_Checking.Operations.
33130 * Makefile.rtl: Add object file for the package
33131 System.Stack_Checking.Operations.
33133 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
33135 * s-stache.ads, s-stache.adb: Move the operations related to stack
33136 checking from this package to package System.Stack_Checking.Operations.
33137 This way, stack checking operations are only linked in the final
33138 executable when using the -fstack-check flag.
33140 2004-03-18 Doug Rupp <rupp@gnat.com>
33142 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
33145 * 5qsystem.ads, 5xcrtl.ads: New files.
33147 2004-03-18 Vincent Celier <celier@gnat.com>
33149 * prj.adb (Reset): Reset hash table Files_Htable
33151 * prj-env.adb (Source_Paths, Object_Paths): New tables.
33152 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
33153 the procedures Add_To_Path_File.
33154 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
33155 making sure that each directory is present only once and, for object
33156 dirs, when a directory already present is added, the duplicate is
33157 removed and the directory is always put as the last in the table.
33158 Write the path files at the end of these accumulations.
33160 * prj-nmsc.adb (Record_Source): Add source file name in hash table
33161 Files_Htable for all sources.
33163 * prj-proc.adb (Process): Remove restrictions between not directly
33164 related extending projects.
33166 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
33168 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
33169 (Find_Sources): Minor speed optimization.
33171 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
33172 parameter Trusted_Mode.
33174 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
33176 * scn.adb (Determine_License): Take into account a degenerated case
33177 when the source contains only comments.
33179 2004-03-18 Ed Schonberg <schonberg@gnat.com>
33181 * sem_warn.adb (Check_References): For a warning on a selected
33182 component that does not come from source, locate an uninitialized
33183 component of the record type to produce a more precise error message.
33185 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
33187 * 3zsoccon.ads: Fix multicast options.
33189 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
33192 2004-03-15 Robert Dewar <dewar@gnat.com>
33194 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
33195 pragma used for a private type.
33197 * lib-xref.adb (Generate_Reference): Do not generate warning if
33198 reference is in a different unit from the pragma Unreferenced.
33200 * 5vtpopde.adb: Minor reformatting
33201 Fix casing of To_Task_ID
33203 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
33204 flag if we have an unchecked conversion to an access type in the same
33207 2004-03-15 Geert Bosch <bosch@gnat.com>
33209 * a-ngcoty.adb (Modulus): In alternate formula for large real or
33210 imaginary parts, use Double precision throughout.
33212 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
33213 we want to be able to compile run-time with -gnata for testing, but
33214 this may also be instantiated in user code that is compiled with -gnata.
33216 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
33218 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
33219 codes. Having a separate type for this is useful to enforce consistency
33220 throughout the various run-time units.
33221 (Exception_Data): Use Exception_Code for Import_Code.
33223 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
33224 Natural and Integer in various places.
33225 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
33226 with the severity bits masked off.
33227 (Register_VMS_Exception): Handle the additional exception data pointer
33230 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
33231 component, now reflected by an exported accessor.
33232 (is_handled_by): New routine to compute whether the propagated
33233 occurrence matches some handler choice specification. Extracted out of
33234 get_action_description_for, and expanded to take care of the VMS
33236 (get_action_description_for): Use is_handled_by instead of an explicit
33237 complex condition to decide if the current choice at hand catches the
33238 propagated occurrence.
33240 * raise.h (Exception_Code): New type for C.
33242 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
33243 System.Standard_Library.Exception_Code, to allow references from the
33244 pragma import/export expander.
33246 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
33247 New accessors to allow easy access to GNAT exception data
33249 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
33250 redundant Handled_By_Others component, helper for the personality
33251 routine which will now be able to call the appropriate exception data
33254 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
33255 component of Standard_Exception_Type to be the closest possible to
33256 Exception_Code in System.Standard_Library, that we cannot get at this
33257 point. Expand a ??? comment to notify that this type node should
33258 probably be rewritten later on.
33260 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
33261 registration call to include a pointer to the exception object in the
33264 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
33265 instead of int and explicit bitmasks.
33267 2004-03-15 Vincent Celier <celier@gnat.com>
33269 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
33270 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
33272 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
33273 longer needed now that it is in the spec of
33274 System.Tasking.Task_Attributes.
33276 * adaint.h, adaint.c: (__gnat_create_output_file): New function
33278 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
33280 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
33282 * make.adb (Gnatmake): Do not check the executable suffix; it is being
33283 taken care of in Scan_Make_Arg.
33284 (Scan_Make_Arg): Add the executable suffix only if the argument
33285 following -o, in canonical case, does not end with the executable
33286 suffix. When in verbose mode and executable file name does not end
33287 with executable suffix, output the executable name, in canonical case.
33289 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
33290 to avoid warnings when instantiating Ada.Task_Attributes.
33293 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
33294 in the correct order.
33296 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
33297 redirect standard output and error to a file for the invocation of the
33298 compiler, then read the file.
33300 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
33301 directory, instead of the Value.
33302 (Find_Source_Dirs): Remove useless code & comments.
33304 2004-03-15 Ed Schonberg <schonberg@gnat.com>
33306 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
33307 tagged type is inherited, and the parent operation is not frozen yet,
33308 force generation of a freeze node for the inherited operation, so the
33309 corresponding dispatch entry is properly initialized.
33310 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
33311 when looking for user-defined equality operation.
33313 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
33314 boolean when locating primitive equality of tagged component.
33316 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
33317 bit-aligned field and the right-hand side a string literal, introduce
33318 a temporary before expanding assignment into a loop.
33320 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
33321 priority in full, to ensure that any expanded subepxressions of it are
33322 elaborated in the scope of the init_proc.
33324 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
33325 after object declaration, skipping over code that may have been
33326 generated for validity checks.
33328 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
33329 discriminants, ignore the known discriminants of its full view, if
33330 any, to check legality.
33332 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
33333 component if type has unknown discriminants.
33334 (Analyze_Private_Extension_Declaration): Discriminant constraint is
33335 null if type has unknown discriminants.
33337 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
33338 for end label when present.
33340 * s-fileio.adb (Open): When called with a C_Stream, use given name for
33341 temporary file, rather than an empty string.
33343 2004-03-15 Ed Falis <falis@gnat.com>
33345 * s-thread.adb: Removed, no longer used.
33347 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33349 * decl.c (target.h): Now include.
33350 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
33351 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
33352 (validate_size): For POINTER_TYPE, get smallest size permitted on
33355 * fe.h: Sort Einfo decls and add Set_Mechanism.
33357 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
33358 (ada/decl.o): Depends on target.h.
33360 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
33361 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
33363 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
33365 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
33367 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
33368 Insert_Dereference_Action when rewriting an implicit dereference into
33369 an explicit one, this will be taken care of during expansion of the
33370 explicit dereference.
33371 (Expand_N_Slice): Same. Always do the rewriting, even for the case
33372 of non-packed slices, since the dereference action generated by
33373 expansion of the explicit dereference is needed in any case.
33374 (Expand_N_Selected_Component): When rewriting an implicit dereference,
33375 analyze and resolve the rewritten explicit dereference so it is seen
33377 (Insert_Dereference_Action): This procedure is now called only for the
33378 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
33379 dereferences that do not come from source (including explicit
33380 dereferences resulting from rewriting implicit ones), but do not
33381 recursively insert a check for the dereference nodes contained within
33383 (Insert_Dereference_Action): Clarify and correct comment.
33385 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
33388 Move language detection to the top level.
33389 * config-lang.in: Build by default.
33391 2004-03-05 Robert Dewar <dewar@gnat.com>
33393 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
33395 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
33396 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
33397 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
33398 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
33399 unchecked conversion to spec to avoid warnings.
33401 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
33404 * 7stpopsp.adb: Correct casing in To_Task_ID call
33406 * a-strsea.ads, a-strsea.adb: Minor reformatting
33408 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
33410 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
33411 Adjust Max_Msg_Length to be clearly large enough.
33413 * fe.h: Define In_Same_Source_Unit
33415 * osint.adb: Add pragma Warnings Off to suppress warnings
33416 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
33419 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
33421 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
33423 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
33425 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
33427 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
33429 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
33430 node. We now do generate them for gcc back end.
33432 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
33435 * sinput-c.adb: Fix bad name in header.
33436 Add pragma Warnings Off to suppress aliasing warning.
33438 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
33440 * snames.h, snames.ads, snames.adb: Add entry for pragma
33441 No_Strict_Aliasing.
33443 2004-03-05 Vincent Celier <celier@gnat.com>
33445 * prj-com.ads: Add hash table Files_Htable to check when a file name
33446 is already a source of another project.
33448 * prj-nmsc.adb (Record_Source): Before recording a new source, check
33449 if its file name is not already a source of another project. Report an
33452 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
33453 source file name, call gnatpp with all the sources of the main project.
33455 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
33458 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
33459 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
33460 /RUNTIME_SYSTEM=, converted to --RTS=
33461 /NOTABS, converted to -notabs
33463 2004-03-05 Pascal Obry <obry@gnat.com>
33465 * make.adb: Minor reformatting.
33467 2004-03-05 Ed Schonberg <schonberg@gnat.com>
33469 Part of implemention of AI-262.
33470 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
33472 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
33475 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
33476 when component type is a partially constrained class-wide subtype.
33477 (Constrain_Discriminated_Type): If parent type has unknown
33478 discriminants, a constraint is illegal, even if full view has
33480 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
33481 with unknown discriminants whose full view is a discriminated record.
33483 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
33484 flag, to handle properly derivations of tagged types with unknown
33486 (Analyze_Package_Spec, Analyze_Package_Body): Install
33487 Private_With_Clauses before analyzing private part or body.
33489 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
33490 Has_Discriminants can be true for a given type (documentation).
33492 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
33494 * s-restri.ads: Fix license (GPL->GMGPL).
33496 * s-tassta.adb: Minor reformatting.
33498 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33499 by calls to Exit_One_ATC_Level, since additional clean up is performed
33502 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
33503 by calls to Exit_One_ATC_Level, since additional clean up is performed
33506 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33508 * trans.c: Reflect GCC changes to fix bootstrap problem.
33509 Add warning for suspicious aliasing unchecked conversion.
33511 2004-03-05 GNAT Script <nobody@gnat.com>
33513 * Make-lang.in: Makefile automatically updated
33515 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
33517 * ali.adb (Read_Instantiation_Instance): Do not modify the
33518 current_file_num when reading information about instantiations, since
33519 this corrupts files in later references.
33521 2004-03-02 Vincent Celier <celier@gnat.com>
33523 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
33524 before checking if it is read-only.
33526 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
33527 of SRC_DIRS and eliminate duplicates.
33529 * gprcmd.adb: Replace command "path" with command "path_sep" to return
33530 the path separator.
33531 (Usage): Document path_sep
33533 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
33534 C++ compiler. No need for a script.
33535 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
33536 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
33539 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
33540 where there are Ada sources.
33541 (Set_Ada_Paths): Only add to the include path the source dirs of project
33543 (Add_To_Path): Add the Display_Values of the directories, not their
33546 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
33549 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
33551 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
33552 Value is canonicalized.
33553 (Language_Independent_Check): Do not copy Value to Display_Value when
33554 canonicalizing Value.
33556 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
33557 path to find limited with cycles.
33558 (Parse_Single_Project): Use canonical cased path to find the end of a
33561 2004-03-02 Ed Schonberg <schonberg@gnat.com>
33563 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
33564 and not a child unit.
33566 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
33567 appear in a with_clause.
33569 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
33570 only happen in type_annotate mode, do not try to elaborate it.
33572 * exp_util.adb (Force_Evaluation): If expression is a selected
33573 component on the left of an assignment, use a renaming rather than a
33574 temporary to remove side effects.
33576 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
33577 inlined instance body, which is analyzed before the end of the
33580 2004-03-02 Robert Dewar <dewar@gnat.com>
33582 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
33583 sem_ch4.adb: Use new feature for substitution of keywords in VMS
33585 * errout.ads, errout.adb: Implement new circuit for substitution of
33588 * sem_case.adb (Analyze_Choices): Place message properly when case is
33589 a subtype reference rather than an explicit range.
33591 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
33593 2004-03-02 Doug Rupp <rupp@gnat.com>
33595 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
33597 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
33599 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
33601 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33603 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
33606 2004-02-25 Robert Dewar <dewar@gnat.com>
33608 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33609 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
33610 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
33611 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
33612 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
33613 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
33614 the defining instance of the type to avoid aliasing problems.
33615 Fix copyright header. Fix bad comments in package header.
33617 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
33619 2004-02-25 Ed Schonberg <schonberg@gnat.com>
33621 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
33622 rewritten as references when aliased through an address clause.
33624 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
33625 whether call can be interpreted as an indirect call to the result of a
33626 parameterless function call returning an access subprogram.
33628 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
33631 * exp_ch7.adb (Make_Clean): Remove generation of calls to
33632 Unlock[_Entries], since this is now done by Service_Entries directly.
33634 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
33636 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
33637 Requeue_Call for better code readability. Change spec and update calls:
33638 PO_Service_Entries now unlock the PO on exit.
33639 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
33640 PO_Service_Entries.
33642 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
33644 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
33646 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
33648 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
33649 protected subprogram call and analyzing the result of such expanding
33650 in case when the called protected subprogram is eliminated.
33652 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
33655 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
33657 * Makefile.in: Clean ups.
33659 2004-02-23 Ed Schonberg <schonberg@gnat.com>
33661 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
33662 protected operations if original subprogram is flagged as eliminated.
33663 (Expand_N_Subprogram_Body): For a protected operation, create
33664 discriminals for next operation before checking whether the operation
33667 * exp_ch9.adb (Expand_N_Protected_Body,
33668 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
33669 for internal protected operations if the original subprogram is
33672 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
33673 declared in a single protected object.
33675 2004-02-23 Vincent Celier <celier@gnat.com>
33677 * prj-attr.adb: Make attribute Builder'Executable an associative array,
33678 case insensitive if file names are case insensitive, instead of a
33679 standard associative array.
33681 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
33682 them as case insensitive on platforms where the file names are case
33685 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
33686 project file has already been parsed that canonical path are compared.
33688 2004-02-23 Robert Dewar <dewar@gnat.com>
33690 * sinput-c.ads: Correct bad unit title in header
33692 * freeze.adb: Minor reformatting
33694 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33696 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
33697 nonaddressable COMPONENT_REF that is removing padding that we are
33698 taking the address of, take the address of the padded record instead
33699 if item is variable size.
33701 2004-02-20 Robert Dewar <dewar@gnat.com>
33703 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
33705 2004-02-20 Ed Schonberg <schonberg@gnat.com>
33707 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
33708 itype references for the constrained designated type of a component
33709 whose base type is already frozen.
33711 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
33713 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
33714 avoid GCC warnings.
33716 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
33718 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
33719 identifier for a phantom package that rewrites the formal package
33720 declaration with a box. The Add semantic decorations for the defining
33721 identifier from the original node (that represents the formal package).
33723 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
33725 * Make-lang.in (ada/stamp-sdefault): Use the top level
33728 2004-02-19 Richard Henderson <rth@redhat.com>
33730 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
33732 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
33734 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
33735 Scan_ALI can be used for multiple ALI files without reinitializing
33738 2004-02-18 Robert Dewar <dewar@gnat.com>
33740 * debug.adb: Minor reformatting.
33742 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33744 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
33745 to zero if there is an address clause.
33747 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
33749 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
33751 2004-02-18 Gary Dismukes <dismukes@gnat.com>
33753 * layout.adb (Layout_Component_List): Revise generation of call to
33754 discriminant-checking function to pass selections of all of the type's
33755 discriminants rather than just the variant-controlling discriminant.
33757 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
33759 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
33760 fail in the current setup and triggers spurious system error messages.
33761 Pretend it occurred and failed instead.
33763 2004-02-18 Vincent Celier <celier@gnat.com>
33765 * bld.adb: Mark FLDFLAGS as saved
33766 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
33767 it is not the root project. Put each directory to be
33768 extended between double quotes to prevent it to be expanded on Windows.
33769 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
33770 the project file. Set them back to their initial values if they have not
33771 been set in the project file.
33773 * gprcmd.adb: (Gprdebug, Debug): New global variables
33774 (Display_Command): New procedure
33775 (Usage): Document new command "linkopts"
33776 Call Display_Command when env var GPRDEBUG has the value "TRUE"
33777 Implement new command "linkopts"
33778 Remove quotes that may be around arguments for "extend"
33779 Always call Normalize_Pathname with arguments formatted for the platform
33781 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
33782 Change @echo to @$(display) in target clean to be able to clean silently
33784 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
33786 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
33789 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
33790 = Extending_All when current project is an extending all project.
33792 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
33793 set to True only for LINK command, after Unix switch -o.
33794 (Process_Arguments): Set Output_File_Expected to True for LINK command
33795 after Unix switch -o. When Output_File_Expected is True, never add an
33796 extension to a file name.
33798 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
33799 option file name, only to the --for-linker= switch.
33800 (Option_File_Name): If option file name do not end with ".opt", append
33803 2004-02-18 GNAT Script <nobody@gnat.com>
33805 * Make-lang.in: Makefile automatically updated
33807 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
33809 * Make-lang.in (stamp-sdefault): Do not depend on
33812 2004-02-12 Zack Weinberg <zack@codesourcery.com>
33814 * config-lang.in: Disable Ada by default until probe logic for
33815 a bootstrap Ada compiler can be moved to the top level configure
33818 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
33820 * decl.c (components_to_record): Don't claim that the internal fields
33821 we make to hold the variant parts are semantically addressable, because
33824 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
33825 adjust the comment describing the modular type form when we can use it.
33826 (Install_PAT): Account for the Esiz renaming.
33828 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
33829 sc_onstack context indication before raising the exception to which
33830 the signal is mapped. Allows better handling of later signals possibly
33831 triggered by the resumed user code if the exception is handled.
33833 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
33835 * 5zinit.adb: Removed, no longer used.
33837 2004-02-12 Robert Dewar <dewar@gnat.com>
33839 * ali.adb: Remove separating space between parameters on R line. Makes
33840 format consistent with format used by the binder for Set_Globals call.
33842 * atree.ads, atree.adb: Minor reformatting (new function header format)
33844 * bindgen.adb: Add Run-Time Globals documentation section containing
33845 detailed documentation of the globals passed from the binder file to
33848 * gnatls.adb: Minor reformatting
33850 * init.c (__gnat_set_globals): Add note pointing to documentation in
33853 * lib-writ.ads, lib-writ.adb: Remove separating space between
33854 parameters on R line.
33855 Makes format consistent with format used by the binder for Set_Globals
33858 * osint.ads: Add 2004 to copyright notice
33861 * snames.ads: Correct capitalization of FIFO_Within_Priorities
33862 Noticed during code reading, documentation issue only
33864 * usage.adb: Remove junk line for obsolete C switch
33865 Noticed during code reading
33867 2004-02-12 Vincent Celier <celier@gnat.com>
33869 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
33870 extend for each directory, so that multiple /** directories are
33871 extended individually.
33872 (Recursive_Process): Set the default for LANGUAGES to ada
33874 * gprcmd.adb: Define new command "ignore", to do nothing.
33875 Implement new comment "path".
33877 * Makefile.generic: Suppress output when SILENT is set
33878 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
33879 used, so that the correct compiler is invoked.
33880 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
33881 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
33883 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
33885 * Makefile.in: Clean ups and remove obsolete targets.
33887 2004-02-12 Ed Schonberg <schonberg@gnat.com>
33889 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
33890 predicate declared in exp_util.
33892 * exp_util.adb: Add comments.
33894 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
33895 visibility before compiling context of the subunit.
33897 * sem_res.adb (Check_Parameterless_Call): If the context expects a
33898 value but the name is a procedure, do not attempt to analyze as a call,
33899 in order to obtain more telling diagnostics.
33901 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
33902 'Access on parameterless function calls.
33903 (Normalize_Actuals): For a parameterless function call with missing
33904 actuals, defer diagnostic until resolution of enclosing call.
33906 * sem_util.adb (Wrong_Type): If the context type is an access to
33907 subprogram and the expression is a procedure name, suggest a missing
33910 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
33911 Nathanael Nerode <neroden@gcc.gnu.org>
33915 Merge with libada-branch:
33916 * config-lang.in: Build libada only when ada is built.
33918 2004-02-09 Ed Schonberg <schonberg@gnat.com>
33920 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
33921 for a tagged type, verify that both formals have the same type.
33923 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
33924 temporary when the formal is an in-parameter and the actual a possibly
33927 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
33928 when expansion is disabled, to ensure proper name capture with
33929 overloaded literals. Condition can be of any boolean type, resolve
33932 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
33933 renaming is for a formal subprogram with a default operator name, and
33934 there is a usable operator that is visible at the point of
33937 2004-02-09 Robert Dewar <dewar@gnat.com>
33939 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
33940 rewrite to ignore errors in ali files, intended to allow tools downward
33941 compatibility with new versions of ali files.
33943 * ali.ads: Add new parameter Ignore_Errors
33945 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
33946 duplicating the error message giving the file with restrictions.
33948 * debug.adb: Add debug flag I for gnatbind
33950 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
33951 operators for the case where the operator is a defining operator.
33953 * exp_ch3.adb: Minor reformatting (new function spec format).
33955 * exp_ch4.adb: Add comment for previous change, and make minor
33956 adjustment to loop to always check for improper loop termination.
33957 Minor reformatting throughout (new function spec format).
33959 * gnatbind.adb: Implement -di debug flag for gnatbind
33961 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
33963 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
33965 * lib-load.adb: Fix bad assertion.
33966 Found by testing and code reading.
33967 Minor reformatting.
33969 * lib-load.ads: Minor reformatting.
33971 * lib-writ.adb: There is only one R line now.
33973 * lib-writ.ads: Add documentation on making downward compatible changes
33974 to ali files so old tools work with new ali files.
33975 There is only one R line now.
33976 Add documentation on format incompatibilities (with special GPS note)
33978 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
33980 * par-load.adb: Minor reformatting
33982 * sem_ch8.adb: Fix to error message from last update
33983 Minor reformatting and restructuring of code from last update
33985 * par-prag.adb, snames.adb, snames.ads, snames.h,
33986 sem_prag.adb: Implement pragma Profile.
33988 * stylesw.adb: Implement -gnatyN switch to turn off all style check
33991 * usage.adb: Add line for -gnatyN switch
33993 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
33995 2004-02-09 Albert Lee <lee@gnat.com>
33997 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
33999 2004-02-09 Ed Schonberg <schonberg@gnat.com>
34001 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
34004 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
34005 is nested in an instance that is not frozen yet, to avoid
34006 order-of-elaboration problems in gigi.
34008 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
34009 body the attribute is legal.
34011 2004-02-09 Robert Dewar <dewar@gnat.com>
34013 * s-rident.ads: Minor comment correction
34015 * targparm.adb: Remove dependence on uintp completely. There was
34016 always a bug in Make in that it called Targparm before initializing
34017 the Uint package. The old code appeared to get away with this, but
34018 the new code did not! This caused an assertion error in gnatmake.
34020 * targparm.ads: Fix bad comment, restriction pragmas with parameters
34021 are indeed fully supported.
34023 2004-02-06 Alan Modra <amodra@bigpond.net.au>
34025 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
34027 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
34029 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
34030 with targetm.calls.promote_prototypes.
34032 2004-02-04 Robert Dewar <dewar@gnat.com>
34034 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
34035 ali.ads, gprcmd.adb: Minor reformatting
34037 * bindgen.adb: Output restrictions string for new style restrictions
34040 * impunit.adb: Add s-rident.ads (System.Rident) and
34041 s-restri (System.Restrictions)
34043 * lib-writ.adb: Fix bug in writing restrictions string (last few
34046 * s-restri.ads, s-restri.adb: Change name Restrictions to
34047 Run_Time_Restrictions to avoid conflict with package name.
34048 Add circuit to read and acquire run time restrictions.
34050 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
34052 * restrict.ads, restrict.adb: Use the new restriction
34053 No_Task_Attributes_Package instead of the old No_Task_Attributes.
34055 * sem_prag.adb: No_Task_Attributes is a synonym of
34056 No_Task_Attributes_Package.
34058 * snames.ads, snames.adb: New entry for proper handling of
34059 No_Task_Attributes.
34061 * s-rident.ads: Adding restriction No_Task_Attributes_Package
34062 (AI-00249) that supersedes the GNAT specific restriction
34063 No_Task_Attributes.
34065 2004-02-04 Ed Schonberg <schonberg@gnat.com>
34068 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
34069 body, an identifier may be wrapped in an unchecked conversion.
34071 2004-02-04 Vincent Celier <celier@gnat.com>
34073 * lib-writ.ads: Comment update for the W lines
34075 * bld.adb: (Expression): An empty string list is static
34077 * fname-uf.adb: Minor comment update
34079 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
34081 * gnatbind.adb: Initialize Cumulative_Restrictions with the
34082 restrictions on the target.
34084 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
34086 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
34089 2004-02-02 Arnaud Charlet <charlet@gnat.com>
34091 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
34093 2004-02-02 Vincent Celier <celier@gnat.com>
34095 * gprcmd.adb (Check_Args): If condition is false, print the invoked
34096 comment before the usage.
34097 Gprcmd: Fail when command is not recognized.
34098 (Usage): Document command "prefix"
34100 * g-md5.adb (Digest): Process last block.
34101 (Update): Do not process last block. Store remaining characters and
34104 * g-md5.ads (Update): Document that several call to update are
34105 equivalent to one call with the concatenated string.
34106 (Context): Add fields to allow new Update behaviour.
34108 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
34109 defaulted to False.
34110 When May_Fail is True and no existing file can be found, return No_File.
34112 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
34115 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
34116 spec file name instead on the W line.
34118 2004-02-02 Robert Dewar <dewar@gnat.com>
34120 * ali.adb: Read and acquire info from new format restrictions lines
34122 * bcheck.adb: Add circuits for checking restrictions with parameters
34124 * bindgen.adb: Output dummy restrictions data
34125 To be changed later
34127 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
34128 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
34129 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
34130 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
34131 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
34133 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
34134 the warning message on access to possibly uninitialized variable S)
34135 Minor changes for new restrictions handling.
34137 * gnatbind.adb: Minor reformatting
34138 Minor changes for new restrictions handling
34139 Move circuit for -r processing here from bcheck (cleaner)
34141 * gnatcmd.adb, gnatlink.adb: Minor reformatting
34143 * lib-writ.adb: Output new format restrictions lines
34145 * lib-writ.ads: Document new R format lines for new restrictions
34148 * s-restri.ads/adb: New files
34150 * Makefile.rtl: Add entry for s-restri.ads/adb
34152 * par-ch3.adb: Fix bad error messages starting with upper case letter
34155 * restrict.adb: Major rewrite throughout for new restrictions handling
34156 Major point is to handle restrictions with parameters
34158 * restrict.ads: Major changes in interface to handle restrictions with
34159 parameters. Also generally simplifies setting of restrictions.
34161 * snames.ads/adb: New entry for proper handling of No_Requeue
34163 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
34164 restriction counting.
34165 Other minor changes for new restrictions handling
34167 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
34168 Restriction_Warnings now allows full parameter notation
34169 Major rewrite of Restrictions for new restrictions handling
34171 2004-02-02 Javier Miranda <miranda@gnat.com>
34173 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
34174 syntax rule for object renaming declarations.
34175 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
34176 component definitions.
34178 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
34180 (Array_Type_Declaration): Give support to access components. In addition
34181 it was also modified to reflect the name of the object in anonymous
34182 array types. The old code did not take into account that it is possible
34183 to have an unconstrained anonymous array with an initial value.
34184 (Check_Or_Process_Discriminants): Allow access discriminant in
34186 (Process_Discriminants): Allow access discriminant in non-limited types
34187 Initialize the new Access_Definition field in N_Object_Renaming_Decl
34188 node. Change Ada0Y to Ada 0Y in comments
34190 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
34191 equality operators.
34192 Change Ada0Y to Ada 0Y in comments
34194 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
34195 renamings Change Ada0Y to Ada 0Y in comments
34197 * sem_type.adb (Find_Unique_Type): Give support to the equality
34198 operators for universal access types
34199 Change Ada0Y to Ada 0Y in comments
34201 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
34203 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
34205 (N_Object_Renaming_Declaration): Addition of Access_Definition field
34206 Change Ada0Y to Ada 0Y in comments
34208 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
34209 component definition and object renaming nodes
34210 Change Ada0Y to Ada 0Y in comments
34212 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
34214 * restrict.adb: Use the new restriction identifier
34215 No_Requeue_Statements instead of the old No_Requeue for defining the
34216 restricted profile.
34218 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
34219 No_Requeue_Statements.
34221 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
34222 that supersedes the GNAT specific restriction No_Requeue. The later is
34223 kept for backward compatibility.
34225 2004-02-02 Ed Schonberg <schonberg@gnat.com>
34227 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
34228 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
34229 pragma and fix incorrect ones.
34231 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
34232 warning if the pragma is redundant.
34234 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
34236 * 5staprop.adb: Add missing 'constant' keywords.
34238 * Makefile.in: use consistent value for SYMLIB on
34239 platforms where libaddr2line is supported.
34241 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34243 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
34246 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
34248 * init.c (__gnat_install_handler): Setup an alternate stack for signal
34249 handlers in the environment thread. This allows proper propagation of
34250 an exception on stack overflows in this thread even when the builtin
34251 ABI stack-checking scheme is used without support for a stack reserve
34254 * utils.c (create_field_decl): Augment the head comment about bitfield
34255 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
34256 here, because the former is not accurate enough at this point.
34257 Let finish_record_type decide instead.
34258 Don't make a bitfield if the field is to be addressable.
34259 Always set a size for the field if the record is packed, to ensure the
34260 checks for bitfield creation are triggered.
34261 (finish_record_type): During last pass over the fields, clear
34262 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
34263 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
34264 from DECL_BIT_FIELD.
34266 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
34268 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
34269 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
34270 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
34272 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34274 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
34276 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
34277 (ZCX_By_Default): Likewise.
34278 (Front_End_ZCX_Support): Likewise.
34280 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
34281 (Initialize_Lock): Mark Level unreferenced.
34282 (Sleep): Mark Reason unreferenced.
34283 (Timed_Sleep): Likewise.
34284 (Wakeup): Likewise.
34285 (Exit_Task): Use Result.
34286 (Check_No_Locks): Mark Self_ID unreferenced.
34288 * 5gtasinf.adb (New_Sproc): Make Attr constant.
34289 (Bound_Thread_Attributes): Make Sproc constant.
34290 (New_Bound_Thread_Attributes): Likewise.
34292 2004-01-26 Ed Schonberg <schonberg@gnat.com>
34294 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
34295 one-dimensional array an slice assignments, when component type is
34298 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
34299 component type is controlled, and control_actions are in effect, use
34300 TSS procedure rather than generating inline code.
34302 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
34303 arrays with controlled components.
34305 2004-01-26 Vincent Celier <celier@gnat.com>
34307 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
34308 command line for the non VMS case.
34310 * gnatlink.adb (Process_Binder_File): When building object file, if
34311 GNU linker is used, put all object paths between quotes, to prevent ld
34312 error when there are unusual characters (such as '!') in the paths.
34314 * Makefile.generic: When there are sources in Ada and the main is in
34315 C/C++, invoke gnatmake with -B, instead of -z.
34317 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
34318 from VMS_Conversion.
34319 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
34320 specification of argument file on the command line.
34322 2004-01-26 Bernard Banner <banner@gnat.com>
34324 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
34326 2004-01-26 Ed Schonberg <schonberg@gnat.com>
34328 * snames.adb: Update copyright notice.
34329 Add info on slice assignment for controlled arrays.
34331 2004-01-23 Robert Dewar <dewar@gnat.com>
34333 * exp_aggr.adb: Minor reformatting
34335 * exp_ch9.adb: Minor code clean up
34337 Fix bad character in comment
34340 * targparm.adb (Get_Target_Parameters): Give clean abort error on
34341 unexpected end of file, along with more detailed message.
34343 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34345 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
34348 * decl.c (copy_alias_set): New function.
34349 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
34351 2004-01-23 Doug Rupp <rupp@gnat.com>
34353 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
34354 lib$${file} in case subsequent character is not a separator.
34356 2004-01-23 Vincent Celier <celier@gnat.com>
34358 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
34359 when the GCC version is at least 3.
34361 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
34362 Remove all "Opt.", to prepare for opt split
34364 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
34365 Extends_All. Set to True when the project parsed is an extending all
34366 project. Fails for importing an extending all project only when the
34367 imported project is an extending all project.
34368 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
34369 depending on the value of Extends_All returned.
34371 * prj-proc.adb (Process): Check that no project shares its object
34372 directory with a project that extends it, directly or indirectly,
34373 including a virtual project.
34374 Check that no project extended by another project shares its object
34375 directory with another also extended project.
34377 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
34378 Kind = N_With_Clause
34380 * prj-tree.ads: Minor reformatting
34381 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
34383 2004-01-23 Ed Schonberg <schonberg@gnat.com>
34385 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
34386 applies to a type with an incomplete view, use full view in Name of
34387 clause, for consistency with uses of Get_Attribute_Definition_Clause.
34389 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
34391 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
34392 SCHED_RR, since other values are not supported by this policy.
34393 (Initialize): Move initialization of mutex attribute to package
34394 elaboration, to prevent early access to this variable.
34396 * Makefile.in: Remove mention of Makefile.adalib, unused.
34398 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
34399 1ssecsta.ads: Removed, unused.
34401 2004-01-21 Javier Miranda <miranda@gnat.com>
34403 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
34404 entity if already built in the current scope.
34406 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
34407 reminder in internal scopes. Required for nested limited aggregates.
34409 2004-01-21 Doug Rupp <rupp@gnat.com>
34411 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
34412 VMS. Replace all occurences of libgnat- and libgnarl- with
34413 libgnat$(hyphen) and libgnarl$(hyphen).
34414 Fixed shared library build problem on VMS.
34416 2004-01-21 Robert Dewar <dewar@gnat.com>
34418 * mlib-prj.adb: Minor reformatting
34420 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
34422 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
34423 'constant' keywords for declaration of pointers that are not modified.
34425 * exp_pakd.adb: Fix English in comment.
34427 2004-01-21 Ed Schonberg <schonberg@gnat.com>
34430 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
34431 copy all attributes of the parent, including the foreign language
34434 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
34437 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
34438 for 'delay until' statement.
34440 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
34442 * Make-lang.in: Replace $(docdir) with doc.
34443 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
34444 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
34445 to use consistent MAKEINFO rule.
34446 (ada.man, ada.srcman): Dummy entry.
34447 (ADA_INFOFILES): Define.
34448 (ada.info, ada.srcinfo): New rules.
34450 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
34452 * utils.c: Update copyright notice, missed in previous change.
34454 2004-01-19 Vincent Celier <celier@gnat.com>
34456 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
34457 args if Bind is True. Set First_ALI, if not already done.
34458 (Build_Library): For Stand Alone Libraries, extract from one ALI file
34459 an eventual --RTS switch, for gnatbind, and all backend switches +
34460 --RTS, for linking.
34462 2004-01-19 Robert Dewar <dewar@gnat.com>
34464 * sem_attr.adb, memtrack.adb: Minor reformatting
34466 2004-01-19 Ed Schonberg <schonberg@gnat.com>
34468 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
34469 that rename enumeration literals. This is properly done in sem_eval.
34471 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
34472 to functions that rename enumeration literals.
34474 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
34475 functions that rename enumeration literals.
34477 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
34479 * Make-lang.in (utils.o): Depend on target.h.
34480 * utils.c: Include target.h.
34481 (process_attributes): Use targetm.have_named_sections instead
34482 of ASM_OUTPUT_SECTION_NAME.
34484 2004-01-16 Andreas Jaeger <aj@suse.de>
34486 * Makefile.in: Add $(DESTDIR).
34488 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
34490 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
34491 also when not defining if a Size clause applies. That information is
34494 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
34496 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
34497 symbolic links for the shared gnat run time when needed.
34499 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
34501 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
34502 for writing, and terminate with an error message if not.
34504 2004-01-15 Ed Schonberg <schonberg@gnat.com>
34506 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
34507 warning on an access to subprogram in an instance, when the target
34508 type is declared in the same generic unit.
34509 (Eval_Attribute): If 'access is known to fail accessibility check,
34510 rewrite as a raise statement.
34512 2004-01-15 GNAT Script <nobody@gnat.com>
34514 * Make-lang.in: Makefile automatically updated
34516 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
34518 * Make-lang.in (ada.srcextra): Dummy entry.
34520 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
34522 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
34524 2004-01-13 Ed Schonberg <schonberg@gnat.com>
34526 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
34527 components that are initialized with aggregates.
34529 2004-01-13 Vincent Celier <celier@gnat.com>
34531 * gnatlink.adb (Process_Binder_File): To find directory of shared
34532 libgcc, if "gcc-lib" is not a subdirectory, look for the last
34533 subdirectory "lib" in the path of the shared libgnat or libgnarl.
34535 * make.adb (Gnatmake): If GCC version is at least 3, link with
34536 -shared-libgcc, when there is at least one shared library project.
34538 * opt.ads (GCC_Version): New integer constant.
34540 * adaint.c (get_gcc_version): New function.
34542 2004-01-13 Robert Dewar <dewar@gnat.com>
34544 * sem_dist.adb, sem_res.adb, sem_util.adb,
34545 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
34546 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
34548 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
34550 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
34551 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
34554 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
34556 * misc.c: Remove trailing spaces.
34557 Update copyright notice missed in previous change.
34560 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
34563 * Makefile.generic: Update copyright.
34564 Add license notice.
34566 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
34567 of prefix/share/make.
34569 * Makefile.prolog: Update copyright.
34570 Add license notice.
34572 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
34574 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
34575 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
34576 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
34579 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
34582 2004-01-12 Javier Miranda <miranda@gnat.com>
34584 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
34585 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
34586 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
34587 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
34588 Component_Definition node.
34590 2004-01-12 Ed Falis <falis@gnat.com>
34592 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
34594 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
34596 * link.c: Change default libgnat kind to STATIC for FreeBSD.
34598 2004-01-12 Bernard Banner <banner@gnat.com>
34600 * Makefile.in: map 86numaux to a-numaux for x86_64
34602 2004-01-12 Ed Schonberg <schonberg@gnat.com>
34604 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
34605 generated to rename a generic actual, go to the actual itself, the
34606 subtype is not a user-visible entity.
34608 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
34609 part is a private subtype, reset the visibility of its full view, if
34610 any, to be consistent.
34613 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
34614 to use a generic package G as a formal package for another generic
34617 2004-01-12 Robert Dewar <dewar@gnat.com>
34619 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
34621 * usage.adb: Remove mention of obsolete -gnatwb switch
34622 Noticed during code reading
34624 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
34626 * 1ssecsta.adb: Minor changes for -gnatwa warnings
34628 2004-01-12 GNAT Script <nobody@gnat.com>
34630 * Make-lang.in: Makefile automatically updated
34632 2004-01-09 Mark Mitchell <mark@codesourcery.com>
34634 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
34636 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34638 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
34640 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
34642 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
34643 Update comment and copyright date.
34644 * stamp-xgnatug: Delete.
34646 2004-01-05 Robert Dewar <dewar@gnat.com>
34648 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
34649 be modified by the binder generated main program if the -D switch is
34652 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
34653 imported functions (since now we expect this to be done for imported
34656 * 5vtaprop.adb: Add several ??? for sections requiring more comments
34657 Minor reformatting throughout
34659 * 5zinit.adb: Minor reformatting
34660 Add 2004 to copyright date
34661 Minor changes to avoid -gnatwa warnings
34662 Correct some instances of using OR instead of OR ELSE (noted while
34663 doing reformatting)
34665 * sprint.adb: Minor updates to avoid -gnatwa warnings
34667 * s-secsta.ads, s-secsta.adb:
34668 (SS_Get_Max): New function to obtain high water mark for ss stack
34669 Default_Secondary_Stack is not a constant since it may be modified by
34670 the binder generated main program if the -D switch is used.
34672 * switch-b.adb: New -Dnnn switch for binder
34675 Make -gnatg imply all warnings currently in -gnatwa
34677 * vms_conv.adb: Minor reformatting
34678 Add 2004 to copyright notice
34679 Add 2004 to printed copyright notice
34681 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
34682 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
34683 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
34684 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
34685 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
34686 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
34687 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
34688 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
34689 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
34690 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
34691 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
34692 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
34693 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
34694 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
34695 checks.adb, clean.adb, cstand.adb, einfo.ads,
34696 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
34697 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
34698 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
34699 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
34700 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
34701 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
34702 Minor reformatting and code clean ups.
34703 Minor changes to prevent -gnatwa warnings
34705 * ali.adb: Minor reformatting and cleanup of code
34706 Acquire new SS indication of secondary stack use from ali files
34708 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
34709 (since now we expect this to be done for imported functions)
34711 * bindgen.adb: Generate call to modify default secondary stack size if
34714 * bindusg.adb: Add line for new -D switch
34716 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
34717 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
34718 Add circuitry for both records and arrays to avoid gigi
34719 processing if the type involved has non-bit-aligned components
34721 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
34722 N_String_Literal node always references an E_String_Literal_Subtype
34723 entity. This may not be true in the future.
34724 (Possible_Bit_Aligned_Component): Move processing of
34725 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
34727 * exp_ch6.adb (Expand_Thread_Body): Pick up
34728 Default_Secondary_Stack_Size as variable so that we get value modified
34729 by possible -Dnnn binder parameter.
34731 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
34732 (Type_May_Have_Bit_Aligned_Components): New function.
34734 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
34735 (Type_May_Have_Bit_Aligned_Components): New function.
34737 * fe.h: (Set_Identifier_Casing): Fix prototype.
34738 Add declaration for Sem_Elim.Eliminate_Error_Msg.
34739 Minor reformatting.
34741 * freeze.adb (Freeze_Entity): Add RM reference to error message about
34742 importing constant atomic/volatile objects.
34743 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
34744 unless explicit Pure_Function pragma given, to avoid insidious bug of
34745 call to non-pure imported function getting eliminated.
34747 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
34748 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
34749 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
34750 Add 2004 to printed copyright notice
34752 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
34755 * Makefile.rtl: Add entry for g-sestin.o
34756 g-sestin.ads: New file.
34758 * mdll.adb: Minor changes to avoid -gnatwa warnings
34760 * mlib-tgt.adb: Minor reformatting
34762 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
34763 New switch Sec_Stack_Used (GNAT, GNATBIND)
34764 Make Default_Secondary_Stack_Size a variable instead of a constant,
34765 so that it can be modified by the new -Dnnn bind switch.
34767 * rtsfind.adb (Load_Fail): Give full error message in configurable
34768 run-time mode if all_errors mode is set. This was not done in the case
34769 of a file not found, which was an oversight.
34770 Note if secondary stack unit is used by compiler.
34772 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
34773 ineffective elaborate all pragmas on non-visible packages (this
34774 happened when a renamed subprogram was called). Now the elaborate all
34775 always goes on the package containing the renaming rather than the one
34776 containing the renamed subprogram.
34778 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
34779 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
34781 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
34782 has an Etype that references an E_String_Literal.
34783 (Eval_String_Literal): Avoid assumption that N_String_Literal node
34784 always references an E_String_Literal_Subtype entity. This may not
34785 be true in the future.
34787 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
34790 * sem_res.adb (Resolve): Specialize msg for function name used in proc
34793 2004-01-05 Ed Falis <falis@gnat.com>
34795 * g-debuti.adb: Replaced direct boolean operator with short-circuit
34798 2004-01-05 Vincent Celier <celier@gnat.com>
34800 * bld.adb: Minor comment updates
34801 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
34804 * make.adb (Gnatmake): Special process for files to compile/check when
34805 -B is specified. Fail when there are only foreign mains in attribute
34806 Main of the project file and -B is not specified. Do not skip bind/link
34807 steps when -B is specified.
34809 * makeusg.adb: Document new switch -B
34811 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
34813 * switch-m.adb: (Scan_Make_Switches): Process -B switch
34815 * vms_data.ads: Add new GNAT PRETTY qualifier
34816 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
34818 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34820 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
34823 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
34824 Set_Identifier_Casing.
34826 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
34827 has size that overflows.
34829 2004-01-05 Gary Dismukes <dismukes@gnat.com>
34831 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
34832 -gnatwa warning on static condition.
34834 2004-01-05 Doug Rupp <rupp@gnat.com>
34836 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
34838 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
34840 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
34841 all attributes, including read-only attribute.
34843 2004-01-05 Pascal Obry <obry@gnat.com>
34845 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
34846 library naming scheme.
34848 * mlib-prj.adb (Build_Library): Generate different names for the static
34849 or dynamic version of the GNAT runtime. This is needed to support the
34850 new shared library naming scheme.
34851 (Process_Binder_File): Add detection of shared library in binder file
34852 based on the new naming scheme.
34854 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
34855 scheme for the shared runtime libraries.
34858 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
34860 (install-gnatlib): Do not create symlinks for shared libraries.
34861 (gnatlib-shared-default): Idem.
34862 (gnatlib-shared-dual-win32): New target. Not used for now as the
34863 auto-import feature does not support arrays/records.
34864 (gnatlib-shared-win32): Do not create copy for the shared libraries.
34865 (gnatlib-shared-vms): Fix shared runtime libraries names.
34867 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
34868 dependent runtime shared library name.
34870 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
34872 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
34875 2004-01-05 Ed Schonberg <schonberg@gnat.com>
34877 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
34878 protected objects when allocator has a subtype indication, not a
34879 qualified expression. Note that qualified expressions may have to be
34880 checked when limited aggregates are implemented.
34882 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
34883 pure, emit warning.
34884 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
34885 subprogram is imported, remove warning.
34887 2004-01-05 Geert Bosch <bosch@gnat.com>
34889 * s-poosiz.adb: Update copyright notice.
34890 (Allocate): Use Task_Lock to protect against concurrent access.
34891 (Deallocate): Likewise.
34893 2004-01-05 Joel Brobecker <brobecker@gnat.com>
34895 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
34898 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
34900 * gnat_ug.texi: Force a CVS commit by updating copyright.
34901 * gnat_ug_vxw.texi: Regenerate.
34902 * gnat_ug_wnt.texi: Regenerate.
34903 * gnat_ug_vms.texi: Regenerate.
34904 * gnat_ug_unx.texi: Regenerate.
34906 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
34908 * trans.c: Remove uses of "register" specifier in
34909 declarations of local variables.
34911 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
34913 * stamp-xgnatug: New stamp file.
34914 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
34915 (ada/doctools/xgnatug): Add $(build_exeext).
34916 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
34917 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
34919 2003-12-17 Ed Falis <falis@gnat.com>
34921 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
34924 * a-exextr.adb: Add context clause for
34925 Ada.Exceptions.Last_Chance_Handler.
34927 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
34929 * cstand.adb (Create_Standard): Change the way how the declaration of
34930 the Duration type is created (making it the same way as it is for all
34931 the other standard types).
34933 2003-12-17 Robert Dewar <dewar@gnat.com>
34935 * s-crtl.ads: Fix header format
34936 Change Pure to Preelaborate
34938 2003-12-17 Ed Schonberg <schonberg@gnat.com>
34940 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
34941 the expression type only if it is declared in the current unit.
34943 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
34944 are universal and already analyzed, as can occur in constrained
34945 subcomponents that depend on discriminants, when one constraint is a
34948 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
34949 type Any_Fixed is legal as the argument of a conversion, if only one
34950 fixed-point type is in context.
34952 2003-12-17 GNAT Script <nobody@gnat.com>
34954 * Make-lang.in: Makefile automatically updated
34956 2003-12-15 Robert Dewar <dewar@gnat.com>
34958 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
34961 2003-12-15 Vincent Celier <celier@gnat.com>
34963 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
34964 (Gnatchop): Do not set failure status when reporting the number of
34967 2003-12-15 Doug Rupp <rupp@gnat.com>
34969 * s-ctrl.ads: New file.
34971 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
34973 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
34974 (GNATBIND_OBJS): Add ada/s-crtl.o.
34976 * Makefile.in [VMS]: Clean up ifeq rules.
34978 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
34979 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
34980 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
34981 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
34982 s-tasdeb.adb: Update copyright.
34983 Import System.CRTL.
34984 Make minor modifications to use System.CRTL declared functions instead
34985 of importing locally.
34987 2003-12-15 GNAT Script <nobody@gnat.com>
34989 * Make-lang.in: Makefile automatically updated
34991 2003-12-11 Ed Falis <falis@gnat.com>
34993 * 5zinit.adb: Clean up.
34995 * 5zintman.adb (Notify_Exception): replaced case statement with a call
34996 to __gnat_map_signal, imported from init.c to support
34997 signal -> exception mappings that depend on the vxWorks version.
35000 Created and exported __gnat_map_signal to support signal -> exception
35001 mapping that is dependent on the VxWorks version.
35002 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
35004 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
35006 * 5wosinte.ads: Link with -mthreads switch.
35008 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
35010 * init.c (__gnat_install_handler [NetBSD]): Set
35011 __gnat_handler_installed, as done on all other platforms.
35012 Remove duplicated code.
35014 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
35016 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
35018 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
35020 * sinfo.ads: Fix inconsistent example code in comment.
35022 2003-12-11 Robert Dewar <dewar@gnat.com>
35024 * a-tiinau.adb: Add a couple of comments
35026 * sem_ch3.adb: Minor reformatting
35029 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
35030 Minor reformatting throughout
35032 2003-12-11 Ed Schonberg <schonberg@gnat.com>
35034 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
35035 bounds of a loop, create a separate block in order to generate proper
35036 cleanup actions to prevent memory leaks.
35038 * sem_res.adb (Resolve_Call): After a call to
35039 Establish_Transient_Scope, the call may be rewritten and relocated, in
35040 which case no further processing is needed.
35042 * sem_util.adb: (Wrong_Type): Refine previous fix.
35043 Fixes ACATS regressions.
35046 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
35049 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
35051 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
35052 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
35055 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
35058 2003-12-08 Robert Dewar <dewar@gnat.com>
35060 * 7sintman.adb: Minor reformatting
35062 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
35063 standard linker options to get standard libraries linked. We now plan
35064 to provide dummy versions of these libraries to match the appropriate
35065 configurable run-time (e.g. if a library is not needed at all, provide
35066 a dummy empty library).
35068 * targparm.ads: Configurable_Run_Time mode no longer affects linker
35069 options (-L parameters and standard libraries). What we plan to do is
35070 to provide dummy libraries where the libraries are not required.
35072 * gnatbind.adb: Minor comment improvement
35074 2003-12-08 Javier Miranda <miranda@gnat.com>
35076 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
35077 aggregate in the parent. Otherwise constants with limited aggregates
35078 are not supported. Add new formal to pass the component type (Ctype).
35079 It is required to call the corresponding IP subprogram in case of
35080 default initialized components.
35081 (Gen_Assign): In case of default-initialized component, generate a
35082 call to the IP subprogram associated with the component.
35083 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
35084 of aggregate with default initialized components.
35085 (Has_Default_Init_Comps): Improve implementation to recursively check
35086 all the present expressions.
35088 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
35089 to indicate that the initialization call corresponds to a
35090 default-initialized component of an aggregate.
35091 In case of default initialized aggregate with tasks this parameter is
35092 used to generate a null string (this is just a workaround that must be
35093 improved later). In case of discriminants, this parameter is used to
35094 generate a selected component node that gives access to the discriminant
35097 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
35098 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
35099 allocated aggregates with default-initialized components.
35101 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
35102 the box notation is used in positional aggregates.
35104 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
35106 * lib.ads: Fix typo in comment
35108 2003-12-08 Vincent Celier <celier@gnat.com>
35110 * prj.adb (Project_Empty): New component Unkept_Comments
35111 (Scan): Remove procedure; moved to Prj.Err.
35113 * prj.ads (Project_Data): New Boolean component Unkept_Comments
35114 (Scan): Remove procedure; moved to Prj.Err.
35116 * prj-dect.adb: Manage comments for the different declarations.
35118 * prj-part.adb (With_Record): New component Node
35119 (Parse): New Boolean parameter Store_Comments, defaulted to False.
35120 Set the scanner to return ends of line and comments as tokens, if
35121 Store_Comments is True.
35122 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
35123 comments are associated with these nodes. Store the node IDs in the
35125 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
35127 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
35128 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
35129 current project. Call Tree.Restore afterwards. Set the various nodes
35130 for comment storage (Next_End, End_Of_Line, Previous_Line,
35133 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
35134 defaulted to False.
35136 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
35137 to False. When Truncated is True, truncate the string, never go to the
35139 (Write_End_Of_Line_Comment): New procedure
35140 (Print): Process comments for nodes N_With_Clause,
35141 N_Package_Declaration, N_String_Type_Declaration,
35142 N_Attribute_Declaration, N_Typed_Variable_Declaration,
35143 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
35144 Process nodes N_Comment.
35146 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
35147 without comments and there are some comments, set the flag
35148 Unkept_Comments to True.
35149 (Scan): If there are comments, set the flag Unkept_Comments to True and
35150 clear the comments.
35151 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
35152 (Next_End_Nodes: New table
35153 (Comment_Zones_Of): New function
35154 (Scan): New procedure; moved from Prj. Accumulate comments in the
35155 Comments table and set end of line comments, comments after, after end
35157 (Add_Comments): New procedure
35158 (Save, Restore, Seset_State): New procedures
35159 (There_Are_Unkept_Comments): New function
35160 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
35161 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
35163 (First_Comment_After, First_Comment_After_End): New functions
35164 (First_Comment_Before, First_Comment_Before_End): New functions
35165 (Next_Comment): New function
35166 (End_Of_Line_Comment, Follows_Empty_Line,
35167 Is_Followed_By_Empty_Line): New functions
35168 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
35169 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
35170 (Set_Next_Comment): New procedure
35171 (Default_Project_Node): Associate comment before if the node can store
35174 * scans.ads (Token_Type): New enumeration value Tok_Comment
35175 (Comment_Id): New global variable
35177 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
35178 defaulted to False.
35179 (Scan): Store position of start of comment. If comments are tokens, set
35180 Comment_Id and set Token to Tok_Comment when scanning a comment.
35181 (Set_Comment_As_Token): New procedure
35183 * sinput-p.adb: Update Copyright notice
35184 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
35185 that no longer exists.
35187 2003-12-08 Javier Miranda <miranda@gnat.com>
35189 * sem_aggr.adb: Add dependence on Exp_Tss package
35190 Correct typo in comment
35191 (Resolve_Aggregate): In case of array aggregates set the estimated
35192 type of the aggregate before calling resolve. This is needed to know
35193 the name of the corresponding IP in case of limited array aggregates.
35194 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
35195 in case of default initialized array components.
35197 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
35198 types. Required to give support to limited aggregates in generic
35201 2003-12-08 Ed Schonberg <schonberg@gnat.com>
35203 * sem_ch3.adb (Check_Initialization): For legality purposes, an
35204 inlined body functions like an instantiation.
35205 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
35206 until bounds are analyzed, to diagnose premature use of type.
35208 * sem_util.adb (Wrong_Type): Improve error message when the type of
35209 the expression is used prematurely.
35211 2003-12-08 GNAT Script <nobody@gnat.com>
35213 * Make-lang.in: Makefile automatically updated
35215 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
35217 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
35218 they are automatically generated by Make-lang.in and cause nothing but
35219 maintenance troubles.
35221 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
35223 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
35224 version of this unit).
35226 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
35228 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
35229 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
35230 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
35231 the body of System.Interrupt_Management common to several targets.
35232 Update copyright notice when appropriate.
35234 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
35237 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
35238 to ensure that the kernel fills in the interrupted context structure
35239 before calling a signal handler, which is necessary to be able to
35240 unwind past it. Update the copyright notice.
35242 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
35244 * a-elchha.ads: New file.
35246 * a-elchha.adb: New default last chance handler. Contents taken from
35247 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
35249 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
35250 is moved to a-elchha.adb to provide a target-independent default last
35253 * Makefile.rtl: Add a-elchha.o
35255 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
35257 2003-12-05 Ed Schonberg <schonberg@gnat.com>
35259 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
35260 declared in an instance, do not inline the call if the instance is not
35261 frozen yet, to prevent order of elaboration problems.
35263 * sem_prag.adb: Add comments for previous fix.
35265 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
35267 * g-table.adb: Use the right variable in Set_Item.
35268 Update copyright notice.
35270 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
35272 * Makefile.in: Remove unused rules.
35274 2003-12-05 Vincent Celier <celier@gnat.com>
35276 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
35277 -nostdlib. Not needed here after all.
35279 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
35282 * adaint.h, adaint.c, g-os_lib.ads:
35283 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
35284 on some platforms (including FreeBSD), it is a 64 bit value.
35285 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
35287 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
35289 * gnatvsn.ads (Library_Version): Now contain only the relevant
35291 (Verbose_Library_Version): New constant.
35293 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
35294 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
35295 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
35297 * gnatlbr.adb: Clean up: replace Library_Version by
35298 Verbose_Library_Version.
35300 * make.adb, lib-writ.adb, exp_attr.adb:
35301 Clean up: replace Library_Version by Verbose_Library_Version.
35303 * 5lintman.adb: Removed.
35306 Update and simplify computation of LIBRARY_VERSION.
35307 Fix computation of GSMATCH_VERSION.
35308 5lintman.adb is no longer used: replaced by 7sintman.adb.
35310 2003-12-03 Robert Dewar <dewar@gnat.com>
35313 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
35314 name. Modified to consider small non-bit-packed arrays as troublesome
35315 and in need of component-by-component assigment expansion.
35317 2003-12-03 Vincent Celier <celier@gnat.com>
35319 * lang-specs.h: Process nostdlib as nostdinc
35321 * back_end.adb: Update Copyright notice
35322 (Scan_Compiler_Arguments): Process -nostdlib directly.
35324 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
35327 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
35328 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
35329 included in HIE_NONE_TARGET_PAIRS.
35331 2003-12-03 Ed Schonberg <schonberg@gnat.com>
35334 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
35335 is legal in an instance, because legality is cheched in the template.
35338 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
35339 appplied to an unchecked conversion of a formal parameter.
35342 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
35345 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
35347 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
35348 routines. The second one is new functionality to deal with backtracing
35349 through signal handlers.
35350 (unwind): Split into the two separate subroutines above.
35351 Update the documentation, and deal properly with sizeof (REG) different
35352 from sizeof (void*).
35354 2003-12-01 Nicolas Setton <setton@act-europe.fr>
35356 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
35357 so that the debugger can reliably access the value of the parameter,
35358 and therefore is able to display the exception name when an exception
35359 breakpoint is reached.
35361 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
35363 * fmap.adb: Fix typo in warning message.
35365 * g-socket.ads, g-socket.adb: Make Free a visible instance of
35366 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
35368 2003-12-01 Vincent Celier <celier@gnat.com>
35370 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
35372 (Build_Library): Get the switches only if Default_Switches is declared
35375 2003-12-01 Ed Schonberg <schonberg@gnat.com>
35377 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
35378 actuals that are indexed components, reanalyze actual to ensure that
35379 packed array references are properly expanded.
35381 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
35382 attempted assignment to a discriminant.
35384 2003-12-01 Robert Dewar <dewar@gnat.com>
35386 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
35389 * switch-c.adb: Minor reformatting of comments
35391 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35393 * Makefile.in: Clean ups.
35395 2003-12-01 GNAT Script <nobody@gnat.com>
35397 * Make-lang.in: Makefile automatically updated
35399 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35401 * 5wsystem.ads: Disable zero cost exception, not ready yet.
35403 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
35405 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
35406 to force serialization.
35408 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
35410 * g-socket.ads, g-socket.adb:
35411 Clarify documentation of function Stream. Introduce a Free procedure
35412 to release the returned Stream once it becomes unused.
35414 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
35416 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
35418 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
35419 since NT 4 cannot handle timeout values that are too large,
35420 e.g. DWORD'Last - 1.
35422 2003-11-26 Ed Schonberg <schonberg@gnat.com>
35425 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
35426 in procedure calls and whose expansion must be deferred.
35428 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
35432 (Build_Derived_Array_Type): Create operator for unconstrained type
35433 if ancestor is unconstrained.
35435 2003-11-26 Vincent Celier <celier@gnat.com>
35437 * make.adb (Project_Object_Directory): New global variable
35438 (Change_To_Object_Directory): New procedure
35439 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
35440 of Change_Dir directly. Do not change working directory to object
35441 directory of main project after each compilation.
35442 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
35444 Change to object directory of main project before binding step.
35445 (Initialize): Initialize Project_Object_Directory to No_Project
35448 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
35449 binding a Stand-Alone Library.
35451 * output.adb: Update Copyright notice
35452 (Write_Char): Output buffer when full
35454 2003-11-26 Robert Dewar <dewar@gnat.com>
35456 * sem_ch13.adb: (Check_Size): Reset size if size is too small
35459 (Check_Size): Fix documentation to include bit-packed array case
35461 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
35463 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
35465 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
35467 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
35470 * utils.c (init_gigi_decls): Change name of built-in setjmp to
35471 __builtin_setjmp, since this is apparently needed by recent
35474 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35476 * adadecode.c: Only include ctype.h if not IN_GCC.
35477 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
35479 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
35482 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
35483 signals and interrupts.
35485 * 5zintman.ads: New File.
35487 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
35488 add exception signals to the set of unmasked signals.
35491 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
35492 between signals and interrupts.
35493 Add to Unblocked_Signal_Mask the set of signals that are in
35497 Adding a check to see whether the Interrupt_ID we want to unmask is in
35498 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
35499 reason is that the index type of the Keep_Unmasked array is not always
35500 Interrupt_ID; it may be a subtype of Interrupt_ID.
35502 2003-11-24 Gary Dismukes <dismukes@gnat.com>
35505 (Remove_Side_Effects): Condition constantness of object created for a
35506 an unchecked type conversion on the constantness of the expression
35507 to ensure the correct value for 'Constrained when passing components
35508 of view-converted class-wide objects.
35510 2003-11-24 Robert Dewar <dewar@gnat.com>
35512 * par-load.adb (Load): Improve handling of misspelled and missing units
35513 Removes several cases of compilation abandoned messages
35515 * lib.adb: (Remove_Unit): New procedure
35517 * lib.ads: (Remove_Unit): New procedure
35519 * lib-load.adb: Minor reformatting
35521 2003-11-24 Vincent Celier <celier@gnat.com>
35524 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
35525 (Marking_Label): Label to mark processed source files. Incremented for
35527 (Gnatmake): Increase Marking_Labet for each executable
35528 (Is_Marked): Compare against marking label
35529 (Mark): Mark with marking label
35531 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
35534 Move the declaration of the TSD for System.Threads to System.Soft_Links.
35537 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
35538 (rts-cert): build a single relocatable object for the run-time lib.
35541 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
35544 Use gnatls rather than gcc to obtain the location of GNAT RTL for
35547 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
35549 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
35550 can not use it as before (that is, as a variable) when dumping it into
35551 the tree file. Add a local variable to store the result of this
35552 function and to be used as the string to be written into the tree.
35554 * scn.adb (Initialize_Scanner): Add comments explaining the recent
35557 * sinput.adb (Source_First, Source_Last): In case of
35558 Internal_Source_File, replace returning attributes of
35559 Internal_Source_Ptr (which is wrong) with returning attributes of
35562 2003-11-24 Ed Schonberg <schonberg@gnat.com>
35565 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
35566 used for implicit concatenation operators.
35570 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
35571 task bodies that are in the scope of a Suppress pragma.
35572 (Check_A Call): Use the flag to prevent spurious elaboration checks.
35574 * sinfo.ads, sinfo.adb:
35575 New flag No_Elaboration_Check on function/procedure calls, to properly
35576 suppress checks on calls in task bodies that are within a local suppress
35580 (Expand_Concatenate_Other): Use the proper integer type for the
35581 expression for the upper bound, to avoid universal_integer computations
35584 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
35586 * .cvsignore: Delete.
35588 2003-11-21 Andreas Schwab <schwab@suse.de>
35590 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
35592 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
35594 * 5wsystem.ads: Enable zero cost exception.
35596 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
35598 * 5ztiitho.adb: Remove an unreferenced variable.
35600 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
35602 * adaint.c: For FreeBSD, use mkstemp.
35604 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
35606 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
35608 2003-11-21 Robert Dewar <dewar@gnat.com>
35610 * bld.adb: Remove useless USE of gnatvsn
35612 * gnatchop.adb: Minor reformatting
35613 Clean up version handling to be more consistent
35615 * gnatxref.adb: Minor reformatting
35617 * gprcmd.adb: Minor reformatting
35618 Fix output of copyright to be more consistent with other tools
35620 2003-11-21 Vincent Celier <celier@gnat.com>
35622 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
35624 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
35626 * atree.adb (Initialize): Add initializations for global variables
35627 used in New_Copy_Tree.
35629 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
35630 Internal_Source_File as the actual).
35631 Put the set of statements creating Any_Character before the set of
35632 statements creating Any_Array to have Any_Character fully initialized
35633 when it is used in creating Any_Array.
35635 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
35636 not call Scan in case if the actual is Internal_Source_File
35637 Add 2003 to copyright note.
35639 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
35640 processing Internal_Source_File.
35642 * types.ads: Add the constant Internal_Source_File representing the
35643 source buffer for artificial source-code-like strings created within
35644 the compiler (the definition of Source_File_Index is changed).
35646 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
35648 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
35649 56system.ads: New file, FreeBSD version.
35651 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
35653 * Make-lang.in (ada.extraclean): Delete.
35655 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
35657 * gnatmem.adb: Clean up verbose output.
35659 * gprcmd.adb: Change copyright to FSF.
35661 2003-11-19 Vincent Celier <celier@gnat.com>
35663 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
35664 and Version (ignored).
35666 * symbols.ads: (Policy): New type
35667 (Initialize): New parameter Reference, Symbol_Policy and
35669 Remove parameter Force.
35670 Minor reformatting.
35672 * snames.ads, snames.adbadb: New standard names
35673 Library_Reference_Symbol_File and Library_Symbol_Policy
35676 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
35680 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
35682 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
35684 * prj.adb: (Project_Empty): New component Symbol_Data
35686 * prj.ads: (Policy, Symbol_Record): New types
35687 (Project_Data): New component Symbol_Data
35690 New attributes Library_Symbol_File, Library_Symbol_Policy and
35691 Library_Reference_Symbol_File.
35694 (Ada_Check): When project is a Stand-Alone library project, process
35695 attribute Library_Symbol_File, Library_Symbol_Policy and
35696 Library_Reference_Symbol_File.
35698 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
35699 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
35700 5sml-tgt.adb (Build_Dynamic_Library): New parameter
35701 Symbol_Data (ignored).
35703 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
35704 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
35705 functions Option_File_Name and Version_String. Set new options of
35706 gnatsym related to symbol file, symbol policy and reference symbol
35710 Extensive modifications to take into account the reference symbol file,
35711 the symbol policy, the library version and to put in the symbol file the
35712 minor and major IDs.
35714 * bld.adb (Process_Declarative_Items): Put second argument of
35715 gprcmd to_absolute between single quotes, to avoid problems with
35718 * bld-io.adb: Update Copyright notice.
35719 (Flush): Remove last character of a line, if it is a back slash, to
35720 avoid make problems.
35723 Implement new scheme with reference symbol file and symbol policy.
35725 * g-os_lib.ads: (Is_Directory): Clarify comment
35727 2003-11-19 Robert Dewar <dewar@gnat.com>
35729 * atree.adb: Move New_Copy_Tree global variables to head of package
35731 * errout.adb: Minor reformatting
35733 2003-11-19 Javier Miranda <miranda@gnat.com>
35735 * sem_ch4.adb: (Diagnose_Call): Improve error message.
35736 Add reference to Ada0Y (AI-50217)
35738 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
35739 sem_util.adb: Add reference to AI-50217
35741 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
35743 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
35745 * sem_aggr.adb: Complete documentation of AI-287 changes
35747 * par-ch4.adb: Document previous changes.
35749 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
35750 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
35753 * exp_aggr.adb: Add references to AI-287 in previous changes
35755 2003-11-19 Ed Schonberg <schonberg@gnat.com>
35758 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
35759 in the rewriting is the result of an inlined call.
35761 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
35762 parameter is a type conversion, use original node to construct the
35763 post-call assignment, because expression may have been rewritten, e.g.
35764 if it is a packed array.
35767 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
35768 body, just as it is in an instance.
35769 Categorization routines
35771 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
35772 Instantiate_Object): Set proper sloc reference for message on missing
35775 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
35777 * Makefile.in: Add FreeBSD libgnat pairs.
35779 * usage.adb: Fix typo in usage message.
35781 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
35783 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
35784 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
35785 pragma Thread_Body.
35786 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
35788 * s-thread.adb: This file is now a dummy implementation of
35791 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
35793 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
35795 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
35797 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35798 instanciation references in the parent type description.
35800 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35802 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
35804 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
35805 TYPE_PRECISION directly from esize.
35807 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
35810 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
35812 * init.c: Initialization routines for FreeBSD
35814 * link.c: Link info for FreeBSD
35816 * sysdep.c: Add the case of FreeBSD
35818 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
35820 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
35821 already called in System.Threads.
35823 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
35824 environment task, as it has been moved to System.Threads.Initialization.
35826 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
35828 * adaint.c (__gnatlib_install_locks): Only reference
35829 __gnat_install_locks on VMS, since other platforms can avoid using
35830 --enable-threads=gnat
35832 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35834 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
35836 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
35837 TYPE_PACKED_ARRAY_TYPE_P.
35838 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
35840 Part of PR ada/12806
35841 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
35842 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
35844 2003-11-17 Vincent Celier <celier@gnat.com>
35846 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
35848 Do not set exit status to Failure when Warning is True.
35849 (Gnatchop): Make errors "no compilation units found" and
35850 "no source files written" warnings only.
35852 * make.adb (Gnatmake): When using a project file, set
35853 Look_In_Primary_Dir to False.
35854 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
35855 and Local_Configuration_Pragmas in the project where they are declared
35856 not an extending project which might have inherited them.
35858 * osint.adb (Locate_File): If Name is already an absolute path, do not
35859 look for a directory.
35861 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
35862 -gnats (Check_Syntax) is used, issue only a warning, not an error.
35864 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
35865 in objects of type Variable_Value.
35867 * prj.ads: (Variable_Value): New component Project
35869 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
35870 is in a project extended by Project.
35872 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
35873 Project of Variable_Values to this new parameter value.
35874 (Expression): Set component Project of Variable_Values.
35875 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
35876 Set the component Project in array elements.
35878 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
35880 * errout.adb: (Initialize): Add initialization for error nodes.
35882 * sem_ch12.adb (Initialize): Add missing initializations for
35883 Exchanged_Views and Hidden_Entities.
35885 2003-11-17 Ed Schonberg <schonberg@gnat.com>
35887 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
35888 already instantiated tree for use in subsequent inlining.
35889 (Analyze_Associations, Instantiate_Formal_Subprogram,
35890 Instantiate_Object): improve error message for mismatch in
35893 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
35894 instantiations of subprograms declared in instances.
35896 2003-11-17 Javier Miranda <miranda@gnat.com>
35898 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
35899 executed only under the Extensions_Allowed flag.
35901 2003-11-17 Robert Dewar <dewar@gnat.com>
35903 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
35905 (Address_Image): Fix bug of returning 0x instead of 0x0
35906 Minor reformatting (function specs).
35908 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
35909 (missed case of 33-63)
35911 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
35913 * s-thread.adb: Add comments for pragma Restriction
35915 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
35916 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
35918 2003-11-17 Ed Falis <falis@gnat.com>
35920 * s-thread.adb: Added No_Tasking restriction for this implementation.
35922 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
35924 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
35925 instanciation references in the parent type description.
35927 2003-11-17 GNAT Script <nobody@gnat.com>
35929 * Make-lang.in: Makefile automatically updated
35931 2003-11-16 Jason Merrill <jason@redhat.com>
35933 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
35934 and TAGS files that include them for each front end.
35936 2003-11-14 Andreas Jaeger <aj@suse.de>
35938 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
35939 is the canonical version.
35940 * misc.c (gnat_handle_option): Likewise.
35942 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
35944 * 5nsystem.ads: New file for x86_64-linux-gnu.
35946 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
35948 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
35950 * comperr.adb: Fix logic in previous change.
35952 2003-11-13 Vincent Celier <celier@gnat.com>
35954 * 5bml-tgt.adb (Build_Dynamic_Library): Use
35955 Osint.Include_Dir_Default_Prefix instead of
35956 Sdefault.Include_Dir_Default_Name.
35958 * gnatlbr.adb: Update Copyright notice
35959 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
35960 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
35961 instead of Sdefault.Object_Dir_Default_Name
35964 (Process_Binder_File): Never suppress the option following -Xlinker
35967 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
35968 Sdefault.Object_Dir_Default_Name.
35970 * osint.ads, osint.adb:
35971 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
35972 Minor reformatting.
35974 * vms_conv.ads: Minor reformating
35975 Remove GNAT STANDARD and GNAT PSTA
35978 Allow GNAT MAKE to have several files on the command line.
35979 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
35980 Sdefault.Object_Dir_Default_Name.
35982 Remove data for GNAT STANDARD
35985 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
35986 Remove data for GNAT STANDARD
35987 Remove options and documentation for -gnatwb/-gnatwB: these warning
35988 options no longer exist.
35990 2003-11-13 Ed Falis <falis@gnat.com>
35992 * 5zthrini.adb: (Init_RTS): Made visible
35995 (Register): Removed unnecessary call to taskVarGet that checked whether
35996 an ATSD was already set as a task var for the argument thread.
35999 Updated comment to reflect that this is a VxWorks version
36000 Added context clause for System.Threads.Initialization
36001 Added call to System.Threads.Initialization.Init_RTS
36003 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
36006 (Init_RTS): New procedure, for the initialization of the run-time lib.
36009 Remove dependancy on System.Init, so that this file can be used in the
36010 AE653 sequential run-time lib.
36012 2003-11-13 Robert Dewar <dewar@gnat.com>
36014 * bindgen.adb: Minor reformatting
36016 2003-11-13 Ed Schonberg <schonberg@gnat.com>
36019 (Apply_Discriminant_Check): Do no apply check if target type is derived
36020 from source type with no applicable constraint.
36023 (Ensure_System_Dependency): Do not apply the style checks that may have
36024 been specified for the main unit.
36027 (Find_Selected_Component): Further improvement in error message, with
36031 (Resolve): Handle properly the case of an illegal overloaded protected
36034 2003-11-13 Javier Miranda <miranda@gnat.com>
36037 (Has_Default_Init_Comps): New function to check the presence of
36038 default initialization in an aggregate.
36039 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
36040 extension aggregate of a limited record. In addition, a new formal
36041 was added to do not initialize the record controller (if any) during
36042 this recursive expansion of ancestors.
36043 (Init_Controller): Add support for limited record components.
36044 (Expand_Record_Aggregate): In case of default initialized components
36045 convert the aggregate into a set of assignments.
36047 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
36048 describing the new syntax.
36049 Nothing else needed to be done because this subprogram delegates part of
36050 its work to P_Precord_Or_Array_Component_Association.
36051 (P_Record_Or_Array_Component_Association): Give support to the new
36052 syntax for default initialization of components.
36055 (Resolve_Aggregate): Relax the strictness of the frontend in case of
36056 limited aggregates.
36057 (Resolve_Record_Aggregate): Give support to default initialized
36059 (Get_Value): In case of default initialized components, duplicate
36060 the corresponding default expression (from the record type
36061 declaration). In case of default initialization in the *others*
36062 choice, do not check that all components have the same type.
36063 (Resolve_Extension_Aggregate): Give support to limited extension
36067 (Check_Initialization): Relax the strictness of the front-end in case
36068 of aggregate and extension aggregates. This test is now done in
36069 Get_Value in a per-component manner.
36071 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
36072 expression corresponds to a limited aggregate. This test is now done
36075 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
36078 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
36079 present in an N_Component_Association node
36081 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
36083 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
36084 type-conformant entry only if they are homographs.
36086 2003-11-13 GNAT Script <nobody@gnat.com>
36088 * Make-lang.in: Makefile automatically updated
36090 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36092 * adadecode.c: Use <> form of include for ctype.h.
36093 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
36095 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36097 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
36098 Works around PR middle-end/6552.
36100 2003-11-10 Ed Falis <falis@gnat.com>
36102 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
36104 * 5zinit.adb: (Install_Handler): Moved back to spec
36105 (Install_Signal_Handlers): Deleted
36107 * 5zthrini.adb: Added context clause for System.Storage_Elements
36108 (Register): Only handles creation of taskVar; initialization moved to
36110 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
36111 Added declaration of environment task secondary stack and
36114 * s-thread.adb: Implement bodies for thread body processing
36117 Added comment identifying supported targets for pragma Thread_Body.
36119 2003-11-10 Pascal Obry <obry@gnat.com>
36121 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
36125 (Open): Properly check for string length before copying into the buffer.
36126 Raises Name_Error if buffer is too small. Note that this was a potential
36129 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
36131 * bindgen.adb, comperr.adb: Code clean ups.
36132 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
36134 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
36136 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
36138 2003-11-10 Vincent Celier <celier@gnat.com>
36141 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
36144 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
36146 * prj.adb: (Project_Empty): Add new boolean component Virtual
36148 * prj.ads: (Virtual_Prefix): New constant string
36149 (Project_Data): New boolean component Virtual
36151 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
36152 a library project is extended by a virtual extending project.
36155 Modifications throughout to implement extending-all project, including:
36156 (Virtual_Hash, Processed_Hash): New hash tables
36157 (Create_Virtual_Extending_Project): New procedure
36158 (Look_For_Virtual_Projects_For): New procedure
36161 (Process): After checking the projects, if main project is an
36162 extending-all project, set the object directory of all virtual extending
36163 project to the object directory of the main project.
36164 Adjust error message when a virtual extending project has the same
36165 object directory as an project being extended.
36166 (Recursive_Process): If name starts with the virtual prefix, set Virtual
36167 to True in the project data.
36170 (Default_Project_Node): Add new boolean component Extending_All
36171 (Is_Extending_All): New function
36172 (Set_Is_Extending_All): New procedure
36174 * prj-tree.ads: (Is_Extending_All): New function
36175 (Set_Is_Extending_All): New procedure
36176 (Project_Node_Record): New boolean component Extending_All
36178 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
36181 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
36183 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
36184 "gprcmd prefix" to define it.
36186 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
36188 * einfo.ads: Fix a typo and remove an extraneous word in comments.
36191 (Create_Dummy_Package_Unit): Set the scope of the entity for the
36192 created dummy package to Standard_Standard, not to itself, to
36193 defend other parts of the front-end against encoutering a cycle in
36197 (Analyze_With_Clause): When setting the entities for the successive
36198 N_Expanded_Names that constitute the name of a child unit, do not
36199 attempt to go further than Standard_Standard in the chain of scopes.
36200 This case arises from the placeholder units created by
36201 Create_Dummy_Package_Unit in the case of a with_clause for a
36202 nonexistent child unit.
36204 2003-11-10 Ed Schonberg <schonberg@gnat.com>
36207 (Expand_Thread_Body): Place subprogram on scope stack, so that new
36208 declarations are given the proper scope.
36211 (Check_Expr_Constants): Reject an expression that contains a constant
36212 created during expansion, and that appears after the object to which
36213 the address clause applies.
36215 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
36216 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
36217 that uses 'Range of a function call with controlled components, so
36218 that the function result can be finalized before starting the loop.
36221 (Find_Selected_Component): Improve error message when prefix is
36222 an implicit dereference of an incomplete type.
36224 2003-11-10 Robert Dewar <dewar@gnat.com>
36226 * opt.ads: New Print_Standard flag for -gnatS switch
36228 * sem_ch13.adb: Remove some additional checks for unaligned arrays
36230 * cstand.adb (Create_Standard): Print out package standard if -gnatS
36233 * debug.adb: Update doc for -gnatds to discuss relationship with new
36236 * sinfo.adb: Add new field Entity_Or_Associated_Node
36238 * sinfo.ads: Add new field Entity_Or_Associated_Node
36239 Update documentation for Associated_Node and Entity fields to clarify
36240 relationship and usage.
36243 (Write_Id): Properly process Associated_Node field in generic template
36246 Recognize new -gnatS switch for printing package Standard
36247 This replaces gnatpsta
36250 Add line for new -gnatS switch for printing package Standard
36251 This replaces gnatpsta
36253 2003-11-10 Andreas Jaeger <aj@suse.de>
36255 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
36258 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36260 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
36263 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36265 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
36268 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
36270 * sysdep.c: Add handling of cygwin.
36272 2003-11-10 GNAT Script <nobody@gnat.com>
36274 * Make-lang.in: Makefile automatically updated
36276 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36279 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
36280 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
36281 Replace GNAT_ROOT by GCC_ROOT.
36283 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
36285 2003-11-06 Zack Weinberg <zack@codesourcery.com>
36287 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
36288 and update for changed meaning of GET_MODE_BITSIZE.
36290 2003-11-04 Doug Rupp <rupp@gnat.com>
36292 * sysdep.c: Problem discovered during IA64 VMS port.
36293 [VMS] #include <unixio.h> to get proper prototypes.
36296 Issues discovered/problems fixed during IA64 VMS port.
36297 [VMS] #define _POSIX_EXIT for proper semantics.
36298 [VMS] #include <unixio.h> for proper prototypes.
36299 [VMS] (fork): #define IA64 version.
36300 (__gnat_os_exit): Remove unnecessary VMS specific code.
36302 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36304 Part of PR ada/12806
36305 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
36309 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
36312 * targtyps.c, decl.c, misc.c,
36313 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
36314 routines to work around change in FP sizing semantics in GCC.
36317 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
36319 * gigi.h: (enumerate_modes): New function.
36321 * Make-lang.in: (ada/misc.o): Add real.h.
36323 * misc.c: (enumerate_modes): New function.
36325 2003-11-04 Robert Dewar <dewar@gnat.com>
36327 * 3vtrasym.adb: Minor reformatting
36328 Use terminology encoded/decoded name, rather than C++ specific notion
36329 of mangling (this is the terminology used throughout GNAT).
36331 * einfo.h: Regenerated
36333 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
36336 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
36338 * par-prag.adb: Add dummy entry for Thread_Body pragma
36341 Add entries for System.Threads entities for thread body processing
36344 (Analyze_Pragma, Access attributes): Check these are not applied to a
36345 thread body, since this is not permitted
36347 * sem_prag.adb: Add processing for Thread_Body pragma.
36351 (Resolve_Call): Check for incorrect attempt to call a thread body
36352 procedure with a direct call.
36354 * snames.ads, snames.adb: Add entry for Thread_Body pragma
36355 Add names associated with thread body expansion
36357 * snames.h: Add entry for Thread_Body pragma
36359 * s-thread.adb: Add entries for thread body processing
36360 These are dummy bodies so far
36362 * s-thread.ads: Add documentation on thread body handling.
36363 Add entries for thread body processing.
36365 2003-11-04 Javier Miranda <miranda@gnat.com>
36368 (Build_Limited_Views): Return after posting an error in case of limited
36369 with_clause on subprograms, generics, instances or generic renamings
36370 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
36371 on subprograms, generics, instances or generic renamings
36373 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
36375 * raise.c (setup_to_install): Correct mistake in last revision; two
36376 arguments out of order.
36378 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
36379 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
36380 notice, missed in previous change.
36381 Remove trailing blanks and other style errors introduced in previous
36384 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
36386 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
36387 rid of the wrapper for a LJM type, ensuring we don't do that if the
36388 field is addressable. This avoids potential low level type view
36389 mismatches later on, for instance in a by-reference argument passing
36392 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36394 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
36395 aligned at byte boundary.
36397 2003-11-04 Joel Brobecker <brobecker@gnat.com>
36399 * decl.c (components_to_record): Do not delete the empty variants from
36400 the end of the union type.
36402 2003-11-04 Ed Schonberg <schonberg@gnat.com>
36404 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
36405 operation for a derived type, an explicit declaration may use a local
36406 subtype of Boolean.
36408 2003-11-04 Vincent Celier <celier@gnat.com>
36410 * make.adb (Gnatmake): Allow main sources on the command line with a
36411 library project when it is only for compilation (no binding or
36414 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36416 * Makefile.in: Remove many duplicate variables.
36418 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
36420 * Make-lang.in (dvi): Move targets to $(docobjdir).
36421 (gnat_ug_vms.dvi): Simplify rule and adjust target.
36422 (gnat_ug_wnt.dvi): Likewise.
36423 (gnat_ug_unx.dvi): Likewise.
36424 (gnat_ug_vxw.dvi): Likewise.
36425 (gnat_rm.dvi): Likewise.
36426 (gnat-style.dvi): Likewise.
36428 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
36430 * gigi.h: Missed commit from update for C90.
36432 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
36434 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
36436 2003-10-31 Andreas Schwab <schwab@suse.de>
36438 * raise.c (get_action_description_for): Fix typo in last change.
36440 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
36443 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
36444 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
36446 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
36448 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
36449 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
36450 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
36451 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
36452 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
36454 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
36457 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
36458 numbers when symbol name is too long.
36460 2003-10-30 Ed Falis <falis@gnat.com>
36462 * g-signal.ads, g-signal.adb: New files
36464 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
36466 * Makefile.rtl: Introduce GNAT.Signals
36468 2003-10-30 Robert Dewar <dewar@gnat.com>
36470 * freeze.adb: Minor reformatting
36472 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
36474 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
36475 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
36476 New handling of Id_Check parameter to improve recognition of keywords
36477 used as identifiers.
36478 Update copyright notice to include 2003
36480 2003-10-29 Robert Dewar <dewar@gnat.com>
36482 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
36483 sem_ch10.adb: Minor reformatting
36485 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
36486 (Expand_Assign_Record): Test right hand side for bit unaligned as well
36488 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
36490 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
36491 Support for TBK$SYMBOLIZE-based symbolic traceback.
36493 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
36496 Revert previous change, that did not work well when pragma No_Run_Time
36497 was used in conjunction with a run-time other than ZFP.
36499 2003-10-29 Vincent Celier <celier@gnat.com>
36502 (Gnatmake): When there are no Ada mains in attribute Main, disable the
36503 bind and link steps only is switch -z is not used.
36505 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
36507 * Makefile.generic: Remove duplicated setting of CC.
36509 * Makefile.prolog: Set CC to gcc by default, to override make's
36512 * einfo.h: Regenerated.
36514 2003-10-29 Ed Schonberg <schonberg@gnat.com>
36516 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
36517 current body, after compiling subunit.
36519 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
36520 when in deleted code, because gigi needs properly ordered freeze
36521 actions to annotate types.
36523 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
36524 prevent the premature freezing of record type that contains
36525 subcomponents with a private type that does not yet have a completion.
36527 2003-10-29 Javier Miranda <miranda@gnat.com>
36530 (Analyze_Package_Instantiation): Check that instances can not be used in
36531 limited with_clauses.
36534 (Analyze_Package_Renaming): Check that limited withed packages cannot
36535 be renamed. Improve text on error messages related to limited
36538 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
36540 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
36541 Update copyright notice.
36543 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
36544 (Install_Limited_Context_Clauses): New subprogram that isolates all the
36545 checks required for limited context_clauses and installs the limited
36547 (Install_Limited_Withed_Unit): Complete its documentation.
36548 (Analyze_Context): Check that limited with_clauses are only allowed in
36550 (Install_Context): Call Install_Limited_Context_Clauses after the
36551 parents have been installed.
36552 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
36553 package as 'From_With_Type'; this mark indicates that the limited view
36554 is installed. Used to check bad usages of limited with_clauses.
36555 (Build_Limited_Views): Do not add shadow entities to the scope's list
36556 of entities. Do not add real entities to the Non_Limited_Views chain.
36557 Improve error notification.
36558 (Remove_Context_Clauses): Remove context clauses in two phases:
36559 limited views first and regular views later (to maintain the
36561 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
36562 its visible entities.
36564 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
36566 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
36567 with any type that Is_Fixed_Point_Type.
36569 * sinfo.ads: Fix documentation for Associated_Node attribute.
36571 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
36573 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
36574 both '-gnatc' and '-gnatt' are specified.
36576 * atree.adb (Initialize): Add initialization for Node_Count (set to
36579 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36581 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
36582 do not consider as Pure.
36584 Part of implementation of function-at-a-time:
36586 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
36587 (tree_transform): Add new argument to build_component_ref.
36588 (tree_transform, case N_Assignment_Statement): Make and return an
36590 (tree_transform): If result IS_STMT, set flags and return it.
36591 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36593 * utils2.c (build_simple_component_ref, build_component_ref): Add new
36595 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
36596 (build_allocator): Likewise.
36598 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
36599 Add new arg to build_component_ref.
36600 (maybe_unconstrained_array, unchecked_convert): Likewise.
36602 * ada-tree.def (EXPR_STMT): New code.
36604 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
36606 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
36607 build_component_ref calls.
36609 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
36611 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
36612 (build_component_ref): Add new argument, NO_FOLD_P.
36614 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
36616 * Makefile.generic: Add missing substitution on object_deps handling.
36619 * Make-lang.in (check-ada): Enable ACATS test suite.
36621 2003-10-27 Robert Dewar <dewar@gnat.com>
36624 (Freeze_Array_Type): We do not need an initialization routine for types
36625 derived from String or Wide_String. They should be treated the same
36626 as String and Wide_String themselves. This caused problems with the
36627 use of Initialize_Scalars.
36630 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
36631 composites. This allows use of component clauses that are not byte
36635 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
36636 is an attempt to pack an array of atomic objects.
36638 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
36640 2003-10-27 Pascal Obry <obry@gnat.com>
36643 (Basename): Check for drive letters in a pathname only on DOS based OS.
36645 2003-10-27 Vincent Celier <celier@gnat.com>
36648 (Gnatmake): When unable to change dir to the object dir, display the
36649 content of the parent dir of the obj dir, to try to understand why this
36652 2003-10-27 GNAT Script <nobody@gnat.com>
36654 * Make-lang.in: Makefile automatically updated
36656 2003-10-27 Ed Schonberg <schonberg@gnat.com>
36659 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
36660 should not be done in Save/Restore_Scope_Stack, because it is performed
36664 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36665 whether use clauses should be removed/restored.
36668 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
36669 whether use clauses should be removed/restored.
36671 2003-10-26 Andreas Jaeger <aj@suse.de>
36673 * Makefile.in: Remove duplicated lines.
36675 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36677 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
36678 minimize the differences with ACT tree.
36680 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
36681 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
36682 Gnatvsn.Gnat_Static_Version_String to reduce differences between
36685 2003-10-24 Pascal Obry <obry@gnat.com>
36688 * adadecode.c (ostrcpy): New function.
36689 (__gnat_decode): Use ostrcpy of strcpy.
36690 (has_prefix): Set first parameter a const.
36691 (has_suffix): Set first parameter a const.
36692 Update copyright notice. Fix source name in header.
36693 Removes a trailing space.
36695 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
36698 Remove the test against being in No_Run_Time_Mode before generating a
36699 call to Register_Tag. It is redundant with the test against the
36700 availability of the function Register_Tag.
36702 2003-10-24 Vincent Celier <celier@gnat.com>
36704 * g-catiio.adb: (Month_Name): Correct spelling of February
36706 * make.adb: (Mains): New package
36707 (Initialize): Call Mains.Delete
36708 (Gnatmake): Check that each main on the command line is a source of a
36709 project file and, if there are several mains, each of them is a source
36710 of the same project file.
36711 (Gnatmake): When a foreign language is specified in attribute Languages,
36712 no main is specified on the command line and attribute Mains is not
36713 empty, only build the Ada main. If there is no Ada main, just compile
36714 the Ada sources and their closure.
36715 (Gnatmake): If a main is specified on the command line with directory
36716 information, check that the source exists and, if it does, that the path
36717 is the actual path of a source of a project.
36720 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
36721 Full_Path is True, return the full path instead of the simple file name.
36722 (Project_Of): New function
36725 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
36726 defaulted to False.
36727 (Project_Of): New function
36729 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36731 * Makefile.generic:
36732 Ensure objects of main project are always checked and rebuilt if needed.
36733 Set CC to gcc by default.
36734 Prepare new handling of link by creating a global archive (not activated
36737 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36738 stringt.h: Update copyright notice. Remove trailing blanks.
36739 Fix source name in header.
36741 2003-10-24 Robert Dewar <dewar@gnat.com>
36743 * sem_ch12.adb: Minor reformatting
36746 Minor reformatting (including new function return style throughout)
36749 Minor reformatting (including new function return style throughout)
36751 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
36753 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
36754 stringt.h: Update copyright notice. Remove trailing blanks.
36755 Fix source name in header.
36757 2003-10-24 GNAT Script <nobody@gnat.com>
36759 * Make-lang.in: Makefile automatically updated
36761 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
36763 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
36764 stringt.h: Convert to ISO C90 declarations and definitions.
36766 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
36769 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
36770 External_Tag attribute definition clauses.
36772 2003-10-23 Ed Schonberg <schonberg@gnat.com>
36775 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
36776 child unit, generate a fully qualified name to avoid spurious errors
36777 when the context contains renamings of different child units with
36778 the same simple name.
36780 * exp_dbug.ads: Add documentation on name qualification for renamings
36783 2003-10-23 Robert Dewar <dewar@gnat.com>
36785 * g-regpat.ads, g-regpat.adb: Minor reformatting
36787 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
36789 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
36791 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36793 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
36796 * urealp.h: (Machine): Update to proper definition.
36798 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
36800 * init.c, adaint.c: Minor reformatting.
36802 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
36804 * adaint.c (w32_epoch_offset): Define static const at file level.
36805 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
36806 rather than t_create, t_access in call to GetFileTime. Use union
36807 to convert between FILETIME and unsigned long long.
36808 (__gnat_file_time_name): Test for invalid file handle.
36809 (__gnat_set_filetime_name): Support win32 targets using
36810 w32api SetFileTime.
36812 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
36814 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
36816 * ctrl_c.c (__gnat_int_handler): Remove declaration.
36818 * decl.c (creat_concat_name): Const-ify prefix.
36820 * adaint.c: Include ctype.h if __MINGW32__.
36821 (__gnat_readlink): Mark arguments as possibly unused.
36822 (__gnat_symlink): Likewise.
36823 (__gnat_is_symbolic_link): Likewise.
36824 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
36826 (__gnat_file_time_name): Don't declare struct stat statbuf when
36828 (__gnat_is_absolute_path): Add parenthesis around condition of
36829 'if' statement to avoid warning.
36830 (__gnat_plist_init): Specify void as parameter.
36831 (plist_enter): Likewise.
36832 (plist_leave): Likewise.
36833 (remove_handle): Make static. Initialize prev.
36835 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
36838 * Makefile.in: Disable build of gnatpsta.
36839 * cstreams.c (__gnat_full_name): Minor improvements and clean up
36840 of previous change.
36842 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36844 * tracebak.c (MAX): Avoid redefinition warning.
36846 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
36847 Change msg to const char *.
36848 (__gnat_install_handler): Remove ss, unused.
36849 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
36851 * cstreams.c (__gnat_full_name): Declare p only when used.
36852 (__gnat_full_name) [sgi] Return buffer.
36854 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
36856 * mingw32.h: New file.
36857 * gnat_wrapper.adb: New file.
36859 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
36861 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
36862 string match a pre compiled regular expression (the corresponding
36863 version of the function working on a raw regular expression)
36864 Fix typos in various comments
36865 Update copyright notice in spec
36867 2003-10-21 Gary Dismukes <dismukes@gnat.com>
36870 (Component_Needs_Simple_Initialization): Return False when the type is a
36871 packed bit array. Revise spec comments to document this case.
36874 (Expand_Pragma_Import): Set any expression on the imported object to
36875 empty to avoid initializing imported objects (in particular this
36876 covers the case of zero-initialization of bit arrays).
36877 Update copyright notice.
36879 2003-10-21 Ed Schonberg <schonberg@gnat.com>
36882 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
36883 a subunit is missing.
36884 (Instantiate_Subprogram_Body): If body of function is missing, set type
36885 of return expression explicitly in dummy body, to prevent cascaded
36886 errors when a subunit is missing.
36890 (Access_Subprogram_Declaration): Verify that return type is valid.
36894 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
36899 (Corresponding_Discriminant): If the scope of the discriminant is a
36900 private type without discriminant, use its full view.
36903 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
36905 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
36906 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
36907 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
36908 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
36909 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
36910 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
36911 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36912 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
36913 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
36914 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
36915 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
36916 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
36917 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
36918 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
36919 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
36920 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
36921 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
36922 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
36923 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
36924 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
36925 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
36926 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
36927 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
36928 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
36929 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
36930 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
36931 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
36932 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
36933 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
36934 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
36935 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
36936 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
36937 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
36938 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
36939 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
36940 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
36941 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
36942 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
36943 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
36944 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
36945 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
36946 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
36947 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
36948 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
36949 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
36950 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
36951 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
36952 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
36953 vms_conv.ads, vms_conv.adb, vms_data.ads,
36954 vxaddr2line.adb: Files added. Merge with ACT tree.
36956 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
36957 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
36958 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
36959 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
36960 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
36961 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
36962 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
36963 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
36964 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
36965 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
36967 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
36968 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
36969 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
36970 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
36971 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
36972 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
36973 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
36974 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
36975 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
36976 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
36977 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36978 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
36979 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
36980 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36981 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
36982 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
36983 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
36984 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
36985 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
36986 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
36987 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
36988 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
36989 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
36990 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
36991 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
36992 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
36993 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
36994 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
36995 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
36996 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
36997 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
36998 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
36999 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
37000 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
37001 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
37002 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
37003 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
37004 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
37005 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
37006 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
37007 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
37008 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
37009 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
37010 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
37011 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
37012 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
37013 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
37014 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
37015 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
37016 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
37017 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
37018 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
37019 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
37020 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
37021 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
37022 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
37023 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
37024 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
37025 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
37026 checks.adb, checks.ads, cio.c, comperr.adb,
37027 comperr.ads, csets.adb, cstand.adb, cstreams.c,
37028 debug_a.adb, debug_a.ads, debug.adb, decl.c,
37029 einfo.adb, einfo.ads, errout.adb, errout.ads,
37030 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
37031 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
37032 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
37033 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
37034 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
37035 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
37036 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
37037 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
37038 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
37039 fe.h, fmap.adb, fmap.ads, fname.adb,
37040 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
37041 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
37042 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
37043 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37044 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37045 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37046 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
37047 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
37048 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
37049 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
37050 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
37051 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
37052 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
37053 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
37054 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
37055 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
37056 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
37057 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
37058 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
37059 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
37060 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
37061 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
37062 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
37063 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
37064 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
37065 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
37066 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
37067 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
37068 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
37069 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
37070 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
37071 layout.adb, lib.adb, lib.ads, lib-list.adb,
37072 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
37073 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
37074 link.c, live.adb, make.adb, make.ads,
37075 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
37076 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
37077 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
37078 misc.c, mkdir.c, mlib.adb, mlib.ads,
37079 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
37080 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
37081 namet.adb, namet.ads, namet.h, nlists.ads,
37082 nlists.h, nmake.adt, opt.adb, opt.ads,
37083 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
37084 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
37085 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
37086 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
37087 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
37088 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
37089 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
37090 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
37091 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
37092 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
37093 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
37094 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
37095 prj-util.adb, prj-util.ads, raise.c, raise.h,
37096 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
37097 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
37098 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
37099 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
37100 scans.ads, scn.adb, scn.ads, s-crc32.adb,
37101 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
37102 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
37103 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
37104 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
37105 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
37106 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37107 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37108 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
37109 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
37110 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
37111 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
37112 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
37113 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
37114 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
37115 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37116 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
37117 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
37118 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
37119 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
37120 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
37121 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
37122 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
37123 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
37124 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
37125 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
37126 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
37127 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
37128 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
37129 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
37130 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
37131 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
37132 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
37133 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
37134 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
37135 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
37136 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
37137 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
37138 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
37139 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
37140 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
37141 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
37142 stringt.adb, stringt.ads, stringt.h, style.ads,
37143 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
37144 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
37145 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
37146 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
37147 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
37148 table.adb, table.ads, targparm.adb, targparm.ads,
37149 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
37150 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
37151 ttypes.ads, types.ads, types.h, uintp.adb,
37152 uintp.ads, uintp.h, uname.adb, urealp.adb,
37153 urealp.ads, urealp.h, usage.adb, utils2.c,
37154 utils.c, validsw.adb, validsw.ads, widechar.adb,
37155 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
37156 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
37157 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
37158 gnatvsn.ads: Merge with ACT tree.
37160 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
37162 2003-10-20 Mark Mitchell <mark@codesourcery.com>
37164 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
37165 (gnat_ug_vmx.info): Likewise.
37166 (gnat_ug_vxw.info): Likewise.
37167 (gnat_ug_wnt.info): Likewise.
37168 (gnat_rm.info): Likewise.
37169 (gnat-style.info): Likewise.
37171 * Make-lang.in (ada.install-info): Remove target.
37172 (info): New target.
37173 (install-info): Likewise.
37174 (gnat_ug_unx.info): Simplify rule.
37175 (gnat_ug_vmx.info): Likewise.
37176 (gnat_ug_vxw.info): Likewise.
37177 (gnat_ug_wnt.info): Likewise.
37178 (gnat_rm.info): Likewise.
37179 (gnat-style.info): Likewise.
37181 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
37183 * Make-lang.in: Replace uses of $(target_alias) with
37184 $(target_noncanonical).
37185 * ada/Makefile.in: Remove unused mention of $(target_alias).
37187 2003-10-06 Mark Mitchell <mark@codesourcery.com>
37189 * Make-lang.in (ada.info): Replace with ...
37191 (ada.dvi): Replace with ...
37194 2003-09-29 Zack Weinberg <zack@codesourcery.com>
37196 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
37197 initialize dconstp5 and dconstmp5.
37199 2003-09-28 Richard Henderson <rth@redhat.com>
37201 * trans.c (tree_transform): Update call to expand_asm_operands.
37203 2003-09-21 Richard Henderson <rth@redhat.com>
37205 * trans.c, utils.c: Revert.
37207 2003-09-21 Richard Henderson <rth@redhat.com>
37209 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
37212 2003-09-04 Michael Matz <matz@suse.de>
37214 * misc.c: Include "target.h".
37215 * Make-lang.in (misc.o): Add dependency on target.h.
37217 2003-09-03 DJ Delorie <dj@redhat.com>
37219 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
37222 2003-08-30 Zack Weinberg <zack@codesourcery.com>
37224 * Makefile.in: Update substitutions to match changes to
37225 configure. Use include directives instead of @-insertions
37226 to read in host and target fragments. Add a rule to
37227 regenerate ada/Makefile.
37229 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
37231 * lang-options.h: Remove.
37232 * lang.opt: Add help text.
37234 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
37236 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
37239 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
37241 * misc.c (gnat_handle_option): Don't handle filenames.
37243 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
37245 * Make-lang.in: Replace PWD with PWD_COMMAND.
37246 * Makefile.adalib: Likewise.
37247 * Makefile.in: Likewise.
37249 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
37251 * misc.c (gnat_argv): Revert last change.
37252 (gnat_handle_option, gnat_init_options): Copy arguments.
37254 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
37256 * misc.c (gnat_argv): Make const.
37258 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
37260 * misc.c (save_argc, save_argv): Keep non-static!
37262 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
37264 * misc.c (save_argc, save_argv): Make static.
37265 (gnat_init_options): New prototype.
37266 (gnat_init_options): Update.
37268 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
37270 * gnat_ug.texi: Remove unlikely characters from @vars.
37271 * gnat_ug_vms.texi: Regenerate.
37273 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
37275 * misc.c (record_code_position): Adjust emit_note call.
37277 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
37279 * misc.c (gnat_handle_option): Don't check for missing arguments.
37281 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
37283 * utils.c (end_subprog_body): Adjust expand_function_end call.
37285 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
37287 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
37290 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
37292 * lang.opt: Declare Ada.
37293 * misc.c (gnat_init_options): Update.
37295 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
37297 * utils.c (begin_subprog_body): Adjust init_function_start call.
37299 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
37301 * Make-lang.in: Update to use options.c and options.h.
37302 * misc.c: Include options.h not aoptions.h.
37303 (gnat_handle_option): Abort on unrecognized switch.
37304 (gnat_init_options): Request Ada switches.
37306 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
37308 * lang.opt: Add -Wall.
37309 * misc.c (gnat_handle_option): Handle it.
37311 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
37313 * misc.c (gnat_handle_option): Fix warnings.
37315 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
37317 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
37319 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
37321 * Make-lang.in: Update to handle command-line options.
37322 * lang.opt: New file.
37323 * misc.c: Include aoptions.h.
37324 (cl_options_count, cl_options): Remove.
37325 (gnat_handle_option): New.
37326 (gnat_decode_option): Remove.
37327 (LANG_HOOKS_DECODE_OPTION): Remove.
37328 (LANG_HOOKS_HANDLE_OPTION): Override.
37330 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
37332 * init.c, misc.c, trans.c, utils.c: Remove dead code.
37334 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
37336 * Makefile.in: Replace "host_canonical" with "host" for autoconf
37339 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
37341 * Make-lang.in: Update.
37342 * misc.c: Include opts.h. Define cl_options_count and cl_options.
37344 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
37346 * misc.c (gnat_init_options): Update.
37348 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37350 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
37351 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
37352 __attribute__ ((__unused__)).
37354 2003-06-05 Jan Hubicka <jh@suse.cz>
37356 * Make-lang.in: Add support for stageprofile and stagefeedback
37358 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37360 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
37361 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
37363 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
37365 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
37366 Remove non-VMS directive.
37367 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
37369 (Examples of gnatls Usage): Remove VMS alternative.
37371 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
37374 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
37375 and turn ZCX_By_Default back to False since the underlying support
37376 is not quite there yet.
37378 2003-06-01 Andreas Jaeger <aj@suse.de>
37380 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
37381 and ROUND_TYPE_SIZE_UNIT.
37383 2003-05-22 Geert Bosch <bosch@gnat.com>
37385 * gnat_rm.texi : Remove reference to Ada Core Technologies.
37387 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
37389 * trans.c (tree_transform): Use location_t and input_location
37391 (build_unit_elab): Likewise.
37392 * utils.c (create_label_decl): Likewise.
37394 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
37396 * trans.c (tree_transform, build_unit_elab,
37397 set_lineno): Rename lineno to input_line.
37398 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
37399 end_subprog_body): Likewise.
37400 * utils2.c (build_call_raise): Likewise.
37402 2003-05-01 Laurent Guerby <guerby@acm.org>
37405 * 5iosinte.ads: Increase pthread_cond_t size to match recent
37406 LinuxThread and NPTL version, merge from ACT.
37408 2003-04-28 Zack Weinberg <zack@codesourcery.com>
37410 * utils.c (convert): No need to clear TREE_CST_RTL.
37412 2003-04-23 Geert Bosch <bosch@gnat.com>
37414 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
37415 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
37416 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
37417 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
37418 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
37419 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
37420 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
37421 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
37422 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
37423 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
37424 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
37425 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
37426 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
37427 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
37428 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
37429 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
37430 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
37431 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
37432 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
37433 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
37434 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
37435 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
37436 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
37437 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
37438 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
37439 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
37440 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
37441 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
37442 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
37443 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
37444 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
37445 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
37446 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
37447 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
37448 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
37449 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
37450 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
37451 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
37452 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
37453 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
37454 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
37455 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
37456 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
37457 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
37458 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
37459 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
37460 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
37461 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
37462 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
37463 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
37464 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
37465 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
37466 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
37467 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
37468 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
37469 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
37470 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
37471 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
37472 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
37473 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
37474 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
37475 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
37476 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
37477 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
37478 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
37479 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
37480 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
37481 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
37482 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
37483 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
37484 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
37485 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
37486 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
37487 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
37488 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
37489 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
37490 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
37491 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
37492 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
37493 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
37494 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
37495 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
37496 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
37497 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
37498 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
37499 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
37500 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
37501 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
37502 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
37503 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
37504 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
37505 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
37506 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
37507 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
37508 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
37509 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
37510 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
37511 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
37512 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
37513 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
37514 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
37515 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
37516 ali.adb, ali.ads, alloc.ads, argv.c,
37517 atree.adb, atree.ads, atree.h, aux-io.c,
37518 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
37519 binde.adb, binde.ads, binderr.adb, binderr.ads,
37520 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
37521 butil.adb, butil.ads, cal.c, calendar.ads,
37522 casing.adb, casing.ads, ceinfo.adb, checks.adb,
37523 checks.ads, cio.c, comperr.adb, comperr.ads,
37524 config-lang.in, csets.adb, csets.ads, csinfo.adb,
37525 cstand.adb, cstand.ads, cuintp.c, debug.adb,
37526 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
37527 dec-io.ads, dec.ads, deftarg.c, directio.ads,
37528 einfo.adb, einfo.ads, elists.adb, elists.ads,
37529 elists.h, errno.c, errout.adb, errout.ads,
37530 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
37531 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
37532 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
37533 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
37534 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
37535 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
37536 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
37537 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
37538 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
37539 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
37540 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
37541 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
37542 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
37543 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
37544 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
37545 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
37546 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
37547 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
37548 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
37549 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
37550 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37551 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37552 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37553 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
37554 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
37555 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
37556 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
37557 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
37558 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
37559 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
37560 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
37561 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
37562 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
37563 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
37564 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
37565 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
37566 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
37567 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
37568 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
37569 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
37570 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
37571 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
37572 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
37573 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
37574 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
37575 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
37576 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
37577 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
37578 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
37579 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
37580 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
37581 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
37582 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
37583 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
37584 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
37585 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
37586 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
37587 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
37588 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
37589 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
37590 lib.adb, lib.ads, live.adb, live.ads,
37591 machcode.ads, make.adb, make.ads, makeusg.adb,
37592 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
37593 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
37594 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
37595 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
37596 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
37597 mlib.ads, namet.adb, namet.ads, nlists.adb,
37598 nlists.ads, opt.adb, opt.ads, osint-b.adb,
37599 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
37600 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
37601 osint.ads, output.adb, output.ads, par-ch10.adb,
37602 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
37603 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
37604 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
37605 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
37606 par-tchk.adb, par-util.adb, par.adb, par.ads,
37607 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
37608 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
37609 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
37610 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
37611 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
37612 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
37613 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
37614 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
37615 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
37616 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
37617 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
37618 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
37619 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
37620 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
37621 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
37622 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
37623 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
37624 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
37625 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
37626 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
37627 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
37628 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
37629 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37630 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
37631 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
37632 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
37633 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
37634 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
37635 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
37636 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
37637 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
37638 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
37639 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
37640 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
37641 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
37642 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
37643 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
37644 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
37645 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
37646 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
37647 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
37648 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
37649 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
37650 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
37651 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
37652 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
37653 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
37654 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
37655 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
37656 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
37657 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
37658 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
37659 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
37660 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
37661 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
37662 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
37663 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
37664 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
37665 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
37666 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
37667 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
37668 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
37669 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
37670 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
37671 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
37672 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
37673 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
37674 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
37675 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
37676 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
37677 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
37678 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
37679 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
37680 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
37681 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
37682 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
37683 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
37684 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
37685 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
37686 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
37687 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
37688 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
37689 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
37690 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
37691 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
37692 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
37693 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
37694 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
37695 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
37696 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
37697 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
37698 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
37699 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
37700 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
37701 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
37702 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
37703 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
37704 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
37705 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
37706 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
37707 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
37708 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
37709 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
37710 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
37711 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
37712 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
37713 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
37714 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
37715 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
37716 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
37717 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37718 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37719 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
37720 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
37721 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
37722 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
37723 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
37724 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
37725 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
37726 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
37727 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
37728 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
37729 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
37730 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
37731 snames.ads, sprint.adb, sprint.ads, stand.adb,
37732 stand.ads, stringt.adb, stringt.ads, style.adb,
37733 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
37734 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
37735 switch-m.ads, switch.adb, switch.ads, system.ads,
37736 table.adb, table.ads, targparm.adb, targparm.ads,
37737 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
37738 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
37739 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
37740 ttypef.ads, ttypes.ads, types.adb, types.ads,
37741 uintp.adb, uintp.ads, uname.adb, uname.ads,
37742 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
37743 usage.adb, usage.ads, validsw.adb, validsw.ads,
37744 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
37745 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
37746 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
37747 formatting and other trivial changes from ACT.
37749 2003-04-12 Zack Weinberg <zack@codesourcery.com>
37751 * gigi.h, utils2.c (build_constructor):
37752 Rename gnat_build_constructor. Use build_constructor.
37753 * decl.c (gnat_to_gnu_entity)
37754 * trans.c (tree_transform, pos_to_constructor, extract_values)
37755 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
37756 (unchecked_convert)
37757 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
37758 (fill_vms_descriptor):
37761 2003-04-06 Zack Weinberg <zack@codesourcery.com>
37763 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
37764 * misc.c (gnat_tree_size): New function.
37765 (LANG_HOOKS_TREE_SIZE): Override.
37767 2003-04-03 Jason Merrill <jason@redhat.com>
37769 * misc.c (gnat_adjust_rli): #if 0.
37771 2003-03-31 Geert Bosch <bosch@gnat.com>
37774 * link.c : Fix misspelled "const" keyword
37776 2003-03-23 Mark Mitchell <mark@codesourcery.com>
37779 * utils2.c: Adjust calls to put_var_into_stack.
37781 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
37783 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
37785 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
37787 * misc.c (gnat_init): Update for new prototype.
37789 2003-03-05 Olivier Hainque <hainque@gnat.com>
37792 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
37793 warning, and fix return type for the IN_RTS && !SJLJ case.
37795 2003-03-04 Tom Tromey <tromey@redhat.com>
37797 * Make-lang.in (ada.tags): New target.
37799 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
37802 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
37803 wrapper, which name remains constant whatever underlying GCC
37806 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
37807 the stable interface needed for a-except.
37809 2003-03-02 Andreas Jaeger <aj@suse.de>
37811 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37812 gnat_ug_wnt.texi: Regenerate.
37814 2003-03-02 Laurent Guerby <guerby@acm.org>
37816 * Makefile.in (install-gnatlib): Match previous change there
37819 2003-02-28 Andreas Schwab <schwab@suse.de>
37821 * Make-lang.in (install-gnatlib): Change to ada directory before
37822 running make instead of using ada/Makefile directly.
37824 2003-02-18 Ben Elliston <bje@redhat.com>
37826 Part of PR ada/9406
37827 * gnat_ug.texi (Binder output file): Grammar fix.
37829 2003-02-18 Ben Elliston <bje@redhat.com>
37832 * 5qtaprop.adb (Sleep): Fix typo in comment.
37834 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
37836 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
37837 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37838 gnat_ug_wnt.texi: Regenerate.
37840 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
37842 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
37843 be created if necessary.
37844 (ada.install-common): Let $(DESTDIR)$(bindir) be created
37845 if necessary. Remove erroneous and redundant gnatchop
37846 installation commands. Test for gnatdll before attempting
37848 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
37849 and gnatdll from all plausible locations.
37851 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
37853 * utils2.c (build_unary_op): Don't check flag_volatile.
37854 * gnat_ug.texi: Remove -fvolatile from example.
37855 * gnat_ug_vxw.texi: Likewise.
37857 2003-01-29 Laurent Guerby <guerby@acm.org>
37860 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
37861 * Makefile.in: match previous change.
37862 * Make-lang.in: match previous change.
37864 2003-01-29 Joel Sherrill <joel@OARcorp.com>
37866 * 5rosinte.ads: Add SIGXCPU.
37867 * 5rtpopsp.adb: New file.
37868 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
37869 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
37870 specific file 5rtpopsp.adb.
37871 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
37872 is likely needed for all newlib targets.
37873 * init.c: Add RTEMS specific version of __gnat_initialize().
37875 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37877 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
37879 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37881 * init.c (__gnat_error_handler): Make msg const.
37883 * gmem.c (convert_addresses): Move declaration ...
37884 * adaint.h: ... here.
37885 * adaint.c (convert_addresses): Adapt addrs type to match
37888 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
37890 2003-01-24 Andreas Schwab <schwab@suse.de>
37892 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
37893 size_t to avoid warning.
37895 2003-01-21 Zack Weinberg <zack@codesourcery.com>
37897 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
37899 2003-01-09 Geoffrey Keating <geoffk@apple.com>
37901 * gnat_rm.texi: Remove RCS version number.
37903 * ada-tree.h (union lang_tree_node): Add chain_next option.
37905 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
37907 * Make-lang.in (ada.install-info, ada.install-common,
37908 ada.uninstall): Prepend $(DESTDIR) to the destination
37909 directory in all (un)installation commands.
37910 * Makefile.in (install-gnatlib, install-rts): Ditto.
37912 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
37914 * gnat_rm.texi, gnat_ug.texi: Use @copying.
37915 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37916 gnat_ug_wnt.texi: Regenerate.
37918 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
37920 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
37922 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
37923 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
37924 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
37925 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
37926 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
37927 $(srcdir)/doc/include/gcc-common.texi.
37929 2002-12-15 Geert Bosch <bosch@gnat.com>
37931 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
37933 2002-12-14 Geert Bosch <bosch@gnat.com>
37936 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
37937 case of a body created for a Renaming_As_Body, on which
37938 conformance checks are not performed.
37940 2002-11-30 Zack Weinberg <zack@codesourcery.com>
37942 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
37943 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
37944 not already included.
37945 * Make-lang.in: Update dependencies.
37947 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
37948 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
37949 solution to buffer overflow bug on GNU/Linux.
37951 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
37955 * bindgen.adb: Remove all references to Public_Version.
37956 * comperr.adb: Remove all references to Public_Version and
37957 GNATPRO_Version; correct bug reporting instructions.
37958 * comperr.ads: Change to match bug box.
37959 * gnatvsn.ads: Remove all references to Public version and
37962 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
37965 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
37969 * config-lang.in: Remove diff_excludes.
37971 2002-11-05 Graham Stott <graham.stott@btinternet.com>
37974 * trans.c (gnu_pending_elaboration_lists): New GC root.
37975 (build_unit_elab): Use..
37977 2002-10-30 Geert Bosch <bosch@gnat.com>
37980 * misc.c : Include optabs.h
37982 * Make-lang.in (misc.o): Add dependency on optabs.h
37984 2002-10-29 Geert Bosch <bosch@gnat.com>
37987 * Make-lang.in (gnatbind): Depend on CONFIG_H
37989 2002-10-29 Geert bosch <bosch@gnat.com>
37992 * misc.c: Unrevert misc.c (1.13)
37994 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
37996 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
37997 maintainership comments.
37999 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
38002 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
38003 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
38004 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
38005 7staprop.adb: Correct statements in comments about
38006 maintainership of GNAT.
38009 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
38010 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
38011 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
38012 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
38013 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
38014 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
38015 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
38016 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
38017 comments about maintainership of GNAT.
38019 PR ada/6919 (forward port of patch for PR ada/5904)
38020 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
38021 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
38022 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
38023 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
38024 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
38025 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
38026 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
38027 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
38028 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
38029 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
38030 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
38031 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
38032 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
38033 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
38034 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
38035 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
38036 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
38037 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
38038 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
38039 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
38040 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
38041 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
38042 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
38043 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
38044 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
38045 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
38046 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
38047 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
38048 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
38049 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
38050 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
38051 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
38052 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
38053 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
38054 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
38055 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
38056 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
38057 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
38058 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
38059 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
38060 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
38061 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
38062 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
38063 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
38064 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
38065 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
38066 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
38067 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
38068 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
38069 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
38070 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
38071 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
38072 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
38073 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
38074 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
38075 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
38076 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
38077 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
38078 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
38079 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
38080 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
38081 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
38082 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
38083 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
38084 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
38085 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
38086 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
38087 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
38088 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
38089 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
38090 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
38091 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
38092 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
38093 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
38094 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
38095 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
38096 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
38097 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
38098 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
38099 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
38100 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
38101 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
38102 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
38103 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
38104 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
38105 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
38106 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
38107 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
38108 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
38109 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
38110 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
38111 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
38112 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
38113 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
38114 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
38115 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
38116 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
38117 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
38118 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
38119 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
38120 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
38121 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
38122 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
38123 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
38124 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
38125 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
38126 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
38127 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
38128 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
38129 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
38130 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
38131 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
38132 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
38133 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
38134 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
38135 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
38136 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
38137 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
38138 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
38139 par-endh.adb par-labl.adb par-load.adb par-prag.adb
38140 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
38141 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
38142 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
38143 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
38144 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
38145 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
38146 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
38147 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
38148 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
38149 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
38150 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
38151 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
38152 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
38153 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
38154 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
38155 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
38156 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
38157 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
38158 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
38159 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
38160 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
38161 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
38162 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
38163 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
38164 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
38165 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
38166 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
38167 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
38168 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
38169 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
38170 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
38171 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
38172 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
38173 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
38174 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
38175 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
38176 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
38177 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
38178 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
38179 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
38180 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
38181 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
38182 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
38183 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
38184 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
38185 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
38186 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
38187 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
38188 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
38189 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
38190 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
38191 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
38192 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
38193 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
38194 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
38195 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
38196 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
38197 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
38198 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
38199 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
38200 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
38201 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
38202 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
38203 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
38204 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
38205 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
38206 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
38207 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
38208 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
38209 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
38210 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
38211 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
38212 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
38213 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
38214 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
38215 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
38216 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
38217 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
38218 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
38219 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
38220 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
38221 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
38222 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
38223 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
38224 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
38225 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
38226 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
38227 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
38228 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
38229 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
38230 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
38231 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
38232 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
38233 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
38234 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
38235 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
38236 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
38237 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
38238 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
38239 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
38240 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
38241 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
38242 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
38243 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
38244 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
38245 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
38246 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
38247 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
38248 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
38249 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
38250 stringt.ads stringt.h style.adb style.ads stylesw.adb
38251 stylesw.ads switch.adb switch.ads sysdep.c system.ads
38252 table.adb table.ads targparm.adb targparm.ads targtyps.c
38253 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
38254 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
38255 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
38256 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
38257 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
38258 usage.ads utils.c utils2.c validsw.adb validsw.ads
38259 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
38260 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
38261 xtreeprs.adb: Correct statements in comments about maintainership
38264 2002-09-23 Zack Weinberg <zack@codesourcery.com>
38266 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
38267 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
38268 * gnatvsn.ads: Gnat_Version_String is now a function.
38269 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
38270 copy the C version_string into a String and return it.
38271 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
38272 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
38273 Remove pragma Ident (Gnat_Version_String). If this was the
38274 sole use of package Gnatvsn, remove the with statement too.
38275 * gnat1drv.adb: Tweak -gnatv output.
38277 2002-09-17 Richard Henderson <rth@redhat.com>
38279 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
38280 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
38281 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
38282 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
38283 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
38284 and real_2expN instead of a loop.
38285 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
38286 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
38288 2002-08-25 Andre Leis <a.leis@gmx.net>
38289 David Billinghurst <David.Billinghurst@riotinto.com>
38291 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
38293 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38295 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
38296 Remove $(CONFIG_H) dependency.
38298 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
38300 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
38302 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38304 * adadecode.c (ada_demangle): Use xstrdup in lieu of
38306 * misc.c (gnat_decode_option): Likewise.
38308 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
38310 * make.adb (Add_Switch): Make Generic_Position a procedure. The
38311 function approach did not work well because of a side effect (the
38312 function call could reallocate the table which was being indexed
38313 using its result). Fixes ada/4851. [RESURRECTED]
38315 2002-07-01 Roger Sayle <roger@eyesopen.com>
38317 * ada/utils.c (builtin_function): Accept an additional parameter.
38319 2002-06-28 Andreas Jaeger <aj@suse.de>
38322 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
38325 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38327 * Makefile.in (SHELL): Set to @SHELL@.
38329 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38331 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
38332 array size calculation.
38334 2002-06-04 Andreas Jaeger <aj@suse.de>
38336 * Make-lang.in (gnatbind): Readd rule that has been lost in last
38339 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
38341 Merge from pch-branch:
38343 * config-lang.in (gtfiles): Add ada-tree.h.
38344 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
38345 (SET_TYPE_MODULUS): New.
38346 (SET_TYPE_INDEX): New.
38347 (SET_TYPE_DIGITS_VALUE): New.
38348 (SET_TYPE_RM_SIZE): New.
38349 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
38350 (SET_TYPE_ADA_SIZE): New.
38351 (SET_TYPE_ACTUAL_BOUNDS): New.
38352 (SET_DECL_CONST_CORRESPONDING_VAR): New.
38353 (SET_DECL_ORIGINAL_FIELD): New.
38354 (TREE_LOOP_ID): Correct typo.
38355 * decl.c: Use new macros.
38356 * utils.c: Include debug.h, use new macros.
38357 * utils2.c: Use new macros.
38359 * ada-tree.h: Update all macros for new tree description.
38360 (struct tree_loop_id): New.
38361 (union lang_tree_node): New.
38362 (struct lang_decl): New.
38363 (struct lang_type): New.
38364 * misc.c (gnat_mark_tree): Delete.
38365 (LANG_HOOKS_MARK_TREE): Delete.
38366 * trans.c (tree_transform): No longer any need to cast
38369 * utils.c (struct language_function): New dummy structure.
38371 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
38372 (misc.o): Likewise.
38373 (utils.o): Likewise; also gtype-ada.h.
38374 * Make-lang.in (gnat1): Add dependency on s-gtype.
38375 (gnatbind): Add dependency on $(CONFIG_H).
38376 * utils.c: Correct last #include.
38377 (stuct e_stack): Remove unnecessary 'static'.
38378 (mark_e_stack): Remove unused prototype.
38380 * scn-nlit.adb: Remove whitespace after version number to
38381 keep lines under 80 chars.
38382 * snames.adb: Likewise.
38383 * treepr.ads: Likewise.
38385 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
38386 (misc.o): Likewise.
38387 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
38388 * config-lang.in (gtfiles): New.
38389 * decl.c: Use gengtype for roots.
38390 * gigi.h: Use gengtype for roots.
38391 * trans.c: Use gengtype for roots.
38392 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
38394 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
38396 * misc.c (gnat_init): Adjust setting of internal_error_function.
38398 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
38400 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
38401 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38402 gnat_ug_wnt.texi: Regenerate.
38404 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
38406 * 5ntaprop.adb (with System.OS_Primitives): Remove.
38408 * cstreams.c (max_path_len): Move from here ...
38409 * adaint.c (__gnat_max_path_len): ... to here.
38410 * adaint.c (__gnat_max_path_len): Declare.
38411 * g-dirope.adb (Max_Path): Adjust.
38412 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
38413 * i-cstrea.ads (max_path_len): Adjust.
38414 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
38415 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
38417 * Makefile.in, Make-lang.in: Documentation is now built in
38418 Make-lang.in. Store Info and generated Texinfo files in the
38420 * gnat_ug.texi: Remove CVS keywords, correct version number.
38421 Set file name correctly.
38423 * gnat_ug_*.texi: Add.
38424 * .cvsignore: Ignore generated Texinfo files.
38426 2002-05-30 Zack Weinberg <zack@codesourcery.com>
38428 * ada.h: Add MI guard macro.
38429 (SUBTYPE): Define constants with an anonymous enum, not static
38431 (IN): Cast constants to appropriate type before use.
38433 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
38435 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
38438 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38440 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
38441 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
38442 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
38443 (ALL_ADA_CFLAGS): Likewise.
38444 (ADA_INCLUDES): Likewise.
38445 Adapt for new working dir.
38446 (GNATBIND): Use Makefile.in version.
38447 (.SUFFIXES): Copy from Makefile.in.
38448 (ada-warn): Define.
38449 (.adb.o, .ads.o): Copy from Makefile.in.
38450 Added $(OUTPUT_OPTION).
38451 (GNAT1_C_OBJS): Moved from Makefile.in.
38452 Prefix with ada subdir.
38453 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
38454 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
38455 Adapt for new working dir.
38456 (EXTRA_GNATBIND_OBJS): Likewise.
38457 (ADA_BACKEND): Moved from Makefile.in.
38458 Renamed to avoid conflict with global BACKEND.
38460 (TARGET_ADA_SRCS): Moved from Makefile.in.
38461 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
38463 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
38464 (ada_extra_files): Moved from Makefile.in.
38465 Prefix with ada subdir.
38466 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
38467 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
38468 (ada/nmake.ads): Likewise.
38469 (update-sources): Moved from Makefile.in.
38470 Prefix with ada subdir.
38471 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
38472 (ADA_TREE_H): Likewise.
38473 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
38474 (ada/memtrack.o): Likewise.
38475 (ada/adadecode.o): Likewise.
38476 Update dependencies.
38477 (ada/adaint.o): New.
38478 (ada/argv.o): Moved from Makefile.in.
38479 Prefix with ada subdir.
38480 Update dependencies.
38481 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
38482 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
38483 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
38484 Prefix with ada subdir.
38485 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
38486 (GNAT DEPENDENCIES): Regenerate.
38487 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
38488 toplevel Makefile.in.
38489 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
38490 (TARGET_ADA_SRCS): Removed.
38491 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
38492 (GNATBIND_OBJS): Likewise.
38493 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
38494 (BACKEND): Removed.
38495 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
38496 (TREE_H): Likewise.
38497 (ada_extra_files): Likewise.
38498 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
38499 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
38500 (update-sources): Likewise.
38501 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
38502 (ADA_TREE_H): Likewise.
38503 (adadecoce.o): Likewise.
38504 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
38505 (GNAT DEPENDENCIES): Likewise.
38507 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38509 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
38510 * Makefile.in: Likewise.
38512 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38514 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
38515 Restore $(CONFIG_H) and prefix.o dependencies.
38516 (ada.stage[1-4]): Depend on stage?-start.
38518 * Makefile.in (b_gnatb.c): Depend on interfac.o.
38520 2002-05-02 Jim Wilson <wilson@redhat.com>
38522 * utils.c (finish_record_type): Change record_size to record_type.
38524 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
38526 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
38527 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
38528 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
38530 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
38532 * misc.c (gnat_parse_file): Update.
38534 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
38536 * misc.c (gnat_init): Don't set lang_attribute_common.
38538 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
38540 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
38542 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
38544 * gnat_ug.texi: New file.
38546 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
38547 instead of gfdl.texi
38549 * xgnatug.adb, ug_words: New files.
38551 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
38552 gnat_rm and gnat-style manuals.
38554 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
38556 * gigi.h (incomplete_type_error): Remove.
38557 * utils.c (incomplete_type_error): Remove.
38559 2002-04-16 Mark Mitchell <mark@codesourcery.com>
38561 * trans.c (tree_transform): Add has_scope argument to
38562 expand_start_stmt_expr.
38564 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
38566 * gigi.h (truthvalue_conversion): Rename.
38567 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
38568 * trans.c (tree_transform): Update.
38569 * utils2.c (truthvalue_conversion): Rename, update.
38570 (build_binary_op, build_unary_op): Update.
38572 2002-04-04 Laurent Guerby <guerby@acm.org>
38574 * make.adb: Implement -margs, remove restriction about file name placement.
38575 * makeusg.adb: Documentation update.
38576 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
38577 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
38579 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
38581 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
38582 (builtin_function): Similarly.
38584 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
38586 * decl.c (gnat_to_gnu_entity): Update.
38587 * gigi.h (mark_addressable): Rename.
38588 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
38589 * trans.c (tree_transform): Update.
38590 * utils.c (create_var_decl): Update.
38591 * util2.c (build_binary_op, build_unary_op,
38592 fill_vms_descriptor): Update.
38593 (mark_addressable): Rename, update.
38595 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
38597 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
38599 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
38600 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
38601 * trans.c (tree_transform, convert_with_check): Update.
38602 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
38605 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
38607 * gigi.h (finish_incomplete_decl): Rename.
38608 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
38609 * utils.c (gnat_init_decl_processing): Don't set hook.
38610 (finish_incomplete_decl): Rename.
38612 2002-03-29 Andreas Schwab <schwab@suse.de>
38614 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
38617 2001-03-28 Robert Dewar <dewar@gnat.com>
38620 (Remove_Checks): New procedure
38623 (Remove_Checks): New procedure
38626 Use new Duplicate_Subexpr functions
38627 (Duplicate_Subexpr_No_Checks): New procedure
38628 (Duplicate_Subexpr_No_Checks_Orig): New procedure
38629 (Duplicate_Subexpr): Restore original form (checks duplicated)
38630 (Duplicate_Subexpr): Call Remove_Checks
38633 (Duplicate_Subexpr_No_Checks): New procedure
38634 (Duplicate_Subexpr_No_Checks_Orig): New procedure
38635 Add 2002 to copyright notice
38637 * sem_util.adb: Use new Duplicate_Subexpr functions
38640 (Eval_Indexed_Component): This is the place to call
38641 Constant_Array_Ref and to replace the value. We simply merge
38642 the code of this function in here, since it is now no longer
38643 used elsewhere. This fixes the problem of the back end not
38644 realizing we were clever enough to see that this was
38646 (Expr_Val): Remove call to Constant_Array_Ref
38647 (Expr_Rep_Val): Remove call to Constant_Array_Ref
38649 (Constant_Array_Ref): Deal with string literals (patch
38650 suggested by Zack Weinberg on the gcc list)
38652 2001-03-28 Ed Schonberg <schonber@gnat.com>
38654 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
38655 Duplicate_Subexpr_Move_Checks.
38657 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
38658 Duplicate_Subexpr_Move_Checks.
38660 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
38661 value of array exists before retrieving it (it may a private
38662 protected component in a function).
38664 2002-03-28 Geert Bosch <bosch@gnat.com>
38666 * prj-pp.adb : New file.
38668 * prj-pp.ads : New file.
38670 2002-03-28 Andreas Jaeger <aj@suse.de>
38672 * Makefile.in (stamp-sdefault): Fix path for Makefile.
38674 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
38676 * misc.c (gnat_expand_expr): Move prototype.
38678 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38680 * misc.c (insert_default_attributes): Remove.
38682 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38684 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
38685 (gnat_init): Don't set hook.
38686 (gnat_expand_expr): Fix prototype.
38688 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
38690 * misc.c (ggc_p): Remove.
38692 2002-03-27 Geert Bosch <bosch@gnat.com>
38694 * prj-makr.ads, prj-makr.adb : New files.
38696 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
38698 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
38699 (lang_mark_tree): Make static, rename.
38701 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
38703 * misc.c (maybe_build_cleanup): Remove.
38705 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
38707 * gigi.h (yyparse): Remove.
38709 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
38711 From Ben Brosgol <brosgol@gnat.com>
38712 * gnat_rm.texi: Sync with ACT version.
38714 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
38716 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
38717 (gnat_init): Remove old hook.
38719 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
38721 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
38722 (yyparse): Rename gnat_parse_file.
38724 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
38726 Delete all lines containing "$Revision:".
38727 * xeinfo.adb: Don't look for revision numbers.
38728 * xnmake.adb: Likewise.
38729 * xsinfo.adb: Likewise.
38730 * xsnames.adb: Likewise.
38731 * xtreeprs.adb: Likewise.
38733 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38735 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
38736 gnat_tree_code_name): Delete.
38737 (tree_code_type, tree_code_length, tree_code_name): Define.
38738 (gnat_init): Don't try to copy into the various tree_code
38741 2002-03-11 Richard Henderson <rth@redhat.com>
38743 * Makefile.in (.NOTPARALLEL): Add fake tag.
38745 2002-03-07 Geert Bosch <bosch@gnat.com>
38747 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
38748 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
38749 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
38750 switch-m.adb, switch-m.ads : New files.
38752 2002-03-07 Geert Bosch <bosch@gnat.com>
38754 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
38755 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
38756 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
38757 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
38758 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
38759 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
38760 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
38761 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
38762 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
38763 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
38764 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
38765 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
38766 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
38767 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
38768 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
38769 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
38770 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
38771 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
38772 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38773 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
38774 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
38775 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
38776 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
38777 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
38778 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
38779 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
38780 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
38781 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
38782 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
38783 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
38784 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
38785 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
38786 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
38787 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
38788 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
38789 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
38790 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38791 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
38792 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
38793 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
38794 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
38795 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
38796 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
38797 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
38798 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
38799 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
38800 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
38801 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
38802 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
38803 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
38804 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
38805 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
38806 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
38807 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
38808 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
38809 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
38810 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
38811 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
38812 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
38813 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
38814 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
38815 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
38816 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
38817 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
38818 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
38819 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
38820 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
38821 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
38822 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
38823 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
38824 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
38825 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
38826 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
38827 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
38828 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
38829 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38830 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
38831 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38832 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
38833 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38834 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
38835 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
38836 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
38837 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
38838 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
38839 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
38840 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
38841 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
38842 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
38843 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
38844 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
38845 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
38846 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
38847 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
38848 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
38849 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
38850 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
38852 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
38853 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
38854 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
38855 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
38857 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
38858 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
38860 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
38861 to mdll-fil.ad[bs] and mdll-util.ad[bs]
38863 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
38864 from mdllfile.ad[bs] and mdlltool.ad[bs]
38866 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38868 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
38869 lieu of explicit sizeof/sizeof.
38871 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
38873 * misc.c (copy_lang_decl): Remove.
38875 2002-02-27 Zack Weinberg <zack@codesourcery.com>
38877 * misc.c: Delete traditional-mode-related code copied from the
38878 C front end but not used, or used only to permit the compiler
38881 2002-02-07 Richard Henderson <rth@redhat.com>
38883 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
38884 * adaint.h (__gnat_to_gm_time): Update prototype.
38886 2002-01-30 Richard Henderson <rth@redhat.com>
38888 * trans.c (tree_transform) [N_Loop_Statement]: Use
38889 expand_exit_loop_top_cond.
38891 2001-12-23 Richard Henderson <rth@redhat.com>
38893 * utils.c (end_subprog_body): Push GC context around
38894 rest_of_compilation for nested functions.
38896 2001-12-23 Richard Henderson <rth@redhat.com>
38898 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
38900 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
38902 * gnat-style.texi (Declarations and Types): Remove ancient style
38903 rule which was mandated by code generation issues.
38905 * gnat-style.texi (header): Add @dircategory, @direntry.
38906 (title page): Remove date.
38907 (general) Add @./@: where approriate, and two spaces after the
38908 full stop at the end of a sentence. Use @samp markup when
38909 referring concrete lexical entities (keywords, attribute names
38910 etc.), and @syntax for ARM grammar elements. Use @r for English
38911 text in comments. Use @emph for emphasis. Change "if-statements"
38912 etc. to "if statements" (without @samp). Break long lines. Make
38913 casing of section names consistent.
38914 (Identifiers): Use @samp markup for variable names.
38915 (Comments): Use @samp markup for comment characters. Line-end
38916 comments may follow any Ada code, not just statements. Fix
38917 misspelling of "Integer" as "integer".
38918 (Loop statements): Do not use variable name "I", use "J".
38919 (Subprogram Declarations): Document alignment.
38920 (Subprogram Bodies, Block statements): Document empty line before
38923 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
38925 * make.adb (Add_Switch): Make Generic_Position a procedure. The
38926 function approach did not work well because of a side effect (the
38927 function call could reallocate the table which was being indexed
38928 using its result). Fixes ada/4851.
38930 2001-12-19 Robert Dewar <dewar@gnat.com>
38932 * bindgen.adb: Minor reformatting
38934 * cstand.adb: Minor reformatting
38936 * fmap.adb: Minor reformatting
38937 Change name from Add for Add_To_File_Map (Add is much too generic)
38938 Change Path_Name_Of to Mapped_Path_Name
38939 Change File_Name_Of to Mapped_File_Name
38940 Fix copyright dates in header
38943 Change name from Add for Add_To_File_Map (Add is much too generic)
38944 Change Path_Name_Of to Mapped_Path_Name
38945 Change File_Name_Of to Mapped_File_Name
38946 Fix copyright dates in header
38948 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
38949 Add use clause for Fmap.
38951 * make.adb: Minor reformatting
38953 * osint.adb: Minor reformatting. Change of names in Fmap.
38954 Add use clause for Fmap.
38956 * prj-env.adb: Minor reformatting
38958 * prj-env.ads: Minor reformatting
38960 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
38961 error found (there were odd exceptions to this general rule in
38962 -gnatec/-gnatem processing)
38964 2001-12-19 Olivier Hainque <hainque@gnat.com>
38966 * raise.c (__gnat_eh_personality): Exception handling personality
38967 routine for Ada. Still in rough state, inspired from the C++ version
38968 and still containing a bunch of debugging artifacts.
38969 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
38970 inspired from the C++ library.
38972 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
38973 exception handling integration.
38975 2001-12-19 Arnaud Charlet <charlet@gnat.com>
38977 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
38978 (HIE_SOURCES): Add s-secsta.ad{s,b}.
38979 (HIE_OBJS): Add s-fat*.o
38980 (RAVEN_SOURCES): Remove files that are no longer required. Add
38981 interrupt handling files.
38982 (RAVEN_MOD): Removed, no longer needed.
38984 2001-12-19 Robert Dewar <dewar@gnat.com>
38986 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
38987 Add 2001 to copyright date
38989 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
38990 need to force universal inlining for these cases.
38992 2001-12-19 Arnaud Charlet <charlet@gnat.com>
38994 * s-taprob.adb: Minor clean ups so that this unit can be used in
38997 * exp_ch7.adb: Allow use of secondary stack in HI mode.
38998 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
39000 2001-12-19 Vincent Celier <celier@gnat.com>
39002 * prj-tree.ads (Project_Node_Record): Add comments for components
39003 Pkg_Id and Case_Insensitive.
39005 2001-12-19 Pascal Obry <obry@gnat.com>
39007 * g-socket.adb: Minor reformatting. Found while reading code.
39009 2001-12-19 Robert Dewar <dewar@gnat.com>
39011 * prj-tree.ads: Minor reformatting
39013 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
39015 * config-lang.in (diff_excludes): Remove.
39017 2001-12-17 Ed Schonberg <schonber@gnat.com>
39019 * sem_res.adb (Resolve_Selected_Component): do not generate a
39020 discriminant check if the selected component is a component of
39021 the argument of an initialization procedure.
39023 * trans.c (tree_transform, case of arithmetic operators): If result
39024 type is private, the gnu_type is the base type of the full view,
39025 given that the full view itself may be a subtype.
39027 2001-12-17 Robert Dewar <dewar@gnat.com>
39029 * sem_res.adb: Minor reformatting
39031 * trans.c (tree_transform, case N_Real_Literal): Add missing third
39032 parameter in call to Machine (unknown horrible effects from this
39035 * urealp.h: Add definition of Round_Even for call to Machine
39036 Add third parameter for Machine
39038 2001-12-17 Ed Schonberg <schonber@gnat.com>
39040 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
39041 predefined units in No_Run_Time mode.
39043 2001-12-17 Richard Kenner <kenner@gnat.com>
39045 * misc.c (insn-codes.h): Now include.
39047 2001-12-17 Olivier Hainque <hainque@gnat.com>
39049 * a-except.adb: Preparation work for future integration of the GCC 3
39050 exception handling mechanism
39051 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
39052 to factorize previous code sequences and make them externally callable,
39053 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
39054 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
39055 Use the new notification routines.
39057 2001-12-17 Emmanuel Briot <briot@gnat.com>
39059 * prj-tree.ads (First_Choice_Of): Document the when others case
39061 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39063 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
39064 HI-E mode, in order to support Ravenscar profile properly.
39066 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
39067 mode on 32 bits targets.
39069 2001-12-17 Vincent Celier <celier@gnat.com>
39071 * fmap.adb: Initial version.
39073 * fmap.ads: Initial version.
39075 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
39076 If search is successfully done, add to mapping.
39078 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
39081 (Gnatmake): Add new local variable Mapping_File_Name.
39082 Create mapping file when using project file(s).
39083 Delete mapping file before exiting.
39085 * opt.ads (Mapping_File_Name): New variable
39087 * osint.adb (Find_File): Use path name found in mapping, if any.
39089 * prj-env.adb (Create_Mapping_File): New procedure
39091 * prj-env.ads (Create_Mapping_File): New procedure.
39093 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
39096 * usage.adb: Add entry for new switch -gnatem.
39098 * Makefile.in: Add dependencies for fmap.o.
39100 2001-12-17 Ed Schonberg <schonber@gnat.com>
39102 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
39103 is a package instantiation rewritten as a package body.
39104 (Install_Withed_Unit): Undo previous change, now redundant.
39106 2001-12-17 Gary Dismuke <dismukes@gnat.com>
39109 (Compute_Length): Move conversion to Unsigned to callers.
39110 (Get_Max_Size): Convert Len expression to Unsigned after calls to
39111 Compute_Length and Determine_Range.
39112 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
39113 Compute_Length and Determine_Range.
39114 Above changes fix problem with length computation for supernull arrays
39115 where Max (Len, 0) wasn't getting applied due to the Unsigned
39116 conversion used by Compute_Length.
39118 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39121 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
39122 System.Secondary_Stack.
39123 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
39125 Remove unused entity RE_Exception_Data.
39127 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
39129 * rident.ads (No_Secondary_Stack): New restriction.
39131 2001-12-17 Joel Brobecker <brobecke@gnat.com>
39133 * gnat_rm.texi: Fix minor typos. Found while reading the section
39134 regarding "Bit_Order Clauses" that was sent to a customer.
39135 Very interesting documentation!
39137 2001-12-17 Robert Dewar <dewar@gnat.com>
39139 * sem_case.adb (Choice_Image): Avoid creating improper character
39140 literal names by using the routine Set_Character_Literal_Name. This
39141 fixes bombs in certain error message cases.
39143 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39145 * a-reatim.adb: Minor reformatting.
39147 2001-12-17 Ed Schonberg <schonber@gnat.com>
39149 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
39150 case where the formal is an extension of another formal in the current
39151 unit or in a parent generic unit.
39153 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39155 * s-tposen.adb: Update comments. Minor reformatting.
39156 Minor code clean up.
39158 * s-tarest.adb: Update comments. Minor code reorganization.
39160 2001-12-17 Gary Dismukes <dismukes@gnat.com>
39162 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
39165 2001-12-17 Robert Dewa <dewar@gnat.com>
39167 * exp_attr.adb: Minor reformatting
39169 2001-12-17 Ed Schonberg <schonber@gnat.com>
39171 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
39172 derivations nested within a child unit: verify that the parent
39173 type is declared in an outer scope.
39175 2001-12-17 Robert Dewar <dewar@gnat.com>
39177 * sem_ch12.adb: Minor reformatting
39179 2001-12-17 Ed Schonberg <schonber@gnat.com>
39181 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
39182 warning if current unit is a predefined one, from which bodies may
39185 2001-12-17 Robert Dewar <dewar@gnat.com>
39187 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
39188 Fix header format. Add 2001 to copyright date.
39190 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
39191 which caused CE during compilation if checks were enabled.
39193 2001-12-17 Vincent Celier <celier@gnat.com>
39196 (Switches_Of): New function
39197 (Test_If_Relative_Path): New procedure
39198 (Add_Switches): Use new function Switches_Of
39199 (Collect_Arguments_And_Compile): Use new function Switches_Of.
39200 When using a project file, test if there are any relative
39201 search path. Fail if there are any.
39202 (Gnatmake): Only add switches for the primary directory when not using
39203 a project file. When using a project file, change directory to the
39204 object directory of the main project file. When using a project file,
39205 test if there are any relative search path. Fail if there are any.
39206 When using a project file, fail if specified executable is relative
39207 path with directory information, and prepend executable, if not
39208 specified as an absolute path, with the exec directory. Make sure
39209 that only one -o switch is transmitted to the linker.
39211 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
39214 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
39215 when using a non standard naming scheme.
39216 (Check_Ada_Naming_Scheme): Make sure that error messages
39217 do not raise exceptions.
39218 (Is_Illegal_Append): Return True if there is no dot in the suffix.
39219 (Language_Independent_Check): Check the exec directory.
39221 * prj.adb (Project_Empty): Add new component Exec_Directory
39224 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
39225 (Project_Data): Add component Exec_Directory
39227 * snames.adb: Updated to match snames.ads revision 1.215
39229 * snames.ads: Added Exec_Dir
39231 2001-12-17 Robert Dewar <dewar@gnat.com>
39233 * make.adb: Minor reformatting
39235 * prj-nmsc.adb: Minor reformatting
39237 * snames.adb: Updated to match snames.ads
39239 * snames.ads: Alphebetize entries for project file
39241 2001-12-17 Ed Schonberg <schonber@gnat.com>
39243 * trans.c (process_freeze_entity): Do nothing if the entity is a
39244 subprogram that was already elaborated.
39246 2001-12-17 Richard Kenner <kenner@gnat.com>
39248 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
39249 and Esize if object is referenced via pointer.
39251 2001-12-17 Ed Schonberg <schonber@gnat.com>
39253 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
39254 is discrete before analyzing choices.
39256 2001-12-17 Joel Brobecker <brobecke@gnat.com>
39258 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
39259 containing the name of the Ada Main Program. This string is mainly
39260 intended for the debugger.
39261 (Gen_Output_File_C): Do the equivalent change when generating a C file.
39263 2001-12-17 Robert Dewar <dewar@gnat.com>
39265 * ali.adb: Set new Dummy_Entry field in dependency entry
39267 * ali.ads: Add Dummy_Entry field to source dependency table
39269 * bcheck.adb (Check_Consistency): Ignore dummy D lines
39271 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
39273 * lib-writ.ads: Document dummy D lines for missing files.
39275 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
39277 2001-12-17 Robert Dewar <dewar@gnat.com>
39279 * ali.adb: Type reference does not reset current file.
39281 * ali.adb: Recognize and scan renaming reference
39283 * ali.ads: Add spec for storing renaming references.
39285 * lib-xref.ads: Add documentation for handling of renaming references
39287 * lib-xref.adb: Implement output of renaming reference.
39290 (Determine_Range): Document local variables
39291 (Determine_Range): Make sure Hbound is initialized. It looks as though
39292 there could be a real problem here with an uninitialized reference
39293 to Hbound, but no actual example of failure has been found.
39295 2001-12-17 Laurent Pautet <pautet@gnat.com>
39298 Fix comment of Shutdown_Socket and Close_Socket. These functions
39299 should not fail silently because if they are called twice, this
39300 probably means that there is a race condition in the user program.
39301 Anyway, this behaviour is consistent with the rest of this unit.
39302 When an error occurs, an exception is raised with the error message
39303 as exception message.
39305 2001-12-17 Robert Dewar <dewar@gnat.com>
39307 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
39308 that it happens before modification of Sloc values for -gnatD.
39310 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
39311 so that it happens before modification of Sloc values for -gnatD.
39313 * switch.adb: Minor reformatting
39315 2001-12-15 Richard Henderson <rth@redhat.com>
39317 * sem_ch7.adb: Wrap comment.
39319 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
39321 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
39322 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
39323 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
39324 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
39325 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
39326 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
39327 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
39328 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
39329 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
39330 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
39331 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
39332 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
39333 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
39334 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
39335 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
39336 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
39337 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
39338 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
39339 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
39340 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
39341 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
39342 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
39343 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
39344 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
39347 2001-12-14 Vincent Celier <celier@gnat.com>
39349 * osint.adb(Create_Debug_File): When an object file is specified,
39350 put the .dg file in the same directory as the object file.
39352 2001-12-14 Robert Dewar <dewar@gnat.com>
39354 * osint.adb: Minor reformatting
39356 * lib-xref.adb (Output_Instantiation): New procedure to generate
39357 instantiation references.
39359 * lib-xref.ads: Add documentation of handling of generic references.
39361 * ali.adb (Read_Instantiation_Ref): New procedure to read
39362 instantiation references
39364 * ali.ads: Add spec for storing instantiation references
39366 * bindusg.adb: Minor reformatting
39368 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39370 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39372 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39374 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39378 Add 2001 to copyright date
39379 Add entry for Latin-5 (Cyrillic ISO-8859-5)
39381 2001-12-14 Matt Gingell <gingell@gnat.com>
39383 * adaint.c: mktemp is a macro on Lynx and can not be used as an
39386 2001-12-14 Richard Kenner <kenner@gnat.com>
39388 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
39389 if operand is CONSTRUCTOR.
39391 2001-12-14 Ed Schonberg <schonber@gnat.com>
39393 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
39394 before emiting check on right-hand side, so that exception information
39397 2001-12-14 Richard Kenner <kenner@gnat.com>
39399 * utils.c (create_var_decl): Throw away initializing expression
39400 if just annotating types and non-constant.
39402 2001-12-14 Vincent Celier <celier@gnat.com>
39404 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
39407 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39409 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
39411 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39413 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
39415 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
39417 * ChangeLog: Remove piece of diff output.
39419 2001-12-14 Geert Bosch <bosch@gnat.com>
39421 * config-lang.in: Update copyright notice
39423 * layout.adb: Remove commented out code.
39425 * mdllfile.ads: Update copyright notice. Fix header format.
39427 * sem_case.ads: Likewise.
39429 * sem_ch3.adb: Minor reformatting.
39431 2001-12-12 Geert Bosch <bosch@gnat.com>
39433 * freeze.ads: Update copyright date.
39435 * g-comlin.ads: Minor reformatting.
39437 * gnat-style.texi: Fix typo.
39439 2001-12-12 Geert Bosch <bosch@gnat.com>
39441 * einfo.h: Regenerate.
39443 2001-12-12 Ed Schonberg <schonber@gnat.com>
39445 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
39446 on known node types, rather than untyped fields. Further cleanups.
39448 2001-12-12 Robert Dewar <dewar@gnat.com>
39451 (Save_Entity_Descendant): Minor comment update.
39452 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
39453 of an N_Attribute_Reference node. As per note below, this does not
39454 eliminate need for Associated_Node in attribute ref nodes.
39455 (Associated_Node): Documentation explicitly mentions attribute
39456 reference nodes, since this field is used in such nodes.
39458 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
39460 2001-12-12 Robert Dewar <dewar@gnat.com>
39462 * s-stalib.adb: Add more comments on with statements being needed
39464 * par-ch12.adb: Minor reformatting
39466 * prj-dect.ads: Fix copyright header
39468 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
39469 inputs fit in 32 bits, but the result still overflows.
39471 * s-fatgen.ads: Minor comment improvement
39473 2001-12-12 Ed Schonberg <schonber@gnat.com>
39475 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
39476 formal derived type, look for an inherited component from the full
39477 view of the parent, if any.
39479 2001-12-12 Robert Dewar <dewar@gnat.com>
39481 * checks.ads (Apply_Alignment_Check): New procedure.
39483 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
39484 ensure that the alignment of objects with address clauses is
39485 appropriate, and raise PE if not.
39487 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
39488 Exp_Pakd.Known_Aligned_Enough
39490 * mdllfile.ads: Minor reformatting
39492 * mlib-fil.ads: Minor reformatting
39494 2001-12-12 Ed Schonberg <schonber@gnat.com>
39496 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
39497 fix to any component reference if enclosing record has non-standard
39500 2001-12-12 Vincent Celier <celier@gnat.com>
39502 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
39505 2001-12-12 Ed Schonberg <schonber@gnat.com>
39507 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
39510 2001-12-12 Robert Dewar <dewar@gnat.com>
39512 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
39514 2001-12-12 Emmanuel Briot <briot@gnat.com>
39516 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
39517 and it adds dependencies to system.io.
39519 2001-12-12 Pascal Obry <obry@gnat.com>
39521 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
39524 2001-12-11 Ed Schonberg <schonber@gnat.com>
39526 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
39527 that is the parent of other generics, the instance body replaces the
39528 instance node. Retrieve the instance of the spec, which is the one
39529 that is visible in clients and within the body.
39531 2001-12-11 Vincent Celier <celier@gnat.com>
39533 * gnatmain.adb: Initial version.
39535 * gnatmain.ads: Initial version.
39537 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
39539 * snames.adb: Updated to match snames.ads.
39541 * snames.ads: Added Gnatstub.
39543 2001-12-11 Vincent Celier <celier@gnat.com>
39545 * prj-attr.adb (Initialization_Data): Change name from
39546 Initialisation_Data.
39548 2001-12-11 Emmanuel Briot <briot@gnat.com>
39550 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
39551 + and * applied to backslashed expressions like \r.
39553 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
39555 * g-os_lib.ads: String_List type added, Argument_List type is now
39556 subtype of String_List.
39558 2001-12-11 Robert Dewar <dewar@gnat.com>
39560 * g-os_lib.ads: Change copyright to FSF
39561 Add comments for String_List type
39563 2001-12-11 Vincent Celier <celier@gnat.com>
39565 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
39566 string to the buffer).
39568 2001-12-11 Ed Schonberg <schonber@gnat.com>
39570 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
39573 * sem_attr.adb: Simplify previous fix for Address.
39574 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
39575 to avoid anomalies where the bound of the type appears to raise
39578 2001-12-11 Robert Dewar <dewar@gnat.com>
39580 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
39583 2001-12-11 Ed Schonber <schonber@gnat.com>
39585 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
39586 renamed unit before checking for recursive instantiations.
39588 2001-12-11 Emmanuel Briot <briot@gnat.com>
39590 * prj.ads: Add comments for some of the fields.
39592 2001-12-11 Robert Dewar <dewar@gnat.com>
39594 * lib-xref.adb (Output_Refs): Don't output type references outside
39595 the main unit if they are not otherwise referenced.
39597 2001-12-11 Ed Schonberg <schonber@gnat.com>
39599 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
39600 code and diagnose additional illegal uses
39602 * sem_util.adb (Is_Object_Reference): An indexed component is an
39603 object only if the prefix is.
39605 2001-12-11 Vincent Celier <celier@gnat.com>
39607 * g-diopit.adb: Initial version.
39609 * g-diopit.ads: Initial version.
39612 (Expand_Path): Avoid use of Unbounded_String
39613 (Find, Wildcard_Iterator): Moved to child package Iteration
39615 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
39617 2001-12-11 Robert Dewar <dewar@gnat.com>
39619 * sem_attr.adb: Minor reformatting
39621 2001-12-11 Ed Schonberg <schonber@gnat.com>
39623 * sem_ch3.adb: Clarify some ???.
39625 2001-12-11 Robert Dewar <dewar@gnat.com>
39627 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
39628 Exp_Pakd.Known_Aligned_Enough
39630 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
39631 version is moved to Exp_Ch13.
39633 2001-12-11 Robert Dewar <dewar@gnat.com>
39635 * einfo.ads: Minor reformatting
39637 * exp_ch5.adb: Add comment for previous.change
39639 * ali.adb: New interface for extended typeref stuff.
39641 * ali.ads: New interface for typeref stuff.
39643 * checks.adb (Apply_Alignment_Check): New procedure.
39645 * debug.adb: Add -gnatdM for modified ALI output
39647 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
39649 * lib-xref.adb: Extend generation of <..> notation to cover
39650 subtype/object types. Note that this is a complete rewrite,
39651 getting rid of the very nasty quadratic algorithm previously
39652 used for derived type output.
39654 * lib-xref.ads: Extend description of <..> notation to cover
39655 subtype/object types. Uses {..} for these other cases.
39656 Also use (..) for pointer types.
39658 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
39660 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
39661 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
39663 2001-12-11 Vincent Celier <celier@gnat.com>
39666 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
39667 Changed /BIND_ONLY to /ACTIONS=BIND
39668 Changed /LINK_ONLY to /ACTIONS=LINK
39670 2001-12-11 Ed Schonberg <schonber@gnat.com>
39672 * sem_ch8.adb (Find_Selected_Component): improved search for a
39673 candidate package in case of error.
39675 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
39676 chain back on scope stack before reinstalling use clauses.
39678 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
39679 is enabled, do not kill the code for the condition, to preserve
39682 2001-12-11 Robert Dewar <dewar@gnat.com>
39684 * checks.adb (Insert_Valid_Check): Apply validity check to expression
39685 of conversion, not to result of conversion.
39687 2001-12-11 Ed Schonberg <schonber@gnat.com>
39689 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
39690 before freezing parent. If the declarations are mutually recursive,
39691 an access to the current record type may be frozen before the
39692 derivation is complete.
39694 2001-12-05 Vincent Celier <celier@gnat.com>
39696 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
39697 -c /COMPILE_ONLY, -l /LINK_ONLY
39700 (Bind_Only): New Flag
39701 (Link_Only): New flag
39703 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
39706 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
39709 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
39710 (Gnatmake): Set the step flags. Only perform a step if the
39711 corresponding step flag is True.
39712 (Scan_Make_Arg): Reset the bind and link step flags when -u
39713 or -gnatc has been specified.
39715 2001-12-05 Ed Schonberg <schonber@gnat.com>
39717 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
39718 get bounds from right operand.
39720 * sem_eval.adb: Minor reformatting
39722 * exp_util.adb (Make_Literal_Range): use bound of literal rather
39723 than Index'First, its lower bound may be different from 1.
39725 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
39728 2001-12-05 Vincent Celier <celier@gnat.com>
39730 * prj-nmsc.adb Minor reformatting
39732 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
39733 set and libraries are not supported.
39735 2001-12-05 Ed Schonberg <schonber@gnat.com>
39737 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
39738 private view explicitly, so the back-end can treat as a global
39741 2001-12-05 Ed Schonberg <schonber@gnat.com>
39743 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
39744 unit, always replace instance node with new body, for ASIS use.
39746 2001-12-05 Vincent Celier <celier@gnat.com>
39748 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
39749 libraries are not supported and both attributes Library_Name and
39750 Library_Dir are specified.
39752 * prj-proc.adb (Expression): Set location of Result to location of
39755 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
39756 (prj-nmsc is now importing MLib.Tgt)
39758 * prj-proc.adb: Put the change indicated above that was forgotten.
39760 2001-12-05 Robert Dewar <dewar@gnat.com>
39762 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
39764 2001-12-05 Ed Schonberg <schonber@gnat.com>
39766 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
39767 constraint, introduce explicit subtype declaration and derive from it.
39769 * sem_ch3.adb: Minor reformatting
39771 2001-12-05 Robert Dewar <dewar@gnat.com>
39773 * checks.adb (Determine_Range): Increase cache size for checks.
39776 * exp_ch6.adb: Minor reformatting
39777 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
39778 a parameter whose root type is System.Address, since treating such
39779 subprograms as pure in the code generator is almost surely a mistake
39780 that will lead to unexpected results.
39782 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
39783 change handling of conversions.
39785 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
39787 2001-12-05 Ed Schonberg <schonber@gnat.com>
39789 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
39790 aggregate with static wrong size, attach generated Raise node to
39793 2001-12-05 Robert Dewar <dewar@gnat.com>
39795 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
39796 Fixes compilation abandoned bomb in B24009B.
39798 2001-12-05 Ed Schonberg <schonber@gnat.com>
39801 Document use of Associated_Node on Selected_Components.
39802 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
39803 to clarify use of untyped descendant fields.
39805 2001-12-05 Robert Dewar <dewar@gnat.com>
39807 * prj-dect.ads: Add ??? comment
39808 Add 2001 to copyright notice (was not done in after all)
39810 * prj-part.adb: Minor reformatting. Reword one awkward error message.
39812 * prj.ads: Minor reformatting throughout, and add some ??? comments
39814 * snames.ads: Minor reformatting
39816 2001-12-05 Geert Bosch <bosch@gnat.com>
39818 * snames.adb: Autoupdate
39820 2001-12-05 Vincent Celier <celier@gnat.com>
39822 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
39824 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
39826 * prj-env.adb: Minor comment changes (modifying -> extends).
39828 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
39830 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
39833 * prj.adb (Initialize): Change Modifying to Extends.
39835 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
39837 * prj.ads: Minor comment change (Modifying -> extending).
39839 * snames.ads: Change modifying to extends.
39841 2001-12-05 Robert Dewar <dewar@gnat.com>
39843 * sem_warn.adb: Remove stuff for conditionals, we are not going to
39846 * sem_warn.ads: Remove stuff for conditionals, we are not going to
39847 do this after all. Add 2001 to copyright notice
39849 2001-12-04 Geert Bosch <bosch@gnat.com>
39851 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
39853 2001-12-04 Robert Dewar <dewar@gnat.com>
39855 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
39856 location if we already have errors. Stops some cases of cascaded
39859 * errout.adb: Improve comment.
39861 2001-12-04 Robert Dewar <dewar@gnat.com>
39864 (Analyze_Formal_Type_Definition): Defend against Error.
39865 (Analyze_Formal_Subprogram): Defend against Error.
39867 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
39868 remove following semicolon if present. Removes cascaded error.
39870 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
39873 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
39874 exceptions equals 0.
39875 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
39876 Fixes PIWG E tests (which have to be run with -gnatL).
39878 2001-12-04 Robert Dewar <dewar@gnat.com>
39880 * einfo.ads: Minor reformatting
39882 2001-12-04 Ed Schonberg <schonber@gnat.com>
39884 * einfo.ads: Block_Node points to the identifier of the block, not to
39885 the block node itself, to preserve the link when the block is
39886 rewritten, e.g. within an if-statement with a static condition.
39888 * inline.adb (Cleanup_Scopes): recover block statement from block
39889 entity using new meaning of Block_Node.
39891 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
39892 identifier of block node, rather than to node itself.
39894 2001-12-04 Gary Dismukes <dismukes@gnat.com>
39897 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
39898 (Discrimify): Go back to setting the Etypes of the selected component
39899 because the Vname component does not exist at this point and will
39900 fail name resolution. Also set Analyzed.
39901 Remove with and use of Sem_Res.
39903 2001-12-04 Arnaud Charlet <charlet@gnat.com>
39905 * Makefile.in: (HIE_SOURCES): add s-fat*.
39907 2001-12-04 Robert Dewar <dewar@gnat.com>
39910 (Compile_Time_Known_Attribute): New procedure.
39911 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
39912 proper range check.
39914 2001-12-04 Ed Schonberg <schonber@gnat.com>
39916 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
39917 processing discriminants to diagnose illegal default values.
39919 2001-12-04 Ed Schonberg <schonber@gnat.com>
39921 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
39922 access discriminant within a type extension that constrains its
39923 parent discriminants.
39925 2001-12-04 Ed Schonberg <schonber@gnat.com>
39927 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
39928 is malformed, use instance of Any_Id to allow analysis to proceed.
39930 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
39931 type definition is illegal.
39932 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
39935 2001-12-04 Ed Schonberg <schonber@gnat.com>
39937 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
39940 2001-12-04 Robert Dewar <dewar@gnat.com>
39942 * errout.adb: Minor reformatting
39944 2001-12-04 Robert Dewar <dewar@gnat.com>
39946 * exp_util.adb: Minor reformatting from last change
39948 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
39949 which is a rewriting of an expression, traverse the original
39950 expression to remove warnings that may have been posted on it.
39952 2001-12-04 Ed Schonberg <schonber@gnat.com>
39954 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
39955 record that has other packed components.
39957 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
39959 * adaint.c: Minor cleanups.
39961 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
39963 * adaint.c: Do not use utime.h on vxworks.
39965 2001-12-04 Arnaud Charlet <charlet@gnat.com>
39967 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
39968 more confusion than it solves.
39970 2001-12-04 Geert bosch <bosch@gnat.com>
39972 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
39974 2001-12-04 Geert Bosch <bosch@gnat.com>
39976 * Makefile.in (update-sources): New target.
39977 For use by gcc_release script.
39979 2001-12-04 Ed Schonberg <schonber@gnat.com>
39981 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
39982 a configuration pragma, it is now legal wherever a pragma can appear.
39984 2001-12-04 Zack Weinberg <zack@codesourcery.com>
39986 * Makefile.in: Don't set ALL. Delete @cross_defines@,
39987 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
39988 is now @CROSS@ -DIN_GCC; update comment.
39990 2001-12-04 Robert Dewar <dewar@gnat.com>
39992 * einfo.adb (Has_Pragma_Pure_Function): New flag.
39993 Fix problem that stopped ceinfo from working
39995 * einfo.ads (Has_Pragma_Pure_Function): New flag.
39997 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
39999 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
40002 (File_Time_Stamp): New procedure.
40003 (Preserve_Mode): New boolean.
40004 (Write_Unit): Pass time stamp.
40005 Implement -p switch (preserve time stamps).
40007 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
40009 * gnatchop.adb: Do usage info for -p switch
40011 * adaint.h (__gnat_set_file_time_name): New function
40013 * adaint.c (__gnat_set_file_time_name): Implement
40015 * adaint.h: Fix typo
40017 2001-12-03 Robert Dewar <dewar@gnat.com>
40019 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
40020 have Associated_Node.
40022 2001-12-03 Robert Dewar <dewar@gnat.com>
40024 * prj-proc.adb: Minor reformatting
40026 * make.adb: Minor reformatting
40028 2001-12-03 Geert Bosch <bosch@gnat.com>
40030 * make.adb: Minor reformatting.
40032 2001-12-03 Robert Dewar <dewar@gnat.com>
40034 * sem_ch12.adb: Minor reformatting
40036 2001-12-03 Ed Schonberg <schonber@gnat.com>
40038 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
40039 push Standard on the stack before analyzing the instance body,
40040 in order to have a clean visibility environment.
40042 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
40044 2001-12-03 Ed Schonberg <schonber@gnat.com>
40046 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
40047 instantiation of a body that contains an inlined body.
40049 2001-12-03 Ed Schonberg <schonber@gnat.com>
40052 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
40053 to prevent freezing within formal packages.
40054 (Freeze_Subprogram_Body): If body comes from another instance that
40055 appeared before its own body, place freeze node at end of current
40056 declarative part, to prevent a back-end crash.
40057 (Inline_Instance_Body): Handle properly a package instance within
40058 a subprogram instance that is a child unit.
40060 2001-12-01 Graham Stott <grahams@redhat.com>
40062 * Makefile.in (misc.o): Add missing $(srcdir) prefix
40063 and add optabs.h dependency.
40065 * misc.c: Include optabs.h
40066 (gnat_tree_code_type): Make static and const.
40067 (gnat_tree_code_length): Likewise.
40068 (gnat_tree_code_name): Likewise.
40069 (update_setjmp_buf): Obtain operands mode from insn_data.
40071 2001-11-29 Richard Henderson <rth@redhat.com>
40073 * init.c: Remove obsolete dwarf2 frame.h section.
40075 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
40077 * Make-lang.in (ada.generated-manpages): New dummy target.
40079 2001-11-29 Ed Schonberg <schonber@gnat.com>
40081 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
40082 into Command, an array conversion is illegal here. Uncovered by
40085 2001-11-28 Geert Bosch <bosch@gnat.com>
40087 * init.c: Minor whitespace changes.
40089 2001-11-28 Doug Rupp <rupp@gnat.com>
40091 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
40094 2001-11-28 Zack Weinberg <zack@codesourcery.com>
40096 * misc.c (gnat_expand_constant): Move declaration above
40097 definition of lang_hooks.
40098 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
40099 (gnat_init): lang_expand_constant no longer exists.
40101 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
40102 always have vprintf.
40103 (gnat_init): Always call set_internal_error_function.
40105 2001-11-27 Andreas Jaeger <aj@suse.de>
40107 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
40109 2001-11-27 Laurent Guerby <guerby@acm.org>
40111 * Makefile.in: Regenerate Ada dependencies.
40113 2001-11-26 Richard Henderson <rth@redhat.com>
40115 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
40116 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
40117 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
40119 2001-11-25 Laurent Guerby <guerby@acm.org>
40121 * sysdep.c (rts_get_*): Fix style.
40123 2001-11-19 Laurent Guerby <guerby@acm.org>
40125 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
40126 since it is of no apparent use and cause warnings.
40128 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
40130 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
40132 (gnat_init): Don't return NULL.
40133 (finish_parse): Remove.
40135 2001-11-17 Laurent Guerby <guerby@acm.org>
40137 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
40138 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
40139 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
40140 * lang-spec.h: Add missing struct field to silence warnings.
40141 * sysdep.c (rts_get_*): Provide K&R prototype.
40142 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
40143 * traceback.c (Unlock_Task, Lock_Task): Likewise.
40144 * tracebak.c (__gnat_backtrace): Remove unused variable.
40145 * utils.c (end_subprog_body): Move to K&R style.
40147 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40149 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
40151 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
40153 * misc.c (gnat_init): Change prototype. Include the
40154 functionality of the old init_parse and init_decl_processing.
40155 (gnat_init_decl_processing): New prototype.
40156 (init_parse): Remove.
40157 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
40159 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
40161 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
40162 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
40163 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
40164 set_yydebug): Remove.
40166 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
40168 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
40169 (struct lang_hooks): Constify.
40170 (language_string, lang_identify): Remove.
40171 * utils.c (init_decl_processing): Update.
40173 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
40175 * misc.c: Include langhooks-def.h.
40176 * Makefile.in: Update.
40178 2001-10-30 Robert Dewar <dewar@gnat.com>
40181 (Check_Identifier): Rewrite circuit to be compatible with use of letters
40182 in the upper half of ASCII.
40183 (Check_Identifier): Minor reformatting
40185 2001-10-30 Geert Bosch <bosch@gnat.com>
40187 * (Associated_Node, Set_Associated_Node): Do not check for
40190 2001-10-30 Robert Dewar <dewar@gnat.com>
40192 * a-reatim.ads: Minor reformatting
40194 2001-10-30 Robert Dewar <dewar@gnat.com>
40196 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
40197 undocumented declarations.
40199 2001-10-30 Pascal Obry <obry@gnat.com>
40201 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
40202 to the binder and linker.
40205 * mdll.ads: Fix layout. Update copyright notice.
40207 * mdll.adb: Fix layout. Update copyright notice.
40209 2001-10-30 Robert Dewar <dewar@gnat.com>
40211 * usage.adb: Minor fix to output for -gnaty.
40213 2001-10-30 Ed Schonberg <schonber@gnat.com>
40215 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
40216 to accommodate all its possible values.
40218 * a-reatim.adb (Split): Special-case handling of Time_Span_First
40219 and of small absolute values of T.
40221 2001-10-30 Richard Kenner <kenner@gnat.com>
40223 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
40224 set_mem_attributes since not needed and wrong if RESULT if a REG;
40225 fixes ACATS failures.
40227 2001-10-30 Geert Bosch <bosch@gnat.com>
40229 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
40230 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
40232 2001-10-30 Robert Dewar <dewar@gnat.com>
40234 * bindusg.adb: Undocument -f switch.
40236 * gnatcmd.adb: Remove /FULL_ELABORATION.
40238 * opt.ads (Force_RM_Elaboration_Order): Document that this is
40241 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
40243 * gnatbind.adb: Minor update of warning msg.
40245 2001-10-30 Vincent Celier <celier@gnat.com>
40247 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
40248 for project file switches (-P (/PROJECT_FILE=),
40249 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
40252 2001-10-30 Geert Bosch <bosch@gnat.com>
40254 * decl.c: Minor whitespace fixes.
40256 2001-10-30 Richard Kenner <kenner@gnat.com>
40258 * utils2.c (build_allocator): Test for SIZE overflow in array case too
40260 2001-10-30 Geert Bosch <bosch@gnat.com>
40262 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
40263 Found due to GCC 3.0 warning of using uninitialized value.
40266 (Get_Max_Size): Use variant record for tracking value/expression.
40267 Makes logic clearer and prevents warnings for uninitialized variables.
40268 (Layout_Array_Type): Use variant record for tracking value/expression.
40269 Makes logic clearer and prevents warnings for uninitialized variables.
40271 2001-10-30 Robert Dewar <dewar@gnat.com>
40273 * lib.adb: Minor reformatting
40275 * s-taprop.ads: Minor reformatting
40277 2001-10-29 Laurent Guerby <guerby@acm.org>
40280 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
40282 (_gnat_error_handler): Make MSG const.
40284 2001-10-29 Richard Kenner <kenner@gnat.com>
40286 * sysdep.c: Fix localtime_r problem on LynxOS.
40287 Also remove #elif to avoid warnings.
40289 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
40292 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
40294 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
40296 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
40297 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
40298 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
40299 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
40300 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
40301 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
40302 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
40303 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
40304 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
40305 types.ads, urealp.adb: Fix spelling errors.
40307 2001-10-27 Laurent Guerby <guerby@acm.org>
40309 * trans.c (gigi): Fix non determinism leading to bootstrap
40310 comparison failures for debugging information.
40312 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
40314 * gnat_rm.texi: Use @./@: where appropriate.
40316 2001-10-26 Robert Dewar <dewar@gnat.com>
40318 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
40320 2001-10-26 Richard Kenner <kenner@gnat.com>
40322 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
40324 2001-10-26 Richard Kenner <kenner@gnat.com>
40326 * decl.c (validate_size): Modify message for bad size to avoid
40327 implication that compiler is modifying the size.
40329 2001-10-26 Robert Dewar <dewar@gnat.com>
40331 * prj-util.adb: Minor reformatting. Fix bad header format.
40333 2001-10-26 Robert Dewar <dewar@gnat.com>
40335 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
40337 * sinfo.ads: Clarify use of Associated_Node (documentation only).
40339 * sem_ch12.adb: Change Node4 to Associated_Node. Change
40340 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
40341 much more narrowly in places where needed. These are cleanups.
40343 2001-10-26 Joel Brobecker <brobecke@gnat.com>
40345 * 5zosinte.ads (null_pthread): new constant.
40348 (Initialize_TCB): Initialize thread ID to null, to be able to verify
40349 later that this field has been set.
40350 (Finalize_TCB): ditto.
40351 (Suspend_Task): Verify that the thread ID is not null before using it.
40352 (Resume_Task): ditto.
40355 (Resume_All_Tasks): Lock the tasks list before using it.
40356 (Suspend_All_Tasks): ditto.
40358 2001-10-26 Richard Kenner <kenner@gnat.com>
40360 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
40361 Make constant variant of designated type for Is_Access_Constant.
40362 Call update_pointer_to with main variant.
40364 * trans.c (process_freeze_entity, process_type):
40365 Call update_pointer_to on main variant.
40367 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
40368 If main variant, update all other variants.
40370 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
40373 2001-10-26 Robert Dewar <dewar@gnat.com>
40375 * prj-util.adb: Minor reformatting
40377 2001-10-26 Robert Dewar <dewar@gnat.com>
40379 * prj-util.adb: Minor reformatting
40381 2001-10-26 Robert Dewar <dewar@gnat.com>
40383 * prj-attr.adb: Minor reformatting throughout
40385 2001-10-26 Robert Dewar <dewar@gnat.com>
40387 * prj-attr.ads: Minor reformatting
40388 Add ??? comment (this whole spec has almost no comments)
40390 2001-10-26 Vincent Celier <celier@gnat.com>
40392 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
40393 ("//") that precede the drive letter on Interix.
40395 2001-10-26 Geert Bosch <bosch@gnat.com>
40397 * gnat_rm.texi: Add GNAT Reference Manual.
40399 2001-10-25 Robert Dewar <dewar@gnat.com>
40401 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
40402 is Error. Similar change for other renaming cases.
40404 2001-10-25 Robert Dewar <dewar@gnat.com>
40406 * s-atacco.ads: Add pragma Inline_Always for functions.
40407 Fix header format. Add copyright 2001
40409 2001-10-25 Ed Schonberg <schonber@gnat.com>
40411 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
40412 return Error rather than Empty so that analysis can proceed.
40414 2001-10-25 Ed Schonberg <schonber@gnat.com>
40416 * sem_util.adb (Enter_Name): better handling of cascaded error
40417 messages when a unit appears in its own context.
40419 2001-10-25 Ed Schonberg <schonber@gnat.com>
40421 * sem_util.adb (Defining_Entity): in case of error, attach created
40422 entity to specification, so that semantic analysis can proceed.
40424 2001-10-25 Robert Dewar <dewar@gnat.com>
40427 (Defining_Entity): Deal with Error.
40428 (Process_End_Label): Deal with bad end label for.
40430 2001-10-25 Ed Schonberg <schonber@gnat.com>
40432 * sem_elab.adb (Check_A_Call): refine message when call is in an
40433 instance but callee is not declared in the generic unit.
40435 2001-10-25 Ed Schonberg <schonber@gnat.com>
40437 * sem_elab.adb (Check_A_Call): check for renaming before finding the
40438 enclosing unit, which may already be different from the calling unit.
40440 2001-10-25 Geert Bosch <bosch@gnat.com>
40442 * 4gintnam.ads: fix header format.
40444 2001-10-25 Ed Schonberg <schonber@gnat.com>
40446 * sem_res.adb (Resolve_Call): if the call is actually an indexing
40447 operation on the result of a parameterless call, perform elaboration
40448 check after the node has been properly rewritten.
40450 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
40451 inlined within the generic tree, the defining identifier is not a
40454 2001-10-25 Ed Schonberg <schonber@gnat.com>
40456 * sem_res.adb (Resolve): special-case resolution of Null in an
40457 instance or an inlined body to avoid view conflicts.
40459 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
40460 compatibility by retrieving the access type of the generic copy.
40462 2001-10-25 Robert Dewar <dewar@gnat.com>
40465 (Analyze_Number_Declaration): Handle error expression.
40466 (Signed_Integer_Type_Declaration): Handle error bound.
40467 (Analyze_Subtype_Indication): Handle error range.
40469 * sem_util.adb (Get_Index_Bounds): Check for Error.
40471 2001-10-25 Robert Dewar <dewar@gnat.com>
40473 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
40474 in no run time mode.
40476 2001-10-25 Pascal Obry <obry@gnat.com>
40478 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
40479 mode case for ALLOC case.
40481 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
40482 all platforms. Improvement of last change.
40484 2001-10-25 Robert Dewar <dewar@gnat.com>
40486 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
40488 2001-10-25 Geert Bosch <bosch@gnat.com>
40490 * osint.adb (Is_Relative): Remove duplicate.
40492 2001-10-25 Pascal Obry <obry@gnat.com>
40494 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
40495 pathnames in UNIX and DOS style with drive letter.
40496 (Is_Relative): new routine.
40498 * osint.adb: Minor reformatting
40500 * osint.adb (Is_Relative): implementation using
40501 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
40503 2001-10-25 Pascal Obry <obry@gnat.com>
40505 * g-dirope.adb (Basename): correctly compute offset between the
40506 original Path and the translated one.
40508 * g-dirope.adb: (Base_Name): add some comments.
40510 2001-10-25 Robert Dewar <dewar@gnat.com>
40512 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
40513 in HIE mode, avoids compilation abandoned message
40515 * exp_imgv.adb: Correct typo in previous change
40517 * exp_imgv.adb: Correct typo in previous change (not my day!)
40519 2001-10-25 Robert Dewar <dewar@gnat.com>
40521 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
40523 2001-10-25 Pascal Obry <obry@gnat.com>
40525 * g-awk.ads: Move all pragma inlines next to the routine
40526 declarations. This is more uniform with other GNAT spec.
40528 2001-10-22 Geert Bosch <bosch@gnat.com>
40530 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
40532 2001-10-19 Geert Bosch <bosch@gnat.com>
40534 * Makefile.in (tools, gnattools): Remove gnatmem.
40536 2001-10-17 Richard Henderson <rth@redhat.com>
40538 * Makefile.in (misc.o): Depend on langhooks.h.
40539 * misc.c: Include it.
40540 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
40541 (LANG_HOOKS_DECODE_OPTION): New.
40542 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
40544 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
40546 * trans.c (tree_transform): Adjust to recent change in
40547 expand_asm_operands to implement named asm operands.
40549 2001-10-11 Ed Schonberg <schonber@gnat.com>
40551 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
40552 renaming of discriminant for mutable record type.
40554 2001-10-11 Robert Dewar <dewar@gnat.com>
40556 * validsw.adb: Properly save -gnatVn status.
40558 2001-10-11 Robert Dewar <dewar@gnat.com>
40560 * usage.adb: Add lines for V switch.
40562 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
40563 (/VALIDITY_CHECKING).
40565 2001-10-11 Ed Schonberg <schonber@gnat.com>
40567 * sem_type.adb (Add_One_Interp): an operator for a type declared in
40568 an extension of System is known to be visible.
40570 2001-10-11 Ed Schonberg <schonber@gnat.com>
40572 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
40573 properly. Fixes regression on ACATS C34005G.
40575 2001-10-11 Robert Dewar <dewar@gnat.com>
40577 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
40578 loop in generic instance, since this is likely not very useful.
40580 2001-10-11 Robert Dewar <dewar@gnat.com>
40582 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
40583 the error message for high integrity mode.
40585 * rtsfind.adb (RTE): Give message if we try to find an entity that
40586 is not available in high integrity mode.
40589 (OK_To_Use_In_HIE_Mode): New array.
40590 (RTE): May return Empty in high integrity mode.
40592 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
40593 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
40595 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
40596 unit if not inlined always and in no runtime mode. Fixes problem
40597 caused by new Rtsfind changes.
40599 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
40602 * rtsfind.adb (RTE): Make sure we do not try to load unit after
40603 giving message for entity not available in high integrity mode.
40605 2001-10-11 Pascal Obry <obry@gnat.com>
40607 * impunit.adb: Add GNAT.CRC32.
40609 2001-10-11 Ed Schonberg <schonber@gnat.com>
40611 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
40612 properly the case where one universal operand in a non-static
40613 exponentiation of a real literal.
40615 2001-10-11 Ed Schonberg <schonber@gnat.com>
40617 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
40618 clause, return the gobal finalization list, for lack of anthing else.
40620 2001-10-11 Ed Schonberg <schonber@gnat.com>
40622 * exp_ch7.adb (Make_Transient_Block): if statement is within
40623 exception handler, always use new transient scope to place Clean
40626 2001-10-11 Pascal Obry <obry@gnat.com>
40629 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40630 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
40631 (GNATLS_RTL_OBJS): add g-crc32.o
40632 (GNATMAKE_RTL_OBJS): add g-crc32.o
40635 (CRC_Match): new function.
40636 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
40637 instead of the previous simple checksum algorithm.
40638 (Time_Stamp_Mismatch): use CRC_Match for comparison.
40639 (Set_Source_Table): idem.
40642 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
40643 instead of simple checksum.
40644 (CRC_Match): new function.
40645 (CRC_Error): new constant.
40647 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
40648 a CRC now and not a simple checksum. A CRC uses lower-case hex
40649 letters, fixes ambiguity in parsing.
40651 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
40652 is what this variable will store.
40654 * bcheck.adb: Change reference to chechsum in comments by CRC.
40655 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
40656 rename All_Checksum_Match to All_CRC_Match. Change due to API
40657 renaming since now GNAT does not use a simple checksum but a
40658 CRC using GNAT.CRC32.
40660 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
40661 now and not anymore a simple checksum.
40663 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
40666 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
40669 (Restore_Scan_State): rename Checksum to CRC.
40670 (Save_Scan_State): idem.
40674 (Checksum): rename to CRC.
40675 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
40677 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
40678 GNAT.CRC32). Update copyright notice.
40680 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
40681 GNAT.CRC32). Update copyright notice.
40684 (Accumulate_Checksum): removed.
40685 (Update): new procedure. Add a wide-character into the CRC.
40688 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
40689 (Load_File): fix initialization of S (change Source_Checksum to
40692 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
40693 Source_CRC in S initialization.
40695 * sinput.adb (Source_Checksum): renamed to Source_CRC.
40697 * sinput.ads (Source_Checksum): renamed to Source_CRC.
40698 Update comments for the CRC.
40700 * types.adb (Hex): Use lowercase for the letter part.
40702 * types.ads (Get_Hex_String): Returns the hexadecimal representation
40703 for a word. This is currently used only for CRC. In previous version,
40704 the checksum was using a representation with all letter being
40705 upper-case. With the new implementation (using CRC) we do not remove
40706 the 32th bit of the CRC, so we can have an upper-case starting letter
40707 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
40708 It is ambigous since the CRC was optional and could be followed by
40709 options like EB, EE. So now this routines uses lower-case letter for
40710 the hexadecimal representation. Strange enough only lower case letters
40711 where checked in Scan_ALI (even if this was not a possible case).
40713 * gnatvsn.ads (Library_Version): changed to 3.15a.
40715 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
40718 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
40721 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
40722 Add 2001 to copyright notice
40723 (Accumulate_Checksum): Modify to use System.CRC32.
40725 * ali-util.ads: Redo changes of previous revision to continue to use
40726 the word Checksum. Add 2001 to copyright notice.
40728 * ali.adb: Undo some of previous changes, not needed.
40729 Keep the change for lower case letters in the checksum.
40731 * ali.ads: Undo previous change not needed.
40733 * bcheck.adb: Undo most of previous change, not needed.
40734 But do use Checksums_Match for checksum comparison.
40736 * gnatls.adb: Undo most of previous change, not needed.
40737 But do use Checksums_Match for comparing checksums.
40739 * lib-load.adb: Undo previous change, not needed.
40741 * lib-writ.adb: Undo previous change, not needed.
40743 * lib-writ.ads: Document that checksums use lower case,
40744 not upper case letters.
40746 * scans.adb: Undo previous change, not needed
40748 * scans.ads: Undo previous change, not needed.
40750 * scn-nlit.adb: Undo previous changes, not needed.
40752 * scn-slit.adb: Undo previous change, not needed. Fix header format.
40755 (Accumulate_Checksum): Use System.CRC32.
40756 (Initialize_Checksum): New procedure.
40757 Remove other changes of previous revision.
40759 * sinput-p.adb: Undo previous change, not needed.
40761 * sinput.adb: Undo previous change, not needed.
40763 * sinput-l.adb: Undo previous change, not needed.
40765 * sinput.ads: Undo previous change, not needed. Keep only comment
40766 on new checksum algorithm
40768 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
40769 Also remove a-tags and a-stream from GNAT sources.
40771 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
40773 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
40775 2001-10-11 Geert Bosch <bosch@gnat.com>
40777 * einfo.h: Regenerate.
40779 * nmake.ads: Regenerate.
40781 * nmake.adb: Regenerate.
40783 * sinfo.h: Regenerate.
40785 * treeprs.adb: Regenerate.
40787 2001-10-10 Geert Bosch <bosch@gnat.com>
40789 * gnat-style.texi: New file describing coding guidelines for Ada.
40791 2001-10-10 Ed Schonberg <schonber@gnat.com>
40793 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
40796 2001-10-10 Geert Bosch <bosch@gnat.com>
40798 * snames.ads: Add new names for project facility.
40800 * snames.adb: Update to reflect snames.ads changes.
40802 * snames.h: Update to reflect snames.ads changes.
40804 2001-10-10 Vincent Celier <celier@gnat.com>
40807 (Add_Switches): reflect the changes for the switches attributes
40808 Default_Switches indexed by the programming language,
40809 Switches indexed by the file name.
40810 (Collect_Arguments_And_Compile): Idem.
40811 Reflect the attribute name changes.
40814 (Initialisation_Data): Change the names of some packages and
40816 (Initialize): process case insensitive associative arrays.
40819 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
40822 (Parse_Attribute_Declaration): For case insensitive associative
40823 arrays, set the index string to lower case.
40826 Reflect the changes of the project attributes.
40829 Replace Check_Naming_Scheme by Ada_Check and
40830 Language_Independent_Check.
40833 Replaced Check_Naming_Scheme by 2 procedures:
40834 Ada_Check and Language_Independent_Check.
40837 (Process_Declarative_Items): For case-insensitive associative
40838 arrays, set the index string to lower case.
40839 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
40840 Prj.Nmsc.Check_Naming_Scheme.
40843 (Case_Insensitive): New function
40844 (Set_Case_Insensitive): New procedure
40847 (Case_Insensitive): New function
40848 (Set_Case_Insensitive): New procedure
40849 (Project_Node_Record): New flag Case_Insensitive.
40852 (Value_Of): new function to get the string value of a single
40853 string variable or attribute.
40856 (Value_Of): new function to get the string value of a single
40857 string variable or attribute.
40860 (Ada_Default_Spec_Suffix): New function
40861 (Ada_Default_Impl_Suffix): New function
40862 Change definitions of several constants to reflect
40863 new components of record types.
40866 (Naming_Data): Change several components to reflect new
40867 elements of naming schemes.
40868 (Project_Data): New flags Sources_Present and
40869 Language_Independent_Checked.
40870 (Ada_Default_Spec_Suffix): New function.
40871 (Ada_Default_Impl_Suffix): New function.
40874 Modification of predefined names for project manager: added
40875 Implementation, Specification_Exceptions, Implementation_Exceptions,
40876 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
40877 Default_Switches, _Languages, Builder, Cross_Reference,
40878 Finder. Removed Body_Part, Specification_Append, Body_Append,
40879 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
40882 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40885 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
40886 not that it is Nil_Variable_Value.
40888 * prj.ads: Add ??? for uncommented declarations
40890 2001-10-10 Ed Schonberg <schonber@gnat.com>
40892 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
40893 constant, do not indicate possible modification, so that gigi can
40894 treat it as a bona fide constant.
40896 2001-10-10 Robert Dewar <dewar@gnat.com>
40898 * sem_prag.adb: Add processing for pragma External.
40900 * snames.ads: Add entry for pragma External.
40902 * par-prag.adb: Add pragma External.
40904 * snames.adb: Updated to match snames.ads.
40906 2001-10-10 Ed Schonberg <schonber@gnat.com>
40908 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
40909 a dynamic task if the allocator appears in an indexed assignment
40910 or selected component assignment.
40912 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
40913 For a dynamic task in an assignment statement, use target of
40914 assignment to generate meaningful name.
40916 2001-10-10 Ed Schonberg <schonber@gnat.com>
40918 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
40921 * einfo.ads: Body_Entity is also defined for generic package.
40922 Documentation change only
40924 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
40925 others_choice for a discriminated component initialization,
40926 convert discriminant references into the corresponding discriminals.
40928 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
40929 only if original type is private and expression has to be wrapped
40933 (Apply_Constraint_Check): Do not perform length check
40934 if expression is an aggregate with only an others_choice.
40935 (Length_N_Cond): two references to the same in_parameter
40936 (typically the discriminal in an init_proc) denote the same value.
40937 Two useful optimization uncovered by bugfixes above.
40939 2001-10-10 Robert Dewar <dewar@gnat.com>
40941 * xeinfo.adb: Change int to char in translation of enumeration types.
40942 This fixes a problem in the C representation of component alignment.
40943 Add 2001 to copyright notice
40945 2001-10-10 Richard Kenner <kenner@gnat.com>
40947 * decl.c: (validate_size): Do check size of object of integral type
40948 if it is a packed array type.
40950 2001-10-10 Richard Kenner <kenner@gnat.com>
40952 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
40953 VAR_DECL for constant if not Is_Public but -O0.
40955 2001-10-10 Richard Kenner <kenner@gnat.com>
40957 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
40959 2001-10-10 Geert Bosch <bosch@gnat.com>
40961 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
40962 use '/' as switch character, allowing for absolute file names.
40964 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
40966 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
40969 2001-10-08 Geert Bosch <bosch@gnat.com>
40971 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
40972 Automatically build utilities when files need to be regenerated.
40974 2001-10-08 Geert Bosch <bosch@gnat.com>
40976 * xsnames.adb: New utility for updating snames.ads and snames.adb
40978 2001-10-08 Zack Weinberg <zack@codesourcery.com>
40980 * Make-lang.in (ADAFLAGS): Add -W -Wall.
40981 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
40982 (gnat1): Also depend on attribs.o.
40983 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
40984 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
40985 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
40986 (ADAFLAGS): Add -W -Wall.
40987 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
40990 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
40991 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
40992 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
40993 Use $(ADAC), not $(CC), as compilation command.
40995 (gnattools): Depend directly on tools to build, don't use
40997 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
40999 * einfo.h, sinfo.h: New files (autogenerated).
41001 2001-10-08 Richard Henderson <rth@redhat.com>
41003 * comperr.adb (Abort_In_Progress): New.
41004 (Compiler_Abort): Use it to prevent recursion.
41006 2001-10-08 Robert Dewar <dewar@gnat.com>
41008 * atree.adb: Set Error_Posted in Error node, helps error recovery.
41010 * par-endh.adb (Output_End_Expected): We should also not test
41011 Error_Posted on the Error node, since now it is always set.
41013 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
41014 to help error recovery. Part of general work on 9407-004.
41016 * par.adb: Add ??? for misuse of error
41019 (Resolve): Defend against Error, fixes 9407-003.
41020 (Resolve_Discrete_Subtype_Indication): Defend against Error.
41022 * sinfo.ads (N_Error): Now has Etype field (which will be set
41023 to Any_Type to help error recovery).
41025 2001-10-08 Richard Kenner <kenner@gnat.com>
41027 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
41028 Consistently set MEM attributes from expression; fixes
41029 bootstrap failure on x86.
41031 2001-10-08 Geert Bosch <bosch@gnat.com>
41033 * 5oosinte.adb: Add 2001 to copyright notice.
41035 2001-10-08 Geert Bosch <bosch@gnat.com>
41037 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
41039 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
41041 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
41043 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
41045 2001-10-05 Geert Bosch <bosch@gnat.com>
41047 * adaint.h: Small formatting fix.
41049 2001-10-04 Geert Bosch <bosch@gnat.com>
41051 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
41052 Arg is int, not FILE *, in dummy version of functions.
41054 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
41055 Arg is int, not FILE *.
41057 2001-10-04 Geert Bosch <bosch@gnat.com>
41059 * 3lsoccon.ads: Added file, missed with initial check ins.
41061 * 4lintnam.ads: Fix header format.
41062 Change Linux to GNU/Linux.
41064 * 5iosinte.adb: Change Linux to GNU/Linux.
41066 * 5iosinte.ads: Change Linux to GNU/Linux.
41068 * 5itaprop.adb: Change Linux to GNU/Linux.
41070 * 5itaspri.ads: Change Linux to GNU/Linux.
41071 Update copyright notice.
41073 * 5lintman.adb: Change Linux to GNU/Linux.
41075 * 5lml-tgt.adb: Change Linux to GNU/Linux.
41077 * 5losinte.ads: Change Linux to GNU/Linux.
41079 * 5lsystem.ads: Change Linux to GNU/Linux.
41081 * 5qosinte.adb: Change Linux to GNU/Linux.
41083 * 5qosinte.ads: Change Linux to GNU/Linux.
41085 * 5qparame.ads: Change Linux to GNU/Linux.
41087 * 5qtaprop.adb: Change Linux to GNU/Linux.
41089 * 5qtaspri.ads: Change Linux to GNU/Linux.
41090 Add 2001 to copyright notice.
41092 * 5vintman.ads: Change Linux to GNU/Linux.
41093 Fix header format. Add 2001 to copyright notice.
41095 * g-soccon.ads: Change Linux to GNU/Linux.
41097 * g-trasym.ads: Change Linux to GNU/Linux.
41098 Add 2001 to copyright notice.
41100 * memtrack.adb: Change Linux to GNU/Linux.
41102 * s-intman.ads: Change Linux to GNU/Linux.
41103 Add 2001 to copyright notice. Fix header format.
41105 * s-stache.adb: Change Linux to GNU/Linux.
41107 * adaint.c: Change Linux to GNU/Linux.
41109 * cio.c: Change Linux to GNU/Linux.
41111 * cstreams.c: Change Linux to GNU/Linux.
41113 * init.c: Change Linux to GNU/Linux.
41115 * gmem.c: Change Linux to GNU/Linux.
41117 * tracebak.c: Change Linux to GNU/Linux.
41120 2001-10-02 Geert Bosch <bosch@gnat.com>
41122 * misc.c (insert_default_attributes): Add dummy version.