1 2007-12-07 Olivier Hainque <hainque@adacore.com>
4 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
5 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
6 this is from an alignment clause on the GNAT entity.
7 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8 to distinguish the case where we set it from the type's alignment.
9 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
10 whether this alignment was set from an explicit alignment clause.
12 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
14 * decl.c (make_packable_type): Revert last change.
15 (gnat_to_gnu_field): Avoid setting size and position multiple times.
16 * utils.c (finish_record_type): Retrieve the real name of the type.
18 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
20 * trans.c (lvalue_required_p): Take base node directly instead
21 of its parent. Rename second parameter to 'gnu_type'.
22 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
24 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
25 Adjust calls to lvalue_required_p.
27 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
30 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
31 parameters of an entry call.
33 2007-12-03 Robert Dewar <dewar@adacore.com>
34 Samuel Tardieu <sam@rfc1149.net>
37 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
38 of variables declared in a library-level package.
40 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
42 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
43 of Empty_String'Unchecked_Access.
45 * Makefile.in: Add support for sh4-linux.
47 * system-linux-sh4.ads: New file.
49 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
52 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
53 and its argument must not be free()ed.
55 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
57 * decl.c (make_packable_type): Retrieve the real name of the type.
58 (maybe_pad_type): Simplify similar code.
60 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
63 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
64 than an identifier is used after "case" in a variant_part.
67 * par-ch4.adb (Is_Parameterless_Attribute): New map.
68 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
69 attribute name or not depending on the new map.
71 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
72 returning a string or a type will not be called with improper
75 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
77 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
80 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
81 Signal an error when attribute argument is a fixed-point value of
85 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
86 a derived ordinary fixed point type.
88 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
89 RM_Size when a Small clause is found.
91 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
94 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
95 Pass 'false' for the new allocate_struct_function parameter.
96 * utils.c (build_function_stub): Likewise.
98 2007-11-25 Richard Guenther <rguenther@suse.de>
100 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
101 (gnat_poplevel): Likewise.
103 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
105 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
106 strict alignment, no alignment clause and a known static size, cap
107 the type alignment to the greatest power of 2 factor of the size.
108 (gnat_to_gnu_field): If the field has a component clause, is aliased
109 or of a type with strict alignment, require that its size be equal to
111 (validate_size): Use the type size as the minimum size for a type with
114 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
116 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
117 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
118 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
119 Use 'Access instead of 'Unchecked_Access in second and third
120 arguments of pthread_sigmask.
122 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
124 * decl.c (ceil_alignment): New function.
125 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
126 (make_packable_type): Likewise.
128 2007-11-22 Olivier Hainque <hainque@adacore.com>
130 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
131 to fit in 80 columns.
133 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
135 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
136 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
138 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
141 * misc.c (gnat_adjust_rli): Delete.
142 (gnat_init): Do not initialize the translation code here.
143 Do not call set_lang_adjust_rli.
144 * trans.c (init_code_table): Make static.
145 (gnat_init_stmt_group): Delete.
146 (gigi): Initialize the translation code entirely here.
147 Emit debug info for the common types here instead of...
148 * utils.c (gnat_init_decl_processing): ...here.
149 * gigi.h (init_code_table): Delete.
150 (gnat_init_stmt_group): Likewise.
152 2007-11-16 Olivier Hainque <hainque@adacore.com>
154 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
155 retrieving an allocator return value from a super-aligned address from
157 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
158 expect a super-aligned address for a fat or thin pointer.
160 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
162 * trans.c (call_to_gnu): Always set the source location on the call
163 expression. If the function returns-by-target, also set it on the
166 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
168 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
169 sections of non-supported Interix target.
171 * s-osinte-interix.ads: Removed.
173 * i-cstrin.ads (chars_ptr): Make it a C convention type.
175 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
177 * a-tasatt.adb: Add a comment at the beginning of the package
178 explaining why in general 'Unchecked_Access must be used instead
181 * sem_prag.adb (Process_Convention): Move the test for the
182 entity on which the Convention pragma applies down to also
183 forbid pragma Convention on enumeration literals reached
186 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
188 * a-tasatt.adb: Revert previous change for this file as it will
189 generate an error when this package is instantiated from a
192 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
194 * a-tasatt.adb: Type Wrapper should be declared in comment instead
195 of already declared type Node_Access.
196 Use 'Access instead of 'Unchecked_Access when applicable. Local
197 lifetime is the one of the package.
198 (Set_Value): W is allocated on the heap.
200 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
202 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
204 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
207 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
209 (elaboration code): Timer_Queue lifetime is the one of the
212 * tracebak.c (i386 alternative): Remove useless comparaison
213 which is always false; LOWEST_ADDRESS is 0 and is never greater
214 than an unsigned integer.
216 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
217 embedded check for "Ada_Version >= Ada_05".
219 2007-11-07 Olivier Hainque <hainque@adacore.com>
221 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
222 craft and expand comment.
224 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
226 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
228 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
230 * misc.c (gnat_handle_option): Replace call to abort with
231 call to gcc_unreachable.
232 (gnat_init): Likewise.
233 (gnat_expand_expr): Likewise.
234 (fp_prec_to_size): Likewise.
235 (fp_size_to_prec): Likewise.
237 2007-10-23 Richard Guenther <rguenther@suse.de>
240 * tracebak.c: #undef abort after including system.h.
242 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
244 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
245 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
247 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
249 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
251 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
252 Set the protection status of the guard page based on the value of On.
254 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
256 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
257 (Exit_Task): Pass False to Hide_Yellow_Zone.
259 2007-10-15 Robert Dewar <dewar@adacore.com>
261 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
262 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
263 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
264 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
265 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
266 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
267 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
268 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
269 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
270 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
271 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
272 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
273 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
274 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
275 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
276 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
278 Add Unreferenced and Warnings (Off) pragmas for cases of
279 variables modified calls where they are IN OUT or OUT parameters and
280 the resulting values are not subsequently referenced. In a few cases,
281 we also remove redundant code found by the new warnings.
283 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
284 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
285 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
286 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
287 warning controlled by -gnatw.o that warns on cases of out parameter
288 values being ignored.
290 2007-10-15 Geert Bosch <bosch@adacore.com>
292 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
294 * expect.c: Initial port to arm-mentor-nucleus.
295 Use kill for __gnat_kill() on VMS.
297 2007-10-15 Emmanuel Briot <briot@adacore.com>
299 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
301 (Xref_Record): Change type for Line, since in the case of a reference to
302 a predefined entity (as happens for array index types), the line is set
304 Add support for parsing multiple array index types info, or
305 multiple inherited interfaces info. This information cannot be stored
306 in Xref_Entity_Record, which only supports a single instance of Tref_*,
307 and is therefore stored in the list of references instead. It has a
308 special treatement later on in tools that use this information.
310 2007-10-15 Tristan Gingold <gingold@adacore.com>
312 * debug.adb: Document use of -gnatd.a and -gnatd.I
314 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
316 2007-10-15 Javier Miranda <miranda@adacore.com>
318 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
319 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
320 care of access to class-wide interface types plus removal of bizarre
321 conversion of tagged object to access type (reported by Gary
322 Dismukes). After this patch there is no need to perform any
323 additional management on these nodes in Expand_Interface_Actuals.
325 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
326 that handles use of 'Access and 'Unchecked_Access applied to
327 actuals covering interface types. Such code is now
328 centralized in Expand_N_Attribute_Reference.
330 2007-10-15 Ed Schonberg <schonberg@adacore.com>
332 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
333 of tagged types whose ultimate ancestor is a CPP type.
334 (Freeze_Array_Type): For a packed array type, generate an initialization
335 procedure if the type is public, to handle properly a client that
336 specifies Normalize_Scalars.
338 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
340 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
341 inside a generic body, retrieve the full view of the entry family
342 discrete subtype if available.
344 2007-10-15 Thomas Quinot <quinot@adacore.com>
346 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
347 attempt to generate stubs for hidden primitive operations.
349 2007-10-15 Vincent Celier <celier@adacore.com>
351 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
352 returning None, used when there is no platform specific body for
355 2007-10-15 Bob Duff <duff@adacore.com>
357 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
358 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
359 the generic Heap_Sort_G, in order to avoid trampolines.
361 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
362 Jose Ruiz <ruiz@adacore.com>
364 * vx_stack_info.c: New file.
366 * i-forbla-unimplemented.ads: New file.
368 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
369 for unsupported configurations; use it on VMS targets instead of the
371 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
372 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
373 used by VxWorks targets to have access to task-specific data and be
374 able to extract the stack boundaries for stack checking.
375 Use system-vms-ia64.ads on ivms.
377 * Make-lang.in: Update dependencies.
379 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
382 2007-10-15 Vincent Celier <celier@adacore.com>
384 * snames.adb, snames.ads: Add new standard name runtime_library_dir
386 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
388 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
390 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
391 the source is unknown.
393 * prj-ext.adb: Spelling error fix
395 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
396 95 reserved word in its name.
397 (Process_Project_Level_Array_Attributes): Process new attribute
400 * prj-part.adb (Parse_Single_Project): Do not check the name of the
401 config project against the user project names.
403 * prj-proc.adb (Expression): In multi-language mode, indexes that do
404 not include a dot are always case insensitive.
405 (Process_Declarative_Items): Ditto
406 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
409 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
410 True, compare both indexes in lower case.
412 2007-10-15 Robert Dewar <dewar@adacore.com>
414 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
416 2007-10-15 Gary Dismukes <dismukes@adacore.com>
418 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
419 association for an access component, add an association with null as
420 the expression. Remove testing for array subtypes and the setting in
421 that case of Ctyp to the array component type, which prevented proper
422 inclusion of an association for null-initialized arrays. Collapse
423 condition that tests for array subtypes into just a test of
424 Is_Partially_Initialized_Type (which already covers arrays anyway).
426 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
428 * sem_ch12.adb: Minor code reformatting.
429 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
430 find the parent package which may have been hidden by local
433 2007-10-15 Gary Dismukes <dismukes@adacore.com>
435 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
436 flag of derived concurrent types, taking into account the flag setting
437 on the parent subtype and any new set of discriminants.
439 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
441 * sem_ch4.adb: Minor code and comment reformatting.
442 (Analyze_Allocator): When the designated type of an unconstrained
443 allocator is a record with unknown discriminants or an array with
444 unknown range bounds, emit a detailed error message depending on the
445 compilation mode and whether the designated type is limited.
447 2007-10-15 Tristan Gingold <gingold@adacore.com>
449 * system-vms-ia64.ads: New file.
451 * system-vms_64.ads: Minor comment fix.
453 2007-10-15 Ed Schonberg <schonberg@adacore.com>
455 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
456 body generated for a function with a controlling result that is a null
457 extension, discard the generated body in favor of the current explicit
460 2007-10-15 Ed Schonberg <schonberg@adacore.com>
462 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
463 examining its original form, to handle properly operator calls that
466 2007-10-15 Olivier Hainque <hainque@adacore.com>
468 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
469 instead of a procedure value in each traceback entry.
471 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
472 instead of procedure value to TBK$SYMBOLIZE.
474 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
476 (TB_Entry_For): Account for the PV/FP renaming.
478 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
480 (Null_TB_Entry): Account for change of component name.
481 (PV_For): Rename as FP_For.
483 2007-10-15 Tristan Gingold <gingold@adacore.com>
485 * trans.c (gnat_to_gnu): Remove the padding structure more often.
486 This optimize assignment to over-aligned record.
488 2007-10-15 Emmanuel Briot <briot@adacore.com>
490 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
493 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
494 type, for dispatching calls.
496 2007-10-15 Vincent Celier <celier@adacore.com>
497 Robert Dewar <dewar@adacore.com>
499 * gnat_ugn.texi: Add documentation for switches --version and --help
500 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
501 gnatxref, gnatfind, gnatls, and gnatclean.
503 Mention attribute Excluded_Source_Dirs
504 Replace obsolescent attribute Locally_Removed_Files with attribute
505 Excluded_Source_Files.
506 Improve documentation of -u (gnatbind)
507 Document how to do reliable stack checking for the environmental task
510 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
511 Document attribute Excluded_Source_Files and indicate that attribute
512 Locally_Removed_Files is obsolescent.
514 2007-10-15 Thomas Quinot <quinot@adacore.com>
516 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
519 Update documentation to note that OpenVMS 8.3 or later must be used
520 to generate g-soccon-vms.ads.
522 * atree.adb: Add ??? comment
524 * exp_util.adb: Minor reformatting.
525 Add ??? comment in Kill_Dead_Code.
527 2007-10-15 Robert Dewar <dewar@adacore.com>
529 * errout.ads: Comment clarification
531 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
532 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
534 * lib.ads: Comment update
536 * init.c: Minor reformatting.
538 * sem_attr.adb: Minor formatting
540 * osint-b.ads: Minor reformatting
542 * sem_ch9.adb: Implement -gnatd.I switch
544 * g-comlin.adb: (Start): Fix handling of empty command line.
546 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
547 even when -rules follows the -cargs section.
549 2007-10-08 Ollie Wild <aaw@google.com>
551 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
553 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
555 (gnat_eh_runtime_type): Removed.
556 (gnat_return_tree): New function.
558 2007-10-08 Ben Elliston <bje@au.ibm.com>
562 2007-08-31 Ben Elliston <bje@au.ibm.com>
564 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
565 when compiling for powerpc64-*-linux.
566 * system-linux-ppc64.ads: New file.
568 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
570 Mapped location support
571 * back_end.adb (Call_Back_End): Pass information about source
572 files instead of units to gigi.
573 * gigi.h (struct File_Info_Type): New.
574 (gigi): Rename and change type of number_units parameter, change
575 type of file_info_ptr parameter.
576 * trans.c (number_files): New global variable.
577 (gigi): Rename and change type of number_units parameter, change
578 type of file_info_ptr parameter.
579 If mapped location support is enabled, create the isomorphic mapping
580 between source files and line maps.
581 (Sloc_to_locus): If mapped location support is enabled, translate
582 source location into mapped location.
583 (annotate_with_node): Rename into set_expr_location_from_node.
584 Call set_expr_location instead of annotate_with_locus.
585 (Pragma_to_gnu): Adjust for above change.
586 (Loop_Statement_to_gnu): Likewise.
587 (call_to_gnu): Likewise.
588 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
589 (gnat_to_gnu): Likewise.
590 (add_stmt_with_node): Likewise.
591 (add_cleanup): Likewise.
592 * utils.c (gnat_init_decl_processing): Do not set input_line.
594 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
596 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
597 (Applicable_Use): Emit a warning when a package tries to use itself.
598 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
599 is already in use or the package where it is declared is in use or is
600 declared in the current package.
601 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
603 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
604 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
605 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
607 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
609 * a-calend-vms.adb, a-calend.adb:
610 Add a section on leap seconds control along with two entities used to
611 enable and disable leap seconds support. The array Leap_Second_Times is
612 now constant and contains hard time values pre-generated. Remove
613 all elaboration code used to populate the table of leap seconds.
616 Add entity Leap_Seconds_Support to the list of global run-time variables
617 along with a comment on its usage and values.
618 (Gen_Adainit_Ada): Add code to generate the declaration and import of
619 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
620 or one (enabled) depending on the presence of binder switch "-y".
621 (Gen_Adainit_C): Add code to generate the declaration of external int
622 __gl_leap_seconds_support. Set is value to zero (disabled) or one
623 (enabled) depending on the presence of binder switch "-y".
625 * init.c: Add __gl_leap_seconds_support to the list of global values
626 computed by the binder.
628 2007-09-26 Jerome Guitton <guitton@adacore.com>
630 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
631 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
632 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
633 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
635 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
637 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
638 function which can be called by the debugger to interrupt the tasks of
639 an Ada application asynchronously, as needed on VxWorks.
640 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
642 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
643 renamed from Stop_All_Tasks. Update comments.
644 (Stop_All_tasks): New function declaration.
646 2007-09-26 Olivier Hainque <hainque@adacore.com>
648 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
649 #include <utime.h> and #define GCC_RESOURCE_H before
650 #include <sys/wait.h>.
651 Add more protections in __gnat_translate_vms.
653 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
654 #include <sys/wait.h>.
656 2007-09-26 Thomas Quinot <quinot@adacore.com>
657 Sergey Rybin <rybin@adacore.com>
659 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
661 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
664 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
666 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
669 * sem_dist.ads: Minor comment fix
671 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
673 2007-09-26 Javier Miranda <miranda@adacore.com>
674 Eric Botcazou <ebotcazou@adacore.com>
677 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
678 indirection added to the HT_Link component of the TSD. This is required
679 to statically allocate the TSD.
682 Minor reordering of the declarations in the private part. Required to
683 add a level of indirection to the contents of the TSD component HT_Link.
684 This is required to statically allocate the TSD.
686 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
687 Is_Statically_Allocated set from constant objects.
688 Do not make exported constants created by the compiler volatile.
689 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
692 * trans.c (Identifier_to_gnu): For constants, unshare initializers
693 before returning them.
695 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
696 public part of the package.
697 (Make_DT): Move HT_Link component out of the TSD record. For this
698 purpose Make_DT now declares a separate object that stores the
699 HT_Link value, and initializes the TSD component with the address
700 of this new object. The addition of this level of indirection is
701 required to statically allocate the TSD because the TSD cannot
702 have variable components.
703 (Expand_Interface_Conversion): Improve the expanded code.
704 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
706 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
707 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
708 if we are building static dispatch tables then we must not generate
709 extra code to register the primitive because the dispatch table will
710 be built at the end of the library package; otherwise we notify that
711 we cannot build the static dispatch table.
713 2007-09-26 Robert Dewar <dewar@adacore.com>
715 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
718 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
719 (Analyze_Record_Representation_Clause): Suppress junk warning for
720 missing component clause.
721 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
722 tests for controlled type overlay to composites with controlled
724 (Analyze_Record_Representation_Clause): Add reference for component name
726 2007-09-26 Javier Miranda <miranda@adacore.com>
727 Gary Dismukes <dismukes@adacore.com>
729 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
730 for thunks associated with interface types.
732 * einfo.ads: Improve documentatation of Is_Internal
733 (Is_Thunk): New attribute applicable to subprograms. True for thunks
734 associated with interface types.
735 Extensive comment fixes regarding flags that appear in all entities. The
736 documentation is now consistent for all such flags (there were a number
737 of errors in the documentation in this regard).
739 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
741 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
742 of these procedures are passed a function call that already has
743 build-in-place actuals (testing new flag
744 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
745 the case where processing continues.
746 (Expand_Call): If the call is generated from a thunk body then we
747 propagate the extra actuals associated with the accessibility
748 level of the access type actuals.
750 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
751 of each extra formal of a protected operation to reference the
752 corresponding extra formal of the subprogram denoted by the
753 operation's Protected_Body_Subprogram.
755 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
756 N_Function_Call nodes.
758 2007-09-26 Robert Dewar <dewar@adacore.com>
760 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
762 * debug.adb: Add d.s flag.
764 2007-09-26 Gary Dismukes <dismukes@adacore.com>
766 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
767 debug variable so that it won't be initialized when pragma
768 Initialize_Scalars is in effect.
770 2007-09-26 Gary Dismukes <dismukes@adacore.com>
772 * freeze.adb (Freeze_Entity): Remove check for preelaborable
773 initialization of a full view. This is moved to
774 Analyze_Package_Specification.
776 * sem_ch7.adb (Analyze_Package_Specification): Add check for
777 preelaborable initialization of a full view in entity loop.
778 (Uninstall_Declarations): If entity is a use-visible compilation unit,
779 its child units are use-visible only if they are visible child units.
781 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
782 whether an expression can be used within a type declaration that
783 requires preelaborable init.
784 (Check_Components): Replace inline code that does partial checking for
785 preelaborable default expressions with call to
786 Is_Preelaborable_Expression.
787 (Has_Preelaborable_Initialization): In the case of a generic actual
788 subtype, (that is, Is_Generic_Actual is True), return the result of
789 applying Has_Preelaborable_Initialization to the generic actual's base
792 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
794 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
795 call to Jan_1_Day _Of_Week to optimize its performance.
796 (Is_Leap): Move the routine to the scope of Week_In_Year.
797 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
798 weekday on which January 1 falls of Year - 1 and Year + 1. This function
799 avoids calling Time_Of and Split, thus making it more efficent.
800 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
802 * g-calend.ads (Week_In_Year): Change comment to reflect new
805 2007-09-26 Emmanuel Briot <briot@adacore.com>
807 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
808 Command_Line): New types
809 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
810 support for defining how switches can be grouped on a command line (as
811 is the case for -gnatw... for GNAT), and how simple switches can be
812 used as aliases for more complex switches (-gnatwa is same as
814 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
815 (Start, Current_*): New subprograms
816 Added support for parsing an array of strings in addition to the real
818 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
819 be moved from the body to the private part of the spec.
820 (*): All subprograms now have an extra parameter with default value to
821 specify which parser should be used. For backward compatibility, it
822 defaults to parsing the command line of the application. They were also
823 modified to properly handle cases where each of the argument does not
824 start at index 1 (which is always true for Ada.Command_Line, but not
825 when processing any Argument_List).
826 (Free): New subprogram
827 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
828 Argument): New subprograms
829 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
830 special characters like ':', '=',... are now handled in a single place,
831 which makes the code more extensible eventually.
832 (Getopt, Full_Switch): When the switch was returned as part of the
833 special character '*', make sure it is prepended by the switch character
834 ('-' in general), so that the application knows whether "foo" or "-foo"
835 was specified on the command line.
837 2007-09-26 Florian Villoing <villoing@adacore.com>
839 * g-dirope.adb (Remove_Dir): In case we are removing directories
840 recursively, make sure that if an exception is raised during the
841 processing, the current working directory is reset to its initial
842 value before propagating the exception.
844 2007-09-26 Vincent Celier <celier@adacore.com>
846 * gnatbind.adb: If there are several ALI files specified and there is
847 a main program to bind, the first ALI is expected to contain the main
848 subprogram and the names of the binder generated files will be derived
849 from the first ALI file name.
850 (Gnatbind): Fix insertion character in invocation of Error_Msg
852 2007-09-26 Vincent Celier <celier@adacore.com>
854 * gnatcmd.adb (Check_Files): Do not include sources that have been
855 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
857 2007-09-26 Ed Schonberg <schonberg@adacore.com>
859 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
860 information about each of its index types, following the type
861 reference for its component type.
863 2007-09-26 Vincent Celier <celier@adacore.com>
865 * make.adb: (Kill): New procedure (__gnat_kill imported)
866 (Running_Compile, Outstanding_Compiles): Global variables that
867 were previously local to procedure Compile_Sources.
868 (Sigint_Intercepted): Send signal SIGINT to all outstanding
869 compilation processes.
871 (Gnatmake): If project files are used, create the mapping of all the
872 sources, so that the correct paths will be found.
874 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
876 2007-09-26 Vincent Celier <celier@adacore.com>
878 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
880 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
881 Replace components Compiler_Min_Options and Binder_Min_Options with
882 Compiler_Required_Switches and Binder_Required_Switches in record
884 Remove components Default_Language and Config in Project_Tree_Data,
887 * prj-attr.adb: New attributes Required_Switches (<language>) in
888 packages Compiler and Binder.
890 * prj-nmsc.adb: Major rewrite of the processing of configuration
891 attributes for gprbuild. No impact on GNAT tools.
893 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
894 process configuration attributes: this is done in Prj.Nmsc.Check.
895 (Recursive_Process): Make a full copy of packages inherited from project
896 being extended, instead of a shallow copy.
897 (Process_Project_Tree_Phase_1): New procedure
898 (Process_Project_Tree_Phase_1): New procedure
899 (Process): Implementation now uses the two new procedures
901 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
902 from the project config, not the tree config that no longer exists.
904 2007-09-26 Vincent Celier <celier@adacore.com>
906 * Make-lang.in: Update dependencies..
908 2007-09-26 Vincent Celier <celier@adacore.com>
910 * osint.adb, osint.ads: Minor reformatting
912 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
914 2007-09-26 Gary Dismukes <dismukes@adacore.com>
916 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
917 message to cite use of <> in aggregate component associations rather
918 than wrongly indicating use of limited aggregates.
920 2007-09-26 Robert Dewar <dewar@adacore.com>
922 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
925 2007-09-26 Ed Schonberg <schonberg@adacore.com>
927 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
928 ancestor of the derived type, the operations are inherited from the
929 primary dispatch table of the parent.
930 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
931 when the context is an explicit type conversion.
933 2007-09-26 Ed Schonberg <schonberg@adacore.com>
935 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
936 rule for qualified expressions properly, to detect improper conversions
937 and resolve some cases of overloading.
939 2007-09-26 Ed Schonberg <schonberg@adacore.com>
941 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
942 proper kind of reference to the primitive operation, for better source
944 (Valid_Conversion): A tagged conversion is legal if both operands are
947 2007-09-26 Robert Dewar <dewar@adacore.com>
949 * sem_warn.adb (Check_References): Catch more cases of unreferenced
952 2007-09-26 Vincent Celier <celier@adacore.com>
954 * snames.adb, snames.ads: Change Include_Option to Include_Switches
956 2007-09-26 Robert Dewar <dewar@adacore.com>
958 * s-wchstw.adb: provide messages for run time unit exceptions
960 * a-witeio.adb: Minor reformatting
962 * exp_ch13.adb: Minor reformatting
964 2007-09-26 Sergey Rybin <rybin@adacore.com>
966 * vms_data.ads: Revise gnatmetric qualifiers.
967 Add qualified for the new gnatbind option '-y'
969 * gnat_ugn.texi: Revise the gnatmetric section.
970 Add entry for new gnatbind option '-y'.
972 * gnat_rm.texi: Minor spelling correction.
973 Document restriction on overlaying controlled types
975 2007-09-26 Vincent Celier <celier@adacore.com>
977 * makegpr.adb (Link_Executables): Do not fail when the root project has
978 no sources, but is an extending project.
980 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
982 * trans.c: Fix misplaced #define.
984 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
986 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
987 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
989 2007-09-21 Olivier Hainque <hainque@adacore.com>
991 * utils.c (type_for_nonaliased_component_p): Return false for
994 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
996 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
997 object covered by 13.3(19) volatile.
999 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
1003 * utils.c (unchecked_convert): Use a subtype as the intermediate type
1004 in the special VIEW_CONVERT_EXPR case.
1006 2007-09-12 Robert Dewar <dewar@adacore.com>
1008 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
1010 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
1011 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
1012 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
1013 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
1014 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
1015 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
1016 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
1017 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
1018 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
1019 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
1020 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
1021 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
1022 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
1023 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
1024 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
1025 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
1026 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
1027 pragma Compiler_Unit and adds it to relevant library units.
1029 2007-09-12 Ed Schonberg <schonberg@adacore.com>
1031 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
1032 a box need not correspond to any component.
1034 2007-09-12 Robert Dewar <dewar@adacore.com>
1036 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
1037 the tasking version of the Ada run time when foreign threads are
1038 present and there are no explicit Ada tasks or tasking constructs.
1040 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
1042 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
1044 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
1045 the usage of switch -y.
1047 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
1048 when switch -y is present.
1050 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
1051 leap seconds in Ada.Calendar and its children.
1053 2007-09-12 Jose Ruiz <ruiz@adacore.com>
1055 * a-extiti.ads (Timer): The discriminant is a "not null access
1056 constant" in the Reference Manual.
1057 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
1059 2007-09-12 Robert Dewar <dewar@adacore.com>
1061 * a-swuwha.adb: Remove junk RM header
1063 2007-09-12 Vincent Celier <celier@adacore.com>
1065 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
1068 * g-bytswa.ads: Minor reformatting
1070 2007-09-12 Thomas Quinot <quinot@adacore.com>
1072 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
1073 Add new constant Thread_Blocking_IO, always True by default, set False
1074 on a per-runtime basis.
1075 (Need_Netdb_Buffer): New constant.
1077 2007-09-12 Arnaud Charlet <charlet@adacore.com>
1079 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
1080 Added renames for corresponding functions in System.Partition_Interface.
1082 2007-09-12 Doug Rupp <rupp@adacore.com>
1084 * Makefile.in: Remove VMS specific System.CRTL packages which are no
1087 * s-crtl-vms64.ads: Removed.
1089 2007-09-12 Olivier Hainque <hainque@adacore.com>
1091 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
1092 with discriminant constraints, generalize the code for BIT_FIELDs
1093 to PACKED fields of constant size and propagate DECL_PACKED.
1095 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
1097 * decl.c (array_type_has_nonaliased_component): New predicate.
1098 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
1099 set the TYPE_NONALIASED_COMPONENT flag on the type.
1100 <E_Array_Subtype>: Likewise.
1101 * gigi.h (type_for_nonaliased_component_p): Declare.
1102 * utils.c (type_for_nonaliased_component_p): New predicate.
1103 (create_field_decl): Invoke the above predicate to set the
1104 DECL_NONADDRESSABLE_P flag on the field.
1106 2007-09-11 Javier Miranda <miranda@adacore.com>
1108 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
1109 in library level record type entities if we are generating statically
1110 allocated dispatch tables.
1112 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
1113 importing/exporting the _tag declaration by new code
1114 importing/exporting the dispatch table wrapper. This change allows us
1115 to statically allocate of the TSD.
1116 (Make_DT.Export_DT): New procedure.
1117 (Build_Static_DT): New function.
1118 (Has_DT): New function.
1120 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
1121 True_Constant and Current_Value. Required to statically
1122 allocate the dispatch tables.
1123 (Check_Allocator): Make function iterative instead of recursive.
1124 Also return inner allocator node, when present, so that we do not have
1125 to look for that node again in the caller.
1127 2007-09-11 Jan Hubicka <jh@suse.cz>
1129 * misc.c (gnat_expand_body): Kill.
1130 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
1132 2007-09-10 Robert Dewar <dewar@adacore.com>
1134 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
1135 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1136 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1137 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
1138 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
1139 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
1140 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
1141 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
1142 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
1143 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
1144 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
1145 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
1146 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
1147 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
1148 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
1149 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
1150 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
1151 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
1152 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
1153 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
1154 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
1155 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
1156 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
1157 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
1158 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
1159 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
1160 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
1161 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
1162 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
1163 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
1164 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
1165 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
1166 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
1167 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
1168 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
1169 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
1170 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
1171 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
1172 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
1173 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
1174 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
1175 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
1176 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
1177 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
1178 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
1179 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
1180 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
1181 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
1182 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
1183 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
1184 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
1185 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
1186 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
1187 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
1188 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
1189 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
1190 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
1191 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
1192 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
1193 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
1194 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
1195 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
1196 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
1197 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
1198 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
1199 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
1200 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
1201 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
1202 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
1203 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
1204 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
1205 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
1206 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
1207 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
1208 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
1209 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
1210 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
1211 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
1212 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
1213 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
1214 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
1215 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
1216 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
1218 2007-09-10 Emmanuel Briot <briot@adacore.com>
1220 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
1223 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
1225 * adaint.c (__gnat_translate_vms): new function.
1227 2007-09-10 Gary Dismukes <dismukes@adacore.com>
1228 Thomas Quinot <quinot@adacore.com>
1230 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
1231 create an abstract subprogram in the case of 'Input. For 'Output we now
1232 create a real spec/body when the type is abstract, since it can
1233 potentially be called.
1234 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
1235 body for 'Output when the type is abstract (only the creation of the
1236 body for 'Input is excluded when the type is abstract).
1237 (Stream_Operation_OK): Add an additional condition in the return
1238 statement, so that False will be returned for TTS_Stream_Input if the
1239 associated tagged type is an abstract extension. Add comments for
1241 (Expand_N_Object_Declaration): For the case of a shared passive
1242 variable, insert init proc call only after the shared variable
1243 procedures have been processed, because the IP call needs to undergo
1244 shared passive variable reference expansion, which requires these
1245 procedures to be available (and elaborated).
1247 2007-09-10 Vincent Celier <celier@adacore.com>
1249 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
1250 parameter Runtime_Project.
1252 2007-09-10 Ed Schonberg <schonberg@adacore.com>
1254 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
1255 given a box association, the type of the component is discriminated,
1256 and the value of the discriminant is the discriminant of the enclosing
1257 type, retrieve its value from the aggregate itself, where it must have
1260 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
1261 to remove other spurious ambiguities on arithmetic operations involving
1262 literals and addresses, on systems where Address is a visible integer
1263 type, when the operator is called in functional notation.
1264 (Try_Primitive_Operation): Within an instance, a call in prefixed form
1265 is legal when the types match, even if the operation is currently
1268 2007-09-10 Ed Schonberg <schonberg@adacore.com>
1270 * sem_ch12.adb (Build_Local_Package): A formal package with no
1271 associations is legal if all formals have defaults. It is not
1272 equivalent to a formal declared with a box.
1274 2007-09-10 Sergey Rybin <rybin@adacore.com>
1276 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
1278 2007-09-10 Sergey Rybin <rybin@adacore.com>
1280 * gnat_ugn.texi: Add description of the new '-lratio' option
1281 Update 7.3.1 section about availability of the feature.
1283 2007-09-10 Thomas Quinot <quinot@adacore.com>
1285 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
1288 2007-09-10 Olivier Hainque <hainque@adacore.com>
1290 * Makefile.in: (mips-irix section): Activate build of libgmem.
1292 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
1294 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
1297 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
1299 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
1300 a debug renaming declaration specially.
1302 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
1304 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
1305 which a constant renaming is treated as a normal object declaration.
1306 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
1307 the N_Indexed_Component case.
1308 <N_Indexed_Component>: Fall through to above case.
1309 <N_Object_Renaming_Declaration>: Return true for all composite types.
1311 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
1313 * decl.c (make_packable_type): If the new type has been given BLKmode,
1314 try again to get an integral mode for it.
1316 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
1318 Re-apply accidentally reverted change:
1320 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
1322 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
1323 get_action_description_for): Replace _Unwind_Word with _uleb128_t
1324 and _Unwind_SWord with _sleb128_t.
1326 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
1328 * trans.c (convert_with_check): Update call to real_2expN.
1330 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
1332 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
1333 * utils.c (end_subprog_body): Likewise.
1335 2007-09-03 Nick Clifton <nickc@redhat.com>
1337 * Make-lang.in: Change copyright header to refer to version 3 of
1338 the GNU General Public License and to point readers at the
1339 COPYING3 file and the FSF's license web page.
1340 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
1341 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
1342 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
1343 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
1346 2007-08-31 Vincent Celier <celier@adacore.com>
1350 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
1351 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
1352 (Check_Version_And_Help): New procedure in package Switch to process
1353 switches --version and --help.
1354 Use Check_Version_And_Help in GNAT tools
1357 (Compile_Sources): Make sure that sources that are "excluded" are not
1359 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
1360 project file is used.
1361 (Version_Switch): Remove, moved to Switch
1362 (Help_Switch): Remove, moved to Switch
1363 (Display_Version): Remove, moved to Switch
1365 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
1366 package Switch to process switches --version and --help.
1367 (Display_Version): New procedure
1369 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
1371 2007-08-31 Javier Miranda <miranda@adacore.com>
1373 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
1376 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1378 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
1379 (Mark_Non_Null): If the node for which we just generated an access check
1380 is a reference to an *in* parameter and the reference appears in the
1381 declarative part of a subprogram body, mark the node as known non null.
1383 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1385 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
1386 structure of E_Exception to reflect the new flag.
1387 (Is_Raised, Set_Is_Raised): New inlined routines.
1388 Update the usage of available flag to reflect the addition of Is_Raised.
1389 (Is_Raised, Set_Is_Raised): Bodies of new routines.
1390 (Write_Entity_Flags): Write the status of flag Is_Raised.
1391 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
1392 spurious ambiguities when integer literals appear in the context of an
1393 address type that is a visible integer type.
1395 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
1396 exceptions never being raised.
1397 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
1400 2007-08-31 Javier Miranda <miranda@adacore.com>
1402 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
1403 statement when compiling under restriction No_Exceptions_Proparation.
1405 2007-08-31 Ed Schonberg <schonberg@adacore.com>
1407 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
1408 initialization aggregate for the type, generate itype references for
1409 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
1411 2007-08-31 Gary Dismukes <dismukes@adacore.com>
1413 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
1414 library-level package renaming, pass the declaration associated with
1415 the renaming's special debug variable to Qualify_Entity_Names to ensure
1416 that its encoded name is properly qualified.
1418 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
1419 occurring in the list of entities to qualify, and do not attempt to
1420 traverse an entity list in that case. Variables associated with
1421 ` library-level package renamings can now occur in the table.
1423 * exp_dbug.ads: Revise documentation of the encoding for renaming
1426 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1428 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
1429 access type points to an unconstrained array.
1431 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1433 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
1436 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
1437 simple redundant qualifications. The check is performed whenever the
1438 expression is a non-overloaded identifier.
1439 (Resolve_Type_Conversion): Enchance the redundant type conversion check
1440 to include loop parameters.
1441 (Valid_Conversion): Avoid generation of spurious error message.
1443 2007-08-31 Bob Duff <duff@adacore.com>
1445 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
1446 concatenations of string literals into a single literal, in order to
1447 avoid very deep recursion in the front end, which was causing stack
1450 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
1451 string, and the right operand is a string literal (the case of "" &
1452 "..."), optimize by avoiding copying the right operand -- just use the
1453 value of the right operand directly.
1455 * stringt.adb (Store_String_Chars): Optimize by growing the
1456 String_Chars table all at once, rather than appending characters one by
1458 (Write_String_Table_Entry): If the string to be printed is very long,
1459 just print the first few characters, followed by the length. Otherwise,
1460 doing "pn(n)" in the debugger can take an extremely long time.
1462 * sem_prag.adb (Process_Interface_Name): Replace loop doing
1463 Store_String_Char with Store_String_Chars.
1465 2007-08-31 Vincent Celier <celier@adacore.com>
1467 * prj-attr.adb: Add new attribute Excluded_Source_Files
1469 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
1470 Locally_Removed_Files.
1472 * snames.ads, snames.adb: New standard name Excluded_Source_Files
1474 2007-08-31 Ed Schonberg <schonberg@adacore.com>
1476 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
1477 clauses of subunits, ignore limited_with_clauses that are illegal and
1478 have not been fully analyzed.
1480 2007-08-31 Ed Schonberg <schonberg@adacore.com>
1482 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
1483 flag, for effiency. It is called when analyzing arithmetic operators
1484 and also for actuals in calls that are universal_integers. The flag is
1485 set for the predefined type address, and for any type or subtype
1488 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
1489 Universal_Integer, when the formal is a descendent of address and the
1490 call appears in user code.
1491 (Analyze_Selected_Component): if the prefix is a private extension, the
1492 tag component is visible.
1494 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
1497 2007-08-31 Robert Dewar <dewar@adacore.com>
1499 * s-fileio.adb (Open): Normalize file name to lower case in non-case
1500 sensitive file name systems to avoid unexpected mismatch in Vista.
1502 2007-08-31 Vincent Celier <celier@adacore.com>
1504 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
1506 2007-08-31 Vincent Celier <celier@adacore.com>
1508 * symbols-vms.adb (Initialize): Read symbol files with continuation
1510 (Finalize): If symbol is long, split the line
1512 2007-08-31 Vincent Celier <celier@adacore.com>
1514 * fmap.ads: Minor comment updates
1516 2007-08-31 GNAT Script <nobody@adacore.com>
1518 * Make-lang.in: Makefile automatically updated
1520 2007-08-31 Bob Duff <duff@adacore.com>
1522 * sinfo.ads: Minor comment fix.
1524 2007-08-31 Thomas Quinot <quinot@adacore.com>
1526 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
1527 with implementation.
1528 Documentation cleanup only.
1530 2007-08-31 Sergey Rybin <rybin@adacore.com>
1532 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
1533 gnatpp '--separate-stmt-name' option.
1534 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
1537 * gnat_ugn.texi: Add description for the new gnatpp
1538 '--separate-stmt-name' and '--use-on-new-line' options.
1540 2007-08-31 Ben Elliston <bje@au.ibm.com>
1542 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
1543 when compiling for powerpc64-*-linux.
1544 * system-linux-ppc64.ads: New file.
1546 2007-08-22 Krister Walfridsson <cato@df.lth.se>
1548 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
1551 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1553 * misc.c (gnat_type_max_size): Constify.
1555 2007-08-16 Gary Dismukes <dismukes@adacore.com>
1557 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
1558 associated with Standard_Debug_Renaming_Type, to be used as the type of
1559 the special variables whose names provide debugger encodings for
1560 renaming declarations.
1562 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
1563 (Set_Debug_Renaming_Link): Change to set Node25.
1564 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
1565 (Write_Field25_Name): Add case for E_Variable to output
1566 "Debug_Renaming_Link".
1567 (Write_Field23_Name): Correct the output string for "Limited_View".
1569 * exp_dbug.adb: Add with and use of Tbuild.
1570 (Debug_Renaming_Declaration): Replace creation of an enumeration type
1571 and literal with creation of a variable of type
1572 Standard_Debug_Renaming_Type whose name encodes both the renamed object
1573 and the entity of the renaming declaration.
1574 (Qualify_Entity_Name): Add the delayed qualification of the entity name
1575 part of the name of a variable that has a Debug_Renaming_Link.
1577 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
1578 special type to be associated with variables that provide debugger
1579 encodings for renaming declarations.
1581 2007-08-16 Gary Dismukes <dismukes@adacore.com>
1582 Ed Schonberg <schonberg@adacore.com>
1583 Javier Miranda <miranda@adacore.com>
1585 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
1586 ancestor part given by an aggregate to test for an unchecked conversion,
1587 since this can occur in some cases when the ancestor part is a function
1588 call, and we don't want to fall into the recursive call to this
1589 procedure in that case.
1591 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
1592 stream attributes on limited types to account for user-specified
1593 attributes as well as whether Input (resp. Output) becomes available
1594 due to Read (resp. Write) being available for the type. Change Boolean
1595 variable to the more accurate name
1596 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
1597 double-"not" predicate at beginning of return statement to more
1598 understandable form.
1600 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
1601 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
1602 in a block statement and use that as the first statement of the
1603 expanded return rather than incorrectly using the handled sequence as
1604 the first statement.
1606 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
1607 operation, generate an explicit freeze node for it rather than
1608 generating extra formals, to ensure that gigi has the proper order of
1609 elaboration for anonymous subtypes in the signature of the subprograms.
1610 (Build_In_Place_Formal): Move assertion to beginning of loop.
1611 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
1612 applied to a function call (occurs for some cases of 'Input).
1613 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
1614 applied to a function call (occurs for some cases of 'Input).
1616 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
1617 2005, generate an extended return statement enclosing the result object
1620 * freeze.adb (Freeze_Record_Type): Extend the current management of
1621 components that are access type with an allocator as default value: add
1622 missing support to the use of qualified expressions of the
1623 allocator (which also cause freezing of the designated type!)
1624 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
1625 dispatching operation, since extra formals may be needed by calls to
1626 build-in-place functions (such as stream 'Input).
1628 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
1629 formals for 'Constrained and accessibility level in the case of a
1630 predefined dispatching operation.
1632 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
1633 point, no need to find the parent node.
1635 2007-08-16 Javier Miranda <miranda@adacore.com>
1637 * exp_attr.adb (Attribute_Priority): Add missing support for entries
1640 2007-08-16 Javier Miranda <miranda@adacore.com>
1642 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
1643 is not really required and can introduce regression with the debugger.
1644 The original problem is fixed with the patch written for checks.adb.
1646 2007-08-16 Thomas Quinot <quinot@adacore.com>
1648 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
1649 Range_Check on Allocated_Table.
1651 2007-08-16 Vincent Celier <celier@adacore.com>
1653 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
1654 Including_Non_Switch set to False.
1655 (Gnatmake): For the compiler, call Test_If_Relative_Path with
1656 Including_Non_Switch set to False.
1658 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
1659 parameter Including_Non_Switch, defaulted to True. When
1660 Including_Non_Switch is False, options that are not switches and
1661 appear as relative path are not converted to absolute paths.
1663 2007-08-16 Nicolas Roche <roche@adacore.com>
1665 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
1668 * Make-lang.in: Update dependencies
1670 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
1672 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
1673 currently inspected is a selected component, retrieve the entity of
1675 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
1676 from the immediate ancestor of Main_Unit_Entity.
1677 (Install_Limited_Withed_Unit): Do not install the limited view of
1678 package P if P is reachable through an ancestor chain from package C
1679 and C also has a with clause for P in its body.
1680 (Has_Limited_With_Clause): New routine.
1681 (Has_With_Clause): New routine.
1683 2007-08-16 Ed Schonberg <schonberg@adacore.com>
1685 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
1686 generic for an enclosing instance is a global reference, even though
1687 its scope is the enclosing instance.
1689 2007-08-16 Gary Dismukes <dismukes@adacore.com>
1690 Javier Miranda <miranda@adacore.com>
1692 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
1693 initialize a limited object.
1694 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
1696 Make sure Has_Complex_Representation is inherited by derived type.
1698 2007-08-16 Robert Dewar <dewar@adacore.com>
1700 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
1703 2007-08-16 Ed Schonberg <schonberg@adacore.com>
1705 * sem_disp.adb (Check_Dispatching_Operation): If the operation
1706 implements an operation inherited from a progenitor interface, verify
1707 that they are subtype-conformant.
1709 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
1710 Bob Duff <duff@adacore.com>
1711 Nicolas Setton <setton@adacore.com>
1713 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
1714 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
1715 the statement which is being resolved comes from a predefined library
1716 unit, all non-predefined library interpretations are skipped.
1717 (Resolve_Op_Concat): If string concatenation was folded in the parser,
1718 but the "&" is user defined, give an error, because the folding would
1721 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
1722 the parser has folded a long sequence of concatenations of string
1725 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
1726 and "JMP_BUF" variables as artificial.
1727 (N_String_Literal): Do not use alloca for very long string literals. Use
1728 xmalloc/free instead. Otherwise the stack might overflow.
1730 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
1733 2007-08-16 Vincent Celier <celier@adacore.com>
1735 * vms_conv.adb (Process_Argument): Ensure that project related options
1736 are not put in the -cargs section when using GNAT COMPILE.
1738 2007-08-16 Robert Dewar <dewar@adacore.com>
1740 * gnat_ugn.texi: Add note on preprocessing (output file not written)
1742 2007-08-16 Thomas Quinot <quinot@adacore.com>
1744 * a-tags.adb: Minor reformatting.
1746 2007-08-16 Bob Duff <duff@adacore.com>
1748 * sem_type.ads, sem_ch4.adb: Minor reformatting.
1750 2007-08-14 Thomas Quinot <quinot@adacore.com>
1752 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
1753 s-osinte-interix.ads, system-interix.ads: Removed.
1755 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
1757 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
1758 calls to Check_Within_Time_Bounds.
1759 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
1760 (Difference): Account for possible rounding of the resulting difference
1762 2007-08-14 Robert Dewar <dewar@adacore.com>
1764 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
1765 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
1766 s-osinte-solaris.adb, s-osinte-solaris.ads,
1767 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
1769 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
1770 switch -gnatyS. Enable -gnatyS in GNAT style check mode
1772 2007-08-14 Robert Dewar <dewar@adacore.com>
1773 Ed Schonberg <schonberg@adacore.com>
1775 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
1776 Suppress unmodified in-out parameter warning in some cases
1777 This patch is a also fairly significant change to the way suppressible
1780 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
1781 needed for access to concurrent record types generated by the expander.
1782 (Generate_Range_Check): When generating a temporary to capture the
1783 value of a conversion that requires a range check, set the type of the
1784 temporary before rewriting the node, so that the type is always
1785 properly placed for back-end use.
1786 (Apply_Float_Conversion_Check): Handle case where the conversion is
1788 (Get_Discriminal): Code reformatting. Climb the scope stack looking
1789 for a protected type in order to examine its discriminants.
1791 2007-08-14 Robert Dewar <dewar@adacore.com>
1792 Gary Dismukes <dismukes@adacore.com>
1793 Ed Schonberg <schonberg@adacore.com>
1794 Thomas Quinot <quinot@adacore.com>
1796 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
1797 a-stwisu.adb, a-strsup.adb: Fix warnings for range
1798 tests optimized out.
1800 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
1801 (Get_Allocator_Final_List): For the case of an anonymous access type
1802 that has a specified Associated_Final_Chain, do not go up to the
1804 (Expand_N_Type_Conversion): Test for the case of renamings of access
1805 parameters when deciding whether to apply a run-time accessibility
1807 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
1808 aggregate code before allocator, and ahead of declaration for
1809 temporary, to prevent access before elaboration when the allocator is
1810 an actual for an access parameter.
1811 (Expand_N_Type_Conversion): On an access type conversion involving an
1812 access parameter, do not apply an accessibility check when the
1813 operand's original node was an attribute other than 'Access. We now
1814 create access conversions for the expansion of 'Unchecked_Access and
1815 'Unrestricted_Access in certain cases and clearly accessibility should
1816 not be checked for those.
1818 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
1819 includes a type conversion of a packed component that has been expanded,
1820 recover the original expression for the object, and use this expression
1821 in the post-call assignment statement, so that the assignment is made
1822 to the object and not to a back-end temporary.
1823 (Freeze_Subprogram): In case of primitives of tagged types not defined
1824 at the library level force generation of code to register the primitive
1825 in the dispatch table. In addition some code reorganization has been
1826 done to leave the implementation clear.
1827 (Expand_Call): When expanding an inherited implicit conversion,
1828 preserve the type of the inherited function after the intrinsic
1829 operation has been expanded.
1831 * exp_ch2.ads, exp_ch2.adb
1832 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
1833 of an entry formal appearing in an assignment statement does not assign
1835 (Expand_Current_Value): Instead of calling a routine to determine
1836 whether the prefix of an attribute reference should be optimized or
1837 not, prevent the optimization of such prefixes all together.
1839 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
1840 component whose prefix is known to be of an access type is an implicit
1841 dereference and does not assign to the prefix.
1843 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1844 Robert Dewar <dewar@adacore.com>
1846 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
1847 itype is visited, make an entry into table to link associated node and
1849 Add comments and correct harmless error in Build_NCT_Hash_Tables
1850 (Array_Aggr_Subtype): Associate each itype created for an index type to
1851 the corresponding range construct, and not to the aggregate itself. to
1852 maintain a one-to-one correspondence between itype and its associated
1853 node, to prevent errors when complex expression is copied.
1854 Fix mishandling of multiple levels of parens
1856 * sem_aggr.adb: Create a limited view of an incomplete type, to make
1857 treatment of limited views uniform for all visible declarations in a
1858 limited_withed package.
1859 (New_Copy_Tree): If hash table is being used and itype is visited,
1860 make an entry into table to link associated node and new itype.
1861 (Resolve_Record_Aggregate): Do not add an others box association for a
1862 discriminated record component that has only discriminants, when there
1863 is a box association for the component itself.
1865 * par-ch4.adb: Fix mishandling of multiple levels of parens
1867 2007-08-14 Robert Dewar <dewar@adacore.com>
1869 * comperr.adb: Fix problem with suppressing warning messages from gigi
1871 * erroutc.ads, erroutc.adb, errout.ads,
1872 errout.adb (Write_Eol): Remove trailing spaces before writing the line
1873 (Write_Eol_Keep_Blanks): New procedure to write a line, including
1874 possible trailing spaces.
1875 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
1876 Fix problem with suppressing warning messages from back end
1877 Improve handling of deleted warnings
1880 Fix problem with suppressing warning messages from back end
1881 Handle setting of Static_Dispatch_Tables flag.
1884 Fix problem with suppressing warning messages from back end
1886 * exp_intr.adb: Improve handling of deleted warnings
1888 2007-08-14 Robert Dewar <dewar@adacore.com>
1890 * debug.adb: Improve -gnatdI to cover all cases of serialization
1891 Add documentation of dZ, d.t
1893 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
1895 (Sprint_Node_Actual): Generate new output associated with implicit
1896 importation and implicit exportation of object declarations.
1898 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1899 Robert Dewar <dewar@adacore.com>
1900 Javier Miranda <miranda@adacore.com>
1901 Gary Dismukes <dismukes@adacore.com>
1903 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
1904 to make treatment of limited views uniform for all visible declarations
1905 in a limited_withed package.
1906 Improve warnings for in out parameters
1907 (Set_Related_Interaface/Related_Interface): Allow the use of this
1908 attribute with constants.
1909 (Write_Field26_Name): Handle attribute Related_Interface in constants.
1910 Warn on duplicate pragma Preelaborable_Initialialization
1912 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
1913 generation of a freezing node to ensure proper management of null
1914 excluding access types in the backend.
1915 (Create_Extra_Formals): Test base type of the formal when checking for
1916 the need to add an extra accessibility-level formal. Pass the entity E
1917 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
1918 originally being done in a couple of cases), to ensure that the
1919 Extra_Formals list gets set on the entity E when the first entity is
1921 (Conforming_Types): Add missing calls to Base_Type to the code that
1922 handles anonymous access types. This is required to handle the
1923 general case because Process_Formals builds internal subtype entities
1924 to handle null-excluding access types.
1925 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
1926 functions that need it, even when not marked Requires_Overriding.
1927 Improve warnings for in out parameters
1928 (Analyze_Function_Return): Warn for disallowed null return
1929 Warn on return from procedure with unset out parameter
1930 Ensure consistent use of # in error messages
1931 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
1932 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
1933 the implicit conversion of the expression done for anonymous access
1934 types. This is required to generate the code of the null excluding
1935 check (if required).
1937 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
1938 A formal parameter is never publicly referenceable outside of its body.
1939 (Check_References): For an unreferenced formal parameter in an accept
1940 statement, use the same warning circuitry as for subprogram formal
1942 (Warn_On_Unreferenced_Entity): New subprogram, taken from
1943 Output_Unreferenced_Messages, containing the part of that routine that
1944 is now reused for entry formals as described above.
1945 (Goto_Spec_Entity): New function
1946 (Check_References): Do not give IN OUT warning for dispatching operation
1947 Improve warnings for in out parameters
1948 (Test_Ref): Check that the entity is not undefinite before calling
1949 Scope_Within, in order to avoid infinite loops.
1950 Warn on return from procedure with unset out parameter
1951 Improved warnings for unused variables
1953 2007-08-14 Robert Dewar <dewar@adacore.com>
1954 Javier Miranda <miranda@adacore.com>
1955 Gary Dismukes <dismukes@adacore.com>
1957 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
1958 (Expand_N_Attribute_Reference): Further unify the handling of the
1959 three forms of access attributes, using common code now for all three
1960 cases. Add a test for the case of applying an access attribute to
1961 an explicit dereference when the context is an access-to-interface
1962 type. In that case we need to apply the conversion to the prefix
1963 of the explicit dereference rather than the prefix of the attribute.
1964 (Attribute_Version, UET_Address): Set entity as internal to ensure
1965 proper dg output of implicit importation.
1966 (Expand_Access_To_Type): Removed.
1967 (Expand_N_Attribute_Reference): Merge the code from the three cases
1968 of access attributes, since the processing is largely identical for
1969 these cases. The substantive fix here is to process the case of a
1970 type name prefix (current instance case) before handling the case
1971 of interface prefixes.
1973 2007-08-14 Thomas Quinot <quinot@adacore.com>
1974 Ed Schonberg <schonberg@adacore.com>
1975 Javier Miranda <miranda@adacore.com>
1976 Robert Dewar <dewar@adacore.com>
1978 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
1979 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
1980 type that is an anonymous access to controlled object, establish
1981 an associated finalization chain to avoid corrupting the global
1982 finalization list when a dynamically allocated object designated
1983 by such a component is deallocated.
1984 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
1985 functions that need it, even when not marked Requires_Overriding.
1986 (Initialize_Tag): Replace call to has_discriminants by call to
1987 Is_Variable_Size_Record in the circuitry that handles the
1988 initialization of secondary tags.
1989 (Is_Variable_Size_Record): New implementation.
1990 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
1991 Suppress_Initialization pragma for a derived type.
1992 (Is_Variable_Size_Record): New subprogram.
1993 (Build_Offset_To_Top_Functions): New implementation that simplifies the
1994 initial version of this routine and also fixes problems causing
1995 incomplete initialization of the table of interfaces.
1996 (Build_Init_Procedure): Improve the generation of code to initialize the
1997 the tag components of secondary dispatch tables.
1998 (Init_Secondary_Tags): New implementation that simplifies the previous
1999 version of this routine.
2000 (Make_DT): Add parameter to indicate when type has been frozen by an
2001 object declaration, for diagnostic purposes.
2002 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
2003 diagnose attemps to freeze a subprogram when some untagged type of its
2004 profile is a private type whose full view has not been analyzed yet.
2005 (Freeze_Array_Type): Generate init proc for packed array if either
2006 Initialize or Normalize_Scalars is set.
2007 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
2008 constructing the new profile, copy the null_exclusion indicator for each
2009 parameter, to ensure full conformance of the new body with the spec.
2011 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
2012 Create wrappers for constructor functions that need it, even when not
2013 marked Requires_Overriding.
2014 (Covers): Handle properly designated types of anonymous access types,
2015 whose non-limited views are themselves incomplete types.
2016 (Add_Entry): Use an entity to store the abstract operation which hides
2018 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
2019 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
2020 initialization aggregate.
2021 (Function_Interp_May_Be_Hidden): Rename to
2022 Function_Interp_Has_Abstract_Op.
2023 (Has_Compatible_Type): Remove machinery that skips interpretations if
2024 they are labeled as potentially hidden by an abstract operator.
2025 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
2026 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
2027 (Write_Overloads): Output the abstract operator if present.
2028 (Add_Entry): Before inserting a new entry into the interpretation table
2029 for a node, determine whether the entry will be disabled by an abstract
2031 (Binary_Op_Interp_May_Be_Hidden): New routine.
2032 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
2034 (Function_Interp_May_Be_Hidden): New routine.
2035 (Has_Compatible_Type): Do not consider interpretations hidden by
2036 abstract operators when trying to determine whether two types are
2038 (Has_Hidden_Interp): New routine.
2039 (Set_May_Be_Hidden_Interp): New routine.
2040 (Write_Overloads): Write the status of flag May_Be_Hidden.
2042 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2043 Javier Miranda <miranda@adacore.com>
2045 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
2046 types declared in the declarative part of a nested package body or in
2047 the proper body of a stub.
2048 (Set_All_DT_Position): Add missing check to avoid wrong assignation
2049 of the same dispatch table slot to renamed primitives.
2050 (Make_Select_Specific_Data_Table): Handle private types.
2051 (Tagged_Kind): Handle private types.
2052 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
2053 output of implicit importation and exportation.
2054 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
2055 first formal of the thunk is always associated with the controlling
2056 type. In addition perform the following code cleanup: remove formal
2057 Thunk_Alias which is no longer required, cleanup evaluation of the
2058 the controlling type, and update the documentation.
2059 Replace occurrence of Default_Prim_Op_Count by
2060 Max_Predef_Prims. Addition of compile-time check to verify
2061 that the value of Max_Predef_Prims is correct.
2062 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
2063 (Make_DT): Add parameter to indicate when type has been frozen by an
2064 object declaration, for diagnostic purposes.
2065 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
2066 construction of statically allocated dispatch tables.
2067 (Make_DT): In case of library-level tagged types export the declaration
2068 of the primary tag. Remove generation of tags (now done by Make_Tags).
2069 Additional modifications to handle non-static generation of dispatch
2070 tables. Take care of building tables for asynchronous interface types
2071 (Make_Tags): New subprogram that generates the entities associated with
2072 the primary and secondary tags of Typ and fills the contents of Access_
2073 Disp_Table. In case of library-level tagged types imports the forward
2074 declaration of the primary tag that will be declared later by Make_DT.
2075 (Expand_Interface_Conversion): In case of access types to interfaces
2076 replace an itype declaration by an explicit type declaration to avoid
2077 problems associated with the scope of such itype in transient blocks.
2079 2007-08-14 Robert Dewar <dewar@adacore.com>
2080 Ed Schonberg <schonberg@adacore.com>
2081 Javier Miranda <miranda@adacore.com>
2083 * exp_util.ads, exp_util.adb:
2084 This patch replaces a number of occurrences of explicit tests for N_Null
2085 with calls to Known_Null. This improves tracking of null values, since
2086 Known_Null also catches null constants, and variables currently known to
2087 be null, so we get better tracking.
2088 (Ensure_Defined): create an itype reference only in the scope of the
2090 (Side_Effect_Free): A selected component of an access type that
2091 denotes a component with a rep clause must be treated as not
2092 side-effect free, because if it is part of a linked structure its
2093 value may be affected by a renaming.
2094 (Expand_Subtype_From_Expr): For limited objects initialized with build
2095 in place function calls, do nothing; otherwise we prematurely introduce
2096 an N_Reference node in the expression initializing the object, which
2097 breaks the circuitry that detects and adds the additional arguments to
2098 the called function. Bug found working in the new patch for statically
2099 allocated dispatch tables.
2100 (Is_Library_Level_Tagged_Type): New subprogram.
2101 (Remove_Side_Effects): If the expression of an elementary type is an
2102 operator treat as a function call.
2103 (Make_Literal_Range): If the index type of the array is not integer, use
2104 attributes properly to compute the constraint on the resulting aggregate
2107 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
2108 class-wide type whose base type is an incomplete private type, leave
2109 class-wide type unfrozen so that freeze nodes can be generated
2110 properly at a later point.
2111 (Freeze_Entity, array case): Handle case of pragma Pack and component
2112 size attributre clause for same array.
2114 2007-08-14 Vincent Celier <celier@adacore.com>
2116 * prj.ads, prj.adb: Update Project Manager to new attribute names for
2118 Allow all valid declarations in configuration project files
2119 (Reset): Initialize all tables and hash tables in the project tree data
2120 Major update of the Project Manager and of the project aware tools,
2121 including gprmake, so that the same sources in the GNAT repository
2122 can be used by gprbuild.
2123 (Slash_Id): Change type to be Path_Name_Type
2124 (Slash): Return a Path_Name_Type instead of a File_Name_Type
2126 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
2128 Update Project Manager to new attribute names for ghprbuild
2129 Allow all valid declarations in configuration project files
2130 Major update of the Project Manager and of the project aware tools,
2131 including gprmake, so that the same sources in the GNAT repository
2132 can be used by gprbuild.
2135 Major update of the Project Manager and of the project aware tools,
2136 including gprmake, so that the same sources in the GNAT repository
2137 can be used by gprbuild.
2139 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
2140 insensitive flag for attributes with optional index.
2141 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
2142 array attribute, put the index in lower case.
2143 Update Project Manager to new attribute names for ghprbuild
2144 Allow all valid declarations in configuration project files
2145 Major update of the Project Manager and of the project aware tools,
2146 including gprmake, so that the same sources in the GNAT repository
2147 can be used by gprbuild.
2149 * prj-env.ads, prj-env.adb:
2150 Major update of the Project Manager and of the project aware tools,
2151 including gprmake, so that the same sources in the GNAT repository
2152 can be used by gprbuild.
2153 (Get_Reference): Change type of parameter Path to Path_Name_Type
2155 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
2156 removing '-' from the path to start with the first character of the
2158 Major update of the Project Manager and of the project aware tools,
2159 including gprmake, so that the same sources in the GNAT repository
2160 can be used by gprbuild.
2161 Major update of the Project Manager and of the project aware tools,
2162 including gprmake, so that the same sources in the GNAT repository
2163 can be used by gprbuild.
2165 * prj-nmsc.ads, prj-nmsc.adb:
2166 Update Project Manager to new attribute names for ghprbuild
2167 Allow all valid declarations in configuration project files
2168 (Search_Directories): Detect subunits that are specified with an
2169 attribute Body in package Naming. Do not replace a source/unit in the
2170 same project when the order of the source dirs are known. Detect
2171 duplicate sources/units in the same project when the order of the
2172 source dirs are not known.
2173 (Check_Ada_Name): Allow all identifiers that are not reserved words
2175 Major update of the Project Manager and of the project aware tools,
2176 including gprmake, so that the same sources in the GNAT repository
2177 can be used by gprbuild.
2178 (Look_For_Sources): If the list of sources is empty, set the object
2179 directory of non extending project to nil.
2180 Change type of path name variables to be Path_Name_Type
2181 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
2182 otherwise creating missing directories will fail.
2184 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
2185 prj-part.ads, prj-part.adb:
2186 Major update of the Project Manager and of the project aware tools,
2187 including gprmake, so that the same sources in the GNAT repository
2188 can be used by gprbuild.
2190 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
2191 insensitive flag for attributes with optional index.
2192 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
2193 array attribute, put the index in lower case.
2194 (Parse_Variable_Reference): Allow the current project name to be used in
2195 the prefix of an attribute reference.
2197 * prj-util.ads, prj-util.adb
2198 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
2199 defaulted to False. When True, always check against indexes in lower
2202 * snames.ads, snames.h, snames.adb:
2203 Update Project Manager to new attribute names for gprbuild
2204 Allow all valid declarations in configuration project files
2206 2007-08-14 Robert Dewar <dewar@adacore.com>
2207 Ed Schonberg <schonberg@adacore.com>
2209 * opt.ads: Warning for non-local exception propagation now off by
2211 New switch -gnatI to disable representation clauses
2212 Implement new pragma Implicit_Packing
2215 Warning for non-local exception propagation now off by default
2216 Add warning for unchecked conversion of pointers wi different
2218 New switch -gnatI to disable representation clauses
2220 * usage.adb: new switch -gnatyS
2222 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
2223 note that aggregates of anonymous array types are not flagged.
2224 -gnatwc now includes membership tests optimized away
2225 -gnatw.x warnings are now off by default
2226 Added conditional compilation Appendix
2227 Add documentation of -gnatI
2228 Add documentation for new -gnatyS style check
2229 Update documentation about SAL and auto-init on Windows.
2232 Add documentation for pragma Check_Name and 'Enabled attribute
2233 Document that Eliminate on dispatching operation is ignored
2234 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
2235 Document pragma Main
2236 Document pragma Implicit_Packing
2238 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
2239 different conventions
2240 New switch -gnatI to disable representation clauses
2242 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
2243 recognized, report the invalid characters including "-gnat" instead of
2244 just the first character in the switch.
2245 New switch -gnatI to disable representation clauses
2246 Set Warn_On_Object_Renames_Function true for -gnatg
2248 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
2249 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
2250 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
2251 to switch -aP (add directory to project search dir).
2253 * par-prag.adb: Implement new pragma Implicit_Packing
2255 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
2256 type as having a non-standard representation, to force expansion on
2257 conversion to related types.
2258 (Analyze_Pragma): Warn on misspelled pragma
2259 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
2260 Ensure consistent use of # in error messages
2261 Implement pragma Implicit_Packing
2263 2007-08-14 Olivier Hainque <hainque@adacore.com>
2264 Eric Botcazou <ebotcazou@adacore.com>
2266 * targtyps.c (get_target_maximum_default_alignment): New function.
2268 that the compiler might choose by default for a type or object.
2269 (get_target_default_allocator_alignment): New function. Alignment known
2270 to be honored by the target default allocator.
2271 (get_target_maximum_allowed_alignment): New function. Maximum alignment
2272 we might accept for any type or object on the target.
2273 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
2275 * gigi.h (get_target_maximum_default_alignment): Declare new function.
2276 (get_target_default_allocator_alignment): Likewise.
2277 (get_target_maximum_allowed_alignment): Likewise.
2280 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
2281 result of a function call, first try to use a stabilized reference for
2282 a constant renaming too.
2283 (validate_alignment): Use target_maximum_allowed_alignment instead of
2284 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
2285 (gnat_to_gnu_entity): Use common nodes directly.
2286 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
2287 alignment and size for the object.
2288 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
2289 and N_Procedure_Call_Statement.
2290 (takes_address): Rename to lvalue_required_p, add third parameter
2291 'aliased' and adjust recursive calls.
2292 <N_Indexed_Component>: Update 'aliased' from the array type.
2293 <N_Selected_Component>: New case.
2294 <N_Object_Renaming_Declaration>: New Likewise.
2295 (Identifier_to_gnu): Adjust for above changes.
2296 (maybe_stabilize_reference) <CONST_DECL>: New case.
2298 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
2299 between type variants.
2300 (build_simple_component_ref): Likewise.
2301 (build_call_alloc_dealloc): Use target_default_allocator_alignment
2302 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
2303 aligning type circuitry for allocations from the default storage pool.
2304 (build_allocator): Likewise.
2305 (build_simple_component_ref): Manually fold the reference for a
2306 constructor if the record type contains a template.
2308 * utils.c (value_zerop): Delete.
2309 (gnat_init_decl_processing): Emit debug info for common types.
2310 (rest_of_record_type_compilation): If a union contains a field
2311 with a non-constant qualifier, treat it as variable-sized.
2312 (finish_record_type): Give the stub TYPE_DECL a name.
2313 (rest_of_record_type_compilation): Likewise.
2314 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
2315 types are equivalent array types.
2316 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
2317 even if the type is not passed by reference.
2318 (static_ctors, static_dtors): Delete.
2319 (end_subprog_body): Do not record constructors and destructors.
2320 (build_global_cdtor): Delete.
2321 (gnat_write_global_declarations): Do not call build_global_cdtor.
2323 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
2324 -fRTS=rtp is specified.
2325 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
2328 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
2329 of the personality function with SJLJ exceptions.
2331 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
2332 the name of the personality function with SJLJ exceptions.
2334 2007-08-14 Robert Dewar <dewar@adacore.com>
2335 Ed Schonberg <schonberg@adacore.com>
2337 * par.ads, par.adb: Improve handling of extra right parens.
2338 (Par): Remove flag From_Limited_With_Clause.
2340 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
2341 Improve handling of extra right parens.
2343 2007-08-14 Robert Dewar <dewar@adacore.com>
2345 * par-tchk.adb (TF_Semicolon): Improve error recovery
2347 2007-08-14 Robert Dewar <dewar@adacore.com>
2348 Ed Schonberg <schonberg@adacore.com>
2350 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
2351 enumeration type, mark all literals as referenced.
2352 (Eval_Attribute, case 'Image): If the argument is an enumeration
2353 literal and names are available, constant-fold but mark nevertheless as
2355 Clean up function names.
2356 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
2358 (Requires_Simple_Name_Prefix): Removed.
2360 2007-08-14 Robert Dewar <dewar@adacore.com>
2361 Ed Schonberg <schonberg@adacore.com>
2363 * sem_ch11.adb: Improved warnings for unused variables
2365 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
2366 is a synchronized interface, the derived type is limited.
2367 (Analyze_Object_Declaration): Mark the potential coextensions in the
2368 definition and expression of an object declaration node.
2369 (Build_Derived_Type): For the completion of a private type declaration
2370 with a derived type declaration, chain the parent type's representation
2371 items to the last representation item of the derived type (not the
2372 first one) if they are not present already.
2373 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
2374 object declaration of forward references to tags.
2375 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
2376 subprogram types can appear as access discriminants of synchronized
2378 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
2379 given in prefixed form as a selected component.
2380 (Process_Discriminants): If not all discriminants have defaults, place
2381 error message on a default that is present.
2382 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
2383 extend a synchronized tagged type.
2384 Improved warnings for unused variables
2385 (Is_Visible_Component): Fix a visibility hole on a component inherited
2386 by a private extension when parent is itself declared as a private
2387 extension, and the derivation is in a child unit.
2388 (Find_Hidden_Interface): Move spec from the package body.
2390 2007-08-14 Robert Dewar <dewar@adacore.com>
2391 Ed Schonberg <schonberg@adacore.com>
2393 * sem_ch5.adb: Improve warnings on redundant assignments
2395 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
2397 (Is_Synchronized_Tagged_Type): New subprogram that returns true
2398 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
2399 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
2400 is set to False. Improves handling of Known_[Not_]Null.
2401 (Wrong_Type): Special case address arithmetic attempt
2402 (Collect_Abstract_Interfaces): Add new formal to allow collecting
2403 abstract interfaces just using the partial view of private types.
2404 (Has_Abstract_Interfaces): Add new formal to allow checking types
2405 covering interfaces using the partial view of private types.
2406 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
2407 component still needs to be defined in this case, but is never
2408 initialized as VMs are using other dispatching mechanisms.
2409 (Abstract_Interface_List): For a protected type, use base type to get
2411 Improve warnings on redundant assignments
2412 (Is_Variable): Handle properly an implicit dereference of a prefixed
2414 (Build_Actual_Subtype): If this is an actual subtype for an
2415 unconstrained formal parameter, use the sloc of the body for the new
2416 declaration, to prevent anomalises in the debugger.
2418 2007-08-14 Robert Dewar <dewar@adacore.com>
2420 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
2421 dispatching operation
2423 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2424 Gary Dismukes <dismukes@adacore.com>
2427 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
2428 expanded aggregate code before allocator, and ahead of declaration for
2429 temporary, to prevent access before elaboration when the allocator is
2430 an actual for an access parameter.
2431 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
2432 the TSD and the table of interfaces.
2433 (Convert_To_Assignments): Augment the test for delaying aggregate
2434 expansion for limited return statements to include the case of extended
2435 returns, to prevent creation of an unwanted transient scope.
2436 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
2437 (Expand_Array_Aggregate): Handle aggregates associated with
2438 statically allocated dispatch tables.
2439 (Expand_Record_Aggregate): Handle aggregates associated with
2440 statically allocated dispatch tables.
2441 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
2442 of anonymous access type.
2444 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2446 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
2447 is a variable that renames a slice, use the variable itself in the
2448 expannsion when the renamed expression itself may be modified between
2449 the declaration of the renaming and the array assignment.
2451 2007-08-14 Jerome Guitton <guitton@adacore.com>
2453 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2454 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
2455 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
2456 New functions; dummy implementations.
2458 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
2459 functions, used to implement the multi-tasks mode routines on VxWorks.
2461 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
2463 binding to the VxWorks routines which have changed between VxWorks 5
2465 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
2466 which are not callable from a RTP.
2468 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
2469 implemented for the multi-tasks mode on VxWorks 5 and 6.
2471 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
2473 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
2476 2007-08-14 Vincent Celier <celier@adacore.com>
2478 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
2479 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
2480 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
2481 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2482 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2483 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
2484 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
2486 (Major_Id_Name): New function.
2487 mlib-tgt.ads/mlib.tgt.adb:
2488 (Library_Major_Minor_Id_Supported): New function, default returns True
2489 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
2490 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
2491 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
2492 Implementation of Library_Major_Minor_Id_Supported returns False
2494 (Clean_Library_Directory): If major/minor ids are supported, clean all
2496 Major update of the Project Manager and of the project aware tools,
2497 including gprmake, so that the same sources in the GNAT repository
2498 can be used by gprbuild.
2500 2007-08-14 Olivier Hainque <hainque@adacore.com>
2502 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
2503 (GCC_ZCX_Support): Switch to True.
2505 * s-intman-solaris.adb (Notify_Exception): Call
2506 Adjust_Context_For_Raise before raising, as expected for signal
2507 handlers in general.
2509 * s-intman-posix.adb (Notify_Exception): Remove declaration of
2510 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
2511 to other implementation bodies.
2513 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
2514 be visible by multiple implementation bodies.
2516 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
2517 only for conditions coming from hardware.
2518 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
2519 adjustments to signal context prior to exception raise from signal
2521 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
2523 Solaris section: (__gnat_adjust_context_for_raise): New function.
2524 Implementation of the machine context adjustments to perform prior to
2525 raise from a signal handler. Version for both sparc and x86.
2526 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
2527 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
2528 prior to raising as expected for any handler, before possible nested
2529 faults to make sure all the contexts in a chain have been adjusted by
2530 the time we propagate.
2532 2007-08-14 Pascal Obry <obry@adacore.com>
2534 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
2535 (SYSTEM_INFO): New record.
2536 (SetThreadIdealProcessor): New imported routine needed for supporting
2537 task_info pragma on Windows.
2539 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
2540 info can be applied to the current host.
2541 (Create_Task): Set the ideal processor if information is present.
2543 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
2544 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
2546 2007-08-14 Olivier Hainque <hainque@adacore.com>
2548 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
2549 stack size and initial stack pointer value for a given task.
2550 (Enter_Task): Get the stack attributes of the task we are entering and
2551 let the stack checking engine know about them.
2553 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
2554 Let the stack-checking engine know about the initial sp value and stack
2555 size associated with the current task.
2556 (Set_Stack_Info): If a stack base has been notified for the current
2557 task, honor it. Fallback to the previous less accurate method otherwise.
2559 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
2561 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2563 * sem_ch10.adb: Create a limited view of an incomplete type, to make
2564 treatment of limited views uniform for all visible declarations in a
2565 limited_withed package.
2566 Set flag indicating that a subprogram body for a child unit has a
2568 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
2569 separate declaration, remove the unit name from visibility after
2570 compilation, so that environment is clean for subsequent compilations.
2571 (Install_Limited_Context_Clauses): Do not install a
2572 limited_private_with_clause unless the current unit is a body or a
2574 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
2575 in the same fashion.
2576 (Install_Limited_Withed_Unit): Do not install a limited with clause if
2577 it applies to the declaration of the current package body.
2578 (Remove_Private_With_Clauses): If there is a regular with_clause for
2579 the unit, delete Private_With_Clause from context, to prevent improper
2580 hiding when processing subsequent nested packages and instantiations.
2582 2007-08-14 Jose Ruiz <ruiz@adacore.com>
2584 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
2585 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
2586 representing absolute path names.
2587 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
2589 * cstreams.c (__gnat_full_name for VxWorks): Use
2590 __gnat_is_absolute_path to detect whether we need to add the current
2591 directory to normalize the path.
2593 2007-08-14 Javier Miranda <miranda@adacore.com>
2596 a-tags.adb (Displace): Associate a message with the raised CE
2598 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
2599 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
2600 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
2602 (Default_Prim_Op_Count): Removed.
2603 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
2604 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
2605 Remove pragma Inline_Always.
2607 * rtsfind.ads (Default_Prim_Op_Count): Removed
2608 (Max_Predef_Prims): New entity
2609 (RE_Expanded_Name): Removed
2610 (RE_HT_Link): Removed
2611 (RE_Iface_Tag): Remmoved
2612 (RE_Ifaces_Table): Removed
2613 (RE_Interfaces_Array): Removed
2614 (RE_Interface_Data_Element): Removed
2615 (RE_Nb_Ifaces): Removed
2616 (RE_RC_Offset): Removed
2617 (RE_Static_Offset_To_Top): Removed
2619 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
2621 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
2622 Prim_Op_Count by Max_Predef_Prims.
2624 2007-08-14 Thomas Quinot <quinot@adacore.com>
2625 Vincent Celier <celier@adacore.com>
2627 * binde.adb (Elab_All_Links): Remove unnecessary call to
2628 Generic_Separately_Compiled (if a unit satisfies this predicate, there
2629 won't be an associated Afile).
2630 (Elab_All_Links): Fail if a referenced unit cannot be found
2633 Fix comments in bindgen regarding consistency checks done in Bcheck:
2634 the checks are made across units within a partition, not across several
2636 Fix generation of C binder file for VxWorks.
2638 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
2639 Generic_May_Lack_ALI, more descriptive of the current use of the
2640 predicate, and update documentation.
2642 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
2643 reorganization and documentation update for the case of predefined
2644 library generics (for which we do not reference an Afile).
2646 2007-08-14 Robert Dewar <dewar@adacore.com>
2648 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
2649 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
2650 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
2651 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
2652 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
2653 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
2654 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
2655 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
2656 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
2657 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
2658 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
2659 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
2660 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
2661 g-altcon.adb: Minor reformatting
2663 ada-tree.h: Delete empty line.
2665 ali.ads: Minor reformatting
2666 Clarification of comments.
2667 Minor spelling correction
2669 * exp_dbug.adb: Add Warnings Off to suppress new warning
2671 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
2674 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
2677 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
2679 * a-textio.ads: Reorder the standard input/output/error declarations
2682 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
2684 * par-ch2.adb: Recognize RM specially in errout
2685 Change 'R'M to RM in all error messages
2687 * scng.adb: Recognize RM specially in errout
2689 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
2690 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
2692 * s-direio.adb: Add missing routine header box.
2694 * sem_attr.ads: Add ??? comments
2696 * sem_eval.adb: Recognize RM specially in errout
2697 Change 'R'M to RM in all error messages
2699 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
2701 * s-tasinf.ads: Fix minor comment typo.
2703 * a-cihama.adb: Minor comment addition
2705 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
2708 * s-tasinf-tru64.ads: Fix minor comment typo.
2710 * itypes.ads: Comment update.
2712 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
2715 * argv.c: Added protection against null gnat_argv and gnat_envp.
2717 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
2718 warning message when Tolerate_Consistency_Errors is True.
2720 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
2721 Any_Id, as this subprogram is only applicable to *type* entities (it
2722 sets RM_Size). Instead initialize just Esize and Alignment.
2724 2007-08-14 Bob Duff <duff@adacore.com>
2726 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
2727 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
2728 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
2729 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
2730 a-coorse.ads (Next): Applied pragma Inline.
2731 Make all Containers packages Remote_Types (unless they are already
2733 (Previous): applied pragma Inline
2734 (Elements_Type): is now a record instead of an array
2736 2007-08-14 Thomas Quinot <quinot@adacore.com>
2738 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
2740 (Set_Item): When the new item is an element of the currently allocated
2741 table passed by reference, save a copy on the stack if we're going
2742 to reallocate. Also, in Table.Set_Item, make sure we test the proper
2743 variable to determine whether to call Set_Last.
2745 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
2746 symbols-vms.adb, symbols-processing-vms-alpha.adb,
2747 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
2748 some occurrences of the pattern
2750 T.Table (T.Last) := Value;
2751 with a cleaner call to
2754 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2755 Gary Dismukes <dismukes@adacore.com>
2756 Thomas Quinot <quinot@adacore.com>
2758 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
2759 derived type with interface progenitors use the analyzed formal as the
2760 parent of the actual, to create renamings for all the inherited
2761 operations in Derive_Subprograms.
2762 (Collect_Previous_Instances): new procedure within of
2763 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
2764 unit being loaded, to ensure that the generation of global symbols is
2765 consistent in different compilation modes.
2766 (Is_Tagged_Ancestor): New function testing the ancestor relation that
2767 takes progenitor types into account.
2768 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
2769 traversing over the primitives of the formal and actual types to locate
2770 any abstract subprograms of the actual type that correspond to a
2771 nonabstract subprogram of the formal type's ancestor type(s), and issue
2772 an error if such is found.
2773 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
2774 Instantiate_Package_Body, Instantiate_Subprogram_Body):
2775 Remove bogus guard around calls to Inherit_Context.
2776 (Reset_Entity): If the entity is the selector of a selected component
2777 that denotes a named number, propagate constant-folding to the generic
2778 template only if the named number is global to the generic unit.
2779 (Set_Instance_Env): Only reset the compilation switches when compiling
2780 a predefined or internal unit.
2782 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2784 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
2785 parameter to determine whether operation applies to the prefix.
2786 (Complete_Object_Operation): If actual has an access type and
2787 controlling formal is not an in_parameter, reject the actual if it is
2788 an access_to_constant type.
2789 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
2790 type, the candidate operations are found in the scope of declaration of
2791 the type, because the type has no primitive subprograms.
2792 (Analyze_Selected_Component): If prefix is class-wide, and root type is
2793 a private extension, only examine visible components before trying to
2794 analyze as a prefixed call.
2795 Change Entity_List to Type_To_Use, for better readability.
2796 (Has_Fixed_Op): Use base type when checking whether the type of an
2797 operator has a user-defined multiplication/division
2798 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
2799 user-defined operators are available for fixed-point types.
2801 2007-08-14 Thomas Quinot <quinot@adacore.com>
2802 Ed Schonberg <schonberg@adacore.com>
2804 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
2805 formal At_Any_Place indicating, when True, that we want to test for
2806 availability of the stream attribute at any place (as opposed to the
2807 current visibility context only).
2808 (Missing_Read_Write_Attributes): A stream attribute is missing for the
2809 purpose of enforcing E.2.2(8) only if it is not available at any place.
2810 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
2811 when checking the legality of an extension aggregate in a preelaborable
2812 package. Treat the literal null as a valid default expression in a
2813 component declaration for a type with preelaborable initialization.
2814 A limited interface is a legal progenitor for the designated type of a
2815 remote access to class-wide type.
2817 2007-08-14 Thomas Quinot <quinot@adacore.com>
2818 Ed Schonberg <schonberg@adacore.com>
2820 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
2821 reference): Use correct entity as denoted entity for the selector of
2823 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
2824 setting the Referenced_As_LHS flag for entities that are implicitly
2826 (Find_Type): If the type is an internally generated incomplete type,
2827 mark the full view as referenced, to prevent spurious warnings.
2828 (Find_Selected_Component, Has_Components): Handle properly non-limited
2829 views that are themselves incomplete types.
2830 Handle interfaces visible through limited-with clauses.
2831 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
2832 subprogram generic actual for which we have generated a renaming.
2833 Warn when the renaming introduces a homonym of
2834 the renamed entity, and the renamed entity is directly visible.
2836 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2837 Hristian Kirtchev <kirtchev@adacore.com>
2839 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
2840 appear in the subtree to the current allocator if it is not a static
2842 (Resolve_Allocator): Perform cleanup if resolution has determined that
2843 the allocator is not a coextension.
2844 (Resolve): Skip an interpretation hidden by an abstract operator only
2845 when the type of the interpretation matches that of the context.
2846 (Resolve): When looping through all possible interpretations of a node,
2847 do not consider those that are hidden by abstract operators.
2848 (Resolve_Actuals): When verifying that an access to class-wide object
2849 is an actual for a controlling formal, ignore anonymous access to
2850 subprograms whose return type is an access to class_wide type.
2851 (Resolve_Slice): If the prefix of the slice is a selected component
2852 whose type depends on discriminants, build its actual subtype before
2853 applying range checks on the bounds of the slice.
2854 (Valid_Conversion): In an instance or inlined body, compare root types,
2855 to prevent anomalies between private and public views.
2856 (Resolve): Improve error message for ambiguous fixed multiplication
2857 expressions that involve universal_fixed multiplying operations.
2859 2007-08-14 Javier Miranda <miranda@adacore.com>
2860 Hristian Kirtchev <kirtchev@adacore.com>
2862 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
2863 location to allow the correct generation of errors in case of
2864 restrictions applied to the expanded code.
2865 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
2866 function if the condition does not reference them.
2867 (Expand_Entry_Body_Declarations): Mark the index constant as having a
2870 2007-08-14 Thomas Quinot <quinot@adacore.com>
2872 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
2873 typecode parameters for a union (in a variant record), remove
2874 extraneous layer of Any wrapping for member label.
2875 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
2876 elabration statements, register the package with the name server
2877 at the beginning, not at the end, of the elaboration statements so
2878 that they can create remote access to subprogram values that designate
2879 remote subprograms from the package.
2881 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
2883 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
2884 values to compute the number of seconds since the Unix Epoc in order to
2885 account for Daylight Savings Time. Perform special processing for dates
2886 that are earlier than the Unix Epoc to obtain a negative number.
2888 2007-08-14 Emmanuel Briot <briot@adacore.com>
2890 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
2893 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
2895 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
2896 binder-generated file is not in Ada.
2897 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
2898 recorded in the ALI file.
2899 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
2901 2007-08-14 Vincent Celier <celier@adacore.com>
2903 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
2904 (Output_Source): Do nothing if parameter is No_Sdep_Id
2906 * make.adb (Gnatmake): Do not rebuild an archive simply because a
2907 shared library it imports has a later time stamp.
2908 (Check): Resolve the symbolic links in the path name of the object
2910 Check that the ALI file is in the correct object directory
2911 Check if a file name does not correspond to the mapping of units
2913 (Display_Version): New procedure
2914 (Initialize): Process switches --version and --help
2915 Use type Path_Name_Type for path name
2917 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
2919 * impunit.adb: Re-organize System.Random_Numbers and
2920 GNAT.Random_Numbers and add to builds.
2922 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
2924 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
2926 * a-assert.ads, a-assert.adb: New files.
2928 2007-08-14 Gary Dismukes <dismukes@adacore.com>
2930 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
2931 if AAMP_On_Target is True, then the size of the type encompasses two
2932 addresses (a static link and a subprogram address), except in the case
2933 of library-level access types.
2935 2007-08-14 Vincent Celier <celier@adacore.com>
2937 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
2939 (Write_Eol_Keep_Blanks): New procedure to write a line, including
2940 possible trailing spaces.
2941 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
2943 2007-08-14 Javier Miranda <miranda@adacore.com>
2945 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
2946 null-excluding access types.
2948 2007-08-14 Javier Miranda <miranda@adacore.com>
2950 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
2951 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
2952 of private types add missing check on matching interfaces in the
2953 partial and full declarations.
2954 (Analyze_Protected_Type): Code cleanup.
2955 (Analyze_Task_Type): Code cleanup.
2957 2007-08-14 Javier Miranda <miranda@adacore.com>
2959 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
2960 generated interface thunk.
2962 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2964 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
2965 obsolescent warning on application of 'Class to an incomplete type.
2967 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
2968 prevent obsolescent warning on application of 'Class to an incomplete
2971 2007-08-14 Pascal Obry <obry@adacore.com>
2973 * s-fileio.adb (Is_Open): Add check for usability of the underlying
2976 2007-08-14 Cyrille Comar <comar@adacore.com>
2978 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
2979 since it is potentially used in cases implying double finalization of
2982 2007-08-14 Jose Ruiz <ruiz@adacore.com>
2984 * s-tasini.adb (Get_Stack_Info): Move this function to
2985 System.Soft_Links.Tasking because it is common to the full and the
2986 restricted run times.
2987 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
2988 in SSL.Tasking.Init_Tasking_Soft_Links.
2990 * s-solita.adb (Get_Stack_Info): Function moved from
2991 System.Tasking.Initialization because it is common to the full and the
2992 restricted run times.
2993 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
2995 2007-08-14 Arnaud Charlet <charlet@adacore.com>
2997 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
2998 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
2999 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
3002 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
3005 2007-08-14 Gary Dismukes <dismukes@adacore.com>
3007 * s-veboop.adb (SU): New named number initialized to
3008 System.Storage_Unit.
3009 (True_Val): The initialization expression is revised to use SU (=
3010 Storage_Unit) rather than assuming 8 for the component size of an
3011 unpacked Boolean array.
3013 2007-08-14 Tristan Gingold <gingold@adacore.com>
3015 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
3017 * tb-ivms.c: New file.
3019 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
3021 2007-08-14 Geert Bosch <bosch@adacore.com>
3023 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
3024 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
3025 Add required linker pragmas for automatically linking with the gnalasup
3026 linear algebra support library, and the systems math library.
3027 Rename cdot to cdotu and zdot to zdotu.
3028 Update header comment to describe purpose of package.
3030 2007-08-14 Thomas Quinot <quinot@adacore.com>
3032 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
3033 an explicitly specified Associated_Final_Chain, use that list.
3034 (Expand_N_Package_Body): Build dispatch tables of library level tagged
3036 (Expand_N_Package_Declaration): Build dispatch tables of library level
3037 tagged types. Minor code cleanup.
3039 2007-08-14 Vincent Celier <celier@adacore.com>
3041 * gnatchop.adb (Terminate_Program): Remove exception and use
3042 Types.Terminate_Program instead.
3044 * osint.ads, osint.adb (Current_Exit_Status): New global variable
3045 (Find_Program_Name): Added protection against empty name.
3046 (OS_Exit_Through_Exception): New procedure
3048 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
3049 (OS_Exit_Default): New procedure that contains the previous
3050 implementation of procedure OS_Exit.
3051 (Final_Value): Remove obsolete Interix stuff.
3053 2007-08-14 Thomas Quinot <quinot@adacore.com>
3055 * g-socket.ads: Reorganize example code so that it also works on
3058 2007-08-14 Tristan Gingold <gingold@adacore.com>
3060 * g-trasym.ads: AIX now supports symbolic backtraces.
3062 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3064 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
3065 units being loaded to detect circularities. A circularity may be
3066 present even if the current chain of pending units to load starts from
3067 a limited_with_clause.
3069 * lib-load.ads: Change profile of Load_Unit to use a with_clause
3070 rather than a boolean flag, in order to detect circularities in
3073 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
3074 than propagating the From_Limited_With flag, in order to handle
3075 properly circularities involving with_clauses.
3077 2007-08-14 Nicolas Setton <setton@adacore.com>
3079 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
3082 2007-08-14 Arnaud Charlet <charlet@adacore.com>
3084 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
3085 to build for libgnala.
3086 libgnat: Add rules to build libgnala.a
3087 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
3088 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
3089 Add s-osinte-vxworks-kernel.adb to the target pairs of the
3090 kernel run-time lib for VxWorks 6, which would provide a different
3091 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
3092 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
3093 running ZCX by default.
3094 Add g-sttsne-locking to LynxOS version.
3095 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
3096 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
3098 * system-darwin-x86.ads: New file.
3100 * Make-lang.in: Delete files before copying onto them, so if they are
3101 read-only, the copy won't fail.
3104 2007-08-14 Pascal Obry <obry@adacore.com>
3106 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
3109 2007-08-14 Vincent Celier <celier@adacore.com>
3111 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
3112 (Gcc): Initialize Gcc_Name at the first call
3114 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3116 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
3117 with_clauses of the enclosing unit when analyzing the package
3118 specification of a nested instance.
3120 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
3122 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
3123 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
3124 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
3125 layout of N_Allocator.
3127 2007-08-14 Thomas Quinot <quinot@adacore.com>
3129 * rtsfind.adb (Check_RPC): Add PCS version check.
3131 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
3132 (Gnat_Free_Software): New function.
3134 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
3135 the PCS_Version value from s-parint, used to check that it is consistent
3136 with what exp_dist expects.
3138 * s-parint.ads (PCS_Version): New entity for checking consistency
3139 between exp_dist and PCS.
3141 * gen-soccon.c: (SO_REUSEPORT): New constant.
3143 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
3145 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
3146 variable Sub_Second to Duration in order to accomodate a larger range
3147 of arithmetic operations.
3149 2007-08-14 Bob Duff <duff@adacore.com>
3151 * g-sttsne-locking.ads: Move comments from spec to body.
3152 * g-sttsne-locking.adb: Move comments from spec to body.
3153 * g-sttsne-vxworks.ads: Removed.
3154 * g-sttsne-vxworks.adb: Removed.
3156 2007-08-11 Ian Lance Taylor <iant@google.com>
3158 * misc.c (gnat_get_alias_set): Change return type to
3161 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3163 * decl.c, utils2.c: Fix whitespace in last change.
3165 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3167 * decl.c (compare_field_bitpos): Constify.
3168 * utils2.c (compare_elmt_bitpos): Likewise.
3170 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
3172 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
3173 anonymous access type.
3174 (pthread_sigmask): Now take an access sigset_t.
3176 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
3178 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
3180 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
3182 PR tree-optimization/25737
3183 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
3185 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
3187 * trans.c (Attribute_to_gnu): When subtracting an
3188 offset from a pointer, use POINTER_PLUS_EXPR with
3189 NEGATE_EXPR instead of MINUS_EXPR.
3190 (gnat_to_gnu): Likewise.
3191 * utils.c (convert): When converting between
3192 thin pointers, use POINTER_PLUS_EXPR and sizetype
3194 * utils2.c (known_alignment): POINTER_PLUS_EXPR
3195 have the same semantics as PLUS_EXPR for alignment.
3196 (build_binary_op): Add support for the semantics of
3197 POINTER_PLUS_EXPR's operands.
3198 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
3200 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
3202 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
3203 of get_signed_or_unsigned_type.
3204 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
3206 2007-06-11 Bob Duff <duff@adacore.com>
3207 Thomas Quinot <quinot@adacore.com>
3209 * g-stsifd-sockets.adb (Create): Work around strange behavior of
3210 'bind' on windows that causes 'connect' to fail intermittently, by
3211 retrying the 'bind'.
3212 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3214 2007-06-10 Duncan Sands <baldrick@free.fr>
3216 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
3217 than to void, for the fields when making a new fat pointer type.
3218 (gnat_substitute_in_type): Now substitute_in_type.
3219 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
3220 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
3221 * utils.c (update_pointer_to): Update fat pointers by updating the
3222 dummy node pointers used for the fields.
3224 2007-06-06 Thomas Quinot <quinot@adacore.com>
3225 Bob Duff <duff@adacore.com>
3227 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
3228 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
3229 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
3230 constant Thread_Blocking_IO, always True by default, set False
3231 on a per-runtime basis.
3232 (Need_Netdb_Buffer): New constant.
3234 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
3235 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
3238 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
3239 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
3240 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
3241 child package Task_Safe_NetDB
3242 (Host_Error_Messages): Add stub body.
3243 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3245 * g-soccon-mingw.ads: Add Windows-specific constants.
3246 (Need_Netdb_Buffer): New constant.
3247 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
3248 wrapper and import inet_addr(3) from the standard sockets library
3250 (In_Addr): Add alignment clause.
3251 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3253 2007-06-06 Robert Dewar <dewar@adacore.com>
3255 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3256 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
3257 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
3258 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
3259 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
3260 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
3261 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
3262 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
3263 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
3264 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
3265 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
3266 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
3267 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
3268 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
3269 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
3270 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
3271 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
3272 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
3273 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
3274 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
3275 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
3276 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
3277 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
3278 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
3279 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
3280 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
3281 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
3282 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
3283 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
3284 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
3285 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
3286 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
3287 Unchecked_* by Ada.Unchecked_*
3289 2007-06-06 Robert Dewar <dewar@adacore.com>
3291 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
3292 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
3293 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
3294 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
3295 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
3296 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
3298 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
3299 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
3300 s-tasloc.adb, s-tasloc.ads: New files.
3302 2007-06-06 Bob Duff <duff@adacore.com>
3305 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
3306 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
3307 (Send_Signal, Close): Raise Invalid_Process if the process id is
3309 (Pattern_Matcher_Access): Is now a general access type to be able to
3312 2007-06-06 Thomas Quinot <quinot@adacore.com>
3313 Arnaud Charlet <charlet@adacore.com>
3315 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
3316 (SIGEMT is now used instead of SIGTERM on AIX).
3318 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
3319 (Time_Slice_Supported): Set to True.
3320 Use SIGEMT instead of SIGTERM as SIGADAABORT.
3322 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
3324 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
3325 (Time, Time)): Use To_Relative_Time rather than manual calculation to
3326 express the bounds of Duration as Time. Raise Time_Error when the
3327 result is greater or equal to the higher bound of Duration (on the
3329 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
3331 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
3333 ("-" (Time, Time)): Reorder code.
3334 (All_Leap_Seconds): Removed.
3335 (Arithmetic_Operations.Add): Remove sign related kludge.
3336 (Arithmetic_Operations.Difference): Control the leaps seconds processing
3337 with flag Leap_Support.
3338 (Arithmetic_Operations.Subtract): Remove sign related kludge.
3339 (Check_Within_Time_Bounds): New procedure.
3340 (Clock): Control the leap seconds processing with flag Leap_Support.
3341 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
3342 (Formatting_Operations.Split): Control the leap seconds processing with
3344 (Formatting_Operations.Time_Of): Control the leaps seconds processing
3345 with flag Leap_Support. Adjust the year, month and day (if applicable)
3346 when the value of day seconds designates a new day.
3347 (Split): Use parameter associations for better readability. Integrate
3349 (Time_Of): Use parameter associations for better readability. Integrate
3352 * a-calfor.adb (Split): Use parameter associations for better
3353 readability. Integrate flag Is_Ada_05.
3354 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
3355 better readability. Integrate flag Is_Ada_05.
3357 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3359 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
3360 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
3361 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
3362 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
3363 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
3364 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
3365 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
3366 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
3367 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
3368 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
3369 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
3370 time when entering this routine to detect a backward clock setting
3371 (manual setting or DST adjustment), to avoid waiting for a longer delay
3373 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
3374 Remove handling of deferred priority change, and replace by setting the
3375 task priority directly, as required by AI-188.
3377 (Max_Task_Image_Length): New constant.
3378 Replace Warnings (Off) by Unreferenced pragma, cleaner.
3379 (Dynamic_Priority_Support): Removed, no longer needed.
3380 (Poll_Base_Priority_Change): Ditto.
3381 (Set_Ceiling): Add this procedure to change the ceiling priority
3382 associated to a lock. This is a dummy implementation because dynamic
3383 priority ceilings are not supported by the underlying system.
3385 * a-dynpri.adb (Set_Priority): Take into account case where Target is
3386 accepting a RV with its priority boosted.
3387 Remove handling of deferred priority change, and replace by setting the
3388 task priority directly, as required by AI-188.
3390 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
3392 Remove handling of deferred priority change, and replace by setting the
3393 task priority directly, as required by AI-188.
3394 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
3397 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
3398 (Poll_Base_Priority_Change): Removed.
3399 Code clean up: use SSL.Current_Target_Exception.
3401 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
3402 to run as this is a potentially dispatching point.
3403 (Call_Synchronous): Use Local_Defer_Abort.
3404 (Callable): Relax assertion.
3405 (Selective_Wait): Relax assertion in case abort is not allowed.
3406 Remove handling of deferred priority change, and replace by setting the
3407 task priority directly, as required by AI-188.
3409 * s-tasuti.adb (Make_Passive): Adjust assertions.
3410 Remove handling of deferred priority change, and replace by setting the
3411 task priority directly, as required by AI-188.
3413 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3415 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
3416 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
3417 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
3418 system-vxworks-mips.ads, system-vxworks-alpha.ads,
3419 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
3420 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
3421 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
3422 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
3423 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
3424 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
3425 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
3426 This patch changes the largest non-binary modulus from 2**31-1 to
3428 (Compiler_System_Version): Removed, no longer used.
3429 Clean up system files by removing flags only used on a single target.
3430 Also remove obsolete flags, only used during bootstrap from system.ads
3431 (Address): Add a pragma Preelaborable_Initialization.
3433 * system-aix.ads: Ditto.
3434 (GCC_ZCX_Support): Set to true.
3435 Update priority range on AIX and map Ada priorities to target
3436 priorities appropriately for different scheduling policies.
3438 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
3440 2007-06-06 Vincent Celier <celier@adacore.com>
3442 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
3443 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
3445 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
3446 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
3447 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
3448 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3449 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
3450 MLib.Tgt, containing the default versions of the exported subprograms.
3451 For each platform, create a specific version of the body of new child
3452 package MLib.Tgt.Specific that contains only the body of subprograms
3453 that are different from the default.
3454 (Archive_Builder_Append_Options): New function.
3456 2007-06-06 Matthew Gingell <gingell@adacore.com>
3458 * s-osinte-aix.adb: Map Ada priorities to target priorities
3459 appropriately for different scheduling policies.
3461 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3463 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
3465 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
3466 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
3468 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
3470 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
3471 Noop on VMS, added for interface commonality.
3473 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
3474 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3475 Olivier Hainque <hainque@adacore.com>
3477 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
3478 renamed expression of a full renaming at toplevel.
3479 (gnat_to_gnu_entity, case object): If not defining, do not look inside
3480 the values the constant is initialized to if it is an N_Allocator.
3481 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
3482 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
3483 (make_aligning_type): Accept an extra ROOM argument for storage to be
3484 made available before the aligned field, and an extra BASE_ALIGN
3485 argument for callers to pass the alignment guaranteed to be honored for
3486 the whole aligning object. Avoid call to finish_record_type, which only
3487 interferes with the sizes we want to set.
3488 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
3489 make_aligning_type for super-aligned objects on stack.
3490 (components_to_record): Pass the adjusted size of the type when creating
3491 fields in the qualified union for the variant part.
3492 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
3493 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
3495 (maybe_pad_type): Set TYPE_USER_ALIGN.
3496 (make_aligning_type): Likewise.
3497 ALIGN argument is unsigned int.
3498 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
3499 (gnat_to_gnu_param): Likewise, for parameters.
3500 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
3501 if it is constant and stems from a function call.
3502 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
3503 of the record is specified. Adjust accordingly.
3504 (adjust_packed): New static function.
3505 (gnat_to_gnu_field): Use it to adjust the packedness setting.
3506 (components_to_record): Likewise.
3507 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
3508 side-effects if the object is deemed constant.
3509 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
3510 type instead of merely finalizing it. Tidy.
3511 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
3512 <E_Access_Type>: Likewise.
3513 (defer_debug_incomplete_list): Rename to defer_finalize_list.
3514 (defer_debug_level): Delete.
3515 (gnat_to_gnu_entity) <debug_deferred>: Likewise
3516 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
3518 <E_Record_Type>: Do not explicitly defer finalizing the type.
3519 Adjust for write_record_type_debug_info renaming.
3520 <E_Subprogram_Type>: Likewise.
3521 Finalize deferred types right after deferred incomplete types are
3523 (rest_of_type_decl_compilation): New global function.
3524 (components_to_record): Rename defer_debug parameter to do_not_finalize.
3525 (components_to_record): Propagate the packedness to the fields of the
3526 qualified union type if there is a variant part.
3527 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
3528 instead of inline code to adjust the XUT field offsets.
3529 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
3530 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
3531 and write the debug info if the type derives from a discriminated one.
3532 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
3533 <E_Array_Subtype>: Likewise.
3534 <E_String_Literal_Subtype>: Likewise.
3535 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
3536 an alignment clause.
3537 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
3538 before giving warning.
3539 (prepend_one_attribute_to): New function, helper to prepend an attribute
3540 to an attribute list.
3541 (gnat_to_gnu_entity) <E_Procedure>: Use it.
3542 (prepend_attributes): Likewise.
3543 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
3544 <E_Array_Type>: Declare the padding type for the element type, if any.
3545 <E_Array_Subtype>: Likewise.
3546 (defer_limited_with): New variable.
3547 (Gigi_Equivalent_Type): New function.
3548 (gnat_to_gnu_entity): Use it at start and use result throughout.
3549 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
3550 Gigi_Equivalent_Type, support Limited_With, allow two levels of
3551 indirection, precompute if unconstrained array to simplify logic, and
3552 use defer_limited_with to defer elaboration of some types from limited
3554 (finalize_from_with_types): New function.
3556 2007-06-06 Gary Dismukes <dismukes@adacore.com>
3557 Eric Botcazou <ebotcazou@adacore.com>
3558 Tristan Gingold <gingold@adacore.com>
3559 Olivier Hainque <hainque@adacore.com>
3561 * trans.c (Identifier_to_gnu): Change test for deferred constant by
3562 adding guard that the entity is an E_Constant before testing presence
3563 of Full_view (and remove unnecessary test that entity is not a type).
3564 For a CONST_DECL used by reference, manually retrieve
3565 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
3566 (struct language_function): Move from utils.c to here.
3567 (struct parm_attr): New structure.
3568 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
3569 (f_parm_attr_cache): New macro.
3570 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
3571 expressions for the 'First, 'Last and 'Length attributes of the
3572 unconstrained array IN parameters.
3573 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
3574 Allocate the information structure for the function earlier, as well
3575 as the language-specific part.
3576 If the parameter attributes cache has been populated, evaluate the
3577 cached expressions on entry.
3578 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
3579 N_Procedure_Call_Statement and N_Indexed_Component.
3580 (Pragma_to_gnu): Translate inspection_point to an asm statement
3581 containaing a comment and a reference to the object (either its address
3582 for BLKmode or its value).
3583 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
3584 to go to DECL_INITIAL. Together with the size constraint relaxation
3585 in create_var_decl, enlarges the set of situations in which an
3586 identifier may be used as an initializer without implying elaboration
3588 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
3589 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
3591 (maybe_stabilize_reference): Remove lvalues_only parameter.
3592 (gnat_stabilize_reference): Adjust for above change.
3593 (gnat_to_gnu): Do not set location information on the result
3594 if it is a reference.
3595 (add_cleanup): Add gnat_node parameter and set the location of the
3597 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
3598 (Exception_Handler_to_gnu_zcx): Likewise.
3599 (gigi): Remove the cgraph node if the elaboration procedure is empty.
3600 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
3601 the former right after the latter.
3602 (start_stmt_group): Make global.
3603 (end_stmt_group): Likewise.
3604 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
3606 (gnu_program_error_label_stack): Likewise.
3607 (gigi): Initialize them.
3608 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
3609 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
3611 (push_exception_label_stack): New function.
3612 (takes_address): New function.
3614 * utils.c (struct language_function): Move to trans.c from here.
3615 (unchecked_convert): Do not wrap up integer constants in
3617 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
3618 the latter for aggregate types, unexpected by later passes, and relax an
3619 arbitrary size constraint on the former.
3620 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
3621 to compare the sizes.
3622 (convert_vms_descriptor): When converting to a fat pointer type, be
3623 prepared for a S descriptor at runtime in spite of a SB specification.
3624 (shift_unc_components_for_thin_pointers): New function.
3625 (write_record_type_debug_info): For variable-sized fields, cap the
3626 alignment of the pointer to the computed alignment.
3627 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
3628 If REP_LEVEL is 2, do not compute the sizes.
3629 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
3630 (build_unc_object_type): Likewise.
3631 (declare_debug_type): New function.
3633 * ada-tree.def: USE_STMT: removed (not emitted anymore).
3635 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
3636 no statement is expandable anymore.
3637 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
3638 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
3639 when the user requested it explicitely.
3640 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
3642 (get_alias_set): Return alias set 0 for a type if
3643 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
3645 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
3646 (DECL_FUNCTION_STUB): New accessor macro.
3647 (SET_DECL_FUNCTION_STUB): New setter macro.
3649 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
3651 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
3654 2007-06-06 Jose Ruiz <ruiz@adacore.com>
3656 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
3657 Rename to Abort_Task_Interrupt to be able to keep the same interface
3658 as the rest of the targets.
3660 * s-osinte-vxworks.ads s-osinte-vxworks.adb
3661 (To_VxWorks_Priority): Remove explicit "in" mode indicator
3663 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
3666 2007-06-06 Robert Dewar <dewar@adacore.com>
3668 * a-chahan.ads: Remove obsolescent pragmas
3670 * a-chlat1.ads: Minor reformatting
3672 2007-06-06 Robert Dewar <dewar@adacore.com>
3674 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
3677 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
3680 * errout.ads (Finalize): Changed interface
3681 (Output_Messages): New procedure
3682 (Compilation_Errors): New Interface
3684 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
3685 Finalize/Output_Messages interface for Errout
3686 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
3689 2007-06-06 Thomas Quinot <quinot@adacore.com>
3690 Olivier Hainque <hainque@adacore.com>
3691 Robert Dewar <dewar@adacore.com>
3693 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
3695 (Raise_Current_Excep): Call Debug_Raise_Exception just before
3696 propagation starts, to let debuggers know about the event in a reliable
3698 (Local_Raise): Moved to System.Exceptions
3699 More convenient to have this as a separate unit
3701 * s-except.adb, s-except.ads: New files.
3703 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
3704 Debug_Unhandled_Exception in System.Exceptions where it belongs
3705 together with a couple of other debug helpers.
3706 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
3707 the former Unhandled_Exception.
3709 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
3710 (Warn_No_Exception_Propagation): New procedure
3711 (Warn_If_No_Propagation): Rewritten for new warning generation
3712 (Expand_Exception_Handlers): New warning generation
3713 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
3714 (Add_Exception_Label): Use Special_Exception_Package_Used for test
3715 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
3716 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
3717 even if restriction is set (makes life easier in Check_Returns)
3718 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
3719 checking exception identities.
3720 (Expand_Local_Exception_Handlers): Do not optimize when all others case
3721 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
3722 block for handler (used by Check_Returns)
3723 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
3724 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
3725 remove all exception handlers when optimizing local raise statements.
3726 (Find_Local_Handler): Use Get_Renamed_Entity
3727 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
3728 marked analyzed after expanding exception handlers, do not generate
3729 redundant cleanup actions, because they have been constructed already.
3731 2007-06-06 Thomas Quinot <quinot@adacore.com>
3733 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
3734 presence of this categorization pragma is mandated by the language.
3735 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
3738 2007-06-06 Vincent Celier <celier@adacore.com>
3739 Robert Dewar <dewar@adacore.com>
3741 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
3742 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
3743 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
3744 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
3745 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
3746 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
3747 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
3748 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
3749 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
3750 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
3751 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
3753 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
3754 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
3755 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
3756 Use variables of types File_Name_Type and Unit_Name_Type in error
3758 (Get_Name): Add parameter Ignore_Special, and set it reading file name
3759 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
3761 Define flags Flag217-Flag230 with associated subprograms
3762 (Flag_Word5): New record type.
3763 (Flag_Word5_Ptr): New access type.
3764 (To_Flag_Word5): New unchecked conversion.
3765 (To_Flag_Word5_Ptr): Likewise.
3766 (Flag216): New function.
3767 (Set_Flag216): New procedure.
3769 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3771 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
3774 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
3776 2007-06-06 Javier Miranda <miranda@adacore.com>
3778 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
3780 (Object_Specific_Data_Array): This is now internal to the package.
3781 (Object_Specific_Data): This is now internal to the package.
3782 (Select_Specific_Data_Element): This is now internal to the package.
3783 (Select_Specific_Data_Array): This is now internal to the package.
3784 (Select_Specific_Data): This is now internal to the package.
3785 (Offset_To_Top_Function_Ptr): This is now public.
3786 (To_Offset_To_Top_Function_Ptr): Removed.
3787 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
3788 local to subprogram Offset_To_Top.
3789 (Predefined_DT): Removed.
3790 (Typeinfo_Ptr): Removed.
3791 (OSD): This function is now internal to this package.
3792 (SSD): This function is now internal to this package.
3793 (DT): New function that displaces the pointer to the table of primitives
3794 to get access to the enclosing wrapper record.
3795 (IW_Membership): Code cleanup.
3796 (Offset_To_Top): Code cleanup.
3797 (Predefined_DT): Removed.
3798 (Register_Interface_Tag): Removed.
3799 (Set_Interface_Table): Removed.
3800 (Set_Offset_Index): Removed.
3801 (Set_Offset_To_Top): Code cleanup.
3803 (Set_Signature): Removed.
3805 (Set_Tagged_Kind): Removed.
3806 (Typeinfo_Ptr): Removed.
3808 (Displace): Add missing check on null actual.
3810 * exp_disp.ads, exp_disp.adb
3811 (Select_Expansion_Utilities): Removed.
3812 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
3813 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
3814 the interface requires a new parameter.
3815 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
3816 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
3817 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
3818 Done to remove package Select_Expansion_Utilities.
3819 (Make_DT): New implementation for statically allocated dispatch tables.
3820 (Make_Secondary_DT): Moved to the scope of Make_DT.
3821 (Register_Primitive): Code cleanup plus incoporate the use of the new
3822 function DT_Address_Attribute.
3823 (Expand_Interface_Thunk): The profile of this subprogram has been
3824 changed to return the Thunk_Id and the corresponding code.
3825 (Fill_DT_Entry): Removed. Its functionality is now provided by
3826 subprogram Register_Primitive.
3827 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
3828 subprogram Register_Primitive.
3829 (Register_Primitive): New subprogram that incorporates the previous
3830 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
3831 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
3832 was only required to call Make_DT_Access_Action, which is now removed.
3833 (Ada_Actions): Removed
3834 (Action_Is_Proc): Removed
3835 (Action_Nb_Arg): Removed
3836 Replace all the calls to Make_DT_Access_Action by direct calls to
3837 Make_Procedure_Call_Statement or Make_Function_Call.
3838 (Set_DTC_Entity_Value): New subprogram.
3839 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
3840 (Expand_Interface_Thunk): Add missing support for primitives that are
3841 functions with a controlling result (case in which there is no need
3842 to generate the thunk).
3844 * exp_atag.ads, exp_atag.adb
3845 (Build_DT): New subprogram that displaces the pointer to reference the
3846 base of the wrapper record.
3847 (Build_Typeinfo_Offset): Removed.
3848 (RTE_Tag_Node): Removed.
3849 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
3850 (Build_Get_RC_Offset): Removed.
3851 (Build_Inherit_Predefined_Prims): Removed.
3852 (Build_Inherit_TSD: Removed.
3853 (Build_New_TSD): Removed.
3854 (Build_Set_External_Tag): Removed.
3855 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
3856 (Build_Set_Prim_Op_Address): Add documentation.
3857 (Build_Set_TSD): Removed.
3859 * rtsfind.ads, rtsfind.adb
3860 (Load_Fail): If load fails and we are not in configurable run-time
3861 mode, then raise Unrecoverable_Error.
3862 (Text_IO_Kludge): Generate an error message if a run-time library is
3863 not available in a given run-time (ie. zfp run-time).
3864 (RTE_Record_Component): Add code to check that the component we search
3865 for is not found in two records in the given run-time package.
3866 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
3867 (RE_DT_Predef_Prims_Offset): New entity
3868 (RE_Static_Offset_To_Top): New entity
3869 (RE_HT_Link): New entity.
3870 (System_Address_Image): Addition of this run-time package.
3871 (RE_Address_Image): New entity.
3872 (RE_Abstract_Interface): Removed.
3873 (RE_Default_Prim_Op_Count): Removed.
3874 (RE_DT_Entry_Size): Removed.
3875 (RE_DT_Min_Prologue_Size): Removed.
3876 (RE_DT_Prologue_Size): Removed.
3877 (RE_Ifaces_Table_Ptr): Removed.
3878 (RE_Interface_Data_Ptr): Removed.
3879 (RE_Type_Specific_Data): Removed.
3880 (RE_Primary_DT): Removed.
3881 (RE_Register_Interface_Tag): Removed.
3882 (RE_Set_Offset_Index): Removed.
3883 (RE_Set_OSD): Removed.
3884 (RE_Set_SSD): Removed.
3885 (RE_Set_Signature): Removed.
3886 (RE_Set_Tagged_Kind): Removed.
3887 (RE_Address_Array): New entity.
3888 (RE_DT): New entity.
3889 (RE_Iface_Tag): New entity.
3890 (RE_Interfaces_Table): New entity.
3891 (RE_No_Dispatch_Table): New entity.
3892 (RE_NDT_Prims_Ptr): New entity.
3893 (RE_NDT_TSD): New entity.
3894 (RE_Num_Prims): New entity.
3895 (RE_Offset_To_Top_Function_Ptr): New entity.
3896 (RE_OSD_Table): New entity.
3897 (RE_OSD_Num_Prims): New entity.
3898 (RE_Predef_Prims): New entity
3899 (RE_Predef_Prims_Table_Ptr): New entity.
3900 (RE_Primary_DT): New entity.
3901 (RE_Signature): New entity.
3902 (RE_SSD): New entity.
3903 (RE_TSD): New entity.
3904 (RE_Type_Specific_Data): New entity.
3905 (RE_Tag_Kind): New entity.
3907 2007-06-06 Thomas Quinot <quinot@adacore.com>
3909 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
3910 C imported variable.
3911 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
3914 2007-06-06 Robert Dewar <dewar@adacore.com>
3916 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
3919 2007-06-06 Vincent Celier <celier@adacore.com>
3921 * a-tifiio.adb (Put, internal): For negative numbers, check that there
3922 is room for at least one digit and the minus sign.
3923 (Put.Put_Character): Never put a character outside of the range of
3926 2007-06-06 Olivier Hainque <hainque@adacore.com>
3927 Eric Botcazou <ebotcazou@adacore.com>
3929 * utils2.c (build_allocator): Provide the extra arguments to
3930 make_aligning_type for super-aligned objects allocated from the default
3931 pool. Leave enough room for a pointer before the aligning field, and
3932 store the system's allocator return value there.
3933 (build_call_alloc_dealloc): When releasing a super-aligned object,
3934 retrieve the system's allocator return value from where build_allocator
3935 has stored it, just ahead of the adjusted address we are passed.
3936 (build_call_raise): Handle properly the generation of line numbers when
3937 the node is marked No_Location.
3938 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
3939 by using DECL_UID on ties.
3940 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
3942 (build_call_raise): Handle converting exception into goto; support new
3944 (build_component_ref): Add new arg to build_call_raise.
3946 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
3948 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
3949 "." in the case of nnn.xxx when nnn terminates with an underscore.
3950 Parse the remaining "#" or ":" in the case of nnn#.xxx#
3952 2007-06-06 Robert Dewar <dewar@adacore.com>
3954 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
3956 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3957 Vincent Celier <celier@adacore.com>
3958 Robert Dewar <dewar@adacore.com>
3960 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
3962 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
3963 ((destructor)) for adafinal, even when switch -a is used.
3964 Do not issue pragma Linker_Destructor for adafinal when switch -a is
3966 (Gen_Object_Files_Options): Add formatting of Linker Options, when
3967 Output_Linker_Option_List is set. Suppress this formatting when
3968 Zero_Formatting is set.
3969 Add case for CLI_Target.
3970 (System_Restrictions_Used): New flag, used to avoid generating with of
3971 System_Restrictions and initialization of the data unless there is
3972 some use of System.Restrictions in the partition.
3973 (Check_System_Restrictions_Used): New procedure
3975 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
3976 since we only with this unit in the binder file if it is used elsewhere
3979 2007-06-06 Vincent Celier <celier@adacore.com>
3981 * bindusg.adb: Add line for @<response file>
3982 Add lines for new switches -R and -Z
3984 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
3985 hierarchy in the list of files of the closure when -R is used
3986 (Gnatbind): Accept arguments starting with '@' to indicate response
3987 files and take the arguments from the response files.
3988 If List_Closure is set, display the referenced files
3990 2007-06-06 Javier Miranda <miranda@adacore.com>
3991 Robert Dewar <dewar@adacore.com>
3992 Ed Schonberg <schonberg@adacore.com>
3994 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
3995 which the address-clause is applied to in-mode actuals (allowed by
3997 (Apply_Discriminant_Check): Do not generate a check if the type is
3998 constrained by a current instance.
3999 (Activate_Division_Check): New procedure
4000 (Activate_Overflow_Check): New procedure
4001 (Activate_Range_Check): New procedure
4002 Call these new Activate procedures instead of setting flags directly
4003 (Apply_Array_Size_Check): Removed, no longer needed.
4004 Code clean up: remove obsolete code related to GCC 2.
4005 (Get_E_Length): Protect against bomb in case scope is standard
4006 (Selected_Range_Checks): If the node to be checked is a conversion to
4007 an unconstrained array type, and the expression is a slice, use the
4008 bounds of the slice to construct the required constraint checks.
4009 Improve NOT NULL error messages
4010 (Apply_Constraint_Check): If the context is a null-excluding access
4011 type, diagnose properly the literal null.
4013 2007-06-06 Pascal Obry <obry@adacore.com>
4015 * clean.adb (Clean_Archive): Use untouched casing for the archive name
4016 and the corresponding .deps file.
4017 (Clean_Interface_Copy_Directory): Use untouched casing for the library
4018 src directory. Minor code-clean-up. Use untouched casing for files
4019 read into the library src dir.
4020 (Clean_Library_Directory): Idem.
4021 (Parse_Cmd_Line): Accept new switch -aP
4023 2007-06-06 Javier Miranda <miranda@adacore.com>
4024 Ed Schonberg <schonberg@adacore.com>
4025 Robert Dewar <dewar@adacore.com>
4026 Eric Botcazou <ebotcazou@adacore.com>
4027 Arnaud Charlet <charlet@adacore.com>
4029 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
4030 applicable to types that have the With_Type flag set. Returns the
4031 non-limited view of the type, if available, otherwise the type itself.
4032 For class-wide types, there is no direct link in the tree, so we have
4033 to retrieve the class-wide type of the non-limited view of the Etype.
4034 New attributes Static_Initialization and Static_Elaboration_Desired.
4035 Remove the pragma Thread_Body, and the associated flag
4036 Is_Thread_Body in entities, and all related code.
4037 (Suppress_Value_Tracking_On_Call): New flag
4038 E_Exception has Esize and Alignment fields
4039 (Universal_Aliasing): New function.
4040 (Set_Universal_Aliasing): New procedure.
4041 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
4042 (Check_Nested_Access): New procedure.
4043 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
4044 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
4045 (Related_Interface): New attribute. Present in dispatch table pointer
4046 components of records. Set to point to the entity of the corresponding
4048 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
4049 (Original_Access_Type): Remove, not needed.
4050 (Root_Type): Handle properly subtypes of class-wide-types.
4053 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
4054 class-wide types visible through limited-with clauses.
4055 (Try_Primitive_Operation): When examining all primitive operations of a
4056 tagged type, do not consider subprograms labeled as hidden unless they
4057 belong to a private generic type with a tagged parent.
4058 (Try_Object_Operation): Extensive rewriting, to handle properly various
4059 overloading cases, when several ancestors may have class-wide operations
4060 that are possible candidates, and when the overloaded functions return
4061 array types and have defaulted parameters so that the call may be
4062 interpreted as an indexing.
4063 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
4064 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
4065 successive actuals before analyzing the call itself.
4066 (Try_Primitive_Operation): A primitive operation is compatible with the
4067 prefix if the prefix has a synchronized type and the type of the formal
4068 is its corresponding record, as can be the case when the primitive
4069 operation is declared outside of the body of the type.
4070 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
4071 perform homonym traversal, looking for class-wide operation matches
4072 (formerly done in statements of Try_Class_Wide_Operation). Matches on
4073 access parameters are now restricted to anonymous access types.
4074 (Mark_Allocator): An allocator with a discriminant association parent is
4076 (Try_One_Prefix_Interpretation): If the type of the object is
4077 incomplete, as can be happen when it is a limited view obtained through
4078 a limited_with_clause, the selected component is not part of a prefixed
4080 (Complete_Object_Operation): Diagnose properly an object that is not
4081 aliased when the corresponding controlling formal is an access
4083 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
4084 ambiguous calls in prefixed notation, where two primitives differ only
4085 in that the controlling argument of one is an access parameter.
4087 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
4088 whether a function that returns an unconstrained type can be inlined.
4089 (Process_Formals): Diagnose properly the illegal use of an incomplete
4090 type in the profile of an access_to_subprogram declaration.
4091 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
4092 operations are attached to the corresponding record.
4093 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
4094 When processing a primitive of a concurrent type which implements an
4095 interface change the type of all controlling formals to that of the
4096 corresponding record type.
4097 (Check_Synchronized_Overriding): Relax the conditional logic when trying
4098 to determine the tagged type to which a primitive belongs.
4099 (Check_Conventions): Capture condition to ignore a primitive operation
4100 (which is shared between the loop in Check_Conventions and the one in
4101 Check_Convention) in a new local function Skip_Check.
4102 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
4103 confusion with Check_Conventions' own Prim_Op local variable.
4104 (Create_Extra_Formals): Test for a tagged result type rather than a
4105 controlling result when determining whether to add a BIP_Alloc_Form
4106 formal and a BIP_Final_List formal to the function.
4107 (Check_Conformance); For parameters that are anonymous access types,
4108 subtype conformance requires that the not null and the constant
4109 indicators must match
4110 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
4111 to retrieve the appropriate type when processing a concurrent type
4112 declared within a generic. Minor comment reformatting. Change invocation
4113 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
4115 (Analyze_Subprogram_Body): If the return type of a function is an
4116 anonymous access to the limited view of a class-wide type, and the
4117 non-limited view of the type is available, update the type of the
4118 function so that code can be generated.
4119 (Process_Formals): In case of access-subtype itype whose designated
4120 type is also an itype (situation that happens now with access to
4121 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
4122 attribute to avoid backend problems.
4123 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
4124 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
4125 anonymous types' designated types are same before testing
4126 Subtypes_Statically_Match.
4127 (Create_Extra_Formals): Test for a named access parameter that is a
4128 controlling formal as an additional condition for adding an
4129 accessibility level formal. This can occur in the subp type created for
4130 dispatching calls in Expand_Dispatching_Call, and allows calling
4131 Create_Extra_Formals from that procedure rather than special-casing the
4132 extra formals there.
4133 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
4134 when the function has a controlling result.
4135 (Check_Returns): Add much more knowledge of the optimization of local
4136 raise statements to gotos, to retain proper warnings in this case.
4137 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
4138 nodes when looking for last statement.
4140 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
4141 class-wide types visible through limited with clauses.
4142 (Add_One_Interp): If the operands are anonymous access types, the
4143 predefined operator on universal_access is immediately visibles
4144 (Find_Unique_Type): Handle anonymous access to subprogram types just as
4145 other anonymous access types.
4146 (Disambiguate): Take into account CIL convention.
4147 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
4149 2007-06-06 Robert Dewar <dewar@adacore.com>
4151 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
4152 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
4153 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
4154 Fix lower bound of tables.
4157 * nlists.adb: Ditto.
4158 (Prev_Node, Next_Node): Change index type to Int so that it properly
4159 covers the range First_Node_Id - 1 up.
4161 2007-06-06 Javier Miranda <miranda@adacore.com>
4162 Ed Schonberg <schonberg@adacore.com>
4163 Bob Duff <duff@adacore.com>
4164 Hristian Kirtchev <kirtchev@adacore.com>
4166 * exp_aggr.ads, exp_aggr.adb:
4167 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
4168 in extension aggregates.
4169 (Flatten): Other conditions being met, an aggregate is static if the
4170 low bound given by component associations is different from the low
4171 bound of the base index type.
4172 (Packed_Array_Aggregate_Handled): If the component type is itself a
4173 packed array or record, the front-end must expand into assignments.
4174 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
4175 Init_Pr, instead of Ancestor_Is_Expression.
4176 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
4177 coextension chain root, either generate a list controller or use the
4178 already existing one.
4179 (Static_Array_Aggregate): New procedure to construct a positional
4180 aggregate that can be handled by the backend, when all bounds and
4181 components are compile-time known constants.
4182 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
4183 types covering interface types into assignments.
4184 (Replace_Type): move to Build_Record_Aggr_Code.
4185 (Expand_Record_Aggr_Code): if the target of the aggregate is an
4186 interface type, convert to the definite type of the aggregate itself,
4187 so that needed components are visible.
4188 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
4189 components and the context is an extended return statement do not
4190 create a transient block for it, to prevent premature finalization
4191 before the return is executed.
4192 (Gen_Assign): Do not generate a call to deep adjust routine if the
4193 component type is itself an array of controlled (sub)-components
4194 initialized with an inner aggregate.
4195 (Component_Check): New name for Static_Check. This name is now more
4196 appropriate, and documentation is added which was missing.
4197 (Component_Check): Add test for bit aligned component value
4198 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
4199 Tagged_Comps, name is more appropriate given added function below.
4200 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
4202 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4203 Javier Miranda <miranda@adacore.com>
4204 Robert Dewar <dewar@adacore.com>
4206 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
4207 Terminated: Add unchecked type conversion from System.Address to
4208 System.Tasking.Task_Id when calling the predefined primitive
4210 Disable new Ada 05 accessibility check for JVM.NET targets, which
4211 cannot be implemented in a practical way.
4212 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
4213 the sources always references the tag of the actual object. Therefore,
4214 if 'Tag is applied in the sources to class-wide interface objects we
4215 generate code that displaces "this" to reference the base of the object.
4216 (Expand_N_Attribute_Reference, case Size): Return specified size if
4218 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
4219 has code that displaces the pointer of the object to manage interface
4220 types. However this code must not be executed when the prefix is a
4221 subprogram. This bug caused the wrong expansion of the internally
4222 generated assignment that fills the dispatch table when the primitive
4223 is a function returning a class-wide interface type.
4224 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
4225 Set_Attribute_Name for Name_Unaligned_Valid.
4227 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4228 Gary Dismukes <dismukes@adacore.com>
4230 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
4231 If the initialization is the equivalent aggregate of the initialization
4232 procedure of the type, do not remove it.
4233 (Expand_N_Attribute_Definition_Clause): Exclude access variables
4234 initialized to null from having their expression reset to empty and
4235 note this exception in the comment.
4237 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4238 Robert Dewar <dewar@adacore.com>
4239 Ed Schonberg <schonberg@adacore.com>
4240 Gary Dismukes <dismukes@adacore.com>
4242 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
4243 Add "with" and "use" clauses for Sem_Attr.
4244 (Expand_Current_Value): Do not replace occurences of attribute
4245 references where the prefix must be a simple name.
4247 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
4248 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
4249 Attribute_Requires_Simple_Name_Prefix.
4250 (Name_Modifies_Prefix): Body of new function.
4251 (Requires_Simple_Name_Prefix): Body of new function.
4252 (Resolve_Attribute, case Access): Improve error message for case of
4253 mismatched conventions.
4254 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
4256 (Analyze_Attribute, case 'Access): If the type of the prefix is a
4257 constrained subtype for a nominal unconstrained type, use its base type
4258 to check for conformance with the context.
4259 (Resolve_Attribute): Remove test of the access type being associated
4260 with a return statement from condition for performing accessibility
4261 checks on access attributes, since this case is now captured by
4262 Is_Local_Anonymous_Access.
4263 (Analyze_Access_Attribute): Set Address_Taken on entity
4264 (Analyze_Attribute, case Address): Set Address_Taken on entity
4265 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
4266 validating an access attribute whose prefix is a current instance.
4267 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
4268 applied to dispatching operations, if freezing is required then we set
4269 the attribute Has_Delayed_Freeze in the prefix's entity.
4270 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
4271 current scope if access of local subprogram taken
4272 (Analyze_Access_Attribute): Check legality of self-reference even if the
4273 expression comes from source, as when a single component association in
4274 an aggregate has a box association.
4275 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
4276 the prefix if it is a protected operation and the attribute is
4277 Unrestricted_Access.
4278 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
4279 reference to the base type of the context, to force a constraint check
4280 when the context is an access subtype with an explicit constraint.
4281 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
4282 node is rewritten as an interface conversion. leave unanalyzed after
4283 resolution, to ensure that type checking against the context will take
4286 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4287 Javier Miranda <miranda@adacore.com>
4288 Robert Dewar <dewar@adacore.com>
4290 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
4291 wrapper when the full view of the controlling type of an inherited
4292 function that dispatches on result implements interfaces.
4293 (Expand_N_Object_Declaration): In cases where the type of the
4294 declaration is anonymous access, create finalization list for it.
4295 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
4296 if the object has no explicit initialization, to match description of
4297 functionality of pragam Persistent_BSS.
4298 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
4299 new function to build static aggregates, to replace initialization call
4300 when static initialization is desired.
4301 (Freeze_Type): Generate a list controller for an access type whenever
4302 its designated type has controlled anonymous access discriminants.
4303 (Build_Equivalent_Aggregate): New procedure to compute a static
4304 aggregate to be used as default initialization for composite types,
4305 instead of a generating a call to the initialization procedure for the
4307 (Build_Initialization_Call): When available, replace a call to the
4308 initialization procedure with a copy of the equivalent static aggregate
4310 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
4311 declarations for objects of a class-wide interface type, rather than
4312 just identifiers, to prevent visibility problems.
4313 (Expand_N_Object_Declaration): When expanding the declaration for an
4314 object of a class-wide interface type, preserve the homonym chain of
4315 the original entity before exchanging it with that of the generated
4316 renaming declaration.
4317 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
4318 active, because there is no way to handle the exception.
4319 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
4320 to do a minimum decoration of the Access_Disp_Table list.
4321 (Expand_Record_Controller): Avoid the addition of the controller between
4322 the component containing the tag of a secondary dispatch table and its
4323 adjacent component that stores the offset to the base of the object.
4324 This latter component is only generated when the parent type has
4325 discriminants ---documented in Add_Interface_Tag_Components).
4326 (Apply_Array_Size_Check): Removed, no longer needed.
4327 (Expand_N_Full_Type_Declaration): If the type has anonymous access
4328 components, create a Master_Entity for it only if it contains tasks.
4329 (Build_Init_Procedure): Suppress the tag assignment compiling under
4331 (Freeze_Record_Type): Remove code associated with creation of dispatch
4333 (Init_Secondary_Tags): Update type of actuals when generating calls to
4334 Ada.Tags.Set_Offset_To_Top
4335 (Stream_Operation_OK): Disable use of streams compiling under no
4337 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
4338 if Has_Init_Expression set.
4339 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
4340 Register_Primitive, which provides the same functionality.
4341 (Requires_Init_Proc): Return false in case of interface types.
4342 (Add_Secondary_Tables): Use the new attribute Related_Interface to
4344 (Predefined_Primitive_Freeze): Do not assume that an internal entity
4345 is always associated with a predefined primitive because the internal
4346 entities associated with interface types are not predefined primitives.
4347 Therefore, the call to Is_Internal is replaced by a call to the
4348 function Is_Predefined_Dispatching_Operation.
4349 (Make_Eq_If): When generating the list of comparisons for the
4350 components of a given variant, omit the controller component that is
4351 present if the variant has controlled components.
4353 2007-06-06 Javier Miranda <miranda@adacore.com>
4354 Hristian Kirtchev <kirtchev@adacore.com>
4355 Bob Duff <duff@adacore.com>
4357 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
4358 handle the creation of finalization lists and calls for nested
4359 coextensions when the root of the chains is part of a return statement.
4360 (Inside_A_Return_Statement): New function inside Complete_Coextension_
4362 (Expand_Record_Equality): Skip components that are interface types.
4363 (Displace_Allocator_Pointer): Add missing support for interface subtypes
4364 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
4365 with Rewrite_Coextension. Change the condition for detecting coextension
4367 (Is_Local_Access_Discriminant): Removed.
4368 (Rewrite_Coextension): New routine which rewrites a static coextension
4369 as a temporary and uses its unrestricted access in the construction of
4371 (Complete_Coextension_Finalization): New routine. Generate finalization
4372 attachment calls to all delayed coextensions.
4373 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
4374 the allocator is not a coextension itself and has delayed coextensions.
4375 If the current allocator is controlled, but also a coextension, delay
4376 the generation of the finalization attachment call.
4377 Rename local variable "Node" to "Nod" in order to avoid confusion with
4379 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
4380 limited types that are not inherently limited. Such an allocator is
4381 illegal, but is generated by the expander for a return statement, to
4382 copy the result onto the secondary stack. This is the only case where a
4383 limited object can be copied. Generate code to displace the pointer
4384 to the object if the qualified expression is a class-wide interface
4385 object. Such displacement was missing and hence the copy of the object
4387 (Apply_Accessibility_Check): Handle allocated objects initialized in
4389 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
4390 and Expand_Allocator_Expression. Allocating class-wide interface objects
4391 this routine displaces the pointer to the allocated object to reference
4392 the component referencing the corresponding secondary dispatch table.
4393 Expand_Allocator_Expression): Add missing support to allocate class-wide
4394 interface objects initialized with a qualified expression.
4395 (Get_Allocator_Final_List): Test for an anonymous access type that is a
4396 function result type, and use the finalization list associated with the
4397 function scope in that case (such an anonymous type should not be
4398 treated like an access parameter's type).
4400 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4401 Gary Dismukes <dismukes@adacore.com>
4402 Javier Miranda <miranda@adacore.com>
4404 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
4405 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
4406 required exception handler.
4407 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
4408 properly the case of a function whose return type is a limited
4409 class-wide interface type. Modify the code of the accessibility
4410 check to handle class-wide interface objects. In this case we need to
4411 displace "this" to reference the primary dispatch table to get access
4412 to the TSD of the object (to evaluate its accessibility level).
4413 (Expand_N_Extended_Return_Statement): Test for a tagged result type
4414 rather than a controlling result as one of the conditions for
4415 generating tests of the implicit BIP_Alloc_Form formal. The
4416 initialization assignment is also handled according to whether the
4417 result is tagged instead of controlling.
4418 In the case where the init assignment is inserted in the "then" part of
4419 the allocation conditional, rewrite the target to be a dereference of
4420 the implicit BIP_Object_Access formal.
4421 If the returned value is unconstrained and created on the secondary
4422 stack, mark the enclosing block and function so that the secondary
4423 stack is not reclaimed on return.
4424 Treat returns from functions with controlling results similarly to
4425 returns from functions with unconstrained result subtypes.
4426 If the object returned is unconstrained, and an allocator must be
4427 created for it, analyze the allocator once the block for the extended
4428 return is installed, to ensure that finalizable components
4429 of the expression use the proper finalization list. Guard the call to
4430 Move_Final_List with a check that there is something to finalize.
4431 (Make_Tag_Ctrl_Assignment): Use "old" handling
4432 of controlled type assignment for virtual machines, since new code uses
4433 unsupported features (such as direct access to bytes in memory).
4435 2007-06-06 Gary Dismukes <dismukes@adacore.com>
4436 Ed Schonberg <schonberg@adacore.com>
4438 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
4439 accessibility actual, check for the case of an aliased object that has
4440 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
4441 we fall into processing for the attribute rather than the name of the
4443 (Expand_Inline_Call): If an actual is a literal, and the corresponding
4444 formal has its address taken in the body, create a temporary to capture
4445 value. If the return type is a limited interface, do not treat the
4446 return value as Controlled.
4447 (Is_In_Place_Function): If the return type is a limited interface,
4448 treat as returning in place. The actual returned object may not always
4449 be limited, but the caller has to assume that it is returned in place.
4450 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
4451 context of an allocator, use the correct finalization chain (that is,
4452 the chain belonging to the access type, rather than the chain belonging
4453 to the current scope).
4454 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
4455 result type rather than a controlling result as a precondition for
4456 adding an allocation form actual to a build-in-place call.
4457 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
4458 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
4459 primitive in the dispatch tables. This work is now done by Make_DT when
4461 (Register_Predefined_DT_Entry): Removed.
4462 (Add_Return): If end label is not present, use sloc of last statement
4463 for generated return statement in procedure, for better gdb behavior
4465 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
4466 object address nodes to ensure proper processing by routines like
4468 (Expand_Call): Fix generation of validity check for parameter
4469 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
4470 the allocation form parameter if the result subtype is constrained,
4471 except when the function has a controlling result.
4472 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
4473 rather than Is_Controlled and Has_Controlled_Component, since we want to
4474 include class-wide result types in this treatment. Also test for a
4475 controlling result, since that also requires passing a finalization
4477 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
4478 even when the result subtype is constrained, to handle calls involving
4479 controlling results.
4480 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
4481 is now called even when the result subtype is constrained, to handle
4482 calls involving controlling results.
4483 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
4484 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
4485 now performs the test).
4486 (Make_Build_In_Place_Call_In_Object_Declaration):
4487 Add_Alloc_Form_Actual_* is now called even when the result subtype is
4488 constrained, to handle calls involving controlling results.
4489 (Add_Return): Accomodate rewritten pattern from local raise to goto
4490 transformation, so that we still recognize an transfer statement
4491 and do the right thing here in that case.
4492 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
4493 and end of subprogram code.
4494 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
4495 support for primitives that are functions (without formals) with a
4497 (Inherited_From_Formal): If the actual subtype has not generic parent
4498 type, it is not an actual for a formal derived type, and there is no
4499 operation to inherit from the formal.
4501 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4502 Thomas Quinot <quinot@adacore.com>
4504 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
4505 inserted cleanup code appropriately for GDB use.
4506 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
4507 exception handler for Deep_Adjust or Deep_Finalize.
4508 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
4509 Raise_From_Controlled_Operation is available, use a call to that
4510 subprogram instead of a plain "raise Program_Error" node to raise
4511 Program_Error if an exception is propagated from an Adjust or Finalize
4513 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
4514 appears in the optional statement list of a triggering alternative, the
4515 scope actions can be inserted directly there, and not in the list that
4516 includes the asynchronous select itself.
4518 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4519 Robert Dewar <dewar@adacore.com>
4520 Hristian Kirtchev <kirtchev@adacore.com>
4522 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
4523 generated exception handler appropriately when debugging generated code.
4524 Deal properly with No_Exception_Propagation restriction mode.
4525 (Expand_N_Abort_Statement): Add an unchecked type conversion from
4526 System.Address to System.Tasking.Task_Id when processing the result of
4527 the predefined primitive _disp_get_task_id.
4528 (Expand_N_Asynchronous_Select): Clarify comment.
4529 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
4530 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
4531 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
4532 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
4533 privals and for generated call to Complete_Entry_Body, for better gdb
4535 (Copy_Result_Type): Utility to construct a parameter and result profile
4536 for protected functions whose return type is an anonymous access to
4538 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
4540 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
4541 point when the local-raise-to-goto transformation has taken place.
4543 2007-06-06 Javier Miranda <miranda@adacore.com>
4544 Nicolas Setton <setton@adacore.com>
4546 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
4547 functionality when the backend is generating code.
4548 Otherwise any serious error
4549 reported by the backend calling the frontend routine Error_Msg
4550 changes the Compilation_Mode to Check_Semantics, disables the
4551 functionality of this routine and causes the generation of
4552 spureous additional errors.
4554 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
4555 debugging information now generated by the compiler for fat-pointer
4557 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
4559 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
4561 2007-06-06 Thomas Quinot <quinot@adacore.com>
4563 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
4564 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
4565 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
4566 For a remote call to a function with a classwide return type, apply an
4567 E.4(18) check to the returned value.
4568 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
4569 stream attributes of the designated type of an RACW, as they are not
4570 dispatching primitive operations.
4572 2007-06-06 Geert Bosch <bosch@adacore.com>
4574 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
4576 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
4578 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
4579 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
4581 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
4583 2007-06-06 Javier Miranda <miranda@adacore.com>
4585 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
4586 attribute compiling package Ada.Tags under No_Run_Time_Mode.
4588 2007-06-06 Javier Miranda <miranda@adacore.com>
4590 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
4591 deallocation of class-wide interface objects.
4592 (Expand_Dispatching_Constructor_Call): Take into account that if the
4593 result of the dispatching constructor is an interface type, the
4594 function returns a class-wide interface type; otherwise the returned
4595 object would be actual. The frontend previously accepted returning
4596 interface types because Expand_Interface_Actuals silently performed
4597 the management of the returned type "as if" it were a class-wide
4599 (Expand_Dispatching_Constructor_Call): Replace call to
4600 Make_DT_Access_Action by direct call to Make_Function_Call.
4602 2007-06-06 Robert Dewar <dewar@adacore.com>
4603 Ed Schonberg <schonberg@adacore.com>
4605 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
4606 compute masking constant, since we now set Esize properly to the
4608 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
4609 to match the alignment.
4610 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
4611 packed arrays of 8 bits or less.
4613 * freeze.adb (Freeze_Entity): When freezing the formals of a
4614 subprogram, freeze the designated type of a parameter of an access type
4615 only if it is an access parameter.
4616 Increase size of C convention enumeration object
4617 (Freeze_Entity, array type case): Make sure Esize value is properly
4618 adjusted for the alignment if it is known.
4619 (Freeze_Entity, array type case): When checking bit packed arrays for
4620 the size being incorrect, check RM_Size, not Esize.
4621 (Freeze_Record_Type): Check for bad discriminated record convention
4622 (In_Exp_Body): Return true if the body is generated for a subprogram
4623 renaming, either an attribute renaming or a renaming as body.
4624 (Check_Itype): If the designated type of an anonymous access component
4625 is a non-protected subprogram type, indicate that it is frozen, to
4626 prevent out-of-scope freeze node at some subsequent call.
4627 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
4628 only if the subprogram is neither imported nor exported, as well as the
4629 NCA descriptor class if the subprogram is exported.
4631 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4632 Arnaud Charlet <charlet@adacore.com>
4633 Robert Dewar <dewar@adacore.com>
4634 Gary Dismukes <dismukes@adacore.com>
4636 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
4637 default initialization on an imported object, when there is no
4638 initialization call generated for it.
4639 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
4642 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
4643 Static_Elaboration_Desired.
4644 Remove pragma Thread_Body.
4645 Implement a new pragma No_Body
4646 Removes the Explicit_Overriding pragma
4647 Remove Optional_Overriding pragma
4648 (Prag): Deal with Universal_Aliasing.
4649 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
4650 Pragma_CIL_Constructor): New names.
4652 * sem_cat.adb (Validate_Object_Declaration): An initialization that
4653 uses the equivalent aggregate of a type must be treated as an implicit
4655 (Get_Categorization): Check a unit for pragma Preelaborate only if it
4656 has none of the other categories.
4657 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
4658 to apply Import to an object renaming declaration.
4660 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
4661 from a C++ class should be declared as limited and that it will be
4662 considererd limited.
4663 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
4664 should be declared as limited and that it will be considererd limited.
4665 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
4666 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
4667 (Analyze_Pragma): Deal with Universal_Aliasing.
4668 (Sig_Flags): Likewise.
4669 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
4670 (Overflow_Checks_Unsuppressed): New flag.
4671 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
4672 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
4673 case of JVM or .NET targets, and compiling user code.
4674 Add debugging convenience routine rv
4676 2007-06-06 Robert Dewar <dewar@adacore.com>
4678 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
4680 (Build_Elementary_Input_Call): For floating-point use right type in the
4681 absence of strange size or stream size clauses.
4682 (Build_Elementary_Write_Call): Same fix
4683 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
4684 set to value that does not match base type size.
4686 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4688 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
4689 object of a limited type can be initialized with a call to a function
4690 that returns in place. If the limited type has unknown discriminants,
4691 and the underlying type is a constrained composite type, build an actual
4692 subtype from the function call, as is done for private types.
4693 (Side_Effect_Free): An expression that is the renaming of an object or
4694 whose prefix is the renaming of a object, is not side-effect free
4695 because it may be assigned through the renaming and its value must be
4696 captured in a temporary.
4697 (Has_Controlled_Coextensions): New routine.
4698 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
4699 as is done for other limited types.
4700 (Non_Limited_Designated_Type): new predicate.
4701 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
4703 Remove all handling of with_type clauses.
4705 * par-ch10.adb: Remove all handling of with_type clauses.
4707 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
4708 checksum if the main source could not be parsed.
4709 (Loat_Unit): When processing a child unit, determine properly whether
4710 the parent unit is a renaming when the parent is itself a child unit.
4711 Remove handling of with_type clauses.
4713 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
4714 (Set_Is_Static_Coextension): New procedure.
4715 (Has_Local_Raise): New function
4716 (Set_Has_Local_Raise): New procedure
4717 (Renaming_Exception): New field
4718 (Has_Init_Expression): New flag
4719 (Delay_Finalize_Attach): Remove because flag is obsolete.
4720 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
4721 Remove all handling of with_type clauses.
4722 (Exception_Junk): Can now be set in N_Block_Statement
4724 2007-06-06 Vincent Celier <celier@adacore.com>
4725 Robert Dewar <dewar@adacore.com>
4727 * frontend.adb (Frontend): Return immediately if the main source could
4728 not be parsed, because of preprocessing errors.
4730 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
4731 (Gnat1drv): Exit with errors if the main source could not be parsed,
4732 because of preprocessing errors.
4733 (Check_Rep_Info): New procedure
4735 2007-06-06 Robert Dewar <dewar@adacore.com>
4737 * g-hesorg.ads, g-heasor.ads,
4738 g-busorg.ads, g-bubsor.ads: Update documentation
4739 GNAT.Heap/Bubble_Sort_G is now pure
4741 2007-06-06 Robert Dewar <dewar@adacore.com>
4743 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
4745 2007-06-06 Robert Dewar <dewar@adacore.com>
4746 Ed Schonberg <schonberg@adacore.com>
4748 * g-comlin.ads, g-comlin.adb:
4749 Add new warning for renaming of function return objects
4751 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
4752 (Tree_Read): Use size of object instead of type'object_size, since the
4753 latter is incorrect for packed array types.
4754 (Tree_Write): Same fix
4756 * opt.ads: Add new warning for renaming of function return objects
4757 (Generating_Code): New boolean variable used to indicate that the
4758 frontend as finished its work and has called the backend to process
4759 the tree and generate the object file.
4760 (GCC_Version): Is now private
4761 (Static_Dispatch_Tables): New constant declaration.
4762 (Overflow_Checks_Unsuppressed): New flag.
4763 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
4764 (List_Closure): New flag for gnatbind (-R)
4765 Zero_Formatting: New flag for gnatbind (-Z)
4766 (Special_Exception_Package_Used): New flag.
4767 (Warn_On_Unrepped_Components): New flag.
4769 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
4770 unit is a compilation unit, rather than relying on its scope, so that
4771 Standard can be renamed.
4772 (Analyze_Object_Renaming): Add new warning for renaming of function
4774 Also reject attempt to rename function return object in Ada 83 mode.
4775 (Attribute_Renaming): In case of tagged types, add the body of the
4776 generated function to the freezing actions of the type.
4777 (Find_Type): A protected type is visible right after the reserved word
4778 "is" is encountered in its type declaration. Set the entity and type
4779 rather than emitting an error message.
4780 (New_Scope): Properly propagate Discard_Names to inner scopes
4781 (Check_Nested_Access): New procedure.
4782 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
4783 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
4785 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
4786 Add new warning for renaming of function return objects
4787 (Check_References): Suppress warnings for objects whose type or
4788 base type has Warnings suppressed.
4789 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
4790 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
4792 2007-06-06 Vincent Celier <celier@adacore.com>
4793 Emmanuel Briot <briot@adacore.com>
4794 Olivier Hainque <hainque@adacore.com>
4796 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
4797 absolute value of Header.Block_Size when displaying the freed physical
4799 (Allocate): Compute Storage_Address using Integer_Address, not
4800 Storage_Offset, because the range of Storage_Offset may not be large
4802 (Configure): New parameter Low_Level_Traces
4803 (Allocate, Deallocation, Free_Physically): Added low-level traces
4804 (Configure): new parameter Errors_To_Stdout.
4805 (Output_File): new subprogram
4806 (Deallocate, Dereference): Send error messages to the proper stream
4807 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
4808 documented. Previous code would send it to the current output file
4809 defined in GNAT.IO, which might not be stdout
4810 (Is_Valid): Adjust comment to mention that a positive reply means that
4811 Header_Of may be used to retrieve the allocation header associated with
4812 the subprogram Storage address argument. Return False early if this
4813 address argument is misaligned.
4815 2007-06-06 Vincent Celier <celier@adacore.com>
4817 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
4819 (ASIS_Main): New global variable
4820 (Get_Closure): New procedure
4821 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
4822 check, metric or pretty. Call Get_Closure in this case.
4823 (Check_Files): For GNAT LIST, check all sources of all projects when
4824 All_Projects is True.
4825 (GNATCmd): Accept -U for GNAT LIST
4827 2007-06-06 Vincent Celier <celier@adacore.com>
4829 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
4831 Correct error message when invocation of the linker fails
4832 Add explicit size clause for the C imported variables
4833 Object_List_File_Supported and Using_GNU_Linker to emphasize that
4834 we expect char size.
4835 Read target parameters earlier, since this is needed to set
4836 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
4839 2007-06-06 Vincent Celier <celier@adacore.com>
4842 Add 3 spaces before the default project directory when displaying
4843 the project search path.
4844 Add new command line switch '-l' to display license information.
4846 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
4848 * gmem.c: Add support for timestamps on memory operations.
4850 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
4851 operations (not used currently, just foundation for future
4852 enhancements). Add possibility to perform full dump of gmem.out file.
4853 (Print_Back_Traces): Declare accesses to root arrays constants since
4854 they aren't modified.
4855 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
4857 2007-06-06 Vincent Celier <celier@adacore.com>
4859 * gnatsym.adb: Update Copyright notice
4860 (Parse_Cmd_Line): Accept new switch -D
4861 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
4864 * prj.ads (Policy): New policy Direct
4865 (Yes_No_Unknown): New enumeration type
4866 (Project_Data): New component Libgnarl_Needed
4868 * prj-nmsc.adb (Check_For_Source): When recording a source file make
4869 use the untouched pathname casing.
4870 (Get_Directories): Ensure that the Display_Exec_Directory is using the
4871 proper casing on non case-sensitive platforms like Windows.
4872 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
4873 on all platforms, as it is not possible to know which one is allowed
4874 before processing the project files.
4875 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
4876 specified when symbol policy is Direct. Check that when there is a
4877 symbol file defined (either by default or with attribute
4878 Library_Symbol_File) it is not the same as the reference symbol file.
4879 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
4880 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
4882 (Record_Ada_Source): Record a source that has been locally removed in an
4885 * symbols.ads (Policy): New policy Direct
4887 * symbols-vms.adb (Initialize): Take new policy Direct in case
4890 2007-06-06 Vincent Celier <celier@adacore.com>
4892 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
4893 Correct obvious bug (return Dir; instead of return Directory;).
4894 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
4896 2007-06-06 Thomas Quinot <quinot@adacore.com>
4898 * g-pehage.adb (Produce): Open output files in Binary mode, so that
4899 they have UNIX line endings (LF only) even on Windows, and thus pass
4900 all GNAT style checks.
4902 2007-06-06 Emmanuel Briot <briot@adacore.com>
4904 * g-regpat.adb (Quote): Fix improper quoting of '.'
4906 2007-06-06 Thomas Quinot <quinot@adacore.com>
4908 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
4909 default, set False on a per-runtime basis.
4910 (Need_Netdb_Buffer): New constant.
4912 * g-socket.ads, g-socket.adb: Import new package
4913 GNAT.Sockets.Thin.Task_Safe_NetDB.
4914 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
4915 binding to obtain proper message.
4916 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
4917 Replace various occurrences of Arry (Arry'First)'Address with the
4918 equivalent Arry'Address (GNAT always follows implementation advice from
4920 (Get_Host_By_Address, Get_Host_By_Name,
4921 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
4922 instead, rely on platform-specific task safe netdb operations provided
4925 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
4926 parameter Process_Blocking_IO.
4927 (Host_Error_Messages): Add stub body.
4928 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4929 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
4930 Safe_Getservbyport): Move functions into new child package
4932 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
4933 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
4934 (In_Addr): Add alignment clause.
4936 2007-06-06 Robert Dewar <dewar@adacore.com>
4938 * g-trasym.ads, g-traceb.ads: Update list of supported targets
4939 Add note about symbolic traceback
4941 2007-06-06 Pascal Obry <obry@adacore.com>
4943 * hostparm.ads (Normalized_CWD): Use the host directory separator
4944 instead of the hardcoded forward slash which is not the proper
4945 character on Windows for example.
4948 2007-06-06 Vincent Celier <celier@adacore.com>
4949 Arnaud Charlet <charlet@adacore.com>
4951 * a-clrefi.adb, a-clrefi.ads: New files
4953 * impunit.adb: Add s-os_lib in the list of user visible units.
4954 (Non_Imp_File_Names_95): Add a-clrefi to this list
4955 Remove obsolete run-time entries.
4956 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
4957 "a-exetim" -- Ada.Execution_Time
4958 "a-extiti" -- Ada.Execution_Time.Timers
4960 * mlib-prj.ads, mlib-prj.adb
4961 (Build_Library): Use untouched object dir and library dir. At the
4962 same time makes sure that the checks are done using the canonical
4963 form. Removes hard-coded directory separator and use the proper host
4965 (Process_Project): Do not look in object directory to check if libgnarl
4966 is needed for a library, if there is no object directory.
4967 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
4969 (Build_Library): When invoking gnatbind, use a response file if the
4970 total size of the arguments is too large.
4972 * Makefile.rtl: (g-sttsne): New object file.
4973 Add entry for a-clrefi, s-utf_32, System.Exceptions
4975 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
4976 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
4977 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
4978 Change g-string to s-string, g-os_lib to s-os_lib
4979 Change all g-utf_32 references to s-utf_32
4981 2007-06-06 Tristan Gingold <gingold@adacore.com>
4982 Olivier Hainque <hainque@adacore.com>
4984 * init.c: Do not adjust IP of an imported VMS exception of ia64.
4985 LIB$STOP is called to raise an exception and the IP of the exception
4986 is the instruction right after the call.
4987 (__gnat_adjust_context_for_raise, AIX): Implement.
4988 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
4989 adjust_context_for_raise before Raise_From_Signal_Hanler.
4990 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
4991 siginfo is passed to the handler, necessary to let the zcx propagation
4992 engine unwind past it.
4994 2007-06-06 Olivier Hainque <hainque@adacore.com>
4996 * initialize.c (__gnat_initialize for vxworks): Update documentation
4997 on the ZCX support, using different sets of crtstuff objects than with
5000 2007-06-06 Robert Dewar <dewar@adacore.com>
5002 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
5004 (Layout_Type): Fix recomputation of size from alignment.
5006 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5007 Javier Miranda <miranda@adacore.com>
5009 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
5010 association in an instance.
5011 (Copy_Generic_Node): If the node is a string literal, no need to copy
5013 (Is_Generic_Formal): For a formal subprogram, the declaration is the
5014 grandparent of the entity.
5015 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
5016 to simplify handling of formal interfaces that derive from other formal
5018 (Instantiate_Subprogram_Body): The defining unit name of the body of
5019 the instance should be a defining identifier.
5020 (Install_Formal_Packages): make global to the package, for use in
5021 instantiations of child units.
5022 (Analyze_Package_Instantiation): Do not attempt to set information on an
5023 enclosing master of an entry when expansion is disabled.
5024 (Instantiate_Type): If the actual is a tagged synchronized type and the
5025 generic ancestor is an interface, create a generic actual for the
5026 corresponding record.
5027 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
5028 declaration, to ensure that the interface list is processed correctly.
5029 (Inline_Instance_Body): If enclosing scope is an instance body, remove
5030 its entities from visibiility as well.
5031 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
5032 given with a named association, analyze the expression only, not the
5033 discriminant association itself.
5034 (Reset_Entity): If the analysis of a selected component is transformed
5035 into an expanded name in the prefix of a call with parameters, do not
5036 transform the original node into an expanded name, to prevent visibility
5037 errors in the case of nested generics.
5038 (Check_Private_View): For an array type, check whether the index types
5039 may need exchanging.
5041 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5042 Vincent Celier <celier@adacore.com>
5044 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
5045 since both are separated.
5046 Add support for imported CIL packages.
5047 Add further special handling of "value_type" for CIL.
5048 Add special handling of pragma Import for CIL.
5050 * make.ads, make.adb: When switch -eS is used, direct all outputs to
5051 standard output instead of standard error, except errors.
5052 (Absolute_Path): Use untouched casing for the parent directory.
5053 (Add_Library_Search_Dir): Use the untouched directory name.
5054 (Add_Source_Search_Dir): Idem.
5055 (Change_To_Object_Directory): Update output to use proper casing.
5056 (Create_Binder_Mapping_File): Use the untouched filename to set
5058 (Gnatmake): Use untouched library and executable directory names.
5059 (Insert_Project_Sources): Use untouched filename for spec and body.
5060 (Is_In_Object_Directory): Use untouched object directory.
5061 (Mark_Directory): Idem.
5062 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
5063 contains the non-canonical filename in all cases.
5064 (Change_To_Object_Directory): In verbose mode, display the name of the
5065 object directory we're changing to.
5066 (Compile_Sources): Make sure, when a project file is used, to compile
5067 the body of the unit, when there is one, even when only the spec is
5068 recorded in an ALI file.
5069 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
5071 (Report_Compilation_Failed): New procedure
5072 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
5073 procedures moved from the spec to the body.
5074 (Extract_Failure): Removed, not used
5075 Replace explicit raises of exception Bind_Failed and Link_Failed with
5076 calls to Make_Failed with the proper message.
5077 Replace explicit raises of exception Compilation_Failed with calls to
5078 procedure Report_Compilation_Failed.
5079 (Initialize): Create mapping files unconditionally when using project
5082 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
5083 Pragma_CIL_Constructor): New names.
5085 * targparm.ads, targparm.adb
5086 (Compiler_System_Version): Removed, no longer used.
5087 (Get_Target_Parameters): Relax checks on system.ads validity. Add
5088 handling of two new system flags: JVM and CLI.
5090 2007-06-06 Jose Ruiz <ruiz@adacore.com>
5091 Arnaud Charlet <charlet@adacore.com>
5093 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
5094 time, use the default s-interr body that provides interrupt support
5096 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
5097 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
5098 g-soccon.ads, and s-taprop.adb for the marte run time.
5099 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
5100 timers are supported on marte.
5101 (EH_MECHANISM for marte): Do not use ZCX.
5102 (THREADSLIB for marte): Use -lmarte.
5103 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
5104 Add mlib-tgt-specific.o to gnatmake objects
5105 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
5107 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
5108 6, either kernel or rtp, use a specialized version of s-osinte.ads.
5110 2007-06-06 Pascal Obry <obry@adacore.com>
5112 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
5114 2007-06-06 Vincent Celier <celier@adacore.com>
5116 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
5117 separator, use instead the proper host directory separator.
5118 (Copy_ALI_Files): Make sure that an already existing ALI file in the
5119 ALI copy dir is writable, before doing the copy.
5121 * mlib-utl.ads, mlib-utl.adb:
5122 (Gcc): If length of command line is too long, put the list of object
5123 files in a response file, if this is supported by the platform.
5124 (Ar): If invocation of the archive builder is allowed to be done in
5125 chunks and building it in one shot would go above an OS dependent
5126 limit on the number of characters on the command line, build the archive
5129 2007-06-06 Vincent Celier <celier@adacore.com>
5131 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
5132 of specified object file is not equal to base name of source.
5134 2007-06-06 Javier Miranda <miranda@adacore.com>
5135 Hristian Kirtchev <kirtchev@adacore.com>
5136 Ed Schonberg <schonberg@adacore.com>
5138 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
5139 the full type declaration.
5140 (Analyze_Component_Declaration): Add local variable E to capture the
5141 initialization expression of the declaration. Replace the occurences of
5142 Expression (N) with E.
5143 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
5144 limited interface object with a function call.
5145 (Array_Type_Declaration): If the declaration lacks subtype marks for
5146 indices, create a simple index list to prevent cascaded errors.
5147 (Is_Null_Extension): Ignore internal components created for secondary
5148 tags when checking whether a record extension is a null extension.
5149 (Check_Abstract_Interfaces): Add missing support for interface subtypes
5150 and generic formals.
5151 (Derived_Type_Declaration): Add missing support for interface subtypes
5152 and generic formals.
5153 (Analyze_Object_Declaration): If an initialization expression is
5154 present, traverse its subtree and mark all allocators as static
5156 (Add_Interface_Tag_Component): When looking for components that may be
5157 secondary tags, ignore pragmas that can appear within a record
5159 (Check_Abstract_Overriding): an inherited function that dispatches on
5160 result does not need to be overriden if the controlling type is a null
5162 (Mentions_T): Handle properly a 'class attribute in an anonymous access
5163 component declaration, when the prefix is an expanded name.
5164 (Inherit_Component): If the derivation is for a private extension,
5165 inherited components remain visible and their ekind should not be set
5167 (Find_Type_Of_Object): In the case of an access definition, always set
5168 Is_Local_Anonymous_Access. We were previously not marking the anonymous
5169 access type of a return object as a local anonymous type.
5170 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
5171 range with character literal bounds.
5172 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
5173 (Access_Subprogram_Declaration): Indicate that the type declaration
5174 depends on an incomplete type only if the incomplete type is declared
5176 (Analyze_Subtype_Declaration): Handle properly subtypes of
5177 synchronized types that are tagged, and that may appear as generic
5179 (Access_Subprogram_Declaration): An anonymous access to subprogram can
5180 appear as an access discriminant in a private type declaration.
5181 (Add_Interface_Tag_Components): Complete decoration of the component
5182 containing the tag of a secondary dispatch table and the component
5183 containing the offset to the base of the object (this latter component
5184 is only generated when the parent type has discriminants --as documented
5186 (Inherit_Components): Use the new decoration of the tag components to
5187 improve the condition that avoids inheriting the components associated
5188 with secondary tags of the parent.
5189 (Build_Discriminanted_Subtype): Indicate to the backend that the
5190 size of record types associated with dispatch tables is known at
5192 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
5193 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
5194 to include task, protected, and synchronized interfaces as limited
5196 (Process_Discriminants): Remove the setting of
5197 Is_Local_Anonymous_Access on the type of (anonymous) access
5198 discriminants of nonlimited types.
5199 (Analyze_Interface_Type_Declaration): Complete the decoration of the
5200 class-wide entity it is is already present. This situation occurs if
5201 the limited-view has been previously built.
5202 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
5204 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
5207 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5209 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
5210 of the type that specify the position of interface tags when the type
5211 inherits discriminated array components from the parent type.
5212 If a component is initialized with a box, check for the presence of a
5213 default expression in its declaration before using its default
5214 initialization procedure.
5215 (Resolve_Record_Aggregate): If a component is box-initialized, and the
5216 component type has a discriminants, create a partial aggregate for it
5217 by copying the discriminants of the component subtype.
5218 Reject attempt to initialize a discriminant with a box.
5219 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
5220 associated with dispatch tables is known at compile time.
5221 (Get_Value): If an association in a record aggregate has a box
5222 association, and the corresponding record component has a default
5223 expression, always copy the default expression, even when the
5224 association has a single choice, in order to create a proper
5225 association for the expanded aggregate.
5227 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5228 Robert Dewar <dewar@adacore.com>
5230 * par-ch12.adb (P_Generic_Associations): The source position of an
5231 Others association is that of the others keyword, not that of the token
5232 that follows the box.
5233 (P_Formal_Type_Definition): Handle formal access types that carry a
5236 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
5237 multiple identifier are present, save Scan_State before scanning the
5238 colon, to ensure that separate trees are constructed for each
5240 (P_Identifier_Declarations): For object declaration, set new flag
5241 Has_Init_Expression if initialization expression present.
5242 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
5243 Improve NOT NULL error messages
5245 2007-06-06 Robert Dewar <dewar@adacore.com>
5247 * par-ch4.adb: (P_Name): Recover from literal used as name
5249 2007-06-06 Vincent Celier <celier@adacore.com>
5251 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
5253 In the "not" case, recursive call with Complemented set to True.
5254 Do not allow "or" or "and" operators when Complemented is True.
5256 2007-06-06 Vincent Celier <celier@adacore.com>
5258 * prj.adb (Project_Empty): Gives default value for new component
5261 * prj-attr.ads: Minor reformatting
5263 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
5264 directory using the untouched casing.
5265 (For_All_Source_Dirs): Idem.
5267 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
5268 directories specified with switches -aP.
5269 (Add_Search_Project_Directory): New procedure
5270 (Initialize_Project_Path): Put the directories in table
5271 Search_Directories in the project search path.
5272 (Initialize_Project_Path): For VMS, transform into canonical form the
5275 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5277 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
5278 true if configurable run-time or No_Run_Time is set.
5279 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
5280 processing an unit which is not the one being compiled.
5282 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5284 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
5285 Replace UC by Ada.UC
5287 * s-bitops.adb: Get rid of System.Pure_Exceptions.
5288 Replace UC by Ada.UC
5290 2007-06-06 Robert Dewar <dewar@adacore.com>
5292 * scng.adb: (Check_End_Of_Line): Deal with very long lines
5294 2007-06-06 Robert Dewar <dewar@adacore.com>
5296 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
5297 Remove no longer used nodes.
5299 2007-06-06 Javier Miranda <miranda@adacore.com>
5300 Ed Schonberg <schonberg@adacore.com>
5301 Robert Dewar <dewar@adacore.com>
5303 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
5304 on obsolescent withed unit in case of limited-withed units.
5305 (Analyze_Compilation_Unit): Add guard to code that removed an
5306 instantiation from visibility, to prevent compiler aborts when
5307 instantiation is abandoned early on.
5308 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
5309 current unit being analyzed, and Distinguish local incomplete types
5310 from limited views of types declared elsewhere.
5311 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
5312 to state that the class-wide entity is shared by the limited-view
5314 (Analyze_With_Clause): Improve placement of flag for case of
5316 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
5317 manner similar to GNAT.Current_Exception. This is a violation of
5318 restriction (No_Exception_Propagation), and also inhibits the
5319 optimization of local raise to goto.
5320 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
5321 and if so set Most_Recent_Exception_Used flag in Opt, and also check
5322 for violation of restriction No_Exception_Propagation.
5324 2007-06-06 Javier Miranda <miranda@adacore.com>
5325 Hristian Kirtchev <kirtchev@adacore.com>
5326 Gary Dismukes <dismukes@adacore.com>
5328 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
5329 use of entity Exception_Occurrence if it is not available in the
5332 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
5333 concurrent types are declared within an Ada 2005 generic, build their
5334 corresponding record types since they are needed for overriding-related
5336 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
5337 protected type does not implement a task interface or a nonlimited
5339 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
5340 type does not implement a protected interface or a nonlimited interface.
5341 (Single_Task_Declaration, Single_Protected_Declaration): use original
5342 entity for variable declaration, to ensure that debugging information
5343 is correcty generated.
5344 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
5345 routines if the expander is not active.
5346 (Analyze_Task_Body): Mark all handlers to stop optimization of local
5347 raise, since special things happen for task exception handlers.
5349 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
5350 concurrent types declared within a generic.
5351 (Check_Dispatching_Operation): Do not emit warning about late interface
5352 operations in the context of an instance.
5353 (Check_Dispatching_Call): Remove restriction against calling a
5354 dispatching operation with a limited controlling result.
5355 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
5356 Register_Interface_DT_Entry by calls to Register_Primitive.
5357 (Check_Dispatching_Formals): Handle properly a function with a
5358 controlling access result.
5360 2007-06-06 Robert Dewar <dewar@adacore.com>
5361 Arnaud Charlet <charlet@adacore.com>
5363 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
5364 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
5365 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
5366 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
5367 message when using a VM, since this attribute is not supported.
5368 (Analyze_Record_Representation_Clause): Give unrepped component warnings
5370 * usage.adb: Add new warning for renaming of function return objects
5371 Indicate that -gnatwp and -gnatwP concern front-end inlining
5372 Add line for -gnatyg
5373 Add usage information for -gnatw.c/C
5375 2007-06-06 Robert Dewar <dewar@adacore.com>
5376 Ed Schonberg <schonberg@adacore.com>
5379 (Find_Var): Do not consider function call in test for infinite loop
5380 warning if warnings set off for function entity.
5381 (One_Bound): Do not create a temporary for a loop bound if it is a
5383 (Analyze_Assignment): Traverse the right hand side of an assignment and
5384 mark all allocators as static coextensions.
5385 (Analyze_Assignment): Exempt assignments involving a dispatching call
5386 to a function with a controlling access result from the check requiring
5387 the target to be class-wide.
5389 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5390 Ed Schonberg <schonberg@adacore.com>
5391 Robert Dewar <dewar@adacore.com>
5392 Javier Miranda <miranda@adacore.com>
5394 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
5395 chain of coextensions when an allocator serves as the root of such a
5397 (Propagate_Coextensions): Remove the test for the root being an
5399 (Resolve_Allocator): Add condition to ensure that all future decoration
5400 occurs on an allocator node. Add processing and cleanup for static
5402 (Valid_Conversion): If the operand type is the limited view of a
5403 class-wide type, use the non-limited view is available to determine
5404 legality of operation.
5405 (Ambiguous_Character): move to spec, for use elsewhere.
5406 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
5407 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
5409 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
5410 Do_Division_Check flag explicitly.
5411 (Resolve_Actuals): If the actual is of a synchronized type, and the
5412 formal is of the corresponding record type, this is a call to a
5413 primitive operation of the type, that is declared outside of the type;
5414 the actual must be unchecked-converted to the type of the actual
5415 (Resolve_Call): Kill all current values for any subprogram call if
5416 flag Suppress_Value_Tracking_On_Call is set.
5417 (Resolve_Type_Conversion): Generate error message the the operand
5418 or target of interface conversions come from a limited view.
5419 (Check_Infinite_Recursion): Ignore generated calls
5420 (Check_Allocator_Discrim_Accessibility): New procedure for checking
5421 that an expression that constrains an access discriminant in an
5422 allocator does not denote an object with a deeper level than the
5423 allocator's access type.
5424 (Resolve_Allocator): In the case of an allocator initialized by an
5425 aggregate of a discriminated type, check that associations for any
5426 access discriminants satisfy accessibility requirements by calling
5427 Check_Allocator_Discrim_Accessibility.
5428 (Resolve_Equality_Op): Handle comparisons of anonymous access to
5429 subprogram types in the same fashion as other anonymous access types.
5430 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
5431 message that is not a continuation message.
5432 (Resolve_Type_Conversion): Add missing support for conversion to
5434 (Resolve_Actuals): Introduce a transient scope around the call if an
5435 actual is a call to a function returning a limited type, because the
5436 resulting value must be finalized after the call.
5437 (Resolve_Actuals): If the call was given in prefix notations, check
5438 whether an implicit 'Access reference or implicit dereference must be
5439 added to make the actual conform to the controlling formal.
5441 2007-06-06 Robert Dewar <dewar@adacore.com>
5442 Javier Miranda <miranda@adacore.com>
5444 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
5445 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
5446 overriding of an inherited private subprogram now there is no need to
5447 inherit its dispatching slot and reduce the size of the dispatch table.
5448 Set_All_DT_Position now ensures that the same slot is now assigned to
5449 both entities. This is required to statically build the dispatch table.
5450 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
5451 of calling Set_All_DT_Position to re-evaluate the position of the
5452 entries in the dispatch table. Such reevaluation is not desired if
5453 the tagged type is already frozen.
5455 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5456 Gary Dismukes <dismukes@adacore.com>
5457 Robert Dewar <dewar@adacore.com>
5458 Javier Miranda <miranda@adacore.com>
5460 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
5461 reference acts as an lvalue when the attribute name modifies the prefix
5462 (Is_Coextension_Root): New routine.
5463 (Mark_Static_Coextensions): New routine.
5464 (Type_Access_Level): Revise code for checking the level of the
5465 anonymous access type of a return object.
5466 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
5467 (Matches_Prefixed_View_Profile): Remove the no longer necessary
5468 retrieval of the corresponding controlling record type.
5469 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
5470 concurrent types declared within a generic as well as class wide types.
5471 Emit a mode incompatibility error whenever a protected entry or routine
5472 override an interface routine whose first parameter is not of mode
5473 "out", "in out" or access to variable.
5474 (Overrides_Synchronized_Primitive): Rename to
5475 Find_Overridden_Synchronized_Primitive.
5476 (Collect_Interface_Components): New subprogram that collects all the
5477 components of a tagged record containing tags of secondary dispatch
5479 (Add_Global_Declaration): New procedure
5480 (Abstract_Interface_List): Handle properly the case of a subtype of a
5482 (Type_Access_Level): In the case of a type whose parent scope is a
5483 return statement, call Type_Access_Level recursively on the enclosing
5484 function's result type to determine the level of the return object's
5486 (Build_Elaboration_Entity): Build name of elaboration entity from the
5487 scope chain of the entity, rather than the unit name of the file name.
5488 (Check_Nested_Access): New procedure.
5489 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
5490 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
5491 (Get_Renamed_Entity): Utility routine for performing common operation
5492 of chasing the Renamed_Entity field of an entity.
5494 2007-06-06 Robert Dewar <dewar@adacore.com>
5496 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
5498 (Check_A_Call): Add check for entry call which was causing blowup
5500 2007-06-06 Olivier Hainque <hainque@adacore.com>
5502 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
5503 special code on ia64-vms to handle major incompatibilities between the
5504 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
5505 this routine with a very different set of arguments and expectations on
5508 2007-06-06 Thomas Quinot <quinot@adacore.com>
5510 * socket.c (__gnat_close_signalling_fd): New function.
5511 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
5512 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
5513 New supporting functions for task safe Netdb operations.
5515 2007-06-06 Thomas Quinot <quinot@adacore.com>
5516 Olivier Hainque <hainque@adacore.com>
5518 * a-except-2005.ads, a-except-2005.adb
5519 (Raise_From_Controlled_Operation): New procedure in
5520 (private part of) Ada.Exceptions (standard runtime version). Used to
5521 provide informational exception message when Program_Error is raised as
5522 a result of an Adjust or Finalize operation propagating an exception.
5523 (Rmsg_28): Fix description for E.4(18) check.
5524 (Raise_Current_Excep): Call Debug_Raise_Exception just before
5525 propagation starts, to let debuggers know about the event in a reliable
5527 Take the address of E and dereference to make sure it is homed on stack
5528 and prevent the stores from being deleted, necessary for proper
5529 debugger behavior on "break exception" hits.
5530 (Local_Raise): Moved to System.Exceptions
5532 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
5533 exception message from the current occurrence and raise Program_Error
5534 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
5536 2007-06-06 Jose Ruiz <ruiz@adacore.com>
5537 Arnaud Charlet <charlet@adacore.com>
5539 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
5542 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
5543 priority associated to a lock.
5545 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
5546 assertion to take into account case of no abort restriction.
5547 (Initialize_Protection_Entries): Add initialization for the field
5548 New_Ceiling associated to the protected object.
5549 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
5552 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
5553 since this function needs to be set consistently with Update_Exception.
5555 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
5556 since this function needs to be set consistently with Update_Exception.
5558 * s-taskin.ads: Update comments on
5559 Interrupt_Server_Blocked_On_Event_Flag.
5560 (Unbind_Handler): Fix handling of server_task wakeup
5561 (Server_Task): Set self's state so that Unbind_Handler can take
5562 appropriate actions.
5563 (Common_ATCB): Now use a constant from System.Parameters to determine
5564 the max size of the Task_Image field.
5566 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
5567 Initialize_Analyzer function.
5568 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
5569 take into account case of no abort restriction.
5570 ([Vulnerable_]Complete_Master): Modify assertion.
5572 * s-tataat.adb (Finalize): Use the nestable versions of
5573 Defer/Undefer_Abort.
5575 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
5577 * s-tpobop.ads: Update comments.
5579 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
5580 of locking the object manually, to avoid inconsistencies between
5581 Lock/Unlock_Entry assertions.
5583 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
5585 application and System.Parameters.No_Abort is True.
5586 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
5587 (Unbind_Handler): Fix handling of server_task wakeup
5588 (Server_Task): Set self's state so that Unbind_Handler can take
5589 appropriate actions.
5591 2007-06-06 Thomas Quinot <quinot@adacore.com>
5593 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
5594 declarations instead of an explicit null body, for conciseness.
5596 2007-06-06 Robert Dewar <dewar@adacore.com>
5598 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
5599 illegal aggregate and the type is still Any_Composite.
5600 (Subtypes_Statically_Match): Fix problem of empty discriminant list
5602 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5604 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
5605 to prevent subsequent expansion.
5607 2007-06-06 Robert Dewar <dewar@adacore.com>
5609 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
5611 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5612 Robert Dewar <dewar@adacore.com>
5614 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
5616 (Write_Itype): Handle case of string literal subtype, which
5617 comes up in this context.
5618 (Update_Itype): when debugging expanded code, update sloc of itypes
5619 associated with defining_identifiers and ranges, for gdb use.
5620 (Sprint_Node_Actual): Add static keyword to object or exception
5621 declaration output if Is_Statically_Allocated is True.
5622 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
5623 or task body, so that the tree carries the proper Sloc information for
5625 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
5627 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5629 * s-secsta.adb (Chunk): Ensure this object has a static size known at
5630 compile time, to avoid dynamic memory allocation
5631 (Elaboration code): Only use dynamic memory allocation when needed.
5633 2007-06-06 Quentin Ochem <ochem@adacore.com>
5635 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
5637 (Stack_Analyzer): Added field "Overflow_Guard"
5638 (Task_Result): Added field "Overflow_Guard".
5639 (Index_Str): New constant.
5640 (Task_Name_Str): New constant.
5641 (Actual_Size_Str): New constant.
5642 (Pattern_Array_Element_Size): New constant.
5643 (Get_Usage_Range): New subprogram.
5644 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
5645 Now align the output.
5647 (Initialize): Added value for Overflow_Guard.
5648 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
5649 Update the value of the overflow guard according to the actual
5650 beginning of the pattern array.
5651 (Initialize_Analyzer): Added parameter Overflow_Guard.
5652 Take this parameter into accound when computing the max size.
5653 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
5654 (Report_Result): Removed extra useless procedure.
5655 Updated call to Output_Result.
5656 Moved full computation of the Task_Result here.
5658 2007-06-06 Thomas Quinot <quinot@adacore.com>
5660 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
5661 Thread_Blocking_IO, always True by default, set False on a per-runtime
5663 Add Windows-specific constants
5664 Add new constant Need_Netdb_Buffer.
5665 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
5666 not, whether to use getXXXbyYYY_r.
5668 * gsocket.h: Add new constant Need_Netdb_Buffer.
5669 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
5670 not, whether to use getXXXbyYYY_r.
5672 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
5674 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
5675 than their first call.
5676 Add type Dummy_Communication_Block used in the generation of the pre-
5677 defined dispatching primitive _disp_asynchronous_select.
5678 (Storage_Element): Put Pragma Universal_Aliasing on it.
5680 2007-06-06 Vincent Celier <celier@adacore.com>
5682 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
5685 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
5686 letter if it is not followed by a '/' or a '\'.
5687 (Windows): New Boolean function
5689 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
5691 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
5693 (Containing_Directory): Raise Use_Error when the directory is a root
5695 (Extension): When returning the result, use a conversion to Result_Type,
5696 not a qualification.
5698 2007-06-06 Robert Dewar <dewar@adacore.com>
5700 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
5701 (Set_Style_Check_Options): Recognize new -gnatyg style switch
5703 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
5704 Warn_On_Non_Local_Exception to False, to turn off warnings for
5705 No_Exception_Propagation in ZFP runtime.
5706 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
5708 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
5710 2007-06-06 Vincent Celier <celier@adacore.com>
5712 * switch-b.adb (Scan_Binder_Switches): Add processing for new
5715 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
5716 (Scan_Make_Switches): Recognize new switch -aP
5718 2007-06-06 Matthew Gingell <gingell@adacore.com>
5719 Jose Ruiz <ruiz@adacore.com>
5721 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
5722 VxWorks task descriptor in the Ada run time, call a C subprogram
5723 (__gnat_get_stack_info) that extracts the required information.
5725 * sysdep.c: Back out temporary lynxos workaround.
5726 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
5727 time the stack information associated to the currently executing task.
5728 Only VxWorks systems require this function.
5730 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
5732 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
5733 add the stack bias if the offset is computed from a frame address.
5734 (__gnat_backtrace): Adjust for above change.
5736 2007-06-06 Thomas Quinot <quinot@adacore.com>
5738 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
5739 PE_Non_Transportable_Actual.
5740 (By_Descriptor_Last): New constant.
5741 (By_Copy_Return): Likewise.
5743 2007-06-06 Vincent Celier <celier@adacore.com>
5745 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
5748 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
5749 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
5750 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
5751 Add missing comment for /OPTIMIZE=SPACE
5752 Add entry for OPTIMIZE=SPACE
5753 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
5754 Add documentation for new qualifiers corresponding to -gnatw.c/.C
5756 2007-06-06 Vincent Celier <celier@adacore.com>
5757 Robert Dewar <dewar@adacore.com>
5759 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
5762 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
5763 Document gnatbind switch -a
5764 (case Constructions): Document that variables declarations are allowed
5765 for previously declared variables.
5766 Fix external lib project example
5767 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
5768 Indicate that "#if not X or Y then" is not allowed in input files to
5770 Document gnatw.x and gnatw.X warning flags
5771 Mention -Winline switch to activate warnings when back-end inlining is
5773 Add gnatcheck rule descriptions
5774 Describe how to use the GNAT driver to call a tool on a closure.
5775 Describe how to run project-wide checks or metrics.
5776 Document gnatbind's -R option
5777 Updated to account for Ada 2005 support
5779 * gnat_rm.texi (Case Construction): Allow variable declarations for
5780 previously declared variables.
5781 (Representation Clauses and Pragmas): Lift restriction on alignment
5782 clauses for record types.
5783 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
5784 Document No_Exception_Propagation restriction
5785 Document No_Body pragma
5786 Updated to account for Ada 2005 support; corrected some typos
5787 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
5789 * gnat-style.texi: Make it clear that we never use mode IN for
5790 procedures or functions
5792 * ug_words: Add entries for -gnatw.x and -gnatw.X
5793 Add entries for -gnatw.c/.C
5795 2007-06-06 Pascal Obry <obry@adacore.com>
5796 Vincent Celier <celier@adacore.com>
5798 * makegpr.adb (Add_Archive_Path): Use untouched object and library
5799 dirs and library name.
5800 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
5802 (Build_Library): Idem.
5803 (Compile_Individual_Sources): Idem.
5804 (Compile_Link_With_Gnatmake): Idem.
5805 (Compile_Sources): Idem.
5806 (Get_Imported_Directories): Idem.
5807 (Link_Executables): Idem. Same change for the executable dir.
5808 (Check_Compilation_Needed): C_Source_Path new variable containing
5809 the canonical form of Source_Path to check against the source names
5810 in the dependency file.
5811 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
5812 verbose mode, display the name of the object directory we're changing
5814 (Saved_Switches): New name of table X_Switches
5815 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
5816 (Usage): New line for switch -aP
5817 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
5818 testing if a directory should be added to the search path.
5820 2007-06-06 Javier Miranda <miranda@adacore.com>
5822 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
5823 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
5824 declaration after freezing point of all its associated tagged types;
5825 otherwise such types are frozen too early.
5827 2007-06-06 Robert Dewar <dewar@adacore.com>
5829 * a-reatim.adb: Documentation addition
5831 * g-cgideb.adb: Minor code reorganization
5833 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
5834 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
5835 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
5837 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
5838 function. Change name New_Scope to Push_Scope
5839 (Get_Debug_Flag_K): Remove unused obsolete function.
5841 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
5844 * makeusg.adb: Update Copyright notice
5845 Add line for switch -aP
5847 * makeusg.adb: Fix wording of some usage messages
5849 * s-assert.adb (Raise_Assert_Failure): Add call to
5850 Debug_Raise_Assert_Failure.
5852 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
5853 (2, Standard'Alignment) for compatibility with AAMP (where alignment
5854 is restricted to 1).
5856 * s-wchjis.adb: Remove use of System.Pure_Exceptions
5858 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
5859 node location to No_Location when we're not debugging the expanded
5862 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
5864 * misc.c (enumerate_modes): Consider log2_b to always be one.
5866 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
5868 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
5870 2007-05-02 Pascal Obry <obry@adacore.com>
5872 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
5873 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
5874 encoding support of Stream_IO.
5877 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
5878 filename and corresponding encoding to match the OS requirement.
5879 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
5880 routine will fail on specific devices like CON: AUX: ...
5882 PR ada/29856: Add missing braces
5884 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
5887 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
5889 2007-04-21 Jan Hubicka <jh@suse.cz>
5891 * misc.c (gnat_expand_body): Don't call target for destructors,
5892 avoid redundant check on syntax errors.
5894 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
5896 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
5897 instead of checking GIMPLE_STMT_P in chain_next.
5899 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
5902 * system-linux-alpha.ads: Disable constant condition warning for the
5903 Default_Bit_Order variable.
5904 * system-linux-s390.ads: Likewise.
5905 * system-linux-s390x.ads: Likewise.
5906 * system-linux-sparc.ads: Likewise.
5908 2007-04-06 Javier Miranda <miranda@adacore.com>
5909 Matt Heaney <heaney@adacore.com>
5910 Robert Dewar <dewar@adacore.com>
5912 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5913 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
5914 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
5915 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
5916 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
5917 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
5918 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
5919 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
5920 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
5921 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
5922 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
5923 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
5924 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
5925 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
5926 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
5927 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
5928 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
5929 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
5930 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
5931 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
5932 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
5933 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
5934 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
5935 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
5936 s-taprop-tru64.adb, s-taprop-irix.adb,
5937 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
5938 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
5939 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
5940 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
5941 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
5942 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
5943 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
5944 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
5945 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
5946 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
5947 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
5948 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
5949 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
5950 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
5951 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
5952 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
5953 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
5954 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
5955 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
5956 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
5958 Update documentation.
5961 2007-04-06 Robert Dewar <dewar@adacore.com>
5963 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
5964 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5965 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
5966 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
5967 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
5968 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5969 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
5970 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
5971 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
5972 system-hpux-ia64.ads, targparm.adb,
5973 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
5975 * system.ads: Move Functions_Return_By_DSP to obsolete section,
5976 kept for bootstrap purposes only.
5978 2007-04-06 Arnaud Charlet <charlet@adacore.com>
5980 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5981 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
5982 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
5983 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
5985 2007-04-06 Robert Dewar <dewar@adacore.com>
5987 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
5988 (Local_Raise): New dummy procedure called when a raise is converted
5989 to a local goto. Used for debugger to detect that the exception
5992 * debug.adb: Document new d.g flag (expand local raise statements to
5993 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
5995 * exp_sel.adb: Use Make_Implicit_Exception_Handler
5997 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
5998 suppress warnings for unused handlers.
5999 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
6000 warnings for raise statements not handled locally.
6001 (Get_RT_Exception_Entity): New function
6002 (Get_Local_Call_Entity): New function
6003 (Find_Local_Handler): New function
6004 (Warn_If_No_Propagation): New procedure
6005 (Expand_At_End_Handler): Call Make_Implicit_Handler
6006 (Expand_Exception_Handlers): Major additions to deal with local handlers
6007 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
6008 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
6011 * exp_ch11.ads (Get_RT_Exception_Entity): New function
6012 (Get_Local_Call_Entity): New function
6014 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
6015 of restrictions that the binder will never suggest adding.
6017 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
6020 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
6021 be with'ed in the presence of pragma Restriction
6022 (No_Exception_Propagation).
6024 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
6026 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
6027 parameter, then the handler is not a suitable target for a local raise,
6028 and this is a violation of restriction No_Exception_Propagation.
6029 (Analyze_Handled_Statements): Analyze choice parameters in exception
6030 handlers before analyzing statement sequence (needed for proper
6031 detection of local raise statements).
6032 (Analyze_Raise_Statement): Reraise statement is a violation of the
6033 No_Exception_Propagation restriction.
6035 * s-rident.ads: Add new restriction No_Exception_Propagation
6037 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
6038 function, like Make_Exception_Handler but sets Local_Raise_Statements
6040 (Add_Unique_Serial_Number): Deal with case where this is called during
6041 processing of configuration pragmas.
6043 2007-04-06 Thomas Quinot <quinot@adacore.com>
6044 Pat Rogers <rogers@adacore.com>
6045 Pascal Obry <obry@adacore.com>
6047 * g-stsifd-sockets.adb: New file.
6049 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
6050 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
6051 g-socthi-vms.adb: Move signalling
6052 fd management to a nested package, so that they can conveniently be
6053 moved to a subunit that is shared across Windows, VMS, and VxWorks
6054 (Ada implementation) or completed with imported bodies from socket.c
6056 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
6058 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
6059 the signalling file descriptor.
6060 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
6061 signalling file descriptor.
6062 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
6063 instead of creating a pair of sockets for signalling here.
6065 * g-socthi.adb: Ditto.
6066 Set the runtime process to ignore SIGPIPEs on platforms that support
6067 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
6069 * g-socthi-mingw.adb: Ditto.
6070 (WS_Version): Use Windows 2.2.
6071 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
6073 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
6074 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
6076 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
6077 added GNAT byte swapping facility
6078 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
6080 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
6082 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
6084 (__gnat_create_signalling_fds): New subprogram.
6085 Set the runtime process to ignore SIGPIPEs on platforms that support
6086 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
6088 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
6089 Vincent Celier <celier@adacore.com>
6091 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
6092 New version of Ada.Calendar which supports the new upper bound of Ada
6093 time (2399-12-31 86_399.999999999).
6094 The following modifications have been made to the package:
6095 - New representation of time as count of nanoseconds since the start of
6096 Ada time (1901-1-1 0.0).
6097 - Target independent Split and Time_Of routines which service both
6098 Ada 95 and Ada 2005 code.
6099 - Target independent interface to the Ada 2005 children of Calendar.
6100 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
6101 - Handling of non-leap centenial years.
6102 - Updated clock function.
6103 - Updated arithmetic and comparison operators.
6105 * a-caldel.adb (To_Duration): Add call to target independent routine in
6106 Ada.Calendar to handle the conversion of time to duration.
6108 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
6110 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
6112 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
6113 targets do not have a natural time zone, GMT is used as a default.
6114 (__gnat_get_task_options): New.
6116 * a-direct.adb (Modification_Time): Add with and use clauses for
6117 Ada.Calendar and Ada.
6118 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
6119 since it is no longer needed.
6120 (Duration_To_Time): Removed.
6121 (OS_Time_To_Long_Integer): Removed.
6122 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
6123 Formatting Time_Of routines which automatically handle time zones,
6124 buffer periods and leap seconds.
6126 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
6127 target independent routines in Ada.Calendar.
6129 * a-calfor.ads, a-calfor.adb:
6130 Code cleanup and addition of validity checks in various routines.
6131 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
6134 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
6135 independent routine in Ada.Calendar.
6137 2007-04-06 Olivier Hainque <hainque@adacore.com>
6140 (convert_addresses): Adjust prototype and dummy definition to expect an
6141 extra file_name argument.
6143 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
6144 filling the now expected file_name argument with the appropriate
6146 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
6147 (tracebk): Array of void * instead of char *, corresponding to what
6148 convert_addresses expects.
6149 (exename): New static global, to hold the executable file name to be
6150 used in all convert_addresses invocations.
6151 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
6153 (__gnat_gmem_a2l_initialize): Resolve exename.
6154 (__gnat_convert_addresses): Use exename as the convert_addresses
6157 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
6158 "convert_addresses", now expecting a filename argument. Import the
6159 necessary entities to compute the filename to use and pass it to
6162 2007-04-06 Matt Gingell <gingell@adacore.com>
6164 * system-aix.ads: Back out previous change.
6165 (Functions_Return_By_DSP): Removed
6167 2007-04-06 Pascal Obry <obry@adacore.com>
6169 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
6170 or the monotonic used by Ada.Real_Time) to compute the sleep duration
6173 2007-04-06 Jose Ruiz <ruiz@adacore.com>
6175 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
6176 function. Its value changes in different VxWorks versions, and it is
6177 now handled by the function __gnat_get_task_options.
6179 * s-taprop-vxworks.adb (Create_Task): Call the function
6180 __gnat_get_task_options to get the required options for creating a task.
6182 2007-04-06 Pascal Obry <obry@adacore.com>
6183 Thomas Quinot <quinot@adacore.com>
6185 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
6186 dealing with filename.
6187 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
6188 filename from a standard string to a wide-string depending on the
6190 (__gnat_freopen): Idem.
6191 (__gnat_current_time): New function (wrapper for time(3) standard C
6194 * g-os_lib.ads (Current_Time): New function. Returns the current
6195 system time as an OS_Time value.
6197 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
6198 (Monotonic_Clock): Same.
6200 2007-04-06 Quentin Ochem <ochem@adacore.com>
6202 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
6204 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
6206 2007-04-06 Jose Ruiz <ruiz@adacore.com>
6208 * a-retide.adb: Add elaboration code to ensure that the tasking run
6209 time is initialized when using delay operations even when no task is
6212 2007-04-06 Javier Miranda <miranda@adacore.com>
6214 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
6215 component Num_Prim_Ops.
6216 (Set_Num_Prim_Ops): Removed.
6217 Remove all the assertions because all the routines of this
6218 package are inline always.
6219 (Get_Offset_Index): Add support to primary dispatch tables.
6220 Move the documentation about the dispatch table to a-tags.ads
6221 (Set_External_Tag): Removed
6222 (Inherit_TSD): Removed.
6223 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
6225 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
6226 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
6227 of the TSD field "Table" because this field has been renamed to
6229 (Inherit_CPP_DT): Removed.
6230 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
6231 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
6232 declarations have been moved to a-tags.ads
6233 (Check_Size): Removed.
6234 (Expanded_Name): Updated to get access to the new field of TSD
6235 containing the address of the expanded name.
6236 (Get_Access_Level/Set_Access_Level): Removed.
6237 (Get_Predefined_Prim_Op_Address): Removed.
6238 (Set_Predefined_Prim_Op_Address): Removed.
6239 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
6240 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
6241 (Set_Expanded_Name): Removed.
6242 (Inherit_DT): Removed.
6243 (Inherit_CPP_DT): Removed.
6244 (Set_RC_Offset): Removed.
6246 (Base_Address): New function that displaces "this" to point to the base
6247 of the object (that is, to point to the primary tag of the object).
6249 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6250 Javier Miranda <miranda@adacore.com>
6252 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
6253 anonymous access component, do not create a master_id if type already
6254 has one, as may happen if the type is a subcomponent of a packed array
6256 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
6257 Initialize_Tag): Remove code associated with the old CPP pragmas.
6258 CPP_Virtual and CPP_Vtable are no longer supported.
6259 (Build_Offset_To_Top_Internal): Add support for concurrent record types
6260 (Build_Offset_To_Top_Functions): Add support for concurrent record types
6261 (Freeze_Record_Type): Remove call to
6262 Init_Predefined_Interface_Primitives.
6263 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
6264 code required to initialize the tags of the secondary dispatch tables.
6265 This leaves the algoritm more clear.
6266 (Init_Secondary_Tags): Add support for concurrent record types
6267 (Make_Predefined_Primitive_Specs): Code cleanup.
6268 (Predefined_Primitive_Bodies): Code cleanup.
6269 (Build_Master_Renaming): New local subprogram.
6270 (Expand_N_Full_Type_Declaration): Build the master_id associated with
6271 anonymous access to task type components.
6272 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
6273 subtype indication are resolved during analysis, and must not be done
6275 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
6277 2007-04-06 Geert Bosch <bosch@adacore.com>
6278 Ed Schonberg <schonberg@adacore.com>
6279 Javier Miranda <miranda@adacore.com>
6280 Bob Duff <duff@adacore.com>
6282 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
6283 for conversion of a Float_Type'Truncation to integer.
6285 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
6286 check if a node is an attribute that can be handled directly by the
6288 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
6289 attributes that can be handled directly by the back end.
6290 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
6291 use new predicate Is_Access_Protected_Subprogram_Type.
6292 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
6293 and Unchecked_Union if it is generated as part of the default Output
6294 procedure for a type with default discriminants.
6295 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
6296 if we are compiling under restriction No_Dispatching_Calls.
6297 (Constrained): Use Underlying_Type, in case the type is private without
6298 discriminants, but the full type has discriminants.
6299 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
6300 call to Build_Get_Access_Level.
6301 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
6302 interface objects requires a call to the run-time subprogram that
6303 returns the base address of the object.
6304 (Valid_Conversion): Improve error message on illegal attempt to store
6305 an anonymous access to subprogram value into a record component.
6307 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
6309 (Simplify_Type_Conversion): New procedure that performs simplification
6310 of Int_Type (Float_Type'Truncation (X)).
6311 (Resolve_Type_Conversion): Call above procedure after resolving operand
6312 and before performing checks. This replaces the existing ineffective
6314 (Set_String_Literal_Subtype): When creating the internal static lower
6315 bound subtype for a string literal, use a newly created copy of the
6316 subtree representing the lower bound.
6317 (Resolve_Call): Exclude build-in-place function calls from transient
6318 scope treatment. Update comments to describe this exception.
6319 (Resolve_Equality_Op): In case of dispatching call check violation of
6320 restriction No_Dispatching_Calls.
6321 (Resolve_Call): If the call returns an array, the context imposes the
6322 component type of the array, and the function has one non-defaulted
6323 parameter, rewrite the call as the indexing of a call with a single
6324 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
6326 (Resolve_Actuals): If an actual is an allocator for an access parameter,
6327 the master of the created object is the innermost enclosing statement.
6328 (Remove_Conversions): For a binary operator, check if type of second
6329 formal is numeric, to check if an abstract interpretation is present
6330 in the case of exponentiation as well.
6332 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6333 Bob Duff <duff@adacore.com>
6335 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
6336 copying a parameter list in a call, set properly the First_Named_Formal
6337 and Next_Named_Formal fields in the new list and in the enclosing call.
6338 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
6339 names, to ease typing in the debugger. Improve comments.
6340 (Watch_Node): New variable, intended to be set in the debugger.
6341 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
6342 called when the watched node is created.
6343 (New_Node_Debugging_Output): Combined version of local procedures
6344 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
6345 with a parameter so that conditional breakpoints like "if Node = 12345"
6347 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
6350 2007-04-06 Thomas Quinot <quinot@adacore.com>
6351 Ed Schonberg <schonberg@adacore.com>
6352 Gary Dismukes <dismukes@adacore.com>
6354 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
6355 required for a conversion between two access-to-unconstrained-array
6357 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
6358 to discriminant constraints on discriminant objects. This rule must
6359 apply as well to discriminants of protected types in private components.
6360 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
6361 object of a null-excluding access type then don't require the
6362 the object declaration to have an expression and don't emit a
6365 2007-04-06 Arnaud Charlet <charlet@adacore.com>
6366 Eric Botcazou <botcazou@adacore.com>
6368 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
6371 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
6372 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
6375 * fe.h (Compiler_Abort): Add third parameter.
6377 * misc.c (internal_error_function): Build third argument from current
6378 input location and pass it to Compiler_Abort.
6380 2007-04-06 Gary Dismukes <dismukes@adacore.com>
6382 * cstand.adb (Create_Standard): When the target's storage unit size is
6383 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
6386 2007-04-06 Nicolas Roche <roche@adacore.com>
6388 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
6389 absolute path can have the following form: device:/a/b. In this case
6390 '/' should be inserted between the path and the filename.
6392 2007-04-06 Olivier Hainque <hainque@adacore.com>
6393 Eric Botcazou <botcazou@adacore.com>
6395 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
6396 VAR_DECL to a CONST_DECL we make for a public constant when we know the
6397 corresponding definition has created the so made visible variable.
6398 Handle anonymous access to protected subprogram.
6399 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
6400 object with an address clause volatile. Re-enable original fix.
6401 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
6403 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
6404 associated with either the Equivalent or Root type, instead of the
6406 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
6407 subtree for every field of a global record type.
6408 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
6409 discriminants, invoke again variable_size on its newly computed sizes.
6411 2007-04-06 Robert Dewar <dewar@adacore.com>
6412 Thomas Quinot <quinot@adacore.com>
6413 Ed Schonberg <schonberg@adacore.com>
6414 Bob Duff <duff@adacore.com>
6416 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
6417 (Next_Component_Or_Discriminant): New function and procedure
6418 (First_Index, First_Literal, Master_Id,
6419 Set_First_Index, Set_First_Literal, Set_Master_Id):
6420 Add missing Ekind assertions.
6421 (Is_Access_Protected_Subprogram_Type): New predicate.
6422 (Has_RACW): New entity flag, set on package entities to indicate that
6423 the package contains the declaration of a remote accecss-to-classwide
6425 (E_Return_Statement): This node type has the Finalization_Chain_Entity
6426 attribute, in case the result type has controlled parts.
6427 (Requires_Overriding): Add this new flag, because "requires
6428 overriding" is subtly different from "is abstract" (see AI-228).
6429 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
6430 Is_Abstract_Type. Make sure these are called only when appropriate.
6431 (Has_Pragma_Unreferenced_Objects): New flag
6433 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
6434 class-wide, the tag of the right-hand side must be an exact match, not
6435 an ancestor of that of the object on left-hand side.
6436 (Move_Activation_Chain): New procedure to create the call to
6437 System.Tasking.Stages.Move_Activation_Chain.
6438 (Expand_N_Extended_Return_Statement): Generate code to call
6439 System.Finalization_Implementation.Move_Final_List at the end of a
6440 return statement if the function's result type has controlled parts.
6441 Move asserts to Build_In_Place_Formal.
6442 (Move_Final_List): New function to create the call statement.
6443 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
6444 tagged type, replace generation of call to the run-time subprogram
6445 CW_Membership by call to Build_CW_Membership.
6446 (Expand_N_Return_Statement): Replace generation of call to the run-time
6447 subprogram Get_Access_Level by call to Build_Get_Access_Level.
6448 (Expand_N_Simple_Function_Return): Replace generation of call to the
6449 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
6451 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
6452 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
6453 access to protected operations.
6454 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
6455 master and chain actual parameters to a build-in-place function call
6457 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
6459 (Make_Build_In_Place_Call_In_Allocator,
6460 Make_Build_In_Place_Call_In_Anonymous_Context,
6461 Make_Build_In_Place_Call_In_Assignment,
6462 Make_Build_In_Place_Call_In_Object_Declaration): Call
6463 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
6464 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
6465 stubbed procedure with a null body, replace the call with a null
6466 statement without using the full inlining machinery, for efficiency
6467 and to avoid invalid values in source file table entries.
6469 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
6470 renamings of calls to build-in-place functions.
6472 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
6473 provides the functionality of RTE_Available to record components.
6474 (RTU_Entity): The function Entity has been renamed to RTU_Entity
6475 to avoid undesired overloading.
6476 (Entity): New subprogram that returns the entity for the referened
6477 unit. If this unit has not been loaded, it returns Empty.
6478 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
6479 Remove no longer used entities.
6480 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
6481 (RE_Type_Specific_Data): New entity.
6482 (RE_Move_Any_Value): New entity.
6483 (RE_TA_A, RE_Get_Any_Type): New entities.
6484 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
6485 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
6486 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
6487 (Entity): New subprogram that returns the entity for the referened
6488 unit. If this unit has not been loaded, it returns Empty.
6489 (RTE): Addition of a new formal that extends the search to the scopes
6490 of the record types found in the chain of the package.
6492 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
6493 "abstract subprograms must be visible" message, whether or not the type
6494 is an interface; that is, remove the special case for interface types.
6495 (Analyze_Function_Return): Remove error message "return of task objects
6496 is not yet implemented" because this is now implemented.
6497 (Create_Extra_Formals): Add the extra master and activation chain
6498 formals in case the result type has tasks.
6499 Remove error message "return of limited controlled objects is not yet
6501 (Create_Extra_Formals): Add the extra caller's finalization list formal
6502 in case the result type has controlled parts.
6503 (Process_Formals): In case of access formal types there is no need
6504 to continue with the analysis of the formals if we already notified
6506 (Check_Overriding_Indicator): Add code to check overriding of predefined
6508 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
6509 flags for formals that do not require them,.
6510 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
6511 hidden entity is use visible or directly visible.
6512 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
6513 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
6514 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
6515 New_Overloaded_Entity): Split Is_Abstract flag into
6516 Is_Abstract_Subprogram and Is_Abstract_Type.
6518 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
6519 a return statement's finalization list to the caller's list, used for
6520 build-in-place functions with result type with controlled parts.
6521 Remove no longer used entities.
6523 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
6524 longer needed, because the full type is now limited, and therefore a
6525 pass-by-reference type.
6526 (Foreign_Task_Level): New constant.
6528 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
6529 move tasks from the activation chain belonging to a return statement to
6530 the one passed in by the caller, and update the master to the one
6531 passed in by the caller.
6532 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
6533 of unactivated tasks, so we don't kill the ones that are being returned
6534 by a build-in-place function.
6535 (Create_Task): Ignore AI-280 for foreign threads.
6537 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6538 Robert Dewar <dewar@adacore.com>
6539 Bob Duff <duff@adacore.com>
6540 Gary Dismukes <dismukes@adacore.com>
6542 * errout.adb (Unwind_Internal_Type): Use predicate
6543 Is_Access__Protected_Subprogram_Type.
6545 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
6546 (Freeze_Entity, packed array case): Do not override explicitly set
6547 alignment and size clauses.
6548 (Freeze_Entity): An entity declared in an outer scope can be frozen if
6549 the enclosing subprogram is a child unit body that acts as a spec.
6550 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
6551 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
6552 Remove all code for DSP option
6554 * layout.adb (Layout_Record_Type): Use First/
6555 Next_Component_Or_Discriminant
6556 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
6557 to handle properly the anonymous access case.
6559 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
6560 for all access attributes, because overload resolution should work the
6561 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
6562 causes the error message for the ambiguous "X'Access = Y'Access" and
6563 "X'Unrestricted_Access = Y'Access" and so forth to match.
6564 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
6565 now that anonymous access to protected operations have their own kind.
6566 (Resolve_Attribute): In case of dispatching call check the violation of
6567 restriction No_Dispatching_Calls.
6568 (Check_Array_Type): Check new -gnatyA array index style option
6570 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
6571 attempt to derive from a synchronized tagged type.
6572 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
6573 type, inherit the class-wide type already created, because it may
6574 already have been used in a self-referential anonymous access component.
6575 (Mentions_T): Recognize self-referential anonymous access components
6576 that use (a subtype of) the class-wide type of the enclosing type.
6577 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
6578 Derived_Type for Prev formal on call to
6579 Check_Anonymous_Access_Components rather than Empty.
6580 (Make_Incomplete_Type_Declaration): Add test for case where the type has
6581 a record extension in deciding whether to create a class-wide type,
6582 rather than just checking Tagged_Present.
6583 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
6584 to stand-alone object declarations as well as component declarations.
6585 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
6586 prevent accidental overwriting when enclosing package appears in
6587 a limited_with_clause.
6588 (Array_Type_Declaration): If the component type is an anonymous access,
6589 the associated_node for the itype is the type declaration itself.
6590 (Add_Interface_Tag_Components): Modified to support concurrent
6591 types with abstract interfaces.
6592 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
6593 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
6594 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
6595 to complete the decoration of synchronized interface types. Add also
6596 a call to Check_Abstract_Interfaces to verify the ARM rules.
6597 (Derive_Interface_Subprograms): Modified to support concurrent types
6598 with abstract interfaces.
6599 (Analyze_Subtype_Indication): Resolve the range with the given subtype
6600 mark, rather than delaying the full resolution depending on context.
6601 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
6602 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
6603 Array_Type_Declaration,Build_Derived_Record_Type,
6604 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
6605 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
6606 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
6607 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
6608 called only when appropriate.
6609 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
6611 (Analyze_Subtype_Declaration): For an access subtype declaration, create
6612 an itype reference for the anonymous designated subtype, to prevent
6613 scope anonmalies in gigi.
6614 (Build_Itype_Reference): New utility, to simplify construction of such
6617 2007-04-06 Vincent Celier <celier@adacore.com>
6619 * errutil.adb (Initialize): Initialize warnings table, if all warnings
6620 are suppressed, supply an initial dummy entry covering all possible
6623 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
6624 and start with only one, such as "-RTS=none".
6625 (Collect_Arguments): Do not check for sources outside of projects.
6626 Do not collect arguments if project is externally built.
6627 (Compile_Sources): Do nothing, not even check if the source is up to
6628 date, if its project is externally built.
6629 (Compile): When compiling a predefined source, add -gnatpg
6630 as the second switch, after -c.
6631 (Compile_Sources): Allow compilation of Annex J renames without -a
6632 (Is_In_Object_Directory): Check if the ALI file is in the object
6633 even if there is no project extension.
6634 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
6635 gnatbind if the ALI file effectively exists.
6636 (Initialize): Add the directory where gnatmake is invoked in front of
6637 the path if it is invoked from a bin directory, even without directory
6638 information, so that the correct GNAT tools will be used when spawned
6639 without directory information.
6641 * makeusg.adb: Change switch -S to -eS
6642 Add lines for new switches -we, -wn and -ws
6643 Add line for new switch -p
6645 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
6646 Treat_As_Error and there are warnings.
6648 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
6649 -gnatww Change gnatmake switch -S to -eS
6650 (Scan_Make_Switches): Code reorganisation. Process separately multi
6651 character switches and single character switches.
6652 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
6653 False when switch is not recognized by gnatmake.
6654 (Scan_Make_Switches): Set Setup_Projects True when -p or
6655 --create-missing-dirs is specified.
6657 * fname.adb (Is_Predefined_File_Name): Return True for annex J
6658 renamings Calendar, Machine_Code, Unchecked_Conversion and
6659 Unchecked_Deallocation only when Renamings_Included is True.
6661 * par.adb: Allow library units Calendar, Machine_Code,
6662 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
6663 when -gnatg is not specified.
6664 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
6665 there is no need to generate always a record_definition_node in case
6666 of synchronized interface types.
6667 (SIS_Entry_Active): Initialize global variable to False
6668 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
6669 indicate cases where AI-447 says "not null" is legal.
6671 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
6673 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
6674 files with with several lines starting with the object fileb name.
6675 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
6677 (Initialize): Add the directory where gprmake is invoked in front of the
6678 path, if it is invoked from a bin directory or with directory
6679 information, so that the correct GNAT tools will be used when invoked
6681 (Check_Compilation_Needed): Process correctly backslashes on Windows.
6683 * vms_data.ads: Update switches/qualifiers
6685 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6686 Thomas Quinot <quinot@adacore.com>
6689 If the array component is a discriminated record, the array aggregate
6690 is non-static even if the component is given by an aggregate with
6692 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
6693 (Convert_Aggr_In_Allocator): If the allocator is for an access
6694 discriminant and the type is controlled. do not place on a finalization
6695 list at this point. The proper list will be determined from the
6697 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
6698 initialize record controller if needed, before the components, to ensure
6699 that they are properly finalized.
6700 (Build_Record_Aggr_Code): For the case of an array component that has a
6701 corresponding array aggregate in the record aggregate, perform sliding
6704 2007-04-06 Javier Miranda <miranda@adacore.com>
6705 Gary Dismukes <dismukes@adacore.com>
6706 Ed Schonberg <schonberg@adacore.com>
6708 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
6709 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
6711 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
6712 accessibility on class-wide allocators if the allocator occurs at the
6713 same scope level as the allocator's type. The check is guaranteed to
6714 succeed in that case, even when the expression originates from a
6715 parameter of the containing subprogram.
6716 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
6717 under No_Dispatching_Calls restriction. During the semantic analysis
6718 we already notified such violation.
6719 (Tagged_Membership): Constant folding. There is no need to check
6720 the tag at run-time if the type of the right operand is non
6721 class-wide abstract.
6722 Replace call to Is_Ancestor by call to Is_Parent
6723 to support concurrent types with interface types.
6724 (Expand_N_Allocator): Add an assertion associated with the generation
6726 (Expand_N_Slice): Do not enable range check to nodes associated
6727 with the frontend expansion of the dispatch table.
6728 (Is_Local_Access_Discriminant): Subsidiary function to
6730 (Tagged_Membership): Replace generation of call to the run-time
6731 subprogram CW_Membership by call to Build_CW_Membership.
6732 (Expand_Allocator_Expression): Replace generation of call to the
6733 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
6735 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
6736 initialize most the TSD components by means of an aggregate.
6737 Modify the declaration of the object containing the TSD
6738 because we now expand code that has a higher level of abstraction.
6739 The TSD has a discriminant containing the Inheritance Depth Level,
6740 value that is used in the membership test but also to fix the size
6741 of the table of ancestors.
6742 (Expand_Interface_Conversion): Insert function body at the closest place
6743 to the conversion expression, to prevent access-before-elaboration
6744 errors in the backend.
6745 Code improved to reduce the size of the dispatch table if
6746 compiling under restriction No_Dispatching_Calls plus code cleanup.
6747 Code reorganization plus removal of calls to Set_Num_Prim_Ops
6748 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
6749 (Expand_Dispatching_Call): Minor code reorganization plus addition of
6750 code to return immediately if compiling under No_Dispatching_Calls
6752 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
6753 CPP_Virtual and CPP_Vtable are no longer supported.
6754 (Expand_Interface_Conversion): Add missing support for interface type
6756 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
6757 Is_Parent to support concurrent types with interfaces.
6758 (Init_Predefined_Interface_Primitives): Removed.
6759 (Make_Secondary_DT): Modified to support concurrent record types.
6760 (Set_All_DT_Position): Modified to support concurrent record types.
6761 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
6762 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
6763 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
6765 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
6766 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
6767 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
6768 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
6769 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
6770 (Expand_Dispatching_Call): Replace generation of call to the run-time
6771 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
6772 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
6774 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
6775 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
6776 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
6777 Build_Set_Prim_Op_Address.
6778 (Get_Remotely_Callable): Subprogram removed.
6779 (Init_Predefined_Interface_Primitives): Replace generation of call to
6780 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
6783 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
6784 First (Parameter_Associations ()) with the call to First_Actual that
6785 returns an actual parameter expression for both named and positional
6788 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
6789 check violation of restriction No_Dispatching_Calls.
6790 (Check_Controlling_Type): A formal of a tagged incomplete type is a
6791 controlling argument.
6793 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
6794 First/Next_Component_Or_Discriminant
6795 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
6796 (Find_Implemented_Interface): Removed. All the calls to this subprogram
6797 specify Any_Limited_Interface, and this functionality is already
6798 provided by the function Has_Abstract_Interfaces.
6799 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
6800 support concurrent types implementing interfaces.
6801 (Find_Implemented_Interface): Removed. All the calls to this subprogram
6802 specify kind Any_Limited_Interface, and this functionality is already
6803 provided by the function Has_Abstract_Interfaces.
6804 (Remove_Side_Effects): replace Controlled_Type by
6805 CW_Or_Controlled_Type whenever the issue is related to
6806 using or not the secondary stack.
6808 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
6809 P_Interface_Type_Definition to fulfill the new interface (the formal
6810 Is_Synchronized is no longer required).
6812 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
6813 Update dependencies.
6815 * exp_atag.ads, exp_atag.adb: New file
6817 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6818 Bob Duff <duff@adacore.com>
6819 Cyrille Comar <comar@adacore.com>
6821 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
6822 anonymous, use finalization list of enclosing dynamic scope.
6823 (Expand_N_Package_Declaration): For a library package declaration
6824 without a corresponding body, generate RACW subprogram bodies in the
6825 spec (just as we do for the task activation call).
6826 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
6827 Is_Abstract_Type. Make sure these are called only when appropriate.
6828 Remove all code for DSP option
6829 (CW_Or_Controlled_Type): new subprogram.
6831 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6832 Ed Schonberg <schonberg@adacore.com>
6833 Gary Dismukes <dismukes@adacore.com>
6835 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
6836 parameter. If it is set to true, return a result capped according to
6837 the global upper bound for the index of an entry family.
6838 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
6839 (Build_Find_Body_Index): Adjust for above change.
6840 (Entry_Index_Expression): Likewise.
6841 (Is_Potentially_Large_Family): New function extracted from...
6842 (Collect_Entry_Families): ...here. Call it to detect whether the family
6843 is potentially large.
6844 (Build_Entry_Count_Expression): If the family is potentially large, call
6845 Family_Size with 'Cap' set to true.
6846 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
6847 a protected version of an operation declared in the private part of
6848 a protected object, because they may be invoked through a callback.
6849 (Set_Privals): If the type of a private component is an anonymous access
6850 type, do not create a new itype for each protected body.
6851 If the body of a protected operation creates
6852 controlled types (including allocators for class-widetypes), the
6853 body of the corresponding protected subprogram must include a
6855 (Build_Activation_Chain_Entity): Build the chain entity for extended
6857 (Type_Conformant_Parameters): Use common predicate Conforming_Types
6858 to determine whether operation overrides an inherited primitive.
6859 (Build_Wrapper_Spec): Add code to examine the parents while looking
6860 for a possible overriding candidate.
6861 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
6862 hold an actual parameter value since its initialization is separated
6863 from the the declaration. Prevents errors on null-excluding access
6866 2007-04-06 Thomas Quinot <quinot@adacore.com>
6868 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
6869 Do an Unchecked_Conversion to handle the passage from the Underlying
6870 Type to the Base Type when calling Build_To_Any_Call and
6871 Build_From_Any_Call.
6872 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
6873 E_Constant, depending upon Variable formal.
6874 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6875 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
6876 parameter that requires an extra constrained parameter, declare
6877 temporary for actual as a variable, not a constant.
6878 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
6879 the unit being compiled is the one that contains the stub type.
6880 Change primitive operation name for the RACW associated with a RAS
6881 from Call to _Call so it cannot clash with any legal identifier.
6882 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
6884 (Append_RACW_Bodies): New subprogram.
6885 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
6886 Add_Receiving_Stubs_To_Declarations functions.
6887 When expanding a package body, this list correspond to the
6888 statements in the HSS at the end of the pacakge.
6889 When expanding a package spec, this list correspond to the
6891 (Add_Receiving_Stubs_To_Declarations): Append the function
6892 registering the receiving stubs at the end of the 'Stmts' list.
6893 (RCI_Package_Locator): Pass the new Version generic formal when
6894 instantiating a RCI_Locator package.
6895 (Build_From_Any_Function): To compute the High bound for an
6896 unconstrained array actual, we add the Low bound with the length.
6897 Thus we must convert the low bound and the length to an appropriate
6898 type before doing the sum.
6899 (Build_Subprogram_Receiving_Stubs, PolyORB):
6900 * Retrieve the extra formals parameters at the
6901 end of the parameter stream.
6902 * Use Move_Any_Value to write back out parameters
6903 after executing the request as it is more efficient
6904 than Copy_Any_Value.
6905 * Build the any containing Extra Formals with the
6906 appropriate typecode.
6907 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
6908 empty Component_List.
6909 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
6910 the tree the declaration for an object that serves as actual parameter
6911 in server-side stubs.
6912 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6913 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
6914 Use Build_Actual_Object_Declaration to prepare the actuals.
6915 (Add_Parameter_To_NVList): Set the parameter mode to In for
6916 Extra Constrained Parameters.
6917 (Build_General_Calling_Stubs): Set the parameter type to boolean for
6918 Extra Constrained parameters.
6919 (Build_To_Any_Function, Build_From_Any_Function,
6920 Built_TypeCode_Function): When Typ is implicit, call the correct
6921 function with the first not implicit parent type.
6922 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
6923 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
6924 typecode from the Etype. Therefore we retrieve the correct typecode
6925 with a call to Get_Any_Type.
6926 (Copy_Specification): Do controlling formal type substitution based on
6927 Is_Controlling_Formal flag, instead of caller-provided object type.
6928 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
6929 a RACW primitive operation, we might get a subprogram declaration for an
6930 ancestor of the RACW designated type (not for the designated type
6931 itself), in the case where this operation is inherited. In this case we
6932 have no easy means of determining the original tagged type for which
6933 the primitive was declared, so instead we now rely on
6934 Copy_Specification to use the Is_Controlling_Formal flag to determine
6935 which formals require type substitution.
6937 2007-04-06 Robert Dewar <dewar@adacore.com>
6938 Ed Schonberg <schonberg@adacore.com>
6940 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
6941 GNAT.Current_Exception are not allowed if pragma Restrictions
6942 (No_Exception_Propagation) is set and in any case make the associated
6943 handler unsuitable as a target for a local raise statement.
6944 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
6945 run-time subprogram CW_Membership by call to Build_CW_Membership.
6946 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
6947 by a function call, a temporary must be created before expanding the
6948 Constructor_Call itself, to prevent out-of-order elaboration in the
6949 back-end when stack checking is enabled..
6951 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6953 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
6954 result are the bounds of the left operand, not the right.
6956 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6959 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
6960 discriminant defaults.
6961 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
6962 (Make_Component_List_Attributes): Ditto.
6964 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6965 Bob Duff <duff@adacore.com>
6967 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
6968 an association with a box as providing a value even though the
6969 initialization procedure for the type is not available.
6970 (Resolve_Record_Aggregate): Check that a choice of an association with a
6971 box corresponds to a component of the type.
6972 (Resolve_Record_Aggregate): Split Is_Abstract flag into
6973 Is_Abstract_Subprogram and Is_Abstract_Type.
6975 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
6978 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
6979 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
6980 called only when appropriate.
6982 2007-04-06 Olivier Hainque <hainque@adacore.com>
6984 * g-alleve.ads (Low Level Vector type definitions): Map each to the
6985 associated vector view instead of all to the unsigned char view.
6987 * g-altcon.adb (Generic_Conversions): New internal generic package,
6988 offering facilities for all the Vector/View conversion routines
6989 implemented by this unit.
6990 (To_View/To_Vector - all versions): Reimplemented in a systematic
6991 manner, using the internal Generic_Conversions facilities.
6993 2007-04-06 Pascal Obry <obry@adacore.com>
6995 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
6997 (Create): Free the source string before storing the new one.
6999 2007-04-06 Vincent Celier <celier@adacore.com>
7001 * g-debpoo.adb (Validity): New package with a complete new
7002 implementation of subprograms Is_Valid and Set_Valid.
7003 (Is_Valid): Move to local package Validity
7004 (Set_Valid): Move to local package Validity
7006 2007-04-06 Arnaud Charlet <charlet@adacore.com>
7008 * g-expect.adb (Get_Command_Output): When expanding the output buffer
7009 we must ensure that there is enough place for the new data we are going
7012 2007-04-06 Thomas Quinot <quinot@adacore.com>
7014 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
7017 2007-04-06 Jose Ruiz <ruiz@adacore.com>
7018 Vincent Celier <celier@adacore.com>
7020 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
7021 (Stack_String): Add this String that contains the name of the Stack
7022 package in the project file.
7023 (Packages_To_Check_By_Stack): Add this list that contains the packages
7024 to be checked by gnatstack, which are the naming and the stack packages.
7025 (Check_Files): If no .ci files were specified for gnatstack we add all
7026 the .ci files belonging to the projects, including binder generated
7028 (Non_VMS_Usage): Document that gnatstack accept project file switches.
7029 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
7030 Add gnatstack to the list of commands that use project file related
7031 switches, and get the single attribute Switches from the stack package
7032 in a project file when calling gnatstack. Parse the -U flag for
7033 processing files belonging to all projects in the project tree.
7034 Remove all processing for command Setup
7036 * prj-attr.adb: Add new package Stack with single attribute Switches
7038 * vms_conv.ads (Command_Type): Add command Stack.
7039 Move to body declarations that are only used in the body: types Item_Id,
7040 Translation_Type, Item_Ptr, Item and its subtypes.
7042 * vms_conv.adb: (Initialize): Add data for new command Stack.
7043 Add declarations moved from the spec: types Item_Id, Translation_Type,
7044 Item_Ptr, Item and its subtypes.
7045 (Cargs_Buffer): New table
7046 (Cargs): New Boolean global variable
7047 (Process_Buffer): New procedure to create arguments
7048 (Place): Put character in table Buffer or Cargs_Buffer depending on the
7050 (Process_Argument): Set Cargs when processing qualifiers for GNAT
7052 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
7053 empty, for table Cargs_Buffer.
7054 (Initialize): Remove component Setup in Command_List
7056 2007-04-06 Vincent Celier <celier@adacore.com>
7058 * gprep.adb (Process_Files.Process_One_File): Use full file name when
7059 issuing pragma Source_Reference.
7061 2007-04-06 Emmanuel Briot <briot@adacore.com>
7063 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
7064 [[:xdigit:]] character class.
7065 Also raise an exception when an invalid character class is used.
7067 2007-04-06 Pascal Obry <obry@adacore.com>
7069 * i-cstrea.ads: (fopen): Add encoding parameter.
7071 Change reference from a-sysdep.c to sysdep.c in comment.
7072 Update copyright notice.
7073 This set of patch add support for the encoding form parameter.
7075 * mingw32.h (S2WSU): New macro to convert from a string to a
7076 wide-string using the UTF-8 encoding. The S2WS macro supports now only
7077 standard 8bits encoding.
7078 (WS2SU): As above but converting from wide-sring to string.
7079 This is needed as it is necessary to have access to both versions in the
7080 runtime for the form parameter encoding support.
7081 This set of patch add support for the encoding form parameter.
7082 (S2WS): Improve implementation to handle cases where the filename is not
7083 UTF-8 encoded. In this case we default to using the current code page
7086 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
7087 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
7088 the constants defined in adaint.h.
7089 (fopen): Add encoding parameter.
7092 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
7093 encoding. This is needed for the Reset routine (freopen low level-call).
7095 * s-fileio.adb (Open): Decode encoding form parameter and set the
7096 corresponding encoding value into AFCB structure.
7097 (Reset): Pass the encoding value to freopen.
7098 (Close): Move the call to Lock_Task to the beginning of the procedure.
7100 2007-04-06 Geert Bosch <bosch@adacore.com>
7101 Robert Dewar <dewar@adacore.com>
7103 * i-fortra.ads: Add Double_Complex type.
7105 * impunit.adb: (Is_Known_Unit): New function
7106 Add Gnat.Byte_Swapping
7108 Add new Ada 2005 units
7109 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
7110 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
7111 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
7112 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
7114 * impunit.ads (Is_Known_Unit): New function
7116 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
7117 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
7118 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
7119 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
7120 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
7121 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
7124 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
7126 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
7128 2007-04-06 Eric Botcazou <botcazou@adacore.com>
7129 Arnaud Charlet <charlet@adacore.com>
7131 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
7132 __gnat_adjust_context_for_raise.
7133 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
7134 implementation of floating point operations as native x86 targets.
7135 So the FPU should be initialized in the same way using finit. Fix
7136 floating point operations accuracy issues.
7137 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
7138 member in struct sigaction, so as to avoid warning for incompatible
7141 2007-04-06 Serguei Rybin <rybin@adacore.com>
7143 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
7144 switches from previously loaded tree
7146 2007-04-06 Thomas Quinot <quinot@adacore.com>
7148 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
7149 cases where a given dependency has a body or not.
7150 (Write_With_File_Names): New subprogram, common code for the two cases
7153 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7154 Javier Miranda <miranda@adacore.com>
7156 * lib-xref.ads, lib-xref.adb:
7157 Modify the loop that collects type references, to include interface
7158 types that the type implements. List each of these interfaces when
7159 building the entry for the type.
7160 (Generate_Definition): Initialize component Def and Typ of new entry
7161 in table Xrefs, to avoid to have these components unitialized.
7162 (Output_References): Split Is_Abstract flag into
7163 Is_Abstract_Subprogram and Is_Abstract_Type.
7164 (Generate_Reference): Add barrier to do not generate the warning
7165 associated with Ada 2005 entities with entities generated by the
7168 2007-04-06 Robert Dewar <dewar@adacore.com>
7169 Arnaud Charlet <charlet@adacore.com>
7170 Vincent Celier <celier@adacore.com>
7172 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
7173 Update 'Exception Handling Control' chapter which was outdated.
7174 Minor fix to documentation of -gnatwq
7175 Remove section "Adapting the Run Time to a New C++ Compiler" because
7177 Add passage on need of -nostart-files in some non-ada-main cases.
7178 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
7179 Update documentation about Interfacing with C++
7180 Add documentation for new gnatmake switch -p
7181 Add missing protocol part in URLs.
7183 Document pragma Compile_Time_Error
7184 Add documentation for Object_Size indicating that stand alone
7185 objects can have a larger size in some cases.
7186 Add node for GNAT.Byte_Swapping, GNAT.SHA1
7187 Update reference to the Ravenscar profile.
7188 Document pragma Unreferenced_Objects
7190 * gnat-style.texi: Fix typo
7192 2007-04-06 Vincent Celier <celier@adacore.com>
7194 * mlib.adb (Building_Library): Only output "building a library..." in
7197 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
7198 files in verbose mode.
7200 * mlib-utl.adb (Ar): Only output the first object files when not in
7202 (Gcc): Do not display all the object files if not in verbose mode, only
7205 2007-04-06 Robert Dewar <dewar@adacore.com>
7207 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
7208 it no longer destroys the contents of Name_Buffer or Name_Len and
7209 non-standard and invalid names are handled better.
7210 (Get_Decoded_Name_String): Improve performance by using
7211 Name_Has_No_Encodings flag in the name table.
7212 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
7213 Used for debugging printouts.
7215 2007-04-06 Robert Dewar <dewar@adacore.com>
7216 Javier Miranda <miranda@adacore.com>
7217 Bob Duff <duff@adacore.com>
7219 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
7220 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
7221 there is no need to generate always a record_definition_node in case
7222 of synchronized interface types.
7223 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
7224 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
7225 illegal in Ada 95, in cases where it is legal. Change the warnings to
7226 errors in other cases. Don't give the error unless the "not null"
7227 parses properly. Correct the source position at which the error occurs.
7228 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
7229 P_Null_Exclusion, to suppress "not null" warnings.
7230 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
7231 associated goto statements.
7233 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
7236 * scans.ads (Type_Token_Location): New flag
7238 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
7239 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
7240 P_Null_Exclusion, to suppress "not null" warnings.
7242 2007-04-06 Robert Dewar <dewar@adacore.com>
7243 Javier Miranda <miranda@adacore.com>
7244 Bob Duff <duff@adacore.com>
7245 Vincent Celier <celier@adacore.com>
7247 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
7248 (Extensions_Allowed): No longer sets Ada_Version
7249 Entry for pragma Unreferenced_Objects
7251 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
7252 system.tasking if pragma priority used in a procedure
7253 (Analyze_Pragma, case Warning): Handle dot warning switches
7254 (Process_Compile_Time_Warning_Or_Error): New procedure
7255 (Analyze_Pragma): Add processing for Compile_Time_Error
7256 Add support for extra arguments External_Name and Link_Name.
7257 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
7258 (Process_Import_Or_Interface): Add support for the use of pragma Import
7260 (Extensions_Allowed): No longer affects Ada_Version
7261 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
7262 Is_Abstract_Type. Make sure these are called only when appropriate.
7263 Add processing for pragma Unreferenced_Objects
7265 * snames.h, snames.ads, snames.adb: Add entry for pragma
7267 Add new standard name Minimum_Binder_Options for new gprmake
7268 Add new standard names for gprmake: Archive_Suffix,
7269 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
7270 Library_Support, Library_Version_Options,
7271 Shared_Library_Minimum_Options,
7272 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
7273 Change Name_Call to Name_uCall so that it cannot clash with a legal
7275 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
7276 Append C_Plus_Plus to convention identifiers as synonym for CPP
7277 Add new standard names Stack and Builder_Switches
7278 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
7279 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
7280 Run_Path_Option, Toolchain_Version.
7281 Entry for pragma Unreferenced_Objects
7283 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
7284 switches, without repetition of "eD". Make sure that last character of
7285 -gnatep= switch is not taken as -gnat switch character.
7286 Complete rewrite of circuit for handling saving compilation options
7287 Occasioned by need to support dot switchs for -gnatw, but cleans up
7289 -gnatX does not affect Ada_Version
7290 Include -gnatyA in -gnatg style switches
7292 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
7293 warnings on return objects.
7294 (Warn_On_Useless_Assignment): Exclude warnings on return objects
7295 (Set_Dot_Warning_Switch): New procedure
7296 (Check_References): Add missing case of test for
7297 Has_Pragma_Unreferenced_Objects
7298 (Output_Unreferenced_Messages): Implement effect of new pragma
7299 Unreferenced_Objects, remove special casing of limited controlled
7302 2007-04-06 Vincent Celier <celier@adacore.com>
7304 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
7305 the default project path, initially done during elaboration of the
7307 If the prefix returned by Sdefault is null, get the prefix from a call
7308 to Executable_Prefix_Path.
7309 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
7312 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
7313 canonical directory name to open the directory from which files are
7315 (Record_Other_Sources): Idem.
7316 (Locate_Directory): Add the possibility to create automatically missing
7317 directories when Setup_Projects is True.
7318 Call Locate_Directory so that the directory will be created when
7319 Setup_Projects is True, for object dir, library dir, library ALI dir,
7320 library source copy dir and exec dir.
7322 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
7325 2007-04-06 Robert Dewar <dewar@adacore.com>
7327 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
7328 Use First/Next_Component_Or_Discriminant
7329 (Analyze_Record_Representation_Clause):
7330 Use First/Next_Component_Or_Discriminant
7331 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
7332 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
7333 definition if type is unconstrained.
7334 (Adjust_Record_For_Reverse_Bit_Order): New procedure
7335 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
7336 Is_Abstract_Subprogram and Is_Abstract_Type.
7337 (Adjust_Record_For_Reverse_Bit_Order): New procedure
7339 * repinfo.adb (List_Record_Info): Use First/
7340 Next_Component_Or_Discriminant.
7342 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
7345 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
7346 Include -gnatyA in default switches
7348 * opt.ads: (Warn_On_Non_Local_Exception): New flag
7349 (Warn_On_Reverse_Bit_Order): New flag
7350 (Extensions_Allowed): Update the documentation.
7351 (Warn_On_Questionable_Missing_Parens): Now on by default
7353 * usage.adb: Add documentation of -gnatw.x/X switches
7354 Document new -gnatyA style switch
7355 -gnatq warnings are on by default
7357 2007-04-06 Ed Falis <falis@adacore.com>
7359 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
7360 full word is no longer compared twice.
7362 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7364 * sem_ch10.adb (Install_Limited_Context_Clauses.
7365 Expand_Limited_With_Clause): Use a new copy of selector name in the
7366 call to Make_With_Clause. This fixes the tree structure for ASIS
7367 purposes. Nothing is changed in the compiler behaviour.
7368 (Process_Body_Clauses): Handle properly use clauses whose prefix is
7370 (Install_Limited_With_Clauses): Do not install non-limited view when it
7371 is still incomplete.
7373 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7374 Gary Dismukes <dismukes@adacore.com>
7376 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
7377 when capturing size information, instead of base type, which for a
7378 formal array type will be the unconstrained type.
7379 (Analyze_Formal_Object_Declaration): Add check for illegal default
7380 expressions for a formal in object of a limited type.
7381 (Instantiate_Object): Ditto.
7382 (Check_Formal_Package_Instance): Skip entities that are formal objects,
7383 because they were defaulted in the formal package and no check applies
7385 (Check_Formal_Package_Instance): Extend conformance check to other
7386 discrete types beyond Integer.
7387 (Process_Default): Copy directly the unmatched formal. A generic copy
7388 has already been performed in Analyze_Formal_Package.
7389 (Analyze_Associations): If a formal subprogram has no match, check for
7390 partial parametrization before looking for a default, to prevent
7392 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
7393 not set the instantiation environment before analyzing the actuals.
7394 Fixes regression on 8515-003 with implementation of AI-133.
7395 Set_Instance_Env checks whether the generic unit is a predefined
7396 unit, in which case the instance must be analyzed with the latest Ada
7397 mode. This setting must take place after analysis of the actuals,
7398 because the actuals must be analyzed and frozen in the Ada mode extant
7399 outside of the current instantiation.
7400 (Save_Env, Restore_Env): Preserve and restore the configuration
7401 parameters so that predefined units can be compiled in the proper Ada
7403 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
7404 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
7405 and Is_Abstract_Type.
7406 (Analyze_Formal_Package): For better error recovery, Add exception
7407 handler to catch Instantion_Error, which can be raised in
7408 Analyze_Associations
7410 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7411 Bob Duff <duff@adacore.com>
7412 Gary Dismukes <dismukes@adacore.com>
7414 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
7415 prefix type is a discriminated subtype of the type of the formal.
7416 (Analyze_Allocator): Collect all coextensions regardless of the context.
7417 Whether they can be allocated statically is determined in exp_ch4.
7418 (Analyze_Selected_Component): If the prefix is a limited view and the
7419 non-limited view is available, use the non-limited one.
7420 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
7421 therefore illegal), suggest a qualified expression rather than a type
7422 conversion, because a type conversion would be illegal in this context.
7423 (Anayze_Allocator): Trace recursively all nested allocators so that all
7424 coextensions are on the corresponding list for the root. Do no mark
7425 coextensions if the root allocator is within a declaration for a stack-
7426 allocated object, because the access discriminants will be allocated on
7428 (Analyze_Call): Remove restriction on calls to limited functions for the
7429 cases of generic actuals for formal objects, defaults for formal objects
7430 and defaults for record components.
7431 (Analyze_Allocator): Before analysis, chain coextensions on the proper
7432 element list. Their expansion is delayed until the enclosing allocator
7433 is processed and its finalization list constructed.
7434 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
7435 for an operation with the given name among the primitive operations of
7436 the corresponding record type.
7437 (Analyze_Selected_Component): If the prefix is a task type that
7438 implements an interface, and there is no entry with the given name,
7439 check whether there is another primitive operation (e.g. a function)
7441 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
7442 properly the indexing of a function call written in prefix form, where
7443 the function returns an array type, and all parameters of the function
7444 except the first have defaults.
7445 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
7446 the original operands, rather than relocating them, for efficiency and
7447 to work properly when an operand is overloaded.
7448 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
7449 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
7450 (Analyze_Selected_Component): If the prefix is a private extension, only
7451 scan the visible components, not those of the full view.
7452 (Try_Primitive_Operation): If the operation is a procedure, collect all
7453 possible interpretations, as for a function, because in the presence of
7454 classwide parameters several primitive operations of the type can match
7455 the given arguments.
7457 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7458 Robert Dewar <dewar@adacore.com>
7460 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
7461 tag-indeterminate call to an abstract function, when the left-hand side
7463 (Analyze_Loop_Statement): Improve detection of infinite loops
7465 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7466 Thomas Quinot <quinot@adacore.com>
7468 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
7469 out of Analyze_Package_Declaration, because processing must be applied
7470 to package bodies as well, for deferred constants completed by pragmas.
7471 (Analyze_Package_Declaration): When the package declaration being
7472 analyzed does not require an explicit body, call Check_Completion.
7473 (May_Need_Implicit_Body): An implicit body is required when a package
7474 spec contains the declaration of a remote access-to-classwide type.
7475 (Analyze_Package_Body): If the package contains RACWs, append the
7476 pending subprogram bodies generated by exp_dist at the end of the body.
7477 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
7478 Is_Abstract_Subprogram and Is_Abstract_Type.
7479 (Preserve_Full_Attributes): The full entity list is not an attribute
7480 that must be preserved from full to partial view.
7482 * sem_dist.adb (Add_RAS_Dereference_TSS):
7483 Change primitive name to _Call so it cannot clash with any legal
7484 identifier, and be special-cased in Check_Completion.
7485 Mark the full view of the designated type for the RACW associated with
7486 a RAS as Comes_From_Source to get proper view switching when installing
7487 private declarations.
7488 Provite a placeholder nested package body along with the nested spec
7489 to have a place for Append_RACW_Bodies to generate the calling stubs
7490 and stream attributes.
7492 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7493 Robert Dewar <dewar@adacore.com>
7495 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
7496 that is a limited view, check the non-limited view if available.
7497 (Undefined): Refine error message for missing with of Text_IO
7498 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
7499 to distinguish real missing with cases.
7500 Fix format of all missing with messages
7501 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
7502 renaming as body when renamed entity is abstract.
7504 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7505 Javier Miranda <miranda@adacore.com>
7507 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
7508 predicate recursive, to handle complex expressions on literals whose
7509 spurious ambiguity comes from the abstract interpretation of some
7511 (Interface_Present_In_Ancestor): Add support to concurrent record
7513 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
7514 Is_Abstract_Subprogram and Is_Abstract_Type.
7516 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7517 Javier Miranda <miranda@adacore.com>
7519 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
7520 dereference of a local object R created as a reference to another
7521 object O, use the access level of O.
7522 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
7523 rather than local Same_Formal_Type, to check whether protected operation
7524 overrides an inherited one.
7525 (Same_Formal_Type): New predicate, used when matching signatures of
7526 overriding synchronized operations, to handle the case when a formal
7527 has a type that is a generic actual.
7528 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
7529 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
7530 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
7531 syntactic ambiguities involving indexing of function calls that return
7533 (Abstract_Interface_List): New subprogram that returns the list of
7534 abstract interfaces associated with a concurrent type or a
7535 concurrent record type.
7536 (Interface_Present_In_Parent): New subprogram used to check if a
7537 given type or some of its parents implement a given interface.
7538 (Collect_Abstract_Interfaces): Add support for concurrent types
7539 with interface types.
7540 (Has_Abstract_Interfaces): Add support for concurrent types with
7542 (Is_Parent): New subprogram that determines whether E1 is a parent
7543 of E2. For a concurrent type its parent is the first element of its
7544 list of interface types; for other types this function provides the
7545 same result than Is_Ancestor.
7546 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
7547 (Collect_Synchronized_Interfaces): Removed because the subprogram
7548 Collect_Abstract_Interfaces provides this functionality.
7549 (Collect_Abstract_Interfaces): Minor update to give support to
7550 concurrent types and thus avoid undesired code duplication.
7551 (Get_Subprogram_Entity): Handle entry calls.
7552 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
7554 (Enter_Name): Do not give -gnatwh hiding warning for record component
7555 entities, they never result in hiding.
7557 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7558 Robert Dewar <dewar@adacore.com>
7560 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
7561 to chain nested components that are allocators for access discriminants
7562 of the enclosing object.
7563 Add N_Push and N_Pop nodes
7564 New field Exception_Label added
7565 (Local_Raise_Statements): New field in N_Exception_Handler_Node
7566 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
7567 (Is_Coextension): New flag for allocators, to mark allocators that
7568 correspond to access discriminants of dynamically allocated objects.
7569 (N_Block_Statement): Document the fact that the corresponding entity
7570 can be an E_Return_Statement.
7571 (Is_Coextension): New flag for allocators.
7572 Remove all code for DSP option
7574 * sprint.ads, sprint.adb: Display basic information for class_wide
7575 subtypes. Add handling of N_Push and N_Pop nodes
7577 2007-04-06 Arnaud Charlet <charlet@adacore.com>
7579 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
7580 before propagating exception.
7582 2007-04-06 Olivier Hainque <hainque@adacore.com>
7584 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
7585 an address always within the call instruction from a return address.
7587 2007-04-06 Olivier Hainque <hainque@adacore.com>
7588 Eric Botcazou <botcazou@adacore.com>
7590 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
7591 expression with a COMPOUND_EXPR including the call instead of emitting
7592 the call directly here.
7593 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
7594 high bound is constant and the slice is empty. Tidy.
7595 (tree_transform, case N_Op_Not): Handle properly the case where the
7596 operation applies to a private type whose full view is a modular type.
7597 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
7598 Address_Clause, use the associated Expression as the GNAT tree
7599 representing the choice value to ensure the corresponding GCC tree is
7601 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
7602 instead of just the operands, as the base GCC stabilize_reference does.
7603 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
7604 requested; otherwise fail.
7605 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
7607 2007-04-06 Thomas Quinot <quinot@adacore.com>
7609 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
7610 implementation of UI_Div.
7611 (UI_Div): Reimplement as a call to UI_Div_Rem.
7612 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
7613 remainder, avoiding the cost of a multiplication and a subtraction.
7614 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
7615 provides both quotient and remainder in a single computation.
7616 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
7618 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
7619 is undefined if the given n is not inversible.
7621 2007-04-06 Olivier Hainque <hainque@adacore.com>
7623 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
7624 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
7627 2007-04-06 Eric Botcazou <botcazou@adacore.com>
7628 Olivier Hainque <hainque@adacore.com>
7630 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
7631 when updating the contents of the old pointer to an unconstrained array.
7632 (end_subprog_body): Set error_gnat_node to Empty.
7633 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
7634 (unchecked_convert): For subtype to base type conversions, require that
7635 the source be a subtype if it is an integer type.
7636 (builtin_decls): New global, vector of available builtin functions.
7637 (gnat_pushdecl): Add global builtin function declaration nodes to the
7639 (gnat_install_builtins): Adjust comments.
7640 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
7641 calling gnat_pushdecl, so that it knows when it handed a builtin
7642 function declaration node.
7643 (builtin_decl_for): Search the builtin_decls list.
7645 2007-04-06 Eric Botcazou <botcazou@adacore.com>
7647 * s-stchop-vxworks.adb:
7648 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
7650 2007-04-06 Robert Dewar <dewar@adacore.com>
7651 Arnaud Charlet <charlet@adacore.com>
7653 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
7655 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
7657 Add mention of -Sev (set initialize_scalars option from environment
7658 variable at run time) in gnatbind usage message.
7660 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
7662 * fname-uf.ads: Minor comment fix
7664 * osint.ads: Change pragma Elaborate to Elaborate_All
7666 * par-load.adb: Add documentation.
7668 * sem_cat.ads, sem_cat.adb: Minor code reorganization
7670 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
7672 * s-secsta.ads: Extra comments
7674 * s-soflin.ads: Minor comment fixes
7676 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
7678 * s-wchcon.ads: Minor comment addition
7680 * treepr.adb: Minor change in message
7681 (Print_Name,Print_Node): Make these debug printouts more robust: print
7682 "no such..." instead of crashing on bad input.
7684 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
7686 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
7687 instead of gnat_signed_or_unsigned_type.
7688 * utils.c (gnat_signed_or_unsigned_type): Remove.
7689 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
7690 * gigi.h (gnat_signed_or_unsigned_type): Remove
7692 2007-03-09 Roger Sayle <roger@eyesopen.com>
7694 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
7695 fold with the result of buildN.
7696 * decl.c (gnat_to_gnu_entity): Likewise.
7697 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
7698 * utils.c (finish_record_type, merge_sizes, max_size, convert):
7700 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
7701 nonbinary_modular_operation, build_binary_op, build_unary_op,
7702 build_cond_expr): Likewise.
7704 * utils.c (convert): Use fold_build1 when casting values to void.
7705 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
7706 fold_convert instead of convert when appropriate.
7708 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
7710 * Make-lang.in: Add install-pdf target as copied from
7711 automake v1.10 rules.
7713 2007-02-28 Andreas Schwab <schwab@suse.de>
7715 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
7716 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
7717 (doc/gnat-style.info): Likewise.
7719 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
7721 * gnat-style.texi: Standardize title page.
7722 * gnat_rm.texi: Likewise.
7723 * gnat_ugn.texi: Likewise.
7725 2007-02-25 Mark Mitchell <mark@codesourcery.com>
7727 * decl.c (annotate_value): Adjust for refactoring of tree_map
7730 2007-02-24 Mark Mitchell <mark@codesourcery.com>
7732 * decl.c (annotate_value): Adjust for refactoring of tree_map
7735 2007-02-21 Ed Schonberg <schonberg@adacore.com>
7738 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
7739 untagged derived type, add hidden components to keep discriminant
7740 layout consistent, when a given discriminant of the derived type
7741 constraints several discriminants of the parent type.
7743 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
7744 Sandra Loosemore <sandra@codesourcery.com>
7746 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
7747 build the call expression.
7748 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
7749 * utils.c (max_size) <tcc_exceptional>: Delete.
7750 <tcc_vl_exp>: New case.
7751 <tcc_expression>: Delete CALL_EXPR subcase.
7752 (build_global_cdtor): Use build_call_nary instead of build3.
7753 * utils2.c (build_call_1_expr): Likewise.
7754 (build_call_2_expr): Likewise.
7755 (build_call_0_expr): Likewise.
7756 (build_call_alloc_dealloc): Likewise.
7758 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
7760 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
7761 get_action_description_for): Replace _Unwind_Word with _uleb128_t
7762 and _Unwind_SWord with _sleb128_t.
7764 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
7766 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
7767 * decl.c: Include gt-ada-decl.h.
7768 (annotate_value_cache): New.
7769 (annotate_value): Use it instead of TREE_COMPLEXITY.
7771 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
7773 * misc.c, utils2.c: Fix comment typos.
7775 2007-01-24 Roger Sayle <roger@eyesopen.com>
7777 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
7778 TREE_CONSTANT_OVERFLOW.
7779 (allocatable_size_p, annotate_value): Likewise.
7780 * trans.c (gnat_to_gnu): Likewise.
7781 * utils.c (unchecked_convert): Likewise.
7782 * utils2.c (build_simple_component_ref): Likewise.
7784 2007-01-23 Richard Guenther <rguenther@suse.de>
7787 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
7788 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
7789 (gnatboot3): Likewise.
7790 (GNATBIND): Do not define.
7791 * Makefile.in (GNATBIND): Do not define.
7793 2007-01-08 Richard Guenther <rguenther@suse.de>
7795 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
7796 * trans.c (gnat_to_gnu): Likewise.
7798 2006-12-07 Geoffrey Keating <geoffk@apple.com>
7800 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
7801 * adaint.c: Likewise.
7803 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
7805 Merge from gimple-tuples-branch:
7806 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
7808 * ada-tree.h (lang_tree_node): Handle gimple tuples.
7809 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
7812 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
7814 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
7815 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
7818 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
7821 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
7822 if the initializer takes into account the padding.
7824 2006-11-11 Richard Guenther <rguenther@suse.de>
7826 * trans.c (maybe_stabilize_reference): Remove handling of
7827 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
7829 2006-11-05 Arnaud Charlet <charlet@adacore.com>
7832 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
7833 (To_Target_Priority): New function.
7835 2006-10-31 Robert Dewar <dewar@adacore.com>
7837 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
7838 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
7839 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
7840 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
7841 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
7842 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
7843 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
7844 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
7845 a-szbzha.adb: Minor reformatting. Fix header.
7847 * a-numaux-x86.adb: Add parentheses for use of unary minus
7848 * a-ngcefu.adb: Supply missing parentheses for unary minus
7849 * a-ngcoty.adb: Add parens for use of unary minus
7850 * a-ngelfu.adb: Add missing parens for unary minus
7851 * a-tifiio.adb: Add parentheses for uses of unary minus
7853 2006-10-31 Robert Dewar <dewar@adacore.com>
7854 Bob Duff <duff@adacore.com>
7855 Ed Schonberg <schonberg@adacore.com>
7857 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
7858 with multiplying operator.
7859 (Expected_Type_Is_Any_Real): New function to determine from the Parent
7860 pointer whether the context expects "any real type".
7861 (Resolve_Arithmetic_Op): Do not give an error on calls to the
7862 universal_fixed "*" and "/" operators when they are used in a context
7863 that expects any real type. Also set the type of the node to
7864 Universal_Real in this case, because downstream processing requires it
7865 (mainly static expression evaluation).
7866 Reword some continuation messages
7867 Add some \\ sequences to continuation messages
7868 (Resolve_Call): Refine infinite recursion case. The test has been
7869 sharpened to eliminate some false positives.
7870 Check for Current_Task usage now includes entry barrier, and is now a
7871 warning, not an error.
7872 (Resolve): If the call is ambiguous, indicate whether an interpretation
7873 is an inherited operation.
7874 (Check_Aggr): When resolving aggregates, skip associations with a box,
7875 which are priori correct, and will be replaced by an actual default
7876 expression in the course of expansion.
7877 (Resolve_Type_Conversion): Add missing support for conversion from
7878 a class-wide interface to a tagged type. Minor code cleanup.
7879 (Valid_Tagged_Converion): Add support for abstact interface type
7881 (Resolve_Selected_Component): Call Generate_Reference here rather than
7882 during analysis, and use May_Be_Lvalue to distinguish read/write.
7883 (Valid_Array_Conversion): New procedure, abstracted from
7884 Valid_Conversion, to incorporate accessibility checks for arrays of
7885 anonymous access types.
7886 (Valid_Conversion): For a conversion to a numeric type occurring in an
7887 instance or inlined body, no need to check that the operand type is
7888 numeric, since this has been checked during analysis of the template.
7889 Remove legacy test for scope name Unchecked_Conversion.
7891 * sem_res.ads: Minor reformatting
7893 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
7894 (PE_Current_Task_In_Entry_Body): New exception code
7895 (SE_Restriction_Violation): Removed, not used
7897 * a-except.ads: Update comments.
7899 * types.h, types.ads: Add definition for Validity_Check
7900 (PE_Current_Task_In_Entry_Body): New exception code
7901 (SE_Restriction_Violation): Removed, not used
7903 2006-10-31 Thomas Quinot <quinot@adacore.com>
7905 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
7908 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
7909 Jose Ruiz <ruiz@adacore.com>
7911 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
7912 part of Ada.Calendar: all subprogram raise Unimplemented.
7913 (Split_W_Offset): Temp function body, raising Unimplemented
7915 * a-calend.ads, a-calend-vms.ads:
7916 Add imported variable Invalid_TZ_Offset used to designate targets unable
7917 to support time zones.
7918 (Unimplemented): Temporary function raised by the body of new
7920 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
7921 unit provides handling of leap seconds and is used by the new Ada 2005
7922 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
7923 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
7924 version returns an extra value which is the offset to UTC.
7926 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
7927 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
7928 (Split_W_Offset): New function body.
7929 (Time_Of): When a date is close to UNIX epoch, compute the time for
7930 that date plus one day (that amount is later substracted after
7931 executing mktime) so there are no problems with time zone adjustments.
7933 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
7935 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
7936 a-catizo.ads, a-catizo.adb: New files.
7938 * impunit.adb: Add new Ada 2005 entries
7940 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
7941 Rename all occurences of "__gnat_localtime_r" to
7942 "__gnat_localtime_tzoff".
7943 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
7944 zone data and calculate the GMT offset.
7945 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
7946 Use the field "tm_gmtoff" to extract the GMT offset.
7947 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
7948 the external variable "timezone" to calculate the GMT offset.
7950 2006-10-31 Arnaud Charlet <charlet@adacore.com>
7951 Jose Ruiz <ruiz@adacore.com>
7953 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
7954 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
7955 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
7956 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
7957 System.Any_Priority to a POSIX priority on the target.
7959 * system-linux-ia64.ads:
7960 Extend range of Priority types on Linux to use the whole range made
7961 available by the system.
7963 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
7964 function maps from System.Any_Priority to a POSIX priority on the
7966 (PTHREAD_PRIO_PROTECT): Set real value.
7967 (PTHREAD_PRIO_INHERIT): Now a function.
7968 (SIGCPUFAIL): New signal.
7969 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
7970 are documented as reserved by the OS.
7972 * system-aix.ads: Use the full range of priorities provided by the
7975 * s-taprop-posix.adb: Call new function To_Target_Priority.
7976 (Set_Priority): Take into account Task_Dispatching_Policy and
7977 Priority_Specific_Dispatching pragmas when determining if Round Robin
7978 must be used for scheduling the task.
7980 * system-linux-x86_64.ads, system-linux-x86.ads,
7981 system-linux-ppc.ads: Extend range of Priority types on Linux to use
7982 the whole range made available by the system.
7984 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
7985 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
7986 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
7987 when deallocating the TCB in order to avoid potential references to
7989 (Set_Priority): Take into account Task_Dispatching_Policy and
7990 Priority_Specific_Dispatching pragmas when determining if Round Robin
7991 or FIFO within priorities must be used for scheduling the task.
7993 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
7994 the Thread field (to be used internally by the run-time system) and the
7995 kernel-level task id in the LWP field (to be used by the debugger).
7996 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
7997 instance, and propagate the current task options to the spawned task.
7998 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
7999 (Initialize): Set Round Robin dispatching when the corresponding pragma
8002 2006-10-31 Robert Dewar <dewar@adacore.com>
8004 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
8005 system-linux-hppa.ads, system-hpux-ia64.ads,
8006 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
8007 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
8008 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
8009 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
8010 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
8011 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
8012 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
8013 Default_Bit_Order) to kill constant condition warnings for references
8016 2006-10-31 Vincent Celier <celier@adacore.com>
8017 Eric Botcazou <ebotcazou@adacore.com>
8019 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
8020 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
8021 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
8022 Ext_To, when building the library file name
8024 * mlib-tgt-vxworks.adb: ditto.
8025 (Get_Target_Suffix): Add support for x86 targets.
8027 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
8029 * mlib-tgt-darwin.adb:
8030 Use Append_To, instead of Ext_To, when building the library file name
8031 (Flat_Namespace): New global variable.
8032 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
8033 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
8034 (Link_Shared_Libgcc): Delete.
8035 (Build_Dynamic_Library): Adjust for above changes.
8037 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
8039 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
8041 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
8042 (Initialize): Add type conversions required by above change.
8044 2006-10-31 Jose Ruiz <ruiz@adacore.com>
8046 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
8047 (getpid): New body for this function that uses the underlying taskIdSelf
8048 function for VxWorks 5 and VxWorks 6 in kernel mode.
8049 (unsigned_int): New type, modular to allow logical bit operations.
8050 (taskOptionsGet): New imported function.
8052 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
8053 field to be compliant with the type used by the corresponding operating
8056 2006-10-31 Pascal Obry <obry@adacore.com>
8057 Eric Botcazou <ebotcazou@adacore.com>
8058 Vincent Celier <celier@adacore.com>
8060 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
8061 ASCII version of the registry API. This is needed as the GNAT runtime
8062 is now UNICODE by default.
8064 (get_gcc_version): Do not hardcode the return value.
8065 (__gnat_file_time_name): On Windows properly set the default returned
8066 value to -1 which corresponds to Invalid_Time.
8067 (__gnat_fopen): New routine. A simple wrapper on all plateforms
8068 except on Windows where it does conversion for unicode support.
8069 (__gnat_freopen): Idem.
8070 (__gnat_locate_exec_on_path): If environment variable PATH does not
8071 exist, return a NULL pointer
8073 * adaint.h: (__gnat_fopen): Declare.
8074 (__gnat_freopen): Likewise.
8076 * mingw32.h (_tfreopen): Define this macro here for older MingW
8078 Activate the unicode support on platforms using a MingW runtime
8079 version 3.9 or newer.
8081 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
8082 This is needed for proper unicode support on Windows.
8085 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
8086 Nicolas Setton <setton@adacore.com>
8087 Olivier Hainque <hainque@adacore.com>
8088 Gary Dismukes <dismukes@adacore.com>
8090 * gigi.h: (tree_code_for_record_type): Declare.
8091 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
8092 (get_global_renaming_pointers): Rename to
8093 invalidate_global_renaming_pointers.
8094 (static_ctors): Delete.
8095 (static_dtors): Likewise.
8096 (gnat_write_global_declarations): Declare.
8097 (create_var_decl): Adjust descriptive comment to indicate that the
8098 subprogram may return a CONST_DECL node.
8099 (create_true_var_decl): Declare new function, similar to
8100 create_var_decl but forcing the creation of a VAR_DECL node.
8101 (get_global_renaming_pointers): Declare.
8102 (add_global_renaming_pointer): Likewise.
8104 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
8106 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
8107 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
8109 (gnat_to_gnu_entity): Remove From_With_Type from computation for
8111 <E_Access_Type>: Use the Non_Limited_View as the full view of the
8112 designated type if the pointer comes from a limited_with clause. Make
8113 incomplete designated type if it is in the main unit and has a freeze
8115 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
8116 Underlying_Full_View similarly. Return earlier if the full view already
8117 has an associated tree.
8118 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
8119 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
8120 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
8121 reference type built for objects with an address clause.
8122 Use create_true_var_decl with const_flag set for
8123 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
8125 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
8126 for Character and Wide_Character types. This info is read by the
8127 dwarf-2 writer, and is needed to be able to use the command "ptype
8128 character" in the debugger.
8129 (gnat_to_gnu_entity): When generating a type representing
8130 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
8131 so that debug writers can distinguish it from ordinary integers.
8132 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
8133 addition to TREE_READONLY to assert the constantness of variables for
8134 elaboration purposes.
8135 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
8136 parameters to call new Einfo function First_Formal_With_Extras.
8137 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
8138 protected type with its corresponding discriminant, to obtain a usable
8140 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
8141 for a multiple elaboration of the "equivalent" type.
8142 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
8143 into record_global_renaming_pointer.
8144 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
8145 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
8146 <E_Array_Subtype>: Likewise.
8147 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
8148 incomplete subtypes and incomplete subtypes of incomplete types visible
8149 through a limited with clause.
8150 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
8151 the base index type for the maximum size of the array only if they are
8153 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
8154 expression into a SAVE_EXPR if stabilization failed.
8156 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
8157 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
8158 by lower level compilation passes.
8159 (gnat_genericize): New function, lowering a function body to GENERIC.
8160 Turn the type of RESULT_DECL into a real reference type if the decl
8161 has been marked DECL_BY_REFERENCE, and adjust references to the latter
8163 (gnat_genericize_r): New function. Tree walking callback for
8165 (convert_from_reference, is_byref_result): New functions. Helpers for
8167 (create_type_decl): Call gnat_pushdecl before calling
8168 rest_of_decl_compilation, to make sure that field TYPE_NAME of
8169 type_decl is properly set before calling the debug information writers.
8170 (write_record_type_debug_info): The heuristics which compute the
8171 alignment of a field in a variant record might not be accurate. Add a
8172 safety test to make sure no alignment is set to a smaller value than
8173 the alignment of the field type.
8174 (make_dummy_type): Use the Non_Limited_View as the underlying type if
8175 the type comes from a limited_with clause. Do not loop on the full view.
8176 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
8177 (dummy_node_table): New global variable, moved from decl.c.
8178 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
8179 (save_gnu_tree): Use above macros.
8180 (get_gnu_tree): Likewise.
8181 (present_gnu_tree): Likewise.
8182 (init_dummy_type): New function, moved from decl.c. Use above macros.
8183 (make_dummy_type): Likewise.
8184 (tree_code_for_record_type): New function extracted from make_dummy_type
8185 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
8186 (static_ctors): Change it to a vector, make static.
8187 (static_dtors): Likewise.
8188 (end_subprog_body): Adjust for above change.
8189 (build_global_cdtor): Moved from trans.c.
8190 (gnat_write_global_declarations): Emit global constructor and
8191 destructor, and call cgraph_optimize before emitting debug info for
8192 global declarations.
8193 (global_decls): New global variable.
8194 (gnat_pushdecl): Store the global declarations in global_decls, for
8196 (gnat_write_global_declarations): Emit debug information for global
8198 (create_var_decl_1): Former create_var_decl, with an extra argument to
8199 state whether the creation of a CONST_DECL is allowed.
8200 (create_var_decl): Behavior unchanged. Now a wrapper around
8201 create_var_decl_1 allowing CONST_DECL creation.
8202 (create_true_var_decl): New function, similar to create_var_decl but
8203 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
8204 (create_field_decl): Do not always mark the field as addressable
8205 if its type is an aggregate.
8206 (global_renaming_pointers): New static variable.
8207 (add_global_renaming_pointer): New function.
8208 (get_global_renaming_pointers): Likewise.
8210 * misc.c (gnat_dwarf_name): New function.
8211 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
8212 (gnat_post_options): Add comment about structural alias analysis.
8213 (gnat_parse_file): Do not call cgraph_optimize here.
8214 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
8216 * trans.c (process_freeze_entity): Don't abort if we already have a
8217 non dummy GCC tree for a Concurrent_Record_Type, as it might
8218 legitimately have been elaborated while processing the associated
8219 Concurrent_Type prior to this explicit freeze node.
8220 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
8221 exception handler volatile if it is of variable size.
8222 (process_type): Remove bypass for types coming from a limited_with
8224 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
8225 actual, convert the corresponding gnu_actual to the real destination
8226 type when necessary.
8227 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
8228 originally TREE_READONLY but whose elaboration cannot be performed
8230 Part of fix for F504-021.
8231 (tree_transform, subprogram cases): Change loops on formal parameters to
8232 call new Einfo function First_Formal_With_Extras.
8233 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
8234 stemming from type conversion for the lhs.
8235 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
8236 number of bits per unit for components of records.
8237 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
8238 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
8239 with At_End_Proc after the SJLJ EH cleanup.
8240 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
8242 (elaborate_all_entities): Do not retest type_annotate_only.
8243 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
8244 result type of an abstract subprogram, which may be an itype associated
8245 with an anonymous access result (related to AI-318-02).
8246 (build_global_cdtor): Move to utils.c.
8247 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
8248 this choice is not a null tree nor an integer constant.
8249 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
8250 on the body of elaboration routines instead of mark_unvisited.
8251 (add_stmt): Do not mark the tree.
8252 (add_decl_expr): Tweak comment.
8253 (mark_unvisited): Delete.
8254 (unshare_save_expr): New static function.
8255 (call_to_gnu): Issue an error when making a temporary around a
8256 procedure call because of non-addressable actual parameter if the
8257 type of the formal is by_reference.
8258 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
8259 after building the elaboration routine.
8261 2006-10-31 Bob Duff <duff@adacore.com>
8263 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
8264 as finalization-started, so we can raise Program_Error on 'new'.
8266 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
8267 collection has already started.
8269 * s-finimp.ads (Collection_Finalization_Started): Added new special
8270 flag value for indicating that a collection's finalization has started.
8272 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
8273 create a task whose master has already waited for dependent tasks.
8275 2006-10-31 Robert Dewar <dewar@adacore.com>
8277 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
8279 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
8280 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
8281 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
8282 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
8283 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
8284 a-except-2005.ads: Add pragma Preelaborable_Warning
8286 2006-10-31 Robert Dewar <dewar@adacore.com>
8287 Jose Ruiz <ruiz@adacore.com>
8289 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
8291 * ali.adb (Get_Name): Properly handle scanning of wide character names
8292 encoded with brackets notation.
8293 (Known_ALI_Lines): Add S lines to this list.
8294 (Scan_ALI): Acquire S (priority specific dispatching) lines.
8295 New flag Elaborate_All_Desirable in unit table
8297 * ali.ads (Priority_Specific_Dispatching): Add this range of
8298 identifiers to be used for Priority_Specific_Dispatching table entries.
8299 (ALIs_Record): Add First_Specific_Dispatching and
8300 Last_Specific_Dispatching that point to the first and last entries
8301 respectively in the priority specific dispatching table for this unit.
8302 (Specific_Dispatching): Add this table for storing each S (priority
8303 specific dispatching) line encountered in the input ALI file.
8304 New flag Elaborate_All_Desirable in unit table
8306 * bcheck.adb: (Check_Configuration_Consistency): Add call to
8307 Check_Consistent_Dispatching_Policy.
8308 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
8309 verifying that the use of Priority_Specific_Dispatching,
8310 Task_Dispatching_Policy, and Locking_Policy is consistent across the
8313 * bindgen.adb: (Public_Version_Warning): function removed.
8314 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
8315 required information from ALI files in order to initialize the table
8316 containing the specific dispatching policy.
8317 (Gen_Adainit_Ada): Generate the variables required for priority specific
8318 dispatching entries (__gl_priority_specific_dispatching and
8319 __gl_num_specific_dispatching).
8320 (Gen_Adainit_C): Generate the variables required for priority specific
8321 dispatching entries (__gl_priority_specific_dispatching and
8322 __gl_num_specific_dispatching).
8323 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
8325 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
8326 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
8328 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
8329 a call to gnat_set_globals.
8330 Generate a string containing settings from
8331 Priority_Specific_Dispatching pragma entries.
8332 (Gen_Object_Files_Options): Do not include the runtime libraries when
8333 pragma No_Run_Time is specified.
8335 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
8336 consistency with s-intman-posix.adb.
8337 (__gnat_error_handler, case FreeBSD): Account for the fact that the
8338 handler is installed with SA_SIGINFO.
8339 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
8340 FreeBSD ZCX support, copied from Linux version.
8341 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
8342 sigfillset, and sigemptyset so the routines defined by MaRTE.
8343 (__gl_priority_specific_dispatching): Add this variable that stores the
8344 string containing priority specific dispatching policies in the
8346 (__gl_num_specific_dispatching): Add this variable that indicates the
8347 highest priority for which a priority specific dispatching pragma
8349 (__gnat_get_specific_dispatching): Add this routine that returns the
8350 priority specific dispatching policy, as set by a
8351 Priority_Specific_Dispatching pragma appearing anywhere in the current
8352 partition. The input argument is the priority number, and the result
8353 is the upper case first character of the policy name.
8354 (__gnat_set_globals): Now a dummy function.
8355 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
8356 mechargs instead of sigargs, as the latter can be retrieved from the
8357 former and sigargs is not what we want on ia64.
8358 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
8360 (__gnat_adjust_context_for_raise, ia64-vms): New function.
8361 (tasking_error): Remove unused symbol.
8362 (_abort_signal): Move this symbol to the IRIX specific part since this
8363 is the only target that uses this definition.
8364 (Check_Abort_Status): Move this symbol to the IRIX specific part since
8365 this is the only target that uses this definition.
8366 (Lock_Task): Remove unused symbol.
8367 (Unlock_Task): Remove unused symbol.
8369 * lib-writ.adb (Write_ALI): Output new S lines for
8370 Priority_Specific_Dispatching pragmas.
8371 Implement new flag BD for elaborate body desirable
8373 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
8374 (Specific_Dispatching): Add this table for storing the entries
8375 corresponding to Priority_Specific_Dispatching pragmas.
8376 Document new BD flag for elaborate body desirable
8378 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
8381 2006-10-31 Javier Miranda <miranda@adacore.com>
8383 * a-tags.ads, a-tags.adb:
8384 (Predefined_DT): New function that improves readability of the code.
8385 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
8386 Inherit_DT): Use the new function Predefined_DT to improve code
8388 (Register_Interface_Tag): Update assertion.
8389 (Set_Interface_Table): Update assertion.
8390 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
8391 determining progenitor interfaces in Tags.
8392 (Inherit_CPP_DT): New subprogram.
8394 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
8395 analysis of the thunk code.
8396 (Expand_Interface_Conversion): Handle run-time conversion of
8397 access to class wide types.
8398 (Expand_Dispatching_Call): When generating the profile for the
8399 subprogram itype for a dispatching operation, properly terminate the
8400 formal parameters chaind list (set the Next_Entity of the last formal
8402 (Collect_All_Interfaces): Removed. This routine has been moved to
8403 sem_util and renamed as Collect_All_Abstract_Interfaces.
8404 (Set_All_DT_Position): Hidden entities associated with abstract
8405 interface primitives are not taken into account in the check for
8406 3.9.3(10); this check is done with the aliased entity.
8407 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
8408 interfacing with CPP by default.
8409 (Expand_Interface_Conversion): Add missing support for static conversion
8410 from an interface to a tagged type.
8411 (Collect_All_Interfaces): Add new out formal containing the list of
8412 abstract interface types to cleanup the subprogram Make_DT.
8413 (Make_DT): Update the code to generate the table of interfaces in case
8414 of abstract interface types.
8415 (Is_Predefined_Dispatching_Alias): New function that returns true if
8416 a primitive is not a predefined dispatching primitive but it is an
8417 alias of a predefined dispatching primitive.
8418 (Make_DT): If the ancestor of the type is a CPP_Class and we are
8419 compiling under full ABI compatibility mode we avoid the generation of
8420 calls to run-time services that fill the dispatch tables because under
8421 this mode we currently inherit the dispatch tables in the IP subprogram.
8422 (Write_DT): Emit an "is null" indication for a null procedure primitive.
8423 (Expand_Interface_Conversion): Use an address as the type of the formal
8424 of the internally built function that handles the case in which the
8425 target type is an access type.
8427 2006-10-31 Robert Dewar <dewar@adacore.com>
8429 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
8431 2006-10-31 Robert Dewar <dewar@adacore.com>
8433 * bindusg.ads, bindusg.adb:
8434 Change to package and rename procedure as Display, which
8435 now ensures that it only outputs usage information once.
8437 2006-10-31 Jose Ruiz <ruiz@adacore.com>
8439 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
8442 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
8445 2006-10-31 Robert Dewar <dewar@adacore.com>
8446 Ed Schonberg <schonberg@adacore.com>
8448 * treepr.adb: Use new subtype N_Membership_Test
8450 * checks.ads, checks.adb: Add definition for Validity_Check
8451 (Range_Or_Validity_Checks_Suppressed): New function
8452 (Ensure_Valid): Test Validity_Check suppressed
8453 (Insert_Valid_Check): Test Validity_Check suppressed
8454 (Insert_Valid_Check): Preserve Do_Range_Check flag
8455 (Validity_Check_Range): New procedure
8456 (Expr_Known_Valid): Result of membership test is always valid
8457 (Selected_Range_Checks): Range checks cannot be applied to discriminants
8458 by themselves. Disabling those checks must also be done for task types,
8459 where discriminants may be used for the bounds of entry families.
8460 (Apply_Address_Clause_Check): Remove side-effects if address expression
8461 is non-static and is not the name of a declared constant.
8462 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
8463 Code cleanup and new error messages.
8464 (Enable_Range_Check): Test for some cases of suppressed checks
8465 (Generate_Index_Checks): Suppress index checks if index checks are
8466 suppressed for array object or array type.
8467 (Apply_Selected_Length_Checks): Give warning for compile-time detected
8468 length check failure, even if checks are off.
8469 (Ensure_Valid): Do not generate a check on an indexed component whose
8470 prefix is a packed boolean array.
8471 * checks.adb: (Alignment_Checks_Suppressed): New function
8472 (Apply_Address_Clause_Check): New procedure, this is a completely
8473 rewritten replacement for Apply_Alignment_Check
8474 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
8475 we request a discriminal value only in case of discriminants.
8476 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
8477 assignments where the target subtype is unconstrained and the target
8478 object is a parameter or dereference (other aliased cases are known
8479 to be unconstrained).
8481 2006-10-31 Robert Dewar <dewar@adacore.com>
8483 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
8484 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
8485 vms_conv.adb: Fix bad table increment values (much too small)
8487 * table.adb (Realloc): Make sure we get at least some new elements
8488 Defends against silly small values for table increment
8490 2006-10-31 Robert Dewar <dewar@adacore.com>
8491 Ed Schonberg <schonberg@adacore.com>
8492 Bob Duff <duff@adacore.com>
8494 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
8495 entities. Move other fields around to make this possible
8496 (Is_Derived_Type): Add missing call to Is_Type.
8497 (Extra_Formals): New function for subprograms, entries, subprogram
8499 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
8500 (First_Formal_With_Extras): New function for subprogs, entries, subp
8502 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
8503 Add node information for E_Return_Statement.
8504 (Elaborate_Body_Desirable): New flag
8505 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
8506 to be Is_Inherently_Limited_Type, because return-by-reference has
8507 no meaning in Ada 2005.
8508 (E_Return_Statement): New entity kind.
8509 (Return_Applies_To): Field of E_Return_Statement.
8510 (Is_Return_Object): New flag in object entities.
8511 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
8512 (Must_Have_Preelab_Init): New flag
8513 (Known_To_Have_Preelab_Init): New flag
8514 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
8515 (Is_Visible_Formal): New flag on entities in formal packages.
8516 (Low_Bound_Known): New flag
8517 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
8519 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
8520 output when Id is an incomplete subtype.
8522 2006-10-31 Robert Dewar <dewar@adacore.com>
8524 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
8525 Avoid abbreviation Creat
8526 (Finalize): List all sources in extended mail source if -gnatl
8528 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
8529 (Finalize): Implement new -gnatl=xxx switch to output listing to file
8530 (Set_Specific_Warning_On): New procedure
8531 (Set_Specific_Warning_Off): New procedure
8532 Add implementation of new insertion \\
8533 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
8534 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
8536 (Error_Msg_Internal): Make sure that we set Last_Killed to
8537 True when a message from another package is suppressed.
8538 Implement insertion character ~ (insert string)
8539 (First_Node): Minor adjustments to get better placement.
8542 Implement new -gnatl=xxx switch to output listing to file
8545 Implement new -gnatl=xxx switch to output listing to file
8547 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
8548 (Commands_To_Stdout): New flag
8549 Implement new -gnatl=xxx switch to output listing to file
8550 New switch Dump_Source_Text
8551 (Warn_On_Deleted_Code): New warning flag for -gnatwt
8552 Define Error_Msg_Line_Length
8553 (Warn_On_Assumed_Low_Bound): New switch
8555 * osint.ads, osint.adb
8556 (Normalize_Directory_Name): Fix bug.
8557 Implement new -gnatl=xxx switch to output listing to file
8558 (Concat): Removed, replaced by real concatenation
8559 Make use of concatenation now allowed in compiler
8560 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
8561 we find the 'lib' or 'bin' directory even when the tool has been
8562 invoked with a relative path.
8563 (Executable_Name): New function taking string parameters.
8565 * osint-c.ads, osint-c.adb:
8566 Implement new -gnatl=xxx switch to output listing to file
8568 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
8571 Implement new -gnatl=xxx switch to output listing to file
8572 Recognize new -gnatL switch
8573 (no longer keep in old warning about old style usage)
8574 Use concatenation to simplify code
8575 Recognize -gnatjnn switch
8576 (Scan_Front_End_Switches): Clean up handling of -gnatW
8577 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
8579 2006-10-31 Robert Dewar <dewar@adacore.com>
8581 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
8582 (Set_Specific_Warning_Off): New procedure
8583 (Warning_Specifically_Suppressed): New function
8584 (Validate_Specific_Warnings): New procedure
8585 (Output_Msg_Text): Complete rewrite to support -gnatjnn
8587 * err_vars.ads: Implement insertion character ~ (insert string)
8589 2006-10-31 Bob Duff <duff@adacore.com>
8590 Ed Schonberg <schonberg@adacore.com>
8592 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
8593 the parent part is a build-in-place function call, generate assignments.
8594 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
8595 are build-in-place function calls.
8596 (Replace_Self_Reference): New subsidiary of
8597 Make_OK_Assignment_Statement, to replace an access attribute that is a
8598 self-reference into an access to the appropriate component of the
8599 target object. Generalizes previous mechanism to handle self-references
8600 nested at any level.
8601 (Is_Self_Referential_Init): Remove, not needed.
8602 (Is_Self_Referential_Init): New predicate to simplify handling of self
8603 referential components in record aggregates.
8604 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
8605 check for presence of entity before checking for self-reference.
8606 (Has_Default_Init_Comps): Return True if a component association is a
8607 self-reference to the enclosing type, which can only come from a
8608 default initialization.
8609 (Make_OK_Assignment_Statement): If the expression is of the form
8610 Typ'Acc, where Acc is an access attribute, the expression comes from a
8611 default initialized self-referential component.
8612 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
8613 that has been derived from several abstract interfaces we must also
8614 initialize the tags of the secondary dispatch tables.
8616 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8617 Thomas Quinot <quinot@adacore.com>
8618 Javier Miranda <miranda@adacore.com>
8619 Robert Dewar <dewar@adacore.com>
8622 (Expand_Access_To_Protected_Op): If the context indicates that an access
8623 to a local operation may be transfered outside of the object, create an
8624 access to the wrapper operation that must be used in an external call.
8625 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
8626 target, pass the Valid attribute applied to a floating-point prefix on
8627 to the back end without expansion.
8628 (Storage_Size): Use the new run-time function Storage_Size to retrieve
8629 the allocated storage when it is specified by a per-object expression.
8630 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
8631 Nothing to do here, the attribute has been rewritten during semantic
8633 (Expand_Attribute_Reference): Handle expansion of the new Priority
8635 (Find_Fat_Info): Handle case of universal real
8636 (Expand_Access_To_Protected_Op): Fix use of access to protected
8637 subprogram from inside the body of a protected entry.
8638 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
8639 'Access and 'Unrestricted_Access, to transform the attribute reference
8641 (Is_Constrained_Aliased_View): New predicate to help determine whether a
8642 subcomponent's enclosing variable is aliased with a constrained subtype.
8643 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
8644 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
8645 an aliased prefix must be known to be constrained in order to use True
8646 for the attribute value, and now it's possible for some aliased views
8647 to be unconstrained.
8649 2006-10-31 Robert Dewar <dewar@adacore.com>
8651 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
8652 (Expand_Entity_Reference): Correct error of not handling subprogram
8653 formals in current_value processing.
8655 2006-10-31 Javier Miranda <miranda@adacore.com>
8656 Robert Dewar <dewar@adacore.com>
8657 Ed Schonberg <schonberg@adacore.com>
8658 Gary Dismukes <dismukes@adacore.com>
8660 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
8661 register in the final list objects containing class-wide interfaces;
8662 otherwise we incorrectly register the tag of the interface in the final
8664 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
8665 generate the wrapper if the parent primitive is abstract. This is
8666 required to report the correct error message.
8667 (Expand_N_Subtype_Indication): Do validity checks on range
8668 (Clean_Task_Names): If an initialization procedure includes a call to
8669 initialize a task (sub)component, indicate that the procedure will use
8670 the secondary stack.
8671 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
8672 compatibility for interfacing with CPP by default.
8673 (Expand_N_Object_Declaration): Only build an Adjust call when the
8674 object's type is a nonlimited controlled type.
8675 * exp_ch3.adb: Add with and use of Exp_Ch6.
8676 (Expand_N_Object_Declaration): Check for object initialization that is a
8677 call to build-in-place function and apply Make_Build_In_Place_Call_In_
8678 Object_Declaration to the call.
8679 (Freeze_Type): When the designated type of an RACW was not frozen at the
8680 point where the RACW was declared, validate the primitive operations
8681 with respect to E.2.2(14) when it finally is frozen.
8682 (Build_Initialization_Call,Expand_Record_Controller): Rename
8683 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
8684 return-by-reference has no meaning in Ada 2005.
8685 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
8686 to register tag of the immediate ancestor interfaces in the
8688 (Init_Secondary_Tags): Moved to the specification to allow the
8689 initialization of extension aggregates with abstract interfaces.
8690 (Build_Master_Renaming): Make public, for use by function declarations
8691 whose return type is an anonymous access type.
8692 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
8693 Insert_List_Before_And_Analyze after the generation of the specs
8694 associated with null procedures.
8695 (Expand_Tagged_Root): Update documentation in its specification.
8696 (Init_Secondary_Tags): Update documentation.
8697 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
8698 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
8699 then generate code to inherit the contents of the dispatch table
8700 directly from the ancestor.
8701 (Expand_Record_Controller): Insert controller component after tags of
8702 implemented interfaces.
8703 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
8704 create null procedure overridings when null procedures are inherited
8706 (Make_Null_Procedure_Specs): New procedure to generate null procedure
8707 declarations for overriding null primitives inherited from interfaces.
8708 (Is_Null_Interface_Procedure): New function in
8709 Make_Null_Procedure_Specs.
8710 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
8711 immediate ancestor of a tagged type is an abstract interface type we
8712 must generate the specification of the predefined primitives associated
8713 with controlled types (because the dispatch table of the ancestor is
8714 null and hence these entries cannot be inherited). This is required to
8715 elaborate well the dispatch table.
8717 2006-10-31 Javier Miranda <miranda@adacore.com>
8718 Ed Schonberg <schonberg@adacore.com>
8719 Bob Duff <duff@adacore.com>
8720 Gary Dismukes <dismukes@adacore.com>
8721 Robert Dewar <dewar@adacore.com>
8723 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
8725 (Expand_N_In): Do validity checks on range
8726 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
8727 (Expand_N_Allocator): For "new T", if the object is constrained by
8728 discriminant defaults, allocate the right amount of memory, rather than
8729 the maximum for type T.
8730 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
8731 when the allocator is initialized by a build-in-place call, since the
8732 allocator is already rewritten as a reference to the function result,
8733 and this prevents an unwanted duplication of the function call.
8734 Add with and use of Exp_Ch6.
8735 (Expand_Allocator_Expresssion): Check for an allocator whose expression
8736 is a call to build-in-place function and apply
8737 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
8738 untagged designated types).
8739 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
8740 optimization if source or target is biased.
8741 (Expand_N_Allocator): Add comments for case of an allocator within a
8742 function that returns an anonymous access type designating tasks.
8743 (Expand_N_Allocator): apply discriminant checks for access
8744 discriminants of anonymous access types (AI-402, AI-416)
8746 2006-10-31 Bob Duff <duff@adacore.com>
8747 Robert Dewar <dewar@adacore.com>
8748 Gary Dismukes <dismukes@adacore.com>
8749 Ed Schonberg <schonberg@adacore.com>
8751 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
8753 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
8754 (Expand_N_Assignment_Statement): Call
8755 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
8756 build-in-place function call. Currently, this can happen only for
8757 assignments that come from aggregates.
8758 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
8759 in order to alleviate the upward compatibility introduced by AI-318.
8760 (Expand_N_Extended_Return_Statement): Add support for handling the
8761 return object as a build-in-place result.
8762 (Expand_Non_Function_Return): Implement simple return statements nested
8763 within an extended return.
8764 (Enable_New_Return_Processing): Turn on the new processing of return
8766 (Expand_Non_Function_Return): For a return within an extended return,
8767 don't raise Program_Error, because Sem_Ch6 now gives a warning.
8768 (Expand_N_Extended_Return_Statement): Implement AI-318
8769 (Expand_Simple_Function_Return): Ditto.
8770 (Expand_N_If_Statement): Handle new -gnatwt warning
8771 (Expand_N_Case_Statement): Handle new -gnatwt warning
8772 (Expand_N_Assignment): Handle assignment to the Priority attribute of
8774 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
8775 validity checking of assignments to elementary record components.
8776 (Expand_N_Return_Statement): return Class Wide types on the secondary
8777 stack independantly of their controlled status since with HIE runtimes,
8778 class wide types are not potentially controlled anymore.
8780 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
8783 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
8784 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
8785 it expects a block, procedure, or task. The return statement will get
8786 turned into a block, and Expand_Cleanup_Actions will happen then.
8788 2006-10-31 Robert Dewar <dewar@adacore.com>
8789 Ed Schonberg <schonberg@adacore.com>
8790 Bob Duff <duff@adacore.com>
8791 Gary Dismukes <dismukes@adacore.com>
8793 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
8795 (Expand_Inlined_Call): Tagged types are by-reference types, and
8796 therefore should be replaced by a renaming declaration in the expanded
8797 body, as is done for limited types.
8798 (Expand_Call): If this is a call to a function with dispatching access
8799 result, propagate tag from context.
8800 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
8802 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
8803 build-in-place when the right-hand side of an assignment is a
8804 build-in-place function call.
8805 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
8806 of the explicit dereference of the allocator to the result subtype of
8807 the build-in-place function. This is needed to satisfy type checking
8808 in cases where the caller's return object is created by an allocator for
8809 a class-wide access type and the type named in the allocator is a
8811 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
8812 conversion of the reference to the declared object to the result subtype
8813 of the build-in-place function. This is needed to satisfy type checking
8814 in cases where the declared object has a class-wide type. Also, in the
8815 class-wide case, change the type of the object entity to the specific
8816 result subtype of the function, to avoid passing a class-wide object
8817 without explicit initialization to the back end.
8818 (Register_Interface_DT_Entry): Moved outside the body of
8819 Freeze_Subprogram because this routine is now public; it is called from
8820 Check_Dispatching_Overriding to handle late overriding of abstract
8821 interface primitives.
8822 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
8823 adding an implicit access actual on a call to a build-in-place function.
8824 (Expand_Actuals): Test for an actual parameter that is a call to a
8825 build-in-place function and apply
8826 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
8827 (Is_Build_In_Place_Function): New function to determine whether an
8828 entity is a function whose calls should be handled as build-in-place.
8829 (Is_Build_In_Place_Function_Call): New function to determine whether an
8830 expression is a function call that should handled as build-in-place.
8831 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
8832 calls to build-in-place functions as the initialization of an allocator.
8833 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
8834 handling calls to build-in-place functions in contexts that do not
8835 involve init of a separate object (for example, actuals of subprogram
8837 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
8838 handling calls to build-in-place functions as the initialization of an
8840 (Detect_Infinite_Recursion): Add explicit parameter Process to
8841 instantiation of Traverse_Body to avoid unreferenced warning.
8842 (Check_Overriding_Inherited_Interfaces): Removed.
8843 (Register_Interface_DT_Entry): Code cleanup.
8844 (Register_Predefined_DT_Entry): Code cleanup.
8845 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
8846 inlined statements if within a transient scope.
8847 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
8848 formal parameters with occurrences of actuals in inlined body, establish
8849 visibility on the proper view of the actual's subtype for the body's
8851 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
8852 compatibility mode and we have an imported CPP subprogram because
8853 for now we assume that imported CPP primitives correspond with
8854 objects whose constructor is in the CPP side (and therefore we
8855 don't need to generate code to register them in the dispatch table).
8856 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
8857 aligned selected component.
8858 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
8859 the actual of an in-mode parameter is a type conversion.
8860 (Expand_Actuals): If the call does not come from source and the actual
8861 is potentially misaligned, let gigi handle it rather than rejecting the
8862 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
8863 Class Wide types as returning by reference independantly of their
8864 controlled status since with HIE runtimes class wide types are not
8865 potentially controlled anymore.
8867 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8869 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
8870 references that are private components of the protected object.
8871 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
8872 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
8873 instantiation to deal with warnings.
8874 (Initialize_Protection): If expression for priority is non-static, use
8875 System_Priority as its expected type, in case the expression has not
8878 2006-10-31 Robert Dewar <dewar@adacore.com>
8880 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
8881 initialization of Homonym_Len.
8882 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
8883 names from fully qualified name. Fixes problem of duplicate
8884 external names differing only in the presence of such a block name.
8886 2006-10-31 Thomas Quinot <quinot@adacore.com>
8887 Pablo Oliveira <oliveira@adacore.com>
8889 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
8890 subprogram Ids, even if they are not yet assigned.
8891 (Build_Subprogram_Id): It is now this function that will take care of
8892 calling Assign_Subprogram_Ids if necessary.
8893 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
8894 should be done only once they are assigned.
8895 (Build_From_Any_Function, case of tagged types): Add missing call to
8897 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
8898 type for an RACW type.
8899 (Add_RACW_Features): When processing an RACW declaration for which the
8900 designated type is already frozen, enforce E.2.2(14) rules immediately.
8901 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
8902 special reordering of controlling formals.
8904 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
8905 associated stub type for an RACW type.
8907 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8909 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
8910 fixed-point operations in an integer context, i.e. as operands of a
8911 conversion to an integer type, indicate that result must be rounded.
8913 2006-10-31 Robert Dewar <dewar@adacore.com>
8915 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
8916 cases, pass the encoding method, since it is now required by the run
8919 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
8920 assumption that Str'First = 1.
8921 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
8922 it on to the Value_Wide_Wide_Character call.
8923 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
8924 properly handles a string of the form quote-encoded_wide_char-quote.
8926 * s-wchcnv.adb: Minor reformatting
8928 2006-10-31 Javier Miranda <miranda@adacore.com>
8930 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8931 run-time membership test to ensure that the constructed object
8932 implements the target abstract interface.
8934 2006-10-31 Robert Dewar <dewar@adacore.com>
8936 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
8937 Machine_Attribute pragma internally to implement the user pragma.
8938 Add processing for pragma Interface so that it is now completely
8939 equivalent to pragma Import.
8941 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
8942 so that it can be applied to all entities, including record components
8943 and enumeration literals.
8944 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
8945 priority ranges are correct, verify compatibility against task
8946 dispatching and locking policies, and if everything is correct an entry
8947 is added to the table containing priority specific dispatching entries
8948 for this compilation unit.
8949 (Delay_Config_Pragma_Analyze): Delay processing
8950 Priority_Specific_Dispatching pragmas because when processing the
8951 pragma we need to access run-time data, such as the range of
8952 System.Any_Priority.
8953 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
8954 Allow pragma Unreferenced as a context item
8955 Add pragma Preelaborable_Initialization
8956 (Analyze_Pragma, case Interface): Interface is extended so that it is
8957 now syntactically and semantically equivalent to Import.
8958 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
8959 insertion characters.
8960 Add handling for Pragma_Wide_Character_Encoding
8961 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
8962 never supercedes a real restriction, and that a real restriction
8963 always supercedes a warning.
8964 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
8967 2006-10-31 Bob Duff <duff@adacore.com>
8968 Ed Schonberg <schonberg@adacore.com>
8969 Robert Dewar <dewar@adacore.com>
8971 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
8972 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
8973 Is_Inherently_Limited_Type, because return-by-reference has no meaning
8975 (Find_Node_To_Be_Wrapped): Use new method of determining the result
8976 type of the function containing a return statement, because the
8977 Return_Type field was removed. We now use the Return_Applies_To field.
8979 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
8980 (Build_Task_Image_Decl): If procedure is not called from an
8981 initialization procedure, indicate that function that builds task name
8982 uses the sec. stack. Otherwise the enclosing initialization procedure
8983 will carry the indication.
8984 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
8985 N_Object_Declaration instead.
8986 (Kill_Dead_Code): New interface to implement -gnatwt warning for
8987 conditional dead code killed, and change implementation accordingly.
8988 (Insert_Actions): Add N_Return_Object_Declaration case.
8989 Correct comment to mention N_Extension_Aggregate node.
8990 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
8991 attempts to save information for global variables which cannot be
8993 (Get_Current_Value_Condition): Handle conditions the other way round
8994 (constant on left). Also handle right operand of AND and AND THEN
8995 (Set_Current_Value_Condition): Corresponding changes
8996 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
8997 (Get_Current_Value_Condition): Handle simple boolean operands
8998 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
8999 (Get_Current_Value_Condition): If the variable reference is within an
9000 if-statement, does not appear in the list of then_statments, and does
9001 not come from source, treat it as being at unknown location.
9002 (Get_Current_Value_Condition): Enhance to allow while statements to be
9003 processed as well as if statements.
9004 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
9006 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
9007 of loop. This is safe now that we fixed Kill_Current_Values.
9008 (OK_To_Do_Constant_Replacement): Check whether current scope is
9009 Standard, before examining outer scopes.
9011 2006-10-31 Vincent Celier <celier@adacore.com>
9013 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
9014 When True, apply VMS treatment to children of packages A, G, I and S.
9017 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
9019 2006-10-31 Robert Dewar <dewar@adacore.com>
9020 Ed Schonberg <schonberg@adacore.com>
9022 * freeze.adb: Add handling of Last_Assignment field
9023 (Warn_Overlay): Supply missing continuation marks in error msgs
9024 (Freeze_Entity): Add check for Preelaborable_Initialization
9026 * g-comlin.adb: Add Warnings (Off) to prevent new warning
9028 * g-expect.adb: Add Warnings (Off) to prevent new warning
9030 * lib-xref.adb: Add handling of Last_Assignment field
9031 (Generate_Reference): Centralize handling of pragma Obsolescent here
9032 (Generate_Reference): Accept an implicit reference generated for a
9033 default in an instance.
9034 (Generate_Reference): Accept a reference for a node that is not in the
9035 main unit, if it is the generic body corresponding to an subprogram
9038 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
9040 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
9042 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
9044 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
9045 use clauses, to avoid messages on packages used to qualify, and also
9046 to avoid messages from obsolescent units.
9047 (Warn_On_Useless_Assignments): Don't generate messages for imported
9048 and exported variables.
9049 (Warn_On_Useless_Assignments): New procedure
9050 (Output_Obsolescent_Entity_Warnings): New procedure
9051 (Check_Code_Statement): New procedure
9053 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
9054 Change name Is_Ada_2005 to Is_Ada_2005_Only
9055 (Last_Assignment): New field for useless assignment warning
9057 2006-10-31 Olivier Hainque <hainque@adacore.com>
9059 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
9060 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
9062 2006-10-31 Bob Duff <duff@adacore.com>
9063 Robert Dewar <dewar@adacore.com>
9064 Ed Schonberg <schonberg@adacore.com>
9066 * g-awk.adb (Default_Session, Current_Session): Compile this file in
9067 Ada 95 mode, because it violates the new rules for AI-318.
9069 * g-awk.ads: Use overloaded subprograms in every case where we used to
9070 have a default of Current_Session. This makes the code closer to be
9071 correct for both Ada 95 and 2005.
9073 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
9074 code, relying on the fact that the compiler generates a warning
9075 instead of an error in -gnatg mode.
9077 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
9078 E_Return_Statement entity kind.
9079 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
9081 * par.adb (P_Interface_Type_Definition): Addition of one formal to
9082 report an error if the reserved word abstract has been previously found.
9083 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
9085 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
9086 parenthesized range attribute usage
9087 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
9089 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
9090 in the syntax for extended_return_statement. This is not in the latest
9091 RM, but the ARG is expected to issue an AI allowing this.
9092 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
9093 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
9094 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
9095 P_Return_Statement): Parse the new syntax for extended_return_statement.
9097 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
9098 Output_End_Missing): Add error-recovery code for the new
9099 extended_return_statement syntax; that is, the new E_Return entry on
9102 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
9103 limited to nonlimited, because otherwise we violate the new Ada 2005
9104 rules about returning limited types in function Create_AST_Handler in
9107 * sem.adb (Analyze): Add cases for new node kinds
9108 N_Extended_Return_Statement and N_Return_Object_Declaration.
9110 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
9111 type is in the same category as type of context before applying check,
9112 to prevent anomalies in instantiations.
9113 (Resolve_Aggregate): Remove test for limited components in aggregates.
9114 It's unnecessary in Ada 95, because if it has limited components, then
9115 it must be limited. It's wrong in Ada 2005, because limited aggregates
9117 (Resolve_Record_Aggregate): Move check for limited types later, because
9118 OK_For_Limited_Init requires its argument to have been resolved.
9119 (Get_Value): When copying the component default expression for a
9120 defaulted association in an aggregate, use the sloc of the aggregate
9121 and not that of the original expression, to prevent spurious
9122 elaboration errors, when the expression includes function calls.
9123 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
9124 were missing. We also didn't handle qualified expressions. Now also
9125 allow function calls. Use new common routine OK_For_Limited_Init.
9126 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
9127 with space can upper case letter).
9129 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
9130 Has_Static_Discriminants flag
9131 (Record_Type_Declaration): Diagnose an attempt to declare an interface
9132 type with discriminants.
9133 (Process_Range_Expr_In_Decl): Do validity checks on range
9134 (Build_Discriminant_Constraints): Use updated form of
9135 Denotes_Discriminant.
9136 (Process_Subtype): If the subtype is a private subtype whose full view
9137 is a concurrent subtype, introduce an itype reference to prevent scope
9139 (Build_Derived_Record_Type, Collect_Interface_Primitives,
9140 Record_Type_Declaration): The functionality of the subprograms
9141 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
9142 is now performed by a single routine.
9143 (Build_Derived_Record_Type): If the type definition includes an explicit
9144 indication of limitedness, then the type must be marked as limited here
9145 to ensure that any access discriminants will not be treated as having
9146 a local anonymous access type.
9147 (Check_Abstract_Overriding): Issue a detailed error message when an
9148 abstract subprogram was not overridden due to incorrect mode of its
9150 (Analyze_Private_Extension_Declaration): Add support for the analysis of
9151 synchronized private extension declarations. Verify that the ancestor is
9152 a limited or synchronized interface or in the generic case, the ancestor
9153 is a tagged limited type or synchronized interface and all progenitors
9154 are either limited or synchronized interfaces.
9155 Derived_Type_Declaration): Check for presence of private extension when
9156 dealing with synchronized formal derived types.
9157 Process_Full_View): Enchance the check done on the usage of "limited" by
9158 testing whether the private view is synchronized.
9159 Verify that a synchronized private view is completed by a protected or
9161 (OK_For_Limited_Init_In_05): New function.
9162 (Analyze_Object_Declaration): Move check for limited types later,
9163 because OK_For_Limited_Init requires its argument to have been resolved.
9164 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
9165 in order to alleviate the upward compatibility introduced by AI-318.
9166 (Constrain_Corresponding_Record): If the constraint is for a component
9167 subtype, mark the itype as frozen, to avoid out-of-scope references to
9168 discriminants in the back-end.
9169 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
9170 this subprogram against wrong sources.
9171 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
9172 discriminant of limited type completed with a protected type, when the
9173 discriminant is used to constrain a private component of the type, and
9174 expansion is disabled.
9175 (Find_Type_Of_Object): Do not treat a return subtype that is an
9176 anonymous subtype as a local_anonymous_type, because its accessibility
9177 level is the return type of the enclosing function.
9178 (Check_Initialization): In -gnatg mode, turn the error "cannot
9179 initialize entities of limited type" into a warning.
9180 (OK_For_Limited_Init): Return true for generated nodes, since it
9181 sometimes violates the legality rules.
9182 (Make_Incomplete_Declaration): If the type for which an incomplete
9183 declaration is created happens to be the currently visible entity,
9184 preserve the homonym chain when removing it from visibility.
9185 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
9186 inherited subprograms.
9187 (Access_Definition): If this is an access to function that is the return
9188 type of an access_to_function definition, context is a type declaration
9189 and the scope of the anonymous type is the current one.
9190 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
9191 incomplete subtype to the set of private dependents of the original
9193 (Constrain_Discriminated_Type): Emit an error message whenever an
9194 incomplete subtype is being constrained.
9195 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
9196 corresponding subtype of the full view of the original incomplete type.
9197 (Check_Incomplete): Properly detect invalid usage of incomplete types
9200 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9202 * g-catiio.ads, g-catiio.adb (Value): New function.
9203 Given an input String, try and parse a valid Time value.
9205 2006-10-31 Vincent Celier <celier@adacore.com>
9207 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
9208 Integer_Address arithmetic, as in Set_Valid.
9210 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9211 Robert Dewar <dewar@adacore.com>
9213 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
9214 handling executable extension manually and duplicating code.
9216 * make.adb: Implement new -S switch
9217 (Gnatmake): Use new function Osint.Executable_Name instead
9218 of handling executable extension manually.
9220 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
9221 is specified, the executable name ends with this suffix.
9222 Take advantage of Osint.Executable_Name instead of duplicating code.
9224 * switch-m.adb: Recognize new gnatmake -S switch
9226 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
9228 (Get_Target_Parameters): Set Executable_Extension_On_Target if
9231 * makeusg.adb: Add line for gnatmake -S switch
9233 2006-10-31 Vincent Celier <celier@adacore.com>
9235 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
9236 call it with -static-libgcc, as there are some platforms, such as
9237 Darwin, where one of these two switches is compulsory to link.
9239 2006-10-31 Vincent Celier <celier@adacore.com>
9241 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
9242 instead of ADA_PROJECT_PATH, for the project path.
9243 (Gnatls): When displaying the project path directories, use host dir
9246 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
9247 names in the project path, as absolute paths may correspond to
9248 multi-valued VMS logical names.
9250 2006-10-31 Vincent Celier <celier@adacore.com>
9252 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
9254 (Locate_Regular_File): Ditto
9255 (Change_Dir): Remove, no longer used
9256 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
9257 on Windows. Get it calling Get_Current_Dir.
9258 (OpenVMS): Remove imported boolean, no longer needed.
9259 (Normalize_Pathname)[VMS]: Do not resolve directory names.
9260 (Pid_To_Integer): New function to convert a Process_Id to Integer
9262 2006-10-31 Thomas Quinot <quinot@adacore.com>
9264 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
9265 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
9267 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
9270 2006-10-31 Robert Dewar <dewar@adacore.com>
9272 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
9273 initial letter o as a zero.
9275 2006-10-31 Robert Dewar <dewar@adacore.com>
9277 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
9279 2006-10-31 Robert Dewar <dewar@adacore.com>
9281 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
9283 (Layout_Variant_Record): Retrieve the discriminants from the entity
9284 rather than from the type definition, because in the case of a full
9285 type for a private type we need to take the discriminants from the
9287 (Layout_Component_List): When applying the Max operator to variants with
9288 a nonstatic size, check whether either operand is static and scale that
9289 operand from bits to storage units before applying Max.
9290 (Layout_Type): In VMS, if a C-convention access type has no explicit
9291 size clause (and does not inherit one in the case of a derived type),
9292 then the size is reset to 32 from 64.
9294 2006-10-31 Vincent Celier <celier@adacore.com>
9296 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
9297 its file has already been loaded, according to the unit being loaded,
9298 not to the current value of Multiple_Unit_Index.
9300 2006-10-31 Thomas Quinot <quinot@adacore.com>
9301 Eric Botcazou <ebotcazou@adacore.com>
9302 Arnaud Charlet <charlet@adacore.com>
9304 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
9305 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
9307 (a-except.o): Pass it to the compiler.
9308 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
9309 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
9310 a-calend-mingw.adb version.
9312 * Makefile.rtl: Added s-dsaser.
9313 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
9314 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
9315 Ada.Dispatching.Round_Robin.
9316 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
9318 * Make-lang.in: Remove all references to gt-ada-decl.h.
9319 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
9321 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
9322 Update dependencies.
9324 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
9326 2006-10-31 Vincent Celier <celier@adacore.com>
9328 * mlib-utl.adb (Initialized): Remove, no longer used
9329 (Initialize): Remove, no longer used
9330 (Ar): If Ar_Exec is null, get the location of the archive builder and,
9331 if there is one, the archive indexer. Fail if the archive builder cannot
9333 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
9336 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9338 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
9339 Process_Body_Clauses): If the context of a body includes a use clause
9340 for P.Q then a with_clause for P in the same body is not redundant,
9341 even if the spec also has a with_clause on P.
9342 Add missing continuation mark to error msg
9343 (Build_Limited_Views): A limited view of a type is tagged if its
9344 declaration includes a record extension.
9345 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
9346 node, even if the subunit has errors. This avoids malfunction by
9347 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
9348 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
9349 generation of obsolescent messages for with statements (cannot do
9350 this too early, or we cannot implement avoiding the messages in the
9351 case of obsolescent units withing obsolescent units).
9352 (Install_Siblings): If the with_clause is on a remote descendant of
9353 an ancestor of the current compilation unit, find whether there is
9354 a sibling child unit that is immediately visible.
9355 (Remove_Private_With_Clauses): New procedure, invoked after completing
9356 the analysis of the private part of a nested package, to remove from
9357 visibility the private with_clauses of the enclosing package
9359 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
9360 now centralized in Generate_Reference.
9361 (Install_Limited_Context_Clauses): Remove superfluous error
9362 message associated with unlimited view visible through use
9363 and renamings. In addition, at the point in which the error
9364 is reported, we add the backslash to the text of the error
9365 to ensure that it is reported as a single error message.
9366 Use new // insertion for some continuation messages
9367 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
9368 to create implicit with_clause for parent unit mentioned in original
9369 limited_with_clause.
9370 (Install_Limited_With_Unit): Set entity of parent identifiers if the
9371 unit is a child unit. For ASIS queries.
9372 (Analyze_Subunit): If the subunit appears within a child unit, make all
9373 ancestor child units directly visible again.
9375 2006-10-31 Robert Dewar <dewar@adacore.com>
9377 * par-ch10.adb (P_Context_Clause): Minor error message fix
9379 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9380 Javier Miranda <miranda@adacore.com>
9382 * par-ch12.adb: Grammar update and cleanup.
9383 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
9384 support for synchronized derived type definitions.
9385 Add the new actual Abstract_Present to every call to
9386 P_Interface_Type_Definition.
9387 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
9388 a formal object declaration with an access definition or a subtype mark
9389 with a null exclusion.
9390 (P_Generic_Association): Handle association with box, and others_choice
9391 with box, to support Ada 2005 partially parametrized formal packages.
9393 2006-10-31 Robert Dewar <dewar@adacore.com>
9394 Javier Miranda <miranda@adacore.com>
9396 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
9397 (P_Type_Declaration): Remove barrier against the reserved word "limited"
9398 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
9399 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
9401 (P_Type_Declaration): Add the new actual Abstract_Present to every call
9402 to P_Interface_Type_Definition.
9403 (P_Interface_Type_Definition): Addition of one formal to report an error
9404 if the reserved word abstract has been previously found.
9405 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
9406 object renaming declaration with an access definition or subtype mark
9407 with a possible null exclusion.
9409 * par-ch9.adb: Minor error msg fix
9411 * par-load.adb: Add missing continuation mark to error msg
9413 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
9415 2006-10-31 Vincent Celier <celier@adacore.com>
9417 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
9418 unknown attribute in unknown package or in package that does not need
9420 (Parse_Package_Declaration): Do not issue warning for unknown package in
9423 2006-10-31 Vincent Celier <celier@adacore.com>
9425 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
9426 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
9429 2006-10-31 Vincent Celier <celier@adacore.com>
9431 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
9432 on VMS, change "__" to '.' before checking the name.
9433 (Record_Ada_Source): Always add the source file name in the list of
9434 of sources, even if it is not the first time, as it is for another
9436 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
9437 dot, instead of replacing only the first '_'.
9439 * prj-part.adb (Parse): Convert project file path to canonical form
9441 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
9442 extended, the project id of the project extending it is recorded in its
9443 data, even when it has already been processed as an imported project.
9445 2006-10-31 Robert Dewar <dewar@adacore.com>
9447 * repinfo.adb (List_Entities): Don't list entities from renaming
9450 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9451 Robert Dewar <dewar@adacore.com>
9453 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
9454 only a restriction warning is active for the given restriction. This is
9455 desirable because we do not want to modify code in the case where only
9457 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
9458 causes overriding of real restrictions.
9459 Take advantage of new No_Restrictions constant.
9461 * raise.h: (__gnat_set_globals): Change profile.
9463 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9465 * rtsfind.adb: Remove s-polint from comment as it exists no more.
9468 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
9469 Move all the entities in obsolete package System.PolyORB_Interface to
9470 System.Partition_Interface.
9471 (RE_Storage_Size): New function in System.Tasking.
9472 (RE_Get_Ceiling): New entity.
9473 (RE_Set_Ceiling): New entity.
9474 (RO_PE_Get_Ceiling): New entity.
9475 (RO_RE_Set_Ceiling): New entity.
9476 (Inherit_CPP_DT): New entity
9478 2006-10-31 Robert Dewar <dewar@adacore.com>
9480 * scng.adb (Scan, case of numeric literal): Better msg for identifier
9481 starting with a digit.
9483 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9484 Thomas Quinot <quinot@adacore.com>
9485 Javier Miranda <miranda@adacore.com>
9486 Gary Dismukes <dismukes@adacore.com>
9488 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
9489 properly an attempt to apply Unchecked_Access to a protected operation.
9490 (OK_Self_Reference): New subprogram to check the legality of an access
9491 attribute whose prefix is the type of an enclosing aggregate.
9492 Generalizes previous mechanism to handle attribute references nested
9493 arbitrarily deep within the aggregate.
9494 (Analyze_Access_Attribute): An access attribute whose prefix is a type
9495 can appear in an aggregate if this is a default-initialized aggregate
9496 for a self-referential type.
9497 (Resolve_Attribute, case Access): Ditto.
9498 Add support for new implementation defined attribute Stub_Type.
9499 (Eval_Attribute, case Attribute_Stub_Type): New case.
9500 (Analyze_Attribute, case Attribute_Stub_Type): New case.
9501 (Stream_Attribute_Available): Implement using new subprogram from
9502 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
9503 Has_Specified_Stream_Attribute flag.
9504 Disallow Storage_Size and Storage_Pool for access to subprogram
9505 (Resolve_Attribute, case 'Access et al): Take into account anonymous
9506 access types of return subtypes in extended return statements. Remove
9507 accessibility checks on anonymous access types when Unchecked_Access is
9509 (Analyze_Attribute): Add support for the use of 'Class to convert
9510 a class-wide interface to a tagged type.
9511 Add support for the attribute Priority.
9512 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
9513 whether the designated type is discriminated with a constrained partial
9514 view and require static matching in that case.
9515 Add local variable Des_Btyp. The Designated_Type
9516 of an access to incomplete subtype is either its non-limited view if
9517 coming from a limited with or its etype if regular incomplete subtype.
9519 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
9520 Fix predicate to identify and allow cases of (expander-generated)
9521 references to tag of designated object of a RACW.
9522 (Validate_Static_Object_Name): In Ada 2005, a formal object is
9523 non-static, and therefore cannot appear as a primary in a preelaborable
9525 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
9526 Has_Read_Write_Attributes.
9527 (Has_Read_Write_Attributes): Reimplement in termes of
9528 Has_Stream_Attribute_Definition.
9529 (Missing_Read_Write_Attributes): When checking component types in a
9530 record, unconditionally call Missing_Read_Write_Attributes recursively
9531 (remove guard checking for Is_Record_Type / Is_Access_Type).
9533 2006-10-31 Robert Dewar <dewar@adacore.com>
9535 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
9536 useless assignments here and conditionalize it on absence of exception
9538 (Analyze_Exception_Handlers): Small code reorganization of error
9539 detection code, for new handling of formal packages.
9541 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9542 Hristian Kirtchev <kirtchev@adacore.com>
9544 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
9545 that has been constant-folded, preserve information of original tree,
9547 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
9548 generated private extension declaration if the formal derived type is
9549 synchronized. Carry synchronized present over to the generated private
9551 (Validate_Derived_Type_Instance): Ensure that the actual of a
9552 synchronized formal derived type is a synchronized tagged type.
9553 (Instantiate_Formal_Package): When creating the instantiation used to
9554 validate the actual package of a formal declared without a box, check
9555 whether the formal itself depends on a prior actual.
9556 (Instantiate_Formal_Subprogram): Create new entities for the defining
9557 identifiers of the formals in the renaming declaration, for ASIS use.
9558 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
9559 a renaming declaration or a subtype declaration for an actual in an
9560 instance, capture location information of declaration in generic, for
9562 (Instantiate_Formal_Package): Add comments on needed additional tests.
9563 AI-317 (partial parametrization) is fully implemented.
9564 (Validate_Private_Type_Instance): Add check for actual which
9565 must have preelaborable initialization
9566 Use new // insertion for some continuation messages
9567 (Analyze_Formal_Object_Declaration): Change usage of Expression to
9568 Default_Expression. Add type retrieval when the declaration has an
9569 access definition. Update premature usage of incomplete type check.
9570 (Check_Access_Definition): New subsidiary routine. Check whether the
9571 current compilation version is Ada 05 and the supplied node has an
9573 (Instantiate object): Alphabetize local variables. Handle the creation
9574 of new renaming declarations with respect to the kind of definition
9575 used - either an access definition or a subtype mark. Guard against
9576 unnecessary error message in the context of anonymous access types after
9577 they have been resolved. Add check for required null exclusion in a
9578 formal object declaration.
9579 (Switch_View): A private subtype of a non-private type needs to be
9580 switched (the base type can have been switched without its private
9581 dependents because of the last branch of Check_Private_View.
9582 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
9584 (Instantiate_Type): Emit an error message whenever a class-wide type of
9585 a tagged incomplete type is used as a generic actual.
9586 (Find_Actual_Type): Extend routine to handle a component type in a child
9587 unit that is imported from a formal package in a parent.
9588 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
9589 agree on constrainedness, rather than checking against ultimate ancestor
9590 (Instantiate_Subprogram_Body): Create a cross-reference link to the
9591 generic body, for navigation purposes.
9593 2006-10-31 Robert Dewar <dewar@adacore.com>
9594 Thomas Quinot <quinot@adacore.com>
9596 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
9598 (New_Stream_Subprogram): When processing an attribute definition clause
9599 for a stream-oriented subprogram, record an entity node occurring at
9600 the point of clause to use for checking the visibility of the clause,
9601 as defined by 8.3(23) as amended by AI-195.
9602 (New_Stream_Subprogram): New procedure, factoring behaviour from both
9603 New_Stream_Function and New_Stream_Procedure.
9604 (New_Stream_Function, New_Stream_Procedure): Removed.
9605 (Analyze_Attribute_Definition_Clause, case Address): Check new
9606 Alignment_Check check
9608 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9609 Javier Miranda <miranda@adacore.com>
9610 Robert Dewar <dewar@adacore.com>
9612 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
9613 generate the same errors compiling under -gnatc.
9614 (Try_Object_Operation): If no candidate interpretation succeeds, but
9615 there is at least one primitive operation with the right name, report
9616 error in call rather than on a malformed selected component.
9617 (Analyze_Selected_Component): If the prefix is an incomplete type from
9618 a limited view, and the full view is available, use the full view to
9619 determine whether this is a prefixed call to a primitive operation.
9620 (Operator_Check): Verify that a candidate interpretation is a binary
9621 operation before checking the type of its second formal.
9622 (Analyze_Call): Add additional warnings for function call contexts not
9624 (Analyze_Allocator): Move the check for "initialization not allowed for
9625 limited types" after analyzing the expression. This is necessary,
9626 because OK_For_Limited_Init looks at the structure of the expression.
9627 Before analysis, we don't necessarily know what sort of expression it
9628 is. For example, we don't know whether F(X) is a function call or an
9629 indexed component; the former is legal in Ada 2005; the latter is not.
9630 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
9631 were missing. We also didn't handle qualified expressions. Now also
9632 allow function calls. Use new common routine OK_For_Limited_Init.
9633 (Analyze_Type_Conversion): Do not perform some legality checks in an
9634 instance, because the error message will be redundant or spurious.
9635 (Analyze_Overloaded_Selected_Component): Do not do style check when
9636 setting an entity, since we do not know it is the right entity yet.
9637 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
9638 (Analyze_Overloaded_Selected_Component): Same change
9639 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
9640 since regular incomplete subtypes are transformed into corresponding
9641 subtypes of their full views.
9642 (Complete_Object_Operation): Treat name of transformed subprogram call
9643 as coming from source, for browsing purposes.
9644 (Try_Primitive_Operation): If formal is an access parameter, compare
9645 with base type of object to determine whether it is a primitive
9647 (Operator_Check): If no interpretation of the operator matches, check
9648 whether a use clause on any candidate might make the operation legal.
9649 (Try_Class_Wide_Operation): Check whether the first parameter is an
9650 access type whose designated type is class-wide.
9652 2006-10-31 Robert Dewar <dewar@adacore.com>
9653 Ed Schonberg <schonberg@adacore.com>
9654 Gary Dismukes <dismukes@adacore.com>
9656 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
9657 warn on infinite loops.
9658 Add \\ to some continuation messages
9659 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
9660 (Process_Bounds): If the bounds are integer literals that result from
9661 constant-folding, and they carry a user-defined type, preserve that type
9662 rather than treating this as an integer range.
9663 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
9664 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
9665 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
9666 left hand side of assignment.
9667 (Analyze_Assignment): Add suport to manage assigments to the attribute
9668 priority of a protected object.
9669 (Check_Possible_Current_Value_Condition): Allow fully qualified names
9670 not just identifiers.
9671 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
9672 or AND THEN for possible tracking.
9673 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
9674 case of while loops so we can track values in the loop body.
9676 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9677 Hristian Kirtchev <kirtchev@adacore.com>
9678 Bob Duff <duff@adacore.com>
9680 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
9681 procedure cannot be a protected operation (it is a basic_declaration,
9682 not a subprogram_declaration).
9683 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
9684 Subp. Add logic for entry processing.
9685 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
9686 Determine whether an entry or subprogram of a protected or task type
9687 override an inherited primitive of an implemented interface.
9688 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
9689 Update the actual used in calls to Check_Overriding_Indicator.
9690 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
9691 generate the proper reference to the parent unit, for cross-reference.
9692 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
9694 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
9695 (Add_Extra_Formal): Revise procedure to allow passing in associated
9696 entity, scope, and name suffix, and handle setting of the new
9697 Extra_Formals field.
9698 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
9699 pass new parameters. Add support for adding the new extra access formal
9700 for functions whose calls are treated as build-in-place.
9701 (Analyze_A_Return_Statement): Correct casing in error message.
9702 Move Pop_Scope to after Analyze_Function_Return, because an extended
9703 return statement really is a full-fledged scope. Otherwise, visibility
9704 doesn't work right. Correct use of "\" for continuation messages.
9705 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
9706 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
9707 the node doesn't get properly marked as analyzed.
9708 (Analyze_Subprogram_Body): If subprogram is a function that returns
9709 an anonymous access type that denotes a task, build a Master Entity
9711 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
9712 proper usage of null exclusion in a result definition.
9713 (Process_Formals): Code cleanup and new error message.
9714 (Process_Formals): Detect incorrect application of null exclusion to
9716 (Conforming_Types): Handle conformance between [sub]types and itypes
9717 generated for entities that have null exclusions applied to them.
9718 (Maybe_Primitive_Operation): Add an additional type retrieval when the
9719 base type is an access subtype. This case arrises with null exclusions.
9720 (New_Overloaded_Entity): Do not remove the overriden entity from the
9721 homonym chain if it corresponds with an abstract interface primitive.
9722 (Process_Formals): Replace membership test agains Incomplete_Kind with a
9723 call to the synthesized predicate Is_Incomplete_Type.
9724 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
9726 (Analyze_Subprogram_Declaration): Check that abstract interface
9727 primitives are abstract or null.
9728 (Analyze_Subprogram_Specification): Remove previous check for abstract
9729 interfaces because it was not complete.
9730 (Has_Interface_Formals): Removed.
9732 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9733 Javier Miranda <miranda@adacore.com>
9735 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
9736 of Analyze_Package_Body, to create Itype references for anonymous
9737 access types created in the package declaration, whose designated types
9738 may have only a limited view.
9739 (Analyze_Package_Specification): For the private part of a nested
9740 package, install private_with_clauses of enclosing compilation unit if
9741 we are in its visible part.
9742 (Declare_Inherited_Private_Subprograms): Complete barrier
9743 to ensure that the primitive operation has an alias to some parent
9744 primitive. This is now required because, after the changes done for the
9745 implementation of abstract interfaces, the contents of the list of
9746 primitives has entities whose alias attribute references entities of
9747 such list of primitives.
9748 (Analyze_Package_Specification): Simplify code that handles parent units
9749 of instances and formal packages.
9750 (Uninstall_Declarations): Check the convention consistency among
9751 primitive overriding operations of a tagged record type.
9753 2006-10-31 Robert Dewar <dewar@adacore.com>
9754 Hristian Kirtchev <kirtchev@adacore.com>
9755 Javier Miranda <miranda@adacore.com>
9756 Ed Schonberg <schonberg@adacore.com>
9758 * sem_ch8.adb: Minor error msg rewording
9759 (Undefined): When checking for misspellings, invert arguments (to get
9760 expected and found set right)
9761 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
9762 (Analyze_Generic_Renaming): Same fix
9763 (Use_One_Package): Do not take into account the internal entities of
9764 abstract interfaces during the analysis of entities that are marked
9765 as potentially use-visible.
9766 (Find_Type): Handle the case of an attribute reference for
9767 implementation defined attribute Stub_Type (simply let the analysis of
9768 the attribute reference rewrite it).
9769 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
9770 type that appears in a Use_Type clause.
9771 (Analyze_Object_Renaming): Add support for renaming of the Priority
9773 (Find_Type): In Ada 2005, a task type can be used within its own body,
9774 when it appears in an access definition.
9775 (Analyze_Object_Renaming): Remove warning on null_exclusion.
9776 (Analyze_Object_Renaming): Introduce checks for required null exclusion
9777 in a formal object declaration or in a subtype declaration.
9778 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
9779 (Check_Null_Exclusion): New local routine to
9780 Analyze_Subprogram_Renaming. Check whether the formals and return
9781 profile of a renamed subprogram have required null exclusions when
9782 their counterparts of the renaming already impose them.
9783 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
9784 Determine whether an entity is inside a generic scope.
9785 (In_Open_Scope): First pass of documentation update.
9786 (Find_Expanded_Name): Add support for shadow entities associated with
9787 limited withed packages. This is required to handle nested packages.
9788 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
9789 that makes a renaming of a limited withed package illegal.
9791 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9792 Ed Schonberg <schonberg@adacore.com>
9794 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
9795 Check_Overriding_Indicator.
9796 (Analyze_Task_Definition): Ditto.
9797 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
9798 (Check_Overriding_Indicator): To find overridden interface operation,
9799 examine only homonyms that have an explicit subprogram declaration, not
9800 inherited operations created by an unrelated type derivation.
9801 (Check_Overriding_Indicator): When checking for the presence of "null"
9802 in a procedure, ensure that the queried node is a procedure
9804 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
9805 type when the formal is an access to variable.
9806 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
9807 (Analyze_Task_Type): Same addition
9808 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
9809 provide navigation capabilities for entries.
9811 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9812 Ed Schonberg <schonberg@adacore.com>
9813 Javier Miranda <miranda@adacore.com>
9814 Gary Dismukes <dismukes@adacore.com>
9816 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
9817 inherited from an interface ancestor by another interface in the
9818 context of an instance as 'late'.
9819 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
9820 of a call to a function that dispatches on access result.
9821 (Check_Dispatching_Operation): In case of late overriding of a primitive
9822 that covers abstract interface subprograms we register it in all the
9823 secondary dispatch tables associated with abstract interfaces.
9824 (Check_Dispatching_Call): Add check that a dispatching call is not made
9825 to a function with a controlling result of a limited type. This is a
9826 current implementation restriction.
9827 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
9828 (Check_Dispatching_Operation): Do no emit a warning if the controlling
9829 argument is an interface type that is a generic formal.
9830 (Is_Interface_Subprogram): Removed.
9831 (Check_Dispatching_Operation): If the subprogram is not a dispatching
9832 operation, check the formals to handle the case in which it is
9833 associated with an abstract interface type.
9835 2006-10-31 Robert Dewar <dewar@adacore.com>
9836 Ed Schonberg <schonberg@adacore.com>
9838 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
9839 Add new calls to this procedure during traversal
9840 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
9841 another unit if expansion is disabled.
9843 2006-10-31 Robert Dewar <dewar@adacore.com>
9845 * sem_eval.adb (Compile_Time_Compare): Make use of information from
9846 Current_Value in the conditional case, to evaluate additional
9847 comparisons at compile time.
9849 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9850 Hristian Kirtchev <kirtchev@adacore.com>
9851 Javier Miranda <miranda@adacore.com>
9853 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
9854 subprogram type to provide better diagnostics in case of ambiguity.
9855 (Covers): Handle coverage of formal and actual anonymous access types in
9856 the context of generic instantiation.
9857 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
9858 abstract interface types; this is required to handle concurrent types
9859 with discriminants and abstract interface types.
9860 (Covers): Include type coverage of both regular incomplete subtypes and
9861 incomplete subtypes of incomplete type visibles through a limited with
9864 2006-10-31 Robert Dewar <dewar@adacore.com>
9865 Hristian Kirtchev <kirtchev@adacore.com>
9866 Ed Schonberg <schonberg@adacore.com>
9868 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
9869 messages for entities in packages which are not used.
9870 (Collect_Synchronized_Interfaces): New procedure.
9871 (Overrides_Synchronized_Primitive): New function.
9872 (Denotes_Discriminant): Extend predicate to apply to task types.
9873 Add missing continuation marks in error msgs
9874 (Unqualify): New function for removing zero or more levels of
9875 qualification from an expression. There are numerous places where this
9876 ought to be used, but we currently only deal properly with zero or one
9878 (In_Instance); The analysis of the actuals in the instantiation of a
9879 child unit is not within an instantiation, even though the parent
9880 instance is on the scope stack.
9881 (Safe_To_Capture_Value): Exclude the case of variables that are
9883 (Check_Obsolescent): Removed
9884 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
9885 is an aliased view, even when rewritten as a reference to the target
9886 object in an assignment.
9887 (Get_Subprogram_Entity): New function
9888 (Known_To_Be_Assigned): New function
9889 (Type_Access_Level): Compute properly the access level of a return
9890 subtype that is an anonymous access type.
9891 (Explain_Limited_Type): Correct use of "\" for continuation messages.
9892 (Is_Transfer): The new extended_return_statement causes a transfer of
9894 (Has_Preelaborable_Initialization): New function
9895 (Has_Null_Exclusion): New function. Given a node N, determine whether it
9896 has a null exclusion depending on its Nkind.
9897 Change Is_Lvalue to May_Be_Lvalue
9898 (May_Be_Lvalue): Extensive additional code to deal with subprogram
9899 arguments (IN parameters are not Lvalues, IN OUT parameters are).
9900 (Safe_To_Capture_Value): Extend functionality so it can be used for
9901 the current value condition case.
9902 (Has_Compatible_Alignment): New function
9903 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
9904 objects to handle the Ada 2005 case, where aliasedness no longer implies
9905 that the object is constrained. In particular, for dereferenced names,
9906 the designated object must be assumed to be unconstrained.
9907 (Kill_Current_Values): Properly deal with the case where we encounter
9908 a loop in the scope chain.
9909 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
9911 (Compile_Time_Constraint_Error): Improve error message in error case
9913 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
9914 associated with entities of abstract interface primitives.
9915 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
9917 2006-10-31 Robert Dewar <dewar@adacore.com>
9919 * s-osinte-tru64.adb:
9920 Mark Asm statements Volatile to prevent warnings (seems a
9921 reasonable change anyway)
9924 * s-mastop-irix.adb: Add Volatile to Asm statements
9925 Suppresses warning, and seems appropriate in any case
9927 * s-osinte-vms.adb: Add Volatile to Asm statement
9929 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
9931 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
9933 Add call to Check_Code_Statement
9935 2006-10-31 Robert Dewar <dewar@adacore.com>
9936 Ed Schonberg <schonberg@adacore.com>
9937 Bob Duff <duff@adacore.com>
9939 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
9940 Synchronized_Present): Add Formal_Derived_Type_Definition and
9941 Private_Extension_Declaration to the list of assertions.
9942 (Is_Entry_Barrier_Function): New flag
9943 (Has_Self_Reference): New flag on aggregates, to indicate that they
9944 contain a reference to the enclosing type, inserted through a default
9946 (Next_Rep_Item): Move from Node4 to Node5.
9947 (Entity): Add this field for N_Attribute_Definition_Clause.
9948 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
9949 (N_Return_Object_Declaration): Remove this node kind. We now use
9950 N_Object_Declaration instead.
9951 (Actual_Designated_Subtype): Move to a different place to make room in
9952 N_Extended_Return_Statement.
9953 (Procedure_To_Call): Move to a different place to make room in
9954 N_Extended_Return_Statement.
9955 (Return_Type): Removed this field to make room in return statements
9957 (Return_Statement_Entity): New field in return statements, in part to
9958 replace Return_Type, and in part to support the fact that return
9959 statements are now pushed on the scope stack during semantic analysis.
9960 (Return_Object_Declarations): New field to support extended return
9962 (N_Extended_Return_Statement): New node for extended_return_statement
9964 (N_Return_Object_Declaration): New node for part of
9965 extended_return_statement nonterminal. Needed because all the necessary
9966 fields won't fit in N_Extended_Return_Statement.
9967 Generic_associations now carry the Box_Present flag, to indicate a
9968 default for an actual in a partially parametrized formal package.
9970 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
9971 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
9972 and for the new predefined dispatching policies: EDF_Across_Priorities,
9973 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
9974 Introduce new name Stub_Type for implementation defined attribute.
9975 Add pragma Preelaborable_Initialization
9976 Add entry for Priority attribute.
9977 Add Pragma_Wide_Character_Encoding
9978 (Get_Convention_Name): Given a convention id, this function returns the
9979 corresponding name id from the names table.
9981 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9982 Robert Dewar <dewar@adacore.com>
9983 Bob Duff <duff@adacore.com>
9985 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
9986 print null exclusion twice in the case of an access definition,
9987 Implement new -gnatL switch
9988 Remove N_Return_Object_Declaration. We now use
9989 N_Object_Declaration instead. Implement the case for
9990 N_Extended_Return_Statement. Alphabetize the cases.
9991 Add cases for new nodes N_Extended_Return_Statement and
9992 N_Return_Object_Declaration. The code is not yet written.
9993 Update the output for N_Formal_Object_Declaration
9994 and N_Object_Renaming_Declaration.
9995 (Write_Itype): Account for the case of a modular integer subtype whose
9996 base type is private.
9998 2006-10-31 Arnaud Charlet <charlet@adacore.com>
10000 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
10001 Remove elaboration code, now done in the binder.
10003 * s-rident.ads: Make this unit Preelaborate.
10004 (No_Restrictions): New constant used to clean up code and follow
10005 preelaborate constraints.
10008 Add System.Restrictions dependence, referenced directly from the
10009 binder generated file.
10011 2006-10-31 Gary Dismukes <dismukes@adacore.com>
10013 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
10014 True when AAMP extended floating-point is in use (48-bit). Change type
10015 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
10016 the two byte array types on AFloat. Change type of IV_Ilf overlay
10017 variable from Byte8 to ByteLF. Add appropriate initializations of
10018 floating-point overlays for AAMP cases.
10020 2006-10-31 Javier Miranda <miranda@adacore.com>
10022 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
10023 (Get_Ceiling): New subprogram that returns
10024 the ceiling priority of the protected object.
10025 (Set_Ceiling): New subprogram that sets the new ceiling priority of
10026 the protected object.
10028 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
10030 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
10032 2006-10-31 Jose Ruiz <ruiz@adacore.com>
10034 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
10035 requeuing to the same protected object to give higher priority tasks
10036 the opportunity to execute.
10038 2006-10-31 Robert Dewar <dewar@adacore.com>
10040 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
10041 add more precise check for the character sequence that follows '[' to
10042 avoid possible confusion in case if '[' is the last character of a
10044 (Scan_Wide): Always allow brackets encoding
10046 2006-10-31 Olivier Hainque <hainque@adacore.com>
10048 * s-stchop.ads: make this unit preelaborate. This is desirable in
10049 general and made mandatory by the use of this unit by s-taprop which
10050 is itself preelaborate.
10052 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
10053 Td_Events component.
10055 2006-10-31 Vincent Celier <celier@adacore.com>
10057 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
10060 2006-10-31 Vincent Celier <celier@adacore.com>
10062 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
10064 2006-10-31 Vincent Celier <celier@adacore.com>
10066 * makegpr.adb (Check_Compilation_Needed): Take into account path names
10068 (Check_Compilation_Needed): When checking a C or C++ source, do not
10069 resolve symbolic links.
10070 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
10071 When not in verbose mode and Ellipse is True, display "..." for the
10072 first argument with Display set to False.
10073 (Build_Global_Archive): Always set Display True for the first object
10074 file. Call Display_Command with Ellipse set to True.
10076 2006-10-31 Matt Heaney <heaney@adacore.com>
10078 * a-crbtgo.ads: Commented each subprogram
10080 * a-crbtgo.adb: Added reference to book from which algorithms were
10083 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
10084 indicate which child.
10085 (Generic_Conditional_Insert): changed parameter name from "Success" to
10087 (Generic_Unconditional_Insert_With_Hint): improved algorithm
10089 * a-coorse.adb (Replace_Element): changed parameter name in call to
10090 conditional insert operation.
10092 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
10094 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
10097 * a-ciorse.adb (Replace_Element): changed parameter name in call to
10098 conditional insert operation.
10100 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
10103 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
10104 instead of mode inout.
10106 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
10108 (Generic_Read): preserve existing buckets array if possible
10109 (Generic_Write): don't send buckets array length anymore
10111 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
10112 instead of mode inout.
10114 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
10115 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
10117 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
10118 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
10119 (Replace_Element): local operation is now an instantiation
10121 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
10122 check current length.
10123 (Generic_Replace_Element): new operation
10125 2006-10-31 Doug Rupp <rupp@adacore.com>
10127 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
10128 Call TBK$SYMBOLIZE without omitting parameters.
10130 2006-10-31 Vincent Celier <celier@adacore.com>
10132 * symbols-processing-vms-ia64.adb,
10133 symbols-processing-vms-alpha.adb (Process): Do not include symbols
10134 that come from generic instantiations in bodies.
10136 2006-10-31 Pat Rogers <rogers@adacore.com>
10138 * a-rttiev.ads, a-rttiev.adb:
10139 This is a significant redesign primarily for the sake of automatic
10140 timer task termination but also to fix a design flaw.
10141 Therefore we are now using an RTS lock, instead of a protected
10142 object, to provide mutual exclusion to the queue of pending events
10143 and the type Timing_Event is no longer a protected type.
10145 2006-10-31 Robert Dewar <dewar@adacore.com>
10146 Cyrille Comar <comar@adacore.com>
10147 Ben Brosgol <brosgol@adacore.com>
10149 * debug.adb: Update flags documentation
10151 * gnat_ugn.texi: Add documentation for new -gnatwq switch
10152 Clean up documentation for several other warning switches
10153 Clarify how task stack size can be specified with various
10154 versions of Windows.
10155 Add note that -gnatVo includes ranges including loops
10156 Add documentation for -gnatL switch
10157 Add note on elaboration warning for initializing variables
10158 Add documentation for new -gnatwt warning switch
10159 Document new form of pragma Warnings (On|Off, string)
10160 Add comment on use of pragma Warnings to control warnings
10161 Add documentation for -gnatjnn switch
10162 Modify section on interfacing with C for VMS 64-bit.
10163 Add doc for -gnatVe/E
10164 Add documentation of new warning flags -gnatww/-gnatwW
10165 Add warnings about address clause overlays to list of warnings
10166 (Exception Handling Control): Document that the option --RTS must be
10167 used consistently for gcc and gnatbind.
10168 Clarify that inlining is not always possible
10169 Update documentation on pragma Unchecked_Union.
10172 Add documentation for new extended version of pragma Obsolescent
10173 Add documentation for implementation defined attribute 'Stub_Type.
10174 Add note on use of Volatile in asm statements
10175 Add documentation on use of pragma Unreferenced in context clause
10176 Document new form of pragma Warnings (On|Off, pattern)
10177 Document pragma Wide_Character_Encoding
10178 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
10179 enforced if code generation is active.
10180 Add section on pragma Suppress to document GNAT specific check
10182 Clarify difference between No_Dispatching_Calls & No_Dispatch.
10183 Add documentation for pragma Restrictions (No_Elaboration_Code)
10186 Add comments on layout of subprogram local variables in the
10187 presence of nested subprograms.
10189 * ug_words: Resync.
10191 * elists.ads: Minor reformatting
10192 Node returns Node_Or_Entity_Id (doc change only)
10194 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
10196 * g-arrspl.ads (Create): Update comments.
10198 * sem.ads: Add details on the handling of the scope stack.
10200 * usage.adb: Update documentation.
10202 * validsw.ads, validsw.adb:
10203 Add definition of Validity_Check_Components and implement -gnatVe/E
10205 * vms_data.ads: Add missing VMS qualifiers.
10207 * s-addope.ads: Add documentation on overflow and divide by zero
10209 2006-10-31 Robert Dewar <dewar@adacore.com>
10210 Thomas Quinot <quinot@adacore.com>
10211 Arnaud Charlet <charlet@adacore.com>
10213 * fmap.adb: Put routines in alpha order
10215 * g-boumai.ads: Remove redundant 'in' keywords
10217 * g-cgi.adb: Minor reformatting
10219 * g-cgi.ads: Remove redundant 'in' keywords
10221 * get_targ.adb: Put routines in alpha order
10223 * prj-attr.ads: Minor reformatting
10225 * s-atacco.ads: Minor reformatting
10227 * scn.adb: Put routines in alpha order
10229 * sinput-l.adb: Minor comment fix
10231 * sinput-p.adb: Minor comment fix
10233 * s-maccod.ads: Minor reformatting
10235 * s-memory.adb: Minor reformatting
10237 * s-htable.adb: Fix typo in comment.
10239 * s-secsta.adb: Minor comment update.
10241 * s-soflin.adb: Minor reformatting
10244 Add comment about odd qualification in Storage_Offset declaration
10247 Remove unnecessary 'in' keywords for formal parameters.
10249 * treeprs.adt: Minor reformatting
10251 * urealp.adb: Put routines in alpha order
10253 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
10256 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
10258 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
10260 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
10261 workaround as on other platforms.
10263 * g-eacodu-vms.adb: Remove redundant 'in' keywords
10264 * g-expect-vms.adb: Remove redundant 'in' keywords
10266 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
10267 clear error message if the list-of-files file cannot be opened.
10269 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
10270 equality operator is always visible.
10272 * lang.opt: Woverlength-strings: New option.
10275 Update copyright, since nmake.ads and nmake.adb have changed.
10277 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
10278 (Binder_Output_Time_Stamps_Set): removed.
10279 (Old_Binder_Output_Time_Stamp): idem.
10280 (New_Binder_Output_Time_Stamp): idem.
10281 (Recording_Time_From_Last_Bind): idem.
10282 (Recording_Time_From_Last_Bind): Make constant.
10284 * output.ads, output.adb (Write_Str): Allow LF characters
10285 (Write_Spaces): New procedure
10287 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
10289 * inline.adb: Minor reformatting
10291 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
10293 * s-mastop-vms.adb: Remove redundant 'in' keywords
10295 * s-osprim-vms.adb: Remove redundant 'in' keywords
10297 * s-trafor-default.adb: Remove redundant 'in' keywords
10299 * 9drpc.adb: Remove redundant 'in' keywords
10301 * s-osinte-mingw.ads: Minor reformatting
10303 * s-inmaop-posix.adb: Minor reformatting
10305 * a-direio.ads: Remove quotes from Compile_Time_Warning message
10307 * a-exexda.adb: Minor code reorganization
10309 * a-filico.adb: Minor reformatting
10311 * a-finali.adb: Minor reformatting
10313 * a-nudira.ads: Remove quote from Compile_Time_Warning message
10315 * a-numeri.ads: Minor reformatting
10317 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
10319 * exp_pakd.ads: Fix obsolete comment
10321 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
10322 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
10323 Probably not a bug, but certainly neater and more efficient.
10325 * a-tienio.adb: Minor reformatting
10327 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
10328 Avoid assuming low bound of string is 1.
10330 * gnatbind.adb: Change Bindusg to package and rename procedure as
10331 Display, which now ensures that it only outputs usage information once.
10332 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
10334 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
10337 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
10339 (Match): Add pragma Assert to ensure that Matches'First is zero
10341 * g-regpat.ads (Match): Document that Matches lower bound must be zero
10343 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
10344 documented preconditions (also kills warnings about bad indexes).
10346 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
10348 (Build_Import_Library): Ditto;
10350 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
10352 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
10354 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
10355 lower bound of choice table is 1.
10357 * sem_case.ads (Analyze_Choices): Document that lower bound of
10360 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
10363 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
10364 and add appropriate Assert pragma to suppress warnings.
10366 * atree.h, atree.ads, atree.adb
10367 Change Elist24 to Elist25
10368 Add definitions of Field28 and Node28
10369 (Traverse_Field): Use new syntactic parent table in sinfo.
10371 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
10373 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
10375 * exp_tss.adb: Put routines in alpha order
10377 * fe.h: Remove redundant declarations.
10379 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
10381 * utils.c (builtin_function): Rename to gnat_builtin_function.
10382 Move common code to add_builtin_function.
10383 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
10384 gnat_builtin_function.
10385 * gigi.h (builtin_function): Rename to gnat_builtin_function.
10386 Change the signature.
10388 2006-10-16 Brooks Moses <bmoses@stanford.edu>
10390 * Makefile.in: Add TEXI2PDF definition.
10391 * Make-lang.in: Add "ada.pdf" target.
10393 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
10395 * decl.c, utils.c: Fix comment typos.
10396 * utils.c: Fix a typo.
10398 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
10400 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
10401 on "pure" Ada subprograms if SJLJ exceptions are used.
10402 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
10403 on the declaration node of JMPBUF_SAVE.
10404 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
10405 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
10406 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
10408 2006-08-20 Laurent GUERBY <laurent@guerby.net>
10411 g-socket.adb (Bind_Socket): Call Set_Address.
10413 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
10416 * decl.c (same_discriminant_p): New static function.
10417 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
10418 subtype and we have discriminants, fix up the COMPONENT_REFs
10419 for the discriminants to make them reference the corresponding
10420 fields of the parent subtype after it has been built.
10422 2006-09-15 Roger Sayle <roger@eyesopen.com>
10425 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
10426 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
10428 2006-09-13 Olivier Hainque <hainque@adacore.com>
10431 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
10432 of a SAVE_EXPR, just make the operand addressable/not-readonly and
10433 let the common gimplifier code make and propagate a temporary copy.
10434 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
10435 out/in-out actuals and defer setting the addressable/readonly bits
10438 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
10441 * decl.c (components_to_record): Defer emitting debug info for the
10442 record type associated with the variant until after we are sure to
10445 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
10448 * gigi.h (gnat_internal_attribute_table): Declare.
10449 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
10450 * utils.c (gnat_internal_attribute_table): New global variable.
10451 (builtin_function): Always call decl_attributes on the builtin.
10452 (handle_const_attribute): New static function.
10453 (handle_nothrow_attribute): Likewise.
10455 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
10457 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
10459 2006-06-23 Olivier Hainque <hainque@adacore.com>
10461 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
10462 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
10464 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
10465 Eric Botcazou <ebotcazou@adacore.com>
10468 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
10469 check-gnat into check-acats.
10471 2006-06-17 Karl Berry <karl@gnu.org>
10473 * gnat-style.texi (@dircategory): Use "Software development"
10474 instead of "Programming", following the Free Software Directory.
10476 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10479 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
10481 2006-06-06 Laurent GUERBY <laurent@guerby.net>
10484 mlib-utl.adb: Use Program_Name.
10486 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
10488 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
10489 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
10490 trans.c, utils.c: Fix comment typos. Follow spelling
10492 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
10495 2006-05-19 Nicolas Setton <setton@adacore.com>
10497 * misc.c (gnat_dwarf_name): New function.
10498 (LANG_HOOKS_DWARF_NAME): Define to it.
10500 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
10502 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
10503 (ada/misc.o): Likewise.
10504 (ada/utils.o): Likewise.
10506 2006-04-08 Aurelien Jarno <aurel32@debian.org>
10508 * Makefile.in: Add Ada support for GNU/kFreeBSD.
10509 * s-osinte-kfreebsd-gnu.ads: New file.
10511 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
10513 * Make-lang.in: Rename docdir to gcc_docdir.
10515 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
10517 * gigi.h (get_ada_base_type): Delete.
10518 * utils2.c (get_ada_base_type): Likewise.
10519 * trans.c (convert_with_check): Operate in the real base type.
10521 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10523 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
10525 2006-03-02 Richard Sandiford <richard@codesourcery.com>
10527 * utils.c (create_var_decl): Use have_global_bss_p when deciding
10528 whether to make the decl common.
10530 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
10532 * Make-lang.in (Ada): Remove.
10533 (.PHONY): Remove Ada
10535 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10537 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
10538 aggregate, check the interpretations of the other operand to find one
10539 that may be a boolean array.
10541 (Analyze_Selected_Component): Fix flow-of-control typo in case where
10542 the prefix is a private extension.
10544 2006-02-17 Eric Botcazou <botcazou@adacore.com>
10547 * utils2.c (find_common_type): If both input types are BLKmode and
10548 have the same constant size, keep using the first one.
10550 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
10552 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
10554 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
10556 2006-02-17 Jose Ruiz <ruiz@adacore.com>
10558 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
10559 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
10560 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
10561 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
10562 Abort_Defer/Undefer pairs to avoid the possibility of a task being
10563 aborted while owning a lock.
10565 2006-02-17 Javier Miranda <miranda@adacore.com>
10566 Robert Dewar <dewar@adacore.com>
10568 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
10569 through an access to class-wide interface we force the displacement of
10570 the pointer to the allocated object to reference the corresponding
10571 secondary dispatch table.
10572 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
10573 if Long_Shifts are supported on the target, even if 64 bit divides
10574 are not supported (configurable run time mode).
10575 (Expand_N_Type_Conversion): Do validity check if validity checks on
10576 operands are enabled.
10577 (Expand_N_Qualified_Expression): Do validity check if validity checks
10578 on operands are enabled.
10580 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10582 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
10583 must be materialized when the renamed expression is an explicit
10586 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10588 * freeze.adb (Statically_Discriminated_Components): Return false if
10589 the bounds of the type of the discriminant are not static expressions.
10591 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
10592 the bounds of the discriminant type are not static.
10594 2006-02-17 Robert Dewar <dewar@adacore.com>
10596 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
10597 then we close To if it is valid.
10599 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
10601 * init.c (facility_resignal_table): new array
10602 (__gnat_default_resignal_p): enhance default predicate to resignal if
10603 VMS condition has one of the predefined facility codes.
10605 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
10607 * Makefile.in: Use VMS64 specialized versions of several units in
10608 Interfaces.C hierarchy to be compatible with HP C default size choices.
10609 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
10611 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10613 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
10614 instantiation, the corresponding entity is the related_instance of the
10615 wrapper package created for the instance.
10617 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10619 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
10620 the current instance is nested within another instance in a child unit.
10622 2006-02-17 Javier Miranda <miranda@adacore.com>
10623 Ed Schonberg <schonberg@adacore.com>
10625 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
10626 type we cannot inherit the primitive operations; we inherit the
10627 Corresponding_Record_Type (which has the list of primitive operations).
10628 (Check_Anonymous_Access_Types): When creating anonymous access types for
10629 access components, use Rewrite in order to preserve the tree structure,
10631 (Analyze_Object_Declaration): For limited types with access
10632 discriminants with defaults initialized by an aggregate, obtain
10633 subtype from aggregate as for other mutable types.
10634 (Derived_Type_Declaration): If the derived type is a limited interface,
10635 set the corresponding flag (Is_Limited_Record is not sufficient).
10637 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10639 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
10640 to inline a function that returns an unconstrained type, the return
10641 expression must be the first variable declared in the body of the
10644 2006-02-17 Javier Miranda <miranda@adacore.com>
10646 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
10647 abstract interface type, the static analysis is not enough to know if
10648 the interface is implemented or not by the source tagged type. Hence
10649 we must pass the work to the expander to generate the required code to
10650 evaluate the conversion at run-time.
10651 (Resolve_Equality_Op): Do not apply previous
10652 transformation if expansion is disasbled, to prevent anomalies when
10653 locating global references in a generic unit.
10655 2006-02-17 Vincent Celier <celier@adacore.com>
10657 * snames.ads, snames.adb: New standard names for new project attributes:
10658 archive_builder, archive_indexer, compiler_pic_option,
10659 config_body_file_name, config_body_file_name_pattern,
10660 config_file_switches, config_file_unique, config_spec_file_name,
10661 config_spec_file_name_pattern, default_builder_switches,
10662 default_global_compiler_switches, default_language,
10663 dependency_file_kind, global_compiler_switches, include_path,
10664 include_path_file, language_kind, linker_executable_option,
10665 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
10666 roots, runtime_project.
10668 2006-02-17 Matthew Heaney <heaney@adacore.com>
10670 * a-convec.ads, a-convec.adb:
10671 (operator "&"): handle potential overflow for large index types
10672 (Insert): removed Contraint_Error when using large index types
10673 (Insert_Space): removed Constraint_Error for large index types
10674 (Length): moved constraint check from Length to Insert
10676 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
10677 as not null access.
10678 Explicit raise statements now include an exception message.
10679 (operator "&"): handle potential overflow for large index types
10680 (Insert): removed Contraint_Error when using large index types
10681 (Insert_Space): removed Constraint_Error for large index types
10682 (Length): moved constraint check from Length to Insert
10684 2006-02-17 Robert Dewar <dewar@adacore.com>
10686 * s-wchcnv.adb: Document handling of [ on output (we do not change
10687 this to ["5B"] and the new comments say why not.
10690 Add note for -gnatVo that this now includes the cases of type
10691 conversions and qualified expressions.
10692 Add comments on handling of brackets encoding for Text_IO
10694 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
10695 Thomas Quinot <quinot@adacore.com>
10696 Robert Dewar <dewar@adacore.com>
10697 Javier Miranda <miranda@adacore.com>
10699 * expander.adb: Fix typo in comment
10701 * exp_pakd.adb: Fix typo
10702 Minor comment reformatting.
10704 * g-dyntab.adb: Minor reformatting
10706 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
10707 aliased subprograms to look for the abstract interface subprogram.
10709 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
10711 * env.c (__gnat_setenv): Use size_t.
10712 (__gnat_unsetenv): Likewise.
10713 (__gnat_clearenv): Likewise.
10715 2006-02-16 Arnaud Charlet <charlet@adacore.com>
10717 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
10719 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10721 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
10722 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
10723 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
10724 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
10725 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
10726 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
10727 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
10728 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
10729 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
10732 2006-02-13 Jose Ruiz <ruiz@adacore.com>
10734 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
10735 protection against race conditions is not needed.
10736 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
10738 (Set_Specific_Handler): Add mutual exclusive access to the specific
10740 (Specific_Handler): Add mutual exclusive access for retrieving the
10743 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
10746 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
10747 Fall_Back_Handler and Specific_Handler.
10749 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
10750 termination handlers.
10751 Set two different owerflow depending on the maximal stack size.
10753 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
10754 protection against race conditions is not needed when executing the
10755 task termination handler.
10757 2006-02-13 Robert Dewar <dewar@adacore.com>
10759 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
10760 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
10761 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
10762 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
10763 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
10764 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
10765 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
10766 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
10767 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
10768 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
10769 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
10770 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
10771 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
10772 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
10773 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
10774 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
10775 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
10776 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
10777 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
10778 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
10779 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
10780 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
10781 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
10782 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
10783 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
10784 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
10785 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
10786 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
10787 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
10788 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
10789 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
10790 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
10791 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
10792 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
10795 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
10797 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
10798 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
10799 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
10800 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
10801 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
10802 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
10803 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
10804 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
10805 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
10807 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10809 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
10810 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
10811 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
10812 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
10813 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
10814 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
10815 replaced by anonymous access type.
10816 (pthread_sigmask): Now take an access sigset_t
10818 * s-osinte-hpux.ads: Ditto.
10819 (pthread_mutex_t, pthread_cond_t): Update definitions to support
10820 properly 32 and 64 bit ABIs.
10822 2006-02-13 Pascal Obry <obry@adacore.com>
10824 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
10825 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
10826 s-taprop-linux.adb, s-taprop-solaris.adb,
10827 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
10828 adjustement is already done when calling this routine.
10830 2006-02-13 Pascal Obry <obry@adacore.com>
10832 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
10833 table to take advantage of the 16 priority levels available on Windows
10834 2000 and XP. On NT4 there are only 7 priority levels, this is properly
10835 supported by this new mapping.
10837 2006-02-13 Nicolas Setton <setton@adacore.com>
10839 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
10840 (get_encoding): New subprogram. Extracts the encodings from an encoded
10843 2006-02-13 Pascal Obry <obry@adacore.com>
10844 Nicolas Roche <roche@adacore.com>
10845 Arnaud Charlet <charlet@adacore.com>
10847 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
10849 (__gnat_try_lock): Add unicode support by using a specific section on
10851 (__gnat_get_current_dir): Idem.
10852 (__gnat_open_read): Idem.
10853 (__gnat_open_rw): Idem.
10854 (__gnat_open_create): Idem.
10855 (__gnat_create_output_file): Idem.
10856 (__gnat_open_append): Idem.
10857 (__gnat_open_new): Idem.
10858 (__gnat_file_time_name): Idem.
10859 (__gnat_set_file_time_name): Idem.
10860 (__gnat_stat): Idem.
10861 (win32_no_block_spawn): Idem.
10862 (__gnat_locate_exec_on_path): Idem.
10863 (__gnat_opendir): New routine.
10864 (__gnat_closedir): Idem.
10865 (__gnat_readdir): Add new parameter length (pointer to int). Update
10866 implementation to use it and add specific Win32 code for Unicode
10868 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
10869 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
10870 (convert_addresses): Do not define this dummy routine on VMS.
10872 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
10873 runtime Unicode support will be activated.
10874 (S2WS): String to Wide-String conversion. This version just copy a
10875 string in non Unicode version.
10876 (WS2S): Wide-String to String conversion. This version just copy a
10877 string in non Unicode version.
10879 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
10880 (Open): Now import __gnat_opendir from adaint.c.
10881 (Read): Change the implementation to support unicode characters. It is
10882 not possible to use strlen() on Windows as this version supports only
10883 standard ASCII characters. So the length of the directory entry is now
10884 returned from the imported __gnat_readdir routine.
10885 Update copyright notice.
10887 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
10888 (opendir): Moved to adaint.c.
10890 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
10891 (Get_Directory): Fix wrong indexing.
10892 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
10893 __gnat_getenv from env.c
10894 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
10897 * env.h, env.c: New file.
10899 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
10900 adaint.c by __gnat_getenv from env.c
10902 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
10903 adaint.c by __gnat_getenv from env.c
10905 * Make-lang.in: Add env.o in the list of C object needed by gnat1
10907 Update dependencies.
10909 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10910 Olivier Hainque <hainque@adacore.com>
10911 Eric Botcazou <ebotcazou@adacore.com>
10913 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
10915 * gigi.h (value_factor_p): Add prototype and description, now public.
10917 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
10918 promotion for field with rep clause if the associated size was proven
10920 Expand comments describing attempts to use a packable type.
10921 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
10922 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
10923 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
10924 necessary since these are not different types and pointers may
10925 actually designate any subtype in this hierarchy.
10926 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
10927 discriminants but put them into record only if not Unchecked_Union;
10928 pass flag to components_to_record showing Unchecked_Union.
10929 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
10930 components before variants; don't set TYPE_UNCHECKED_UNION_P.
10931 (components_to_record): New argument UNCHECKED_UNION.
10932 Remove special case code for Unchecked_Union and instead use main code
10933 with small changes.
10936 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
10937 variable with the expression being built, only its inner field.
10939 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
10940 emit_sequence_entry_statements.
10941 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
10942 (establish_gnat_vms_condition_handler): Move before
10943 Subprogram_Body_to_gnu.
10944 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
10945 for a subprogram if it has a foreign convention or is exported.
10946 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
10947 substituted for a CONST_DECL.
10948 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
10949 Etype to assoc_to_constructor.
10950 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
10951 discriminants of Unchecked_Union.
10952 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
10953 don't need cluttering preprocessor directives.
10954 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
10955 condition handler as current in the compiled function.
10956 (body_with_handlers_p): New function. Tell whether a given sequence of
10957 statements node is attached to a package or subprogram body and involves
10958 exception handlers possibly nested within inner block statements.
10959 (emit_sequence_entry_statements): New function, to emit special
10960 statements on entry of sequences when necessary. Establish GNAT
10961 condition handler in the proper cases for VMS.
10962 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
10963 emit_sequence_entry_statements.
10965 * utils2.c (find_common_type): If both input types are BLKmode and
10966 have a constant size, use the smaller one.
10967 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
10970 * utils.c (value_factor_p): Make public, to allow uses from other gigi
10972 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
10973 (convert, case UNION_TYPE): Remove special treatment for unchecked
10977 (update_pointer_to): Update variants of pointer types to unconstrained
10978 arrays by attaching the list of fields of the main variant.
10980 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10981 Robert Dewar <dewar@adacore.com>
10983 * a-exexpr.adb, a-exexpr-gcc.adb
10984 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
10985 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
10986 Remove code unused for exception propagation for the compiler itself
10987 from a-except.adb and update to still share separate packages.
10989 * a-except.ads, a-except.adb: Ditto.
10990 Add comments that this version is now used only by the compiler and
10991 other basic tools. The full version that includes the Ada 2005 stuff
10992 is in separate files a-except-2005.ads/adb. The reason is that we do
10993 not want to cause bootstrap problems with compilers not recognizing
10995 Add exception reason code PE_Implicit_Return
10996 Add new exception reason code (Null Exception_Id)
10998 * a-except-2005.adb, a-except-2005.ads: New files.
11000 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
11002 * s-wchcon.adb: New file.
11004 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
11005 (traceback.o deps): Likewise.
11006 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
11007 Activate build of GMEM instrumentation library on VMS targets.
11008 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
11009 Use a-except-2005.ads/adb for all run-time library builds unless
11010 specified otherwise.
11011 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
11012 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
11013 Use s-parame.adb on all native platforms.
11014 Use s-parame-vxworks.adb on all vxworks platforms.
11015 Add env.c env.h in LIBGNAT_SRCS
11016 Add env.o in LIBGNAT_OBJS
11017 (GNATMAKE_OBJS): Remove ctrl_c.o object.
11018 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
11019 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
11020 supports VxWorks 6 RTPs.
11021 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
11022 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
11024 * types.h, types.ads (Terminate_Program): New exception
11025 Add comment on modifying multiple versions of a-except.adb when the
11026 table of exception reasons is modified.
11027 Add exception reason code PE_Implicit_Return
11028 Add new exception reason code (Null Exception_Id)
11030 * clean.adb (Initialize): Get the target parameters before checking
11031 if target is OpenVMS. Move the OpenVMS specific code here from package
11032 body elaboration code.
11034 2006-02-13 Thomas Quinot <quinot@adacore.com>
11035 Vincent Celier <celier@adacore.com>
11036 Robert Dewar <dewar@adacore.com>
11038 * ali-util.adb (Get_File_Checksum): Update to account for change in
11039 profile of Initialize_Scanner.
11041 * gprep.adb (Gnatprep): Update to account for change in profile of
11042 Initialize_Scanner.
11043 (Process_One_File): Same.
11045 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
11046 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
11047 that behaviour using the new Unit information recorded in the source
11048 files table, rather than going through all units every time.
11049 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
11050 (Get_Source_Unit): Same.
11052 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
11053 change in profile of Initialize_Scanner.
11054 (Prepare_To_Preprocess): Same.
11056 * lib.ads: Fix typo in comment (templace -> template).
11058 * prj-part.adb (Parse_Single_Project): Update to account for change in
11059 profile of Initialize_Scanner.
11061 * scn.adb (Initialize_Scanner): Account for change in profile of
11062 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
11063 Also record the association of the given Source_File_Index to the
11064 corresponding Unit_Number_Type.
11066 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
11068 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
11069 Remove Unit formal for generic scanner: this formal
11070 is only relevant to Scn (the scanner instance used to parse Ada source
11071 files), not to other instances. Update comment accordingly.
11072 (Scan): Use new function Snames.Is_Keyword_Name.
11074 * sinfo-cn.adb: Fix typo in comment.
11076 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
11079 * sinput.ads (Source_File_Record): New component Unit, used to capture
11080 the unit identifier (if any) associated to a source file.
11082 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
11083 Unit in Source_File_Record.
11085 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
11086 in profile of Initialize_Scanner.
11088 * scans.adb (Initialize_Ada_Keywords): New procedure
11090 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
11091 Ada keywords in the Namet table, without the need to call
11092 Initialize_Scanner.
11094 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
11095 (Is_Keyword_Name): New function
11097 * snames.ads: Add subtype Configuration_Pragma_Names
11098 Add pragma Ada_2005 (synonym for Ada_05)
11099 (Is_Keyword_Name): New function
11101 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
11103 2006-02-13 Arnaud Charlet <charlet@adacore.com>
11105 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
11108 * a-stwima.adb (To_Set): Add extra check when N = 0.
11110 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
11112 2006-02-13 Arnaud Charlet <charlet@adacore.com>
11114 * s-parame-mingw.adb, s-parame-linux.adb,
11115 s-parame-solaris.adb: Removed, replaced by s-parame.adb
11117 * s-parame-vxworks.ads: Fix typo.
11119 * s-parame-vxworks.adb: New file.
11121 * s-parame.adb: Version now used by all native platforms.
11122 (Default_Stack_Size): Use 2 megs for default stack size and use
11123 __gl_default_stack_size when available.
11124 (Minimum_Stack_Size): Use 12K.
11126 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
11127 (Create_Task): Refine implementation taking advantage of the XP stack
11128 size support. On XP, we now create the thread using the flag
11129 STACK_SIZE_PARAM_IS_A_RESERVATION.
11131 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
11133 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
11134 XP and 0 on older Windows versions.
11136 * interfac-vms.ads: Removed, no longer used.
11138 2006-02-13 Matthew Heaney <heaney@adacore.com>
11140 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
11141 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
11142 a-cohase.adb: All explicit raise statements now include an exception
11145 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
11146 (Update_Element_Preserving_Key): renamed op to just Update_Element.
11147 Explicit raise statements now include an exception message
11149 * a-cihase.ads, a-cohase.ads: Removed comment.
11151 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
11152 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
11153 a-szbzha.adb, a-szfzha.ads: New files.
11155 2006-02-13 Matthew Heaney <heaney@adacore.com>
11157 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
11160 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
11162 * lang.opt: Wvariadic-macros: New option.
11163 Wold-style-definition: Likewise.
11164 Wmissing-format-attribute: Likewise.
11166 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
11167 -Wold-style-definition and -Wmissing-format-attribute.
11169 2006-02-13 Robert Dewar <dewar@adacore.com>
11171 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
11173 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
11175 2006-02-13 Nicolas Roche <roche@adacore.com>
11177 * a-envvar.adb, a-envvar.ads: New files.
11179 2006-02-13 Douglas Rupp <rupp@adacore.com>
11181 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
11183 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
11185 2006-02-13 Pat Rogers <rogers@adacore.com>
11187 * a-rttiev.adb, a-rttiev.ads: New files.
11189 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
11191 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
11192 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
11194 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
11196 2006-02-13 Robert Dewar <dewar@adacore.com>
11198 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
11199 sem_case.adb: Minor code reorganization (not Present should be No)
11201 2006-02-13 Geert Bosch <bosch@adacore.com>
11202 Gary Dismukes <dismukes@adacore.com>
11204 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
11205 0, since the lower bound of the actual string may be greater than one.
11208 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
11209 layout is requested.
11211 2006-02-13 Vincent Celier <celier@adacore.com>
11213 * back_end.adb (Scan_Compiler_Arguments): Check if
11214 Search_Directory_Present is True and, if it is, add the argument in
11215 the source search directory path.
11217 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
11218 Search_Directory_Present to True.
11220 2006-02-13 Joel Brobecker <brobecke@adacore.com>
11222 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
11223 volatile, to tell the compiler to preserve this variable at any level
11225 (Gen_Versions_Ada): Temporarily work around codegen bug.
11227 2006-02-13 Vincent Celier <celier@adacore.com>
11229 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
11230 gcc to link with option -shared-libgcc.
11231 (Gnatlink): Remove duplicate switches -shared-libgcc
11233 2006-02-13 Robert Dewar <dewar@adacore.com>
11235 * gnatvsn.ads (Current_Year): New constant, used to easily update
11236 copyright on all GNAT tools.
11238 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
11241 2006-02-13 Robert Dewar <dewar@adacore.com>
11243 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
11244 after hyphen (small aesthetic change useful for a range of numbers
11246 Suppress range checks for a couple of assignments which otherwise
11247 cause validity checks with validity checking turned on.
11249 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
11250 Improvement in error message for object.
11251 (Rep_Item_Too_Late): Remove '!' in warning message.
11253 2006-02-13 Robert Dewar <dewar@adacore.com>
11254 Eric Botcazou <ebotcazou@adacore.com>
11256 * err_vars.ads: Suppress range checks for a couple of assignments
11257 which otherwise cause validity checks with validity checking turned on.
11260 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
11261 Make message unconditional if it is a warning.
11262 (Error_Msg_NEL): Always output warning messages.
11263 Suppress range checks for a couple of assignments which otherwise
11264 cause validity checks with validity checking turned on.
11266 * errout.ads (Message Insertion Characters): Document that '!' is
11267 implied by '?' in error messages.
11269 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
11270 (Gnat1drv): Use a goto to end of main subprogram instead of
11271 Exit_Program (E_Success) so that finalization can occur normally.
11273 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
11275 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
11278 2006-02-13 Vincent Celier <celier@adacore.com>
11280 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
11281 Unchecked_Conversion functions.
11282 (Modification_Time): Use direct conversion of OS_Time to Calendar time
11283 when OpenVMS returns False.
11285 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
11286 a-dirval.adb (OpenVMS): New Boolean function
11288 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11289 Thomas Quinot <quinot@adacore.com>
11291 * checks.adb (Build_Discriminant_Checks): If the expression being
11292 checks is an aggregate retrieve the values of its discriminants to
11293 generate the check, rather than creating a temporary and a reference
11295 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
11296 (Install_Null_Excluding_Check): Ditto
11297 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
11298 not for the renamed object, so that the actual itype is attached in the
11301 2006-02-13 Robert Dewar <dewar@adacore.com>
11302 Vincent Celier <celier@adacore.com>
11304 * debug.adb: Eliminate numeric switches for binder/gnatmake
11306 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
11307 switches for the compiler.
11308 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
11309 (Scan_Make_Switches): When failing with an illegal switch, output an
11310 error message with the full switch.
11311 Eliminate numeric switches for binder/gnatmake
11313 * switch.ads, switch.adb (Bad_Switch): New procedure
11315 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
11316 Remove 0-9 as debug flag character possibilities
11317 -d is now controlling the primary stack size when its value is a
11318 positive. Also add checks against invalid values, and support for kb,
11319 mb. Ditto for -D switch.
11321 2006-02-13 Robert Dewar <dewar@adacore.com>
11322 Serguei Rybin <rybin@adacore.com>
11324 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
11325 save/restore routines.
11326 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11327 were not always properly handled previously.
11328 Since we are changing the tree format anyway, also get rid of the
11329 junk obsolete Immediate_Errors flag.
11330 (Tree_Read): Change the way of reading Tree_Version_String - now we
11331 read the version string from the tree even if its length is not the
11332 same as the length of the version string computed from Gnatvsn.
11333 (Search_Directory_Present): New Boolean flag for the compiler.
11334 Define Tree_Version_String as a dynamic string.
11335 (Default_Stack_Size): new variable, used to handle switch -d.
11338 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
11339 only for main unit.
11340 Add pragma Ada_2005 (synonym for Ada_05)
11341 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11342 were not always properly handled previously.
11344 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
11345 explicit Ada_95 to Ada_2005.
11347 2006-02-13 Javier Miranda <miranda@adacore.com>
11348 Robert Dewar <dewar@adacore.com>
11349 Ed Schonberg <schonberg@adacore.com>
11351 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
11352 against errors in the source program: a private types for which the
11353 corresponding full type declaration is missing and pragma CPP_Virtual
11355 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
11356 (Is_Known_Null): New flag
11357 (Has_Pragma_Pure): New flag
11358 (No_Return): Present in all entities, set only for procedures
11359 (Is_Limited_Type): A type whose ancestor is an interface is limited if
11360 explicitly declared limited.
11361 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
11362 entities. Only used for component marked Is_Tag. If present it stores
11363 the Offset_To_Top function used to provide this value in tagged types
11364 whose ancestor has discriminants.
11366 * exp_ch2.adb: Update status of new Is_Known_Null flag
11368 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
11370 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
11371 the categorization sense if Is_Pure was set by pragma Pure_Function.
11373 2006-02-13 Quentin Ochem <ochem@adacore.com>
11374 Olivier Hainque <hainque@adacore.com>
11376 * bindusg.adb: Updated documentation for -d and -D switches.
11378 * raise.h (__gnat_set_globals): added new parameter for
11379 Default_Stack_Size.
11381 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
11382 (__gnat_handle_vms_condition): Adjust context before raise.
11383 (__gnat_install_handler): Restore the global vector setup for GCC
11384 versions before 3.4, as the frame based circtuitry is not available
11386 (__gnat_set_globals): added a parameter default_stack_size
11387 (__gl_default_stack_size): new variable.
11389 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11391 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
11392 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
11393 does not exist in the Ada RM.
11394 (Compatible_Int_Bounds): Determine whether two integer range bounds
11395 are of equal length and have the same start and end values.
11396 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
11397 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
11398 aggregate when it is part of an object declaration.
11399 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
11400 constrains discriminants of its parent, add explicitly the discriminant
11401 constraints of the ancestor by retrieving them from the
11402 stored_constraint of the parent.
11404 2006-02-13 Robert Dewar <dewar@adacore.com>
11406 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
11407 attribute Mechanism_Code is applied to renamed subprogram, modify
11408 prefix to point to base subprogram.
11409 Max/Min attributes now violate Restriction No_Implicit_Conditionals
11411 * sinfo.ads: Document that Mechanism_Code cannot be applied to
11412 renamed subprograms so that the front-end must replace the prefix
11415 2006-02-13 Javier Miranda <miranda@adacore.com>
11416 Gary Dismukes <dismukes@adacore.com>
11418 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
11419 availability of RE_Interface_Tag.
11420 (Build_Initialization_Call): Fix wrong access to the discriminant value.
11421 (Freeze_Record_Type): Do not generate the tables associated with
11422 timed and conditional dispatching calls through synchronized
11423 interfaces if compiling under No_Dispatching_Calls restriction.
11424 When compiling for Ada 2005, for a nonabstract
11425 type with a null extension, call Make_Controlling_Function_Wrappers
11426 and insert the wrapper function declarations and bodies (the latter
11427 being appended as freeze actions).
11428 (Predefined_Primitive_Bodies): Do not generate the bodies of the
11429 predefined primitives associated with timed and conditional
11430 dispatching calls through synchronized interfaces if we are
11431 compiling under No_Dispatching_Calls.
11432 (Build_Init_Procedure): Use RTE_Available to check if a run-time
11433 service is available before generating a call.
11434 (Make_Controlling_Function_Wrappers): New procedure.
11435 (Expand_N_Full_Type_Declaration): Create a class-wide master for
11436 access-to-limited-interfaces because they can be used to reference
11437 tasks that implement such limited interface.
11438 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
11439 procedure spec and body of the Offset_To_Top function that is generated
11440 when the parent of a type with discriminants has secondary dispatch
11442 (Init_Secondary_Tags): Handle the case in which the parent of the type
11443 containing secondary dispatch tables has discriminants to generate the
11444 correct arguments to call Set_Offset_To_Top.
11445 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
11447 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
11448 Add Wide_[Wide_]Expanded_Name.
11449 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
11450 the same functionality of Get_Prim_Op_Address but applied to predefined
11451 primitive operations because the pointers to the predefined primitives
11452 are now saved in a separate table.
11453 (Parent_Size): Modified to get access to the separate table of primitive
11454 operations or the parent type.
11455 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
11456 functionality of Set_Prim_Op_Address but applied to predefined primitive
11458 (Set_Signature): New subprogram used to store the signature of a DT.
11459 (Displace): If the Offset_To_Top value is not static then call the
11460 function generated by the expander to get such value; otherwise use
11461 the value stored in the table of interfaces.
11462 (Offset_To_Top): The type of the actual has been changed to Address to
11463 give the correct support to tagged types with discriminants. In this
11464 case this value is stored just immediately after the tag field.
11465 (Set_Offset_To_Top): Two new formals have been added to indicate if the
11466 offset_to_top value is static and hence pass this value to the run-time
11467 to store it in the table of interfaces, or else if this value is dynamic
11468 and then pass to the run-time the address of a function that is
11469 generated by the expander to provide this value for each object of the
11472 * rtsfind.ads (Default_Prin_Op_Count): Removed.
11473 (Default_Prim_Op_Count): New entity
11474 (Get_Predefined_Prim_Op_Address): New entity
11475 (Set_Predefined_Prim_Op_Address): New entity
11476 (RE_Set_Signature): New entity
11478 2006-02-13 Thomas Quinot <quinot@adacore.com>
11479 Ed Schonberg <schonberg@adacore.com>
11481 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
11482 Make_Adjust_Call done for a newly-allocated object.
11484 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
11485 in a subprogram are wrapped in a cleanup block, indicate that the
11486 subprogram contains an inner block with an exception handler.
11487 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
11488 Adjust call is for a newly-allocated object. In that case we must not
11489 assume that the finalization list chain pointers are correct (since they
11490 come from a bit-for-bit copy of the original object's pointers) so if
11491 the attach level would otherwise be zero (no change), we set it to 4
11492 instead to cause the pointers to be reset to null.
11494 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
11495 reset chain pointers to null.
11497 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11499 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
11500 string, and the context requires a loop for the assignment (e.g.
11501 because the left-hand side is packed), generate a unique name for the
11502 temporary that holds the string, to prevent spurious name clashes.
11504 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11505 Javier Miranda <miranda@adacore.com>
11506 Robert Dewar <dewar@adacore.com>
11507 Gary Dismukes <dismukes@adacore.com>
11509 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
11510 return unconstrained arrays.
11512 (Expand_Call): An indirect call through an access parameter of a
11513 protected operation is not a protected call.
11514 Add circuit to raise CE in Ada 2005 mode following call
11515 to Raise_Exception.
11516 (Register_DT_Entry): Do nothing if
11517 the run-time does not give support to abstract interfaces.
11518 (Freeze_Subprogram): In case of dispatching operations, do not generate
11519 code to register the operation in the dispatch table if the source
11520 is compiled with No_Dispatching_Calls.
11521 (Register_Predefined_DT_Entry): Generate code that calls the new
11522 run-time subprogram Set_Predefined_Prim_Op_Address instead of
11523 Set_Prim_Op_Address.
11525 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
11526 on array assignments if the right-hand side is a function call that has
11527 been inlined. Check is performed on the assignment in the block.
11528 (Process_Bounds): If bounds and range are overloaded, apply preference
11529 rule for root operations to disambiguate, and diagnose true ambiguity.
11530 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
11531 a tag-indeterminate right-hand side even when Expander_Active is True.
11532 Needed to ensure that dispatching calls to T'Input are allowed and
11533 get the tag of the target class-wide object.
11535 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
11536 an inherited primitive operation that already overrides several
11537 abstract interface primitives. For transitivity, the new entity must
11538 also override all the abstract interface primitives covered by the
11539 inherited overriden primitive.
11540 Emit warning if new entity differs from homograph in same scope only in
11541 that one has an access parameter and the other one has a parameter of
11542 a general access type with the same designated type, at the same
11543 position in the signature.
11544 (Make_Inequality_Operator): Use source locations of parameters and
11545 subtype marks from corresponding equality operator when creating the
11546 tree structure for the implicit declaration of "/=". This does not
11547 change anything in behaviour except that the decoration of the
11548 components of the subtree created for "/=" allows ASIS to get the
11549 string images of the corresponding identifiers.
11550 (Analyze_Return_Statement): Remove '!' in warning message.
11551 (Check_Statement_Sequence): Likewise.
11552 (Analyze_Subprogram_Body): For an access parameter whose designated type
11553 is an incomplete type imported through a limited_with clause, use the
11554 type of the corresponding formal in the body.
11555 (Check_Returns): Implicit return in No_Return procedure now raises
11556 Program_Error with a compile time warning, instead of beging illegal.
11557 (Has_Single_Return): Function returning unconstrained type cannot be
11558 inlined if expression in unique return statement is not an identifier.
11559 (Build_Body_To_Inline): It is possible to inline a function call that
11560 returns an unconstrained type if all return statements in the function
11561 return the same local variable. Subsidiary procedure Has_Single_Return
11562 verifies that the body conforms to this restriction.
11564 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
11565 same type, and one of them is of an anonymous access type, convert
11566 the other operand to it, so that this is a valid binary operation for
11568 (Resolve_Type_Conversion): Handle subtypes of protected types and
11569 task types when accessing to the corresponding record type.
11570 (Resolve_Allocator): Add '\' in 2-line warning message.
11571 Remove '!' in warning message.
11572 (Resolve_Call): Add '\' in 2-line warning message.
11573 (Valid_Conversion): Likewise.
11574 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
11575 resulting type may be an access type with an implicit dereference.
11576 Obtain the proper component from the designated type.
11577 (Make_Call_Into_Operator): Handle properly a call to predefined equality
11578 given by an expanded name with prefix Standard, when the operands are
11579 of an anonymous access type.
11580 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
11581 Explicit_Dereference and Resolve_Selected_Component, to verify that the
11582 prefix of the expression is not of an incomplete type. Allows full
11583 diagnoses of all semantic errors.
11584 (Resolve_Actuals): If the actual is an allocator whose directly
11585 designated type is a class-wide interface we build an anonymous
11586 access type to use it as the type of the allocator. Later, when
11587 the subprogram call is expanded, if the interface has a secondary
11588 dispatch table the expander will add a type conversion to force
11589 the displacement of the pointer.
11590 (Resolve_Call): If a function that returns an unconstrained type is
11591 marked Inlined_Always and inlined, the call will be inlined and does
11592 not require the creation of a transient scope.
11593 (Check_Direct_Boolean_Op): Removed
11594 (Resolve_Comparison_Op): Remove call to above
11595 (Resolve_Equality_Op): Remove call to above
11596 (Resolve_Logical_Op): Inline above, since this is only call.
11597 (Valid_Conversion): Handle properly conversions between arrays of
11598 convertible anonymous access types.
11601 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
11602 the literal in an unchecked conversion, because GCC 4.x needs a static
11603 value for a string bound.
11605 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11606 Hristian Kirtchev <kirtchev@adacore.com>
11608 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
11609 components of the corresponding record, take into account component
11610 definitions that are access definitions.
11611 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
11612 procedure is not considered a dispatching call and will be expanded
11615 2006-02-13 Javier Miranda <miranda@adacore.com>
11617 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
11618 controlling argument of the dispatching call is an abstract interface
11619 class-wide type then we use it directly.
11620 Check No_Dispatching_Calls restriction.
11621 (Default_Prim_Op_Position): Remove the code that looks for the last
11622 entity in the list of aliased subprograms. This code was wrong in
11624 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
11625 when the source is compiled with the No_Dispatching_Calls restriction.
11626 (Init_Predefined_Interface_Primitives): No need to inherit primitives
11627 if we are compiling with restriction No_Dispatching_Calls.
11628 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
11629 subprograms if we are compiling under No_Dispatching_Calls restriction.
11630 (Make_DT): Generate a dispatch table with a single dummy entry if
11631 we are compiling with the No_Dispatching_Calls restriction. In
11632 addition, in this case we don't generate code that calls to the
11633 following run-time subprograms: Set_Type_Kind, Inherit_DT.
11634 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
11635 of this subprogram if compiling with the No_Dispatching_Calls
11637 (Expand_Type_Conversion): Instead of using the actual parameter,
11638 the argument passed as parameter to the conversion function was
11639 erroneously referenced by the expander.
11640 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
11641 Set_Predefined_Primitive_Op_Address and Set_Signature.
11642 (Expand_Dispatching_Call): Generate call to
11643 Get_Predefined_Prim_Op_Address for predefined primitives.
11644 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
11645 predefined primitives.
11646 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
11647 primitives we reserve one dummy entry to ensure that the tag does not
11648 point to some memory that is associated with some other object. In
11649 addition, remove all the old code that generated the assignments
11650 associated with the signature of the dispatch table and replace them
11651 by a call to the new subprogram Set_Signature.
11652 (Set_All_DT_Position): Change the algorithm because now we have a
11653 separate dispatch table associated with predefined primitive operations.
11654 (Expand_Interface_Conversion): In case of non-static offset_to_top
11655 add explicit dereference to get access to the object after the call
11656 to displace the pointer to the object.
11657 (Expand_Interface_Thunk): Modify the generation of the actual used
11658 in the calls to the run-time function Offset_To_Top to fulfil its
11660 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
11662 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11664 * exp_dist.adb (Copy_Specification): For access parameters, copy
11665 Null_Exclusion flag, which will have been set for stream subprograms
11668 2006-02-13 Pascal Obry <obry@adacore.com>
11670 * expect.c (__gnat_expect_portable_execvp): New implementation. The
11671 previous implementation was using the C runtime spawnve routine but
11672 the corresponding wait was using directly the Win32 API. This was
11673 causing some times a lock when waiting for an event using
11674 WaitForSingleObject in __gnat_waitpid. This new implementation uses
11675 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
11676 API fixes this problem.
11678 2006-02-13 Robert Dewar <dewar@adacore.com>
11680 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
11683 2006-02-13 Thomas Quinot <quinot@adacore.com>
11685 * exp_pakd.ads: Fix typos in comments.
11687 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
11688 array reference that is an explicit dereference, mark the converted
11689 (packed) array reference as analyzed to prevent a forthcoming
11690 reanalysis from resetting its type to the original (non-packed) array
11693 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11694 Javier Miranda <miranda@adacore.com>
11695 Eric Botcazou <ebotcazou@adacore.com>
11697 * exp_util.ads, exp_util.adb (Find_Prim_Op,
11698 Is_Predefined_Primitive_Operation): When
11699 searching for the predefined equality operator, verify that operands
11700 have the same type.
11701 (Is_Predefined_Dispatching_Operation): Remove the code that looks
11702 for the last entity in the list of aliased subprograms. This code
11703 was wrong in case of renamings.
11704 (Set_Renamed_Subprogram): New procedure
11705 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
11706 Exp_Type constant computed when entering this subprogram.
11707 (Known_Null): New function
11708 (OK_To_Do_Constant_Replacement): New function
11709 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
11710 (Side_Effect_Free): An attribute reference 'Input is not free of
11711 side effect, unlike other attributes that are functions. (from code
11713 (Remove_Side_Effects): Expressions that involve packed arrays or records
11714 are copied at the point of reference, and therefore must be marked as
11715 renamings of objects.
11716 (Is_Predefined_Dispatching_Operation): Return false if the operation is
11717 not a dispatching operation.
11720 (Remove_Side_Effects): Lift enclosing type conversion nodes for
11721 elementary types in all cases.
11723 2006-02-13 Javier Miranda <miranda@adacore.com>
11725 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
11726 task types when accessing to the corresponding record type.
11727 Remove '!' in warning message.
11729 2006-02-13 Olivier Hainque <hainque@adacore.com>
11731 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
11732 to avoid useless and space inefficient overalignments on targets where
11733 Max_Alignment is larger than 16.
11735 2006-02-13 Pascal Obry <obry@adacore.com>
11737 * g-catiio.adb (Sec_Number): New type used to compute the number of
11738 seconds since 1-1-1970.
11739 (Image) [Natural]: The parameter was an Integer, as we can't deal with
11740 negative numbers (years, months...) it is better to have a Natural here.
11742 (Image) [Number]: Change parameter from Long_Integer to Number.
11743 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
11744 overflow for dates past year 2038.
11746 2006-02-13 Matthew Heaney <heaney@adacore.com>
11748 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
11751 2006-02-13 Arnaud Charlet <charlet@adacore.com>
11753 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
11755 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
11756 finalization can occur normally.
11758 2006-02-13 Vincent Celier <celier@adacore.com>
11760 * gnatcmd.adb (Rules_Switches): New table
11761 (Add_To_Rules_Switches): New procedure
11762 (GNATCmd): For command CHECK, put all options following "-rules" in the
11763 Rules_Switches table. Append these -rules switches after the -cargs
11766 2006-02-13 Robert Dewar <dewar@adacore.com>
11768 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
11769 These two cases were generating incorrect output, and if this unit
11770 was built with checks on, generated a discriminant mismatch constraint
11773 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11774 Robert Dewar <dewar@adacore.com>
11776 * lib-xref.adb (Get_Type_Reference): For a private type whose full
11777 view is an array type, indicate the component type as well, for
11778 navigation purposes.
11779 (Generate_Reference): Don't consider array ref on LHS to be a case
11780 of violating pragma Unreferenced.
11781 Do not give Ada 2005 warning except on real reference.
11783 2006-02-13 Vincent Celier <celier@adacore.com>
11785 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
11786 main source, add switch -mdebug-main=_ada_ so that the executable can
11787 be debugged by the standard VMS debugger.
11788 (Gnatmake): Set No_Main_Subprogram to True when there is no main
11789 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
11790 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
11791 of the last source, as the binding and linking phases are never
11793 Set all executable obsolete when rebuilding a library.
11795 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
11798 2006-02-13 Javier Miranda <miranda@adacore.com>
11801 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
11802 code to improve the error message reported when the program has
11803 declarations of abstract interface types and it is not compiled with
11804 the -gnat05 switch.
11805 (P_Access_Definition): Reorganize the code to improve the error
11806 message reported when the new Ada 2005 syntax for anonymous
11807 access types is used and the program is not compiled with the
11810 2006-02-13 Robert Dewar <dewar@adacore.com>
11812 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
11813 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
11816 2006-02-13 Javier Miranda <miranda@adacore.com>
11818 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
11819 against source containing syntax errors.
11821 2006-02-13 Vincent Celier <celier@adacore.com>
11823 * prj.adb (Reset): Initialize the first element of table Namings with
11824 the standard naming data.
11826 2006-02-13 Vincent Celier <celier@adacore.com>
11828 * prj.ads (Error_Warning): New enumeration type
11830 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
11831 unknown, use the location of the project to report the error.
11832 (When_No_Sources): New global variable
11833 (Report_No_Ada_Sources): New procedure
11834 (Check): New parameter When_No_Sources. Set value of global variable
11836 (Find_Sources): Call Report_No_Ada_Sources when appropriate
11837 (Get_Sources_From_File): Ditto
11838 (Warn_If_Not_Sources): Better warning messages indicating the unit name
11841 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
11842 Call Prj.Proc.Process with parameter When_No_Sources.
11844 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
11845 Call Recursive_Check with parameter When_No_Sources.
11846 (Recursive_Check): New parameter When_No_Sources. Call itself and
11847 Prj.Nmsc.Check with parameter When_No_Sources.
11848 (Process): New parameter When_No_Sources. Call Check with parameter
11850 (Copy_Package_Declarations): New procedure to copy renamed parameters
11851 and setting the location of the declared attributes to the location
11852 of the renamed package.
11853 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
11856 2006-02-13 Vincent Celier <celier@adacore.com>
11858 * prj-makr.adb (Make): Preserve the comments from the original project
11860 When removing nodes (attributes Source_Dirs, Source_Files,
11861 Source_List_File and package Naming), save the comments and attach the
11862 saved comments to the newly created nodes.
11863 Do not add a with clause for the naming package if one already exists.
11865 2006-02-13 Javier Miranda <miranda@adacore.com>
11866 Gary Dismukes <dismukes@adacore.com>
11867 Robert Dewar <dewar@adacore.com>
11869 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
11871 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
11872 aliased entities to look for the overriden abstract interface
11874 (Is_Interface_Subprogram): Complete documentation.
11875 (Check_Dispatching_Operation): Do not generate code to register the
11876 operation in the dispatch table if the source is compiled with
11877 restriction No_Dispatching_Calls.
11878 (Override_Dispatching_Operation): Check for illegal attempt to override
11879 No_Return procedure with procedure that is not No_Return
11880 (Check_Dispatching_Call): Suppress the check for an abstract operation
11881 when the original node of an actual is a tag-indeterminate attribute
11882 call, since the attribute, which must be 'Input, can never be abstract.
11883 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
11884 call to the Input attribute (even when rewritten).
11885 (Propagate_Tag): Augment comment to indicate the possibility of a call
11886 to an Input attribute.
11888 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
11889 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
11891 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
11892 No_Wide_Characters is no longer partition-wide
11893 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
11896 2006-02-13 Douglas Rupp <rupp@adacore.com>
11898 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
11900 2006-02-13 Javier Miranda <miranda@adacore.com>
11902 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
11903 handles default-initialized components to keep separate the management
11904 of this feature but also avoid the unrequired resolution and
11905 expansion of components that do not have partially initialized
11907 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
11908 (Check_Bounds): Likewise.
11909 (Check_Length): Likewise.
11911 2006-02-13 Javier Miranda <miranda@adacore.com>
11912 Ed Schonberg <schonberg@adacore.com>
11914 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
11915 abstract interface type call analyze_and_resolve to expand the type
11916 conversion into the corresponding displacement of the
11917 reference to the base of the object.
11918 (Eval_Attribute, case Width): For systems where IEEE extended precision
11919 is supported, the maximum exponent occupies 4 decimal digits.
11920 (Accessibility_Message): Add '\' in 2-line warning message.
11921 (Resolve_Attribute): Likewise.
11922 (case Attribute_Access): Significantly revise checks
11923 for illegal access-to-subprogram Access attributes to properly enforce
11924 the rules of 3.10.2(32/2).
11925 Diagnose use of current instance with an illegal attribute.
11927 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
11929 (Enclosing_Generic_Unit): New function to return a node's innermost
11930 enclosing generic declaration node.
11931 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
11932 (Type_Access_Level): The accessibility level of anonymous acccess types
11933 associated with discriminants is that of the current instance of the
11934 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
11935 (Compile_Time_Constraint_Error): Handle case of conditional expression.
11936 (Kill_Current_Values_For_Entity): New function
11937 (Enter_Name): Change formal type to Entity_Id
11939 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
11940 Ed Schonberg <schonberg@adacore.com>
11941 Gary Dismukes <dismukes@adacore.com>
11943 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
11944 Analyze_Compilation_Unit.
11945 Detect and warn on redundant with clauses detected in a package spec
11946 and/or body when -gnatwr is used.
11947 (Analyze_Context): Analyze config pragmas before other items
11948 (Install_Context_Items): Don't analyze config pragmas here
11949 (Install_Limited_Withed_Unit): Set limited entity of package in
11950 with_clause so that cross-reference information or warning messages on
11951 unused packages can be properly generated
11952 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
11953 has Error_Posted set. Prevent infinite loops in illegal programs.
11954 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
11955 to the point of the error test requiring the current unit to be private.
11956 This ensures that private with clauses are not exempted from the basic
11957 checking for being a descendant of the same library unit parent as a
11958 withed private descendant unit.
11959 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
11960 handle private with clauses properly, as well as to account for cases
11961 where the withed unit is a public descendant of a private ancestor
11962 (in which case the current unit must be a descendant of the private
11963 ancestor's parent). The spec comments were updated accordingly. Also,
11964 the old error message in this subprogram was replaced with error
11965 messages that mirror the errors tested and reported by
11966 Check_Private_Child_Unit.
11967 Parameter and variable names improved for readability.
11968 (Install_Limited_Context_Clauses): Remove test for a withed unit being
11969 private as the precondition for calling
11970 Check_Private_Limited_Withed_Unit since that subprogram has been
11971 revised to test public units as well as private units.
11973 2006-02-13 Thomas Quinot <quinot@adacore.com>
11974 Robert Dewar <dewar@adacore.com>
11975 Ed Schonberg <schonberg@adacore.com>
11976 Javier Miranda <miranda@adacore.com>
11978 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
11979 that Scope_Stack.First = 1.
11980 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11981 were not always properly handled previously.
11982 (Formal_Entity): Complete rewrite, to handle properly some complex case
11983 with multiple levels of parametrization by formal packages.
11984 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
11985 to the corresponding derived type declaration for proper semantics.
11987 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
11988 (Check_Component): Enforce restriction on components of
11989 unchecked_unions: a component in a variant cannot contain tasks or
11991 (Unchecked_Union): Allow nested variants and multiple discriminants, to
11993 Add pragma Ada_2005 (synonym for Ada_05)
11994 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11995 were not always properly handled previously.
11996 Document that pragma Propagate_Exceptions has no effect
11997 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
11998 (Set_Convention_From_Pragma): Check that if a convention is
11999 specified for a dispatching operation, then it must be
12000 consistent with the existing convention for the operation.
12001 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
12002 longer required to specify an vtable-ptr component in the record. For
12003 compatibility reasons we leave the support for the previous definition.
12004 (Analyze_Pragma, case No_Return): Allow multiple arguments
12006 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
12007 non-overrideen inherited operation with a controlling result as
12008 illegal only its implicit declaration comes from the derived type
12009 declaration of its result's type.
12010 (Check_Possible_Deferred_Completion): Relocate the object definition
12011 node of the subtype indication of a deferred constant completion rather
12012 than directly analyzing it. The analysis of the generated subtype will
12013 correctly decorate the GNAT tree.
12014 (Record_Type_Declaration): Check whether this is a declaration for a
12015 limited derived record before analyzing components.
12016 (Analyze_Component_Declaration): Diagnose record types not explicitly
12017 declared limited when a component has a limited type.
12018 (Build_Derived_Record_Type): Code reorganization to check if some of
12019 the inherited subprograms of a tagged type cover interface primitives.
12020 This check was missing in case of a full-type associated with a private
12022 (Constant_Redeclaration): Check that the subtypes of the partial and the
12023 full view of a constrained deferred constant statically match.
12024 (Mentions_T): A reference to the current type in an anonymous access
12025 component declaration must be an entity name.
12026 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
12027 class_wide type to refer to full type, not to the incomplete one.
12028 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
12029 available. Required to give support to the certified run-time.
12030 (Analyze_Component_Declaration): In case of anonymous access components
12031 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
12032 (Process_Discriminants): For an access discriminant, use the
12033 discriminant specification as the associated_node_for_itype, to
12034 simplify accessibility checks.
12036 2006-02-13 Ed Schonberg <schonberg@adacore.com>
12037 Javier Miranda <miranda@adacore.com>
12039 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
12040 abstract interpretations on an operator, remove interpretations that
12041 yield Address or a type derived from it, if one of the operands is an
12043 (Try_Object_Operation.Try_Primitive_Operation,
12044 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
12045 location when creating the new reference to a primitive or class-wide
12046 operation as a part of rewriting a subprogram call.
12047 (Try_Primitive_Operations): If context requires a function, collect all
12048 interpretations after the first match, because there may be primitive
12049 operations of the same type with the same profile and different return
12050 types. From code reading.
12051 (Try_Primitive_Operation): Use the node kind to choose the proper
12052 operation when a function and a procedure have the same parameter
12054 (Complete_Object_Operation): If formal is an access parameter and prefix
12055 is an object, rewrite as an Access reference, to match signature of
12056 primitive operation.
12057 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
12058 by an expanded name with prefix Standard, when the operands are of an
12059 anonymous access type.
12060 (Remove_Abstract_Operations): If the operation is abstract because it is
12061 inherited by a user-defined type derived from Address, remove it as
12062 well from the set of candidate interpretations of an overloaded node.
12063 (Analyze_Membership_Op): Membership test not applicable to cpp-class
12066 2006-02-13 Bob Duff <duff@adacore.com>
12068 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
12069 redundant use clauses.
12070 In particular, if the scope of two use clauses overlaps, but one is not
12071 entirely included in the other, we should not warn. This can happen
12072 with nested packages.
12073 (Analyze_Subprogram_Renaming): Protect the compiler against previously
12074 reported errors. The bug was reported when the compiler was built
12075 with assertions enabled.
12076 (Find_Type): If the node is a 'Class reference and the prefix is a
12077 synchronized type without a corresponding record, return the type
12080 2006-02-13 Javier Miranda <miranda@adacore.com>
12082 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
12083 if this is the full-declaration associated with a private declaration
12084 that implement interfaces, then the private type declaration must be
12086 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
12087 as aliased. The use of the 'access attribute is not available for such
12088 object (for this purpose the object should be explicitly marked as
12089 aliased, but being an anonymous type this is not possible).
12091 2006-02-13 Ed Schonberg <schonberg@adacore.com>
12092 Robert Dewar <dewar@adacore.com>
12094 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
12095 compilation unit is an elaboration scope.
12096 (Add_Task_Proc): Add '\' in 2-line warning message.
12097 (Activate_All_Desirable): Deal with case of unit with'ed by parent
12099 2006-02-13 Ed Schonberg <schonberg@adacore.com>
12100 Javier Miranda <miranda@adacore.com>
12102 * sem_type.adb (Write_Overloads): Improve display of candidate
12104 (Add_One_Interp): Do not add to the list of interpretations aliased
12105 entities corresponding with an abstract interface type that is an
12106 immediate ancestor of a tagged type; otherwise we have a dummy
12107 conflict between this entity and the aliased entity.
12108 (Disambiguate): The predefined equality on universal_access is not
12109 usable if there is a user-defined equality with the proper signature,
12110 declared in the same declarative part as the designated type.
12111 (Find_Unique_Type): The universal_access equality operator defined under
12112 AI-230 does not cover pool specific access types.
12113 (Covers): If one of the types is a generic actual subtype, check whether
12114 it matches the partial view of the other type.
12116 2006-02-13 Thomas Quinot <quinot@adacore.com>
12118 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
12119 line. This is necessary to allow In_Extended_Main_Unit to provide
12120 correct results for itypes while writing out expanded source.
12121 (Close_File): No need to update the source_index_table here since it's
12122 now done for each line.
12124 2006-02-13 Ed Schonberg <schonberg@adacore.com>
12125 Robert Dewar <dewar@adacore.com>
12127 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
12128 preserve the source unit where the itype is declared, and prevent a
12130 (Note_Implicit_Run_Time_Call): New procedure
12131 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
12134 * sprint.ads: Document use of $ for implicit run time routine call
12136 2006-02-13 Quentin Ochem <ochem@adacore.com>
12138 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
12141 2006-02-13 Bob Duff <duff@adacore.com>
12143 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
12144 Scan_Unsigned, so we do not scan leading blanks and sign twice.
12145 Integer'Value("- 5") and Integer'Value("-+5") now correctly
12146 raise Constraint_Error.
12148 * s-vallli.adb (Scan_Long_Long_Integer): Call
12149 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
12150 do not scan leading blanks and sign twice.
12151 Integer'Value("- 5") and Integer'Value("-+5") now correctly
12152 raise Constraint_Error.
12154 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
12155 Scan_Long_Long_Unsigned): Split out most of the processing from
12156 Scan_Long_Long_Unsigned out into
12157 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
12158 This prevents scanning leading blanks and sign twice.
12159 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
12162 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
12163 out most of the processing from Scan_Unsigned out into
12164 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
12165 This prevents scanning leading blanks and sign twice.
12167 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
12168 use with Modular'Value attribute.
12169 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
12172 2006-02-13 Robert Dewar <dewar@adacore.com>
12174 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
12176 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
12178 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
12179 (PPC VxWorks): Likewise.
12180 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
12181 (forced_callee): Make non-inlinable and non-pure.
12182 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
12184 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12185 Ben Brosgol <brosgol@adacore.com>
12186 Robert Dewar <dewar@adacore.com>
12188 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
12190 Document that gnatbind -M option is for cross environments only.
12191 Added description of using gnatmem to trace gnat rtl allocs and deallocs
12192 Add note on use of $ to label implicit run time calls
12193 Add documentation for -gnatyI (check mode IN)
12194 Updated chapter on compatibility with HP Ada
12195 VMS-oriented edits.
12196 Ran spell and corrected errors
12197 Add documentation for gnatbind -d and rework documentation of -D
12199 Add subprogram/data elimination section.
12200 Minor editing of annex A.
12201 Add section for gnatcheck.
12202 Add documentation for restriction No_Dispatching_Calls
12203 Add documentation for pragma Ada_2005
12204 Remove mention of obsolete pragma Propagate_Exceptions
12205 Document that pragma Unreferenced can appear after DO in ACCEPT
12206 Clarify Pure_Function for library level units
12207 Mention Max/Min in connection with No_Implicit_Conditionals
12208 No_Wide_Characters restriction is no longer partition-wide
12209 Add a nice example for Universal_Literal_String attribute
12210 Document that pragma No_Return can take multiple arguments
12212 * ug_words: Added entry for gnatcheck
12214 * g-ctrl_c.ads (Install_Handler): Enhance comments
12216 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
12218 * g-trasym.ads: Add documentation on how to do off line symbolic
12219 traceback computation.
12221 * s-fatgen.adb: Add comments for Unaligned_Valid
12223 * stand.ads: Fix typo in comment
12225 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12227 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
12229 2006-02-06 Roger Sayle <roger@eyesopen.com>
12231 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
12233 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12236 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
12237 implementation that calls __main.
12239 2006-01-25 Peter O'Gorman <peter@pogma.com>
12242 * Makefile.in (GCC_LINK): Remove quotes.
12243 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
12246 (powerpc-darwin): Pass -shared-libgcc when building shared library.
12248 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12251 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
12253 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12255 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
12257 2005-12-12 Arnaud Charlet <charlet@adacore.com>
12259 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
12262 2005-12-12 Arnaud Charlet <charlet@adacore.com>
12264 * Make-lang.in: Update dependencies
12266 2005-12-12 Arnaud Charlet <charlet@adacore.com>
12268 * Make-lang.in: Add rule for ada/exp_sel.o
12270 2005-12-12 Arnaud Charlet <charlet@adacore.com>
12272 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
12274 2005-12-09 Arnaud Charlet <charlet@adacore.com>
12276 * gnatvsn.ads (Library_Version): Bump to version 4.2
12277 (ASIS_Version_Number): Bumped.
12279 2005-12-09 Doug Rupp <rupp@adacore.com>
12281 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
12282 Ada bind file prefix on VMS from b$ to b__.
12283 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
12286 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
12287 Targparm.OpenVMS_On_Target.
12288 (Object_Suffix): Initialize with target object suffix.
12289 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
12291 * butil.adb: Change some Hostparm.OpenVMS checks to
12292 Targparm.OpenVMS_On_Target.
12294 * clean.adb: Change some Hostparm.OpenVMS checks to
12295 Targparm.OpenVMS_On_Target.
12296 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
12297 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
12298 Ada bind file prefix on VMS from b$ to b__.
12300 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
12301 --GCC so that Get_Target_Parameters can find system.ads.
12302 (Gnatlink): Call Get_Target_Parameters in mainline.
12303 Initialize standard packages for Targparm.
12304 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
12305 (Process_Args): Also Check for object files with target object
12307 (Make_Binder_File_Names): Create with target object extension.
12308 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
12311 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
12312 Targparm.OpenVMS_On_Target.
12313 ({declaration},Build_Library,Check_Library): Change Ada bind file
12314 prefix on VMS from b$ to b__.
12316 * osint-b.adb: Change some Hostparm.OpenVMS checks to
12317 Targparm.OpenVMS_On_Target.
12318 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
12321 * targext.c: New file.
12323 * Makefile.in: add support for vxworks653 builds
12324 (../../vxaddr2line): gnatlink with targext.o.
12325 (TOOLS_LIBS): Move targext.o to precede libgnat.
12326 (init.o, initialize.o): Minor clean up in dependencies.
12327 (GNATLINK_OBJS): Add targparm.o, snames.o
12328 Add rules fo building targext.o and linking it explicitly with all
12330 Also add targext.o to gnatlib.
12332 * Make-lang.in: Add rules for building targext.o and linking it in
12333 with gnat1 and gnatbind.
12334 Add entry for exp_sel.o.
12336 * osint.adb Change some Hostparm.OpenVMS checks to
12337 Targparm.OpenVMS_On_Target.
12338 (Object_File_Name): Use target object suffix.
12340 * osint.ads (Object_Suffix): Remove, no longer used.
12341 (Target_Object_Suffix): Initialize with target object suffix.
12343 * rident.ads: Add special exception to license.
12345 * targparm.adb (Get_Target_Parameters): Set the value of
12346 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
12348 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
12350 * targparm.ads: Add special exception to license.
12352 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
12354 (Copy_File): Make sure from file is closed if error on to file
12355 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
12357 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
12358 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
12360 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
12361 target object suffix.
12363 2005-12-09 Jose Ruiz <ruiz@adacore.com>
12364 Quentin Ochem <ochem@adacore.com>
12365 Florian Villoing <villoing@adacore.com>
12367 * a-taster.ads, a-taster.adb: New files.
12369 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
12370 link to the version that does nothing. This way the task termination
12371 routine is not executed twice for the environment task when finishing
12372 because of an unhandled exception.
12374 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
12375 handler because of an unhandled exception.
12377 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
12378 System.Tasking.Utilities instead of that in System.Tasking.Stages.
12380 * s-finimp.adb (initialization code): Modify the soft link for the
12381 finalization of the global list instead of Adafinal.
12383 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
12384 non-tasking version of the soft link for task termination. We do
12385 nothing since if we are using the non-tasking version it
12386 means that the task termination functionality is not used.
12387 (Null_Finalize_Global_List): Add this null version for the procedure
12388 in charge of finalizing the global list for controlled objects.
12389 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
12390 instead for handling run-time termination in a more flexible way.
12391 (Adafinal_NT): This new procedure will take care of finalizing the
12392 global list for controlled objects if needed, but no tasking
12395 * s-tarest.adb (Task_Lock): Do not try to lock again the
12396 Global_Task_Lock if we already own it. Otherwise, we get blocked in
12397 some run-time operations.
12398 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
12399 until all nested locks have been released.
12400 (Task_Wrapper): Call the fall-back task termination handler. It
12401 applies to all tasks but the environment task.
12402 (Finalize_Global_Tasks): Add the call for the task termination
12403 procedure for the environment task.
12404 (Task_Wrapper): suppress warnings around declaration of
12405 Secondary_Stack_Address.
12407 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
12408 moved to the Common_ATCB record.
12409 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
12410 Common_ATCB record.
12411 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
12412 Common_ATCB record.
12414 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
12415 Fall_Back_Handler, and Specific_Handler.
12417 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
12418 defined in Ada.Task_Termination, to avoid circular dependencies.
12419 (Termination_Handler): Redefine this type here, alredy defined in
12420 Ada.Task_Termination, for avoiding circular dependencies.
12421 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
12422 for storing task termination handlers. In addition,
12423 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
12424 Common_ATCB because it is used by both the regular and the restricted
12426 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
12427 Common_ATCB because it is used by both the regular and the restricted
12429 (Common_ATCB): Added a dynamic task analyzer field.
12431 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
12432 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
12433 (Task_Wrapper): Call the task termination handler. It applies to all
12434 tasks but the environment task.
12435 (Finalize_Global_Tasks): Call the task termination procedure for the
12436 environment task. The call to Finalize_Global_List is now performed
12437 using the soft links mechanism.
12438 (Task_Wrapper): added dynamic stack analysis.
12440 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
12441 potentially blocking operations has been moved from
12442 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
12443 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
12444 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
12445 this run-time check.
12447 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
12448 of task termination procedure.
12449 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
12450 link for the task termination procedure.
12452 * bindusg.adb: (Bindusg): Added documentation for -u option.
12454 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
12455 (Get_Main_C): Add handling of dynamic stack analysis.
12456 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
12458 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
12459 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
12460 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
12462 * opt.ads: Added flags used by dynamic stack measurement.
12463 (Max_Line_Length): Remove (not used anymore)
12465 * s-io.ads, s-io.adb (Standard_Error): new subprogram
12466 (Standart_Output): new subprogram
12467 (Set_Output): new subprogram
12468 (Put): now uses the value of Current_Out to know if the output has to be
12469 send to stderr or stdout.
12471 * s-stausa.ads: Complete implementation.
12473 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
12475 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
12476 list of Ada 05 files.
12477 (GNAT Library Units): Add AltiVec files.
12479 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
12480 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
12481 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
12483 2005-12-09 Nicolas Setton <setton@adacore.com>
12485 * adaint.c (__gnat_locate_regular_file): Return immediately if
12486 file_name is empty.
12488 2005-12-09 Javier Miranda <miranda@adacore.com>
12489 Hristian Kirtchev <kirtchev@adacore.com>
12491 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
12492 to the specification because the frontend generates code that uses this
12494 (Set_Interface_Table): Add missing assertion.
12495 Update documentation describing the run-time structure.
12496 (Displace): New subprogram that displaces the pointer to the object
12497 to reference one of its secondary dispatch tables.
12498 (IW_Membership): Modified to use the new table of interfaces.
12499 (Inherit_TSD): Modified to use the new table of interfaces.
12500 (Register_Interface_Tag): Use the additional formal to fill the
12501 contents of the new table of interfaces.
12502 (Set_Interface_Table): New subprogram that stores in the TSD the
12503 pointer to the table of interfaces.
12504 (Set_Offset_To_Top): Use the additional formal to save copy of
12505 the offset value in the table of interfaces.
12506 Update structure of GNAT Primary and Secondary dispatch table diagram.
12507 Add comment section on GNAT dispatch table prologue.
12508 (Offset_To_Signature): Update the constant value of the Signature field.
12509 (Dispatch_Table): Update comment on hidden fields in the prologue.
12510 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
12511 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
12512 the type of formal parameter T to Tag, introduce additional assertions.
12513 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
12515 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
12517 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
12518 in all the calls to Expand_Interface_Thunk. Instead of referencing the
12519 record component containing the tag of the secondary dispatch table we
12520 have to use the Offset_To_Top run-time function to get this information;
12521 otherwise if the pointer to the base of the object has been displace
12522 we get a wrong value if we use the 'position attribute.
12524 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
12525 all the calls to Expand_Interface_Thunk.
12526 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
12527 interfaces; hence the call to Set_Interface_Table was clearly wrong.
12528 (Collect_All_Interfaces): Modify the internal subprogram Collect to
12529 ensure that the interfaces implemented by the ancestors are placed
12530 at the header of the generated list.
12531 (Expand_Interface_Conversion): Handle the case in which the displacement
12532 associated with the interface conversion is not statically known. In
12533 this case we generate a call to the new run-time subprogram Displace.
12534 (Make_DT): Generate and fill the new table of interfaces.
12535 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
12536 Get_Tagged_Kind and Set_Tagged_Kind.
12537 (Tagged_Kind): New function that determines the tagged kind of a type
12538 with respect to limitedness and concurrency and returns a reference to
12540 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
12541 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
12542 primary dispatch table for a type.
12543 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
12544 secondary dispatch table respectively of a tagged type.
12546 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
12547 (Expand_Interface_Conversion): New subprogram to indicate if the
12548 displacement of the type conversion is statically known.
12549 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
12551 * rtsfind.ads (RE_Offset_To_Top): New entity
12552 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
12553 accessible to users.
12554 (Re_Displace): New entity
12555 (RE_Interface_Data): New entity
12556 (RE_Set_Interface_Data): New_Entity
12557 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
12558 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
12559 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
12560 RE_TK_Tagged, RE_TK_Task.
12562 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
12563 Init_Secondary_Tags_Internal to allow its use with interface types and
12564 also to generate the code for the new additional actual required
12565 by Set_Offset_To_Top.
12566 (Build_Init_Statements): In case of components associated with abstract
12567 interface types there is no need to generate a call to its IP.
12568 (Freeze_Record_Type): Generate Select Specific Data tables only for
12570 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
12571 the bodies and specifications of the predefined primitive operations
12572 dealing with dispatching selects and abort, 'Callable, 'Terminated only
12573 for concurrent types.
12575 * exp_sel.ads, exp_sel.adb: New files.
12577 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
12578 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
12579 properly protected objects and attach handler in the case of the
12580 restricted profile.
12581 Move embeded package Select_Expansion_Utilities into a separate external
12583 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
12584 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
12585 (Build_K, Build_S_Assignment): New subprograms, part of the select
12586 expansion utilities.
12587 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
12588 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
12589 where the trigger is a dispatching procedure of a limited tagged type.
12591 2005-12-09 Olivier Hainque <hainque@adacore.com>
12593 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
12594 pointer initialization values. Make a SAVE_EXPR instead. Add comments
12595 about the use and expansion of SAVE_EXPRs in the various possible
12596 renaming handling cases.
12597 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
12598 abusing DECL_FCONTEXT.
12600 2005-12-09 Matthew Heaney <heaney@adacore.com>
12602 * a-convec.adb (Merge): Added assertions to check whether vector params
12605 * a-coinve.adb (Merge): Added assertions to check whether vector params
12608 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
12610 (Cursor'Read): raises PE
12612 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
12613 to its default value.
12615 * a-cihama.adb: Manually check whether cursor's key and elem are
12618 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
12619 (Merge): Assert that target and source lists are in order
12620 (Swap): Declare non-const temporaries, to pass to Splice
12622 * a-cdlili.ads: (Splice): Changed param name and param mode
12624 * a-cdlili.adb: (Splice): Changed param name and param mode
12625 (Merge): Assert that target and source lists are in order
12626 (Swap): Declare non-const temporaries, to pass to Splice
12628 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
12629 (Write): declare Stream param as not null
12631 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
12632 an exception message.
12634 2005-12-09 Thomas Quinot <quinot@adacore.com>
12635 Robert Dewar <dewar@adacore.com>
12637 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
12638 which is the absolute maximum length we can support.
12640 * frontend.adb: For the processing of configuration pragma files,
12641 remove references to Opt.Max_Line_Length, which is not checked anymore.
12643 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
12646 * scn.adb, scng.adb:
12647 Always check line length against the absolute supported maximum,
12648 Hostparm.Max_Line_Length.
12650 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
12651 value for the maximum line length is Max_Line_Length (not
12652 Column_Number'Last).
12653 Minor error msg update
12654 (Set_Style_Check_Options): New interface returning error msg
12655 Minor code reorganization (processing for 'M' was out of alpha order)
12657 * switch-c.adb: New interface for Set_Style_Check_Options
12659 * stylesw.ads (Set_Style_Check_Options): New interface returning error
12662 2005-12-09 Javier Miranda <miranda@adacore.com>
12664 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
12665 with IP subprogram were only supported if there were limited types.
12667 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
12668 records with IP subprogram were only supported if there were limited
12671 2005-12-09 Olivier Hainque <hainque@adacore.com>
12672 Eric Botcazou <ebotcazou@adacore.com>
12674 * trans.c (tree_transform, emit_check): Adjust calls to
12675 build_call_raise, passing the now expected GNAT_NODE argument.
12677 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
12678 source line information than what the current global locus indicates
12681 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
12682 field has overflowed.
12683 (build_call_raise): Add a GNAT_NODE argument to convey better source
12684 line information than what the current global locus indicates when
12686 (build_component_ref): Adjust call to build_call_raise.
12688 2005-12-09 Pascal Obry <obry@adacore.com>
12690 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
12691 the iterator is quitting iteration on parent directory.
12693 2005-12-09 Javier Miranda <miranda@adacore.com>
12695 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
12696 and the assignment to a class-wide object, before the assignment we
12697 generate a run-time check to ensure that the tag of the Target is
12698 covered by the tag of the source.
12700 2005-12-09 Robert Dewar <dewar@adacore.com>
12702 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
12703 parameter in call to Image_Wide_Character.
12705 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
12706 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
12707 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
12708 annoying FFFE/FFFF inconsistency.
12710 2005-12-09 Robert Dewar <dewar@adacore.com>
12711 Javier Miranda <miranda@adacore.com>
12712 Ed Schonberg <schonberg@adacore.com>
12714 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
12715 of type conversion.
12716 (Find_Interface): New subprogram that given a tagged type and one of its
12717 component associated with the secondary table of an abstract interface
12718 type, return the entity associated with such abstract interface type.
12719 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
12720 base type to create anonymous subtype, because entity may be a locally
12721 declared subtype or generic actual.
12722 (Find_Interface): New subprogram that given a tagged type and one of its
12723 component associated with the secondary table of an abstract interface
12724 type, return the entity associated with such abstract interface type.
12726 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
12727 conversion cannot be handled at compile time. In this case we pass this
12728 information to the expander to generate the appropriate code.
12730 2005-12-09 Robert Dewar <dewar@adacore.com>
12731 Ed Schonberg <schonberg@adacore.com>
12732 Gary Dismukes <dismukes@adacore.com>
12733 Javier Miranda <miranda@adacore.com>
12734 Hristian Kirtchev <kirtchev@adacore.com>
12736 * einfo.adb (Itype_Printed): New flag
12737 (Is_Limited_Type): Derived types do not inherit limitedness from
12738 interface progenitors.
12739 (Is_Return_By_Reference_Type): Predicate does not apply to limited
12742 * einfo.ads (Itype_Printed): New flag
12743 Move Is_Wrapper_Package to proper section
12744 Add missing Inline for Is_Volatile
12746 * output.ads, output.adb (Write_Erase_Char): New procedure
12747 (Save/Restore_Output_Buffer): New procedures
12748 (Save/Restore_Output_Buffer): New procedures
12750 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
12751 Add missing support for anonymous access type
12752 (Write_Id): Insert calls to Write_Itype
12753 (Write_Itype): New procedure to output itypes
12755 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
12756 use of "limited" in declaration.
12758 * sinfo.ads, sinfo.adb:
12759 Formal derived types can carry an explicit "limited" indication.
12761 * sem_ch3.adb: Add with and use of Targparm.
12762 (Create_Component): If Frontend_Layout_On_Target is True and the
12763 copied component does not have a known static Esize, then reset
12764 the size and positional fields of the new component.
12765 (Analyze_Component_Declaration): A limited component is
12766 legal within a protected type that implements an interface.
12767 (Collect_Interfaces): Do not add to the list the interfaces that
12768 are implemented by the ancestors.
12769 (Derived_Type_Declaration): If the parent of the full-view is an
12770 interface perform a transformation of the tree to ensure that it has
12771 the same parent than the partial-view. This simplifies the job of the
12772 expander in order to generate the correct object layout, and it is
12773 needed because the list of interfaces of the full-view can be given in
12775 (Process_Full_View): The parent of the full-view does not need to be
12776 a descendant of the parent of the partial view if both parents are
12778 (Analyze_Private_Extension_Declaration): If declaration has an explicit
12779 "limited" the parent must be a limited type.
12780 (Build_Derived_Record_Type): A derived type that is explicitly limited
12781 must have limited ancestor and progenitors.
12782 (Build_Derived_Type): Ditto.
12783 (Process_Full_View): Verify that explicit uses of "limited" in partial
12784 and full declarations are consistent.
12785 (Find_Ancestor_Interface): Remove function.
12786 (Collect_Implemented_Interfaces): New procedure used to gather all
12787 implemented interfaces by a type.
12788 (Contain_Interface): New function used to check whether an interface is
12790 (Find_Hidden_Interface): New function used to determine whether two
12791 lists of interfaces constitute a set equality. If not, the first
12792 differing interface is returned.
12793 (Process_Full_View): Improve the check for the "no hidden interface"
12794 rule as defined by AI-396.
12796 2005-12-09 Robert Dewar <dewar@adacore.com>
12798 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
12799 types, not on record subtypes.
12800 (Freeze_Entity): Code cleanup. Add barrier to the loop
12801 that generates the references for primitive operations. This allows to
12802 remove an unnecessary exception handler.
12803 Code reformatting and comment clean ups.
12805 2005-12-09 Vincent Celier <celier@adacore.com>
12807 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
12808 If GNAT CHECK is called with a project file, but with no
12809 source on the command line, call gnatcheck with all the compilable
12810 sources of the project.
12811 Take into account the new command Check, for gnatcheck. Treat as for
12812 other ASIS tools: take into account project, specific package Check and
12814 For ASIS tools, add the switches in package Compiler for
12815 the invocation of the compiler.
12817 * prj-attr.adb: Add package Check and its attributes
12819 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
12821 * vms_conv.adb (Initialize): Change Params of command Check to
12823 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
12824 Add data for new command Check
12826 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
12828 Add qualifiers for Check command options
12829 (Command_Type): New command Check
12831 2005-12-09 Thomas Quinot <quinot@adacore.com>
12833 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
12834 command line switch overruns the output buffer.
12836 2005-12-09 Robert Dewar <dewar@adacore.com>
12838 * sem_prag.adb: Processing for new pragma Complete_Representation
12839 (Analyze_Pragma, case Debug): Implement two argument form.
12841 * par-prag.adb: Entry for new pragma Complete_Representation
12842 (Prag, case Debug): Recognize two argument form of pragma Debug
12843 New interface for Set_Style_Check_Options.
12845 * sem_ch13.adb: Implement new pragma Complete_Representation.
12847 * snames.adb, snames.ads, snames.h: Entry for new pragma
12848 Complete_Representation.
12850 2005-12-09 Gary Dismukes <dismukes@adacore.com>
12852 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
12853 available user-specified stream attributes on limited parameters to
12854 also test the type directly rather than only its underlying type (for
12855 Ada 95) and, in the case of Ada 2005, to check that the user-specified
12856 attributes are visible at the point of the subprogram declaration.
12857 For Ada 2005, the error message is modified to indicate that the
12858 type's stream attributes must be visible (again, only for -gnat05).
12860 2005-12-09 Ed Schonberg <schonberg@adacore.com>
12862 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
12863 anonymous access types.
12865 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
12866 matching of anonymous access types and anonymous access to subprogram
12867 types. 'R'M 4.9.1 (2/2).
12869 2005-12-09 Ed Schonberg <schonberg@adacore.com>
12871 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
12872 rule prematurely when operands are universal, remaining ambiguities
12873 will be removed during resolution.
12876 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
12877 that are Ada 2005 functions.
12878 (Has_Abstract_Interpretation): Subsidiary to
12879 Remove_Conversions, to remove ambiguities caused by abstract operations
12880 on numeric types when operands are universal.
12882 2005-12-09 Robert Dewar <dewar@adacore.com>
12884 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
12885 for case where spec is categorized.
12887 2005-12-09 Javier Miranda <miranda@adacore.com>
12889 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
12890 types use the corresponding record type. This was not needed before
12891 the implementation of Ada 2005 synchronized types because
12892 concurrent types were never tagged types in Ada 95.
12894 2005-12-09 Ed Schonberg <schonberg@adacore.com>
12896 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
12897 first subtype of the type of the expression to verify that it is a
12900 2005-12-09 Robert Dewar <dewar@adacore.com>
12902 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
12905 2005-12-09 Quentin Ochem <ochem@adacore.com>
12906 Robert Dewar <dewar@adacore.com>
12907 Ed Falis <falis@adacore.com>
12908 Florian Villoing <villoing@adacore.com>
12909 Thomas Quinot <quinot@adacore.com>
12910 Arnaud Charlet <charlet@adacore.com>
12912 * gnat_ugn.texi: Created section "Stack Related Tools"
12913 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
12914 "Stack Related Tools"
12915 Added subsection "Static Stack Usage Analysis"
12916 Added subsection "Dynamic Stack Usage Analysis"
12917 Include documentation of itypes in sprint listing (-gnatG)
12918 Documented gnatbind -D switch (default sec stack size for fixed sec
12920 Added Interrupt_State and Persistent_BSS to list of configuration
12922 Add missing doc for maximum value of nnn in -gnatyMnnn
12924 * gnat_rm.texi: Document the AltiVec binding.
12925 Add documentation for pragma Complete_Representation
12926 Shortened an overly long line (> 79 chars)
12927 Clarify documentation of unchecked conversion in implementation
12929 Document two argument form of pragma Debug
12931 * types.ads (Column_Number): Update documentation.
12933 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
12934 library level Finalize_Storage_Only objects (these are not attached to
12935 any finalization list).
12937 * system-mingw.ads: (Underlying_Priorities): Update comment.
12939 2005-12-09 Robert Dewar <dewar@adacore.com>
12941 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
12942 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
12943 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
12944 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
12945 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
12946 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
12947 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
12948 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
12951 2005-12-09 Robert Dewar <dewar@adacore.com>
12953 * s-vaflop-vms-alpha.adb: (Ne_F): New function
12954 (Ne_G): New function
12956 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
12957 for tag assignment.
12958 (Rewrite_Comparison): Handle case where operation is not a comparison
12959 and ignore, and also handle type conversion case.
12961 2005-12-09 Thomas Quinot <quinot@adacore.com>
12963 * exp_aggr.ads: Fix typo in comment.
12964 ???-mark Convert_Aggr_In_Assignment as needing documentation.
12966 2005-12-09 Gary Dismukes <dismukes@adacore.com>
12968 * layout.adb: Replace various uses of byte by storage unit throughout.
12969 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
12970 static size, convert to storage units before returning, to conform to
12973 2005-12-09 Matthew Gingell <gingell@adacore.com>
12975 * g-exctra.ads: Fix typo in comment.
12977 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12979 * utils.c: Minor reformatting.
12981 2005-12-09 Robert Dewar <dewar@adacore.com>
12984 Further comment fixes to make the status of the default file clear
12986 * s-bitops.adb: Clarify comment for Bits_Array
12988 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12990 * Make-lang.in (ada.install-normal): Remove.
12992 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12994 * Make-lang.in: Remove all dependencies on s-gtype.
12996 2005-12-05 Richard Guenther <rguenther@suse.de>
12998 * utils.c (convert): Use fold_convert where appropriate.
13000 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
13002 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
13005 2005-12-02 Richard Guenther <rguenther@suse.de>
13007 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
13009 2005-12-01 Roger Sayle <roger@eyesopen.com>
13011 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
13014 2005-11-23 Laurent GUERBY <laurent@guerby.net>
13016 * mlib-prj.adb (Build_Library): Initialize Delete.
13018 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
13020 * socket.c: Add extern int h_errno for rtems since networking header
13021 files are not available at this point in a tool bootstrap. Newlib
13022 only has basic C library header files.
13024 2005-11-19 Richard Guenther <rguenther@suse.de>
13025 Roger Sayle <roger@eyesopen.com>
13028 * misc.c (internal_error_function): Don't use vsprintf to format
13029 the error message text, instead use pp_format_text and the new
13030 pretty printer APIs. This allows handling of %qs, %w, etc.
13032 2005-11-18 Laurent GUERBY <laurent@guerby.net>
13035 * Makefile.in: Use s-auxdec-empty for RTEMS.
13037 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13040 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
13041 a temporary if taking the address of something that is neither
13042 reference, declaration, or constant, since the gimplifier
13043 can't handle that case.
13045 2005-11-17 Laurent GUERBY <laurent@guerby.net>
13048 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
13050 2005-11-16 Richard Guenther <rguenther@suse.de>
13052 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
13054 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
13057 * raise-gcc.c: Add missing stdarg.h include.
13059 2005-11-16 Richard Guenther <rguenther@suse.de>
13061 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
13062 (ada/misc.o): Likewise.
13064 2005-11-14 Thomas Quinot <quinot@adacore.com>
13066 * g-soccon.ads: Minor reformatting. Update comments.
13068 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
13069 gain visibility on the declaration of struct timeval.
13071 * g-soccon-freebsd.ads,
13072 g-soccon-darwin.ads,
13073 g-soccon-tru64.ads,
13077 g-soccon-solaris.ads,
13079 g-soccon-mingw.ads,
13080 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
13082 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
13083 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
13084 g-soccon-linux-x86.ads: New files.
13086 * g-socthi-mingw.adb:
13087 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
13089 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
13090 (time_t, suseconds_t): New types constructed to match the tv_sec
13091 and tv_usec fields of C struct timeval.
13092 (Timeval): Construct structure in terms of the new types.
13093 (Host_Errno): New function (imported from socket.c), returns last hosts
13096 * g-socthi-vxworks.adb: Add error handling circuitry.
13098 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
13099 components of struct timeval.
13100 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
13101 (Check_Selector): In error conditions, clear internal socket sets to
13102 avoid a memory leak.
13103 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
13104 Send_Timeout, Receive_Timeout.
13106 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
13107 the tv_sec and tv_usec fields of C struct timeval.
13108 (Timeval): Construct structure in terms of the new types.
13109 (Host_Errno): New function (imported from socket.c), returns last hosts
13112 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
13113 hosts database last error code.
13115 * gen-soccon.c: Complete value expansion should not be performed on
13116 TARGET, as it has the form of a math expression, and some components
13117 may be platform-defined macros.
13118 For VxWorks, generate the OK and ERROR values.
13119 New constants giving the sizes of the components of C struct timeval.
13121 2005-11-14 Robert Dewar <dewar@adacore.com>
13122 Ed Schonberg <schonberg@adacore.com>
13125 * types.ads: Include All_Checks in Suppress_Array
13127 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
13128 not(a=b), since we no longer do this rewriting, and hence it is not
13130 (Elaboration_Checks_Suppressed): Add special casing to
13131 deal with different cases of static and dynamic elaboration checks (all
13132 checks does not count in the first case, but does in the second).
13133 (Expr_Known_Valid): Do not assume that the result of any arbitrary
13134 function call is valid, since this is not the case.
13135 (Ensure_Valid): Do not apply validity check to a real literal
13136 in a universal or fixed context
13138 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
13139 elementary types using the operator in standard. It is cleaner not to
13140 modify the programmers intent, especially in the case of floating-point.
13141 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
13142 it did not matter because we always rewrote a/=b to not(a=b).
13143 (Expand_Allocator_Expression): For an allocator expression whose nominal
13144 subtype is an unconstrained packed type, convert the expression to its
13145 actual constrained subtype.
13146 Implement warning for <= or >= where < or > not possible
13147 Fix to Vax_Float tests (too early in many routines, causing premature
13148 Vax_Float expansions.
13150 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
13151 to be used with packages and generic packages as well as with
13153 (Suppress): Set All_Checks, but not Elaboration_Check, for case
13154 of pragma Suppress (All_Checks)
13155 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
13156 a string literal for precise control over warnings.
13157 Avoid raise of pragma in case of unrecognized pragma and just return
13160 * sem_prag.ads: Minor reformatting
13162 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
13163 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
13164 Switch. Do not handle any exception.
13165 Include -gnatwx as part of -gnatg (warn on redundant parens)
13166 Allow optional = after -gnatm
13167 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
13168 longer sets Elaboration_Checks.
13169 Code to set warning mode moved to Sem_Warn
13170 so that it can be shared by pragma processing.
13172 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
13175 * s-taprop-solaris.adb:
13176 Change some <= to =, to avoid new warning
13178 * a-exexda.adb, prj-proc.adb:
13179 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
13180 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
13182 2005-11-14 Robert Dewar <dewar@adacore.com>
13184 * exp_vfpt.adb: Handle /= case
13185 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
13186 so that we do not get duplicate scaling for fixed point conversions.
13188 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
13190 2005-11-14 Matthew Gingell <gingell@adacore.com>
13192 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
13193 Increase default priority on Lynx from 15 to 17, and meet the Ada
13194 requirement that Default_Priority be ((Priority'First +
13195 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
13197 2005-11-14 Vincent Celier <celier@adacore.com>
13199 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
13200 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
13201 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
13202 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
13203 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
13204 mlib-tgt-lynxos.adb (DLL_Prefix): New function
13206 2005-11-14 Doug Rupp <rupp@adacore.com>
13208 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
13211 2005-11-14 Arnaud Charlet <charlet@adacore.com>
13213 * s-traces-default.adb, s-trafor-default.ads,
13214 s-tratas-default.adb: Fix compilation errors.
13216 2005-11-14 Jose Ruiz <ruiz@adacore.com>
13218 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
13219 raising the exception so the memory used is freed.
13221 2005-11-14 Arnaud Charlet <charlet@adacore.com>
13223 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
13224 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
13225 (convert_address): Update comments and list of platforms using this.
13227 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
13230 2005-11-14 Pascal Obry <obry@adacore.com>
13231 Vincent Celier <celier@adacore.com>
13233 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
13236 * memroot.adb: Remove redundant with/use clause on
13237 System.Storage_Elements.
13239 2005-11-14 Arnaud Charlet <charlet@adacore.com>
13241 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
13242 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
13243 related code to a-exexpr.adb
13244 (Save_Occurrence_And_Private): Move GCC EH related code to
13246 (Raise_Current_Excep): Add new variable Id with pragma
13247 volatile, to ensure that the variable lives on stack.
13249 * a-exexpr-gcc.adb, raise-gcc.c: New file.
13251 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
13253 Move GCC EH related code to a-exexpr-gcc.adb
13255 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
13257 Split the Linux version of g-soccon into separate variants for 32 and 64
13259 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
13260 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
13261 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
13262 of host variable $(RANLIB_FLAGS).
13263 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
13264 Code clean up: remove unused/obsolete targets.
13265 (EH_MECHANISM): New variable introduced to differenciate between the
13266 two EH mechanisms statically.
13267 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
13268 (LIBGNAT_OBJS): Add raise-gcc.o
13269 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
13270 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
13271 supports VxWorks 6 RTPs.
13272 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
13273 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
13275 * raise.c: Move all GCC EH-related routines to raise-gcc.c
13277 2005-11-14 Jose Ruiz <ruiz@adacore.com>
13279 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
13280 deferral level, when abort is not allowed, to a later stage (the
13282 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
13283 it will not get changed by the generated code. It was previously done
13286 2005-11-14 Thomas Quinot <quinot@adacore.com>
13287 Olivier Hainque <hainque@adacore.com>
13288 Eric Botcazou <ebotcazou@adacore.com>
13291 Factor common code to build a storage type for an unconstrained object
13292 from a fat or thin pointer type and a constrained object type.
13293 (annotate_value): Handle BIT_AND_EXPR.
13294 (annotate_rep): Don't restrict the back annotation of inherited
13295 components to the type_annotate_only case.
13296 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
13297 we are not defining the type.
13298 <E_Record_Type>: Likewise.
13299 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
13300 to get advantage of the new maybe_stabilize_reference interface, to
13301 ensure that what we reference is indeed stabilized instead of relying
13302 on assumptions on what the stabilizer does.
13303 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
13304 type imported through a limited_with clause, use its non-limited view.
13305 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
13307 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
13308 of #if sections + explicit comparisons of convention identifiers.
13309 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
13310 before early-returning for certain types when code generation is
13312 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
13313 nullification of gnu_expr we do for objects with address clause and
13314 that we are not defining.
13315 (elaborate_expression_1): Do not create constants when creating
13316 variables needed by the debug info: the dwarf2 writer considers that
13317 CONST_DECLs is used only to represent enumeration constants, and emits
13319 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
13320 object with an address clause into an indirect reference, drop the
13321 initializing expression.
13323 (STACK_CHECK_BUILTIN): Delete.
13324 (STACK_CHECK_PROBE_INTERVAL): Likewise.
13325 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
13326 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
13327 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
13328 corresponding to the renamed object as ignored for debugging purposes.
13330 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
13331 related): For a prefix that is a dereference of a fat or thin pointer,
13332 if there is an actual subtype provided by the front-end, use that
13333 subtype to build an actual type with bounds template.
13334 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
13335 is provided by the front-end, use that subtype to compute the size of
13336 the deallocated object.
13337 (gnat_to_gnu): When adding a statement into an elaboration procedure,
13338 check for a potential violation of a No_Elaboration_Code restriction.
13339 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
13340 with extra arguments to control whether to recurse through non-values
13341 and to let the caller know if the stabilization has succeeded.
13342 (gnat_stabilize_reference): Now a simple wrapper around
13343 maybe_stabilize, for common uses without restriction on lvalues and
13344 without need to check for the success indication.
13345 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
13346 pass false instead of 0 as the FORCE argument which is a bool.
13347 (Identifier_to_gnu): Remove checks ensuring that an renamed object
13348 attached to a renaming pointer has been properly stabilized, as no such
13349 object is attached otherwise.
13350 (call_to_gnu): Invoke create_var_decl to create the temporary when the
13351 function uses the "target pointer" return mechanism.
13352 Reinstate conversion of the actual to the type of the formal
13353 parameter before any other specific treatment based on the passing
13354 mechanism. This turns out to be necessary in order for PLACEHOLDER
13355 substitution to work properly when the latter type is unconstrained.
13357 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
13359 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
13360 with extra arguments to control whether to recurse through non-values
13361 and to let the caller know if the stabilization has succeeded.
13363 * utils2.c (gnat_build_constructor): Only sort the fields for possible
13364 static output of record constructor if all the components are constant.
13365 (gnat_build_constructor): For a record type, sort the list of field
13366 initializers in increasing bit position order.
13367 Factor common code to build a storage type for an unconstrained object
13368 from a fat or thin pointer type and a constrained object type.
13369 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
13370 types variants, and process special cases of VIEW_CONVERT expressions
13371 as their NOP_EXPR counterpart to ensure we get to the
13372 CORRESPONDING_VARs associated with CONST_DECls.
13373 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
13374 on the right-hand side.
13376 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
13378 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
13379 are converting back to its original type.
13380 (convert) <JM input>: Fallthrough regular conversion code instead of
13381 extracting the object if converting to a type variant.
13382 (create_var_decl): When a variable has an initializer requiring code
13383 generation and we are at the top level, check for a potential violation
13384 of a No_Elaboration_Code restriction.
13385 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
13386 SIZE and SIZE_UNIT which we need for later back-annotations.
13387 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
13388 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
13389 is an unchecked union.
13390 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
13391 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
13392 main variant, just replace the VIEW_CONVERT_EXPR.
13393 <UNION_TYPE>: Revert 2005-03-02 change.
13395 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
13397 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
13399 2005-11-14 Matthew Heaney <heaney@adacore.com>
13401 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
13402 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
13403 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
13404 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
13405 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
13406 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
13407 Compiles against the spec for ordered maps described in sections
13408 A.18.6 of the most recent (August 2005) AI-302 draft.
13410 2005-11-14 Olivier Hainque <hainque@adacore.com>
13412 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
13413 to ensure bias adjustments take place when need be and to prevent
13414 occurrences of intermediate overflows.
13416 2005-11-14 Matthew Gingell <gingell@adacore.com>
13417 Olivier Hainque <hainque@adacore.com>
13419 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
13422 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
13423 tracebacks on ia64 HP-UX and provide explanatory comment.
13424 Enable backtraces on ia64 GNU/Linux.
13425 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
13426 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
13428 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
13429 Javier Miranda <miranda@adacore.com>
13431 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
13432 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
13433 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
13434 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
13436 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
13437 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
13440 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
13441 subprogram that generates the external name associated with a
13442 secondary dispatch table.
13443 (Get_Secondary_DT_External_Name): New subprogram that generates the
13444 external name associated with a secondary dispatch table.
13446 2005-11-14 Emmanuel Briot <briot@adacore.com>
13448 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
13449 line in the ALI file to include both an instantiation reference, and a
13452 2005-11-14 Vincent Celier <celier@adacore.com>
13454 * clean.adb (Check_Project): Look for Ada code in extending project,
13455 even if Ada is not specified as a language.
13456 Use new function DLL_Prefix for DLL_Name
13457 (Clean_Interface_Copy_Directory): New procedure
13458 (Clean_Library_Directory): New procedure
13459 (Clean_Directory): Remove procedure, no longer used
13460 (Clean_Project): Do not delete any file in an externally built project
13462 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
13463 directory of an extending project, even when there are no Ada source
13465 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
13466 (Set_Ada_Paths.Add.Recursive_Add): Ditto
13468 * mlib-prj.adb (Check_Library): For all library projects, get the
13469 library file timestamp.
13470 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
13471 (Build_Library): Use new function DLL_Prefix for the DLL_Name
13472 (Clean): Remove procedure, no longer used
13473 (Ultimate_Extension_Of): New function
13474 (Build_Library): When cleaning the library directory, only remove an
13475 existing library file and any ALI file of a source of the project.
13476 When cleaning the interface copy directory, remove any source that
13477 could be a source of the project.
13479 * prj.ads, prj.adb (Project_Empty): Add values of new components
13480 Library_TS and All_Imported_Projects.
13481 (Project_Empty): Add values for new components of Project_Data:
13482 Library_ALI_Dir and Display_Library_ALI_Dir
13484 * prj-attr.adb: New project level attribute name Library_ALI_Dir
13486 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
13487 attribute Library_ALI_Dir.
13488 (Check_Library_Attributes): The library directory cannot be the same as
13489 any source directory of the project tree.
13490 (Check_Stand_Alone_Library): The interface copy directory cannot be
13491 the same as any source directory of the project tree.
13493 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
13494 all temporary files.
13496 2005-11-14 Robert Dewar <dewar@adacore.com>
13497 Ed Schonberg <schonberg@adacore.com>
13499 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13500 (Check_Elab_Call): A call within a protected body is never an
13501 elaboration call, and does not require checking.
13502 (Same_Elaboration_Scope): Take into account protected types for both
13504 (Activate_Elaborate_All_Desirable): New procedure
13506 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
13509 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
13510 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
13512 * lib-writ.ads, lib-writ.adb:
13513 Implement new AD/ED for Elaborate_All/Elaborate desirable
13514 Use new Elaborate_All_Desirable flag in N_With_Clause node
13516 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
13517 N_Free_Statement nodes.
13518 Define new class N_Subprogram_Instantiation
13519 Add Elaborate_Desirable flag to N_With_Clause node
13520 Add N_Delay_Statement (covering two kinds of delay)
13522 * debug.adb: Introduce d.f flag for compiler
13523 Add -da switch for binder
13525 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13526 Cyrille Comar <comar@adacore.com>
13528 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
13529 for task component, in the case of a limited aggregate. The enclosed
13530 object declaration will create it earlier. Otherwise, in the case of a
13531 nested aggregate, the object may appear in the wrong scope.
13532 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
13533 (Gen_Assign): If the component being assigned is an array type and the
13534 expression is itself an aggregate, wrap the assignment in a block to
13535 force finalization actions on the temporary created for each row of the
13537 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
13538 structures are initialized after all discriminants are set so that
13539 they can be accessed even when their offset is dynamic.
13541 2005-11-14 Robert Dewar <dewar@adacore.com>
13542 Hristian Kirtchev <kirtchev@adacore.com>
13544 * sem_attr.adb: Implement Machine_Rounding attribute
13545 (Analyze_Access_Attribute): The access attribute may appear within an
13546 aggregate that has been expanded into a loop.
13547 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
13548 'Terminated whenever the prefix is of a task interface class-wide type.
13549 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
13550 the prefix is of a task interface class-wide type.
13552 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
13555 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
13556 Remove pragma Inline for [Unaligned_]Valid.
13557 Add comments that Valid routines do not work for Vax_Float
13559 * exp_attr.adb: Implement Machine_Rounding attribute
13561 * snames.h: Add entry for Machine_Rounding attribute
13563 2005-11-14 Javier Miranda <miranda@adacore.com>
13564 Robert Dewar <dewar@adacore.com>
13565 Hristian Kirtchev <kirtchev@adacore.com>
13567 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
13568 and related): For a prefix that is an explicit dereference of an
13569 access to unconstrained packed array type, annotate the dereference
13570 with an actual subtype so GIGI can make a correct size computation.
13571 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
13572 'Unrestricted_Access, if the designated type is an interface we
13573 add a type conversion to force the displacement of the pointer
13574 to the secondary dispatch table.
13575 Use Universal_Real instead of Long_Long_Float when we need a high
13576 precision float type for the generated code (prevents gratuitous
13577 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
13578 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
13579 'Terminated for task interface class-wide objects. Generate a call to
13580 the predefined dispatching routine used to retrieve the _task_id from
13581 a task corresponding record.
13582 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
13584 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13585 (Check_Dispatching_Operation): Protect the frontend againts
13586 previously detected errors.
13588 * Makefile.rtl: Add new instantiations of system.fat_gen
13590 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
13591 Change name of instantiated package for better consistency
13592 with newly added system.fat_gen instantiations.
13594 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
13595 s-fvagfl.ads: New files.
13597 2005-11-14 Cyrille Comar <comar@adacore.com>
13598 Thomas Quinot <quinot@adacore.com>
13600 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
13601 assignment of a value of a tagged type that has been rewritten to a
13602 block statement, it is known by construction that no checks are
13603 necessary for the statements within the block: analyze it with checks
13605 (Expand_N_If_Statement): When killing a dead then-branch in an
13606 if-statement that has elsif_parts, recompute the Current_Value node
13607 for any entity whose value is known from the condition of the first
13609 (Expand_N_Return_Statement): When returning a mutable record, convert
13610 the return value into its actual subtype in order to help the backend
13611 to return the actual size instead of the maximum. This is another
13612 aftermath of not returning mutable records on the sec-stack anymore.
13614 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
13615 handling of error msg for suspicious reverse range iteration.
13616 (Check_Possible_Current_Value_Condition): Move declaration from body to
13617 spec, to allow this subprogram to be called from exp_ch5.
13619 2005-11-14 Thomas Quinot <quinot@adacore.com>
13621 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
13622 generate a set of nested array aggregates instead of a single flat
13623 aggregate for multi-dimensional arrays.
13625 2005-11-14 Pascal Obry <obry@adacore.com>
13627 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
13628 by spawnve is a process handle, no need to convert. Add a parameter
13629 close to control wether the process handle must be closed.
13630 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
13631 a process handle, not need to convert.
13632 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
13634 * g-expect.adb: (Kill): Document the new close parameter.
13635 (Close): Do not release the process handle in the kill there as
13636 waitpid() is using it.
13637 (Send_Signal): Release the process handle.
13639 2005-11-14 Robert Dewar <dewar@adacore.com>
13641 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
13642 need a high precision float type for the generated code (prevents
13643 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
13646 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
13647 need a high precision float type for the generated code (prevents
13648 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
13650 (Expand_Width_Attribute): In configurable run-time, the attribute is not
13651 allowed on non-static enumeration subtypes. Force a load error to emit
13652 the correct diagnostic.
13654 2005-11-14 Thomas Quinot <quinot@adacore.com>
13655 Robert Dewar <dewar@adacore.com>
13656 Ed Schonberg <schonberg@adacore.com>
13658 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
13659 subtype to compute the size of the designated object at run-time,
13660 create such a subtype and store it in the Actual_Designated_Subtype
13661 attribute of the N_Free_Statement.
13662 Generate itype for classwide designated object in both cases of
13663 user-specified storage pool: specific and class-wide, not only in the
13665 Raise CE when trying to set a not null access type object to null.
13666 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
13667 an explicit loop, because freeze nodes make its position variable.
13669 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
13672 2005-11-14 Javier Miranda <miranda@adacore.com>
13674 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
13675 Build_Stream_Procedure): Add the null-excluding attribute to the first
13677 This has no semantic meaning under Ada95 mode but it is a
13678 requirement under Ada05 mode.
13680 * par-ch3.adb (P_Access_Definition): Addition of warning message if
13681 the null exclusion is used under Ada95 mode
13682 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
13683 (P_Access_Definition): Remove assertion that forbids the use of
13684 the null-exclusion feature in Ada95.
13686 2005-11-14 Robert Dewar <dewar@adacore.com>
13688 * impunit.adb: Exclude container helper units not intended for use by
13691 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13693 * freeze.adb (Freeze_Entity): For an access formal that is an access
13694 to subprogram, freeze the anonymous subprogram type at the same time,
13695 to prevent later freezing in the wrong scope, such as the enclosing
13697 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
13698 subprogram whenever available.
13700 2005-11-14 Arnaud Charlet <charlet@adacore.com>
13703 * gnatvsn.ads (Library_Version): Bump to 4.1
13705 2005-11-14 Robert Dewar <dewar@adacore.com>
13707 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
13708 Storage_Offset to avoid wrap around causing invalid results.
13710 2005-11-14 Pascal Obry <obry@adacore.com>
13712 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
13714 (Scan_Bind_Arg): Fail with an error message if -M option is used
13715 on a native compiler.
13717 2005-11-14 Robert Dewar <dewar@adacore.com>
13718 Vincent Celier <celier@adacore.com>
13720 * gprep.adb: Implement -C switch to scan comments
13722 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
13724 * scans.ads: Comment updates (including new use of Tok_Comment in
13727 * opt.ads: Add documentation for flags that are used by gprmake,
13728 currently and in the next version of gprmake.
13729 (Verbosity_Level): New variable
13730 Add Replace_In_Comments switch
13732 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
13734 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
13736 2005-11-14 Arnaud Charlet <charlet@adacore.com>
13738 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
13739 message, friendlier.
13741 2005-11-14 Robert Dewar <dewar@adacore.com>
13743 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
13745 2005-11-14 Doug Rupp <rupp@adacore.com>
13747 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
13749 2005-11-14 Robert Dewar <dewar@adacore.com>
13751 * interfac.ads: Change declarations of IEEE float types so that we no
13752 longer need a separate version of this package for VMS.
13754 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13756 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
13757 internal entity created for the declaration of a child subprogram body
13758 with no spec as coming from source, to generate proper cross-reference
13761 2005-11-14 Vincent Celier <celier@adacore.com>
13763 * make.adb (Compile_Sources): Change verbose message to minimum
13764 verbosity level High for "is in an Ada library", "is a read-only
13765 library" and "is an internal library",
13766 (Create_Binder_Mapping_File): Path name of ALI file for library project
13767 must include the library directory, not the object directory.
13768 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
13769 for new switches -vl, -vm and -vh.
13770 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
13771 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
13772 (Compile_Sources): Do not attempt to compile if an ALI file is missing
13773 in a project that is externally built.
13774 (Compute_All_Imported_Projects): New procedure
13775 (Gnatmake): Check if importing libraries should be regenerated because
13776 at least an imported library is more recent.
13777 (Initialize): For each project compute the list of the projects it
13778 imports directly or indirectly.
13779 (Add_Library_Search_Dir): New procedure, used in place of
13780 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
13781 put in the search paths.
13782 (Add_Source_Search_Dir): New procedure, used in place of
13783 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
13784 put in the search paths.
13785 (Mark_Directory): Resolve the absolute path the directory before marking
13788 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
13789 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
13790 Switch. Do not handle any exception.
13791 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
13792 so that the switch is recognized as valid.
13793 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
13795 2005-11-14 GNAT Script <nobody@adacore.com>
13797 * Make-lang.in: Makefile automatically updated
13799 2005-11-14 Pascal Obry <obry@adacore.com>
13801 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
13803 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
13804 In both cases the last argument was dropped.
13806 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
13808 * namet.h: (Column_Numbe): New type.
13809 (Get_Column_Number): Define to sinput__get_column_number.
13810 (Instantiation): Define to sinput__instantiation.
13811 (Get_Column_Number): Declare.
13812 (Instantiation): Likewise.
13814 2005-11-14 Robert Dewar <dewar@adacore.com>
13816 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
13817 syntax, which could cause compiler hangs.
13819 2005-11-14 Vincent Celier <celier@adacore.com>
13821 * prj-ext.adb: Take into account new environment variable
13822 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
13824 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
13825 normalize its path name, making it absolute and resolving symbolic
13826 links, and replace the original if resolved path is different.
13828 2005-11-14 Vincent Celier <celier@adacore.com>
13830 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
13831 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
13833 2005-11-14 Emmanuel Briot <briot@adacore.com>
13835 * prj-pp.adb (Print): Do not output the with statement if the
13836 associated name is empty, which happens for virtual extending projects.
13837 (Print): Preserve the "extends all" attribute when printing the project.
13839 * prj-tree.ads (String_Value_Of): Add comment about returned value for
13840 a virtual extending project.
13842 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13844 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
13845 rhs of an assignment even if the type is unconstrained, when the
13846 context is non-expanding.
13847 In an inlined body, if the context type is private,
13848 resolve with its full view, which must be a composite type.
13850 2005-11-14 Robert Dewar <dewar@adacore.com>
13851 Ed Schonberg <schonberg@adacore.com>
13853 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13854 Do not give obsolescent warning on with of subprogram (since we
13856 (Analyze_With_Clause): Add test for obsolescent package
13857 (Install_Context_Clauses): If the unit is the body of a child unit, do
13858 not install twice the private declarations of the parents, to prevent
13859 circular lists of Use_Clauses in a parent.
13860 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
13861 compiling body of child unit.
13862 Use new class N_Subprogram_Instantiation
13863 (Expand_With_Clause): If this is a private with_clause for a child unit,
13864 appearing in the context of a package declaration, then the implicit
13865 with_clauses generated for parent units are private as well.
13866 (License_Check): Do not generate message if with'ed unit is internal
13868 2005-11-14 Gary Dismukes <dismukes@adacore.com>
13869 Ed Schonberg <schonberg@adacore.com>
13870 Thomas Quinot <quinot@adacore.com>
13872 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
13873 names are internal, because they will not have a corresponding partner
13874 in the actual package.
13875 (Analyze_Formal_Package): Move the setting of the formal package spec's
13876 Generic_Parent field so that it occurs prior to analyzing the package,
13877 to allow proper operation of Install_Parent_Private_Declarations.
13878 (Analyze_Package_Instantiation): Set the instantiated package entity's
13879 Package_Instantiation field.
13880 (Get_Package_Instantiation_Node): Move declaration to package spec.
13881 Retrieve the N_Package_Instantiation node when the Package_Instantiation
13883 (Check_Generic_Child_Unit): Within an inlined call, the only possible
13884 instantiation is Unchecked_Conversion, for which no parents are needed.
13885 (Inline_Instance_Body): Deinstall and record the use_clauses for all
13886 parent scopes of a scope being removed prior to inlining an instance
13888 (Analyze_Package_Instantiation): Do not perform front-end inlining when
13889 the current context is itself an instance within a non-instance child
13890 unit, to prevent scope stack errors.
13891 (Save_References): If the node is an aggregate that is an actual in a
13892 call, rewrite as a qualified expression to preserve some type
13893 information, to resolve possible ambiguities in the instance.
13894 (Instance_Parent_Unit): New global variable to record the ultimate
13895 parent unit associated with a generic child unit instance (associated
13896 with the existing Parent_Unit_Visible flag).
13897 (type Instance_Env): New component Instance_Parent_Unit for stacking
13898 parents recorded in the global Instance_Parent_Unit.
13899 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
13901 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
13902 it's not a top-level unit, and only do this if Instance_Parent_Unit is
13903 not already set. Replace test of Is_Child_Unit with test of parent's
13904 scope against package Standard. Add comments and a ??? comment.
13905 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
13906 on a child instance parent to test that the parent equals
13907 Instance_Parent rather than simply checking that the unit is not a
13909 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
13910 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
13911 a formal interface are ancestors of the corresponding actual.
13912 (Validate_Formal_Interface_Type): Additional legality checks.
13913 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
13914 interface types with ancestors.
13915 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
13916 to diagnose attempts to use generic within its own declaration.
13918 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13919 Javier Miranda <miranda@adacore.com>
13921 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
13923 (Build_Private_Derived_Type): The entity of the created full view of the
13924 derived type does not come from source. If after installing the private
13925 declarations of the parent scope the parent is still private, use its
13926 full view to construct the full declaration of the derived type.
13927 (Build_Derived_Record_Type): Relax the condition that controls the
13928 execution of the check that verifies that the partial view and
13929 the full view agree in the set of implemented interfaces. In
13930 addition, this test now only takes into account the progenitors.
13931 (Derive_Interface_Subprograms): No need to derive subprograms
13932 of ancestors that are interfaces.
13933 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
13935 Change name Is_Package to Is_Package_Or_Generic_Package
13936 (Complete_Subprograms_Derivation): Handle the case in which the full
13937 view is a transitive derivation of the ancestor of the partial view.
13938 (Process_Full_View): Rename local subprogram Find_Interface_In_
13939 Descendant to Find_Ancestor_Interface to leave the code more clear.
13940 Remove wrong code that avoids the generation of an error message
13941 when the immediate ancestor of the partial view is an interface.
13942 In addition some minor reorganization of the code has been done to
13943 leave it more clear.
13944 (Analyze_Type_Declaration): If type has previous incomplete tagged
13945 partial view, inherit properly its primitive operations.
13946 (Collect_Interfaces): Make public, for analysis of formal
13948 (Analyze_Interface_Declaration): New procedure for use for regular and
13949 formal interface declarations.
13950 (Build_Derived_Record_Type): Add support for private types to the code
13951 that checks if a tagged type implements abstract interfaces.
13952 (Check_Aliased_Component_Type): The test applies in the spec of an
13954 (Access_Type_Declaration): Clean up declaration of malformed type
13955 declared as an access to its own classwide type, to prevent cascaded
13957 (Collect_Interfaces): For private extensions and for derived task types
13958 and derived protected types, the parent may be an interface that must
13959 be included in the interface list.
13960 (Access_Definition): If the designated type is an interface that may
13961 contain tasks, create Master_Id for it before analyzing the expression
13962 of the declaration, which may be an allocator.
13963 (Record_Type_Declaration): Set properly the interface kind, for use
13964 in allocators, the creation of master id's for task interfaces, etc.
13966 2005-11-14 Javier Miranda <miranda@adacore.com>
13967 Ed Schonberg <schonberg@adacore.com>
13969 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
13970 omitted in case of stream attribute subprograms.
13971 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
13972 appear immediately after a subprogram body, when there is no previous
13973 subprogram declaration.
13974 Change name Is_Package to Is_Package_Or_Generic_Package
13975 (Process_Formals): A non null qualifier on a non null named access
13976 type is not an error, and is a warning only if Redundant_Constructs
13979 2005-11-14 Gary Dismukes <dismukes@adacore.com>
13980 Ed Schonberg <schonberg@adacore.com>
13982 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
13983 nested within Analyze_Package_Specification to install the private
13984 declarations and use clauses within each of the parent units of a
13985 package instance of a generic child package.
13986 (Analyze_Package_Specification): When entering a private part of a
13987 package associated with a generic instance or formal package, the
13988 private declarations of the parent must be installed (by calling new
13989 procedure Install_Parent_Private_Declarations).
13990 Change name Is_Package to Is_Package_Or_Generic_Package
13991 (Preserve_Full_Attributes): For a synchronized type, the corresponding
13992 record is absent in a generic context, which does not indicate a
13995 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13997 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
13998 not try to rewrite a renamed stream attribute, because the operations
13999 on the type may not have been generated.
14000 Handle properly a renaming_as_body generated for a stream operation
14001 whose default is abstract because the object type itself is abstract.
14002 (Find_Type): If the type is incomplete and appears as the prefix of a
14003 'Class reference, it is tagged, and its list of primitive operations
14004 must be initialized properly.
14005 (Chain_Use_Clauses): When chaining the use clauses that appear in the
14006 private declaration of a parent unit, prior to compiling the private
14007 part of a child unit, find on the scope stack the proper parent entity
14008 on which to link the use clause.
14009 (Note_Redundant_Use): Emit a warning when a redundant use clause is
14011 (Analyze_Object_Renaming): An attribute reference is not a legal object
14012 if it is not a function call.
14014 2005-11-14 Robert Dewar <dewar@adacore.com>
14015 Ed Schonberg <schonberg@adacore.com>
14017 * sem_eval.adb: Implement d.f flag
14018 (Subtype_Statically_Match): A generic actual type has unknown
14019 discriminants when the corresponding actual has a similar partial view.
14020 If the routine is called to validate the signature of an inherited
14021 operation in a child instance, the generic actual matches the full view,
14023 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
14024 Ed Schonberg <schonberg@adacore.com>
14025 Robert Dewar <dewar@adacore.com>
14026 Thomas Quinot <quinot@adacore.com>
14028 * sem_res.adb (Resolve_Call): Provide a better error message whenever
14029 a procedure call is used as a select statement trigger and is not an
14030 entry renaming or a primitive of a limited interface.
14031 (Valid_Conversion): If the operand has a single interpretation do not
14032 remove address operations.
14033 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
14034 statement to inhibit warning.
14035 (Resolve_Unary_Op): Do not produce a warning when
14036 processing an expression of the form -(A mod B)
14037 Use Universal_Real instead of Long_Long_Float when we need a high
14038 precision float type for the generated code (prevents gratuitous
14039 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
14040 (Resolve_Concatenation_Arg): Improve error message when argument is an
14041 ambiguous call to a function that returns an array.
14042 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
14043 there is an implicit operator in the given scope if we are within an
14044 instance: legality check has been performed on the generic.
14045 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
14046 after resolving operand, to avoid false warnings on overloaded calls.
14048 2005-11-14 Ed Schonberg <schonberg@adacore.com>
14049 Javier Miranda <miranda@adacore.com>
14052 * sem_type.adb (Covers): In an inlined body, a composite type matches
14053 a private type whose full view is a composite type.
14054 (Interface_Present_In_Ancestor): Protect the frontend against
14055 previously detected errors to ensure that its compilation
14056 with assertions enabled gives the same output that its
14057 compilation without assertions.
14058 (Interface_Present_In_Ancestor): Add support for private types.
14059 Change name In_Actual to In_Generic_Actual (clean up)
14060 (Disambiguate): New predicate In_Actual, to recognize expressions that
14061 appear in the renaming declaration generated for generic actuals, and
14062 which must be resolved in the outer context.
14064 2005-11-14 Robert Dewar <dewar@adacore.com>
14065 Thomas Quinot <quinot@adacore.com>
14066 Hristian Kirtchev <kirtchev@adacore.com>
14067 Ed Schonberg <schonberg@adacore.com>
14069 * sem_util.ads, sem_util.adb: Change name Is_Package to
14070 Is_Package_Or_Generic_Package.
14071 (Check_Obsolescent): New procedure.
14072 (Set_Is_Public): Remove obsolete junk test.
14073 (Set_Public_Status): Do not set Is_Public on an object whose declaration
14074 occurs within a handled_sequence_of_statemets.
14075 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
14076 for a parameterless procedure.
14077 (Enter_Name): Recognize renaming declarations created for private
14078 component of a protected type within protected operations, so that
14079 the source name of the component can be used in the debugger.
14081 2005-11-14 Ed Schonberg <schonberg@adacore.com>
14082 Robert Dewar <dewar@adacore.com>
14084 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
14085 of a generic subprogram are not visible outside the body.
14086 (Set_Warning_Switch): New procedure (code to set warning mode moved
14087 here from Switch.C so that it can be shared by pragma processing.
14088 (Check_References): Special case warning for non-modified non-imported
14090 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
14091 form with a string literal argument
14093 2005-11-14 Javier Miranda <miranda@adacore.com>
14095 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
14097 (Write): Addition of "not null" to the anonymous access.
14098 (Read): Addition of "not null" to the anonymous access.
14099 (Write): Addition of "not null" to the anonymous access.
14101 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
14102 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
14103 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
14104 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
14105 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
14106 "not null" to the anonymous access.
14108 2005-11-14 Robert Dewar <dewar@adacore.com>
14110 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
14113 2005-11-14 Vincent Celier <celier@adacore.com>
14115 * switch.adb (Bad_Switch): New procedure
14116 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
14117 message when in error.
14119 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
14120 Too_Many_Output_Files): Remove declarations, no longer used.
14121 (Scan_Nat): New parameter Switch
14123 (Bad_Switch): New procedure
14125 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
14126 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
14127 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
14128 to Osint.Fail. Do not handle any exception.
14130 2005-11-14 Vincent Celier <celier@adacore.com>
14132 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
14133 designates a non existent directory.
14135 2005-11-14 Robert Dewar <dewar@adacore.com>
14137 * xgnatugn.adb: Replace invalid membership test by 'Valid
14139 2005-11-14 Vincent Celier <celier@adacore.com>
14141 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
14142 there is no object directory.
14144 2005-11-14 Robert Dewar <dewar@adacore.com>
14146 * usage.adb: Minor adjustment to output format, use nn instead of nnn
14147 (so that -gnateInnn does not run into next column)
14149 2005-11-14 Ed Falis <falis@adacore.com>
14151 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
14154 2005-11-14 Cyrille Comar <comar@adacore.com>
14156 * s-chepoo.ads: Add comments on Dereference.
14157 Remove unnecessary inherited abstract primitives.
14160 2005-11-14 Robert Dewar <dewar@adacore.com>
14162 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
14163 node parameter, not needed, since it is available as Declaration_Node.
14165 2005-11-14 Geert Bosch <bosch@adacore.com>
14167 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
14168 grammatically correct.
14170 2005-11-14 Vincent Celier <celier@adacore.com>
14172 * s-fileio.ads: Correct spelling error in comment
14174 2005-11-14 Cyrille Comar <comar@adacore.com>
14175 Robert Dewar <dewar@adacore.com>
14176 Vincent Celier <celier@adacore.com>
14177 Ben Brosgol <brosgol@adacore.com>
14178 Jose Ruiz <ruiz@adacore.com>
14179 Pascal Obry <obry@adacore.com>
14182 Document that -fstack-check is needed for strict compliance with the
14183 Ada 95 Reference Manual.
14184 Correct reference to VAX systems to meet HP guidelines
14185 Add documentation for new gnatmake switches -vl, -vm and -vh
14186 Replace DEC Ada by HP Ada
14187 Replace DIGITAL by HP
14188 Remove empty section on tools in compatibility section
14189 Clarify the Windows convention semantics.
14190 Document the Win32 calling convention.
14191 The Stdcall, Win32 and DLL convention are synonyms.
14192 Add a note in -gnatR description about zero size record components
14193 Note on new >= and <= warnings for -gnatwc
14194 Document that equal sign after -gnatm is optional.
14195 Note that strip is working fine on DLL built with a Library
14196 Project. The restriction apply only to DLL built with gnatdll.
14197 Update section about the way to debug a DLL.
14198 Update information about the DLL convention.
14199 Document -C switch for gnatprep
14200 Document new attribute Library_ALI_Dir
14201 Update elaboration doc to include implicit Elaborate pragmas now
14202 generated for subprogram instantiations.
14203 Document limitation on executable names that include spaces for --GCC,
14204 --GNATBIND, and --GNATLINK switches.
14205 Document that -w causes -gnatws to be added at start of gcc switches
14207 * gnat_rm.texi: Document that -mieee is needed for generating infinite
14208 and NaN values in case of overflow on machines that are not fully
14209 compliant with the IEEE floating-point standard.
14210 Create a section describing the set of compiler options needed for
14211 strict compliance with the Ada 95 Reference Manual.
14212 Add documentation for pragma Obsolescent applied to a package
14213 Clarify potential issues of mixed language programs related to the
14214 I/O buffering enabling in the elaboration of the GNAT runtime.
14215 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
14216 This documentation only patch adds extra documentsion for pragma
14217 Restrictions (No_Elaboration_Code), explaining why it is not possible
14218 to document this restriction in terms of allowed source constructs.
14219 Document string literal form of pragma Warnings
14220 Document new attribute Library_ALI_Dir
14221 Add documentation on stable attributes in project files that was missing
14223 * gnat-style.texi: Indicate that paragraphs within a single comment
14224 should be separated by empty comment lines
14226 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
14229 * bindusg.adb: Minor cleanup, put -m before -M for consistency
14231 2005-11-14 Robert Dewar <dewar@adacore.com>
14233 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
14234 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
14235 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
14236 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
14237 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
14238 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
14239 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
14240 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
14241 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
14242 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
14243 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
14244 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
14245 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
14246 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
14247 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
14248 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
14249 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
14250 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
14251 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
14252 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
14253 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
14254 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
14255 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
14256 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
14257 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
14258 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
14259 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
14260 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
14261 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
14262 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
14263 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
14264 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
14265 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
14266 system-interix.ads, system-solaris-sparc.ads,
14267 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
14268 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
14269 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
14270 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
14271 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
14272 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
14273 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
14274 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
14275 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
14276 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
14277 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
14278 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
14279 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
14280 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
14281 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
14282 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
14283 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
14284 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
14285 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
14286 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
14287 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
14288 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
14289 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
14290 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
14291 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
14292 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
14293 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
14294 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
14295 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
14296 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
14297 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
14298 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
14299 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
14300 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
14301 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
14302 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
14303 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
14304 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
14305 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
14306 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
14307 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
14308 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
14309 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
14310 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
14311 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
14312 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
14313 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
14314 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
14315 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
14316 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
14317 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
14318 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
14319 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
14320 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
14321 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
14322 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
14323 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
14324 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
14325 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
14326 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
14327 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
14328 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
14329 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
14330 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
14331 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
14332 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
14333 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
14334 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
14335 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
14336 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
14337 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
14338 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
14339 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
14340 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
14341 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
14342 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
14343 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
14344 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
14345 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
14346 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
14347 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
14348 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
14349 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
14350 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
14351 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
14352 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
14353 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
14354 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
14355 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
14356 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
14357 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
14358 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
14359 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
14360 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
14361 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
14362 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
14363 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
14364 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
14365 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
14366 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
14367 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
14368 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
14369 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
14370 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
14371 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
14372 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
14373 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
14374 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
14375 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
14376 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
14377 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
14378 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
14379 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
14380 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
14381 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
14382 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
14383 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
14384 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
14385 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
14386 a-numaux-darwin.ads, a-numaux-darwin.adb,
14387 a-swuwha.ads, a-stunha.ads: Minor reformatting
14389 2005-11-14 Robert Dewar <dewar@adacore.com>
14392 * osint-m.adb: Add pragma Elaborate_All for Osint
14394 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
14397 * trans.c (call_to_gnu): Restore statement lost in translation.
14399 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
14401 * init.c: Use the Linux-specific section for the IA-64/Linux target.
14402 (__gnat_adjust_context_for_raise): Add conditional code so that the
14403 IA-64 is also supported.
14405 2005-11-03 James E Wilson <wilson@specifix.com>
14408 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
14409 TREE_OVERFLOW check.
14411 2005-09-21 Olivier Hainque <hainque@adacore.com>
14414 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
14415 as we create them to store a size in bits.
14417 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
14425 * utils2.c (build_return_expr): New helper function.
14426 * gigi.h (build_return_expr): Declare it.
14427 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
14428 of manually building the RETURN_EXPR tree.
14429 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
14430 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
14431 build_binary_op for the "target pointer" case. Use build_return_expr
14432 instead of manually building the RETURN_EXPR tree.
14434 2005-09-16 Laurent GUERBY <laurent@guerby.net>
14437 * s-tpinop.ads: Make this unit Preelaborate.
14439 2005-09-16 Andreas Jaeger <aj@suse.de>
14441 * socket.c: Add string.h for memcpy.
14443 2005-09-05 Arnaud Charlet <charlet@adacore.com>
14445 * dec-io.ads, dec-io.adb: Removed, no longer used.
14447 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14449 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
14451 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
14452 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
14453 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
14454 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
14455 dependent units are Preelaborate.
14456 (Initialize): Call Interrupt_Managemeent.Initialize and
14457 OS_Primitives.Initialize to ensure proper initialization of this unit.
14458 Remove use of System.Soft_Links
14459 Make this unit Preelaborate.
14461 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
14462 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
14463 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
14464 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
14465 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
14466 s-tratas.ads, s-tasinf.ads: Minor reformatting.
14467 Add pragma Preelaborate, since these packages are suitable for this
14471 * s-traent-vms.ads, s-intman-dummy.adb,
14472 s-taprop-dummy.adb: Make this unit Preelaborate.
14474 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
14475 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
14476 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
14477 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
14478 s-intman-solaris.adb, s-intman-irix-athread.adb,
14479 s-intman-irix.adb: Mark this unit Preelaborate.
14480 (Initialize): New procedure.
14483 * s-taspri-linux.ads: Removed.
14485 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
14486 as done by other implementations (e.g. posix).
14488 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
14489 responsible for deferring abort.
14490 Mark this unit Preelaborate.
14492 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
14493 proper initialization of the tasking run-time.
14495 * s-tasdeb.ads: Mark this unit Preelaborate.
14496 (Known_Tasks): Add explicit default value to avoid elaboration code.
14498 * s-inmaop-vms.adb (Elaboration code): Add call to
14499 Interrupt_Management.Initialize since the elaboration code depends on
14500 proper initialization of this package.
14502 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
14503 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
14504 s-osprim-posix.adb: Make this unit Preelaborate.
14506 * a-calend.adb: Add call to OS_Primitives.Initialize
14508 * a-elchha.adb: Update use of Except.Id.Full_Name.
14509 Minor reformatting.
14510 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
14512 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
14513 Move with clauses outside Warnings Off now that dependent units are
14515 Use raise xxx with "..."; Ada 2005 form.
14517 * a-taside.ads, a-taside.adb:
14518 Remove some dependencies, to make it easier to make this unit truly
14520 Rewrite some code to be conformant with Preelaborate rules.
14522 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
14523 marked Preelaborate in the future.
14525 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
14526 these units Preelaborate.
14528 * s-exctab.adb: Update use of Except.Id.Full_Name.
14530 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
14531 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
14532 Set_Exc_Stack_Addr): Removed, no longer used.
14533 Remove reference to *Machine_State_Addr*, no longer needed.
14535 * s-stalib.ads: Mark this unit as Preelaborate[_05].
14536 (Exception_Data): Full_Name is now a System.Address so that this unit
14537 can be made Preelaborate.
14538 Clean up/simplify code thanks to Full_Name being a System.Address.
14539 Remove obsolete pragma Suppress (All_Checks), no longer needed.
14541 * s-taskin.ads, s-taskin.adb:
14542 Move with clauses outside Warnings Off now that dependent units are
14544 Make this unit Preelaborate.
14545 (Initialize): New proceduure, replace elaboration code and makes the
14546 set up of the tasking run-time cleaner.
14547 (Detect_Blocking): Now a function instead of a deferred boolean, to
14548 obey Preelaborate rules.
14550 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
14551 soft links, no longer used.
14553 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
14554 packages are suitable for this categorization.
14556 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
14557 since we compile run-time sources in Ada 2005 mode.
14558 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
14559 avoid having s-taprop*.adb depend on s-soflin and to avoid code
14561 Remove reference to *Machine_State_Addr*, no longer needed.
14563 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14565 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
14566 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
14567 Remove reference to System.Exceptions.
14569 * s-mastop-x86.adb: Removed, no longer used.
14571 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
14573 * a-excach.adb: Minor reformatting.
14575 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
14576 instead fix new warnings that were hidden by this change.
14577 (AAA, ZZZ): Removed, replaced by...
14578 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
14579 are used instead of constants, to help make Ada.Exception truly
14581 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
14582 Raise_Storage_Error): File is now a System.Address, to simplify code.
14583 (Elab code): Removed, no longer used.
14584 (Null_Occurrence): Remove Warnings Off and make this construct
14586 Remove code related to front-end zero cost exception handling, since
14587 it is no longer used.
14588 Remove -gnatL/-gnatZ switches.
14590 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
14591 Update use of Except.Msg.
14593 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
14594 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
14595 to front-end zero cost exception handling, since it is no longer used.
14596 Remove -gnatL/-gnatZ switches.
14598 * lib-writ.ads: Minor reformatting
14601 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
14603 * Make-lang.in: Remove references to s-except.ads
14605 * s-except.ads: Removed, no longer used.
14607 * s-mastop.ads, s-mastop.adb:
14608 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
14609 Remove reference to System.Exceptions.
14611 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
14612 switch-b.adb: Remove code related to front-end zero cost exception
14613 handling, since it is no longer used.
14614 Remove -gnatL/-gnatZ switches.
14616 2005-09-01 Robert Dewar <dewar@adacore.com>
14617 Gary Dismukes <dismukes@adacore.com>
14618 Javier Miranda <miranda@adacore.com>
14620 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
14621 type by valid test and generate warning.
14622 (Tagged_Membership): Generate call to the run-time
14623 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
14624 Change formal name Subtype_Mark to Result_Definition in several calls to
14625 Make_Function_Specification.
14626 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
14627 check for proper accessibility of the operand of a class-wide allocator.
14628 The check can be left out if checks are suppressed or if the expression
14629 has a specific tagged type whose level is known to be safe.
14631 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
14632 generates the run-time check associated with null-excluding entities.
14633 (Expand_N_Return_Statement): Add tests to determine if the accessibility
14634 check on the level of the return expression of a class-wide function
14635 can be elided. The check usually isn't needed if the expression has a
14636 specific type (unless it's a conversion or a formal parameter). Also
14637 add a test for whether accessibility checks are suppressed. Augment
14638 the comments to describe the conditions for performing the check.
14640 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
14641 Javier Miranda <miranda@adacore.com>
14642 Gary Dismukes <dismukes@adacore.com>
14643 Ed Schonberg <schonberg@adacore.com>
14645 * a-tags.adb (IW_Membership): Give support to
14646 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
14647 subprogram has been extended to look for the tag in the ancestors tag
14649 Update the structure of the GNAT Dispatch Table to reflect the
14650 additional two tables used in dispatching selects.
14651 Introduce appropriate array types and record components in
14652 Type_Specific_Data to reflect the two tables.
14653 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
14654 the TSD of a tag, indexed by position.
14655 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
14656 operation kind in the TSD of a tag, indexed by position.
14658 * a-tags.ads: Introduce an enumeration type to capture different
14659 primitive operation kinds. Define a constant reflecting the number of
14660 predefined primitive operations.
14661 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
14662 of an entry wrapper.
14663 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
14664 callable entity of a primitive operation.
14666 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
14667 primitive operations used in dispatching selects for limited
14668 interfaces, limited tagged, task and protected types what implement a
14670 (Freeze_Type): Generate the bodies of the primitive operations used in
14671 dispatching selects for limited tagged, task and protected types that
14672 implement a limited interface. Generate statements to populate the two
14673 auxiliary tables used for dispatching in select statements.
14674 (Freeze_Record_Type): Add call to initialize the dispatch table entries
14675 associated with predefined interface primitive operations.
14676 (Build_Dcheck_Function): Change Set_Subtype_Mark to
14677 Set_Result_Definition.
14678 (Build_Variant_Record_Equality): Change Subtype_Mark to
14680 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
14681 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
14682 (Build_Assignment): Simplify the code that adds the run-time-check.
14683 (Expand_N_Object_Declaration): Code cleanup.
14685 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
14686 entries when there is a protected type that implements a limited
14689 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
14690 common routines used in expansion of dispatching selects.
14691 (Add_Private_Declarations): Select the appropriate protection type when
14692 there is a protected type that implements a limited interface.
14693 (Build_Parameter_Block): Generate a wrapped parameter block.
14694 (Build_Protected_Subprogram_Body): Select the appropriate type for
14695 locking entries when there is a protected type that implements a
14697 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
14698 classified as entry wrappers.
14699 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
14700 asynchronous selects.
14701 (Expand_N_Conditional_Entry_Call): Add support for expansion of
14702 dispatching conditional selects.
14703 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
14704 protection when there is a protected type that implements limited
14706 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
14708 (Extract_Dispatching_Call): Extract the entity of the name of a
14709 dispatching call, the object parameter, actual parameters and
14710 corresponding formals.
14711 (Make_Initialize_Protection): Correct logic of protection initialization
14712 when there is a protected type that implements a limited interface.
14713 (Parameter_Block_Pack): Populate a wrapped parameter block with the
14714 values of actual parameters.
14715 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
14716 block and assign them to the original actual parameters.
14718 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
14719 (Build_Protected_Sub_Specification): Change the type and name of the
14720 last formal to account for the increased variety of protection modes.
14722 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
14723 entities. Used to save the value of the Is_Hidden attribute when the
14724 limited-view is installed.
14725 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
14726 the attribute of procedures classified as entry wrappers.
14727 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
14728 entity of a primitive wrapper.
14729 (Write_Entity_Flags): Output the name and value of the
14730 Is_Primitive_Wrapper attribute.
14731 (Write_Field27_Name): Output the name and entity of the field Wrapped_
14733 (Underlying_Type): If we have an incomplete entity that comes from
14734 the limited view then we return the Underlying_Type of its non-limited
14735 view if it is already available.
14736 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
14737 including operators.
14738 (Write_Field26_Name): Add entry for Overridden_Operation
14739 (Overridden_Operation): New attribute of functions and procedures.
14741 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
14742 predefined position in the dispatch table for the primitive operations
14743 used in dispatching selects.
14744 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
14745 predefined primitive operations and replace it with
14746 Default_Prim_Op_Count.
14747 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
14748 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
14749 the names of the generated primitive operations used in dispatching
14751 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
14752 case of abstract interface types. They will be inherit by the objects
14753 implementing the interface.
14754 (Make_DT): There is no need to inherit the dispatch table of the
14755 ancestor interface for the elaboration of abstract interface types.
14756 The dispatch table will be inherited by the object implementing the
14758 (Copy_Secondary_DTs): Add documentation.
14759 (Validate_Position): Improve this static check in case of
14760 aliased subprograms because aliased subprograms must have
14762 (Init_Predefined_Interface_Primitives): New subprogram that initializes
14763 the entries associated with predefined primitives of all the secondary
14765 (Build_Anonymous_Access_Type): Removed.
14766 (Expand_Interface_Actuals): With the previous cleanup there is no need
14767 to build an anonymous access type. This allows further cleanup in the
14768 code generated by the expander.
14769 (Expand_Interface_Conversion): If the actual is an access type then
14770 build an internal function to handle the displacement. If the actual
14771 is null this function returns null because no displacement is
14772 required; otherwise performs a type conversion that will be
14773 expanded in the code that returns the value of the displaced actual.
14774 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
14775 conversions that have no effect in the generated code because no
14776 displacement is required. Code cleanup; use local variables to
14777 avoid repeated calls to the subprogram directly_designated_type().
14779 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
14780 Classify the primitive operations used in dispatching selects as
14782 (Implements_Limited_Interface): Determine whether some type either
14783 directly implements a limited interface or extends a type that
14784 implements a limited interface.
14785 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
14786 (Expand_Subtype_From_Expr): Do not build actual subtype if the
14787 expression is limited.
14788 (Find_Interface_Tag): Add code to handle class-wide types and
14789 entities from the limited-view.
14791 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
14792 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
14793 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
14794 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
14797 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
14798 of procedure name or prefix that appears as a trigger in a triggering
14801 * uintp.ads: Introduce constants Uint_11 and Uint_13.
14803 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14805 * s-tataat.adb, a-tasatt.adb:
14806 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
14808 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
14809 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
14810 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
14813 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14814 Jose Ruiz <ruiz@adacore.com>
14816 * s-taprop-vxworks.adb:
14817 Move with clauses outside Warnings Off now that dependent units are
14819 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
14820 initialization of this unit.
14821 (Specific): Add new procedures Initialize and Delete so that this
14822 package can be used for VxWorks 5.x and 6.x
14823 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
14824 differences between VxWorks 5.x and 6.x
14825 Minor reformatting.
14826 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
14828 Use only Preelaborate-compatible constructs.
14830 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
14831 Primitives.Operations.
14832 (Delete, Initialize): New procedures.
14834 * s-osinte-vxworks.adb: Body used to handle differences between
14835 VxWorks 5.x and 6.x
14836 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
14838 * s-osinte-vxworks.ads: Minor reformatting.
14839 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
14840 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
14842 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
14843 between Vxworks 5 and 6.
14844 (taskLock, taskUnlock): Removeed, no longer used.
14846 * adaint.c: The wait.h header is not located in the sys directory on
14847 VxWorks when using RTPs.
14848 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
14850 (__gnat_dup): dup is available on Vxworks when using RTPs.
14851 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
14853 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
14855 * expect.c: The wait.h header is not located in the sys directory on
14856 VxWorks when using RTPs.
14858 2005-09-01 Thomas Quinot <quinot@adacore.com>
14860 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
14862 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
14864 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
14865 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
14866 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
14867 g-soccon-freebsd.ads: Add new constants:
14869 SO_RCVTIMEO/SO_SNDTIMEO
14873 Move all target-specific file inclusions and macro definitions to
14874 gsocket.h, in order to ensure that any C code in socket.c will see a
14875 set of constants that is consistent with the contents of g-soccon.ads.
14877 * gsocket.h: Code imported from gen-soccon.c:
14878 Move all target-specific file inclusions and macro definitions to
14879 gsocket.h, in order to ensure that any C code in socket.c will see a set
14880 of constants that is consistent with the contents of g-soccon.ads.
14881 This change also makes gen-soccon self-contained (removing dependencies
14882 upon GCC internal headers).
14884 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
14886 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
14888 * socket.c: Minor reformatting.
14890 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14891 Thomas Quinot <quinot@adacore.com>
14893 * fname-sf.adb, mlib-tgt.ads,
14894 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
14895 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
14896 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
14897 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
14898 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
14899 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
14900 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
14901 makegpr.adb: Remove redundant use_clauses.
14903 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14905 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
14906 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
14907 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
14908 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
14909 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
14910 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
14911 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
14912 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
14913 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
14914 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
14915 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
14916 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
14917 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
14918 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
14919 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
14920 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14921 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
14922 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
14923 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
14924 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
14925 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
14926 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
14927 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
14928 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
14929 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
14930 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
14931 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
14932 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
14933 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
14934 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
14935 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
14936 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
14937 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
14938 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
14939 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
14940 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
14941 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
14942 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
14943 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
14944 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
14945 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
14946 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
14947 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
14948 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
14949 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
14950 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
14951 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
14952 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
14953 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
14954 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
14955 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
14956 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
14957 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
14958 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
14959 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
14960 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
14961 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
14962 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
14963 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
14964 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
14965 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
14966 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
14967 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
14968 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
14969 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
14970 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
14971 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
14972 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
14973 and always use the no parameter form for consistency.
14975 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
14977 2005-09-01 Robert Dewar <dewar@adacore.com>
14979 * binde.adb: Minor reformatting
14980 (Find_Elab_Order): Output warning if -p used with static elab order
14982 2005-09-01 Robert Dewar <dewar@adacore.com>
14984 * checks.adb (Check_Needed): New procedure, deals with removing checks
14985 based on analysis of short-circuited forms. Also generates warnings for
14986 improper use of non-short-circuited forms.
14989 2005-09-01 Robert Dewar <dewar@adacore.com>
14991 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
14994 2005-09-01 Robert Dewar <dewar@adacore.com>
14996 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
14998 Implement new insertion char < (conditional warning)
14999 * errutil.adb, erroutc.adb: Implement new insertion char <
15000 (conditional warning).
15001 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
15002 (Error_Msg_Warn): New variable for < insertion char.
15003 * prj-nmsc.adb: Implement new errout insertion char < (conditional
15005 (Check_For_Source): Change value of Source_Id only after the current
15006 source has been dealt with.
15008 2005-09-01 Robert Dewar <dewar@adacore.com>
15009 Doug Rupp <rupp@adacore.com>
15011 * exp_attr.adb: Handle vax fpt for 'Valid attribute
15012 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
15013 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
15014 (Valid_D, Valid_F, Valid_G): New functions
15016 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15017 Hristian Kirtchev <kirtchev@adacore.com>
15018 Javier Miranda <miranda@adacore.com>
15020 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
15021 from object notation, the original node is unanalyzed and carries no
15022 semantic information, so that accessiblity checks must be performed on
15023 the type of the actual itself.
15024 (Expand_N_Subprogram_Declaration): Change last actual parameter for
15025 compatibility with Build_Protected_Sub_Specification.
15026 (Check_Overriding_Inherited_Interfaces): Add suport to handle
15027 overloaded primitives.
15028 (Register_Interface_DT_Entry): Use the new name of the formal
15029 the the calls to Expand_Interface_Thunk
15031 * exp_dbug.ads: Augment comments on encoding of protected types to
15032 include the generation of dispatching subprograms when the type
15033 implements at least one interface.
15035 * lib.ads: Extend information in Load_Stack to include whether a given
15036 load comes from a Limited_With_Clause.
15038 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
15039 whether a potential circularity is harmless, because it includes units
15040 loaded through a limited_with clause. Extends previous treatment which
15041 did not handle properly arbitrary combinations of limited and
15042 non-limited clauses.
15044 2005-09-01 Nicolas Setton <setton@adacore.com>
15046 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
15047 to be encoded as typ___XBLU_lowerbound__upperbound instead of
15048 typ___XB_lowerbound__upperbound.
15050 2005-09-01 Thomas Quinot <quinot@adacore.com>
15052 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
15053 dummy access formal for RACW/RAS TypeCode TSS.
15054 (Build_TypeCode_Call): Do not generate dummy null access actual for
15055 calls to the TypeCode TSS.
15057 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15059 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
15060 fully qualified name, to distinguish instances with the same local name.
15062 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
15065 2005-09-01 Robert Dewar <dewar@adacore.com>
15067 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
15070 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
15072 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
15073 (Free): New deallocation procedure for filter elements
15074 (Close): Deallocate any existing filter for the concerned connection
15076 2005-09-01 Laurent Pautet <pautet@adacore.com>
15078 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
15079 position set is provided, we compute one in order to reduce the maximum
15080 length of the keys. This computation first selects a character
15081 position between 1 and the minimum length of the keys in order to
15082 avoid reducing one of the keys to an empty string.
15083 (Initialize, Compute): When the ratio V to K is too low, the algorithm
15084 does not converge. The initialization procedure now comes with a
15085 maximum number of iterations such that when exceeded, an exception is
15086 raised in Compute. The user can initialize this ratio to another value
15088 Reformating and updated headers.
15090 2005-09-01 Javier Miranda <miranda@adacore.com>
15092 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
15093 that given an entity T creates and returns an Itype that duplicates the
15094 contents of T. The returned Itype has the null-exclusion
15095 attribute set to True, and its Etype attribute references T
15096 to keep the association between the two entities.
15097 Update copyright notice
15099 * sem_aggr.adb (Check_Can_Never_Be_Null,
15100 Aggregate_Constraint_Checks, Resolve_Aggregate,
15101 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
15103 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
15105 2005-09-01 Gary Dismukes <dismukes@adacore.com>
15106 Robert Dewar <dewar@adacore.com>
15107 Hristian Kirtchev <kirtchev@adacore.com>
15109 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
15112 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
15114 Call Set_Result_Definition instead of Set_Subtype_Mark.
15115 (P_Subprogram_Specification): Add parsing of anonymous access result
15116 plus null exclusions. Call Set_Result_Definition instead of
15119 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
15120 (P_Access_Type_Definition): Add parsing for an anonymous access result
15121 subtype, plus parsing for null exclusions. Call Set_Result_Definition
15122 instead of Set_Subtype_Mark.
15124 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
15125 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
15126 (Result_Definition): New function for N_Function_Specifications.
15127 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
15128 N_Function_Specification.
15129 (Set_Null_Exclusion_Present): Allow this flag for
15130 N_Function_Specification.
15131 (Set_Result_Definition): New procedure for N_Function_Specifications.
15132 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
15133 and N_Function_Specification.
15135 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
15136 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
15137 Add support for LIMITED NEW for Ada 2005 AI-419
15138 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
15139 syntax for anonymous access results.
15140 Replace Subtype_Mark field by Result_Definition in
15141 N_Function_Specification and N_Access_Definition specs.
15142 Add Null_Exclusion_Present to spec of N_Function_Specification.
15143 (Result_Definition): New function for N_Function_Specification and
15144 N_Access_Function_Definition.
15145 (Set_Result_Definition): New procedure for N_Function_Specification and
15146 N_Access_Function_Definition.
15148 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
15149 Result_Definition for cases of N_Access_Function_Definition and
15150 N_Function_Specification.
15151 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
15153 2005-09-01 Vincent Celier <celier@adacore.com>
15155 * lib-writ.adb: Update Copyright notice
15156 (Write_With_Lines): On platforms where file names are case-insensitive,
15157 record the file names in lower case.
15158 (Write_ALI): For D lines, on platforms where file names are
15159 case-insensitive, record the file names in lower case.
15161 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15162 Emmanuel Briot <briot@adacore.com>
15164 * lib-xref.adb (Output_Overridden_Op): Display information on
15165 overridden operation.
15167 * lib-xref.ads: Add documentation on overridden operations.
15169 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
15172 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
15173 overriding entity information.
15175 2005-09-01 Vincent Celier <celier@adacore.com>
15177 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
15178 including those that are inherited.
15180 2005-09-01 Robert Dewar <dewar@adacore.com>
15182 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
15184 * par-prag.adb: Implement new pragma Debug_Policy
15186 * sem_prag.adb Implement new pragma Debug_Policy
15187 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
15188 Component_Size attribute specification. Give warning for ignored pragma
15191 * snames.h, snames.ads, snames.adb: Introduce entries in
15192 Preset_Names for Name_Disp_Asynchronous_Select,
15193 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
15194 Name_Disp_Timed_Select.
15195 New pragma Debug_Policy
15197 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
15199 Switch -gnata also sets Debug_Pragmas_Enabled
15201 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
15202 handle an explicit -gnata when compiling predefined files.
15204 2005-09-01 Vincent Celier <celier@adacore.com>
15206 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
15207 directories of projects that have no Ada sources.
15209 2005-09-01 Robert Dewar <dewar@adacore.com>
15211 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
15212 (makes a difference for wide characters)
15214 * widechar.adb, widechar.ads:
15215 Add Wide_Char_Byte_Count feature to count chars vs bytes
15217 2005-09-01 Thomas Quinot <quinot@adacore.com>
15218 Ed Schonberg <schonberg@adacore.com>
15219 Robert Dewar <dewar@adacore.com>
15221 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
15222 'Address attribute reference with an overloaded prefix, use the
15223 location of the prefix (not the location of the attribute reference) as
15224 the error location.
15225 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
15226 a function renaming thereof, is a valid prefix for 'Size (where it is
15227 intepreted as a function call).
15228 (Statically_Denotes_Entity): New predicate to determine whether the
15229 prefix of an array attribute can be considered static.
15232 (Eval_Attr): Fix failure to evaluate Component_Size for
15233 unconstrained arrays (resulted in wrong value in packed case, since
15234 back end cannot handle this case)
15236 2005-09-01 Robert Dewar <dewar@adacore.com>
15238 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
15239 error msgs for most common cases.
15240 Use new errout insertion char < (conditional warning)
15242 2005-09-01 Javier Miranda <miranda@adacore.com>
15243 Ed Schonberg <schonberg@adacore.com>
15245 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
15246 become local to the whole package.
15247 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
15248 the package was already analyzed the new algorithm "replaces" the
15249 real entities by the shadow ones. This is required to ensure that
15250 the order of these entities in the homonym chains does not change;
15251 otherwise we can have undefined references at linking time because
15252 in case of conflicts the external name of the entities will have
15253 a suffix that depends on the order of the entities in the chain.
15254 (Remove_Limited_With_Clause): Complementary code that completes the
15255 new algorithm and replaces the shadow entities by the real ones.
15256 (Install_Limited_Withed_Unit): When unchaining entities before the
15257 installation of the shadow entities, only regular entities of the
15258 public part must be taken into account. This is required to
15259 keep this routine in synch with the work done by Remove_Limited_
15261 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
15262 even if unit is analyzed, because the analysis of the unit is
15263 idempotent in any case, and the limited view of the unit may have to
15264 be installed for proper visibility.
15265 (Expand_Limited_With_Clause): Even if the unit in the implicit
15266 with_clause has been analyzed already, a limited view of the package
15267 must be built for the current context, if it does not exist yet.
15269 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15270 Javier Miranda <miranda@adacore.com>
15271 Gary Dismukes <dismukes@adacore.com>
15273 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
15274 defining entity for the instance body, make a new defining identifier
15275 rather than copying the entity of the spec, to prevent accidental
15276 sharing of the entity list.
15277 (Check_Private_View): When exchanging views of private types, build the
15278 list of exchanged views as a stack, to ensure that on exit the exchanges
15279 are undone in the proper order.
15280 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
15281 Restore the compilation environment in case of instantiation_error.
15282 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
15283 for an anonymous access result.
15284 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
15285 (Formal_Entity): Handle properly the case of a formal package that
15286 denotes a generic package renaming.
15288 2005-09-01 Thomas Quinot <quinot@adacore.com>
15290 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
15291 clause if the array aggregate is surrounded by parentheses.
15293 2005-09-01 Cyrille Comar <comar@adacore.com>
15294 Gary Dismukes <dismukes@adacore.com>
15295 Ed Schonberg <schonberg@adacore.com>
15296 Javier Miranda <miranda@adacore.com>
15298 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
15300 to check if a type is Constrained in cases related to code generation
15301 (rather than semantic checking) since otherwise we do not generate
15302 similar code for mutable private types depending if their
15303 discriminants are visible or not.
15304 (Check_Abstract_Overriding): Do not complain about failure to override
15305 the primitive operations used in dispatching selects since they will
15306 always be overriden at the freeze point of the type.
15307 (Access_Definition): Separate out handling for resetting the scope
15308 of an anonymous access function result type. Retrieve the scope
15309 of the associated function rather than using Current_Scope, which
15310 does not have a consistent value (depends on whether we're in the
15311 middle of analyzing formal parameters). Add ??? comment about
15312 finding a cleaner way to handle the special cases of scope setting.
15313 (Process_Incomplete_Dependents): A protected operation is never a
15314 dispatching operation (only its wrapper may be).
15315 (Build_Derived_Record_Type): In case of tagged private types that
15316 implement interfaces add derivation of predefined primitive
15318 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
15319 by two parameters that are used in case of derivation from abstract
15320 interface types: No_Predefined_Prims is used to avoid the derivation
15321 of predefined primitives from the interface, and Predefined
15322 Prims_Only is used to complete the derivation predefined primitives
15323 in case of private tagged types implementing interfaces.
15324 Fix typo in comments
15325 (Find_Interface_In_Descendant): Protect the frontend against
15326 wrong code with large circularity chains.
15327 (Is_Private_Overriding): Add support for entities overriding interface
15328 subprograms. The test failed because Entities associated with overriden
15329 interface subprograms are always marked as hidden (and used to build
15330 the secondary dispatch table); in this case the overriden entity is
15331 available through the field abstract_interface_alias (cf. override_
15332 dispatching_operation)
15333 (Access_Definition): Set the scope of the type to Current_Scope for the
15334 case of a function with an anonymous access result type.
15335 (Access_Subprogram_Declaration): Handle creation of the type entity for
15336 an access-to-function type with an anonymous access result.
15337 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
15338 in handling for N_Access_Function_Definition.
15339 (Analyze_Subtype_Declaration): Modify the text of error message.
15340 (Derived_Type_Declaration): Modify the text of error message.
15341 (Process_Subtype): Modify the text of error message plus cleanup
15342 of one redundant error message.
15343 (Analyze_Component_Declaration): Code cleanup.
15344 (Analyze_Object_Declaration): Code cleanup.
15345 (Analyze_Subtype_Declaration): Propagate the null-exclusion
15346 attribute in case of access types. Code cleanup.
15347 (Array_Type_Declaration): Code cleanup.
15348 (Process_Discriminants): Create the new null-excluding itype
15349 if required. Code cleanup.
15350 (Process_Subtype): Create the new null-excluding itype if
15351 required. Code cleanup.
15352 (Build_Derived_Record_Type): Code cleanup to avoid calling
15353 twice the subprogram derive_subprograms in case of private
15354 types that implement interfaces. In this particular case the
15355 subprogram Complete_Subprograms_Derivation already does the
15356 job associated with the second call.
15358 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
15359 conversion to the full view when generating an operation for a
15360 discriminant whose type may currently be private.
15362 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15363 Javier Miranda <miranda@adacore.com>
15365 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
15366 V (Obj.F), the rewriting does not involve the indexed component, but
15367 only the selected component itself.
15368 Do not apply the transformation if the analyzed node is an actual of a
15369 call to another subprogram.
15370 (Complete_Object_Operation): Retain the entity of the
15371 dispatching operation in the selector of the rewritten node. The
15372 entity will be used in the expansion of dispatching selects.
15373 (Analyze_One_Call): Improve location of the error message associated
15375 (Analyze_Selected_Component): No need to resolve prefix when it is a
15376 function call, resolution is done when parent node is resolved, as
15378 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
15379 when attempting to resolve a call transformed from its object notation.
15380 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
15381 of the argument list for each interpretation of the operation.
15382 (Try_Object_Operation): The designated type of an access parameter may
15383 be an incomplete type obtained through a limited_with clause, in which
15384 case the primitive operations of the type are retrieved from its full
15386 (Analyze_Call): If this is an indirect call, and the return type of the
15387 access_to_subprogram is incomplete, use its full view if available.
15389 2005-09-01 Javier Miranda <miranda@adacore.com>
15390 Gary Dismukes <dismukes@adacore.com>
15392 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
15393 access types the null-exclusion and access-to-constant attributes must
15395 (Analyze_Return_Statement): When the result type is an anonymous access
15396 type, apply a conversion of the return expression to the access type
15397 to ensure that appropriate accessibility checks are performed.
15398 (Analyze_Return_Type): For the case of an anonymous access result type,
15399 generate the Itype and set Is_Local_Anonymous_Access on the type.
15400 Add ??? placeholder for check to disallow returning a limited object
15401 in Ada 2005 unless it's an aggregate or a result of a function call.
15402 Change calls from Subtype_Mark to Result_Definition.
15403 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
15404 Result_Definition in call to Make_Function_Specification.
15405 (Build_Body_To_Inline): Change Set_Subtype_Mark to
15406 Set_Result_Definition.
15407 (Make_Inequality_Operator): Change formal Subtype_Mark to
15408 Result_Definition in call to Make_Function_Specification.
15409 (Process_Formals): Create the new null-excluding itype if required.
15410 (New_Overloaded_Entity): For an entity overriding an interface primitive
15411 check if the entity also covers other abstract subprograms in the same
15412 scope. This is required to handle the general case, that is, overriding
15413 other interface primitives and overriding abstract subprograms inherited
15414 from some abstract ancestor type.
15415 (New_Overloaded_Entity): For an overriding entity that comes from
15416 source, note the operation that it overrides.
15417 (Check_Conformance, Type_Conformant): Addition of one new formal
15418 to skip controlling formals in the analysis. This is used to
15419 handle overloading of abstract interfaces.
15420 (Base_Types_Match): Add missing case for types imported from
15421 limited-with clauses
15422 (New_Overloaded_Entity): Add barrier to protect the use of
15423 the "alias" attribute.
15425 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15427 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
15428 verify that the procedure and the entry are mode conformant.
15429 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
15430 as a different operator, which is often a cut-and-paste error.
15432 2005-09-01 Javier Miranda <miranda@adacore.com>
15433 Ed Schonberg <schonberg@adacore.com>
15435 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
15436 used in controlling parameters exclude null because it is necessary to
15437 read the tag to dispatch, and null has no tag.
15438 (Override_Dispatching_Operation): If the previous operation is inherited
15439 from an interface, it becomes hidden and does not participate in later
15442 2005-09-01 Javier Miranda <miranda@adacore.com>
15443 Ed Schonberg <schonberg@adacore.com>
15444 Gary Dismukes <dismukes@adacore.com>
15446 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
15447 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
15448 the expander will generate the corresponding run-time check to evaluate
15450 (Resolve_Call): Check for legal type of procedure name or prefix that
15451 appears as a trigger in a triggering alternative.
15452 (Valid_Conversion): If expression is ambiguous and the context involves
15453 an extension of System, remove System.Address interpretations.
15454 (Resolve_Qualified_Expression): Reject the case of a specific-type
15455 qualification applied to a class-wide argument. Enhance comment
15456 to explain checking of Original_Node.
15457 (Resolve_Type_Conversion): The location of the error message was not
15458 general enough to handle the general case and hence it has been removed.
15459 In addition, this patch improves the text of the message.
15460 (Resolve_Type_Conversion): Add missing support for access to interface
15462 (Resolve_Type_Conversion): If the target is a class-wide interface type,
15463 do not expand if the expression is the actual in a call, because proper
15464 expansion will take place when the call itself is expanded.
15465 (Resolve_Allocator): If the context is an unchecked conversion, the
15466 allocator inherits its storage pool, if any, from the target type of
15469 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15470 Javier Miranda <miranda@adacore.com>
15472 * sem_type.adb (Add_One_Interp): If a candidate operation is an
15473 inherited interface operation that has an implementation, use the
15474 implementation to avoid spurious ambiguities.
15475 (Interface_Present_In_Ancestor): In case of concurrent types we can't
15476 use the Corresponding_Record_Typ attribute to look for the interface
15477 because it is set by the expander (and hence it is not always
15478 available). For this reason we traverse the list of interfaces
15479 (available in the parent of the concurrent type).
15480 (Interface_Present_In_Ancestor): Handle entities from the limited view
15482 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15484 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
15485 from the list of required components.
15486 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
15487 primitive procedure of a limited interface with a controlling first
15489 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
15491 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
15492 capture if it is generated in the second operand of a short-circuit
15494 Do not capture values for variables with address clauses.
15495 (Is_Object_Reference): Treat a function call as an object reference only
15496 if its type is not Standard_Void_Type.
15498 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15500 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
15501 to a variable that is statically known to be constant.
15503 2005-09-01 Geert Bosch <bosch@adacore.com>
15504 Robert Dewar <dewar@adacore.com>
15506 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
15507 (VAXGF_Safe_First): Idem.
15509 2005-09-01 Robert Dewar <dewar@adacore.com>
15510 Arnaud Charlet <charlet@adacore.com>
15512 * g-dirope.ads: Minor reformatting
15513 Document that bounds of result of Base_Name match the input index
15515 Add documentation on environment variable syntax for Expand_Path
15517 * gnat_ugn.texi: Update documentation to include mention of -m switches
15518 Document new treatment of wide characters in max line length
15520 Remove -gnatL/-gnatZ switches, no longer used.
15521 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
15524 * gnat_rm.texi: Add doc for two argument form of pragma
15525 Float_Representation.
15526 Add documentation for pragma No_Strict_Aliasing
15527 Add note that explicit component clause overrides pragma Pack.
15528 Add documentation of pragma Debug_Policy
15530 2005-09-01 Matthew Heaney <heaney@adacore.com>
15532 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
15533 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
15534 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
15535 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
15536 draft (Draft 13, August 2005) of Ada Amendment 1.
15538 2005-09-01 Arnaud Charlet <charlet@adacore.com>
15540 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
15541 Note that the platform-specific version of g-soccon.ads for VMS is now
15542 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
15543 really is a package spec).
15544 Replace s-taspri-linux.ads by s-taspri-posix.ads
15545 Remove references to s-mastop-x86.adb
15547 * system-vxworks-xscale.ads: Removed, no longer used.
15548 * s-vxwork-xscale.ads: Removed, no longer used.
15550 2005-09-01 Robert Dewar <dewar@adacore.com>
15552 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
15553 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
15554 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
15555 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
15556 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
15557 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
15558 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
15559 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
15560 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
15561 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
15562 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
15563 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
15564 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
15565 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
15566 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
15567 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
15568 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
15569 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
15570 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
15571 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
15572 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
15574 2005-08-29 Arnaud Charlet <charlet@adacore.com>
15578 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
15580 2005-08-29 Arnaud Charlet <charlet@adacore.com>
15581 Doug Rupp <rupp@adacore.com>
15583 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
15585 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
15586 this code in the GNAT run-time.
15588 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
15591 * init.c (__gnat_error_handler [many]): Mark "msg" as const
15592 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
15594 (__gnat_inside_elab_final_code): Moved here from
15595 Standard_Library and only defined for the compiler.
15596 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
15597 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
15598 using RTPs because directly vectored Interrupt routines are not
15599 supported on this configuration.
15600 (getpid): Do not redefine this function on VxWorks when using RTPs
15601 because this primitive is well supported by the RTP libraries.
15602 (copy_msg): Correct the code that checks for buffer overflow.
15603 Discovered during code reading.
15605 2005-08-29 Olivier Hainque <hainque@adacore.com>
15607 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
15608 a library level mutable variable with an initializer, tell
15609 build_allocator to ignore the initializer's size. It may not be large
15610 enough for all the values that might be assigned to the variable later
15613 2005-08-29 Arnaud Charlet <charlet@adacore.com>
15614 Eric Botcazou <ebotcazou@adacore.com>
15616 * trans.c: Protect < in error msg with quote
15617 Replace GCC_ZCX by Back_End_Exceptions.
15618 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
15619 has been sufficiently aligned in the record.
15621 2005-08-15 James E. Wilson <wilson@specifix.com>
15623 * system-linux-alpha.ads: Change ia64 to alpha.
15625 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
15627 * decl.c, utils.c: Fix comment typos.
15629 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
15631 * decl.c, init.c, initialize.c: Fix comment typos.
15633 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
15635 Make CONSTRUCTOR use VEC to store initializers.
15636 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
15638 * trans.c (extract_values): Likewise.
15639 * utils.c (convert, remove_conversions): Likewise.
15640 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
15641 gnat_build_constructor): Likewise.
15643 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
15645 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
15647 (compare_field_bitpos): Likewise.
15649 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
15651 * utils.c (create_var_decl): Only set DECL_COMMON on
15652 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
15653 VAR_OR_FUNCTION_DECL_P.
15655 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
15657 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
15660 2005-07-07 Pascal Obry <obry@adacore.com>
15662 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
15663 returned type on Windows.
15665 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
15668 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
15669 exception in this case.
15670 Simplify the code as "Image (Image'Range)" = "Image".
15672 2005-07-07 Vincent Celier <celier@adacore.com>
15674 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
15675 the destructor/constructor attributes for <lib>final/<lib>init.
15677 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
15679 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
15681 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
15682 type if the parameter is not passed by copy but reference by default.
15684 2005-07-07 Javier Miranda <miranda@adacore.com>
15686 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
15687 Reimplementation of the support for abstract interface types in order
15688 to leave the code more clear and easy to maintain.
15690 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
15691 abstract interface types in order to leave the code clearer and easier
15694 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
15695 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
15696 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
15697 appropriate entry of the secondary dispatch table.
15698 (Make_DT): Add code to inherit the secondary dispatch tables of
15701 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
15702 implementing both functionalities by means of a common routine, each
15703 routine has its own code.
15705 2005-07-07 Javier Miranda <miranda@adacore.com>
15707 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
15709 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
15712 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
15715 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
15716 use of tag incomplete types.
15718 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
15719 give support to tagged incomplete types.
15721 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
15722 expression is a discriminant reference and its type is private, as can
15723 happen within a stream operation for a mutable record, use the full
15724 view of the type to resolve the case alternatives.
15725 (Analyze_Assignment): Check wrong dereference of incomplete types.
15727 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
15730 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
15733 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
15734 N_Incomplete_Type_Declaration nodes.
15736 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
15737 Tag_Present to give support to tagged incomplete types:
15739 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
15742 2005-07-07 Olivier Hainque <hainque@adacore.com>
15745 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
15746 definitions for the Unwind wrappers in the compiler case.
15748 2005-07-07 Ed Schonberg <schonberg@adacore.com>
15749 Javier Miranda <miranda@adacore.com>
15751 * par-load.adb (Load): If a child unit is loaded through a limited_with
15752 clause, each parent must be loaded as a limited unit as well.
15754 * sem_ch10.adb (Previous_Withed_Unit): Better name for
15755 Check_Withed_Unit. Return true if there is a previous with_clause for
15756 this unit, whether limited or not.
15757 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
15759 (Is_Visible_Through_Renamings): New local subprogram of install_limited
15760 _withed_unit that checks if some package installed through normal with
15761 clauses has a renaming declaration of package whose limited-view is
15762 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
15763 of the current Draft document for Ada 2005.
15764 (Analyze_Context): Complete the list of compilation units that
15765 are allowed to contain limited-with clauses. It also contains
15766 checks that were previously done by Install_Limited_Context_Clauses.
15767 This makes the code more clear and easy to maintain.
15768 (Expand_Limited_With_Clause) It is now a local subprogram of
15769 Install_Limited_Context_Clauses, and contains the code that adds
15770 the implicit limited-with clauses for parents of child units.
15771 This functionality was prevously done by Analyze_Context.
15773 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
15776 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
15777 been erroneously named in a limited-with clause of its own context.
15778 In this case the error has been previously notified by Analyze_Context.
15780 2005-07-07 Ed Schonberg <schonberg@adacore.com>
15782 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
15783 generic package that contains local declarations with the same name.
15784 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
15786 2005-07-07 Bernard Banner <banner@adacore.com>
15788 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
15789 ia64 platform only on platforms that you the GCC unwind library
15790 rather than the system unwind library.
15792 2005-07-07 Thomas Quinot <quinot@adacore.com>
15794 * expect.c: Minor reformatting
15796 2005-07-07 Sergey Rybin <rybin@adacore.com>
15798 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
15801 * gnat_ugn.texi: Add description for new gnatpp option
15804 2005-07-04 Thomas Quinot <quinot@adacore.com>
15806 * g-expect-vms.adb, g-expect.ads, g-expect.adb
15807 (Get_Command_Output): New subprogram to launch a process and get its
15808 standard output as a string.
15810 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
15811 Olivier Hainque <hainque@adacore.com>
15813 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
15814 fetch a code-range descriptor associated with the machine state. On
15815 failure set the machine state's PC to 0; on success, pass the
15816 descriptor to exc_virtual_unwind.
15818 * init.c (Tru64 section): New function __gnat_set_code_loc.
15820 2005-07-04 Vincent Celier <celier@adacore.com>
15822 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15823 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
15824 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
15825 Remove all auto-initialization code, as this is now done through the
15826 constructor mechanism.
15828 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
15829 __gnat_sals_init_using_constructors): New functions.
15831 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
15832 Linker_Constructor and Linker_Destructor when switch -a is used.
15834 * bindusg.adb: Add line for new switch -a
15836 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
15837 (Gnatbind): When switch -a is used, check if it is allowed
15839 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
15841 2005-07-04 Joel Brobecker <brobecker@adacore.com>
15843 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
15844 This prevents us from hitting a limitation during the debug info
15845 generation when using stabs.
15846 (Prims_Ptr): Likewise.
15848 2005-07-04 Gary Dismukes <dismukes@adacore.com>
15849 Ed Schonberg <schonberg@adacore.com>
15850 Javier Miranda <miranda@adacore.com>
15852 * checks.adb (Null_Exclusion_Static_Checks): In the case of
15853 N_Object_Declaration, only perform the checks if the Object_Definition
15854 is not an Access_Definition.
15856 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
15857 where the parent of an the access definition is an N_Object_Declaration
15858 when determining the Associated_Node_For_Itype and scope of an
15859 anonymous access-to-subprogram type.
15861 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
15862 Corresponding_Spec on the body created for a null procedure. Add ???
15863 comment. Remove New_Copy_Tree call on body argument to
15864 Set_Body_To_Inline.
15866 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
15867 discriminants, use the type of the actual as well, because the
15868 discriminants may be read by the called subprogram.
15870 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
15871 access type we do not need to handle non-limited views.
15872 (Build_Derived_Record_Type): Additional check to check that in case of
15873 private types, interfaces are only allowed in private extensions.
15875 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
15877 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
15878 <Pragma_Linker_Destructor>: Likewise.
15880 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
15881 Pragma_Linker_Destructor.
15883 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
15884 ATTR_LINK_DESTRUCTOR.
15885 (static_ctors, static_dtors): New variables.
15887 * misc.c (gnat_expand_body): Output current function as constructor
15888 and destructor if requested.
15890 * par-prag.adb: Add processing for pragma Linker_Constructor and
15893 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
15894 extracted from Check_Interrupt_Or_Attach_Handler.
15895 (Check_Interrupt_Or_Attach_Handler): Invoke it.
15896 Implement pragma Linker_Constructor and Linker_Destructor with the
15897 help of Find_Unique_Parameterless_Procedure.
15898 Replace Name_Alias with Name_Target for pragma Linker_Alias.
15900 * snames.h, snames.ads, snames.adb:
15901 Add Name_Linker_Constructor and Name_Linker_Destructor.
15902 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
15903 * snames.adb: Remove Name_Alias.
15905 * trans.c: Include cgraph.h.
15906 (build_global_cdtor): New function.
15907 (Compilation_Unit_to_gnu): Build global constructor and destructor if
15909 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
15911 (addressable_p) <COMPONENT_REF>: Unconditionally test
15912 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
15914 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
15915 variable if it is external.
15917 (static_ctors, static_dtors): New global variables.
15918 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
15919 <ATTR_LINK_DESTRUCTOR>: Likewise.
15920 (end_subprog_body): Chain function as constructor and destructor
15923 * exp_util.adb (Force_Evaluation): Unconditionally invoke
15924 Remove_Side_Effects with Variable_Ref set to true.
15925 (Remove_Side_Effects): Handle scalar types first. Use a renaming
15926 for non-scalar types even if Variable_Ref is true and for class-wide
15929 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15931 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
15932 to prevent spurious warnings.
15934 2005-07-04 Thomas Quinot <quinot@adacore.com>
15936 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
15937 Itypes. Itypes are really unexpected there.
15938 (Build_TypeCode_Function): Generalise special processing for Itypes to
15939 handle the case of numeric implicit base types as well as enumerated
15942 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15944 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
15945 controlled, indicate the expected type of the dereference that is
15946 created for the call to Deep_Finalize, to prevent spurious errors when
15947 the designated type is private and completed with a derivation from
15948 another private type.
15950 2005-07-04 Vincent Celier <celier@adacore.com>
15952 * make.adb (Change_To_Object_Directory): When unable to change the
15953 current dir to the object directory, output the full path of the
15956 2005-07-04 Matthew Gingell <gingell@adacore.com>
15958 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
15960 * indepsw-linux.adb: Replace by...
15962 * indepsw-gnu.adb: ...this new file
15964 2005-07-04 Vincent Celier <celier@adacore.com>
15966 * mlib-prj.adb (Auto_Initialize): New constant String
15967 (SALs_Use_Constructors): New Boolean function
15968 (Build_Library): Call gnatbind with Auto_Initialize switch when
15969 SALs_Use_Constructors returns True.
15971 * mlib-tgt.ads: Minor reformatting
15973 * mlib-utl.ads: Minor reformatting
15975 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
15977 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15979 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
15980 single protected declarations can have an interface list.
15981 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
15982 with seriously malformed entry declarations, and lead to compilation
15983 abandoned messages.
15985 2005-07-04 Javier Miranda <miranda@adacore.com>
15987 * par-load.adb: Load the context items in two rounds.
15989 2005-07-04 Robert Dewar <dewar@adacore.com>
15991 * scng.adb: Do not consider Mod used as an attribute to be a keyword
15993 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15994 Javier Miranda <miranda@adacore.com>
15996 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
15997 type extension needs a limited view.
15998 Remove previous restriction on private types available through the
15999 limited-view (only tagged private types were previously allowed).
16000 (Install_Withed_Unit): In the code that implements the
16001 legality rule given in AI-377, exclude a child unit with the name
16002 Standard, because it is a homonym of the Standard environment package.
16004 2005-07-04 Thomas Quinot <quinot@adacore.com>
16006 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
16007 overloaded function call, carry interpretations from the original tree
16010 2005-07-04 Ed Schonberg <schonberg@adacore.com>
16012 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
16013 types check whether some designated type is a limited view, and use
16014 the non-limited view if available.
16016 2005-07-04 Gary Dismukes <dismukes@adacore.com>
16018 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
16019 constraint of full view of a private view T1 if present, when T2 is a
16020 discriminated full view.
16022 2005-07-04 Thomas Quinot <quinot@adacore.com>
16024 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
16025 actual that is a view conversion of a bit packed array reference.
16027 2005-07-04 Ed Schonberg <schonberg@adacore.com>
16029 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
16030 present before checking whether an interface type covers a synchronized
16033 2005-07-04 Ed Schonberg <schonberg@adacore.com>
16035 * sem_util.adb (Is_Object_Reference): An indexed or selected component
16036 whose prefix is an implicit dereference is an object reference. Removes
16037 spurious errors when compiling with -gnatc.
16039 2005-07-04 Robert Dewar <dewar@adacore.com>
16042 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
16044 2005-07-04 Matthew Gingell <gingell@adacore.com>
16046 * tracebak.c: Enable tracebacks on ia64 platforms
16048 2005-07-04 Vincent Celier <celier@adacore.com>
16050 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
16051 the GNAT BIND command, as gnatbind accepts multiples ALI files with
16052 the -L or -n switches.
16054 2005-07-04 Vincent Celier <celier@adacore.com>
16056 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
16057 correctly computed and the main project data is not modified while
16059 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
16060 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
16061 c++linker as this does not work on some platforms.
16063 2005-07-04 Matthew Heaney <heaney@adacore.com>
16065 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
16067 * a-coinve.adb: Perform constraint checks explicitly.
16069 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16070 Thomas Quinot <quinot@adacore.com>
16072 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
16073 new target gen-soccon.
16075 2005-07-04 Robert Dewar <dewar@adacore.com>
16077 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
16079 2005-07-04 Thomas Quinot <quinot@adacore.com>
16081 * g-socket.ads (Check_Selector): Minor rewording of comment.
16083 2005-07-04 Vincent Celier <celier@adacore.com>
16085 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
16087 2005-07-04 Thomas Quinot <quinot@adacore.com>
16089 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
16091 2005-07-04 Sergey Rybin <rybin@adacore.com>
16093 * gnat_ugn.texi: Add description of --eol gnatpp option
16095 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
16096 Thomas Quinot <quinot@adacore.com>
16098 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
16099 if the user wants all calls of a subprogram to be flagged,
16100 independently of whether they are made from within the same unit or
16102 Mention restriction for pragma Linker_Alias on some platforms.
16103 Document pragma Linker_Constructor and Linker_Destructor.
16104 Rewrite documentation of Weak_External, Linker_Section and
16105 Linker_Alias pragmas.
16107 2005-07-04 Arnaud Charlet <charlet@adacore.com>
16109 * s-stausa.ads, s-stausa.adb: New files.
16111 2005-06-30 Kelley Cook
16113 * all files: Update FSF address in copyright headers.
16114 * gen-soccon.co (main): Output new FSF address in generated files.
16116 2005-06-28 Paul Brook <paul@codesourcery.com>
16118 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
16120 2005-06-14 Olivier Hainque <hainque@adacore.com>
16121 Eric Botcazou <ebotcazou@adacore.com>
16123 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
16124 exc_unwind, now that we are generating proper .debug_frame output for
16127 * tracebak.c: Remove the mips-irix section, as we are now using the
16128 s-mastop based unwinder again.
16129 Under SPARC/Solaris, take into account the stack bias to compute the
16130 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
16133 2005-06-14 Doug Rupp <rupp@adacore.com>
16135 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
16137 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
16139 2005-06-14 Pascal Obry <obry@adacore.com>
16141 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
16142 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
16143 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
16146 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
16147 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
16148 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
16149 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
16150 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
16151 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
16152 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
16153 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
16154 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
16155 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
16156 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
16157 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
16158 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
16159 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
16160 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
16161 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
16162 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
16163 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
16164 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
16165 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
16166 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
16167 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
16168 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
16169 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
16170 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
16171 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
16172 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
16173 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
16174 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
16175 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
16176 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
16177 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
16178 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
16179 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
16180 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
16181 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
16182 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
16183 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
16184 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
16185 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
16186 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
16187 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
16188 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
16189 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
16190 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
16191 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
16192 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
16193 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
16194 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
16195 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
16196 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
16197 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
16198 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
16199 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
16200 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
16201 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
16202 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
16203 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
16204 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
16205 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
16206 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
16207 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
16208 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
16209 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
16210 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
16211 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
16212 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
16213 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
16214 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
16215 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
16216 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
16217 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
16218 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
16219 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
16220 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
16221 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
16222 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
16223 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
16224 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
16225 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
16226 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
16227 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
16228 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
16229 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
16230 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
16231 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
16232 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
16233 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
16234 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
16235 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
16236 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
16237 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
16238 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
16239 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
16240 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
16241 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
16242 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
16243 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
16244 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
16245 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
16246 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
16247 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
16248 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
16249 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
16250 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
16251 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
16252 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
16253 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
16254 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
16255 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
16256 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
16257 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
16258 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
16259 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
16260 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
16261 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
16262 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
16263 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
16264 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
16265 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
16266 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
16267 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
16268 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
16269 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
16270 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
16271 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
16272 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
16273 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
16274 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
16275 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
16276 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
16277 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
16278 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
16280 2005-06-14 Jose Ruiz <ruiz@adacore.com>
16281 Arnaud Charlet <charlet@adacore.com>
16283 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
16284 longer protected objects. They have been replaced by lower-level
16285 suspension objects made up by a mutex and a condition variable (or
16286 their equivalent given a particular OS) plus some internal data to
16287 reflect the state of the suspension object.
16288 (Initialize, Finalize): Add this initialization procedure for
16289 Suspension_Object, which is a controlled type.
16290 (Finalize): Add the finalization procedure for Suspension_Object,
16291 which is a controlled type.
16293 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
16294 Ada.Synchronous_Task_Control because there is no longer a need for a
16295 VxWorks specific version of this package. Target dependencies
16296 has been moved to System.Task_Primitives.Operations.
16298 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
16300 (InitializeCriticalSection, EnterCriticalSection,
16301 LeaveCriticalSection, DeleteCriticalSection): Replace the type
16302 pCriticalSection by an anonymous access type so that we avoid problems
16303 of accessibility to local objects.
16305 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
16306 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
16307 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
16308 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
16309 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
16310 set the environment task mask here.
16311 (Current_State): Add this function that returns the state of the
16313 (Set_False): Add this procedure that sets the state of the suspension
16315 (Set_True): Add this procedure that sets the state of the suspension
16316 object to True, releasing the task that was suspended, if any.
16317 (Suspend_Until_True): Add this procedure that blocks the calling task
16318 until the state of the object is True. Program_Error is raised if
16319 another task is already waiting on that suspension object.
16320 (Initialize): Add this procedure for initializing the suspension
16321 object. It initializes the mutex and the condition variable which are
16322 used for synchronization and queuing, and it sets the internal state
16324 (Finalize): Add this procedure for finalizing the suspension object,
16325 destroying the mutex and the condition variable.
16327 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
16328 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
16329 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
16330 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
16331 which provides a low-level abstraction (using operating system
16332 primitives) for Ada.Synchronous_Task_Control.
16333 This object is made up by a mutex (for ensuring mutual exclusion), a
16334 condition variable (for queuing threads until the condition is
16335 signaled), a Boolean (State) indicating whether the object is open,
16336 and a Boolean (Waiting) reflecting whether there is a task already
16337 suspended on this object.
16339 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
16340 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
16341 s-intman-vms.ads, s-intman-mingw.adb,
16342 (Initialize_Interrupts): Removed, no longer used.
16344 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
16345 (Setup_Interrupt_Mask): New procedure.
16347 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
16349 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
16351 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
16352 this is no longer done in the body of s-taprop
16353 (Server_Task): Explicitely test for Pending_Action in case
16354 System.Parameters.No_Abort is True.
16356 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
16357 is no longer done in the body of s-taprop
16359 2005-06-14 Robert Dewar <dewar@adacore.com>
16361 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
16362 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
16363 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
16364 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
16365 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
16366 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
16367 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
16368 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
16369 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
16370 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
16371 system-linux-hppa.ads, system-vms_64.ads,
16372 system-vxworks-alpha.ads: Minor comment update for
16373 AI-362 (unit is Pure).
16375 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
16376 Add pragma Pure_05 for AI-362
16377 Make remaining conversion functions obsolescent in Ada 95
16379 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
16380 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
16381 Add entries for a-wichun and a-zchuni
16382 Add a-widcha a-zchara for AI-395
16383 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
16385 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
16386 Add entries for a-wichun.o and a-zchuni.o
16387 Entries for a-widcha.o and a-zchara.o
16388 Add entry for a-chacon.o
16390 * a-ztenau.adb: Add with of Ada.Characters.Conversions
16392 * a-chacon.ads, a-chacon.adb: New files.
16394 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
16395 categorization violations.
16397 * a-strmap.ads: Add pragma Pure_05 for AI-362
16398 * a-strmap.ads: Add note on implicit categorization for AI-362
16400 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
16402 * par-prag.adb: Dummy entry for pragma Persistent_BSS
16403 Set Ada_Version_Explicit, for implementation of AI-362
16404 Add processing for pragma Pure_05 and Preelaborate_05
16405 Add entry for Assertion_Policy pragma
16407 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
16408 when needed for proper processing of categorization stuff
16411 For several cases, make errors in preealborate units warnings,
16412 instead of errors, if GNAT_Mode is set. For AI-362.
16414 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
16415 preelaborate unit is now warning if in GNAT mode
16417 * s-stoele.ads: Document AI-362 for pragma preelaborate
16419 2005-06-14 Doug Rupp <rupp@adacore.com>
16421 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
16422 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
16423 Default_Exception_Msg_Max_Length: new parameter.
16425 * a-except.ads: (Exception_Msg_Max_Length): Set to
16426 System.Parameters.Default_Exception_Msg_Max_Length
16427 Add pragma Preelaborate_05 for AI-362
16428 Add warnings off to allow categorization violations for AI-362
16430 2005-06-14 Vincent Celier <celier@adacore.com>
16432 * gnatsym.adb: Adapt to modification of package Symbols: procedure
16433 Process is now in package Processing.
16435 * symbols.ads, symbols.adb:
16436 (Processing): New package, containing procedure Process
16438 * symbols-vms-alpha.adb:
16439 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
16441 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
16442 symbols-processing-vms-ia64.adb: New files.
16444 2005-06-14 Pascal Obry <obry@adacore.com>
16446 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
16447 implementation. This new version generates the proper DllMain routine
16448 to initialize the SAL. The DllMain is generated in Ada and compiled
16449 before being added as option to the library build command.
16451 2005-06-14 Doug Rupp <rupp@adacore.com>
16452 Pascal Obry <obry@adacore.com>
16454 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
16455 call to decc$translate_vms.
16456 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
16457 need to remove those quotes before catenating the filename.
16458 (__gnat_locate_exec_on_path): improvements to the Win32 section:
16459 * avoid allocating the memory twice for better efficiency;
16460 * allocate 32K buffer for environment expansion as suggested by MSDN;
16461 * prepend ".;" to the path so that current directory is searched too.
16463 2005-06-14 Robert Dewar <dewar@adacore.com>
16465 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
16466 instead of raising CE (AI-241)
16467 Add warnings off to allow categorization violations for AI-362
16469 2005-06-14 Robert Dewar <dewar@adacore.com>
16471 * ali-util.adb, gnatbind.adb: Remove references to
16472 Force_RM_Elaboration_Order.
16474 * switch-b.adb: Remove recognition of -f switch
16476 2005-06-14 Pascal Obry <obry@adacore.com>
16478 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
16479 implementation which is slightly more efficient.
16481 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16482 Javier Miranda <miranda@adacore.com>
16483 Ed Schonberg <schonberg@adacore.com>
16484 Hristian Kirtchev <kirtchev@adacore.com>
16486 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
16487 allocator's designated type is a class-wide type, and compiling for
16488 Ada 2005, emit a run-time check that the accessibility level of the
16489 type given in the allocator's expression is not deeper than the level
16490 of the allocator's access type.
16492 (Tagged_Membership): Modified to gives support to abstract interface
16495 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
16497 (Descendant_Tag): New predefined function
16498 (Is_Descendant_At_Same_Level): New predefined function
16499 (Get_Access_Level): New private function
16500 (Set_Access_Level): New private procedure
16501 (IW_Membership): New function. Given the tag of an object and the tag
16502 associated with an interface, evaluate if the object implements the
16504 (Register_Interface_Tag): New procedure used to initialize the table of
16505 interfaces used by the IW_Membership function.
16506 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
16507 of the dispatch table.
16508 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
16509 table of interfaces of the parent.
16510 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
16511 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
16512 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
16513 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
16514 Ada 2005 semantics for the new predefined function.
16516 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
16517 call to Descendant_Tag rather than Internal_Tag.
16518 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
16519 the accessibility level of the attribute's Item parameter is not deeper
16520 than the level of the attribute's prefix type. Tag_Error is raised if
16521 the check fails. The check is only emitted for Ada_05.
16522 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
16523 requested stream attribute, use it.
16524 (Expand_N_Attribute_Reference): If the designated type is an interface
16525 then rewrite the referenced object as a conversion to force the
16526 displacement of the pointer to the secondary dispatch table.
16527 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
16528 is a dereference of an object with a constrained partial view.
16530 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
16531 type is a class-wide type, emit a run-time check that the accessibility
16532 level of the returned object is not deeper than the level of the
16533 function's master (only when compiling for Ada 2005).
16535 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
16536 Action_Nb_Arg): Add entries for new Get_Access_Level and
16537 Set_Access_Level routines in these tables.
16538 (Make_DT): Generate a call to set the accessibility level of the
16539 tagged type in its TSD.
16540 (Make_DT): Code cleanup. The functionality of generating all the
16541 secondary dispatch tables has been moved to freeze_record_type.
16542 (Make_Abstract_Interface_DT): Minor code cleanup.
16543 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
16544 this subprogram implements a new algorithm that provides the
16545 same functionality and it is more clear in case of primitives
16546 associated with abstract interfaces.
16547 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
16548 clean up, the functionality of this subprogram is now provided
16549 by Set_All_DT_Position.
16550 (Write_DT): New subprogram: a debugging procedure designed to be called
16551 within gdb to display the dispatch tables associated with a tagged
16553 (Collect_All_Interfaces): New subprogram that collects the whole list
16554 of interfaces that are directly or indirectly implemented by a tagged
16556 (Default_Prim_Op_Position): New subprogram that returns the fixed
16557 position in the dispatch table of the default primitive operations.
16558 (Expand_Interface_Actuals): New subprogram to generate code that
16559 displaces all the actuals corresponding to class-wide interfaces to
16560 reference the interface tag of the actual object.
16561 (Expand_Interface_Conversion): New subprogram. Reference the base of
16562 the object to give access to the interface tag associated with the
16563 secondary dispatch table.
16564 (Expand_Interface_Thunk): New subprogram that generates the code of the
16565 thunk. This is required for compatibility with the C+ ABI.
16566 (Make_Abstract_Interface_DT): New subprogram that generate the
16567 declarations for the secondary dispatch tables associated with an
16568 abstract interface.
16569 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
16570 attribute for each primitive operation covering interface subprograms
16571 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
16572 These subprograms were upgraded to give support to abstract interfaces
16574 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
16575 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
16576 RE_Set_Access_Level.
16577 (RE_Unit_Table): Add entries for new Ada.Tags operations.
16578 Add support to call the followig new run-time subprograms:
16579 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
16581 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
16582 match its full declaration when both have an access definition with
16583 statically matching designated subtypes.
16584 (Analyze_Component_Declaration): Delete commented out code that was
16585 incorrectly setting the scope of an anonymous access component's type.
16586 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
16587 an access discriminant when the containing type is nonlimited.
16588 (Make_Incomplete_Type_Declaration): Create an incomplete type
16589 declaration for a record type that includes self-referential access
16591 (Check_Anonymous_Access_Types): Before full analysis of a record type
16592 declaration, create anonymous access types for each self-referential
16594 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
16595 an access component in this context is a Local_Anonymous_Access, for
16596 proper accessibility checks.
16597 (Access_Definition): Set properly the scope of the anonymous access type
16598 created for a stand-alone access object.
16599 (Find_Type_Of_Object): An object declaration may be given with an access
16601 (Complete_Subprograms_Derivation): New subprogram used to complete
16602 type derivation of private tagged types implementing interfaces.
16603 In this case some interface primitives may have been overriden
16604 with the partial-view and, instead of re-calculating them, they
16605 are included in the list of primitive operations of the full-view.
16606 (Build_Derived_Record_Type): Modified to give support to private
16607 types implemening interfaces.
16608 (Access_Definition): Reject ALL on anonymous access types.
16609 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
16610 type derivation to occur at a deeper accessibility level than the
16612 For the case of derivation within a generic body however, disallow the
16613 derivation if the derived type has an ancestor that is a formal type
16614 declared in the formal part of an enclosing generic.
16615 (Analyze_Object_Declaration): For protected objects, remove the check
16616 that they cannot contain interrupt handlers if not declared at library
16618 (Add_Interface_Tag_Components): New subprogram to add the tag components
16619 corresponding to all the abstract interface types implemented by a
16620 record type or a derived record type.
16621 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
16622 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
16623 Process_Full_View, Record_Type_Declaration): Modified to give
16624 support to abstract interface types
16625 (Collect_Interfaces): New subprogram that collects the list of
16626 interfaces that are not already implemented by the ancestors
16627 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
16628 when partial view has no discriminants and full view has defaults.
16629 (Constrain_Access): Reject a constraint on a general access type
16630 if the discriminants of the designated type have defaults.
16631 (Access_Subprogram_Declaration): Associate the Itype node with the inner
16632 full-type declaration or subprogram spec. This is required to handle
16633 nested anonymous declarations.
16634 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
16635 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
16636 Process_Full_View, Record_Type_Declaration): Modified to give
16637 support to abstract interface types
16638 (Derive_Subprograms): Addition of a new formal to indicate if
16639 we are in the case of an abstact-interface derivation
16640 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
16641 to the specification because it is requied to analyze all the
16642 identifiers found in a list of interfaces
16644 * debug.adb: Complete documentation of flag "-gnatdZ"
16646 * exp_ch3.adb: Implement config version of persistent_bss pragma
16647 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
16648 testing for TSS presence to properly enforce visibility rules.
16649 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
16650 Make_Abstract_Interfaces_DT to generate the secondary tables
16651 associated with abstract interfaces.
16652 (Build_Init_Procedure): Modified to initialize all the tags
16654 (Component_Needs_Simple_Initialization): Similar to other tags,
16655 interface tags do not need initialization.
16656 (Freeze_Record_Type): Modified to give support to abstract interface
16658 (Expand_N_Object_Declaration): Do not generate an initialization for
16659 a scalar temporary marked as internal.
16661 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
16662 in-out parameter that is a component in an initialization procedure,
16663 whose constraint might depend on discriminants, and that may be
16664 misaligned because of packing or representation clauses.
16665 (Is_Legal_Copy): New predicate to determine whether a possibly
16666 misaligned in-out actual can actually be passed by copy/return. This
16667 is an error in case the type is by_reference, and a warning if this is
16668 the consequence of a DEC import pragma on the subprogram.
16669 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
16671 (Expand_Inlined_Call): Mark temporary generated for the return value as
16672 internal, so that no useless scalar normalization is generated for it.
16673 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
16674 null procedure can always be inlined.
16675 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
16676 procedure, generate an explicit empty body for it.
16678 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
16679 Given a type implementing an interface, returns the corresponding
16680 access_disp_table value.
16681 (Find_Interface_Tag): New subprogram. Given a type implementing an
16682 interface, returns the record component containing the tag of the
16684 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
16685 previous ones that return the corresponding tag and access_disp_table
16687 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
16688 is a predefined primitive operation.
16689 (Expand_Subtype_From_Expr): If the expression is a selected component
16690 within an initialization procedure, compute its actual subtype, because
16691 the component may depend on the discriminants of the enclosing record.
16693 * i-cpp.ads, i-cpp.adb:
16694 This package has been left available for compatibility with previous
16695 versions of the frontend. As part of the new layout this is now a
16696 dummy package that uses declarations available at a-tags.ads
16698 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
16699 "constant access" and "aliased [constant] access" when not compiling
16701 Suppress Ada 2005 keyword warning if -gnatwY used
16702 (P_Identifier_Declarations): Add support for object declarations with
16703 access definitions.
16704 (Private_Extension_Declaration): Complete the documentation
16705 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
16706 attribute in case of private extension declaration
16707 (P_Type_Declaration): Mark as "abstract" the type declarations
16708 corresponding with protected, synchronized and task interfaces
16709 (P_Declarative_Items): "not" and "overriding" are overriding indicators
16710 for a subprogram or instance declaration.
16712 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
16713 instantiation that is a dispatching operation has controlling access
16714 parameters that are null excluding.
16715 Save and restore Ada_Version_Explicit, for implementation of AI-362
16716 (Validate_Derived_Type_Instance): Add check for abstract interface
16718 (Analyze_Formal_Package): Establish Instantiation source for the copy of
16719 the generic that is created to represent the formal package.
16720 (Analyze_Package_Instantiation): Instantiate body immediately if the
16721 package is a predefined unit that contains inlined subprograms, and
16722 we are compiling for a Configurable_Run_Time.
16723 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
16724 If the program has a null default, generate an empty body for it.
16726 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
16727 error message condition, null procedures are correctly detected now.
16728 (New_Overloaded_Entity): Bypass trivial overriding indicator check
16729 for subprograms in the context of protected types. Instead, the
16730 indicator is examined in Sem_Ch9 while analysing the subprogram
16732 (Check_Overriding_Indicator): Check consistency of overriding indicator
16733 on subprogram stubs as well.
16734 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
16736 (Analize_Subprogram_Specification): When analyzing a subprogram in which
16737 the type of the first formal is a concurrent type, replace this type
16738 by the corresponding record type.
16739 (Analyze_Subprogram_Body): Undo the previous work.
16740 (Analyze_Procedure_Call): If the call has the form Object.Op, the
16741 analysis of the prefix ends up analyzing the call itself, after which
16743 (Has_Interface_Formals): New subprogram subsidiary to analyze
16744 subprogram_specification that returns true if some non
16745 class-wide interface subprogram is found
16746 (New_Overloaded_Entity): Modified to give support to abstract
16748 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
16749 access to subprograms must be recursive.
16750 (Is_Unchecked_Conversion): Improve the test that recognizes
16751 instantiations of Unchecked_Conversion, and allows them in bodies that
16752 are to be inlined by the front-end. When the body comes from an
16753 instantiation, a reference to Unchecked_Conversion will be an
16754 Expanded_Name, even though the body has not been analyzed yet.
16755 Replace Is_Overriding and Not_Overriding in subprogram_indication with
16756 Must_Override and Must_Not_Override, to better express intent of AI.
16757 (Analyze_Subprogram_Body): If an overriding indicator is given, check
16758 that it is consistent with the overrinding status of the subprogram
16760 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
16762 If the subprogram is a null procedure, indicate that it does not need
16765 * sem_disp.adb (Check_Controlling_Type): Give support to entities
16766 available through limited-with clauses.
16767 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
16768 allowed as the last primitive of a tagged type if it has no previous
16770 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
16771 to give support to abstract interface types
16773 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
16774 in the case where the target type is an anonymous access type of an
16775 object or component (that is, when Is_Local_Anonymous_Access is true).
16776 Prevent the special checks for conversions of access discriminants in
16777 the case where the discriminant belongs to a nonlimited type, since
16778 such discriminants have their accessibility level defined in the same
16779 way as a normal component of an anonymous access type.
16780 (Resolve_Allocator): When an allocator's designated type is a class-wide
16781 type, check that the accessibility level of type given in the
16782 allocator's expression or subtype indication is not statically deeper
16783 than the level of the allocator's access type.
16784 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
16785 name in a discriminant constraint of a record component.
16786 (Resolve_Explicit_Dereference): Do not check whether the type is
16787 incomplete when the dereference is a use of an access discriminant in
16788 an initialization procedure.
16789 (Resolve_Type_Conversion): Handle conversions to abstract interface
16791 (Valid_Tagged_Conversion): The conversion of a tagged type to an
16792 abstract interface type is always valid.
16793 (Valid_Conversion): Modified to give support to abstract interface types
16794 (Resolve_Actuals): Enable full error reporting on view conversions
16795 between unrelated by_reference array types.
16796 The rule for view conversions of arrays with aliased components is
16797 weakened in Ada 2005.
16798 Call to obsolescent subprogram is now considered to be a violation of
16799 pragma Restrictions (No_Obsolescent_Features).
16800 (Check_Direct_Boolean_Operator): If the boolean operation has been
16801 constant-folded, there is nothing to check.
16802 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
16803 check on possible violation of restriction No_Direct_Boolean_Operators
16804 until after expansion of operands, to prevent spurious errors when
16805 operation is constant-folded.
16807 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
16808 Has_Compatible_Type): Modified to give support to abstract interface
16810 (Interface_Present_In_Ancestor): New function to theck if some ancestor
16811 of a given type implements a given interface
16813 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
16814 prefix is a parameterless function that returns an access_to_procedure.
16815 (Transform_Object_Operation): Handle properly function calls of the
16816 form Obj.Op (X), which prior to analysis appear as indexed components.
16817 (Analyze_One_Call): Complete the error notification to help new Ada
16819 (Analyze_Allocator): For an allocator without an initial value, where
16820 the designated type has a constrained partial view, a discriminant
16821 constraint is illegal.
16823 2005-06-14 Robert Dewar <dewar@adacore.com>
16825 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
16826 do with treatment of Set_Col when positioned at end of line character.
16828 2005-06-14 Robert Dewar <dewar@adacore.com>
16830 * atree.adb: (Elist*): Protect against uninitialized field
16832 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16834 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
16835 for an attribute reference that returns an access type.
16836 (Apply_Discriminant_Check): No need for check if (designated) type has
16837 constrained partial view.
16839 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
16840 both bound checks, rather than a conjunction.
16841 (Insert_Valid_Check): If the expression is an actual that is an indexed
16842 component of a bit-packed array, force expansion of the packed element
16843 reference, because it is specifically inhibited elsewhere.
16845 2005-06-14 Vincent Celier <celier@adacore.com>
16847 * clean.adb (Clean_Project): Correctly delete executable specified as
16848 absolute path names.
16850 * make.adb (Gnatmake): Allow relative executable path names with
16851 directory information even when project files are used.
16852 (Change_To_Object_Directory): Fail gracefully when unable to change
16853 current working directory to object directory of a project.
16854 (Gnatmake): Remove exception handler that could no longer be exercized
16855 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
16856 may be deallocated by Normalize_Arguments.
16857 (Collect_Arguments): Eliminate empty arguments
16859 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
16860 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
16861 (Check_Project): Return False when Project is No_Project. Return True
16862 when All_Projects is True.
16863 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
16864 All_Projects to True.
16867 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16868 Javier Miranda <miranda@adacore.com>
16869 Thomas Quinot <quinot@adacore.com>
16870 Robert Dewar <dewar@adacore.com>
16871 Hristian Kirtchev <kirtchev@adacore.com>
16872 Gary Dismukes <dismukes@adacore.com>
16874 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
16875 anonymous access types, to indicate that the accessibility level of
16876 the type is determined by that of the enclosing declaration.
16877 (Has_Persistent_BSS): New flag
16878 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
16879 of this attribute with functions.
16880 (Is_Primitive_Wrapper): Remove the barrier.
16881 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
16882 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
16884 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
16885 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
16887 (Is_Pure_Unit_Access_Type): New flag
16888 (Abstract_Interfaces): Complete the assertion to cover all usages.
16889 (Set_Is_Interface): Complete the assertion to cover all usages.
16890 (Is_Primitive_Wrapper): New attribute.
16891 (Is_Obsolescent): Now applies to all entities (though it is only set
16892 for subprograms currently)
16893 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
16894 which solves various problems concerning access subtypes.
16895 (Has_Persistent_BSS): New flag
16896 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
16897 Remove these subprograms because this attribute is currently
16900 Has_Specified_Stream_Input (Flag190)
16901 Has_Specified_Stream_Output (Flag191)
16902 Has_Specified_Stream_Read (Flag192)
16903 Has_Specified_Stream_Write (Flag193)
16904 Present in all type and subtype entities. Set for a given view if the
16905 corresponding stream-oriented attribute has been defined by an
16906 attribute definition clause. When such a clause occurs, a TSS is set
16907 on the underlying full view; the flags are used to track visibility of
16908 the attribute definition clause for partial or incomplete views.
16909 (Is_Pure_Unit_Access_Type): New flag
16910 Clarify use of Is_Internal.
16911 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
16912 internally generated to wrap the invocation of tasks and protected
16913 types that implement interfaces.
16914 (Implementation_Base_Type): Documentation correction
16915 (Is_Obsolescent): Now applies to all entities (though it is only set
16916 for subprograms currently)
16917 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
16918 which solves various problems concerning access subtypes.
16920 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
16921 for examined parameters. Identify unequal parameter list lengths as
16922 non-conformant parameters.
16923 (Overriding_Possible): Do not check for "All" qualifier in declaration
16924 of controlling access parameter, following prescription of AI-404.
16925 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
16926 that build the procedure body that wraps an entry invocation
16927 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
16928 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
16929 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
16930 give support to abstract interface types
16932 * freeze.adb (Freeze_Entity): Issue error message if
16933 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
16934 type has no storage pool (Ada 2005) AI-366.
16935 Also modified to give support to abstract interface types
16936 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
16937 Inline_Always pragma.
16939 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
16940 now begin an entry declaration.
16941 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
16942 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
16943 a subprogram declaration preceded by an overriding indicator.
16944 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
16945 declarations or subprogram declarations preceded by reserved words
16946 "not" or "overriding".
16947 (P_Entry_Declaration): Update comment. Parse and check overriding
16948 indicator, set semantic flags of entry declarations.
16949 (P_Task): New error message in case of private applied
16950 to a task type declaration.
16951 (P_Protected): New error message in case of private applied
16952 to a task type declaration.
16954 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
16955 in which the full view of a type implementing an interface is a
16957 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
16958 Declare_Inherited_Private_Subprograms): If an explicit operation
16959 overrides an operation that is inherited in the private part, mark the
16960 explicit one as overriding, to enable overriding indicator checks.
16961 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
16962 full view to partial view, to simplify handling in back-end.
16964 * sprint.adb: Print interface lists where needed: derived types,
16965 protected types, task types.
16966 output "is null" for null procedures. Part of implementation of
16968 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
16969 relaxation of rules for access types in pure, shared passive partitions.
16971 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
16972 first read discriminants into temporary objects, performing checks on
16973 the read values, then possibly performing discriminant checks on the
16974 actual (if it is constrained), and only finally reading the components
16975 into a constrained temporary object.
16976 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
16977 case of reading discriminants of a mutable record type to recognize
16978 the new form of the code generated by
16979 Build_Mutable_Record_Read_Procedure.
16981 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
16982 of a simple call to Make_TSS_Name.
16983 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
16984 buffer, in order for Is_TSS to work correctly on local TSS names.
16986 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
16987 Is_Local_Anonymous_Access to check legaliy of attributes in the
16988 context of access components and stand-alone access objects.
16989 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
16990 treated as available for a limited private type if there is an
16991 attribute_definition_clause that applies to its full view, but not in
16992 other cases where the attribute is available for the full view
16993 (specifically, the sole fact that the full view is non-limited does not
16994 make the attribute available for the partial view).
16995 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
16996 non-overloaded intrinsic subprogram.
16997 (Check_Stream_Attribute): Reject an attribute reference for an
16998 unavailable stream attribute even if the prefix is not a limited type
16999 (case of a 'Input attribute reference for an abstract, non-classwide
17001 (Stream_Attribute_Available): New function to determine whether a stream
17002 attribute is available at a place.
17003 (Check_Attribute): Use Stream_Attribute_Available instead of just
17004 testing for TSS presence on the implementation base type.
17005 (Analyze_Attribute): Modified to give support to task interfaces.
17006 (Analyze_Access_Attribute): Add error check for use of an Access (or
17007 Unrestricted_Access) attribute with a subprogram marked as
17009 (Analyze_Attribute, case Attribute_Address): Add error check for use of
17010 an Address attribute with a subprogram marked as Inline_Always.
17011 Update Eval_Attribute to handle new value of Width from AI-395
17013 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
17014 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
17015 Factor common code across the stream-oriented attribute circcuits into
17016 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
17017 processing is functionally identical to the previous duplicated one,
17018 except that an expression that denotes an abstract subprogram will now
17019 be rejected, as mandated by AI-195 item 5.
17021 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
17022 Is_Local_Anonymous_Access to apply accessibility checks to access
17023 components and stand-alone access objects.
17024 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
17026 (Is_Potentially_Persistent_Type): New function
17027 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
17028 a heap-object whose type has a constrained partial view, the object is
17029 unconstrained and the component may depend on a discriminant, making its
17032 * sinfo.ads, sinfo.adb
17033 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
17034 (Must_Override): Flag applicable to N_Entry_Declaration.
17035 Indicate that interface_list can appear in single task and single
17036 protected declarations.
17037 Replace Is_Overriding and Not_Overriding with Must_Override and
17038 Must_Not_Override, to better express intent of AI.
17039 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
17040 of an overriding indicator in a subprogram or instance.
17041 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
17042 Add the overriding indicator [[not] overriding] construct to the
17043 following grammar productions:
17045 GENERIC_INSTANTIATION
17046 SUBPROGRAM_SPECIFICATION
17048 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
17049 can start with an overriding indicator.
17051 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
17052 flags accordingly on subrogram specifications or instances.
17055 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
17056 overriding_indicator, if present, is consistent with status of spec.
17057 Improve error message for null-excluding checks on controlling access
17059 (Check_In_Previous_With_Clause): Protect the frontend against
17060 previously reported critical errors in the context clauses.
17061 Save and restore Ada_Version_Explicit, for implementation of AI-362
17062 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
17063 operation verify that controlling formals of the renamed entity that
17064 are access parameters are explicitly non-null.
17065 (Find_Expanded_Name): Improve error message when prefix is an illegal
17066 reference to a private child unit.
17068 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
17069 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
17070 Rewrite to correspond to new wide character names in AI-395
17072 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
17073 default procedures.
17075 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17076 Robert Dewar <dewar@adacore.com>
17078 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
17079 code, not on the bodies of predefined operations, to cut down on
17082 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17084 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
17085 be expanded in place. The size computation does not require a
17086 subtraction, which would raise an exception on a compiler built with
17087 assertions when the upper bound is Integer'first.
17088 (Flatten): For an array of composite components, take into account the
17089 size of the components to determine whether it is safe to expand the
17090 array into a purely positional representation.
17092 2005-06-14 Thomas Quinot <quinot@adacore.com>
17094 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
17095 denoting a formal parameter into account.
17097 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17099 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
17100 the entry_call alternative of a conditional entry call, wrap the
17101 conditional entry call itself.
17103 2005-06-14 Nicolas Setton <setton@adacore.com>
17104 Ed Schonberg <schonberg@adacore.com>
17106 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
17107 the "simple_choice" member in a variant record, in accordance with the
17108 description in the package spec: the information output for a constant
17109 should be "S number", not "SS number".
17110 (Get_Encoded_Name): Return at once if not generating code. Avoids name
17111 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
17113 2005-06-14 Thomas Quinot <quinot@adacore.com>
17115 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
17116 RACW without any primitives, do not generate the if statement for
17117 dispatching by name in the PolyORB/DSA case, as it would be malformed
17118 (it would have an Elsif_Parts list that is not No_List, but with a
17121 2005-06-14 Robert Dewar <dewar@adacore.com>
17123 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
17125 2005-06-14 Jose Ruiz <ruiz@adacore.com>
17127 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
17128 can determine whether pragma Suppress_Exception_Locations is in effect.
17130 * utils2.c (build_call_raise): Do not pass the file name to the
17131 exception handler if pragma Suppress_Exception_Locations is in effect.
17132 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
17134 2005-06-14 Emmanuel Briot <briot@adacore.com>
17136 * g-debpoo.adb (Deallocate, Dereference): Improve output.
17138 2005-06-14 Nicolas Roche <roche@adacore.com>
17140 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
17142 (Next_Level): Fix minor bug in handling of ../dir case
17143 (Read): Add dir separator to Directory name so that "" is understood as
17146 2005-06-14 Pascal Obry <obry@adacore.com>
17148 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
17149 releasing the items.
17151 2005-06-14 Vincent Celier <celier@adacore.com>
17152 Cyrille Comar <comar@adacore.com>
17154 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
17155 with output file descriptor and with output file name.
17156 (Dup, Dup2): Now global procedures as they are used by two subprograms
17157 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
17159 2005-06-14 Thomas Quinot <quinot@adacore.com>
17162 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
17164 (Create_Selector): Bind listening socket used to create the signalling
17165 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
17166 Set listen backlog to 1 to ensure that we detect socket theft by a
17167 failure of our own connect(2) call.
17168 (Check_Selector): Improve documentation of the selector mechanism.
17169 (Broadcast_Inet_Addr): New constant.
17171 2005-06-14 Gary Dismukes <dismukes@adacore.com>
17173 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
17174 type which turns out to be an incomplete and incorrect fix.
17175 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
17176 of the type is declared in a record (for determination of insertion
17178 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
17179 a private type and ensure that the primary entity is used for the type
17180 of the newly created function's V formal by taking the Etype of the
17183 2005-06-14 Javier Miranda <miranda@adacore.com>
17184 Jose Ruiz <ruiz@adacore.com>
17185 Robert Dewar <dewar@adacore.com>
17186 Ed Schonberg <schonberg@adacore.com>
17188 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
17189 that indicates if we are parsing a compilation unit found in a
17190 limited-with clause.
17191 It is use to avoid the circularity check.
17193 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
17194 we are parsing a compilation unit found in a limited-with clause. This
17195 is use to avoid the circularity check.
17197 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
17198 unit as a consequence of parsing a limited-with clause. This is used
17199 to avoid the circularity check.
17201 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
17202 (Analyze_Context): Limited-with clauses are now allowed
17203 in more compilation units.
17204 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
17205 againts previously reported critical errors in context clauses
17206 (Install_Limited_Withed_Unit): Code cleanup plus static detection
17207 of two further errors: renamed subprograms and renamed packages
17208 are not allowed in limited with clauses.
17209 (Install_Siblings): Do not install private_with_clauses on the package
17210 declaration for a non-private child unit.
17211 (Re_Install_Parents): When a parent of the subunit is reinstalled,
17212 reset visibility of child units properly.
17213 (Install_Withed_Unit): When a child unit appears in a with_clause of its
17214 parent, it is immediately visible.
17216 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17217 Emmanuel Briot <briot@adacore.com>
17219 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
17220 declared within an inlined body as referenced, to prevent spurious
17222 (Output_One_Ref): If an entity renames an array component, indicate in
17223 the ALI file that this aliases (renames) the array. Capture as well
17224 function renamings that rename predefined operations.
17225 Add information about generic parent for package and subprogram
17227 (Get_Type_Reference): For a subtype that is the renaming of an actual in
17228 an instantiation, use the first_subtype to ensure that we don't generate
17229 cross-reference information for internal types.
17230 For objects and parameters of a generic private type, retain the '*'
17231 indicator to distinguish such an entity from its type.
17233 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
17234 to store information about instantiated entities.
17236 * ali.adb (Scan_ALI): Add support for parsing the reference to the
17239 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
17240 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
17243 2005-06-10 Doug Rupp <rupp@adacore.com>
17244 Arnaud Charlet <charlet@adacore.com>
17245 Olivier Hainque <hainque@adacore.com>
17246 Jose Ruiz <ruiz@adacore.com>
17248 * Make-lang.in: Add initialize.o when needed.
17249 Remove obsolete references to RT_FLAGS.
17250 Add missing dependencies for sdefault.o
17252 * initialize.c: New file.
17254 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
17255 [VMS] cond_signal_table: Fix problem in declaration.
17256 [VMS] __gnat_error_handler: rewrite.
17257 Move all __gnat_initialize() routines to initialize.c
17258 Specialize the former "hpux" section to "hppa hpux", as this is what the
17259 section really is here for and we now have other hpux ports that need
17260 different contents.
17261 (__gnat_adjust_context_for_raise) i386-linux: First version of this
17262 function for this target. Adjust PC by one in the machine context. This
17263 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
17264 it is more reliable to do that in the signal handler itself.
17265 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
17266 flags, so that the handler is passed the context structure to adjust
17267 prior to the raise.
17268 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
17269 SA_SIGINFO sigaction should look like. Call
17270 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
17271 Machine_State_Operations stuff.
17272 Add conditional code so that the x86_64 is also supported.
17274 2005-06-14 Pascal Obry <obry@adacore.com>
17276 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
17279 2005-06-14 Robert Dewar <dewar@adacore.com>
17281 * opt.ads, opt.adb: New flags for persistent_bss mode
17282 Add Ada_Version_Explicit, for implementation of AI-362
17283 Add Assertions_Enabled_Config and associated handling
17284 Needed since setting can be changed with Assertion_Policy pragma
17285 Add new flag Warn_On_Ada_2005_Compatibility
17287 * switch-c.adb: Recognize -gnatwy/Y
17288 Set Ada_Version_Explicit, for implementation of AI-362
17289 The -gnatg switch now includes -gnatyu
17291 * usage.adb: Add -gnatwy/Y
17292 Remove wrong asterisk on -gnatwX line
17293 Add line for -gnatyu switch
17295 2005-06-14 Vincent Celier <celier@adacore.com>
17297 * osint.adb (Add_Default_Search_Dirs): Put source and object
17298 directories of project files before directories coming from
17299 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
17301 2005-06-14 Robert Dewar <dewar@adacore.com>
17304 * par-ch2.adb (Scan_Pragma_Argument): New procedure
17305 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
17307 2005-06-14 Vincent Celier <celier@adacore.com>
17309 * prep.adb (Preprocess): Ignore error when scanning the first token of
17312 2005-06-14 Vincent Celier <celier@adacore.com>
17314 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
17315 (Check_Stand_Alone_Library): If the specified reference symbol file does
17316 not exist, only issue a warning when the symbol policy is not
17317 Controlled. And, when symbol policy is Compliant, set the symbol
17318 policy to Autonomous.
17320 2005-06-14 Vincent Celier <celier@adacore.com>
17322 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
17323 when the project file in a with clause is not the last one, that is the
17324 project file name is followed by a comma.
17325 * prj-pp.adb: (First_With_In_List): New Boolean global variable
17326 (Print): Issue list of project files separated by commas in with clauses
17327 according to the values returned by Is_Not_Last_In_List.
17328 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
17329 (Set_Is_Not_Last_In_List): New procedure
17331 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
17333 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
17335 2005-06-14 Robert Dewar <dewar@adacore.com>
17337 * scng.adb: Add call to new Check_EOF routine
17338 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
17339 Add some comments regarding wide character handling
17341 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
17343 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
17345 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
17346 characters are now considered graphic characters and hence yield false
17349 * nmake.adt: Modify header so that xnmake does not generate output
17350 files with multiple blank lines.
17352 * treeprs.adt: Remove a blank line so that output from xtreeprs does
17353 not have an extra blank line
17355 2005-06-14 Gary Dismukes <dismukes@adacore.com>
17357 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
17358 expression when the component type is an anonymous access type to
17359 ensure that appropriate accessibility checks are done.
17361 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
17362 expression of an assignment when the target object is of an anonymous
17363 access type. This ensures that required accessibility checks are done.
17364 (One_Bound): Move the check for type Universal_Integer to
17366 (Process_Bounds): Check whether the type of the preanalyzed range is
17367 Universal_Integer, and in that case set Typ to Integer_Type prior
17368 to setting the type of the original range and the calls to One_Bound.
17370 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17372 * sem_case.adb (Expand_Others_Choice): Improve warning.
17374 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17376 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
17377 constraint of full view if present, when other type is discriminated.
17378 (Eval_Relational_Op): Recognize tests of pointer values against Null,
17379 when the pointer is known to be non-null, and emit appropriate warning.
17381 2005-06-14 Robert Dewar <dewar@adacore.com>
17382 Ed Schonberg <schonberg@adacore.com>
17385 * sem_prag.adb: Implement pragma Persistent_BSS
17386 Remove obsolete pragma Persistent_Data, Persistent_Object
17387 Set Ada_Version_Explicit, for implementation of AI-362
17388 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
17389 Add processing for pragma Pure_05 and Preelaborate_05
17390 Add processing for Assertion_Policy pragma
17391 Add pragma identifiers for Assert
17392 (Analyze_Pragma, case Assert): Check number of arguments
17393 (Process_Inline): Additional guard against an illegal program, where the
17394 argument of the pragma is undefined, and warnings on redundant
17395 constructs are enabled.
17396 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
17397 Ada_05 to this pragma, specifying that the pragma is only active in
17399 (Check_Arg_Order): New procedure
17400 Add appropriate calls to this procedure throughout
17401 Also throughout, check entity name before doing any other checks
17403 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
17404 Remove obsolete pragma Persistent_Data, Persistent_Object
17405 Add entries for pragma Pure_05 and Preelaborate_05
17406 Add entries for Assertion_Policy pragma and associated names
17407 Add some names for pragma argument processing
17409 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
17411 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17413 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
17414 appears within a negation (either from source or as a rewriting of
17415 inequality) adjust text of warning accordingly.
17417 2005-06-14 Thomas Quinot <quinot@adacore.com>
17419 * s-strxdr.adb: Follow AI95-00132
17421 2005-06-14 Arnaud Charlet <charlet@adacore.com>
17423 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
17425 2005-06-14 Arnaud Charlet <charlet@adacore.com>
17426 Jose Ruiz <ruiz@adacore.com>
17428 * s-tposen.adb, s-tpobop.adb
17429 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
17431 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
17432 there is no violation of the Max_Entry_Queue_Length restriction (if it
17433 has been set); Program_Error is raised otherwise.
17434 (Requeue_Call): Before requeuing the task on the target entry queue we
17435 check that there is no violation of the Max_Entry_Queue_Length
17436 restriction (if it has been set); Program_Error is raised otherwise.
17438 2005-06-14 Robert Dewar <dewar@adacore.com>
17440 * styleg.adb: Fix several remaining problems in -gnatyu switch
17441 Blank line count not reset at start
17442 Scanning outside source buffer in some cases
17443 Confusing message for blanks at end of file
17444 Non-empty blank lines not recognized
17446 * nmake.adt: Modify header so that xnmake does not generate output
17447 files with multiple blank lines.
17449 * treeprs.adt: Remove a blank line so that output from xtreeprs does
17450 not have an extra blank line
17452 2005-06-14 Sergey Rybin <rybin@adacore.com>
17454 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
17456 2005-06-14 Doug Rupp <rupp@adacore.com>
17457 Vincent Celier <celier@adacore.com>
17459 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
17462 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
17463 Remove "Library" command.
17464 Change keyword for style check -gnatyd from NOCRLF to
17466 Remove useless second style check keyword NONE
17467 Remove help documentation for inexistent style check keyword
17469 Add help documentation for style check keywords DOS_LINE_ENDINGS,
17470 UNNECESSARY_BLANK_LINES and XTRA_PARENS
17471 Add UNNECESSARY_BLANK_LINES for -gnatyu
17472 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
17474 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
17476 2005-06-14 Vincent Celier <celier@adacore.com>
17478 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
17479 gprmake was invoked with -d.
17480 (Compile_Sources): If -d was used, output the "completed ..." message
17481 for each compilation.
17482 (Scan_Arg): Recognize new switch -d
17483 When -c and at least one main is specified, set
17484 Unique_Compile to True to guarantee that no other sources will be
17487 2005-06-14 Matthew Heaney <heaney@adacore.com>
17489 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
17490 * a-swuwha.ads, a-swuwha.adb: New files
17492 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
17493 * a-szuzha.ads, a-szuzha.adb: New files.
17495 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
17496 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
17497 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
17498 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
17499 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
17500 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
17501 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
17502 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
17503 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
17504 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
17507 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
17508 Olivier Hainque <hainque@adacore.com>
17509 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17510 Pascal Obry <obry@adacore.com>
17512 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
17514 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
17515 making a temporary around a procedure call because of non-addressable
17517 (process_freeze_entity): If entity is a private type, capture size
17518 information that may have been computed for the full view.
17519 (tree_transform, case N_Allocator): If have initializing expression,
17520 check type for Has_Constrained_Partial_View and pass that to
17522 (tree_transform, case N_Return_Statement): Pass extra arg to
17525 * decl.c (annotate_value): Remove early return if -gnatR is not
17527 (gnat_to_gnu_field): Don't make a packable type for a component clause
17528 if the position is byte aligned, the field is aliased, and the clause
17529 size isn't a multiple of the packable alignment. It serves no useful
17530 purpose packing-wise and would be rejected later on.
17531 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
17534 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
17535 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
17537 (create_concat_name): Idem.
17539 2005-06-10 Robert Dewar <dewar@adacore.com>
17540 Eric Botcazou <ebotcazou@adacore.com>
17541 Ben Brosgol <brosgol@adacore.com>
17542 Cyrille Comar <comar@adacore.com>
17543 Sergey Rybin <rybin@adacore.com>
17544 Pascal Obry <obry@adacore.com>
17546 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
17547 Document second argument (Ada_05) of pragma Obsolescent
17548 Add note that call to subprogram marked with pragma Obsolescent
17549 is now considered to be a violation of program Restrictions
17550 (No_Obsolescent_Features).
17551 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
17552 that only machine-dependent attributes are supported.
17555 Commented out menu lines and empty section for gnatclean examples
17557 Fix some over long lines
17558 Clarify and enhance documentation of ADA_PROJECT_PATH.
17559 Rework section 2.11.2(3) about linking with a non-GNU compiler.
17560 Mention new switch -fcallgraph-info.
17561 Mention new switch -fstack-usage.
17562 For gnatpp, replace '-notab' with '-N' and add this option to Index
17563 Corrected VMS example.
17564 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
17566 Add documentation for -gnatyu switch (unnecessary blank lines)
17567 Document new switch -U for GNAT PRETTY and GNAT METRIC
17568 Add note about Stdcall being handled as C convention on non Windows OS.
17569 Remove some junk typo in description of gnatbind -S switch
17570 Remove reference to Extensions_Allowed pragma
17571 Document the new order of the directories to be searched (source and
17572 object directories of project files before directories in ADA_*_PATH
17573 environment variables.
17575 * g-trasym.ads: Document that IRIX is supported
17577 2005-06-10 Arnaud Charlet <charlet@adacore.com>
17579 * Makefile.in: Add initialize.o when needed.
17580 Adapt to new VMS package body Symbols and subunits
17581 No specialized version of a-sytaco is needed for VxWorks.
17583 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
17584 * a-zchara.ads, a-widcha.ads: New files.
17586 * system-hpux-ia64.ads: New file.
17588 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
17589 is imported from the VxWorks kernel.
17591 2005-06-14 Robert Dewar <dewar@adacore.com>
17593 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
17594 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
17595 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
17596 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
17597 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
17598 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
17599 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
17600 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
17601 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
17602 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
17603 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
17604 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
17606 2005-06-14 Thomas Quinot <quinot@adacore.com>
17608 * xeinfo.adb: Fix typo in comment
17610 2005-06-14 Javier Miranda <miranda@adacore.com>
17612 * repinfo.ads: Fix typo in comment
17614 2005-06-14 Gary Dismukes <dismukes@adacore.com>
17616 * s-finimp.adb (Parent_Tag): Delete this imported function (function
17617 Parent_Tag is now in the visible part of Ada.Tags).
17618 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
17619 using imported function.
17621 2005-06-14 Bernard Banner <banner@adacore.com>
17623 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
17624 also apply for handling support for VxSim 653.
17626 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
17628 * xsnames.adb: Add automatic generation of snames.h.
17630 2005-06-14 Thomas Quinot <quinot@adacore.com>
17632 * gen-soccon.c: Add IP_MULTICAST_IF constant
17633 Minor reformatting and adjustments to prevent warnings.
17635 2005-06-14 Pascal Obry <obry@adacore.com>
17637 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
17639 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
17641 * trans.c (gnat_gimplify_expr): Call
17642 recompute_tree_invarant_for_addr_expr when we change
17643 the operand of the ADDR_EXPR.
17645 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17647 * misc.c: Don't include errors.h.
17649 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17651 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
17653 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
17655 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
17657 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
17659 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
17662 * Makefile.in: Make TGT_LIB behave correctly.
17664 2005-04-23 DJ Delorie <dj@redhat.com>
17666 * misc.c: Adjust warning() callers.
17668 2005-04-16 Laurent GUERBY <laurent@guerby.net>
17671 * a-nudira.adb (Value): Check for valid string.
17672 * a-nuflra.adb (Value): Likewise.
17674 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
17676 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
17678 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
17680 * adaint.c, init.c, tracebak.c: Fix comment typos.
17681 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
17683 2005-04-07 Laurent GUERBY <laurent@guerby.net>
17684 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17686 * Makefile.in: Add make ifeq define for hppa linux tasking support.
17687 * system-hpux.ads: Define Signed_Zeros to be True.
17688 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
17690 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
17692 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
17693 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
17696 2005-03-30 Tom Tromey <tromey@redhat.com>
17698 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
17700 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17702 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
17704 2005-03-29 Robert Dewar <dewar@adacore.com>
17706 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
17707 fixed-point expression has value that is not a multiple of the Small
17710 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
17712 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
17715 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
17717 2005-03-29 Vincent Celier <celier@adacore.com>
17719 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
17720 (Build_Dynamic_Library.Version_String): Return the empty string when
17721 Lib_Version is empty or when the symbol policy is not Autonomous.
17723 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
17724 a symbol is not in the reference symbol file, increase the Major ID
17725 and set the Minor ID to 0.
17726 Use gsmatch=lequal instead of gsmatch=equal
17728 2005-03-29 Doug Rupp <rupp@adacore.com>
17730 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
17731 name and translate.
17733 2005-03-29 Javier Miranda <miranda@adacore.com>
17735 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
17736 (Inherit_DT): The first formal has been redefined as a Tag.
17737 This allows us the removal of the subprogram Get_TSD.
17738 (TSD): Replace the call to Get_TSD by the actual code.
17740 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
17741 (Make_DT): Upgrade the call to Inherit_TSD according to the
17742 new interface: the first formal is now a Tag.
17744 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
17745 redefined as a Tag.
17746 This change allows us to remove the subprogram Get_TSD.
17747 (CPP_Get_TSD): Subprogram removed.
17748 (TSD): Replace the call to CPP_Get_TSD by the actual code.
17750 * rtsfind.ads: Remove support to call the run-time
17753 2005-03-29 Robert Dewar <dewar@adacore.com>
17755 * errutil.adb, errout.adb:
17756 Minor comment updates on Line_Terminator references
17758 * par-ch10.adb: Add ??? comment about line terminator
17760 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
17761 (check dos line terminator).
17762 (Check_Line_Max_Length): New procedure, split off from the existing
17763 Check_Line_Terminator routine. Separating this out allows -gnatyf to
17764 be properly recognized.
17766 * styleg.adb: Add ??? comment for line terminator reference
17768 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
17769 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
17771 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
17772 (check dos line terminator).
17773 (Check_Line_Max_Length): New procedure, split off from the existing
17774 Check_Line_Terminator routine. Separating this out allows -gnatyf to
17775 be properly recognized.
17777 * stylesw.ads, stylesw.adb:
17778 Add handling for new -gnatyd switch (check dos line terminator)
17780 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
17781 Recognize -gnatwb/-gnatwB switches
17782 Include Warn_On_Bad_Fixed_Value for -gnatg
17785 Add line for new -gnatyd switch (check dos line terminator)
17787 * usage.adb: Add lines for -gnatwb/-gnatwB
17789 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
17791 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
17793 * gnat_ugn.texi: Fix overlong lines
17794 Document new -gnatyd switch
17795 Document new -gnatwb/-gnatwB switches
17797 2005-03-29 Ed Schonberg <schonberg@adacore.com>
17799 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
17800 order to retrieve the component list of the type, before examining
17801 individual components.
17803 * sem_type.adb (Covers): Types are compatible if one is the base type
17804 of the other, even though their base types might differ when private
17805 views are involved.
17807 2005-03-29 Thomas Quinot <quinot@adacore.com>
17809 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
17810 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
17811 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
17812 analyzed if expansion is disabled (which could otherwise cause spurious
17813 error messages if expansion has been disabled due to previous
17814 (unrelated) errors).
17816 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
17817 is disabled, the entity denoted by the argument is the access type
17818 itself, not an underlying record type, so there is no need to go back
17819 to the Corresponding_Remote_Type.
17821 2005-03-29 Gary Dismukes <dismukes@adacore.com>
17822 Robert Dewar <dewar@adacore.com>
17824 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
17825 expand a call to an instance of
17826 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
17827 Constructor actual of the instance. A class-wide membership
17828 check is also generated, to ensure that the tag passed to the instance
17829 denotes a type in the class.
17830 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
17831 of Name_Generic_Dispatching_Constructor.
17833 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
17834 05 unit for AI-260-02).
17836 * a-tgdico.ads: New file.
17838 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
17839 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
17841 * snames.ads, snames.adb (Preset_Names): Add entry for
17842 Generic_Dispatching_Constructor.
17845 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
17846 character type cases.
17847 (Analyze_Subprogram_Renaming): Add special handling for
17848 the case of renaming of stream attributes when the renaming denotes a
17849 generic formal subprogram association for an abstract formal subprogram.
17850 Check that the attribute is a primitive stream attribute (and not
17851 a class-wide stream attribute) and then rewrite the attribute name
17852 as the name of the appropriate compiler-generated stream primitive.
17854 2005-03-29 Robert Dewar <dewar@adacore.com>
17856 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
17858 (Is_Possibly_Unaligned_Object): Correct typo that
17859 resulted in inaccurate result for unaligned scalars within records.
17861 2005-03-29 Ed Schonberg <schonberg@adacore.com>
17863 * freeze.adb (Freeze_Record_Type): If the type of the component is an
17864 itype whose parent is controlled and not yet frozen, do not create a
17865 freeze node for the itype if expansion is disabled.
17867 2005-03-29 Vincent Celier <celier@adacore.com>
17869 * make.adb (Gnatmake): Don't fail if the main project file is declared
17870 as having no Ada sources. Do not display message "no sources to
17871 compile" in quiet output.
17873 2005-03-29 Doug Rupp <rupp@adacore.com>
17875 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
17878 2005-03-29 Robert Dewar <dewar@adacore.com>
17880 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
17883 2005-03-29 Robert Dewar <dewar@adacore.com>
17885 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
17886 missing TYPE Improve the error message generated when compiling a
17887 limited interface in Ada83 or Ada95 mode.
17889 2005-03-29 Robert Dewar <dewar@adacore.com>
17891 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
17892 rather than proceed ahead using a junk attribute name.
17894 2005-03-29 Vincent Celier <celier@adacore.com>
17896 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
17898 * prj-part.adb (Parse_Single_Project): Set the location of a project
17899 on its defining identifier, rather than on the reserved word "project".
17901 * prj-proc.adb (Expression): Adapt to the fact that default of external
17902 references may be string expressions, not always literal strings.
17903 (Recursive_Process): Set Display_Name equal to Name
17904 when Location is No_Location, that is when there is no actual file.
17905 Get the Display_Name of the project from the source, when it is not a
17907 (Process): Use the Display_Name in error messages
17909 * prj-strt.adb (External_Reference): Allow default to be string
17910 expressions, not only literal strings.
17912 2005-03-29 Vincent Celier <celier@adacore.com>
17914 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
17915 file and the reference symbol file to be the same file.
17917 2005-03-29 Thomas Quinot <quinot@adacore.com>
17919 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
17920 forbid conversion of a local access-to-subprogram type to a remote one.
17922 * sem_util.adb (Wrong_Type): For a record type that is the expanded
17923 equivalent type for a remote access-to-subprogram type, go back to the
17924 original RAS entity when displaying an error message, so the casing is
17925 the original source casing.
17927 2005-03-29 Robert Dewar <dewar@adacore.com>
17929 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
17932 2005-03-29 Ed Schonberg <schonberg@adacore.com>
17934 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
17935 subtype if code is being pre-analyzed, to prevent un-expanded
17936 references to protected formals, among others.
17937 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
17938 interpretation that can be a call, include the result of the call as a
17939 possible interpretation of the dereference.
17941 * sem_ch5.adb (Process_Bounds): Determine type of range by
17942 pre-analyzing a copy of the original range, and then analyze the range
17943 with the expected type.
17945 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
17946 with an overloaded prefix where not all interpretations yield an
17947 access to subprogram, do not rewrite node as a call.
17948 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
17949 the node as a call once the context identifies the interpretation of
17950 the prefix whose call yields the context type.
17951 (Valid_Conversion): For the case of a conversion between
17952 local access-to-subprogram types, check subtype conformance using
17953 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
17954 detailed error message.
17956 2005-03-29 Ed Schonberg <schonberg@adacore.com>
17958 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
17959 indicator, indicate that the formal can never be null.
17960 (Process_Formals): If a formal has a non_null indicator, insert the
17961 resulting subtype immediately before the enclosing subprogram decl,
17962 and not at the beginning of the corresponding declarative part, to
17963 prevent access before elaboration (Ada2005).
17965 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17968 * utils.c (finish_record_type): Use variable_size when setting sizes.
17970 2005-03-29 Robert Dewar <dewar@adacore.com>
17972 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
17973 guarantee Unix style line terminators for the output files, even when
17974 running on windows.
17976 2005-03-29 Robert Dewar <dewar@adacore.com>
17978 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
17979 buffer if an exception is raised.
17981 2005-03-29 Ed Falis <falis@adacore.com>
17983 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
17986 2005-03-29 Robert Dewar <dewar@adacore.com>
17988 * sem_util.ads: Minor reformatting
17989 * gnat_rm.texi: Minor editing.
17991 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
17993 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
17994 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
17996 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17998 * adaint.c (__gnat_portable_spawn): Adjust cast.
18000 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
18002 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
18004 2005-03-17 Pascal Obry <obry@adacore.com>
18006 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
18009 * expect.c (__gnat_waitpid): Moved here from adaint.c.
18010 Reimplement under Win32 using Win32 API.
18012 (__gnat_kill) [Win32]: Properly close the process handle before leaving
18015 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
18017 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
18018 (DECL_RENAMED_OBJECT): New accessor macro.
18019 (SET_DECL_RENAMED_OBJECT): New setter macro.
18021 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
18022 object in all cases. Attach the renamed object to the VAR_DECL.
18023 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
18024 field is not prescribed.
18026 * misc.c (gnat_handle_option): Handle -gnatO separately.
18027 (gnat_print_decl) <VAR_DECL>: New case.
18028 Print the DECL_RENAMED_OBJECT node.
18030 * lang.opt: Declare separate -gnatO option.
18032 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
18033 pointer, replace it with the renamed object.
18034 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
18035 pointer type if the source is not a fat pointer type whose underlying
18036 array has the same non-zero alias set as that of the destination array.
18038 2005-03-17 Javier Miranda <miranda@adacore.com>
18040 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
18041 (Get_Inheritance_Depth): Removed.
18042 (Set_Inheritance_Depth): Removed.
18044 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
18045 subprogram Get_Expanded_Name because it is not referenced by the
18048 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
18049 (CPP_Get_Inheritance_Depth): Removed.
18050 (CPP_Set_Inheritance_Depth): Removed.
18052 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
18054 2005-03-17 Robert Dewar <dewar@adacore.com>
18056 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
18057 3, since we now expect GCC 3 to do all the work.
18059 2005-03-17 Javier Miranda <miranda@adacore.com>
18061 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
18062 of one barrier to avoid wrong usage of this attribute.
18064 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
18065 First_Private_Entity.
18067 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
18068 the subprogram against wrong usage.
18069 Adapt the code to traverse the entities in the
18070 scope of a record_type because in addition to its usage regarding
18071 packages, this subprogram is also called by Expand_N_Freeze_Entity
18072 to install the visible declarations of the enclosing scope of a
18073 record_type_with_private to establish the proper visibility before
18074 freezing the entity and related subprograms.
18076 2005-03-17 Ed Schonberg <schonberg@adacore.com>
18078 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
18081 2005-03-17 Thomas Quinot <quinot@adacore.com>
18083 * exp_ch3.adb (Check_Attr): New subprogram.
18084 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
18085 into a new Check_Attr subprogram, in order to provide a more
18086 explanatory error message (including the name of the missing attribute).
18087 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
18088 subprogram determines whether a default implementation exists for a
18089 given stream attribute.
18090 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
18091 Determine whether to generate a default implementation for each stream
18092 attribute separately, as this depends on the specific attribute.
18094 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
18095 limited extension where a stream attribute is missing for a limited
18096 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
18097 generate a bogus reference to the missing attribute to prevent
18098 cascaded errors. Instead, generate a null statement.
18100 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
18101 available for a limited type if it has been specified for an ancestor
18104 2005-03-17 Ed Schonberg <schonberg@adacore.com>
18106 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
18107 entity is an operator.
18109 2005-03-17 Thomas Quinot <quinot@adacore.com>
18111 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
18112 spec, to make this predicate available to other units.
18114 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
18117 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
18118 when no distribution runtime library is available.
18120 * sem_res.adb, sem_dist.adb: Disable expansion of remote
18121 access-to-subprogram types when no distribution runtime library is
18123 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
18124 predicate available to other units.
18126 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
18127 spec, to make this predicate available to other units.
18129 2005-03-17 Vincent Celier <celier@adacore.com>
18131 * make.adb (Insert_Project_Sources): Make sure the Q is always
18134 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
18135 the default for the tree, not the global default naming.
18137 * prj-proc.adb (Recursive_Process): No need to put the default naming
18138 in the project data, it's already there.
18140 2005-03-17 Doug Rupp <rupp@adacore.com>
18142 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
18144 * 5xcrtl.ads: Renamed to...
18145 * s-crtl-vms64.ads: ...this new file
18147 2005-03-17 Robert Dewar <dewar@adacore.com>
18150 * namet.adb (Copy_One_Character): Set proper wide character encoding
18151 for upper half character if we have upper half encoding.
18153 2005-03-17 Robert Dewar <dewar@adacore.com>
18155 * par.adb (Par): Improved msg for attempt to recompile predefined unit
18157 2005-03-17 Thomas Quinot <quinot@adacore.com>
18159 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
18160 tagged limited type, the TSS is a newly built renaming declaration:
18161 insert it using Set_TSS, not Copy_TSS.
18163 2005-03-17 Javier Miranda <miranda@adacore.com>
18165 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
18166 Try_Object_Operation): Analyze the object that is accessible
18167 through the prefix of the subprogram call before we apply
18168 the transformation of the object-operation notation.
18170 2005-03-17 Jose Ruiz <ruiz@adacore.com>
18172 * s-taprob.adb (Initialize_Protection): Initialize the protected
18173 object's owner to Null_Task.
18174 (Lock): If pragma Detect_Blocking is in effect and the caller of this
18175 procedure is already the protected object's owner then Program_Error
18176 is raised. In addition the protected object's owner is updated.
18177 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
18178 of this procedure is already the protected object's owner then
18179 Program_Error is raised.
18180 In addition the protected object's owner is updated.
18181 (Unlock): Remove the ownership of the protected object.
18183 * s-taprob.ads (Protection): Add the field Owner, used to store the
18184 protected object's owner.
18185 This component is needed for detecting one type of potentially blocking
18186 operations (external calls on a protected subprogram with the same
18187 target object as that of the protected action). Document the rest of
18190 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
18191 Initialize the protected object's owner to Null_Task.
18192 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
18193 caller of this procedure is already the protected object's owner then
18194 Program_Error is raised.
18195 Do not raise Program_Error when this procedure is called from a
18197 (Unlock_Entries): Remove the ownership of the protected object.
18198 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
18199 of this procedure is already the protected object's owner then
18200 Program_Error is raised.
18201 Do not raise Program_Error when this procedure is called from
18202 a protected action.
18204 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
18205 used to store the protected object's owner.
18207 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
18208 effect and this procedure (a potentially blocking operation) is called
18209 from whithin a protected action, Program_Error is raised.
18210 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
18211 and this procedure (a potentially blocking operation) is called from
18212 whithin a protected action, Program_Error is raised.
18214 2005-03-17 Vincent Celier <celier@adacore.com>
18215 Nicolas Setton <setton@adacore.com>
18217 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
18218 switch, not supported by the linker on Darwin. Add '_' before
18219 <library>init, as this character is added unconditionally by the
18221 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
18222 correct one ".dylib". This fixes detection of the archive files when
18223 building library projects.
18225 2005-03-17 Vincent Celier <celier@adacore.com>
18227 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
18228 -gnat83, -gnat95 and -gnat05.
18230 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
18232 * gnat_ugn.texi: Document gnatmem restriction
18234 2005-03-17 Thomas Quinot <quinot@adacore.com>
18236 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
18239 2005-03-17 Robert Dewar <dewar@adacore.com>
18241 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
18242 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
18243 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
18245 * casing.adb: Comment improvements
18247 2005-03-17 Pascal Obry <obry@adacore.com>
18249 * g-expect.adb: Minor reformatting.
18251 2005-03-15 Zack Weinberg <zack@codesourcery.com>
18253 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
18254 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
18257 2005-03-15 Vincent Celier <celier@adacore.com>
18259 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
18260 Add new parameter In_Tree to specify the project tree: needed
18261 by the project manager. Adapt to changes in project manager
18262 using new parameter In_Tree.
18264 2005-03-15 Jakub Jelinek <jakub@redhat.com>
18266 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
18267 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
18268 ada/bldtools to avoid make -jN failures.
18270 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18272 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
18273 to NULL_TREE on entry.
18275 2005-03-15 Robert Dewar <dewar@adacore.com>
18277 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
18278 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
18279 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
18280 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
18281 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
18282 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
18283 system-interix.ads, system-solaris-sparc.ads,
18284 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
18285 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
18286 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
18287 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
18288 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
18289 Compiler_System_Version to be False.
18291 * opt.ads: Add new flag Opt.Address_Is_Private
18293 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
18294 Add new parameter Compiler_System_Version to avoid checking for
18295 completeness of parameters when compiler is compiling itself.
18296 Allows old versions of GNAT to be compiled with new compiler.
18298 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18300 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
18301 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
18303 (Stack_Base_Available): New flag.
18304 (Get_Page_Size): New overloaded functions imported from C.
18305 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
18306 PROT_ON, PROT_OFF): New constants.
18307 (mprotect): New function imported from C.
18308 (pthread_teb_t): New record type.
18310 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
18311 (Create_Task): Account for the Yellow Zone and the guard page.
18313 2005-03-15 Vincent Celier <celier@adacore.com>
18315 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
18316 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
18317 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
18318 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
18319 Library_File_Name_For): Add new parameter In_Tree
18320 to specify the project tree: needed by the project manager.
18321 Adapt to changes in project manager using new parameter In_Tree.
18322 Remove local imports, use functions in System.CRTL.
18324 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
18325 to use the project manager.
18327 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
18328 In_Tree to designate the project tree. Adapt to changes in the project
18329 manager, using In_Tree.
18331 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
18332 Copy_Interface_Sources): Add new parameter In_Tree to specify the
18333 project tree: needed by the project manager.
18334 (Build_Library): Check that Arg'Length >= 6 before checking if it
18335 contains "--RTS=...".
18337 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
18338 Library_File_Name_For): Add new parameter In_Tree to specify the
18339 project tree: needed by the project manager.
18341 * prj.ads, prj.adb: Major modifications to allow several project trees
18342 in memory at the same time.
18343 Change tables to dynamic tables and hash tables to dynamic hash
18344 tables. Move tables and hash tables from Prj.Com (in the visible part)
18345 and Prj.Env (in the private part). Move some constants from the visible
18346 part to the private part. Make other constants deferred.
18347 (Project_Empty): Make it a variable, not a function
18348 (Empty_Project): Add parameter Tree. Returns the data with the default
18349 naming data of the project tree Tree.
18350 (Initialize): After updating Std_Naming_Data, copy its value to the
18351 component Naming of Project Empty.
18352 (Register_Default_Naming_Scheme): Use and update the default naming
18353 component of the project tree, instead of the global variable
18355 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
18356 Tree is not defaulted, return the default naming data of the Tree.
18357 (Initial_Buffer_Size): Constant moved from private part
18358 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
18359 variables initialized in procedure Initialize.
18360 (Add_To_Buffer): Add two in out parameters to replace global variables
18361 Buffer and Buffer_Last.
18362 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
18364 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
18366 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
18367 for the project tree.
18368 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
18369 constant at the beginning of the package spec, so that they cane be used
18370 in subprograms before their full declarations.
18371 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
18372 (Empty_Project): Add parameter of type Project_Node_Ref
18373 (Private_Project_Tree_Data): Add component Default_Naming of type
18375 (Buffer, Buffer_Last): remove global variables
18376 (Add_To_Buffer): Add two in out parameters to replace global variables
18377 Buffer and Buffer_Last.
18378 (Current_Packages_To_Check): Remove global variable
18379 (Empty_Name): Move to private part
18380 (No-Symbols): Make it a constant
18381 (Private_Project_Tree_Data): New type for the private part of the
18383 (Project_Tree_Data): New type for the data of a project tree
18384 (Project_Tree_Ref): New type to designate a project tree
18385 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
18386 for the project tree.
18388 * prj-attr.ads: Add with Table; needed, as package Prj no longer
18389 imports package Table.
18391 * prj-com.adb: Remove empty, no longer needed body
18393 * prj-com.ads: Move most of the content of this package to package Prj.
18395 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
18396 designate the project node tree and Packages_To_Check to replace
18397 global variable Current_Packages_To_Check.
18398 Add new parameters In_Tree and Packages_To_Check to local subprograms,
18399 when needed. Adapt to changes in project manager with project node tree
18402 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
18403 project tree to most subprograms. Move tables and hash tables to
18404 private part of package Prj.
18405 Adapt to changes in project manager using project tree In_Tree.
18407 * prj-makr.adb (Tree): New constant to designate the project node tree
18408 Adapt to change in project manager using project node tree Tree
18410 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
18411 display the Library_Src_Dir and the Library_Dir.
18412 Add new parameter In_Tree to designate the project node tree to most
18413 subprograms. Adapt to changes in the project manager, using project tree
18415 (Check_Naming_Scheme): Do not alter the casing on platforms where
18416 the casing of file names is not significant.
18417 (Check): Add new parameter In_Tree to designate the
18419 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
18420 designate the project tree.
18421 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
18423 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
18424 to replace those that were in the private part of package Prj.
18425 Add new parameter In__Tree to designate the project node tree to most
18426 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
18427 (Post_Parse_Context_Clause): When specifying the project node of a with
18428 clause, indicate that it is a limited with only if there is "limited"
18429 in the with clause, not necessarily when In_Limited is True.
18430 (Parse): Add new parameter In_Tree to designate the project node tree
18432 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
18433 designate the project node tree. Adapt to change in Prj.Tree with
18434 project node tree In_Tree.
18436 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
18437 tree In_Tree in the call to function Empty_Process to give its initial
18438 value to the project data Processed_Data.
18439 Add new parameters In_Tree to designate the project tree and
18440 From_Project_Node_Tree to designate the project node tree to several
18441 subprograms. Adapt to change in project manager with project tree
18442 In_Tree and project node tree From_Project_Node_Tree.
18444 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
18445 to replace those that were in the private part of package Prj.
18446 Add new parameter In_Tree to designate the project node tree to most
18447 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
18449 * prj-tree.ads, prj-tree.adb: Add new parameter of type
18450 Project_Node_Tree_Ref to most subprograms.
18451 Use this new parameter to store project nodes in the designated project
18453 (Project_Node_Tree_Ref): New type to designate a project node tree
18454 (Tree_Private_Part): Change table to dynamic table and hash tables to
18455 dynamic hash tables.
18457 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
18458 the project tree to most subprograms. Adapt to changes in project
18459 manager using project tree In_Tree.
18461 * makegpr.adb (Project_Tree): New constant needed to use project
18464 2005-03-15 Olivier Hainque <hainque@adacore.com>
18466 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
18467 for sigactions with SA_SIGINFO set. Call
18468 __gnat_adjust_context_for_raise before raising, to perform the
18469 potentially required adjustments to the machine context for the GCC
18472 * raise.h (__gnat_adjust_context_for_raise): New prototype.
18474 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
18475 Adjust PC by one in the provided machine context.
18476 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
18477 so that the handler is passed the context structure to adjust prior to
18479 (__gnat_error_handler) HPUX: Adjust the signature to match what an
18480 SA_SIGINFO sigaction should look like. Call
18481 __gnat_adjust_context_for_raise before actually raising.
18482 (__gnat_adjust_context_for_raise): Default noop to help PC
18483 adjustments before raise from signal handlers.
18484 (__gnat_error_handler): Indirectly call a predicate function to
18485 determine if a condition should be resignaled or not.
18486 (__gnat_set_resignal_predicate): User interface to modify the predicate.
18487 (__gnat_default_resignal_p): Default GNAT predicate.
18489 2005-03-15 Doug Rupp <rupp@adacore.com>
18491 * adaint.c: Prefix #include of VMS system header files with vms/
18492 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
18493 Do not define a dummy function "convert_addresses" under Darwin,
18496 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
18499 2005-03-15 Nicolas Setton <setton@adacore.com>
18501 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
18504 2005-03-15 Robert Dewar <dewar@adacore.com>
18506 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
18509 * a-retide.ads: Minor comment changes
18511 2005-03-15 Robert Dewar <dewar@adacore.com>
18513 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
18514 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
18515 Realloc_For_Chunk to private part of package.
18516 New subprograms for AI-301
18518 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
18519 Get_Line procedure.
18520 Avoid unnecessary use of Get/Set_Wide_String
18522 2005-03-15 Robert Dewar <dewar@adacore.com>
18525 * a-stunau.ads, a-stunau.adb:
18526 Change interface to allow efficient (and correct) implementation
18527 The previous changes to allow extra space in unbounded strings had
18528 left this interface a bit broken.
18530 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
18532 * g-spipat.ads, g-spipat.adb: New interface for Get_String
18533 Minor reformatting (function specs)
18535 * g-spitbo.adb: New interface for Get_String
18537 * g-spitbo.ads: Minor reformatting
18539 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
18541 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
18543 2005-03-15 Javier Miranda <miranda@adacore.com>
18544 Robert Dewar <dewar@adacore.com>
18545 Thomas Quinot <quinot@adacore.com>
18546 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18548 * atree.ads, atree.adb: Add support for Elist24 field
18550 * atree.h: Fix wrong definition of Field27
18551 Add support for Elist16 field
18552 Add support for Elist24 field
18554 * einfo.ads, einfo.adb (Abstract_Interfaces,
18555 Set_Abstract_Interfaces): New subprograms.
18556 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
18558 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
18559 entities rather than a single node.
18560 (Is_Interface, Set_Is_Interface): New subprogram
18561 (First_Tag_Component): New syntesized attribute
18562 (Next_Tag_Component): New synthesized attribute
18563 (Write_Entity_Flags): Upgraded to write Is_Interface
18564 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
18565 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
18566 (Task_Body_Procedure): New subprogram to read this attribute.
18567 (Set_Task_Body_Procedure): New subprogram to set this attribute.
18568 (Has_Controlled_Component): Now applies to all entities.
18569 This is only a documentation change, since it always worked to apply
18570 this to other than composite types (yielding false), but now this is
18572 Update documentation on Must_Be_Byte_Aligned for new spec
18574 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
18575 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
18576 uses of the Access_Disp_Table attribute to reference the first dispatch
18577 table associated with a tagged type. As
18578 part of the implementation of abstract interface types,
18579 Access_Disp_Table has been redefined to contain a list of dispatch
18580 tables (rather than a single dispatch table).
18581 Similarly, upgrade all the references to Tag_Component by the
18582 new attribute First_Tag_Component.
18583 (Find_Inherited_TSS): Moved to exp_tss.
18584 Clean up test in Expand_N_Object_Declaration for cases
18585 where we need to do a separate assignment of the initial value.
18586 (Expand_N_Object_Declaration): If the expression in the
18587 declaration of a tagged type is an aggregate, no need to generate an
18588 additional tag assignment.
18589 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
18591 Bit packed array ops are only called if operands are known to be
18593 (Component_Equality): When returning an N_Raise_Program_Error statement,
18594 ensure that its Etype is set to Empty to avoid confusing GIGI (which
18595 expects that only expressions have a bona fide type).
18596 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
18597 determine the amount of data to be copied.
18599 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
18600 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
18601 INTERFACE_TYPE_DEFINITION ::=
18602 [limited | task | protected | synchronized] interface
18603 [AND interface_list]
18605 * par-ch3.adb (P_Type_Declaration): Modified to give support to
18607 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
18609 (P_Interface_Type_Definition): New subprogram that parses the new
18610 syntax rule of Ada 2005 interfaces
18611 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
18612 messages by the correct RENAMES (quotes removed).
18614 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
18615 attribute First_Tag_Component.
18617 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
18618 (Interface_List, Set_Interface_List): New subprograms.
18619 (Interface_Present, Set_Interface_Present): New subprograms.
18620 (Limited_Present, Set_Limited_Present): Available also in derived
18621 type definition nodes.
18622 (Protected_Present, Set_Protected_Present): Available also in
18623 record type definition and
18624 derived type definition nodes.
18625 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
18626 (Task_Present, Set_Task_Present): New subprogram.
18627 (Task_Body_Procedure): Removed.
18628 (Set_Task_Body_Procedure): Removed.
18629 These subprogram have been removed because the attribute
18630 Task_Body_Procedure has been moved to the corresponding task type
18631 or task subtype entity to leave a field free to store the list
18632 of interfaces implemented by a task (for AI-345)
18633 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
18634 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
18635 expression flag Do_Range_Check
18636 (Exception_Junk): Change to Flag7 to accomodate above change
18637 (Box_Present, Default_Name, Specification, Set_Box_Present,
18638 Set_Default_Name, Set_Specification): Expand the expression
18639 "X in N_Formal_Subprogram_Declaration" into the corresponding
18640 two comparisons. Required to use the csinfo tool.
18642 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
18643 "with string" given.
18645 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
18648 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
18651 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
18652 attribute Task_Body_Procedure rather than the old semantic field that
18653 was available in the task_type_declaration node.
18655 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
18656 interface type definitions.
18657 (P_Formal_Derived_Type_Definition): Modified to handle the list of
18660 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
18661 task type declaration.
18662 (P_Protected): Modified to handle the list of interfaces in a
18663 protected type declaration.
18665 2005-03-15 Doug Rupp <rupp@adacore.com>
18666 Vincent Celier <celier@adacore.com>
18668 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
18669 (Gen_Output_File_C): Likewise.
18670 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
18672 2005-03-15 Thomas Quinot <quinot@adacore.com>
18674 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
18675 is an N_Raise_Constraint_Error node, create a new copy of it without
18676 going through a call to Duplicate_Subexpr.
18678 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18679 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18680 Nicolas Setton <setton@adacore.com>
18681 Ed Schonberg <schonberg@adacore.com>
18687 * decl.c (gnat_to_gnu_field): Reject aliased components with a
18688 representation clause that prescribes a size not equal to the rounded
18689 size of their types.
18690 (gnat_to_gnu_entity, case E_Component): Always look at
18691 Original_Record_Component if Present and not the entity.
18692 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
18693 of tagged extension types by not making field for components that are
18695 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
18696 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
18697 expression to the type of the object when the object is constant.
18698 Reverse defer_debug_incomplete_list before traversing it, so that trees
18699 are processed in the order at which they were added to the list. This
18700 order is important when using the stabs debug format.
18701 If we are deferring the output of debug information, also defer this
18702 output for a function return type.
18703 When adding fields to a record, prevent emitting debug information
18704 for incomplete records, emit the information only when the record is
18706 (components_to_record): New parameter defer_debug.
18707 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
18708 (gnat_to_gnu_field_decl): New function.
18709 (substitution_list, annotate_rep): Call it.
18710 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
18711 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
18712 No longer update discriminants to not be a COMPONENT_REF.
18713 (copy_alias_set): Strip padding from input type; also handle
18714 unconstrained arrays properly.
18716 * gigi.h (write_record_type_debug_info): New function.
18717 Convert to use ANSI-style prototypes. Remove unused
18718 declarations for emit_stack_check, elab_all_gnat and
18719 set_second_error_entity.
18720 (gnat_to_gnu_field_decl): New decl.
18722 * utils.c (write_record_type_debug_info): New function.
18723 (finish_record_type): Delegate generation of debug information to
18724 write_record_type_debug_info.
18725 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
18726 (update_pointer_to): Fix pasto.
18727 (convert) <UNION_TYPE>: Accept slight type variations when
18728 converting to an unchecked union type.
18730 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
18731 replace the N_Freeze_Entity with a null statement.
18733 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
18734 within a constrained subcomponent of an enclosing record, place the
18735 freeze nodes in the scope stack entry for the enclosing record.
18736 (Undelay_Type): New Subprogram.
18737 (Set_Small_Size): Pass T, the type to modify; all callers changed.
18738 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
18739 within records; allow them to have freeze nodes if their base types
18742 * exp_util.adb (Remove_Side_Effects): Properly test for
18743 Expansion_Delayed and handle case when it's inside an
18744 N_Qualified_Expression.
18746 * sem_ch3.adb (Derived_Type_Declaration): New predicate
18747 Comes_From_Generic, to recognize accurately that the parent type in a
18748 derived type declaration can be traced back to a formal type, because
18749 it is one or is derived from one, or because its completion is derived
18751 (Constrain_Component_Type): If component comes from source and has no
18752 explicit constraint, no need to constrain in in a subtype of the
18754 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
18755 Minor change to propagate Is_Ada_2005 flag
18757 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
18758 Expansion_Delayed is False.
18759 (assoc_to_constructor): Ignore fields that have a
18760 Corresponding_Discriminant.
18761 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
18762 function returns "by target", dereference the target pointer using the
18763 type of the actual return value.
18764 <all>: Be prepared for a null gnu_result.
18765 (processed_inline_subprograms): Check flag_really_no_inline
18766 instead of flag_no_inline.
18767 (set_second_error_entity): Remove unused function.
18768 (gnat_to_gnu, case N_Selected_Component): Call
18769 gnat_to_gnu_field_decl.
18770 (assoc_to_constructor): Likewise.
18772 2005-03-15 Robert Dewar <dewar@adacore.com>
18773 Ed Schonberg <schonberg@adacore.com>
18774 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18776 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
18777 Must_Be_Byte_Aligned for cases where we do not need to use a
18778 System.Pack_nn unit.
18780 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
18782 Needed now that we do some processing for IN parameters as well. This
18783 may well fix some unrelated errors.
18784 (Expand_Call): Handle case of unaligned objects (in particular those
18785 that come from packed arrays).
18786 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
18787 renamed entity is an inherited operation, re-expand the call using the
18788 original operation, which is the one to call.
18789 Detect attempt to inline parameterless recursive subprogram.
18790 (Represented_As_Scalar): Fix to work properly with private types
18791 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
18792 accurate estimate. Yields True in far fewer cases than before,
18793 improving the quality of code that depends on this test.
18795 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
18796 over both visible and private declarations to remove them from tree,
18797 and mark subprograms declared in package as eliminated, to prevent
18798 spurious use in subsequent compilation of generic units in the context.
18800 * exp_util.ads: Minor cleanup in variable names
18802 * sem_eval.ads, sem_eval.adb: Minor reformatting
18803 (Compile_Time_Known_Bounds): New function
18805 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18807 * exp_ch7.adb (Convert_View): Use base types of underlying types when
18808 determining whether an unchecked conversion is needed for the argument
18809 of an initialization call.
18811 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18813 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
18814 that appears in the instantiation rather than the internal subtype
18815 generated in the wrapper package, to avoid anomalies in gigi when the
18816 target is derived from a private type whose full view is an access type.
18818 2005-03-15 Robert Dewar <dewar@adacore.com>
18820 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
18822 Add documentation to replace the use of this flag
18823 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
18826 2005-03-15 Thomas Quinot <quinot@adacore.com>
18828 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
18829 here from exp_attr so it can be shared between exp_attr and exp_dist.
18830 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
18831 all TSS names, not a subset thereof, and the previous name introduced
18832 an unnecessarily confusion that a distinction might exist between
18833 "OK" TSS names and some "not OK" TSS names.
18835 2005-03-15 Doug Rupp <rupp@adacore.com>
18837 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
18840 2005-03-15 Pascal Obry <obry@adacore.com>
18841 Eric Botcazou <ebotcazou@adacore.com>
18845 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
18846 when IN_RTS. This is to work around a bootstrap path problem.
18848 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
18849 table and pass it to __gnat_install_SEH_handler().
18850 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
18852 * lang.opt: Fix specification of -fRTS=.
18854 2005-03-15 Doug Rupp <rupp@adacore.com>
18855 Bernard Banner <banner@adacore.com>
18856 Vincent Celier <celier@adacore.com>
18857 Arnaud Charlet <charlet@adacore.com>
18860 This change works fine when gnatlib is built from the gcc directory,
18861 but does not work when using the libada Makefile, since GCC_FOR_TARGET
18862 is not passed to ada/Makefile.in, so more work is needed by a
18863 Makefile/configure expert.
18865 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
18866 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
18867 Setup gnatlink switch -M for x86_64 linux, as it is already setup
18869 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
18870 Run ranlib on libgccprefix.a
18871 Define PREFIX_OBJS for Darwin, to build libgccprefix.
18872 (ADA_INCLUDE_SRCS): Split Ada packages.
18874 2005-03-15 Robert Dewar <dewar@adacore.com>
18876 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
18878 * impunit.adb: Add GNAT.UTF_32
18880 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
18882 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
18883 now uses GNAT.UTF_32).
18885 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
18886 capabilities for categorizing characters using Unicode categories
18888 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18890 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
18891 instantiation that has been rewritten as a package body, retrieve spec
18892 to generate proper name for implicit_with_clause.
18893 (Install_Parents): Recognize a parent that is an instantiation but has
18894 been rewritten as a package declaration during analysis.
18896 2005-03-15 Javier Miranda <miranda@adacore.com>
18897 Ed Schonberg <schonberg@adacore.com>
18899 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
18900 parameter reported some error we immediately return. This improves the
18901 behaviour of the frontend in case of errors.
18902 (Install_Parent, Remove_Parent): Introduce new flag
18903 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
18904 ancestor of a generic child unit, when the child is being instantiated.
18905 (Inline_Instance_Body): If we are compiling the private
18906 part or the body of a child unit, restore the proper visibility of the
18907 parents after compiling the instance body.
18909 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18910 Javier Miranda <miranda@adacore.com>
18913 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
18914 of a private type, in which case it is underlying_type that denotes
18915 the proper task. Also modified to use the new entity attribute
18916 that is directly available in the task type and task subtype entities
18917 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
18918 arrays when other dimensions than the first are constrained by
18919 discriminants of an enclosing record.
18920 (Insert_Explicit_Dereference): If the prefix is an indexed component or
18921 a combination of indexed and selected components, find ultimate entity
18922 and generate the appropriate reference for it, to suppress spurious
18924 (Note_Possible_Modification): If an entity name has no entity, return.
18925 (Is_Variable): A function call never denotes a variable.
18926 (Requires_Transient_Scope): For record types, recurse only on
18927 components, not on internal subtypes that may have been generated for
18928 constrained components.
18930 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18932 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
18933 Eliminated as candidates for resolution. Both efficient, and avoids
18934 anomalies with operators declared in deleted code.
18935 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
18936 expansion is disabled (as when compiling a generic) to prevent spurious
18937 warnings on prefixes of selected components.
18939 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18941 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
18942 attached to a list before checking whether it appears in the private
18943 declarations of the current package.
18944 (Make_Inequality_Operator): Insert declaration in proper declarative
18945 list rather than just setting the Parent field, so that
18946 Is_Private_Declaration can handle it properly.
18948 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18950 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
18951 a renaming a body, check that the renamed subprogram in not intrinsic.
18952 (Find_Direct_Name): If several use_visible entities hide
18953 each other, and the context is a predefined file compiled through
18954 rtsfind, keep only the entity that comes from a predefined file.
18956 2005-03-15 Geert Bosch <bosch@adacore.com>
18958 * s-fatgen.adb (Valid): Extend special exceptions to account for long
18959 long float padding to also cover AMD64 and IA64.
18961 2005-03-15 Gary Dismukes <dismukes@adacore.com>
18963 * s-imgwch.adb: Add with and use of Interfaces.
18964 (Img_Wide_Character): Change type of Val to Unsigned_16.
18965 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
18967 2005-03-15 Matthew Gingell <gingell@adacore.com>
18969 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
18971 2005-03-15 Robert Dewar <dewar@adacore.com>
18973 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
18975 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
18977 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
18979 2005-03-15 Robert Dewar <dewar@adacore.com>
18981 * s-bitops.adb, s-bitops.ads,
18982 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
18983 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
18984 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
18985 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
18986 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
18987 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
18988 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
18989 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
18992 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18994 * utils2.c (build_binary_op): Fix typo.
18996 2005-03-15 Doug Rupp <rupp@adacore.com>
18998 * s-crtl.ads (popen,pclose): New imports.
19000 2005-03-15 Cyrille Comar <comar@adacore.com>
19002 * comperr.adb (Compiler_Abort): remove references to obsolete
19003 procedures in the bug boxes for various GNAT builds.
19005 2005-03-15 Vincent Celier <celier@adacore.com>
19007 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
19009 2005-03-15 Geert Bosch <bosch@adacore.com>
19010 Arnaud Charlet <charlet@adacore.com>
19011 Robert Dewar <dewar@adacore.com>
19012 Cyrille Comar <comar@adacore.com>
19013 Sergey Rybin <rybin@adacore.com>
19015 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
19016 too specific and long-winded to be appropriate for the GNAT User's
19018 Warn about use of GCC switches not documented in the GNAT User's Guide,
19019 as these may cause generated code to not conform to Ada semantics.
19020 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
19021 Add documentation for -gnat95 and -gnat05 switches
19022 Remove paragraph documenting obsolete way to refer to third party
19024 Add a few references to Ada_05 that were missing.
19025 Update documentation on -gnatZ/-gnatL.
19026 Document limitation when using -m64 under Solaris.
19027 Change the "Name Casing" subsection of the pretty-printer section
19028 according to the changes in the dictionary processing.
19030 * gnat_rm.texi: Document the Ada_05 pragma.
19031 Section on record representation clauses describes the new more
19032 relaxed rules about placement of large packed bit array components.
19033 Add documentation of GNAT.UTF_32
19035 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
19037 * misc.c (gnat_post_options): Turn off structural
19040 2005-03-08 Laurent Guerby <laurent@guerby.net>
19042 * system-linux-sparc.ads: Fix typo in previous commit.
19044 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
19045 Laurent Guerby <laurent@guerby.net>
19048 * system-linux-sparc.ads: New.
19049 * Makefile.in: Add sparc linux entry.
19051 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
19053 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
19054 parameters as unused.
19056 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
19057 Partial merge from libada-gnattools-branch:
19059 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
19060 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
19061 into code in gnattools/Makefile.in. Remove direct dependencies on
19062 stamp-tools by tools clauses.
19063 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
19064 * config-lang.in: Add gnattools to $lang_dirs.
19066 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
19069 * utils.c (gnat_type_for_mode): Return null instead of ICE because
19070 we asked for an unknown mode.
19072 2005-02-12 Richard Henderson <rth@redhat.com>
19074 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
19075 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
19077 2005-02-10 Andreas Jaeger <aj@suse.de>
19079 * init.c (__gnat_initialize): Mark parameter as unused.
19081 2005-02-09 Doug Rupp <rupp@adacore.com>
19083 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
19084 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
19086 2005-02-09 Doug Rupp <rupp@adacore.com>
19088 * gnatchop.adb (dup, dup2),
19089 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
19091 * gnatlbr.adb (mkdir),
19092 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
19094 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
19096 2005-02-09 Doug Rupp <rupp@adacore.com>
19098 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
19100 2005-02-09 Robert Dewar <dewar@adacore.com>
19101 Thomas Quinot <quinot@adacore.com>
19102 Javier Miranda <miranda@adacore.com>
19103 Pascal Obry <obry@adacore.com>
19104 Ed Schonberg <schonberg@adacore.com>
19105 Doug Rupp <rupp@adacore.com>
19106 Gary Dismukes <dismukes@adacore.com>
19107 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19109 * g-zstspl.ads: New file.
19111 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
19113 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
19115 Add definition of Wide_Wide_Space for AI-285
19117 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
19118 interface (to support Ada 95 and Ada 2005 units).
19119 Add Unbounded_IO files
19120 Add entries for Wide_Wide packages for AI-285
19121 Add list of containers packages to Ada 2005 unit list
19123 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
19124 support new Unbounded_IO package cleanly.
19126 * g-utf_32.ads, g-utf_32.adb: New files.
19128 * Makefile.rtl: Add entry for g-utf_32
19129 Add new files for Unbounded_IO
19130 Adjust make file for new AI-285 wide wide packages
19131 Add AI-302 containers to the run time.
19133 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
19134 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
19135 subprograms for AI-301.
19137 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
19139 * a-stunau.ads: Minor comment correction
19141 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
19143 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
19144 (Check_RPC): Update to match changes in expanded code.
19145 Clean up unused entity.
19147 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
19148 was not taken into account.
19149 This includes proper initialization with Normalize_Scalars.
19150 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
19151 normalize scalars cases (particularly the latter) to do a better job
19152 of finding invalid representations.
19154 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
19156 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
19159 * exp_dist.adb: Add support for wide wide character type
19160 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
19161 private part, generate stub bodies at the end of the private part,
19162 not the visible part.
19163 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
19165 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
19166 generic wrapper to execute final processing after completing the
19167 expansion of the RPC receiver for an RACW.
19169 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
19170 packages and attributes.
19171 (Preset_Names): Addition of the new reserved words of Ada 2005,
19172 that is interface, overriding and synchronized.
19173 (Get_Pragma_Id): Give support to the use of the new reserved word
19174 "interface" as a pragma name.
19175 (Is_Pragma_Name): Give support to the use of the new reserved word
19176 "interface" as a pragma name.
19177 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
19178 attribute implementation.
19180 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
19181 checks to entities that are output parameters of Asm operations.
19182 Handle the Stream_Size attribute.
19183 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
19185 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
19187 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
19188 for second parameter being 0.0.
19189 Add support for wide wide character type.
19190 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
19192 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
19193 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
19194 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
19195 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
19196 for wide wide character cases.
19198 * cstand.adb: Create entities for Wide_Wide_Character and
19201 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
19202 accordance with AI-258.
19203 Add new declarations for 16/32 bit C character types (Part of AI285)
19205 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
19206 (Obsolescent_Warning): New field
19207 (Rep_Clause): New local subprogram used to share code. Returns the rep
19208 clause for which the name is given in parameter.
19209 (Has_Stream_Size_Clause): New routine.
19210 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
19211 (Address_Clause): Implementation is now using Rep_Clause.
19212 (Alignment_Clause): Idem.
19213 (Size_Clause): Idem.
19215 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
19216 entity in non-Ada 2005 mode and generate warning.
19218 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
19219 (Prag): Code cleanup. Remove old gnat pragma "overriding"
19221 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
19222 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
19223 on the named unit if the pragma is not in the current compilation unit,
19224 so that elaboration calls in the current unit can set up an elaboration
19225 dependency on the named unit, as needed.
19226 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
19227 subprogram as well as for subprograms declared within a package.
19228 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
19231 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
19232 to z) to avoid some instances of duplication for Wide_Wide packages.
19234 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
19237 * scn.adb: Char_Literal_Value field is now a Uint
19239 * scng.adb: Significant rewrite to handle new Ada 2005 features
19240 allowing wide and wide wide characters in program text, e.g. for
19241 identifiers, as described in AI-285.
19242 (Set_Reserved): New procedure, makes setting up keywords cleaner.
19243 (Initialize_Scanner): Register the new reserved words of Ada 2005.
19244 (Scan): Give support to the new reserved words.
19246 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
19247 warning notifying that interface, overriding, and synchronized are
19248 new reserved words.
19249 (P_Pragma): Allow the use of the new reserved word "interface" as
19252 * gnatls.adb, gnatbind.adb,
19253 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
19254 identifiers named "interface" to "SAL_Interface".
19256 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
19257 (Structured Exception handling).
19258 (Gen_Main_C): Idem.
19261 (Gen_Main_Ada): Set the default exit code if specified.
19262 (Gen_Main_C): Likewise.
19264 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
19265 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
19267 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
19270 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
19271 has a collision with the new Ada 2005 "interface" reserved word.
19273 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
19274 generate a warning notifying that interface, overriding, and
19275 synchronized are new reserved words.
19277 * scans.ads (Token_Type): Addition of the tokens corresponding to the
19278 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
19279 and Tok_Synchronized.
19281 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
19282 "dispatching" rather than "primitive" operations, since dispatching
19283 calls are now allowed to abstract formal subprograms (which are not
19285 Char_Literal_Value field is now a Uint
19286 (Resolve_Slice): If the prefix is an access to an unconstrained array,
19287 compute the actual subtype of the designated object to impose the proper
19289 (Resolve_Selected_Component): Do not insert an access check if the
19290 prefix is an access type: such a node is expanded into an explicit
19291 dereference, on which the access check is performed anyway. Removes
19292 expensive duplicate checks.
19293 (Resolve_Call): Use new flag Is_Obsolescent and field
19294 Obsolescent_Warning so that pragma Obsolescent works on library
19296 Add support for wide wide character type
19297 (Resolve_Allocator): Replace the error message on wrong null-exclusion
19298 value by a warning message.
19299 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
19300 as fixed-point, and one of the operands is non-static and universal, it
19301 can only be an illegal exponentiation operation, in which case there is
19302 no real value to retrieve.
19304 * exp_strm.adb: Add support for wide wide character type
19305 (Build_Elementary_Input_Call): Compute the size of the stream element by
19306 querying the rep chain to find the Stream_Attribute attribute value.
19307 (Build_Elementary_Write_Call): Ditto.
19309 * sem_aggr.adb: Char_Literal_Value field is now a Uint
19310 Add support for wide wide character type
19311 Replace the error messages on wrong null-exclusion value by warnings
19312 as described in Ada 2005.
19313 (Resolve_Extension_Aggregate): Document the fact that the error
19314 message on class-wide expressions in extensions aggregates.
19316 * sem_case.adb: Add support for wide wide character type
19318 * sem_ch13.adb: Add support for wide wide character type
19319 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
19321 * sem_ch3.adb: Add support for wide wide character type
19322 (Process_Subtype): If constraint is illegal for the type, set Ekind of
19323 now-useless Itype, to prevent cascaded errors on a compiler built
19326 * sem_ch8.adb: Add with and use of Sem_Disp.
19327 (Analyze_Subprogram_Renaming): Replace unclean uses of
19328 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
19329 of Corresponding_Spec to Empty).
19330 (Attribute_Renaming): Replace use of Corresponding_Spec with
19331 Corresponding_ Formal_Spec and simplify condition.
19332 (Use_One_Package): Check that scope of homonym of identifier is defined,
19333 before checking whether it is a wrapper package.
19334 Add support for wide wide character type
19336 * sem_eval.adb: Add support for wide wide character type.
19337 (Eval_Arithmetic_Op): Check for compile time known signed integer
19338 overflow in the non-static case.
19339 (Subtypes_Statically_Match): A formal scalar type and its base type do
19340 not statically match.
19342 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
19343 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
19345 (Unit_Declaration_Node): Ditto.
19346 (Is_Variable_Prefix): For the case of an indexed component whose prefix
19347 has a packed array type, the prefix has been rewritten into a type
19348 conversion. Determine variable-ness from the converted expression.
19349 Handle wide wide character cases.
19351 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
19353 * stringt.ads, stringt.adb: Handle full UTF-32 range.
19354 Remove ["0A"] from comment, since it can look like a line terminator.
19355 Currently we don't permit this, but this is under discussion by the
19356 ARG, and it is easy enough to use a different example.
19358 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
19359 handling UTF-32 encoding for wide wide character.
19360 Implement new brackets coding ["hhhhhhhh"]
19361 Add UTF-8 encodings for full UTF-32 range
19363 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
19365 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
19366 bit range Add full UTF-32 support.
19367 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
19368 notify that constraint error will be raised at run-time
19369 because a null value is assigned to a null-excluding object.
19370 Remove some obsolete declarations and make Char_Code
19373 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
19374 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
19375 Rcheck subprograms.
19377 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
19378 wrong null-exclusion value by a warning message.
19379 (Enable_Range_Check): Do range check if the prefix is an
19380 explicit dereference whose designated object is an unconstrained array.
19381 Current algorithm for removing duplicate checks is over-eager in this
19384 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
19385 null-exclusion value by a warning message
19387 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
19388 completely. Add support for Uint2 field
19390 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
19391 exp_prag.adb: Char_Literal_Value field is now a Uint.
19393 * exp_util.adb (Insert_Actions): Replace
19394 N_Formal_Subprogram_Declaration by
19395 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
19396 Char_Literal_Value field is now a Uint.
19398 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
19399 defined for subprogram renaming declarations. When set, the field
19400 indicates the defining entity of a corresponding formal subprogram
19401 when the renaming corresponds to a formal subprogram association in an
19403 (Set_Corresponding_Formal_Spec): New procedure to return
19404 Corresponding_Formal_Spec field.
19405 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
19406 (which is now a subtype).
19407 Char_Literal_Value field is now a Uint
19409 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
19410 pointer to the base of the dispatch table.
19411 Minor changes to comments.
19412 (Controlling_Type): New function for determining the tagged type
19413 associated with a tagged primitive subprogram.
19414 (Expand_Dispatching_Call): Add support for a controlling actual that is
19415 directly a value of type Ada.Tag rather than a tagged object.
19417 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
19418 describing the new layout.
19419 (Dispatch_Table): The expander computes the actual array size, allocates
19420 the Dispatch_Table record accordingly, and generates code that displaces
19421 the base of the record after the Typeinfo_Ptr component. The access to
19422 these components is done by means of local functions.
19423 (Offset_To_Top): New function.
19424 (Typeinfo_Ptr): New function.
19425 (Get_TSD): Modified to access the new position of the TSD.
19426 (Set_TSD): Modified to save the TSD in its new position.
19428 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
19429 case of formal abstract subprograms. Add check and message for -gnat05.
19432 * sem_ch12.adb: Add with and use for Sem_Disp.
19433 (Analyze_Associations): Minor change from "=" to "in" for use of
19434 N_Formal_Subtype_Declaration (which is now a subtype).
19435 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
19436 N_Formal_Subtype_Declaration (which is now a subtype).
19437 (Analyze_Formal_Subprogram): Add handling for
19438 N_Formal_Abstract_Subprogram, marking the formal as abstract and
19439 dispatching, setting the controlling status of the formal parameters
19440 and result, and issuing an error if there is no controlling type for
19441 the formal subprogram.
19442 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
19443 which is an unclean use of that field, we set the new field
19444 Corresponding_Formal_Spec to make the formal subprogram available to
19445 processing in Analyze_Subprogram_Declaration.
19446 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
19447 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
19448 Constrained, so that it is is does not statically match its anonymous
19451 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
19452 abstract formal subprograms in error check for functions returning
19453 abstract types. Set scope of new designator for
19454 a parameterless subprogram, so that it is available when checking the
19455 body for nested subprograms, before full analysis of said body.
19456 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
19457 subprogram only if inner one comes from source.
19458 (Analyze_Function_Call): If the call is given in object notation, the
19459 analysis of the name rewrites the node and analyzes it with the proper
19460 argument list. After analyzing the name, if the call has been rewritten
19461 and the result type is set, no further analysis is needed.
19462 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
19463 mark in function specification, in a context where the formals are
19464 visible and hide outer homographs.
19466 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
19467 as the tagged type for the cases of abstract formal subprograms and
19468 renamings of those. Clean up spec comments.
19469 (Check_Dispatching_Context): Add error message to indicate "abstract
19470 procedure", covering the case of a call to a formal abstract procedure
19471 that has statically tagged operands.
19472 (Check_Dispatching_Call): Check for the case of an actual given by
19473 a tag-indeterminate function call whose type is an ancestor of the
19474 containing call's associated tagged type. This situation can occur
19475 for inherited primitives with function defaults. In this case we
19476 use the tagged type's tag directly as the controlling argument for
19478 (Expand_Call): Name change on call to Expand_Dispatch_Call.
19480 * sprint.adb (Sprint_Node_Actual): Split
19481 N_Formal_Subprogram_Declaration into two alternatives for the new
19482 cases N_Formal_Abstract_Subprogram_Declaration and
19483 N_Formal_Concrete_Subprogram_Declaration.
19484 Char_Literal_Value field is now a Uint.
19486 * trans.c: Get rid of junk Uint2 reference.
19487 Char_Literal_Value field is now a Uint.
19488 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
19489 (gigi): Correct third arg to gimplify_body.
19491 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
19492 (TYPE_LANG_FLAG_0): Check for record or union.
19494 * treepr.adb: Char_Literal_Value field is now a Uint
19496 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
19499 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
19500 Add full UTF-32 support
19501 Char_Code is now 32 bits
19503 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
19504 wide character UTF_32 line terminators.
19505 Initialize Main_Source_File to avoid error when no main
19508 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
19509 (Main_Source_File) when no main source has been loaded, to avoid
19512 2005-02-09 Robert Dewar <dewar@adacore.com>
19514 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
19515 Fix name of Set routine
19517 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
19520 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
19521 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
19524 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
19525 forms of Get_Line subprograms for AI-301.
19527 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
19528 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
19529 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
19530 a-stwima.ads: Minor reformatting.
19532 2005-02-09 Doug Rupp <rupp@adacore.com>
19533 Thomas Quinot <quinot@adacore.com>
19535 * adaint.c, adaint.h
19536 [VMS] (to_ptr32): New function.
19537 (MAYBE_TO_PTR32): New macro.
19538 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
19540 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
19541 [VMS] (#define fork()): Remove since unneccessary.
19542 (__gnat_set_close_on_exec): New routine to support
19543 GNAT.OS_Lib.Set_Close_On_Exec.
19545 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
19546 the parent side as close-on-exec so that they are not inherited by the
19549 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
19550 set or clear the FD_CLOEXEC flag on a file descriptor.
19552 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
19553 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19557 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
19558 on the field if Pragma Component_Alignment (Storage_Unit).
19559 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
19560 side-effects as if it were a constant; also make SAVE_EXPR to protect
19562 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
19564 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
19565 (components_to_record): Test it.
19566 Fix improper usage of REFERENCE_CLASS_P.
19568 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
19571 * utils2.c: Minor reformatting.
19573 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
19574 handle other cases like RECORD_TYPE.
19576 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
19578 2005-02-09 Ed Schonberg <schonberg@adacore.com>
19580 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
19581 component of an array of arrays in an assignment context, and the
19582 aggregate has component associations that require sliding on
19583 assignment, force reanalysis of the aggregate to generate a temporary
19584 before the assignment.
19585 (Must_Slide): Make global to the package, for use in Gen_Assign.
19587 2005-02-09 Ed Schonberg <schonberg@adacore.com>
19589 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
19590 unchecked union with no inferable discriminants, return a
19591 Raise_Program_Error node, rather than inserting it at the point the
19593 (Expand_Record_Equality, Component_Equality): Handle properly the case
19594 where some subcomponent is an unchecked union whose generated equality
19595 code raises program error.
19597 2005-02-09 Doug Rupp <rupp@adacore.com>
19599 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
19600 [VMS] (#define exit hack): Remove.
19602 2005-02-09 Pascal Obry <obry@adacore.com>
19603 Arnaud Charlet <charlet@adacore.com>
19605 * init.c (__gnat_initialize): Add a new parameter eh which contains the
19606 address of the exception registration. The Win32 version of this
19607 routine calls __gnat_install_SEH_handler() to initialize the SEH
19608 (Structured Exception Handling) handler.
19609 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
19610 SEH (Structured Exception Handling) now.
19611 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
19612 (__gnat_initialize for ppc-vxworks): Adjust comments and the
19613 preprocessor condition protecting the call to the extra eh setup
19614 subprogram, which is only available for the ppc target.
19615 (__gnat_clear_exception_count): replaced reference to
19616 variable taskIdCurrent by call to taskIdSelf(), cleaner.
19618 * seh_init.c: New file.
19620 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
19621 (GNATBIND_OBJS): Idem.
19623 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
19624 routine takes a new parameter (a pointer to the exception registration
19625 for the SEH (Structured Exception Handling) support.
19627 * raise.h: (__gnat_install_SEH_handler): New prototype.
19628 Update copyright notice.
19630 * s-tassta.adb (Task_Wrapper): Declare the exception registration
19631 record and initialize it by calling __gnat_install_SEH_handler.
19633 2005-02-09 Vincent Celier <celier@adacore.com>
19635 * make.adb (Gnatmake): Do not fail when the main project has no object
19638 2005-02-09 Doug Rupp <rupp@adacore.com>
19640 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
19641 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
19642 [VMS]: Add translations for g-enblsp.adb.
19644 * s-asthan-vms.adb: Removed.
19645 * s-asthan-vms-alpha.adb: Added.
19647 2005-02-09 Pascal Obry <obry@adacore.com>
19649 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
19650 (LIBGNAT_OBJS): Add seh_init.o.
19652 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19655 * Makefile.in: Link all gnat tools with -static-libgcc, since
19656 -shared-libgcc is now used by default on some systems (e.g. linux with
19658 Remove references to Makefile.prolog/generic, no longer used.
19660 2005-02-09 Vincent Celier <celier@adacore.com>
19662 * prj-makr.adb (Process_Directory): Put file name in canonical case
19663 before matching against the patterns.
19664 If gnatname has been invoked as <prefix>-gnatname
19665 then invoke the compiler as <prefix>-gcc, not just "gcc".
19667 2005-02-09 Ed Schonberg <schonberg@adacore.com>
19669 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
19670 with expansion disabled. The actual subtype is needed among other
19671 places when the selected component appears in the context of a loop
19672 bound, and denotes a packed array.
19673 (Operator_Check): Always use the first subtype in the
19674 error message, to avoid the appearance of internal base types.
19675 (Transform_Object_Operation): Copy each actual in full
19676 to the parameter associations of the constructed call, rather than
19677 using the shallow copy mechanism of New_Copy_List. This ensures that
19678 the chaining of named associations is done properly.
19679 (Complete_Object_Operation): Rewrite node, rather than
19680 replacing it, so that we can trace back to the original selected
19683 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
19684 and calls that use object notation, if the called function is not
19685 declared in a withed unit, place the elaboration constraint on the
19686 unit in the context that makes the function accessible.
19687 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
19688 imposes an elaboration constraint between two packages.
19690 2005-02-09 Ed Schonberg <schonberg@adacore.com>
19692 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
19693 views of a private type after handling its private dependents, to
19694 maintain proper stack discipline between entry and exit from the
19697 2005-02-09 Cyrille Comar <comar@adacore.com>
19699 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
19700 Minor reformatting.
19702 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19704 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
19705 fields for foreign threads.
19707 2005-02-09 Doug Rupp <rupp@adacore.com>
19709 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
19710 recursion warnings when compiled with -gnatdm.
19712 2005-02-09 Robert Dewar <dewar@adacore.com>
19714 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
19715 Slight fix to documentation of -gnaty with no parameters
19717 * xr_tabls.ads: Add ??? comment for missing overall comment
19719 * xsinfo.adb: Make default file name be sinfo.h, since this is what
19720 we now use by default.
19722 * xsnames.adb: Adjust end of file test to look for five space followed
19723 by '#' instead of six spaces. The format of xsnames.adb was modified
19724 in the last update.
19726 * a-numeri.ads: Add reference to AI-388 for greek letter pi
19729 * clean.adb: Minor reformatting.
19731 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
19732 gnatname.adb: Minor reformatting
19733 Add 2005 to copyright output when utility is run
19735 * csets.adb: Eliminate obsolete comment
19737 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
19740 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
19742 2005-02-09 Sergey Rybin <rybin@adacore.com>
19744 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
19745 the difference between compact and incompact layout and add the record
19746 representation clause to the example illustrating different layouts.
19747 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
19748 component clauses").
19750 2005-02-09 Florian Villoing <villoing@adacore.com>
19752 * gnat_ugn.texi: Fix typos.
19753 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
19755 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
19756 in the generated documentation.
19758 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19760 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
19762 Update linker wrapper when linking with non GNU C++.
19764 2005-02-09 Pascal Obry <obry@adacore.com>
19767 Document the procedure to debug the DllMain routine on Windows.
19768 Add note about -funwind-tables and mixed Ada and C/C++ programming in
19770 Document new BIND qualifer /RETURN_CODES=VMS.
19772 2005-02-09 Ben Brosgol <brosgol@adacore.com>
19774 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
19775 Edited gnatmetric chapter
19777 2005-02-09 Robert Dewar <dewar@adacore.com>
19780 Changes to document new wide wide character support
19782 Update documentation on Normalize_Scalars and Initialize_Scalars
19784 2005-02-09 Pascal Obry <obry@adacore.com>
19786 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
19788 2005-02-09 Jose Ruiz <ruiz@adacore.com>
19790 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
19791 from the VxWorks kernel) that is needed for getting the active
19792 priority of the different tasks.
19794 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
19795 Use a pragma Elaborate_Body in the spec file instead.
19796 Noticed by code reading.
19798 2005-02-09 Thomas Quinot <quinot@adacore.com>
19800 * exp_util.ads: Minor correction in comment.
19802 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19804 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
19805 since this procedure is now too complex to be worth inlining.
19807 2005-02-09 Richard Henderson <rth@redhat.com>
19809 * utils.c (gnat_define_builtin): Remove.
19810 (gnat_install_builtins): Use build_common_builtin_nodes.
19812 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19814 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
19815 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
19816 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
19817 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
19818 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
19819 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
19820 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
19821 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
19822 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
19823 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
19824 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
19825 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
19826 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
19827 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
19828 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
19829 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
19830 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
19831 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
19832 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
19833 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
19834 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
19835 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
19836 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
19837 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
19838 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
19839 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
19840 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
19841 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
19842 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
19843 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
19844 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
19845 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
19846 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
19847 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
19850 2005-01-27 Laurent GUERBY <laurent@guerby.net>
19852 * Makefile.in: Fix a-intnam.ads from previous commit,
19853 add 2005 to copyright.
19854 * a-intman-rtems.ads: Renamed to...
19855 * a-intnam-rtems.ads:
19857 2005-01-27 Laurent GUERBY <laurent@guerby.net>
19859 * Makefile.in: Rename GNAT RTEMS specific files.
19860 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
19861 5rosinte.ads, 5rparame.adb: Replaced by files below.
19862 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
19863 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
19865 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
19866 Laurent GUERBY <laurent@guerby.net>
19869 * 5rosinte.ads: Add No_Key constant.
19870 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
19871 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
19873 2005-01-26 Laurent GUERBY <laurent@guerby.net>
19876 * i-cobol.adb (Valid_Numeric): Handle zero length case.
19878 2005-01-20 Richard Henderson <rth@redhat.com>
19880 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
19881 a-intnam-linux.ads and system-linux-alpha.ads.
19882 * a-intnam-linux-alpha.ads: Remove file.
19883 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
19884 * system-linux-alpha.ads: New file.
19886 2005-01-18 Jakub Jelinek <jakub@redhat.com>
19889 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
19890 set to the new string.
19892 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
19894 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
19897 2005-01-18 Richard Henderson <rth@redhat.com>
19899 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
19900 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
19902 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
19904 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
19906 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
19907 (GCC_ZCX_Support): Likewise.
19909 2005-01-11 Bastian Blank <waldi@debian.org>
19911 * system-linux-s390.ads: Define Preallocated_Stacks.
19912 * system-linux-s390x.ads: Likewise.
19914 2005-01-04 Arnaud Charlet <charlet@adacore.com>
19916 * gnat_ugn.texi: Fix texi errors with null variables.
19918 2005-01-03 Thomas Quinot <quinot@adacore.com>
19920 * gen-soccon.c: New utility program to generate g-soccon.ads
19923 * socket.c, gsocket.h: Split inclusion of system header files into a
19924 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
19926 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
19927 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
19928 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
19929 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
19930 should not be edited by hand anymore, but should be regenerated using
19933 2005-01-03 Robert Dewar <dewar@adacore.com>
19934 Ed Schonberg <schonberg@adacore.com>
19935 Vincent Celier <celier@adacore.com>
19937 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
19938 on/off, since this is an obsolescent feature, for which we now generate
19941 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
19942 warning mode is set and obsolescent usage of this attribute occurs.
19943 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
19944 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
19945 predates, and partly motivates, the adoption of the AI.
19946 Implement new Ada 2005 attribute Mod
19948 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
19951 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
19953 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
19954 pragma restrictions.
19955 New entry for Ada 2005 attribute Mod.
19958 Add recognition of new pragma Restrictions No_Dependence
19959 Recognize restriction No_Obsolescent_Features at parse time
19961 * bcheck.adb: Add circuitry for checking for consistency of
19962 No_Dependence restrictions.
19964 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
19967 * restrict.ads, restrict.adb: Add subprograms to deal with
19968 No_Dependence restrictions.
19970 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
19973 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
19974 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
19976 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
19977 dummy parameter to scng instantiation.
19978 Needed for new restriction No_Obsolescent_Features
19980 * scn.adb: (Obsolescent_Check): New procedure
19981 Needed for new restriction No_Obsolescent_Features
19983 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
19984 specified by AI-285, needed for implementation of AI-388 (adding greek
19985 pi to Ada.Numerics).
19986 Add new generic formal to scng, needed for new restriction
19987 No_Obsolescent_Features.
19989 * s-rident.ads: Add new restriction No_Obsolescent_Features.
19991 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
19992 restrictions lines.
19993 (Scan_ALI): When finding an unexpected character on an R line, raise
19994 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
19995 Ignore_Errors is True, default restrictions are set and scanning of the
19996 ALI file continues with the next line. Also, when Bad_R_Line is raised
19997 and Ignore_Errors is True, skip to the end of le line.
19999 * sem_ch10.adb: Check that explicit with's do not violate
20000 No_Dependence restrictions.
20001 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
20002 illegal context clauses containing child units of instance.
20004 * sem_prag.adb: Processing and checking for new No_Dependence
20006 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
20007 analyze and check the External argument.
20009 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
20011 2005-01-03 Robert Dewar <dewar@adacore.com>
20013 * atree.adb: Add a fifth component to entities
20014 This allows us to add 32 flags and four new fields
20016 * atree.ads: Add a fifth component to entities
20017 This allows us to add 32 flags and four new fields
20019 * einfo.ads, einfo.adb: Document new fields and new flags now available
20020 Add routines for printing new fields
20022 * treepr.adb: Call routines to print out additional fields if present
20024 2005-01-03 Arnaud Charlet <charlet@adacore.com>
20026 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
20027 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
20029 * Makefile.in: Add support to build shared Ada libraries on solaris x86
20030 Remove gpr2make, replaced by gprmake.
20031 Remove references to gnatmem and libaddr2line.
20032 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
20033 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
20034 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
20035 a-numaux-darwin.ads and a-numaux-darwin.adb
20036 Enable mlib-tgt-lynxos.adb on lynxos.
20038 * Make-lang.in: Remove rules for gpr2make.
20039 When generating sdefault.adb, do not call Relocate_Path
20040 on S3 for function Target_Name, as it is not a path.
20041 Remove references to gnatmem and libaddr2line.
20043 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
20046 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
20048 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
20049 address is incompatible with its base type alignment constraints when
20050 this can be decided statically.
20052 2005-01-03 Olivier Hainque <hainque@adacore.com>
20054 * decl.c (compatible_signatures_p): New function. The intended purpose
20055 is to check if two function signatures for a call-site and a callee are
20056 compatible enough for the call to be valid. The underlying purpose is
20057 to check if a call to a mapped builtin is using the right interface.
20058 The current code actually does not check antyhing - this a placeholder
20059 for future refinements.
20060 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
20061 builtin calls for convention Intrinsic.
20063 * gigi.h (builtin_decl_for): Declare (new function).
20065 * utils.c (gnat_install_builtins): Install the target specific builtins.
20066 (builtin_decl_for): New function, provide a dummy body for now.
20068 2005-01-03 Geert Bosch <bosch@adacore.com>
20070 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
20071 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
20072 (Pred): Implement in terms of Succ.
20074 * trans.c (convert_with_check): Reimplement conversion of float to
20077 2005-01-03 Ed Schonberg <schonberg@adacore.com>
20078 Vincent Celier <celier@adacore.com>
20080 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
20081 bounds can be negative, and must be declared Int, not Nat.
20083 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
20084 array is checked after using the index in the array.
20086 * makegpr.adb (Add_Switches): Check if there is a package for the
20087 processor. If there is no package, do not look for switches.
20089 2005-01-03 Ed Schonberg <schonberg@adacore.com>
20091 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
20092 generation of predefined stream operations (specs and bodies) should
20093 proceed. Under various restrictions these subprograms must not be
20096 2005-01-03 Thomas Quinot <quinot@adacore.com>
20099 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
20100 amount of PCS-specific code in RACW stubs generation.
20101 (Copy_Specification): Set Etype on copied formal parameter entities, as
20102 this information is needed for PolyORB stubs generation.
20103 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
20104 variable Dynamic_Async.
20105 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
20106 (Build_RPC_Receiver_Specification): Make generic again, as recent
20107 changes have allowed RPC receivers to have the same profile for both
20108 variants of the PCS.
20109 Reorganise RPC receiver generation to reduce differences between the
20110 structure of GARLIC and PolyORB RPC receivers.
20111 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
20113 Simplify elaboration code for RCI packages.
20115 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
20116 generation to reduce differences between the structure of GARLIC and
20117 PolyORB RPC receivers.
20119 * s-stratt.adb: Fix typo in comment.
20121 2005-01-03 Thomas Quinot <quinot@adacore.com>
20123 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
20124 copied from Make_Init_Call).
20126 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
20127 reads and assignments on a temporary variable declared with appropriate
20130 2005-01-03 Robert Dewar <dewar@adacore.com>
20132 * i-c.adb (To_C): Raise CE if string is null and Append_Null
20134 2005-01-03 Robert Dewar <dewar@adacore.com>
20136 * i-cstrin.adb (Update): Do not append a null in form called with a
20137 String. This avoids unintended behavior.
20139 2005-01-03 Arnaud Charlet <charlet@adacore.com>
20142 * init.c: Fix warnings on Free BSD section.
20144 2005-01-03 Arnaud Charlet <charlet@adacore.com>
20147 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
20150 2005-01-03 Vincent Celier <celier@adacore.com>
20152 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
20153 libraries when Unique_Compile is True (-u switch).
20156 2005-01-03 Robert Dewar <dewar@adacore.com>
20158 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
20159 upper case letter or underscore after W, as allowed by spec.
20161 2005-01-03 Arnaud Charlet <charlet@adacore.com>
20163 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
20164 darwin port by using proper type definitions from header files.
20165 Use SIGTERM instead of SIGABRT for SIGADAABORT.
20167 2005-01-03 Robert Dewar <dewar@adacore.com>
20169 * par.adb: Enhance error message handling for configuration file
20172 2005-01-03 Robert Dewar <dewar@adacore.com>
20174 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
20175 removed during the previous update (test properly for case of dividing
20176 largest negative number by -1, which generates overflow).
20178 2005-01-03 Ed Schonberg <schonberg@adacore.com>
20179 Sergey Rybin <rybin@adacore.com>
20181 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
20182 to use as the defining identifier for a formal package.
20183 (Remove_Parent): If the instance takes place within (an instance of)
20184 a sibling, preserve private declarations of common parent.
20186 2005-01-03 Ed Schonberg <schonberg@adacore.com>
20188 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
20189 to determine whether one of the operands is a fixed-point type for
20190 which a user-defined multiplication or division operation might be
20193 * sem_res.adb (Valid_Conversion): The legality rules for conversions
20194 of access types are symmetric in Ada 2005: either designated type can
20197 2005-01-03 Vincent Celier <celier@adacore.com>
20199 * s-fileio.adb (Temp_File_Record): Change length of string component
20200 Name from L_tmpnam + 1 to max_path_len + 1.
20202 2005-01-03 Arnaud Charlet <charlet@adacore.com>
20204 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
20205 Self_Id.Deferral_Level = 0.
20206 (Do_Pending_Action): Move this function to the spec.
20208 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
20209 Do_Pending_Action explicitely when needed, in case we're using
20210 No_Abort restrictions.
20212 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
20213 deferral level since it will not get changed by the generated code.
20214 Keeping a default value of 1 would prevent some operations (e.g.
20215 select or delay) to proceed successfully.
20217 2005-01-03 Ben Brosgol <brosgol@adacore.com>
20218 Robert Dewar <dewar@adacore.com>
20219 Cyrille Comar <comar@adacore.com>
20221 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
20222 porting guide chapter (vms version).
20223 Revised doc title (removed "for native platforms") and subtitle.
20224 Add discussion on warning flag for obsolescent features. First we
20225 note that it applies to obsolete GNAT features, which was previously
20226 omitted. Second we contrast the behavior with that of the new
20227 Ada 2005 AI-368 restriction No_Obsolescent_Features.
20228 Preliminary rewriting of GNAT & libraries chapter in order to take
20229 into account default project locations & new project manager
20232 2005-01-03 Robert Dewar <dewar@adacore.com>
20234 * cstand.adb (Create_Operators): Clean up format and documentation of
20235 unary and binary operator result tables. No change in code, just
20236 reformatting and addition of comments.
20238 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
20239 sem_ch2.adb: Minor reformatting
20241 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
20242 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
20243 comments for Tree_Read and Tree_Write.
20245 2005-01-03 Pascal Obry <obry@adacore.com>
20247 * exp_attr.ads: Minor reformatting.
20249 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
20251 * comperr.adb (Compiler_Abort): Add specialized message for GAP
20254 2005-01-03 Ed Schonberg <schonberg@adacore.com>
20256 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
20257 whether the ancestor type is private, as may be the case with nested
20260 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
20263 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
20265 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
20267 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
20268 * utils2.c (build_unary_op): Likewise.
20270 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20272 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
20274 2004-12-19 Richard Henderson <rth@redhat.com>
20276 * trans.c (gigi): Update gimplify_body call.
20278 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
20280 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
20282 2004-12-07 Ed Falis <falis@adacore.com>
20284 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
20285 current task being suspended.
20287 * init.c (__gnat_clear_exception): added to reset VxWorks exception
20289 (__gnat_map_signal): removed test for current task being suspended.
20291 2004-12-07 Gary Dismukes <dismukes@adacore.com>
20293 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
20294 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
20295 targets (such as AAMP).
20297 2004-12-07 Ed Schonberg <schonberg@adacore.com>
20299 * atree.adb (Visit_Itype): Create a new name for the generated itype,
20300 because the back-end may otherwise treat it as a redefinition of the
20303 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
20305 * back_end.adb (Scan_Back_End_Switches): Accept --param.
20307 * lang-specs.h: Accept --param.
20309 2004-12-07 Vincent Celier <celier@adacore.com>
20311 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
20312 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
20313 Current_Body_Suffix => Ada_Body_Suffix).
20314 Take into account Externally_Built attribute.
20316 * clean.adb (In_Extension_Chain): Always return False when one of the
20317 parameter is No_Project.
20318 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
20319 Ada_Language_Index).
20320 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
20321 Process_Languages for procedure Parse).
20323 * gnatcmd.adb (Carg_Switches): New table.
20324 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
20325 Adapt to name changes in package Prj (Current_Spec_Suffix =>
20326 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
20328 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
20329 Header_Num and function Hash are now declared in package Prj,
20332 * prj.adb (Suffix_Of): New function.
20333 (Set (Suffix)): New procedure.
20334 (Hash): One function moved from Prj.Com
20335 (Is_Present, Language_Processing_Data_Of): New functions
20336 (Set): Two new procedures
20337 (Add_Language_Name, Display_Language_Name): New procedures
20339 * prj.ads: (Suffix_Of): New function
20340 (Set (Suffix)): New procedure
20341 Add several types and tables for multi-language support.
20342 (Header_Num): Type moved from Prj.Com
20343 (Hash): Two functions moved from Prj.Com
20344 (Is_Present, Language_Processing_Data_Of): New functions
20345 (Set): Two new procedures
20346 (Add_Language_Name, Display_Language_Name): New procedures
20347 (Naming): Component name changes:
20348 Current_Spec_Suffix => Ada_Spec_Suffix,
20349 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
20350 Impl_Suffixes, Supp_Suffixes.
20351 (Project_Data): New components: Externally_Built, Supp_Languages,
20352 First_Language_Processing, Supp_Language_Processing, Default_Linker,
20353 Default_Linker_Path.
20355 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
20356 new package Language_Processing with its attributes (Compiler_Driver,
20357 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
20358 Binder_Driver, Default_Linker).
20360 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
20361 (Header_Num): Type moved to package Prj
20363 * prj-env.adb: Adapt to name changes in package Prj
20364 (Current_Spec_Suffix => Ada_Spec_Suffix,
20365 Current_Body_Suffix => Ada_Body_Suffix).
20367 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
20368 default to the project path, except the "-" is one of the directories
20369 in env var ADA_PROJECT_PATH.
20370 (Current_Project_Path): Global variable, replacing Project_Path
20371 that was in the body of Prj.Part.
20372 (Project_Path): New function
20373 (Set_Project_Path): New procedure
20374 Initialize Current_Project_Path during elaboration of the package
20375 Remove dependency on Prj.Com, no longer needed
20377 * prj-ext.ads (Project_Path): New function
20378 (Set_Project_Path): New procedure
20380 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
20381 suffix is defined for language <lang>.
20382 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
20383 accessing directly the components of Naming.
20384 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
20385 Reorganise of this package.
20386 Break procedure Check in several procedures.
20388 * prj-nmsc.ads: Replace all procedures (Ada_Check,
20389 Other_Languages_Check and Language_Independent_Check) with a single
20392 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
20393 Process_Languages, no longer needed.
20395 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
20396 Current_Project_Path.
20397 Remove elaboration code, moved to the body of Prj.Ext
20398 Use new function Prj.Ext.Project_Path instead of old variable
20400 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
20401 When comparing with project paths on the stack, first put the resolved
20402 path in canonical case.
20403 (Parse_Single_Project): Set the path name of the project file in the
20404 tree to the normalized path.
20406 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
20407 parameter Process_Languages, no longer needed.
20408 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
20409 Other_Languages_Check.
20411 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
20412 to store the resolved canonical path of the project file.
20413 Remove dependency to Prj.Com, no longer needed
20415 * prj-util.adb: Adapt to name changes in package Prj
20416 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
20419 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
20420 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
20421 Externally_Built, Include_Option, Language_Processing.
20423 * makegpr.adb: Numerous changes due to changes in packages
20426 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
20427 default to the project path, except whe "-" is one of the directories
20428 in env var ADA_PROJECT_PATH.
20429 (Gnatls): In verbose mode, add the new section "Project Search Path:"
20431 2004-12-07 Robert Dewar <dewar@adacore.com>
20433 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
20435 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
20438 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
20439 flag. No longer needed now that we handle this in gnat1drv.adb.
20441 * repinfo.ads: Minor reformatting
20443 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20444 Olivier Hainque <hainque@adacore.com>
20445 Eric Botcazou <ebotcazou@adacore.com>
20447 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
20448 TYPE_SIZE_UNIT of result type if SIZE is not specified.
20449 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
20450 of a bitfield, which we know is useless and causes trouble because of
20451 alignment implications.
20453 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
20455 (process_attributes): Clear DECL_COMMON again when a section attribute
20457 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
20458 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
20459 (create_field_decl): Special case ADDRESSABLE negative to mean
20460 "no bitfield creation", to be used by make_aligning_type. Don't
20461 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
20462 fields claimed addressable still have to be bitfields. Use
20463 value_factor_p instead of a raw binop construction to check for the
20464 position's alignment.
20466 2004-12-07 Geert Bosch <bosch@adacore.com>
20468 * eval_fat.adb: Revert previous change.
20470 2004-12-07 Thomas Quinot <quinot@adacore.com>
20471 Ed Schonberg <schonberg@adacore.com>
20473 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
20474 with an implicit dereference as its prefix, use
20475 Insert_Explicit_Dereference instead of merely rewriting the prefix into
20476 an explicit dereference. This ensures that a reference to the original
20477 prefix is generated, if appropriate.
20479 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
20480 dereference is rewritten to an explicit one, generate a reference to
20481 the entity denoted by its prefix using the original prefix node, so
20482 the dereference can be properly recorded as a read of the denoted
20483 access value, if appropriate.
20485 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
20486 emitting 'assigned but never read' warning on a variable on the basis
20487 that it has an access type.
20488 (Check_References): Emit unreferenced warning when the scope is a
20491 2004-12-07 Robert Dewar <dewar@adacore.com>
20492 Ed Schonberg <schonberg@adacore.com>
20494 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
20497 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
20498 leaving call unchanged.
20499 This deals with the case where the pragma Import specified
20500 an external name, to be handled by the back end.
20502 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
20503 subprogram which is Imported with convention Intrinsic if an
20504 External_Name argument is specified.
20505 (Process_Import_Or_Interface): Properly diagnose link name argument.
20506 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
20507 with Sem_Ch6.Cannot_Inline.
20508 (Process_Inline): Provide separate warning for inapplicable inline
20510 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
20511 treatment is uniform on different targets.
20513 2004-12-07 Ed Schonberg <schonberg@adacore.com>
20515 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
20516 construct is rewritten, preserve end label to permit source navigation.
20518 2004-12-07 Thomas Quinot <quinot@adacore.com>
20520 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
20521 Specific_Build_Stub_Target): New subprograms.
20522 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
20523 the PCS implementation used, using the above PCS-customized subprograms.
20524 Minor reformatting.
20525 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
20526 for generation of DSA code targeted to the PolyORB PCS.
20527 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
20528 implementation of the partition communication subsystem in ancillary
20530 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
20531 PolyORB_Support.Build_Stub_Type): New subrograms containing the
20532 PCS-specific part of Add_Stub_Type.
20533 (Insert_Partition_Check): Use runtime library function to perform
20536 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
20537 (RE_Same_Partition): New entity, from s-parint.
20539 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
20541 2004-12-07 Gary Dismukes <dismukes@adacore.com>
20543 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
20544 Output the copyright message on a separate line from the version
20547 2004-12-07 Joel Brobecker <brobecker@adacore.com>
20549 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
20550 compile-time warning.
20552 2004-12-07 Robert Dewar <dewar@adacore.com>
20554 * g-regpat.adb: (Match): Change a misuse of or to or else
20556 2004-12-07 Ed Schonberg <schonberg@adacore.com>
20559 (Generate_Reference): Handle properly a reference to an entry formal,
20560 when an accept statement has a pragma Unreferenced for it.
20562 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
20563 and the Has_Pragma_Unreferenced flag for each formal before analyzing
20564 the body, to ensure that warnings are properly emitted for each accept
20565 statement of a given task entry.
20567 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
20569 * Makefile.in: Add support for foreign threads on VMS.
20571 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20573 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
20575 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
20577 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
20579 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
20581 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
20583 2004-12-07 Robert Dewar <dewar@adacore.com>
20585 * nlists.adb (Prepend_Debug): Remove parameters and nest within
20587 (Remove_Next_Debug): Same fix
20589 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
20590 maintain back pointers now, though we did not used to, and comments
20592 (Prepend): Remove pragma Inline.
20593 (Remove_Next): Same cleanup
20595 2004-12-07 Thomas Quinot <quinot@adacore.com>
20597 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
20598 used to record an implicit dereference as a read operation on its
20599 prefix when operating under -gnatc. Necessary to avoid spurious
20600 'variable assigned but never read' warnings in that mode.
20601 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
20602 is a non-overloaded implicit dereference, call the above subprogram to
20603 ensure proper recording of references.
20605 2004-12-07 Gary Dismukes <dismukes@adacore.com>
20607 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
20608 to be resolved later as part of Analyze_Iteration_Scheme's call to
20611 2004-12-07 Ed Schonberg <schonberg@adacore.com>
20613 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
20614 prefix is not a scalar type, place error message on prefix, not on
20617 2004-12-07 Bernard Banner <banner@adacore.com>
20619 * vxaddr2line.adb: Add support for x86 vxworks
20621 2004-12-07 Thomas Quinot <quinot@adacore.com>
20623 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
20624 documentation of the behaviour of these functions when passed an IP
20625 address that has no record in the system hosts database and no reverse
20628 * cstand.adb, a-tags.ads: Fix typos in comment.
20630 2004-12-07 Robert Dewar <dewar@adacore.com>
20632 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
20633 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
20634 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
20635 s-poosiz.ads: Minor reformatting
20637 * make.adb: Minor reformatting
20638 Add some ??? comments asking for more comments
20640 * s-poosiz.adb: Minor reformatting
20641 Add comments on alignment requirement
20643 * sinfo.ads: Remove obsolete comment and fix typo.
20645 2004-12-07 Vincent Celier <celier@adacore.com>
20646 Sergey Rybin <rybin@adacore.com>
20648 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
20649 Files" with the new tool and package names.
20650 Reformatting to suppress most of the warnings for line too long
20651 Document the new section "Project Search Path:" in the output of
20653 Add gnatmetric section
20655 2004-12-07 Vincent Celier <celier@adacore.com>
20657 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
20658 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
20659 and -eit to -ept. Added qualifier
20660 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
20662 2004-11-27 Andreas Schwab <schwab@suse.de>
20664 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
20666 2004-11-25 Arnaud Charlet <charlet@adacore.com>
20668 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
20669 internal implementation unit GNAT.Sockets.Thin,
20670 as their usage for sockets is non-portable (using the read and write
20671 functions from the system runtime library is fine on UNIX but won't
20672 work under Windows).
20674 * mingw32.h: Update copyright notice.
20676 2004-11-25 Arnaud Charlet <charlet@adacore.com>
20678 * ada-tree.h: Minor reformatting of previous change to avoid lines
20679 longer than 79 characters.
20681 2004-11-25 Olivier Hainque <hainque@adacore.com>
20683 * tb-gcc.c: GCC infrastructure based implementation of
20686 2004-11-24 Steven Bosscher <stevenb@suse.de>
20688 * misc.c (gnat_post_options): Don't clear
20689 flag_inline_functions.
20691 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
20694 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
20697 2004-11-21 Andreas Jaeger <aj@suse.de>
20699 * stylesw.adb: Change Style_Check_Subprogram_Order to
20700 Style_Check_Order_Subprograms.
20702 2004-11-18 Arnaud Charlet <charlet@adacore.com>
20704 * adaint.h, adaint.c
20705 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
20707 Add also a cast to kill another warning.
20708 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
20709 parameter with the priority class of the parent process instead of
20710 always using the NORMAL_PRIORITY_CLASS.
20711 (__gnat_dup): New function.
20712 (__gnat_dup2): New function.
20713 (__gnat_is_symbolic_link): Enable the effective body of this
20714 function when __APPLE__ is defined.
20716 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
20719 2004-11-18 Olivier Hainque <hainque@adacore.com>
20721 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
20722 address of which may be used to represent "others" and "all others"
20723 choices in exception tables, instead of the current harcoded
20724 (void *)0 and (void *)1.
20725 (Setup_Exception): Do nothing in the GNAT SJLJ case.
20727 * gigi.h (others_decl, all_others_decl): New decls representing the
20728 new Others_Value and All_Others_Value objects.
20729 (struct attrib): Rename "arg" component as "args", since GCC expects a
20730 list of arguments in there.
20732 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
20733 corresponding objects exported by a-exexpr, instead of hardcoded dummy
20736 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
20737 others_decl and all_others_decl instead of hardcoded dummy addresses
20738 to represent "others" and "all others" choices, which is cleaner and
20739 more flexible with respect to the possible eh pointer encoding policies.
20741 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
20742 (process_attributes): Account for the naming change of the "args"
20743 attribute list entry component.
20745 * decl.c (build_attr_list): Rename into prepend_attributes to allow
20746 cumulating attributes for different entities into a single list.
20747 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
20748 attributes for the current entity and propagate first subtype
20749 attributes to other subtypes.
20750 <E_Procedure>: Attribute arguments are attr->args and not
20751 attr->arg any more.
20752 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
20753 argument provided, as this is what GCC expects. Use NULL_TREE instead
20756 2004-11-18 Robert Dewar <dewar@adacore.com>
20758 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
20759 Minor reformatting througout (including new function specs)
20760 Add ??? comments asking for clarification.
20762 2004-11-18 Thomas Quinot <quinot@adacore.com>
20764 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
20765 incomplete duplicate implementation of this subprogram from butil.
20767 2004-11-18 Thomas Quinot <quinot@adacore.com>
20769 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
20770 procedures factors the common processing for building an RPC receiver
20771 for an RCI package or an RACW type.
20772 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
20773 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
20774 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
20776 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
20778 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
20780 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
20781 distribution subprogram identifiers that are either subprogram numbers
20783 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
20784 string distribution identifiers assigned to a given subprogram.
20785 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
20786 (Add_RAS_Dereference_TSS): Add comments.
20787 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
20788 is not referenced yet because it will be used by the PolyORB DSA
20790 (Insert_Partition_Check): Remove fossile code.
20791 (First_RCI_Subprogram_Id): Document this constant.
20792 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
20794 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
20795 replaced with calls to Get_Library_Unit_Name_String. Previously there
20796 were several instances of the same code in different locations in the
20797 compiler; this checkin completes the replacement of all of these
20798 instances with calls to a common subprogram.
20799 Minor reformatting.
20801 * sem_dist.adb: Remove comment noting that RPC receiver generation
20802 should be disabled for RACWs that implement RASs.
20803 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
20805 * sem_util.ads, sem_util.adb (Has_Stream): New function
20806 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
20807 qualified name of a library unit into the name buffer.
20808 (Note_Possible_Modification): Generate a reference only
20809 if the context comes from source.
20811 * snames.ads (PCS_Names): New subtype corresponding to names of
20812 supported implementations of the Partition Communication Subsystem
20813 (PCS) (i.e. the runtime library support modules for the distributed
20816 2004-11-18 Robert Dewar <dewar@adacore.com>
20817 Ed Schonberg <schonberg@adacore.com>
20819 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
20820 (Has_Rep_Pragma): New function
20821 (Has_Attribute_Definition_Clause): New function
20822 (Record_Rep_Pragma): Moved here from sem_ch13.adb
20823 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
20825 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
20827 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
20828 (Expand_Pragma_Psect_Object): New procedure
20829 These procedures contain the revised and cleaned up processing for
20830 these two pragmas. This processing was formerly in Sem_Prag, but
20831 is more appropriately moved here. The cleanup involves making sure
20832 that the pragmas are properly attached to the tree, and that no
20833 nodes are improperly shared.
20835 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
20836 pragmas to Exp_Prag, which is more appropriate.
20837 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
20838 check for duplicates Remove use of Is_Psected flag, no longer needed.
20839 Use new Make_String_Literal function with string.
20841 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
20842 that are functions return universal values, that have to be converted
20843 to the context type.
20844 Use new Make_String_Literal function with string.
20845 (Get_Stream_Convert_Pragma): New function, replaces the use of
20846 Get_Rep_Pragma, which had to be kludged to work in this case.
20848 * freeze.adb: Use new Has_Rep_Pragma function
20850 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
20851 function with string.
20852 Use new Has_Rep_Pragma function.
20854 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
20857 2004-11-18 Robert Dewar <dewar@adacore.com>
20859 * errout.ads, errout.adb: (First_Sloc): New function
20861 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
20862 check (-gnatyx) instead of being included as a redundant construct
20865 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
20866 Style_Check_Order_Subprograms.
20868 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
20869 stylesw.adb: Add Style_Check_Xtra_Parens
20871 * usage.adb: Add line for -gnatyx (check extra parens)
20873 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
20875 2004-11-18 Ed Schonberg <schonberg@adacore.com>
20876 Robert Dewar <dewar@adacore.com>
20878 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
20879 discriminant of a constrained subtype, analyze the copy of the
20880 corresponding constraint, because in some cases it may be only
20881 partially analyzed.
20882 Removes long-lived ??? comments.
20884 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
20885 handled controlled or secondary-stack expressions within the
20886 iteration_scheme of a loop.
20888 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
20889 bounds that may contain functions calls, to prevent memory leaks when
20890 the bound contains a call to a function that uses the secondary stack.
20891 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
20892 generate temporaries for loop bounds that might contain function calls
20893 that require secondary stack and/or finalization actions.
20895 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
20896 selected component and the selector is overloadable (not just a
20897 function) treat as function call, Analyze_Call will disambiguate if
20899 (Analyze_Selected_Component): Do not generate an actual subtype for the
20900 selected component if expansion is disabled. The actual subtype is only
20901 needed for constraint checks.
20902 (Analyze_Allocator): If restriction No_Streams is set, then do
20903 not permit objects to be declared of a stream type, or of a
20904 composite type containing a stream.
20906 * restrict.ads: Remove the a-stream entry from Unit_Array, since
20907 No_Streams no longer prohibits with'ing this package.
20909 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
20910 discriminants, but the parent base has unknown discriminants, there is
20911 no discriminant constraint to inherit. Such a discrepancy can arise
20912 when the actual for a formal type with unknown discriminants is a
20913 similar private type whose full view has discriminants.
20914 (Analyze_Object_Declaration): If restriction No_Streams is set, then
20915 do not permit objects to be declared of a stream type, or of a
20916 composite type containing a stream.
20918 2004-11-18 Ed Schonberg <schonberg@adacore.com>
20920 * exp_dbug.ads: Update documentation to reflect simpler encoding for
20921 protected operations.
20923 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
20924 generated name, it complicates decoding in gdb and hinders debugging
20925 of protected operations.
20926 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
20927 flag for the protected entry barrier function.
20928 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
20929 flag for the protected entry function.
20931 2004-11-18 Nicolas Setton <setton@adacore.com>
20933 * expect.c: Define __unix__ when __APPLE__ is defined.
20935 * Makefile.in: Inform the value of the variable GMEM_LIB in the
20936 Darwin-specific section.
20938 * lang-specs.h: Change the placement of the %1 marker.
20939 Works around the fact that gcc adds -fPIC by default under Darwin.
20941 2004-11-18 Ed Schonberg <schonberg@adacore.com>
20943 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
20944 type of the object with the packed array type, set the Analyzed flag
20945 on the object if it is an entity or simple indexed component, to avoid
20946 spurious type errors.
20948 2004-11-18 Gary Dismukes <dismukes@adacore.com>
20950 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
20951 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
20952 separate line from the version message.
20954 2004-11-18 Ed Falis <falis@adacore.com>
20956 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
20958 (init_float): Eliminate initialization of floating point status for
20959 AE653. The instructions have no effect for vThreads.
20961 2004-11-18 Vincent Celier <celier@adacore.com>
20963 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
20964 gnatbind is invoked with -shared.
20966 2004-11-18 Jose Ruiz <ruiz@adacore.com>
20968 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
20969 for Detect_Blocking which is redundant with the check done within the
20970 procedure Protected_Single_Entry_Call.
20971 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
20972 Detect_Blocking which is redundant with the check done within the
20973 procedure Protected_Single_Entry_Call.
20975 2004-11-18 Vincent Celier <celier@adacore.com>
20977 * makegpr.adb (Compile): Put the compiling switches (in package
20978 Compiler and on the command line) immediately after "-c", instead of
20979 at the end of the command line invocation of the compiler, when
20980 compiling a non-Ada file.
20981 (Build_Global_Archive): When there is no need to rebuild the archive,
20982 set Global_Archive_Exists, so that the archive is passed to the linker
20985 2004-11-18 Robert Dewar <dewar@adacore.com>
20986 Sergey Rybin <rybin@adacore.com>
20989 Remove extra paren check from list of checks for redundant constructs
20990 Add documentation of new -gnatyx style check (check extra parens)
20991 Remove paragraph about gnatelim debug options.
20993 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
20994 objects rather than forbidding dependencies on the package Ada.Streams.
20996 * sinfo.ads: Add ??? note that we should document pragmas passed to
20999 * g-expect.ads: Fix a few typos in the comments.
21001 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
21003 * misc.c (gnat_handle_option): Use %< and %> for quoting in
21006 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21008 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
21010 2004-11-07 Andreas Schwab <schwab@suse.de>
21012 * Makefile.in (install-gnatlib): Remove spurious hyphen.
21014 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
21017 * Makefile.in (darwin): Set soext to .dylib.
21019 2004-10-26 Vincent Celier <celier@gnat.com>
21020 Thomas Quinot <quinot@act-europe.fr>
21022 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
21023 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
21024 there is no use of GNAT.Sockets.Constants.
21025 Remove remaining pragma Import for C_Write
21026 Remove C_Read and C_Write from internal implementation unit
21027 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
21028 the read and write functions from the system runtime library is fine
21029 on UNIX but won't work under Windows).
21031 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
21032 (Check_Selector): Use C_Recv instead of C_Read.
21033 Selectors are the GNAT.Sockets abstraction to perform a select()
21034 call on a set of descriptors. To allow abortion of an ongoing
21035 select operation, some data is written to a dedicated socket that
21036 is always monitored.
21037 Under Windows, the write and read library functions cannot operate
21038 on sockets, so we need to use send and recv instead, which is portable
21039 across all supported platforms.
21041 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
21042 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
21043 (using the read and write functions from the system runtime library is
21044 fine on UNIX but won't work under Windows).
21046 2004-10-26 Nicolas Setton <setton@act-europe.fr>
21048 * mlib-tgt-darwin.adb: New file.
21050 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21051 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
21052 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
21053 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
21056 * Makefile.in: Add support for building shared libraries under Darwin.
21057 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
21058 the low level EH init subprogram to be called from __gnat_initialize.
21060 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
21061 indicates which options to pass to the archive indexer.
21063 * mlib-utl.adb: Add support for calling ranlib with additional
21064 options. This is needed for instance under Mac OS X.
21065 (Ranlib_Options): New global variable, used to store the potential
21066 options to pass to ranlib.
21067 (Ar): Use Ranlib_Options when spawning ranlib.
21068 (Initialize): Set the value of ranlib option.
21070 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
21072 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
21073 instead of 8K, to reflect the real potential needs for stack-checking
21076 2004-10-26 Pascal Obry <obry@gnat.com>
21078 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
21080 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
21081 Windows only the initial thread stack size can be set so it is good to
21082 start we a low stack size.
21083 The OS will adjust the size as needed.
21085 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
21086 Nicolas Setton <setton@act-europe.fr>
21088 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
21089 "__unix__" instead of "unix".
21090 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
21091 sections were just mistakenly ignored. The former is
21092 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
21093 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
21094 of hpux. This prevents an unwanted definition of the symbol
21095 convert_addresses in adaint.o.
21097 2004-10-26 Gary Dismukes <dismukes@gnat.com>
21099 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
21100 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
21102 2004-10-26 Cyrille Comar <comar@act-europe.fr>
21104 * a-filico.ads, a-filico.adb: fix incorrect header.
21106 2004-10-26 Javier Miranda <miranda@gnat.com>
21108 * a-ststio.ads: Fix typo in identifier
21110 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
21112 * sem_ch4.adb: Minor reformatting.
21114 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21116 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
21117 enabled, check the result of unary and binary operations when the
21118 expression is the right-hand side of an assignment.
21120 2004-10-26 Vincent Celier <celier@gnat.com>
21122 * clean.adb (Delete): Do not output warnings when in quiet output and
21123 not in verbose mode.
21124 (Force_Deletions): New Boolean flag, defaulted to False
21125 (Delete): Only delete a file if it is writable, and when
21126 Force_Deletions is True.
21127 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
21128 (Usage): Line for new switch -f
21129 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
21132 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
21134 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
21135 JM type only if its size matches that of the wrapper. When a size is
21136 prescribed and the field is not aliased, remove the wrapper of a JM
21137 type only if the size is not greater than that of the packed array.
21138 (gnat_to_gnu_entity): Change the extension of packed array wrappers
21141 2004-10-26 Geert Bosch <bosch@gnat.com>
21143 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
21144 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
21145 (Pred): Implement in terms of Succ.
21147 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21149 * exp_aggr.adb (Safe_Component): An aggregate component that is an
21150 unchecked conversion is safe for in-place use if the expression of the
21151 conversion is safe.
21152 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
21153 be expandable in place even if the aggregate does not come from source.
21154 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
21155 designated object of an allocator in place, rather than building it
21156 first on the stack. The previous scheme forces a full copy of the array,
21157 and may be altogether unsusable if the size of the array is too large
21158 for stack allocation.
21160 2004-10-26 Robert Dewar <dewar@gnat.com>
21162 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
21163 compares if the component is atomic.
21165 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
21166 array assignment if the component type is atomic.
21168 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21169 Eric Botcazou <ebotcazou@act-europe.fr>
21171 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
21172 is aliased and is a by_reference type, do not pass by copy.
21173 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
21174 detect whether the call is in the right side of an assignment or
21175 the expression of an object declaration. Recurse on component
21176 association within aggregates.
21177 Call it in the condition that determines whether the temporary is
21178 necessary for correct stack-checking.
21180 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
21182 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
21183 RACW_Type, used in the PolyORB version.
21184 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
21185 version and the GARLIC version.
21187 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
21188 Rename RCI_Info to RCI_Locator for better consistency between the
21189 GARLIC and PolyORB versions of the distributed systems annex.
21190 (DSA_Implementation_Name): This enumeration lists the possible
21191 implementations of the Partition Communication Subsystem for the
21192 Distributed Systems Annex (DSA). The three available implementations
21193 are the dummy stub implementation (No_DSA), and two versions based on
21194 two different distribution runtime libraries: GARLIC and PolyORB. Both
21195 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
21197 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
21200 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
21201 between the GARLIC and PolyORB versions of the distributed systems
21203 Remove RE_Unbounded_Reclaim_Pool since it is unused.
21205 2004-10-26 Gary Dismukes <dismukes@gnat.com>
21207 * gnat1drv.adb: Suppress calling the back end when
21208 Frontend_Layout_On_Target is true.
21210 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
21212 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
21213 Set_Read_Only): New subprograms.
21214 These new routines allow the user to set or unset the Owner execute
21215 and Owner write permission flags on a file.
21217 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
21218 GNAT.OS_Lib.Set_Executable instead of rolling our own.
21220 2004-10-26 Matthew Gingell <gingell@gnat.com>
21222 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
21224 2004-10-26 Pascal Obry <obry@gnat.com>
21226 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
21227 memory before the faulting page we properly test the process read
21228 access for this address using appropriate Win32 routine.
21229 (HPUX sections): guard with "__hpux__" instead of "hpux".
21231 2004-10-26 Robert Dewar <dewar@gnat.com>
21233 * lib-xref.adb (Generate_Reference): Don't complain about reference to
21234 entry parameter if pragma Unreferenced set, since we do not properly
21235 handle the case of multiple parameters.
21237 2004-10-26 Vincent Celier <celier@gnat.com>
21239 * prj-env.adb: (Contains_ALI_Files): New Boolean function
21240 (Ada_Objects_Path.Add): For a library project, add to the object path
21241 the library directory only if there is no object directory or if the
21242 library directory contains ALI files.
21243 (Set_Ada_Paths.Add.Recursive_Add): Ditto
21245 2004-10-26 Vincent Celier <celier@gnat.com>
21247 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
21248 extension of library projects.
21250 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
21251 path defaults to ".:<prefix>/lib/gnat".
21252 (Parse): For an extending all project, allow direct import of a project
21253 that is virtually extended.
21255 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
21256 the specified name is directly imported, return its ID. Otherwise, if
21257 an extension of this project is imported, return the ID of the
21260 2004-10-26 Robert Dewar <dewar@gnat.com>
21262 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
21263 (Sub3): New procedure, used by Scaled_Divide
21264 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
21265 correct more than one instance of failure to propagate carries
21267 (Double_Divide): Handle overflow case of largest negative number
21268 divided by minus one.
21270 * s-arit64.ads (Double_Divide): Document that overflow can occur in
21271 the case of a quotient value out of range.
21274 2004-10-26 Robert Dewar <dewar@gnat.com>
21276 * s-bitops.adb (Bit_Eq): Remove redundant check.
21278 * s-bitops.ads: Minor comment updates
21279 Change some occurrences of Address to System.Address
21281 * s-carsi8.ads: Fix minor cut-and-paste error in comments
21283 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21285 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
21286 accessibility check to prefix that is a protected operation.
21288 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21290 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
21291 empty, post message on stub.
21293 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21294 Javier Miranda <miranda@gnat.com>
21296 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
21297 current instance appears within a unit that is directly in the context
21299 Used to determine whether the body of the instance should be analyzed
21300 immediately after its spec, to make its subprogram bodies available
21301 for front-end inlining.
21302 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
21303 constraint is not allowed on the component type (AARM 12.5.3(3))
21305 2004-10-26 Cyrille Comar <comar@act-europe.fr>
21307 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
21308 'Storage_Pool): enhance, document & limit detection of non-sharable
21311 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
21313 * s-pooglo.ads: Add more documentation now that this pool is properly
21316 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21318 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
21319 or protected type with discriminants, do not constrain the
21320 corresponding record type if the subtype declaration has no
21321 discriminant constraints. This can be the case in source code, or in
21322 the subtype declaration created to rename an actual type within an
21325 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21327 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
21328 different kind of stub (possibly wrong name for file), do not check
21330 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
21331 includes call to some function that returns an unconstrained type, do
21334 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21336 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
21337 appear in the code for the main unit. Dependencies among units in the
21338 context of the main unit are established when those other units are
21339 compiled. Otherwise spurious elaboration constraints can generate
21340 incorrect elaboration circularities.
21342 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
21343 Ed Schonberg <schonberg@gnat.com>
21345 * sem_util.adb (Is_Aliased_View): Defend against the case where this
21346 subprogram is called with a parameter that is not an object name. This
21347 situation arises for some cases of illegal code, which is diagnosed
21348 later, and in this case it is wrong to call Is_Aliased, as that might
21349 cause a compiler crash.
21350 (Explain_Limited_Type): Refine previous fix to include
21351 inherited components of derived types, to provide complete information.
21353 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
21354 is the prival for a protected object.
21355 It is necessary to mark this entity as a variable, in addition to
21356 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
21357 modified to avoid checking the Aliased flag on entities that are not
21358 objects. (Checking that flag for non-objects is erroneous and could
21359 lead to a compiler crash).
21361 2004-10-26 Robert Dewar <dewar@gnat.com>
21363 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
21364 X_Frac = 0.5, then we know that the number X must be positive.
21365 (Succ): Remove the same redundant test, and also fix the primary test
21366 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
21368 (Decompose): Add fuller comments to spec
21370 2004-10-26 Pascal Obry <obry@gnat.com>
21372 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
21373 validity (process must have read access). Set to 0 in all other cases.
21374 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
21375 violation on Win32.
21376 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
21377 segmentation violation.
21379 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
21381 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
21382 whose type is a constructed subtype of an aliased object with an
21383 unconstrained nominal subtype, convert the actual to the constructed
21384 subtype before taking its address.
21386 2004-10-26 Vincent Celier <celier@gnat.com>
21388 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
21389 (Is_Path_Name_Case_Sensitive): New function
21391 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
21392 (Base_Name, Simple_Name, Current_Directory, Compose,
21393 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
21396 2004-10-26 Cyrille Comar <comar@act-europe.fr>
21397 Vasiliy Fofanov <fofanov@act-europe.fr>
21398 Vincent Celier <celier@gnat.com>
21400 * gnat_ugn.texi: Generalize "finding memory problems" section into a
21401 "memory management issues" section and document some of the useful
21402 memory pools provided as part of the GNAT library.
21403 Remove "virtual" from declaration of A::method2 in
21404 the simple example of Ada/C++ mixed system.
21405 Library Projects may be virtually extended: their virtual extensions
21406 are not Library Projects.
21407 Added section on extending project hierarchies.
21409 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
21411 * adaint.c (__gnat_get_libraries_from_registry): Cast value
21413 (__gnat_portable_spawn): Remove const.
21415 * mingw32.h (MAXPATHLEN): Check for previous definition.
21417 2004-10-17 Matthias Klose <doko@debian.org>
21419 * gnatvsn.ads: Set gnat library version to 4.0.
21421 2004-10-05 Vincent Celier <celier@gnat.com>
21423 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
21425 2004-10-04 Laurent GUERBY <laurent@guerby.net>
21428 * Makefile.in: Define and use RANLIB_FLAGS.
21430 2004-10-04 Pascal Obry <obry@gnat.com>
21432 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
21433 other x86 platforms).
21435 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
21437 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
21438 in general and triggers stack alignment adjustment for thread entry
21439 points on targets where this is necessary.
21441 2004-10-04 Bernard Banner <banner@gnat.com>
21444 * Makefile.in: Add section for powerpc linux
21445 Add variant i-vxwork-x86.ads
21447 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
21449 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
21451 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
21452 table registration calls when need be. Ensures no reference to the crt
21453 ctors symbol are issued in the SJLJ case, which avoids possible
21454 undefined symbol errors in the case of modules to be statically linked
21457 2004-10-04 Javier Miranda <miranda@gnat.com>
21459 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
21460 in-line the code corresponding to subprogram Analyze_Actuals. In
21461 addition, analyze the actuals only in case of subprogram call.
21463 2004-10-04 Ed Falis <falis@gnat.com>
21465 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
21467 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
21469 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
21470 in the documentation.
21472 2004-10-04 Robert Dewar <dewar@gnat.com>
21474 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
21476 (Analyze_Block_Statement): Add circuitry to detect following dead code
21477 (Check_Unreachable_Code): Handle case of block exit
21479 2004-10-04 Robert Dewar <dewar@gnat.com>
21481 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
21482 (XMatchD): Avoid warning for Logic_Error call
21484 2004-10-04 Robert Dewar <dewar@gnat.com>
21486 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
21487 consider expressions buried within a procedure actual to be an actual.
21488 This caused some blowups with uses of packed slices within a procedure
21491 2004-10-04 Robert Dewar <dewar@gnat.com>
21493 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
21494 longer need to be initialized to zero.
21495 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
21496 initialized to zero.
21498 * checks.adb (Expr_Known_Valid): Packed arrays are now always
21499 considered valid, even if the representation is modular. That's correct
21500 now that we no longer initialize packed modular arrays to zero.
21502 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
21503 suffixes. These are now documented as the only cases in which the
21504 debugger ignores outer records.
21505 Previously, the spec allowed arbitrary suffixes for this purpose.
21506 Change name of LJM to JM for packed array pad records
21507 Create separate section on packed array handling, and add a whole new
21508 set of comments to this section describing the situation with packed
21509 modular types and justification requirements depending on endianness.
21511 2004-10-04 Robert Dewar <dewar@gnat.com>
21513 * a-except.adb: Add a comment for last change
21515 * einfo.ads: Minor spelling correction in comment
21517 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
21519 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
21522 * sem_util.ads: Minor comment update
21524 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21526 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
21527 Inline_Always when in Configurable_Run_Time mode.
21529 * sem_prag.adb (Process_Convention): If entity is an inherited
21530 subprogram, apply convention to parent subprogram if in same scope.
21531 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
21532 when in Configurable_Run_Time mode.
21534 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21536 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
21537 class_wide type after component list has been inherited.
21539 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21541 * sem_ch12.adb (Check_Generic_Actuals): New predicate
21542 Denotes_Previous_Actual, to handle properly the case of a private
21543 actual that is also the component type of a subsequent array actual.
21544 The visibility status of the first actual is not affected when the
21545 second is installed.
21546 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
21547 make fully recursive the treatment of formals of packages declared
21549 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
21550 the above on exit from an instantiation.
21551 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
21552 current instantiation which is now complete.
21553 (Analyze_Package_Instantiation): No instantiated body is needed if the
21554 main unit is generic. Efficient, and avoid anomalies when a instance
21555 appears in a package accessed through rtsfind.
21557 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21559 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
21560 do not generate a declaration for a temporary if the call is part of a
21561 library-level instantiation.
21563 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21565 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
21566 searching for a limited component to flag.
21568 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
21569 expansion of Input, to account for the fact that the implicit call
21570 generated by the attribute reference must freeze the user-defined
21571 stream subprogram. This is only relevant to 'Input, because it can
21572 appear in an object declaration, prior to the body of the subprogram.
21574 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
21575 expansion can proceed and further errors uncovered.
21576 (Minor clean up): Fix cases of using | instead of \ for continuation
21579 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21581 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
21583 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
21584 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
21585 Use gcc_assert and gcc_unreachable.
21587 * decl.c (gnat_to_gnu_entity, case object): Check and process a
21588 specified alignment before validating size.
21589 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
21590 stripped-down declaration for the type of the inner field when making
21593 * utils.c (finish_record_type): Do not compute the size in units
21594 incrementally. Instead compute it once for the rep clause case.
21595 Use gcc_assert and gcc_unreachable.
21597 2004-10-04 Vincent Celier <celier@gnat.com>
21599 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
21601 (Is_Valid_Path_Name): Take '/' as a directory separator.
21603 2004-10-04 Vincent Celier <celier@gnat.com>
21605 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
21606 (Extended_Project) only if Extended_Project is defined, to avoid
21608 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
21610 (Parse_Single_Project): Ditto.
21612 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
21613 Add_To_Project_Path for virtual projects.
21615 2004-10-04 Vincent Celier <celier@gnat.com>
21617 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21618 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
21619 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
21620 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
21621 parameter Options_2.
21623 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
21624 Build_Dynamic_Library with an empty Options_2.
21626 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
21629 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
21630 directory separator, if any.
21631 (Gprmake): Do not allow mains on the command line for library projects.
21632 Do not attempt to link when the project is a library project.
21633 (Library_Opts): New table to store Library_Options.
21634 (Build_Library): If Library_Options is specified, pass these options
21635 when building a shared library.
21637 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
21639 * s-tposen.adb (Service_Entry): The object must be always unlocked at
21640 the end of this procedure now that the unlock operation was inserted
21643 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
21645 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
21646 corresponding to the Preallocated_Stacks flags in System.
21647 (Get_Target_Parameters): Including the processing for
21648 Preallocated_Stacks.
21650 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
21651 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
21652 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
21653 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
21654 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
21655 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
21656 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
21657 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
21658 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
21659 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
21660 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
21661 used to signal whether the compiler creates the required stacks and
21662 descriptors for the different tasks (when True) or it is done by the
21663 underlying operating system at run time (when False).
21664 It is initially set to False in all targets.
21666 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
21667 if it is supported by the target.
21668 (Make_Task_Create_Call): Pass the stack address if it has been
21669 previously created. Otherwise pass a Null_Address.
21671 * snames.adb: Add _stack.
21673 * snames.ads: Add Name_uStack. Required to allow the expander to
21674 statically allocated task stacks.
21676 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
21677 Stack_Address argument.
21678 Check that its value is equal to Null_Address because this target does
21679 not support the static stack allocation.
21681 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
21683 * usage.adb: Change "pragma inline" to "pragma Inline" in information
21686 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
21688 * exp_dist.adb: Split declaration of asynchronous flag out of
21689 Add_RACW_Read_Attribute.
21690 Minor reformatting for better alignment with PolyORB version.
21691 Store the entity for the asynchronous flag of an RACW, rather than the
21692 expression, in the asynchronous flags table. This will allow this flag
21693 to be used in other subprograms beside Add_RACW_Read_Attribute.
21695 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
21697 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
21698 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21699 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
21700 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
21701 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
21702 sockets constant MSG_NOSIGNAL (Linux-specific).
21703 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
21704 all Send operations.
21705 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
21706 from trigerring SIGPIPE.
21707 Rename components to avoid clash with Ada 2005 possible reserved
21709 (Check_Selector): When the select system call returns with an error
21710 condition, propagate Socket_Error to the caller.
21712 2004-10-01 Jan Hubicka <jh@suse.cz>
21714 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
21716 2004-09-23 Robert Dewar <dewar@gnat.com>
21719 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
21720 instead do this at freeze time (we won't do it if there is an address
21722 Change "pragma inline" to "pragma Inline" in information and error
21724 Minor reformatting.
21726 * freeze.adb (Check_Address_Clause): Remove previous change, not the
21727 right way of doing things after all.
21728 (Freeze_Entity): For object, set Is_Public for imported entities
21729 unless there is an address clause present.
21731 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
21733 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
21734 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
21735 ensures proper handling of types with rep clauses, which might have
21736 their TYPE_SIZE set already.
21738 2004-09-21 Robert Dewar <dewar@gnat.com>
21740 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
21741 packed array types in both little- and big-endian cases. This change
21742 ensures that we no longer count on the unused bits being initialized
21743 for such types (and in particular ensures that equality testing will
21744 only read the relevant bits).
21745 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
21746 These changes mean that we no longer need to initialize small packed
21748 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
21749 optimization to an LJM field as to its parent field.
21751 * ada-tree.h, trans.c, utils.c, utils2.c:
21752 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
21754 2004-09-20 Jan Hubicka <jh@suse.cz>
21756 * utils.c (gnat_finalize): Remove.
21757 (end_subprog_body): Directly call cgraph_finalize_function;
21758 do not lower the nested functions.
21760 2004-09-20 Robert Dewar <dewar@gnat.com>
21763 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
21764 if an address clause is present, since that means that the Import
21767 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
21769 * 5tsystem.ads: Removed, no longer used.
21771 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
21772 Zack Weinberg <zack@codesourcery.com>
21774 * ada-tree.def: Use tree_code_class enumeration constants
21775 instead of code letters.
21776 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
21777 Update for new tree-class enumeration constants.
21779 2004-09-17 Vincent Celier <celier@gnat.com>
21781 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
21782 capabilities of the general project manager.
21784 2004-09-09 Vincent Celier <celier@gnat.com>
21786 * a-direct.ads: Add pragma Ada_05
21787 (Directory_Entry_Type): Give default value to component Kind to avoid
21788 not initialized warnings.
21790 * a-direct.adb (Current_Directory): Remove directory separator at the
21792 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
21793 an existing directory.
21794 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
21795 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
21796 Convert the result to File_Size.
21798 * prj.ads: (Project_Error): New exception
21800 * prj-attr.adb: Except in procedure Initialize, Fail comes from
21801 Prj.Com, not from Osint.
21802 (Attrs, Package_Attributes): Tables moved to private part of spec
21803 (Add_Attribute, Add_Unknown_Package): Moved to new child package
21805 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
21806 Prj.Project_Error after call to Fail.
21807 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
21808 Fail. Check that package name is not already in use.
21810 * prj-attr.ads: Comment updates to indicate that all subprograms may be
21811 used by tools, not only by the project manager, and to indicate that
21812 exception Prj.Prj_Error may be raised in case of problem.
21813 (Add_Unknown_Package, Add_Attribute): Moved to new child package
21815 (Attrs, Package_Attributes): Table instantiations moved from the body to
21816 the private part to be accessible from Prj.Attr.PM body.
21818 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
21819 from new package Prj.Attr.PM.
21820 (Parse_Attribute_Declaration): Call Add_Attribute from new package
21823 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
21825 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
21826 instead of Elaboration_Checks).
21828 * a-calend.adb: Minor reformatting
21830 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21832 * gigi.h (maybe_pad_type): New declaration.
21833 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
21835 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
21837 * cuintp.c: Convert to use buildN.
21839 * decl.c (maybe_pad_type): No longer static.
21840 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
21842 Convert to use buildN.
21844 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
21845 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
21846 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
21848 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
21849 (gnat_gimplify_expr, case ADDR_EXPR): New case.
21850 Convert to use buildN.
21852 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
21853 TREE_READONLY for const.
21854 Convert to use buildN.
21856 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
21857 (create_var_decl): Refine when TREE_STATIC is set.
21858 Convert to use buildN.
21860 2004-09-09 Gary Dismukes <dismukes@gnat.com>
21862 * gnat_ugn.texi: Delete text relating to checking of ali and object
21865 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
21868 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
21870 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
21871 pragmas recognized by GNAT.
21873 * gnat_rm.texi: Document pragma Detect_Blocking.
21875 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
21876 raise Program_Error if called from a protected operation.
21878 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
21879 the protected action nesting level.
21880 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
21881 protected action nesting level.
21882 (Unlock): When pragma Detect_Blocking is active decrease the protected
21883 action nesting level.
21885 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
21886 Protected_Action_Nesting.
21888 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
21889 Common_ATCB record. It contains the dynamic level of protected action
21890 nesting for each task. It is needed for checking whether potentially
21891 blocking operations are called from protected operations.
21892 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
21893 Detect_Blocking is active or not in the partition.
21895 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
21896 raise Program_Error if called from a protected operation.
21897 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
21898 Program_Error if called from a protected operation.
21899 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
21900 Program_Error if called from a protected operation.
21902 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
21903 raise Program_Error if called from a protected operation.
21905 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
21906 raise Program_Error if called from a protected operation, and increase
21907 the protected action nesting level.
21908 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
21909 Program_Error if called from a protected operation, and increase the
21910 protected action nesting level.
21911 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
21912 protected action nesting level.
21914 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
21915 raise Program_Error if called from a protected operation, and increase
21916 the protected action nesting level.
21917 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
21918 Program_Error if called from a protected operation, and increase the
21919 protected action nesting level.
21920 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
21921 raise Program_Error if called from a protected operation.
21922 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
21923 active, raise Program_Error if called from a protected operation.
21924 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
21925 protected action nesting level.
21927 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
21928 insertion of the statement raising Program_Error. The run time
21929 contains the required machinery for handling that.
21931 * sem_util.ads: Change comment associated to procedure
21932 Check_Potentially_Blocking_Operation.
21933 This procedure does not insert a call for raising the exception because
21934 that is currently done by the run time.
21936 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
21938 * init.c: Add the global variable __gl_detect_blocking that indicates
21939 whether pragma Detect_Blocking is active (1) or not (0). Needed for
21940 making the pragma available at run time.
21941 (__gnat_set_globals): Pass and update the detect_blocking parameter.
21943 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
21944 pragma Detect_Blocking is active.
21946 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
21948 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
21949 DB is found in the ali file. Any unit compiled with pragma
21950 Detect_Blocking active forces its effect in the whole partition.
21952 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
21953 Detect_Blocking is active and delay is called from a protected
21956 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
21957 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
21958 Detect_Blocking is active (0 otherwise).
21959 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
21960 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
21963 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
21965 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
21966 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
21969 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
21970 (Register_Receiving_Stub): Add Subp_Info formal parameter.
21971 Update API in placeholder implemetation of s-parint to reflect changes
21972 in distribution runtime library.
21974 * sem_ch3.adb (Expand_Derived_Record): Rename to
21975 Expand_Record_Extension.
21977 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
21978 primitive operations of potentially distributed object types that have
21979 non-controlling anonymous access formals.
21981 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
21983 New implementation of expansion for remote access-to-subprogram types,
21984 based on the RACW infrastructure.
21985 This version of sem_dist is compatible with PolyORB/DSA as well as
21988 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
21989 Asynchrronous that applies to a remote access-to-subprogram type, mark
21990 the underlying RACW type as asynchronous.
21992 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
21993 __gnat_using_gnu_linker to 1.
21995 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
21996 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
21997 GNAT.Perfect_Hash_Generators, and remove the empty
21998 GNAT.Perfect_Hash package.
22000 * atree.adb: Minor reformatting
22002 * exp_ch3.adb (Expand_Derived_Record): Rename to
22003 Expand_Record_Extension.
22004 (Build_Record_Init_Proc.Build_Assignment): The default expression in
22005 a component declaration must remain attached at that point in the
22006 tree so New_Copy_Tree copies it if the enclosing record type is derived.
22007 It is therefore necessary to take a copy of the expression when building
22008 the corresponding assignment statement in the init proc.
22009 As a side effect, in the case of a derived record type, we now see the
22010 original expression, without any rewriting that could have occurred
22011 during expansion of the ancestor type's init proc, and we do not need
22012 to go back to Original_Node.
22014 * exp_ch3.ads (Expand_Derived_Record): Rename to
22015 Expand_Record_Extension.
22017 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
22018 Returns the RACW type used to implement a remote access-to-subprogram
22020 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
22021 New subprograms. Used to create a proxy tagged object for a remote
22022 subprogram. The proxy object is used as the designated object
22023 for RAS values on the same partition (unless All_Calls_Remote applies).
22024 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
22025 System.Partition_Interface.Get_Unique_Remote_Pointer.
22026 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
22027 Renamed from Add_RAS_*_Attribute.
22028 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
22030 New implementation of expansion for remote access-to-subprogram types,
22031 based on the RACW infrastructure.
22033 * exp_dist.ads (Copy_Specification): Update comment to note that this
22034 function can copy the specification from either a subprogram
22035 specification or an access-to-subprogram type definition.
22037 2004-09-09 Ed Schonberg <schonberg@gnat.com>
22039 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
22040 in an instance, between an explicit subprogram an one inherited from a
22041 type derived from an actual.
22043 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
22044 add a polling call if the subprogram is to be inlined by the back-end,
22045 to avoid repeated calls with multiple inlinings.
22047 * checks.adb (Apply_Alignment_Check): If the expression in the address
22048 clause is a call whose name is not a static entity (e.g. a dispatching
22049 call), treat as dynamic.
22051 2004-09-09 Robert Dewar <dewar@gnat.com>
22053 * g-trasym.ads: Minor reformatting
22055 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
22056 packed arrays, since unused bits are expected to be zero for a
22059 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
22061 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
22064 2004-09-09 Pascal Obry <obry@gnat.com>
22066 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
22067 enable map file generation. Add the right option to generate the map
22068 file if Map_File is set to True.
22070 * gnatdll.adb (Gen_Map_File): New variable.
22071 (Syntax): Add info about new -m (Map_File) option.
22072 (Parse_Command_Line): Add support for -m option.
22073 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
22074 Minor reformatting.
22076 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
22078 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
22079 new gnatdist implementation.
22080 Define a subpackage isolating the output routines specific to this
22083 2004-09-09 Joel Brobecker <brobecker@gnat.com>
22085 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
22087 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
22089 2004-09-09 Cyrille Comar <comar@act-europe.fr>
22091 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
22094 * opt.ads: Add Ada_Version_Runtime constant used to decide which
22095 version of the language is used to compile the run time.
22097 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
22099 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
22100 of variable length temporaries for function return now that the
22101 back-end and gigi support it.
22103 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22105 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
22107 * trans.c (struct stmt_group): Delete field GLOBAL.
22108 (gnat_init_stmt_group): Do not initialize it.
22109 (call_to_gnu): Use save_expr, not protect_multiple_eval.
22110 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
22111 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
22112 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
22113 (start_stmt_group): Likewise.
22114 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
22116 * utils2.c (ggc.h): Include.
22117 (build_call_raise): Call build_int_cst, not build_int_2.
22119 * utils.c (gnat_init_decl_processing): Fix arg to
22120 build_common_tree_nodes.
22121 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
22122 (gnat_define_builtin): Set built_in_decls.
22123 (init_gigi_decls): Call build_int_cst, not build_int_2.
22125 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
22126 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
22127 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
22128 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
22129 SET_TYPE_MODULE): Use them.
22130 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
22131 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
22132 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
22133 SET_TYPE_ADA_SIZE): Likewise.
22134 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
22135 (DECL_CONST_CORRESPONDING_VAR,
22136 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
22137 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
22138 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
22139 (TYPE_RM_SIZE_NUM): New macro.
22140 (TYPE_RM_SIZE): Modified to use above.
22142 * cuintp.c: (build_cst_from_int): New function.
22143 (UI_To_gnu): Use it.
22145 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
22146 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
22147 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
22148 MIN_EXPR for the size, copy it into new.
22150 2004-09-01 Robert Dewar <dewar@gnat.com>
22152 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
22153 packed indexed component where array is an IN OUT formal. This
22154 generated garbage code previously.
22156 * gnat_ugn.texi: Document -fverbose-asm
22158 * gnat-style.texi: Minor updates (note that boolean constants and
22159 variables are joined with AND/OR rather than short circuit forms).
22161 2004-09-01 Ed Schonberg <schonberg@gnat.com>
22163 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
22164 it is an upward conversion of an untagged type with no representation
22167 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
22169 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
22170 System.Partition_Interface.
22172 * checks.adb (Apply_Access_Checks): Do not generate checks when
22173 expander is not active (but check for unset reference to prefix of
22176 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
22177 pragma Debug as an if statement with a constant condition, for
22178 consistent treatment of entity references contained within the
22179 enclosed procedure call.
22181 2004-09-01 Vincent Celier <celier@gnat.com>
22183 * bindgen.adb: (Set_EA_Last): New procedure
22184 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
22186 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
22187 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
22188 linked without errors.
22189 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
22191 (Gen_Exception_Table_C): Correct same bugs
22193 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
22195 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
22196 on Windows, make sure that the drive letter is in upper case.
22198 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
22199 Windows, when the drive letter is added and Case_Sensitive is True, the
22200 drive letter is forced to upper case.
22202 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
22203 to Options_2 for the call to MLib.Utl.Gcc.
22205 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
22206 directory separator when defining BASE_DIR.
22208 2004-09-01 Pascal Obry <obry@gnat.com>
22210 * gprcmd.adb (Extend): Do not output trailing directory separator. This
22211 is not needed and it confuses Windows GNU/make which does not report
22212 directory terminated by a slash as a directory.
22213 (gprcmd): Idem for "pwd" internal command.
22215 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
22216 target names rewrite to fix regressions with recent version of
22217 GNU/make. Starting with GNU/make 3.80 the pipe character was not
22218 handled properly anymore.
22220 2004-09-01 Andreas Schwab <schwab@suse.de>
22222 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
22223 * raise.c [!IN_RTS]: Undef abort.
22225 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
22227 * utils2.c (build_allocator): Use ssize_int.
22229 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
22231 2004-08-27 Andreas Schwab <schwab@suse.de>
22233 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
22235 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
22236 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22238 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
22240 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
22242 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
22243 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
22244 * utils.c (init_gigi_decls): Likewise.
22245 * utils2.c (build_call_raise, build_allocator): Likewise.
22247 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
22249 * utils.c (gnat_init_decl_processing): Adjust
22250 build_common_tree_nodes call.
22252 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
22254 * utils2.c (build_allocator): Use build_int_cst for negative
22257 2004-08-18 Richard Henderson <rth@redhat.com>
22259 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
22261 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
22263 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
22265 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
22266 (gnat_to_gnu): Likewise.
22268 2004-08-16 Pascal Obry <obry@gnat.com>
22270 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
22271 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
22272 option and not mdll anymore. Update comment.
22274 2004-08-16 Pascal Obry <obry@gnat.com>
22276 * bld.adb (Put_Include_Project): Properly handle directory separators
22279 2004-08-16 Ed Schonberg <schonberg@gnat.com>
22281 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
22282 decreasing the number of allocated junk nodes while searching for the
22283 appropriate subprogram.
22285 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
22287 * cuintp.c (UI_To_gnu): Use build_int_cst..
22288 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
22289 * utils.c (init_gigi_decls): Likewise.
22290 * utils2.c (build_call_raise): Likewise.
22292 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
22294 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
22295 for a global aliased object with a variable size and an unconstrained
22296 nominal subtype, pretend there is no initializer if the one we have is
22297 incomplete, and avoid referencing an inexistant component in there. The
22298 part we have will be rebuilt anyway and the reference may confuse
22299 further operations.
22301 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
22303 * einfo.ads: Minor reformatting
22305 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
22306 restrictions in the ALI if we only want to warn about violations.
22308 2004-08-13 Vincent Celier <celier@gnat.com>
22310 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
22311 when creating a new Unit_Record in table Units.
22313 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
22314 that are violated, if any.
22316 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
22317 add directory separator if path already ends with a directory separator.
22319 2004-08-13 Ed Schonberg <schonberg@gnat.com>
22321 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
22322 unit, this is an attempt to inline a construct that is not available in
22323 the current restricted mode, so abort rather than trying to continue.
22325 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
22326 discriminants that rename those of the parent, recover names of
22327 original discriminants for the constraint on the full view of the
22329 (Complete_Private_Subtype): Do not create a subtype declaration if the
22330 subtype is an itype.
22332 * gnat_rm.texi: Added section on implementation of discriminated
22333 records with default values for discriminants.
22335 2004-08-13 Ed Schonberg <schonberg@gnat.com>
22338 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
22339 the second operand is overloaded.
22341 2004-08-10 Richard Henderson <rth@redhat.com>
22343 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
22344 add __builtin_alloca.
22346 2004-08-10 Richard Henderson <rth@redhat.com>
22348 * config-lang.in (boot_language): Yes.
22350 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
22352 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
22353 from complaining on potential uninitialized reference.
22354 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
22355 new specification and test explicitly for non-zero return value.
22357 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
22358 returning C.int, to avoid using a derived boolean type.
22360 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
22361 Duplicate_Subexpr_No_Checks in preference to direct use of
22362 Remove_Side_Effects and New_Copy_Tree.
22363 Clear Comes_From_Source on prefix of 'Size attribute reference.
22365 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
22366 g-socthi-vxworks.adb: Change calls to
22367 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
22368 and test explicitly for non-zero return value.
22370 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
22371 (Is_Socket_In_Set): Declare imported function as returning C.int, to
22372 avoid using a derived boolean type.
22374 2004-08-09 Albert Lee <lee@gnat.com>
22376 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
22378 2004-08-09 Pascal Obry <obry@gnat.com>
22380 * gnat_ugn.texi: Document new way to build DLLs on Windows using
22381 GCC's -shared option.
22383 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
22384 Options_2 parameter (options put after object files).
22386 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
22388 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
22389 ignore overflows on low and high bounds of an index to also account for
22390 differences in signedness between sizetype and gnu_index_subtype.
22391 These are as legitimate as the ones caused by a lower TYPE_PRECISION
22394 2004-08-09 Robert Dewar <dewar@gnat.com>
22396 * s-solita.ads, s-solita.adb: Minor reformatting
22398 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
22399 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
22400 obsolescent section
22401 Add note that No_Implicit_Conditionals does not suppress
22402 run time constraint checks.
22404 * vms_conv.ads: Minor reformatting
22406 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
22407 and necessary for following change).
22408 (Mark): Return new format Mark_Id containing sec stack address
22409 (Release): Use sec stack address from Mark_Id avoiding Self call
22411 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
22412 pointer (cleanup and necessary for following change).
22413 Define Mark_Id as record containing address of secondary stack, that way
22414 Release does not need to find the stack again, decreasing the number of
22415 calls to Self and improving efficiency.
22417 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
22419 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
22420 case variable into the individual case branches when possible.
22422 * sem_ch11.adb: Minor reformatting
22424 * prj.ads: Correct spelling of suffixs
22426 * prj-nmsc.adb: Minor reformatting
22427 Correct spelling suffixs throughout (also in identifiers)
22429 * freeze.adb: Minor spelling correction
22431 * exp_ch2.adb: Cleanups to handling of Current_Value
22432 (no functional effect).
22434 * bld.adb: Correct spelling of suffixs
22436 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
22438 2004-08-09 Ed Schonberg <schonberg@gnat.com>
22441 * sem_ch7.adb (Install_Private_Declarations): In the body of the
22442 package or of a child, private entities are both immediately_visible
22445 2004-08-09 Ed Schonberg <schonberg@gnat.com>
22447 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
22448 there are no range checks on the value of the literal.
22450 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
22451 wrapped is the triggering alternative of an asynchronous select, action
22452 statements mustbe inserted before the select itself.
22454 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
22455 case where the prefix is a protected function call.
22456 (Resolve_Attribute, case 'Access): The attribute reference on a
22457 subprogram is legal in a generic body if the subprogram is declared
22460 2004-08-09 Vincent Celier <celier@gnat.com>
22462 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
22463 languages, otherwise building the library may fail with unresolved
22465 (Compile_Sources): Do not build libraries if -c switch is used
22467 * gnatlink.adb (Process_Args): New switches -M and -Mmap
22468 (Write_Usage): If map file creation is supported, output new switches
22470 (Gnatlink): When -M is specified, add the necessary switch(es) to the
22471 gcc call, when supported.
22473 * Makefile.in: Added indepsw.o to the object list for gnatlink
22474 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
22476 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
22477 indepsw.adb, indepsw.ads: New files.
22479 2004-08-09 Bernard Banner <banner@gnat.com>
22481 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
22483 * Makefile.in: add section for vxworks x86
22485 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
22487 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
22488 per-object constrained components where the discriminant is of an
22490 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
22491 the parent initialization procedure for derived Unchecked_Unions.
22492 Instead, derived Unchecked_Unions build their own initialization
22494 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
22495 Check the body of the subprogram for details.
22496 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
22497 functions for derived Unchecked_Union types by introducing a condition.
22498 Allow the creation of TSS equality functions for Unchecked_Unions.
22499 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
22500 Add formal parameter Discr to function signature. Discr is used to
22501 control the generated case statement for Unchecked_Union types.
22502 (Make_Eq_If): Rename formal parameter Node to E in function signature.
22504 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
22506 Check the body of the subprogram for details.
22507 (Expand_Composite_Equality): Augment composite type equality to include
22508 correct handling of Unchecked_Union components.
22509 (Expand_N_In): Add condition to detect illegal membership tests when the
22510 subtype mark is a constrained Unchecked_Union and the expression lacks
22511 inferable discriminants, and build a Raise_Program_Error node.
22512 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
22513 to detect types that contain components of unconstrained Unchecked_Union
22514 subtype. Add condition to detect equality between types that have an
22515 unconstrained Unchecked_Union component, and build a Raise_Program_Error
22516 node. Add condition to detect equality between Unchecked_Union types
22517 that lack inferable discriminants, and build a Raise_Program_Error node.
22518 Otherwise build a TSS equality function call.
22519 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
22520 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
22521 with the operand lacking inferable discriminants, and build a Raise_
22522 Program_Error node.
22523 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
22524 composite equality.
22525 (Has_Inferable_Discriminants): Implement new predicate for objects and
22526 expressions of Unchecked_Union type. Check the body of subprogram for
22528 (Has_Unconstrained_UU_Components): Add function
22529 Component_Is_Unconstrained_UU. It is used to detect whether a single
22530 component is of an unconstrained Unchecked_Union subtype. Add function
22531 Variant_Is_Unconstrained_UU. It is used to detect whether a single
22532 component inside a variant is of an unconstrained Unchecked_Union type.
22534 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
22535 inferred discriminant values. Add condition to generate a case
22536 statement with an inferred discriminant as the switch.
22537 (Make_Component_List_Assign): Introduce a Boolean flag that determines
22538 the behaviour of the subprogram in the presence of an Unchecked_Union.
22539 Add condition to trigger the usage of the inferred discriminant value
22540 as the generated case statement switch.
22541 (Make_Field_Assign): Introduce a Boolean flag that determines the
22542 behaviour of the subprogram in the presence of an Unchecked_Union. Add
22543 condition to trigger the usage of the inferred discriminant value as
22544 the right-hand side of the generated assignment.
22546 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
22547 parameter generation when dealing with Unchecked_Unions.
22549 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
22550 checks for Unchecked_Unions.
22552 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
22554 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
22555 Raise_Program_Error nodes for the execution of Read and Write
22556 attributes of Unchecked_Union types and the execution of Input and
22557 Output attributes of Unchecked_Union types that lack default
22558 discriminant values.
22560 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
22561 Unchecked_Union. Add procedure Check_Component. It is used to inspect
22562 per-object constrained components of Unchecked_Unions for being
22563 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
22564 check individual components withing a variant.
22566 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
22567 comparison of Unchecked_Unions.
22568 (Resolve_Equality_OP): Remove guard that prevents equality between
22571 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
22572 of component subtypes for Unchecked_Union components.
22573 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
22574 since it is the actual subtype.
22576 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
22577 pass of Unchecked_Union subtypes as generic actuals to formal types
22578 that lack known_discriminant_parts or that are derived Unchecked_Union
22579 types, and do nothing. In any other case, produce an error message.
22581 * sem_ch3.adb (Analyze_Component_Declaration): Add function
22582 Contains_POC. It determines whether a constraint uses the discriminant
22583 of an enclosing record type.
22584 Add condition to detect per-object constrained component and set the
22586 (Derived_Type_Declaration): Remove guard that prevents derivation from
22587 Unchecked_Union types.
22588 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
22591 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
22592 references to Unchecked_Union discriminants.
22594 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
22595 formal generation when dealing with Unchecked_Unions.
22596 (Set_Actual_Subtypes): Add condition to prevent generation of actual
22597 subtypes for Unchecked_Unions.
22599 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
22600 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
22601 completions of discriminated partial views by Unchecked_Unions and
22602 produce an error message.
22604 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22606 * trans.c (struct stmt_group): New field, GLOBAL.
22607 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
22608 (struct elab_info): New struct.
22609 (elab_info_list, gnu_elab_proc_stack): New variables.
22610 (Compilation_Unit_to_gnu): New procedure.
22611 (gigi): Call it and also handle elaboration procs we've saved.
22612 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
22613 global field from parent.
22614 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
22615 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
22616 (start_stmt_group): Initialize global field from parent.
22617 (add_decl_expr): Set to global for current statement group.
22618 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
22621 * utils.c (global_bindings_p): True when no current_function_decl; no
22622 longer check current_binding_level.
22624 2004-08-09 Ben Brosgol <brosgol@gnat.com>
22626 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
22629 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
22631 2004-08-06 Andreas Schwab <schwab@suse.de>
22633 * utils.c (gnat_define_builtin): Remove second parameter of
22635 (begin_subprog_body): Likewise.
22637 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
22639 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
22640 optimization, not supported by the tree-ssa back-end.
22642 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
22644 * s-mastop-irix.adb: Update comments.
22646 * a-except.adb (Exception_Information): Raise Constraint_Error if
22647 exception Id is Null_Id.
22648 This is required behavior, which is more reliably and clearly checked
22649 at the top level interface level.
22651 2004-07-26 Javier Miranda <miranda@gnat.com>
22653 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
22654 call if a component has no default_expression and the box is used.
22656 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
22657 default_expression and you use box, it behaves as if you had declared a
22658 stand-alone object.
22659 (Resolve_Record_Aggregate): If a component has no default_expression and
22660 you use box, it behaves as if you had declared a stand-alone object.
22662 * sem_ch10.adb (Install_Siblings): Do not make visible the private
22663 entities of private-with siblings.
22665 2004-07-26 Ed Schonberg <schonberg@gnat.com>
22667 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
22668 for a component of an itype, set the parent pointer for analysis,
22669 there is no list in which to insert it.
22671 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
22672 bona-fide renamings, not for inherited operations.
22674 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
22675 actual for a formal that is an access parameter, create local
22676 finalization list even if the expression is not an aggregate.
22678 2004-07-26 Ed Schonberg <schonberg@gnat.com>
22681 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
22682 Diagnose properly illegal subprogram renamings that are library units.
22684 2004-07-26 Ed Schonberg <schonberg@gnat.com>
22687 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
22688 conversion rewritten as an unchecked conversion, check that original
22689 expression is a variable.
22691 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
22692 unchecked_conversion, create new node rather than rewriting in place,
22693 to preserve original construct.
22695 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22697 * gigi.h (gnat_expand_body): Deleted.
22699 * Make-lang.in: (trans.o): Depends on function.h.
22701 * misc.c: (gnat_expand_body): Moved to here.
22703 * trans.c (gnat_expand_body_1): Deleted.
22704 (gnat_expand_body): Moved from here.
22705 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
22706 (add_stmt): Check for marked visited with global_bindings_p.
22707 (gnat_gimplify_expr, case COMPONENT_REF): New case.
22708 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
22710 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
22711 VIEW_CONVERT_EXPR if not operation type.
22713 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
22716 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
22717 changes: reformatting of negation operators, removing unneeded
22718 inequality comparison with zero, converting equality comparisons with
22719 zero to negations, changing int/0/1 to bool/false/true, replace calls
22720 to gigi_abort with abort, and various other similar changes.
22722 2004-07-26 Vincent Celier <celier@gnat.com>
22724 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
22727 * make.adb (Gnatmake): Fail when a library is not present and there is
22728 no object directory.
22730 * mlib-prj.adb (Check_Library): No need to check if the library needs
22731 to be rebuilt if there is no object directory, hence no object files
22732 to build the library.
22734 * opt.ads (Setup_Projects): New Boolean flag.
22736 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
22738 Create directory when Kind /= "" and in "gnat setup". Report error if
22739 directory cannot be created.
22740 (Ada_Check): Create library interface copy dir if it does not exist
22741 and we are in "gnat setup".
22742 (Find_Sources): No error if in "gnat setup" and no Ada sources were
22744 (Language_Independent_Check): Create object directory, exec directory
22745 and/or library directory if they do not exist and we are in
22748 * vms_conv.ads: (Command_Type): New command Setup.
22750 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
22752 * vms_data.ads: Add qualifiers/switches for new built-in command
22755 2004-07-25 Richard Henderson <rth@redhat.com>
22757 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
22758 DECL_IGNORED_P on RESULT_DECL.
22760 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
22762 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
22763 allocation and potentially overflowing update with
22764 Tailored_Exception_Information. Use the sec-stack free procedural
22765 interface to output Exception_Information instead.
22767 * a-except.adb (To_Stderr): New subprogram for character, and string
22768 version moved from a-exextr to be visible from other separate units.
22769 (Tailored_Exception_Information): Remove the procedural version,
22770 previously used by the default Last_Chance_Handler and not any more.
22771 Adjust various comments.
22773 * a-exexda.adb: Generalize the exception information procedural
22774 interface, to minimize the use of secondary stack and the need for
22775 local buffers when the info is to be output to stderr:
22776 (Address_Image): Removed.
22777 (Append_Info_Character): New subprogram, checking for overflows and
22778 outputing to stderr if buffer to fill is of length 0.
22779 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
22780 (Append_Info_Address, Append_Info_Exception_Name,
22781 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
22782 Append_Info_Basic_Exception_Traceback,
22783 Append_Info_Exception_Information): New subprograms.
22784 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
22785 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
22786 Exception_Info_Maxlength, Exception_Name_Length,
22787 Exception_Message_Length): New subprograms.
22788 (Exception_Information): Use Append_Info_Exception_Information.
22789 (Tailored_Exception_Information): Use
22790 Append_Info_Basic_Exception_Information.
22791 Export services for the default Last_Chance_Handler.
22793 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
22794 other separate units.
22796 2004-07-20 Vincent Celier <celier@gnat.com>
22798 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
22800 2004-07-20 Ed Schonberg <schonberg@gnat.com>
22802 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
22803 emit itype references for the designated types of component types that
22804 are declared outside of the full record declaration, and that may
22805 denote a partial view of that record type.
22807 2004-07-20 Ed Schonberg <schonberg@gnat.com>
22810 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
22811 which is the designated type in an access component declaration, to the
22812 list of incomplete dependents of the parent type, to avoid elaboration
22813 issues with out-of-scope subtypes.
22814 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
22815 full view of the parent.
22817 2004-07-20 Ed Schonberg <schonberg@gnat.com>
22820 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
22821 entities that are hidden, such as references to generic actuals
22822 outside an instance.
22824 2004-07-20 Javier Miranda <miranda@gnat.com>
22826 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
22827 support to the new notation.
22828 (Analyze_Selected_Component): Add call to Try_Object_Operation.
22830 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
22832 * s-taprob.adb: Adding the elaboration code required for initializing
22833 the tasking soft links that are common to the full and the restricted
22836 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
22837 restricted run time has been moved to the package
22838 System.Soft_Links.Tasking.
22840 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
22841 restricted run time has been moved to the package
22842 System.Soft_Links.Tasking.
22844 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
22846 * s-solita.ads, s-solita.adb: New files.
22848 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22850 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
22851 Case_Statement_to_gnu): Split off from gnat_to_gnu.
22852 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
22853 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
22854 Exception_Handler_to_gnu_zcx): Likewise.
22856 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
22858 * gigi.h (builtin_function): Declare.
22860 2004-07-15 Robert Dewar <dewar@gnat.com>
22862 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
22865 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
22866 access values as an example of a warning.
22868 * gnat_rm.texi: Document new attribute Has_Access_Values
22870 * gnat-style.texi: Document that box comments belong on nested
22873 * sem_util.ads (Has_Access_Values): Improved documentation
22875 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
22877 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
22878 (Process_Interface_Name): Call to this new procedure
22879 (Set_Extended_Import_Export_External_Name): Call to this new procedure
22881 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
22883 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
22885 * einfo.ads: Minor comment typo fixed
22887 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
22889 * snames.adb: Add _atcb.
22891 * snames.ads: Add Name_uATCB.
22893 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
22894 (in the expanded code) when using the restricted run time.
22896 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
22897 a in parameter in order to allow ATCBs to be preallocated (in the
22900 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
22901 order to allow ATCBs to be preallocated. In case of error, the ATCB is
22902 deallocated in System.Tasking.Stages.
22904 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
22905 order to allow ATCBs to be preallocated.
22907 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
22908 here. It was previously done in Initialize_ATCB.
22910 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
22912 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
22913 Restricted run time.
22915 * exp_ch3.adb: When using the Restricted run time, pass the
22916 preallocated Ada_Task_Control_Block when creating a task.
22918 2004-07-15 Ed Schonberg <schonberg@gnat.com>
22920 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
22921 function call that is itself an actual in an enclosing call, diagnose
22922 problem here rather than assuming that resolution will catch it.
22924 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
22925 the local copy of a generic unit for a formal package, and the generic
22926 is a child unit, install private part of ancestors before compiling
22927 private part of spec.
22929 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
22930 use scope entities rather than tree structures, to handle properly
22931 parent units that are instances rewritten as bodies for inlining
22934 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
22935 Remove_Parents): Handle properly a parent unit that is an
22936 instantiation, when the unit has been rewritten as a body for inlining
22939 * par.adb (Goto_List): Global variable to collect goto statements in a
22940 given unit, for use in detecting natural loops.
22942 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
22943 use in detecting natural loops.
22945 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
22946 backwards goto's, and rewrite as a infinite loop, to improve locality
22949 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
22950 subcomponent that includes an indexed reference, to prevent the
22951 generation of copies that would miscompile the desired assignment
22953 (Build_Task_Image_Decls): Add a numeric suffix to
22954 generated name for string variable, to avoid spurious conflicts with
22955 the name of the type of a single protected object.
22957 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
22958 loop with an explicit exit statement, to avoid generating an
22959 out-of-range value with 'Succ leading to spurious constraint_errors
22960 when compiling with -gnatVo.
22962 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
22964 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
22965 might not be analyzed yet, even if its Etype is already set (case of an
22966 unchecked conversion built using Unchecked_Convert_To, for example).
22967 If the prefix has already been analyzed, this will be a nop anyway.
22969 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
22970 controller type, or an assignment of a record type with controlled
22971 components, copy only user data, and leave the finalization chain
22972 pointers untouched.
22974 2004-07-15 Vincent Celier <celier@gnat.com>
22976 * make.adb (Collect_Arguments): Improve error message when attempting
22977 to compile a source not part of any project, when -x is not used.
22979 * prj.ads: (Defined_Variable_Kind): New subtype
22981 * prj-attr.adb (Register_New_Package): Two new procedures to register
22982 a package with or without its attributes.
22983 (Register_New_Attribute): Mew procedure to register a new attribute in a
22985 New attribute oriented subprograms: Attribute_Node_Id_Of,
22986 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
22987 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
22989 New package oriented subprograms: Package_Node_Id_Of,
22990 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
22992 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
22994 (Package_Node_Id): Now a private, self initialized type
22995 (Register_New_Package): New procedure to register a package with its
22997 New attribute oriented subprograms: Attribute_Node_Id_Of,
22998 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
22999 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
23001 New package oriented subprograms: Package_Node_Id_Of,
23002 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
23004 * prj-dect.adb (Parse_Attribute_Declaration,
23005 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
23007 * prj-makr.adb (Make): Parse existing project file before creating
23008 other files. Fail if there was an error during parsing.
23010 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
23011 new spec of Prj.Attr.
23013 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
23014 to new spec of Prj.Attr.
23016 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23018 * utils2.c: Fix typo in comment.
23020 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23022 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
23023 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
23025 2004-07-14 Andreas Schwab <schwab@suse.de>
23027 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
23029 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23031 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
23033 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
23036 * misc.c (gnat_types_compatible_p): New function.
23037 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
23038 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
23040 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
23041 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
23042 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
23043 (mark_visited): Don't mark dummy type.
23044 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
23045 parameter, we must remove any LJM building from GNU_NAME.
23046 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
23047 (pos_to_constructor): Use int_const_binop.
23048 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
23051 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
23052 (gnat_pushlevel): Set TREE_USE on BLOCK node.
23053 (gnat_install_builtins): Add __builtin_memset.
23055 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
23057 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
23058 for a renaming, stabilize the initialization expression if we are at a
23059 local level. At the local level, uses of the renaming may be performed
23060 by a direct dereference of the initializing expression, and we don't
23061 want possible variables there to be evaluated for every use.
23063 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
23064 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
23065 them on the way. Account for the fact that we may introduce side
23066 effects in the process.
23068 2004-07-13 Richard Henderson <rth@redhat.com>
23070 * misc.c (default_pass_by_ref): Use pass_by_reference.
23072 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
23074 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
23075 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
23077 2004-07-08 Richard Henderson <rth@redhat.com>
23079 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
23082 2004-07-06 Vincent Celier <celier@gnat.com>
23084 * vms_conv.ads: Minor reformatting.
23085 Alphabetical order for enumerated values of type Command_Type, to have
23086 the command in alphabetical order for the usage.
23088 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
23089 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
23091 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
23093 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
23094 (Add_Archive_Path): Only add the global archive if there is one.
23095 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
23096 or not any object file to put in the global archive, and don't build
23097 a global archive if there is none.
23098 (X_Switches): New table
23099 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
23100 in the X_Switches table, if any.
23101 (Initialize): Make sure the X_Switches table is empty
23102 (Scan_Arg): Record -X switches in table X_Switches
23104 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
23106 * make.adb: Minor comment fix
23108 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
23109 invoked with directory information, add the directory in front of the
23112 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
23113 invoked with directory information, add the directory in front of the
23116 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
23117 when Keep_Temporary_Files is False.
23118 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
23119 directory information, add the directory in front of the path.
23120 When not on VMS, handle new switch -dn before the command to set
23121 Keep_Temporary_Files to True.
23122 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
23125 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
23126 invoked with directory information, add the directory in front of the
23129 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
23131 * snames.ads, snames.adb (Name_Stub): New name for the distributed
23134 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
23135 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
23137 * g-socket.adb (To_Timeval): Fix incorrect conversion of
23138 Selector_Duration to Timeval for the case of 0.0.
23140 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
23141 documentation from Evolve_And_Then.
23143 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
23145 * s-taprop-tru64.adb, s-taprop-os2.adb,
23146 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
23148 2004-07-06 Robert Dewar <dewar@gnat.com>
23150 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
23151 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
23152 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
23153 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
23154 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
23155 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
23156 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
23157 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
23158 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
23159 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
23160 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
23161 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
23162 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
23163 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
23164 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
23165 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
23166 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
23167 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
23168 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
23169 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
23170 vms_data.ads: Minor reformatting,
23171 Fix bad box comment format.
23173 * gnat_rm.texi: Fix minor grammatical error
23175 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
23177 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
23178 more cases of discriminated records to be recognized as not needing a
23180 (Has_Access_Values): New function.
23182 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
23184 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
23185 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
23186 with LRM terminology).
23187 Change terminology in comments primitive type => elementary type.
23189 2004-07-06 Ed Schonberg <schonberg@gnat.com>
23192 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
23193 parameters do not impose any requirements on the presence of a body.
23195 2004-07-06 Ed Schonberg <schonberg@gnat.com>
23198 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
23199 compilation unit and is in an open scope at the point of instantiation,
23200 assume that a body may be present later.
23202 2004-07-06 Ed Schonberg <schonberg@gnat.com>
23204 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
23205 Improve error message when specified size is not supported.
23207 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
23208 is never a primitive operation.
23210 2004-07-05 Andreas Schwab <schwab@suse.de>
23212 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
23213 RECORD_OR_UNION_CHECK.
23214 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
23216 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
23218 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
23219 dependency on xgnatugn, instead build it via a submake.
23220 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
23222 2004-07-04 Richard Henderson <rth@redhat.com>
23224 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
23226 2004-07-01 Richard Henderson <rth@redhat.com>
23228 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
23229 * utils.c (max_size): Likewise.
23231 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23233 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
23234 and rest_of_type_compilation; add arg to create_*_decl.
23235 (annotate_decl_with_node): Deleted.
23236 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
23237 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
23238 (get_current_block_context, gnat_pushdecl): New declarations.
23239 (gnat_init_stmt_group): Likewise.
23240 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
23241 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
23242 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
23243 (gnat_init): Call gnat_init_stmt_group.
23244 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
23245 (gnu_pending_elaboration_list): Deleted.
23246 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
23247 (gigi): Rearrange initialization calls and move some to last above.
23248 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
23249 Delete calls to add_decl_expr; add arg to create_*_decl.
23250 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
23251 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
23252 begin_subprog_body and call it.
23253 Don't push and pop ggc context.
23254 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
23255 (add_stmt): Remove handling of DECL_EXPR from here.
23256 If not in function, mark visited.
23257 (add_decl_expr): Put global at top level.
23258 Check for cases of DECL_INITIAL we have to handle here.
23259 (process_type): Add extra arg to create_type_decl.
23260 (build_unit_elab): Rework to just gimplify.
23261 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
23262 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
23263 (get_pending_elaborations, pending_elaborations_p): Likewise.
23264 (push_pending_elaborations, pop_pending_elaborations): Likewise.
23265 (get_elaboration_location, insert_elaboration_list): Likewise.
23266 (gnat_binding_level): Renamed from ada_binding_level.
23267 (init_gnat_to_gnu): Don't clear pending_elaborations.
23268 (global_bindings_p): Treat as global if no current_binding_level.
23269 (set_current_block_context): New function.
23270 (gnat_pushdecl): Renamed from pushdecl; major rework.
23271 All callers changed.
23272 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
23273 (finish_record_type): Call call pushdecl for stub decl.
23274 (function_nesting_depth): Deleted.
23275 (begin_subprog_body): Delete obsolete code.
23276 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
23278 2004-06-28 Robert Dewar <dewar@gnat.com>
23280 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23281 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
23282 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
23283 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
23284 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
23286 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
23287 deal with problem of inefficient slices on machines with strict
23288 alignment, when the slice is a component of a composite.
23290 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
23291 machines, we need the check there as well.
23293 2004-06-28 Ed Schonberg <schonberg@gnat.com>
23295 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
23296 determine safe copying direction for overlapping slice assignments
23297 when component is controlled.
23299 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
23300 formal derived type in the actual for a formal package are visible in
23301 the enclosing instance.
23303 2004-06-28 Ed Schonberg <schonberg@gnat.com>
23306 * sem_util.adb (Trace_Components): Diagnose properly an illegal
23307 circularity involving a private type whose completion includes a
23308 self-referential component.
23309 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
23310 renaming or an instantiation from an implicit derived operation.
23312 2004-06-28 Pascal Obry <obry@gnat.com>
23314 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
23316 (Library_File_Name_For): Idem.
23318 2004-06-28 Matthew Gingell <gingell@gnat.com>
23320 * g-traceb.ads: Add explanatory note on the format of addresses
23321 expected by addr2line.
23323 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
23325 * Makefile.in: Force debugging information on s-tasdeb.adb,
23326 a-except.adb and s-assert.adb needed by the debugger.
23328 2004-06-28 Vincent Celier <celier@gnat.com>
23330 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
23334 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
23336 * prj.adb: Minor reformatting
23337 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
23339 * prj.ads: Comment updates
23341 (Project_Data): Change Flag1 to Need_To_Build_Lib.
23342 Remove Flag2: not used.
23344 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
23347 * gnat_ugn.texi: Put a "null;" declaration in one project file example
23349 * gnat_rm.texi: Document Empty declarations "null;".
23351 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
23352 front of the linker options.
23353 (Link_Foreign): Put the global archives and the libraries in front of
23354 the linker options.
23356 2004-06-28 Javier Miranda <miranda@gnat.com>
23358 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
23359 (RTU_Loaded): Code cleanup
23360 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
23361 withed predefined units.
23363 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
23364 explicitly withed predefined units.
23365 Fix typo in comment
23367 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
23368 explicitly withed predefined units.
23370 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23372 * ada-tree.def (DECL_STMT): Deleted.
23373 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
23374 (DECL_STMT_VAR): Deleted.
23375 * decl.c: add_decl_stmt now add_decl_expr.
23376 * gigi.h: Likewise.
23377 * trans.c: Likewise.
23378 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
23379 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
23380 (add_stmt): Only handle padded type here.
23381 (add_stmt_with_node): Allow gnat_node to not be present.
23382 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
23383 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
23384 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
23385 make a SAVE_EXPR for the entire fat pointer.
23386 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
23387 (create_index_type): Make a DECL_EXPR.
23388 (end_subprog_body): Don't call allocate_struct_function here but
23391 2004-06-25 Pascal Obry <obry@gnat.com>
23393 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
23394 Relocatable from Build_Dynamic_Library call.
23396 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
23397 Relocatable are now synonym.
23399 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
23401 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
23402 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
23405 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
23406 Lib_Address and Relocatable.
23407 (Default_DLL_Address): Removed.
23409 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23410 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23411 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
23412 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
23413 (Default_DLL_Address): Removed.
23415 * mlib-tgt-mingw.adb: Ditto.
23416 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
23418 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
23419 the initial thread stack size.
23421 * a-strmap.ads: Move package L to private part as it is not used in
23422 the spec. Found while reading code.
23424 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
23426 * tracebak.c: Introduce support for a GCC infrastructure based
23427 implementation of __gnat_backtrace.
23429 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
23430 any more. Use accessors instead. This eases maintenance and relaxes
23431 some alignment constraints.
23432 (_GNAT_Exception structure): Remove the Ada specific fields
23433 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
23435 (is_handled_by, __gnat_eh_personality): Replace component references to
23436 exception structure by use of the new accessors.
23438 * init.c (__gnat_initialize): Adjust comments to match the just
23439 reverted meaning of the -static link-time option.
23441 * adaint.c (convert_addresses): Arrange not to define a stub for
23442 mips-irix any more, as we now want to rely on a real version from a
23443 recent libaddr2line.
23445 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
23446 the personality routine can use them and not have to rely on a C
23447 counterpart of the record anymore. This simplifies maintenance and
23448 relaxes the constraint of having Standard'Maximum_Alignment match
23450 Update comments, and add a section on the common header alignment issue.
23452 2004-06-25 Geert Bosch <bosch@gnat.com>
23454 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
23455 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
23457 2004-06-25 Robert Dewar <dewar@gnat.com>
23459 * gnat_rm.texi: Fix section on component clauses to indicate that the
23460 restriction on byte boundary placement still applies for bit packed
23462 Add comment on stack usage from Initialize_Scalars
23464 * gnat_ugn.texi: Add documentation for -gnatyLnnn
23466 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
23467 limiting nesting level.
23469 * usage.adb: Add line for -gnatyLnnn switch
23471 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
23472 sem_ch13.adb, exp_aggr.adb: Minor reformatting
23474 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
23475 type as well as on the subtype. This corrects a problem in freeze in
23476 setting alignments of atomic types.
23478 * sem_eval.ads: Minor comment typo fixed
23480 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
23481 level. Minor reformatting.
23483 * fname.adb (Is_Predefined_File_Name): Require a letter after the
23484 minus sign. This means that file names like a--b.adb will not be
23485 considered predefined.
23487 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
23488 record Test new flag and give diagnostic for bad component clause.
23489 (Freeze_Entity): Set alignment of array from component alignment in
23490 cases where this is safe to do.
23492 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
23495 * cstand.adb: (Create_Standard): Set alignment of String to 1
23497 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
23499 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
23500 code in the common constrained array cases.
23502 * a-storio.adb: Change implementation to avoid possible alignment
23503 problems on machines requiring strict alignment (data should be moved
23504 as type Buffer, not type Elmt).
23506 * checks.adb (Apply_Array_Size_Check): Improve these checks by
23507 killing the overflow checks which we really do not need (64-bits is
23510 2004-06-25 Vincent Celier <celier@gnat.com>
23512 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
23513 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
23514 inconditionally for the main project.
23515 (Recursive_Add_Archives.Add_Archive_Path): New procedure
23516 (Link_Executables.Check_Time_Stamps): New procedure
23517 (Link_Executables.Link_Foreign): New procedure
23518 Changes made to reduce nesting level of this package
23519 (Check): New procedure
23520 (Add_Switches): When not in quiet output, check that a switch is not
23521 the concatenation of several valid switches. If it is, issue a warning.
23522 (Build_Global_Archive): If the global archive is rebuilt, linking need
23524 (Compile_Sources): Rebuilding a library archive does not imply
23525 rebuilding the global archive.
23526 (Build_Global_Archive): New procedure
23527 (Build_Library): New name for Build_Archive, now only for library
23529 (Check_Archive_Builder): New procedure
23530 (Create_Global_Archive_Dependency_File): New procedure
23531 (Gprmake): Call Build_Global_Archive before linking
23532 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
23534 (Scan_Arg): Display the Copyright notice when -v is used
23536 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
23539 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
23541 Add new GNAT LIST qualifier /FILES=
23542 Added qualifier /DIRECTORY= to GNAT METRIC
23543 Added qualifier /FILES= to GNAT METRIC
23544 Added qualifier /FILES to GNAT PRETTY
23546 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
23547 to take into account both versions of the switch.
23549 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
23550 always be the last switch to the gcc driver. Disable switch storing so
23551 that switches automatically added by the gcc driver are not put in the
23554 * prj.adb (Project_Empty): Take into account changes in components of
23557 * prj.ads (Languages_Processed): New enumaration value All_Languages.
23559 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
23560 used. Split Boolean component Ada_Sources_Present in two Boolean
23561 components Ada_Sources_Present and Other_Sources_Present.
23564 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
23565 instead of Sources_Present.
23566 (Set_Ada_Paths.Add.Recursive_Add): Ditto
23568 * prj-nmsc.adb: Minor reformatting
23569 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
23570 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
23571 Check_Ada_Naming_Scheme.
23572 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
23575 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
23577 Make sure that all cycles where there is at least one "limited with"
23579 (Parse_Single_Project): New Boolean parameter In_Limited
23581 * prj-proc.adb (Recursive_Check): When Process_Languages is
23582 All_Languages, call first Prj.Nmsc.Ada_Check, then
23583 Prj.Nmsc.Other_Languages_Check.
23585 * prj-proc.adb (Process): Use Ada_Sources_Present or
23586 Other_Sources_Present (instead of Sources_Present) depending on
23589 * lang-specs.h: Keep -g and -m switches in the same order, and as the
23592 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
23593 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
23595 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
23598 * lib.ads (Disable_Switch_Storing): New procedure.
23600 * make.adb: Modifications to reduce nesting level of this package.
23601 (Check_Standard_Library): New procedure
23602 (Gnatmake.Check_Mains): New procedure
23603 (Gnatmake.Create_Binder_Mapping_File): New procedure
23604 (Compile_Sources.Compile): Add switch -gnatez as the last option
23605 (Display): Never display -gnatez
23607 * Makefile.generic:
23608 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
23610 * gnatcmd.adb (Check_Project): New function
23611 (Process_Link): New procedure to reduce nesting depth
23612 (Check_Files): New procedure to reduce the nesting depth.
23613 For GNAT METRIC, include the inherited sources in extending projects.
23614 (GNATCmd): When GNAT LS is invoked with a project file and no files,
23615 add the list of files from the sources of the project file. If this list
23616 is too long, put it in a temp text files and use switch -files=
23617 (Delete_Temp_Config_Files): Delete the temp text file that contains
23618 a list of source for gnatpp or gnatmetric, if one has been created.
23619 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
23620 in the project file is too large, create a temporary text file that
23621 list them and pass it to the tool with "-files=<temp text file>".
23622 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
23624 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
23625 generated file is in not in Ada.
23627 * gnatls.adb: Remove all parameters And_Save that are no longer used.
23628 (Scan_Ls_Arg): Add processing for -files=
23629 (Usage): Add line for -files=
23631 * g-os_lib.adb (On_Windows): New global constant Boolean flag
23632 (Normalize_Pathname): When on Windows and the path starts with a
23633 directory separator, make sure that the resulting path will start with
23636 * clean.adb (Clean_Archive): New procedure
23637 (Clean_Project): When there is non-Ada code, delete the global archive,
23638 the archive dependency files, the object files and their dependency
23639 files, if they exist.
23640 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
23642 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
23644 * sinfo.ads: Fix typo in comment.
23646 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
23647 the TSS for remote access-to-subprogram types, since these TSS are
23648 always present once the type has been analyzed.
23649 (RAS_E_Dereference): Same.
23651 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
23652 reference raises Bad_Attribute, mark the reference as analyzed so the
23653 node (and any children resulting from rewrites that could have occurred
23654 during the analysis that ultimately failed) is not analyzed again.
23656 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
23658 * exp_dist.adb: Minor comment fix.
23660 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
23661 type is an anonymous access type, no unchecked deallocation of the
23662 allocated object can occur. If the object is controlled, attach it with
23663 a count of 1. This allows attachment to the Global_Final_List, if
23664 no other relevant list is available.
23665 (Get_Allocator_Final_List): For an anonymous access type that is
23666 the type of a discriminant or record component, the corresponding
23667 finalisation list is the one of the scope of the type.
23669 2004-06-25 Ed Schonberg <schonberg@gnat.com>
23671 * sem_ch3.adb (Replace_Type): When computing the signature of an
23672 inherited subprogram, use the first subtype if the derived type
23673 declaration has no constraint.
23675 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
23676 before applying previous optimization. Minor code cleanup.
23678 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
23679 placed at the beginning of an unpacked record without explicit
23680 alignment, a slice of it will be aligned and does not need a copy when
23683 2004-06-25 Ed Schonberg <schonberg@gnat.com>
23687 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
23688 reference is written with expressions mimicking parameters.
23690 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
23693 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
23694 STEP 2a. The constraints of a full type declaration of a derived record
23695 type are checked for conformance with those declared in the
23696 corresponding private extension declaration. The message
23697 "not conformant with previous declaration" is emitted if an error is
23700 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
23702 * g-traceb.ads: Document the need for -E binder switch in the spec.
23704 * g-trasym.ads: Document the need for -E binder switch in the spec.
23706 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
23708 * sem_prag.adb: Add handling of pragma Detect_Blocking.
23710 * snames.h, snames.ads, snames.adb: Add entry for pragma
23713 * s-rident.ads: Change reference to pragma Detect_Blocking.
23715 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
23718 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
23719 to indicate whether pragma Detect_Blocking is active.
23721 * par-prag.adb: Add entry for pragma Detect_Blocking.
23723 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
23724 of not handling WITH.
23725 Note that this replaces the previous update which was incorrect.
23727 2004-06-25 Javier Miranda <miranda@gnat.com>
23729 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
23730 use-clauses to have a clean environment.
23732 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
23733 the installation of the use-clauses to stablish a clean environment in
23734 case of compilation of a separate unit; otherwise the call to
23735 use_one_package is protected by the barrier Applicable_Use.
23737 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
23738 the installation of the use-clauses to stablish a clean environment in
23739 case of compilation of a separate unit.
23740 (End_Use_Clauses): Minor comment cleanup.
23742 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
23744 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
23746 2004-06-23 Richard Henderson <rth@redhat.com>
23748 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
23750 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23752 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
23753 now bool instead of int.
23754 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
23755 * trans.c (gnu_switch_label_stack): New function.
23756 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
23757 elaboration of renamed entity returns.
23758 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
23759 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
23760 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
23761 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
23762 DECL_SIZE_UNIT and simplify variable-sized case.
23763 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
23764 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
23765 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
23766 (build_unit_elab): Disable for now.
23767 * utils.c (mark_visited): New function.
23768 (pushdecl): Walk tree to call it for global decl.
23769 (update_pointer_to): Update all variants of pointer and ref types.
23770 Add arg to COMPONENT_REF.
23771 (convert): Likewise.
23772 Move check for converting between variants lower down.
23773 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
23774 (build_allocator): Don't force type of MODIFY_EXPR.
23775 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
23776 put_var_into_stack.
23778 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23780 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
23781 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
23782 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
23784 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
23785 all callers changed.
23786 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
23787 the way that EXIT_STMT finds the loop label.
23788 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
23789 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
23790 (add_stmt): Use annotate_with_locus insted of setting directly.
23791 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
23792 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
23793 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
23794 (build_vms_descriptor): Add extra args to ARRAY_REF.
23795 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
23796 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
23798 (build_binary_op): Don't make explicit CONVERT_EXPR.
23799 Add extra rgs to ARRAY_REF.
23801 2004-06-14 Pascal Obry <obry@gnat.com>
23803 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
23804 Windows. Fix minor typo.
23806 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
23807 which is now supported on Windows. With this implementation using the
23808 Library Project feature is no different on Windows than on UNIX.
23810 2004-06-14 Vincent Celier <celier@gnat.com>
23812 * makegpr.adb (Compile_Sources): Nothing to do when there are no
23815 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
23817 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
23818 found, show the project name and the path of the previously parsed
23821 2004-06-14 Ed Schonberg <schonberg@gnat.com>
23823 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
23824 array, avoid copying the actual before the call.
23826 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
23828 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
23829 Instead, allocate memory on worst-case alignment assumptions, and then
23830 return an aligned address within the allocated zone.
23832 2004-06-14 Robert Dewar <dewar@gnat.com>
23834 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
23835 elab entities in predefined units in No_Run_Time_Mode.
23836 (Gen_Adainit_C): Same fix
23837 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
23838 units in No_Run_Time_Mode
23839 (Gen_Elab_Calls_C): Same fix
23841 * symbols-vms-alpha.adb: Minor reformatting
23843 * g-debpoo.ads: Minor reformatting
23845 * lib.adb (In_Same_Extended_Unit): Version working on node id's
23847 * lib.ads (In_Same_Extended_Unit): Version working on node id's
23849 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
23852 * make.adb: Minor reformatting
23854 * par-ch12.adb: Minor reformatting
23856 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
23858 * prj-strt.adb: Minor reformatting
23860 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
23863 * sem_attr.adb: Minor reformatting
23865 * sem_ch7.adb: Minor reformatting
23867 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
23868 for type in the same unit as the object declaration.
23870 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
23871 static string expressions and not just string literals.
23873 (Set_Warning): Reset restriction warning flag for restriction pragma
23874 Implement pragma Profile_Warnings
23875 Implement pragma Profile (Restricted)
23876 Give obolescent messages for old restrictions and pragmas
23878 * snames.h, snames.ads, snames.adb: Add new entry for pragma
23881 * s-rident.ads: Add declarations for restrictions required by profile
23882 Restricted and profile Ravenscar.
23884 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
23886 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
23887 configuration pragmas.
23889 2004-06-11 Vincent Celier <celier@gnat.com>
23891 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
23892 gnatsym, when symbol policy is Restricted.
23894 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
23895 gnatsym, when symbol policy is Restricted.
23897 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
23898 read the symbol file.
23899 (Finalize): Fail in symbol policy Restricted if a symbol in the original
23900 symbol file is not in the object files. Do not create a new symbol file
23901 when symbol policy is Restricted.
23903 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
23906 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
23908 (Usage): Line for new switch -R
23910 * make.adb (Initialize): When the platform is not VMS, add the
23911 directory where gnatmake is invoked in the front of the path, if
23912 gnatmake is invoked with directory information. Change the Scan_Args
23913 while loop to a for loop.
23914 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
23915 if Depth is equal or greater than the proposed depth, there is nothing
23917 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
23920 * prj.ads: Add new symbol policy Restricted.
23922 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
23923 with the new parameters Check_All_Labels and Case_Location.
23925 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
23926 (Library_Symbol_File needs to be defined).
23928 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
23929 and Case_Location If Check_All_Labels is True, check that all values of
23930 the string type are used, and output warning(s) if they are not.
23932 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
23935 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
23937 * gnat_ugn.texi: Update documentation about the library directory in
23940 * makegpr.adb (Display_Command): In verbose mode, also display the
23941 value of the CPATH env var, when the compiler is gcc.
23942 (Initialize): Change the Scan_Args while loop to a for loop
23943 (Compile_Individual_Sources): Change directory to object directory
23944 before compilations.
23946 * symbols.ads: New symbol policy Restricted.
23948 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
23950 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
23951 is now taken care of internally in the Exception_Propagation package
23952 and does not require clients assistance any more.
23954 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
23955 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
23956 functions. Helpers to maintain a predicate required in the handling of
23957 occurrence transfer between tasks.
23958 This is now handled internally and does not require clients assistance
23959 for the setup/propagate separation anymore.
23960 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
23961 allocation strategy, handle the Setup_And_Not_Propagated predicate and
23964 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
23965 raise_after_setup, now that everything is handled internally within the
23966 setup/propagation engine.
23968 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
23970 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
23971 Add additional conditions for the case of an actual being a simple
23972 name or literal. Improve inlining by preventing the generation
23973 of temporaries with a short lifetime (one use).
23975 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
23978 * einfo.ads: Minor comment updates for Has_Completion and
23979 E_Constant list of flags.
23981 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
23982 and constant redeclarations now set the Has_Completion flag of their
23983 defining identifiers.
23985 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
23986 Inspect_Deferred_Constant_Completion.
23987 Used to detect private deferred constants that have not been completed
23988 either by a constant redeclaration or pragma Import. Emits error message
23989 "constant declaration requires initialization expression".
23991 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
23992 completes a deferred constant.
23994 2004-06-11 Geert Bosch <bosch@gnat.com>
23996 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
23998 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
23999 calculating exponent for scaling denormal numbers.
24000 (Leading_Part): Properly raise Constraint_Error for zero or negative
24002 (Remainder): Properly raise Constraint_Error for zero divisor.
24004 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
24006 * sem_util.adb: Minor reformatting.
24008 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
24009 dereference when accessing the entry parameter record.
24010 (Check_Array_Type): Always check for possible implicit dereference.
24011 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
24012 Abort if a pointer is still present (denoting that an implicit
24013 dereference was left in the tree by the front-end).
24015 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
24016 dereference when accessing the entry parameter record.
24017 (Check_Array_Type): Always check for possible implicit dereference.
24018 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
24019 Abort if a pointer is still present (denoting that an implicit
24020 dereference was left in the tree by the front-end).
24022 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
24024 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
24025 message, like the compiler itself does. Easier to parse the output.
24027 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
24029 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
24030 be base names, and not includes directories.
24032 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
24034 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
24035 so that dependencies are properly taken into account by make.
24037 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
24040 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
24041 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
24043 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
24045 * Makefile.in (install-gnatlib): install target-specific run-time files.
24047 * Make-lang.in: Remove obsolete targets.
24049 2004-06-11 Ed Schonberg <schonberg@gnat.com>
24051 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
24052 specification, to catch misuses of program unit names.
24054 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
24055 superfluous conversions in an instance.
24057 2004-06-11 Ed Schonberg <schonberg@gnat.com>
24060 * sem_ch12.adb (Save_References): If operator node has been folded to
24061 enumeration literal, associated_node must be discarded.
24063 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
24065 * s-stchop-vxworks.adb: Add required pragma Convention to
24066 Task_Descriptor because it is updated by a C function.
24068 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
24071 * Makefile.in: Remove target specific SO_OPT on IRIX
24073 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24075 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
24076 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
24077 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
24078 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
24079 (STMT_STMT, USE_STMT): New statement codes.
24080 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
24081 * ada-tree.h: Reflect above changes.
24082 (struct tree_loop_id): Deleted.
24083 (union lang_tree_node, struct lang_decl, struct lang_type):
24084 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
24085 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
24086 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
24087 (IS_ADA_STMT): New macro.
24088 * decl.c (annotate_decl_with_node): New function.
24089 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
24090 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
24091 Call add_stmt_with_node to do needed assignments.
24092 Add call to update setjmp buffer directly, not via EXPR_STMT.
24093 (maybe_variable): Argment GNAT_NODE deleted.
24094 * gigi.h (maybe_variable): Likewise.
24095 (make_transform, add_stmt_with_node, set_block_for_group): New.
24096 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
24097 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
24098 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
24099 (set_lineno, set_lineno_from_sloc): Likewise.
24100 (record_code_position, insert_code_for): Likewise.
24101 (gnat_poplevel): Now returns void.
24102 (end_subprog_body): Now takes argument.
24103 * misc.c (cgraph.h, tree-inline.h): New includes.
24104 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
24105 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
24106 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
24107 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
24108 (gnat_parse_file): Don't set immediate_size_expand.
24109 Call cgraph functions.
24110 (gnat_expand_expr): Remove most cases.
24111 (record_code_position, insert_code_for): Remove from here.
24112 * trans.c (toplev.h, tree-gimple.h): Now included.
24113 (discard_file_names): Deleted.
24114 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
24115 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
24116 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
24117 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
24118 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
24119 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
24120 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
24121 (set_block_for_group, add_stmt_list): Likewise.
24122 (start_stmt_group): Renamed from start_block_stmt.
24123 (end_stmt_group): Likewise, from end_block_stmt.
24124 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
24125 (gigi): Don't set discard_file_names or call set_lineno.
24126 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
24127 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
24128 Numerous changes throughout to reflect new names and complete
24129 function-at-a-time implementation.
24130 (gnat_expand_stmt): Delete or comment out all cases.
24131 (process_inlined_subprograms): Use add_stmt.
24132 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
24133 call set_lineno; also remove unneeded block handling.
24134 (process_type): Remove unneeded block handling.
24135 (build_unit_elab): Remove calls to deleted functions.
24136 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
24137 (tree-dump.h): Likewise.
24138 (struct ada_binding_level): Add field jmpbuf_decl.
24139 (gnat_define_builtin, gnat_install_builtins): New.
24140 (gnat_gimplify_function, gnat_finalize): Likewise.
24141 (gnat_poplevel): No longer return BLOCK, set it instead.
24142 Remove code dealing with nested functions.
24143 (gnat_init_decl_processing): Also set size_type_node.
24144 Call gnat_install_builtins.
24145 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
24146 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
24147 Remove special-case for "main".
24148 (end_subprog_body): Add arg and rework for tree-ssa.
24149 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
24150 Add case for BOOLEAN_TYPE.
24151 * utils2.c (rtl.h): Now include.
24152 (build_call_raise): Test Debug_Flag_NN directly.
24153 (build_call_alloc_dealloc): Don't use local stack allocation for now.
24154 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
24155 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
24157 2004-06-07 Robert Dewar <dewar@gnat.com>
24159 * a-direct.ads, einfo.ads: Minor comment updates
24161 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
24162 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
24163 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
24164 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
24165 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
24167 * s-interr-sigaction.adb: Remove unreferenced variable
24168 (Attached_Interrupts). Minor reformatting.
24169 Avoid use of variable I (replace by J).
24171 * par-ch10.adb: Fix text of one error message
24173 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
24174 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
24175 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
24176 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
24177 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
24178 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
24179 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
24180 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
24181 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
24182 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
24183 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
24186 2004-06-07 Doug Rupp <rupp@gnat.com>
24188 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
24190 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
24192 * mlib-tgt-vms-ia64.adb: New file.
24194 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
24195 Add mlib-tgt-vms-ia64.adb
24196 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
24197 Move to alpha specific ifeq section.
24198 Add VMS specific versions of symbols.adb
24199 Renaming of 5q vms files.
24201 * 5qsystem.ads renamed to system-vms_64.ads.
24203 2004-06-07 Vincent Celier <celier@gnat.com>
24205 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
24206 explain that when a time of day corresponding to the non existing hour
24207 on the day switching to DST is specified, Split may return a different
24210 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
24213 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
24214 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
24216 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
24218 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
24219 the linking options.
24220 (Build_Library.Check_Libs): On VMS, if there is a dependency on
24221 g-trasym.ads, set Gtrasymobj_Needed to True.
24223 * prj-attr.adb: Add new package Metrics for gnatmetric
24225 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
24226 canonical case to take into account files with upper case characters on
24228 (Ada_Check): Load the reference symbol file name in the name buffer to
24229 check it, not the symbol file name.
24231 * snames.ads, snames.adb: Add standard name Metrics (name of project
24232 file package for gnatmetric).
24234 * vms_conv.ads: Add Metric to Comment_Type
24236 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
24238 * vms_data.ads: Add qualifiers for GNAT METRIC
24240 * makegpr.adb (Link_Executables): Take into account the switches
24241 specified in package Linker of the main project.
24243 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
24245 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
24246 the index of the last element is Units.Last, not Units.Table'Last
24247 (which is usually not a valid index within the actually allocated
24248 storage for the table).
24250 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
24251 determines whether to generate a call to a checked storage pool
24252 Dereference action.
24253 Generate such a call only for a dereference that either comes from
24254 source, or is the result of rewriting a dereference that comes from
24257 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
24259 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
24261 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
24263 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
24264 file level, elaborate the stride for inner dimensions in alignment
24267 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
24270 2004-06-07 Javier Miranda <miranda@gnat.com>
24272 * exp_ch6.adb: Correct wrong modification in previous patch
24274 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
24276 * g-trasym.ads: Corrected comment to properly reflect level of support
24279 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
24281 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
24282 includes case of a variable referenced on the left hand side of an
24283 assignment, therefore remove redundant code. Variables and prefixes of
24284 indexed or selected components are now marked as referenced on left
24285 hand side. Warnings are now properly emitted when variables or prefixes
24286 are assigned but not read.
24288 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
24289 left hand side referenced variables. Private access types do not
24290 produce the warning "variable ... is assigned but never read".
24291 Add also additional checks to left hand side referenced variables.
24292 Aliased, renamed objects and access types do not produce the warning
24293 "variable ... is assigned but never read" since other entities may read
24294 the memory location.
24296 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
24298 * Makefile.in: In the powerpc/vxworks-specific section, restore
24299 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
24302 2004-06-07 Ed Schonberg <schonberg@gnat.com>
24304 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
24305 predefined operators.
24306 Removes spurious type errors from g-trasym-vms.adb.
24308 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
24309 distinct from the operator appearing in the source, call appropriate
24310 routine to insert conversions when needed, and complete resolution of
24312 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
24313 interpretations for rewritten right operand.
24314 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
24315 the other operand is overloaded and the context is a type conversion.
24317 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24319 * ada-tree.def (BLOCK_STMT): Now has two operands.
24322 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
24324 * gigi.h: (gnat_poplevel): Now returns a tree.
24326 * trans.c (end_block_stmt): Add arg; all callers changed.
24327 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
24328 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
24329 (add_stmt): Set TREE_TYPE.
24330 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
24331 (gnat_expand_stmt, case BREAK_STMT): New case.
24333 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
24335 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
24337 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
24338 procedure Set_Stack_Size that is not needed.
24340 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
24342 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
24343 used for gnatpp input file and for the files upon which it depends
24345 2004-06-07 Ben Brosgol <brosgol@gnat.com>
24347 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
24349 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
24351 * gnatvsn.ads: Bump version numbers appropriately.
24352 Add new build type.
24354 2004-06-07 Pascal Obry <obry@gnat.com>
24356 * gnat_ugn.texi: Improve comments about imported names and link names
24357 on Windows. Add a note about the requirement to use -k gnatdll's option
24358 when working with a DLL which has stripped stdcall symbols (no @nn
24361 2004-05-27 Vincent Celier <celier@gnat.com>
24363 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
24364 COMMENTS_LAYOUT=UNTOUCHED
24366 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
24367 symbols-vms-alpha.adb
24369 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
24371 * sem.ads: Clarify documentation on checks suppression.
24373 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
24375 2004-05-27 Ed Schonberg <schonberg@gnat.com>
24377 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
24378 the case of multiple derivations.
24379 (Is_Object_Reference): For a selected component, verify that the prefix
24380 is itself an object and not a value.
24382 * sem_ch12.adb (Same_Instantiated_Constant): New name for
24383 Same_Instantiated_Entity.
24384 (Same_Instantiated_Variable): Subsidiary to
24385 Check_Formal_Package_Instance, to recognize actuals for in-out generic
24386 formals that are obtained from a previous formal package.
24387 (Instantiate_Subprogram_Body): Emit proper error when
24388 generating code and the proper body of a stub is missing.
24390 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
24391 has a universal interpretation, do the disambiguation here.
24393 * exp_ch4.adb (Expand_N_Type_Conversion,
24394 Expand_N_Unchecked_Type_Conversion): Special handling when target type
24395 is Address, to avoid typing anomalies when Address is a visible integer
24398 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
24399 to determine whether a subprogram should not be marked Pure, even when
24400 declared in a pure package.
24402 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
24404 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
24406 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
24407 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
24408 Update the documentation about the Ravenscar profile, following the
24409 definition found in AI-249.
24411 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
24412 setting the Profile (Ravenscar). This must be done in addition to
24413 setting the required restrictions.
24415 * rtsfind.ads: Add the set of operations defined in package
24418 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
24421 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
24423 lang-specs.h: Always require -c or -S and always redirect to /dev/null
24424 if -gnatc or -gnats is passed.
24426 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
24428 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
24429 a significant reference. Warnings are now properly emitted when a
24430 discriminated type is not referenced.
24432 * lib-xref.adb (Generate_Reference): A deferred constant completion,
24433 record representation clause or record type discriminant does not
24434 produce a reference to its corresponding entity. Warnings are now
24435 properly emitted when deferred constants and record types are not
24438 2004-05-27 Geert Bosch <bosch@gnat.com>
24440 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
24441 Fixes ACATS Annex G tests.
24443 2004-05-27 Robert Dewar <dewar@gnat.com>
24445 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
24448 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
24450 * s-interr.adb (Server_Task): Take into account case of early return
24451 from sigwait under e.g. linux.
24453 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
24455 * gnat_ugn.texi: Add description for the new gnatpp options:
24456 -rnb - replace the original source without creating its backup copy
24457 -c0 - do not format comments
24459 2004-05-24 Geert Bosch <bosch@gnat.com>
24461 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
24462 with 192 bits of precision, sufficient to reduce a double-extended
24463 arguments X with a maximum relative error of T'Machine_Epsilon, for X
24464 in -2.0**32 .. 2.0**32.
24465 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
24466 reduction by the processor, which only uses a 68-bit approximation of
24468 (Tan): Always reduce arguments and compute function either using
24469 the processor's fptan instruction, or by dividing sin and cos as needed.
24471 2004-05-24 Doug Rupp <rupp@gnat.com>
24473 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
24474 gcc error on 32/64 bit VMS.
24476 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
24478 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
24479 since this is what we get for stack overflows although not documented
24481 Document the issues which may require adjustments to our signal
24484 2004-05-24 Ed Schonberg <schonberg@gnat.com>
24486 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
24487 enclosing dynamic scope if the instantiation is within a generic unit.
24489 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
24491 * exp_dbug.ads: Fix typo.
24493 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
24494 Rename it to its proper name: system-linux-ia64.ads
24495 (stamp-gnatlib1): Remove extra target specific run time files when
24496 setting up the rts directory.
24498 2004-05-24 Javier Miranda <miranda@gnat.com>
24500 * einfo.ads, einfo.adb (Limited_Views): Removed.
24501 (Limited_View): New attribute that replaces the previous one. It is
24502 now a bona fide package with the limited-view list through the
24503 first_entity and first_private attributes.
24505 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
24506 limited-private-with clause.
24507 (Install_Limited_Withed_Unit): Install the private declarations of a
24508 limited-private-withed package. Update the installation of the shadow
24509 entities according to the new structure (see Build_Limited_Views)
24510 (Build_Limited_Views): Replace the previous implementation of the
24511 limited view by a package entity that references the first shadow
24512 entity plus the first shadow private entity (required for limited-
24513 private-with clause)
24514 (New_Internal_Shadow_Entity): Code cleanup.
24515 (Remove_Limited_With_Clause): Update the implementation to undo the
24516 new work carried out by Build_Limited_Views.
24517 (Build_Chain): Complete documentation.
24518 Replace Ada0Y by Ada 0Y in comments
24521 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
24522 types the level of accessibility depends on the enclosing type
24525 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
24526 entities. Complete documentation of previous change.
24528 2004-05-24 Robert Dewar <dewar@gnat.com>
24530 * namet.adb: Minor reformatting
24531 Avoid use of name I (replace by J)
24532 Minor code restructuring
24534 * sem_ch6.adb: Minor reformatting
24536 * lib-writ.adb: Do not set restriction as active if this is a
24537 Restriction_Warning case.
24539 * sem_prag.adb: Reset restriction warning flag if real pragma
24540 restriction encountered.
24542 * s-htable.adb: Minor reformatting
24543 Change rotate count to 3 in Hash (improves hash for small strings)
24545 * 5qsystem.ads: Add comments for type Address (no literals allowed).
24547 * gnat_ugn.texi: Add new section of documentation "Code Generation
24548 Control", which describes the use of -m switches.
24550 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
24552 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
24553 through the DECL_INITIAL for renamed variables.
24555 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
24557 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
24559 2004-05-19 Joel Brobecker <brobecker@gnat.com>
24561 * exp_dbug.ads: Correct comments concerning handling of overloading,
24562 since we no longer use $ anymore.
24564 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
24566 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
24567 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
24568 with illegal subunits.
24570 2004-05-19 Ed Schonberg <schonberg@gnat.com>
24572 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
24573 body with front-end inlining enabled, check whether an inline pragma
24574 appears immediately after the body and applies to it.
24576 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
24577 enabled and the pragma appears after the body of the subprogram.
24579 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24581 Part of function-at-a-time conversion
24583 * misc.c (adjust_decl_rtl): Deleted.
24584 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
24587 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
24588 (add_decl_stmt, add_stmt, block_has_vars): New functions.
24589 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
24591 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
24592 when making a decl.
24593 (gnat_to_gnu_entity): Likewise.
24594 Use add_stmt to update setjmp buffer.
24595 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
24597 No longer call adjust_decl_rtl.
24598 (DECL_INIT_BY_ASSIGN_P): New macro.
24599 (DECL_STMT_VAR): Likewise.
24601 * trans.c (gigi): Call start_block_stmt to make the outermost
24603 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
24604 Call start_block_stmt and end_block_stmt temporarily.
24605 Use gnat_expand_stmt instead of expand_expr_stmt.
24606 (add_decl_stmt): New function.
24607 (tree_transform): Call it.
24608 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
24609 (end_block_stmt): Set type and NULL_STMT.
24610 (gnat_expand_stmt): Make recursize call instead of calling
24612 (gnat_expand_stmt, case DECL_STMT): New case.
24613 (set_lineno_from_sloc): Do nothing if global.
24614 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
24615 (start_block_stmt, add_stmt, end_block_stmt): New functions.
24616 (build_block_stmt): Call them.
24617 (gnat_to_code): Don't expand NULL_STMT.
24618 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
24620 (tree_transform): Likewise.
24621 (tree_transform, case N_Null_Statement): Return NULL_STMT.
24622 (gnat_expand_stmt, case NULL_STMT): New case.
24623 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
24626 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
24629 * utils.c (create_var_decl): Do not call expand_decl or
24631 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
24632 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
24634 (struct e_stack): Add chain_next to GTY.
24635 (struct binding_level): Deleted.
24636 (struct ada_binding_level): New struct.
24637 (free_block_chain): New.
24638 (global_binding_level, clear_binding_level): Deleted.
24639 (global_bindings_p): Rework to see if no chain.
24640 (kept_level_p, set_block): Deleted.
24641 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
24642 new data structure and work directly on BLOCK node.
24643 (gnat_poplevel): Similarly.
24644 (get_decls): Look at BLOCK_VARS.
24645 (insert_block): Work directly on BLOCK node.
24646 (block_has_var): New function.
24647 (pushdecl): Rework for new binding structures.
24648 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
24650 (build_subprog_body): Likewise.
24651 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
24653 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
24655 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
24656 (DECL_STMT_VAR): Likewise.
24658 2004-05-17 Robert Dewar <dewar@gnat.com>
24660 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
24663 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
24664 of restriction synonyums by using
24665 Restrict.Process_Restriction_Synonyms.
24667 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
24669 * s-restri.ads (Tasking_Allowed): Correct missing comment
24671 * s-rident.ads: Add entries for restriction synonyms
24673 * ali.adb: Fix some problems with badly formatted ALI files that can
24674 result in infinite loops.
24676 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
24677 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
24678 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
24679 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
24680 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
24681 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
24682 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
24683 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
24684 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
24685 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
24686 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
24687 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
24688 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
24689 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
24690 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
24691 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
24692 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
24693 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
24694 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
24695 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
24696 to Task_Id (minor cleanup).
24698 2004-05-17 Vincent Celier <celier@gnat.com>
24700 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
24701 directory separator.
24703 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
24704 project being extended, if Languages is not declared in extending
24707 2004-05-17 Javier Miranda <miranda@gnat.com>
24709 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
24710 limited view of a visible sibling.
24712 2004-05-14 Robert Dewar <dewar@gnat.com>
24714 * gnat_ugn.texi: Minor change to -gnatS documentation
24716 * sprint.adb: Remove some instances of Assert (False) and for this
24717 purpose replace them by output of a ??? string.
24719 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
24722 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
24723 flag processing. This was suppressing required dependencies in
24724 No_Run_Time mode and is not needed since the binder does not generate
24725 references for things in libgnat anyway.
24727 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
24730 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
24732 * gnat_ugn.texi: Document AIX-specific issue with initialization of
24735 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
24736 action for the case of an actual parameter in an init proc call.
24738 2004-05-14 Ed Schonberg <schonberg@gnat.com>
24740 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
24741 subtype, check visible entities in base type.
24743 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
24744 actions if the object is a renaming.
24746 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
24747 Check_Formal_Package_Instance, to determine more precisely when the
24748 formal and the actual denote the same entity.
24750 2004-05-14 Javier Miranda <miranda@gnat.com>
24752 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
24754 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
24755 corresponding to a private_with must be removed from visibility; it
24756 will be made visible later, just before we analyze the private part of
24758 (Check_Private_Child_Unit): Allow private_with clauses in public
24760 (Install_Siblings): Make visible the private entities of private-withed
24762 (Install_Withed_Unit): Do not install the private withed unit if we
24763 are compiling a package declaration and the Private_With_OK flag was
24764 not set by the caller. These declarations will be installed later,
24765 just before we analyze the private part of the package.
24767 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
24768 during the evaluation of the expression that initializes the object,
24769 decorate it with the expected type to avoid cascade errors.
24772 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
24773 subprogram we have to install the private_with clauses after its
24774 specification has been analyzed (as documented in AI-262.TXT).
24776 * sem_ch8.adb (Has_Private_With): New function. Determines if the
24777 current compilation unit has a private with on a given entity.
24778 (Find_Direct_Name): Detect the Beaujolais problem described in
24781 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
24782 provides the functionality of the function Is_Ancestor that was
24783 previously available in sem_ch10. It has been renamed to avoid
24786 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
24788 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24790 * utils.c (build_vms_descriptor): Use SImode pointers.
24792 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
24794 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
24796 2004-05-14 GNAT Script <nobody@gnat.com>
24798 * Make-lang.in: Makefile automatically updated
24800 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
24802 Renaming of target specific files for clarity
24804 * Makefile.in: Rename GNAT target specific files.
24806 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
24807 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
24808 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
24809 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
24810 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
24811 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
24812 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
24813 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
24814 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
24815 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
24816 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
24817 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
24818 51osinte.adb, 51osinte.ads, 51system.ads,
24819 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
24820 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
24821 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
24822 56tpopsp.adb, 57system.ads, 58system.ads,
24823 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
24824 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
24825 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
24826 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
24827 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
24828 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
24829 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
24830 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
24831 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
24832 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
24833 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
24834 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
24835 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
24836 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
24837 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
24838 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
24839 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
24840 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
24841 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
24842 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
24843 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
24844 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
24845 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
24846 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
24847 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
24848 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
24849 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
24850 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
24851 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
24852 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
24853 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
24854 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
24855 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
24856 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
24857 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
24858 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
24859 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
24860 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
24861 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
24862 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
24864 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
24865 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
24866 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
24867 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
24868 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
24869 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
24870 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
24871 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
24872 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
24873 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
24874 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
24875 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
24876 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
24877 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
24878 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
24879 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
24880 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
24881 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
24882 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
24883 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
24884 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
24885 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
24886 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
24887 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
24888 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
24889 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
24890 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
24891 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
24892 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
24893 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
24894 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
24895 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
24896 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
24897 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
24898 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
24899 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
24900 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
24901 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
24902 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
24903 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
24904 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
24905 s-osinte-vms.ads, s-osinte-vxworks.adb,
24906 s-osinte-vxworks.ads, s-osprim-mingw.adb,
24907 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
24908 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
24909 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
24910 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
24911 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
24912 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
24913 s-stchop-vxworks.adb, s-taprop-dummy.adb,
24914 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
24915 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
24916 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
24917 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
24918 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
24919 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
24920 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
24921 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
24922 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
24923 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
24924 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
24925 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
24926 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
24927 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
24928 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
24929 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
24930 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
24931 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
24932 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
24933 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
24934 system-irix-o32.ads, system-linux-x86_64.ads,
24935 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
24936 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
24937 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
24938 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
24939 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
24940 system-vxworks-mips.ads, system-vxworks-ppc.ads,
24941 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
24944 2004-05-13 Zack Weinberg <zack@codesourcery.com>
24946 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
24948 2004-05-13 Diego Novillo <dnovillo@redhat.com>
24950 Merge from tree-ssa-20020619-branch.
24952 * config-lang.in (boot_language, build_by_default): Set
24954 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
24955 (max_size): Add static chain op for call_expr.
24957 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
24960 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
24962 2004-05-11 Roger Sayle <roger@eyesopen.com>
24964 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
24967 2004-05-10 Doug Rupp <rupp@gnat.com>
24969 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
24972 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
24974 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
24976 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
24977 Fixes undefined symbols in IA64 gnatlib.
24979 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
24981 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
24982 Short_Address). This will be moved to system.auxdec.
24984 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
24986 * sem_util.adb: Replace test for presence of a node that is always
24987 present with a call to Discard_Node.
24989 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
24990 Analyze on the library unit node after generation of distribution stub
24991 constructs. The call was a no-op because Unit_Node has already been
24992 Analyzed, and the tree fragments for the distribution stubs are
24993 analyzed as they are inserted in Exp_Dist.
24994 Update comment regarding to distribution stubs to reflect that we
24995 do not generate stub in separate files anymore.
24997 * einfo.ads: Clarify the fact that a tagged private type has the
24998 E_Record_Type_With_Private Ekind.
25000 * erroutc.adb: Minor reformatting
25002 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
25003 values if line length is increased using -gnatyM (noticed during code
25006 * eval_fat.adb: Minor reformatting
25007 Put spaces around exponentiation operator
25009 2004-05-10 Ed Schonberg <schonberg@gnat.com>
25012 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
25013 has been rewritten as an explicit dereference, retrieve type of
25014 original node to check for possibly unconstrained record type.
25016 2004-05-10 Ed Schonberg <schonberg@gnat.com>
25018 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
25019 overriding, use the operation of the parent unconditionally.
25021 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
25022 operation when either operand is a literal, to avoid further
25025 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
25026 overridden by a previous explicit declaration, mark the previous entity
25029 * sem_disp.adb (Check_Dispatching_Operation): New predicate
25030 Is_Visibly_Controlled, to determine whether a declaration of a
25031 primitive control operation for a derived type overrides an inherited
25032 one. Add warning if the explicit declaration does not override.
25034 2004-05-10 Vincent Celier <celier@gnat.com>
25036 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
25037 some cases when the sources are no longer present.
25039 * make.adb (Collect_Arguments): Fail if an external source, not part
25040 of any project need to be compiled, when switch -x has not been
25043 * makeusg.adb: Document new switch -x
25045 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
25046 defaulted to False.
25048 * switch-m.adb (Scan_Make_Switches): New switch -x
25050 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
25051 gnatmake switch -x.
25053 * gnat_ugn.texi: Document new gnatmake switch -x
25055 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
25057 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
25059 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
25060 (process_attributes): Likewise.
25062 2004-05-10 Joel Brobecker <brobecker@gnat.com>
25064 * s-inmaop.ads: Fix spelling mistake in one of the comments.
25066 2004-05-10 Robert Dewar <dewar@gnat.com>
25068 * gnat_ugn.texi: Document that for config pragma files, the maximum
25069 line length is always 32767.
25071 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
25072 literals is now allowed.
25074 * gnat-style.texi: Remove statement about splitting long lines before
25075 an operator rather than after, since we do not follow this rule at all.
25076 Clarify rule (really lack of rule) for spaces around exponentiation
25078 * sem_elim.adb: Allow concatenation of string literals as well as a
25079 single string literal for pragma arguments.
25081 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
25083 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
25084 written for append case.
25086 * frontend.adb: Changes to avoid checking max line length in config
25089 * g-os_lib.ads: Minor reformatting
25091 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
25092 wrong in any case. Instead use standard value. Noticed during code
25095 * opt.ads (Max_Line_Length): New field, used to implement removal of
25096 limitation on length of lines when scanning config pragma files.
25098 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
25099 makeutl.ads, makeutl.adb: Minor reformatting
25101 * scn.adb: Do not check line length while scanning config pragma files
25102 Do not check line length while scanning out license information
25104 * scng.adb: Changes to avoid line length checks while parsing config
25107 2004-05-10 GNAT Script <nobody@gnat.com>
25109 * Make-lang.in: Makefile automatically updated
25111 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
25113 * osint.adb (Find_Program_Name): Fix handling of VMS version
25116 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
25118 * g-os_lib.ads (Invalid_Time): New constant
25120 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
25121 return OS_Time instead of time_t to match what is imported by Ada.
25122 Now return -1 if the file doesn't exist, instead of a random value
25124 2004-05-05 Robert Dewar <dewar@gnat.com>
25126 * usage.adb: Add line for -gnatR?s switch
25128 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
25130 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
25131 and for Match (Data_First, Data_last)
25133 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
25134 written when we are dealing with multi-unit files.
25136 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
25138 * Makefile.in: Remove unused targets and variables.
25140 2004-05-05 Vincent Celier <celier@gnat.com>
25142 * switch-m.adb: New gnatmake switch -eI
25144 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
25145 of new gnatmake switch -eInnn.
25147 * makegpr.adb: Take into account new parameters Index and Src_Index in
25150 * clean.adb: Implement support for multi-unit sources, including new
25153 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
25156 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
25157 (Extract_From_Q): New out parameter Index
25158 (Mark, Is_Marked): Subprograms moved to Makeutl
25159 (Switches_Of): New parameter Source_Index
25160 (Add_Switch): New parameter Index
25161 (Check): New parameter Source_Index
25162 (Collect_Arguments): New parameter Source_Index
25163 (Collect_Arguments_And_Compile): New parameter Source_Index
25164 (Compile): New parameter Source_Index
25165 Put subprograms in alphabetical order
25166 Add support for multi-source sources, including in project files.
25168 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
25169 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
25172 * makeusg.adb: New gnatmake switch -eInnn
25174 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
25177 * opt.ads (Main_Index): New variable, defaulted to 0.
25179 * osint.ads, osinte.adb (Add_File): New parameter Index
25180 (Current_Source_Index): New function
25182 * prj.adb: Take into account new components Index and Src_Index
25184 * prj.ads (String_Element): New component Index
25185 (Variable_Value): New component Index
25186 (Array_Element): New component Src_Index
25188 * prj-attr.adb: Indicate that optional index may be specified for
25189 attributes Main, Executable, Spec, Body and some of Switches.
25191 * prj-attr.ads (Attribute_Kind): New values for optional indexes
25192 (Attribute_Record): New component Optional_Index
25194 * prj-com.ads (File_Name_Data): New component Index
25196 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
25198 * prj-env.adb (Put): Output optional index
25200 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
25201 attributes Spec and Body.
25203 * prj-nmsc.adb: Process optional indexes
25205 * prj-pp.adb: Ouput "at" for optional indexes
25207 * prj-proc.adb: Take into account optional indexes
25209 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
25210 Optional_Index. For string literal,
25211 process optional index when Optional_Index is True.
25212 (Parse_Expresion): New Boolean parameter Optional_Index
25214 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
25215 (Set_Source_Index_Of): New procedure
25217 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
25220 * prj-util.ads (Executable_Of): New parameter Index
25221 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
25222 New parameter Src_Index, defaulted to 0.
25224 2004-05-05 Ed Schonberg <schonberg@gnat.com>
25227 * sem_ch3.adb (Access_Definition): If this is an access parameter
25228 whose designated type is imported through a limited_with clause, do
25229 not add the enclosing subprogram to the list of private dependents of
25232 2004-05-05 Ed Schonberg <schonberg@gnat.com>
25235 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
25236 a limited_with clause, and the other is its non-limited view.
25238 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
25240 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
25242 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
25243 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
25244 Stand.Boolean_Literals to produce references to entities
25245 Standard_False and Standard_True from compile-time computed boolean
25248 * stand.ads (Boolean_Literals): New variable, provides the entity
25249 values for False and True, for use by the expander.
25251 2004-05-05 Doug Rupp <rupp@gnat.com>
25253 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
25254 5vinmaop.adb: Unchecked convert Short_Address vice Address
25256 * adaint.c, raise.c: Caste CRTL function return value
25257 to avoid gcc error on 32/64 bit IVMS.
25259 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
25262 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
25264 * 5qsystem.ads (Address): Declare as Long_Integer
25265 (Short_Address): Declare as 32 bit subtype of Address
25266 Declare abstract address operations to avoid gratuitous ambiguities.
25268 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
25270 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
25271 instead of the old Boolean_Entry_Barriers.
25272 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
25274 2004-05-05 GNAT Script <nobody@gnat.com>
25276 * Make-lang.in: Makefile automatically updated
25278 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
25280 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
25282 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
25285 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
25286 alone. Replacing object references by literals is inappropriate in a
25287 so low level context.
25289 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
25291 * a-exexpr.adb: Add comments
25293 2004-05-03 Joel Brobecker <brobecker@gnat.com>
25295 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
25296 declare the Ancestor_Tags array in Type_Specific_Data with a small size
25297 without risking a bounds check error when accessing one of its
25299 (Type_Specific_Data): Define Ancestor_Tags as a small array.
25300 This prevents us from hitting a limitation during the debug info
25301 generation when using stabs.
25303 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
25305 This prevents us from hitting a limitation during the debug info
25306 generation when using stabs.
25308 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
25310 lang-specs.h: Remove -gnatz* from specs.
25312 2004-05-03 Vincent Celier <celier@gnat.com>
25314 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
25316 * Make-lang.in, Makefile.in: Add gprmake
25318 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
25320 * sem_aggr.adb: Fix typo in comment.
25322 2004-05-03 Robert Dewar <dewar@gnat.com>
25324 * make.adb: Minor reformatting
25326 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
25328 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
25329 so that it works when address is not a private type.
25331 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
25332 properly with rewritten unchecked conversions. This prevents
25333 order-of-elaboration issues that can otherwise arise.
25334 (Minimum_Size): Don't check size of access types under VMS
25336 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
25337 interpretations of integer literals as type System.Address.
25339 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
25340 (Is_Descendent_Of): New function
25342 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
25344 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
25345 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
25346 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
25348 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
25349 of the old Max_Entry_Queue_Depth.
25351 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
25352 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
25353 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
25355 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
25356 New entry for proper handling of Max_Entry_Queue_Depth.
25357 New entry for proper handling of No_Dynamic_Interrupts.
25359 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
25360 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
25361 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
25362 the GNAT specific restriction Max_Entry_Queue_Depth.
25363 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
25364 the GNAT specific restriction No_Dynamic_Interrupts.
25366 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
25367 instead of the old Boolean_Entry_Barriers.
25368 Use the new restriction No_Dynamic_Attachment instead of the old
25369 No_Dynamic_Interrupts.
25371 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
25372 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
25374 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
25375 of the old Max_Entry_Queue_Depth.
25377 2004-05-03 GNAT Script <nobody@gnat.com>
25379 * Make-lang.in: Makefile automatically updated
25381 2004-04-29 Ed Schonberg <schonberg@gnat.com>
25383 * checks.adb (Enable_Range_Check): If the prefix of an index component
25384 is an access to an unconstrained array, perform check unconditionally.
25386 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25388 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
25391 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
25393 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
25394 alternate stack setting. There was no support for the tasking cases
25395 and the changes eventually caused a number of side-effect failures in
25396 the non-tasking case too.
25398 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
25400 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
25403 2004-04-29 Vincent Celier <celier@gnat.com>
25405 * make.adb (Gnatmake): Increase max size of argument array for
25406 gnatbind for the potential addition of -F.
25407 If there are Stand-Alone Library projects, invoke gnatbind with -F to
25408 be sure that elaboration flags will be checked.
25410 * switch-c.adb: Correct call to Scan_Pos for -gnateI
25412 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
25414 * sem_warn.adb (Check_References): Move '<access-variable> may be
25415 null' warning out of under Warn_On_No_Value_Assigned.
25417 2004-04-29 Ed Falis <falis@gnat.com>
25419 * gnat_ugn.texi: Fixed texi error
25421 2004-04-29 Robert Dewar <dewar@gnat.com>
25423 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
25424 abstract operations if they come from predefined files.
25426 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
25429 * s-addope.adb: Correct obvious error in mod function
25431 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
25433 * Makefile.in: Add target pairs for powerpc darwin*
25436 * a-intnam-darwin.ads, s-osinte-darwin.adb,
25437 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
25439 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
25441 * Makefile.in: Add target macro definitions for s390*-linux*.
25442 * system-linux-s390.ads: New file.
25443 * system-linux-s390x.ads: New file.
25445 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
25447 * gnat_ugn.texi: Correct argument to @setfilename.
25449 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
25451 * a-exexpr.adb (Unwind_Word): New data type.
25452 (Unwind_Exception): Use it as type of Private1 and Private2.
25454 * raise.c (db_action_for): Fix debug printf.
25456 2004-04-27 Ed Schonberg <schonberg@gnat.com>
25458 * a-wtmoio.ads: Formal type must be a modular type, not a signed
25461 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25463 * decl.c (gnat_to_gnu_entity, case object): Call
25464 __builtin_update_setjmp_buf.
25466 * gigi.h (update_setjmp_buf): Deleted.
25467 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
25469 * misc.c: (update_setjmp_buf): Deleted.
25471 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
25472 around block of RTL.
25474 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
25476 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
25478 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
25479 subprogram for which no pragma All_Calls_Remote applies, store the
25480 address of the real subprogram in the underlying record type, so local
25481 dereferences do not go through the PCS.
25483 2004-04-26 Robert Dewar <dewar@gnat.com>
25485 * i-c.ads: Add some type qualifications to avoid ambiguities when
25486 compiling with s-auxdec.ads and a non-private address type.
25488 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
25490 * Makefile.rtl: Fix error in previous check-in:
25491 Add s-addope.o to non tasking object list (rather than tasking object
25494 2004-04-26 Javier Miranda <miranda@gnat.com>
25496 * sem_aggr.adb: Fix typo in comments
25497 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
25498 Required to check the null-exclusion attribute.
25500 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
25501 case of anonymous access types in record and array components. For a
25502 component definition the level is the same of the enclosing composite
25505 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
25506 that are anonymous access types the level of accessibility depends on
25507 the enclosing type declaration. In order to have this information, set
25508 the scope of the anonymous access type to the enclosing record type
25510 (Array_Type_Declaration): In case of components that are anonymous
25511 access types the level of accessibility depends on the enclosing type
25512 declaration. In order to have this information, set the scope of the
25513 anonymous access type to the enclosing array type declaration.
25515 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
25518 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
25519 renaming of anonymous access-to-constant types allowed if and only if
25520 the renamed object is access-to-constant.
25522 * sem_util.adb (Type_Access_Level): In case of anonymous access types
25523 that are component_definition or discriminants of a nonlimited type,
25524 the level is the same as that of the enclosing component type.
25526 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
25528 * sem_elim.adb: Some minor code reorganization from code reading. Fix
25529 misprint in the function name (File_Name_Match).
25531 2004-04-23 Laurent GUERBY <laurent@guerby.net>
25533 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
25536 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25538 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
25540 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
25542 * adaint.c (__gnat_try_lock): No longer requires that the parent
25543 directory be writable, the directory itself is enough.
25544 (gnat_is_absolute_path): Change profile, so that the call from
25545 GNAT.OS_Lib can be made more efficient.
25547 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
25548 from GNAT.OS_Lib can be made more efficient.
25550 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
25551 one copy of the file name. Found by code reading.
25553 2004-04-23 Vincent Celier <celier@gnat.com>
25555 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
25556 Correct documentation on gnatmake switches transmitted to the compiler
25558 * ali.ads: Minor comment fix
25560 2004-04-23 Javier Miranda <miranda@gnat.com>
25562 * sem_ch6.adb: (Confirming Types): Code cleanup
25564 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
25565 subprogram types: E_Anonymous_Access_Subprogram_Type and
25566 E_Anonymous_Access_Protected_Subprogram_Type.
25568 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
25570 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
25571 whether a pragma All_Calls_Remote applies to the subprogram on which
25573 No functional change is introduced by this revision; the new parameter
25574 will be used to allow calls to local RCI subprograms to be optimized
25575 to not use the PCS in the case where no pragma All_Calls_Remote applies,
25576 as is already done in the PolyORB implementation of the DSA.
25578 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
25579 whether a pragma All_Calls_Remote applies to the subprogram on which
25581 No functional change is introduced by this revision; the new parameter
25582 will be used to allow calls to local RCI subprograms to be optimized
25583 to not use the PCS in the case where no pragma All_Calls_Remote applies,
25584 as is already done in the PolyORB implementation of the DSA.
25586 2004-04-23 Robert Dewar <dewar@gnat.com>
25588 * Makefile.rtl: Add entry for s-addope.o in run time library list
25589 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
25590 * s-addope.ads, s-addope.adb: New files.
25592 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
25593 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
25594 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
25595 System.Address to be non-private and signed.
25597 * sem_elim.adb: Minor reformatting (fairly extensive)
25598 Some minor code reorganization from code reading
25599 Add a couple of ??? comments
25601 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25603 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
25604 (tree_transform, case N_If_Statement): Remove non-determinism.
25606 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
25608 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
25610 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
25611 Eliminate' section.
25613 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
25614 no longer used as a parameter name for Eliminate pragma).
25616 2004-04-22 Laurent GUERBY <laurent@guerby.net>
25618 PR optimization/14984
25619 PR optimization/14985
25620 * trans.c (gigi): Fix non determinism leading to bootstrap
25621 comparison failures.
25623 2004-04-21 Pascal Obry <obry@gnat.com>
25625 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
25626 passed to spawnvp() to properly handle program pathname with spaces on
25629 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
25631 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
25632 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
25633 unlocked in case of exceptions.
25635 2004-04-21 Joel Brobecker <brobecker@gnat.com>
25637 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
25638 This function does not exist anymore.
25640 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
25642 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
25644 * link.c: Move variables to the __gnat name space.
25646 * Makefile.in: list link.o explicitly when needed.
25648 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
25650 2004-04-21 Javier Miranda <miranda@gnat.com>
25652 * einfo.adb (Original_Access_Type): New subprogram
25653 (Set_Original_Access_Type): New subprogram
25654 (Write_Field21_Name): Write the name of the new field
25656 * einfo.ads (Original_Access_Type): New field present in access to
25658 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
25659 E_Anonymous_Access_Protected_Subprogram_Type.
25661 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
25664 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
25665 to anonymous access to subprogram types.
25667 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
25668 to subprogram types.
25670 * sem_ch3.adb (Access_Definition): Complete decoration of entities
25671 corresponding to anonymous access to subprogram types.
25672 (Analyze_Component_Declaration): Add new actual to the call to
25673 subprogram replace_anonymous_access_to_protected_subprogram.
25674 (Array_Type_Declaration): Add new actual to the call to subprogram
25675 replace_anonymous_access_to_protected_subprogram.
25676 (Process_Discriminants): Add new actual to the call to subprogram
25677 replace_anonymous_access_to_protected_subprogram.
25678 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
25680 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
25683 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
25684 access to subprogram types.
25686 * sem_util.adb (Has_Declarations): Addition of package_specification
25689 2004-04-21 Ed Schonberg <schonberg@gnat.com>
25691 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
25692 inlined flags to renamed entity only if in current unit.
25694 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
25696 * s-parint.ads: Add DSA implementation marker.
25698 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
25699 value of System.Partition_Interface.DSA_Implementation to determine
25700 what version of the distributed systems annex is available (no
25701 implementation, GLADE, or PolyORB).
25703 2004-04-21 Joel Brobecker <brobecker@gnat.com>
25705 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
25707 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25709 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
25710 with new type if alias sets differ.
25711 Fixes ACATS c41103b.
25713 2004-04-21 Vincent Celier <celier@gnat.com>
25715 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
25716 Add array Lang_Args for the language specific compiling argument
25719 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
25721 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
25723 * gnat_rm.texi: Update the descripton of the Eliminate pragma
25724 according to the recent changes in the format of the parameters of the
25725 pragma (replacing Homonym_Number with Source_Location).
25727 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
25729 * 5isystem.ads: Removed, unused.
25731 * gnat_rm.texi: Redo 1.13 change.
25733 2004-04-19 Robert Dewar <dewar@gnat.com>
25735 * s-stoele.ads: Clean up definition of Storage_Offset (the new
25736 definition is cleaner, avoids the kludge of explicit Standard operator
25737 references, and also is consistent with a visible System.Address with
25738 no visible operations.
25740 * s-geveop.adb: Add declarations to avoid assumption of visible
25741 operations on type System.Address (since these might not be available
25742 if Address is a non-private type for which the operations
25743 are made abstract).
25745 * sem_eval.adb: Minor reformatting
25747 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
25748 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
25749 reformatting (new function spec format).
25751 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
25752 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
25753 s-caun64.adb: Add declarations to avoid assumption of visible
25754 operations on type System.Address (since these might not be available
25755 if Address is a non-private type for which the operations are made
25758 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
25760 * exp_intr.adb: Minor comment update
25762 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
25764 * 5omastop.adb: Add declarations to avoid assumption of visible
25765 operations on type System.Address (since these might not be available
25766 if Address is a non-private type for which the operations
25767 are made abstract).
25769 2004-04-19 Vincent Celier <celier@gnat.com>
25771 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
25773 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
25776 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
25778 Call Check with Process_Languages.
25779 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
25780 with Process_Languages.
25781 (Recursive_Check): New Boolean parameter Process_Languages. Call
25782 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
25785 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
25787 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
25788 parameter Ada_Main, defaulted to True.
25789 Check for Ada specific characteristics only when Ada_Main is True.
25791 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
25793 * prj.adb: (Project_Empty): Add new Project_Data components.
25795 * prj.ads: New types and tables for non Ada languages.
25796 (Project_Data): New components Languages, Impl_Suffixes,
25797 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
25798 Include_Path, Include_Data_Set.
25800 * prj-env.ads, prj-env.adb: Minor reformatting
25802 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
25803 Put subprograms in alphabetical order
25805 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
25806 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
25809 * mlib-prj.adb: Back out modification in last version, as they are
25811 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
25813 * make.adb: (Mains): Moved to package Makeutl
25814 (Linker_Opts): Moved to package Makeutl
25815 (Is_External_Assignment): Moved to package Makeutl
25816 (Test_If_Relative_Path): Moved to package Makeutl
25817 (Gnatmake): Move sorting of linker options to function
25818 Makeutl.Linker_Options_Switches.
25820 * makeutl.ads, makeutl.adb: New files.
25822 * Makefile.in: Add makeutl.o to the object files for gnatmake
25824 * makeusg.adb: Add line for new switch -eL.
25826 * gnatls.adb (Image): New function.
25827 (Output_Unit): If in verbose mode, output the list of restrictions
25828 specified by pragmas Restrictions.
25830 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
25833 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
25834 needed, to put it in the range 1970 (included) - 2026 (excluded).
25835 (Time_Of): Do not shift Unix_Min_Year (1970).
25836 Shift the date by multiple of 56 years, if needed, to put it in the
25837 range 1970 (included) - 2026 (excluded).
25839 * adaint.h, adaint.c (__gnat_set_executable): New function.
25841 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25843 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
25844 and pop GC context.
25845 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
25846 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
25847 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
25848 (tree_transform, case N_Code_Statement): Likewise.
25849 (gnat_expand_stmt, case LABEL_STMT): Don't look at
25850 LABEL_STMT_FIRST_IN_EH.
25851 (gnat_expand_stmt, case ASM_STMT): New case.
25853 * utils2.c (build_unary_op): Properly set TREE_READONLY of
25854 UNCONSTRAINED_ARRAY_REF.
25856 * utils.c (poplevel): Temporarily push/pop GC context around inline
25857 function expansion.
25859 * decl.c (maybe_variable): Properly set TREE_READONLY of
25860 UNCONSTRAINED_ARRAY_REF.
25861 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
25863 * ada-tree.def: (ASM_STMT): New.
25865 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
25866 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
25867 ASM_STMT_INPUT): New.
25868 (ASM_STMT_CLOBBER): Likewise.
25870 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
25872 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
25873 general rcheck mechanism to raise Program_Error for E.4(18), instead
25874 of a custom raiser in System.Partition_Interface.
25875 Part of general cleanup work before PolyORB integration.
25877 * snames.ads, snames.adb: Add new runtime library entities and names
25880 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
25882 (Build_Subprogram_Id): New subprogram provided by exp_dist
25883 Code reorganisation in preparation for PolyORB integration.
25885 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
25887 (Build_Subprogram_Id): New subprogram provided by exp_dist
25889 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
25890 actual parameter types for call to dereference of an
25891 access-to-subprogram type.
25893 * rtsfind.ads: Add new runtime library entities and names for PolyORB
25896 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
25897 instead, which has the same behaviour here since we never pass it a
25900 * link.c (run_path_option, Solaris case): Use -Wl, as for other
25903 * Makefile.in: adjust object file lists for gnatlink and gnatmake
25904 to account for new dependency upon Interfaces.C.Strings + link.o
25905 For x86 FreeBSD, use 86numaux.
25907 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
25908 from Mlib.Tgt to Mlib.
25910 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
25911 target-independent.
25913 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
25914 target-specific versions of this subprogram, now implemented as a
25915 target-independent function in Mlib.
25917 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
25918 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
25919 (Linker_Library_Path_Option): Remove target-specific versions of this
25920 subprogram, now implemented as a target-independent function in Mlib.
25922 * atree.adb: (Allocate_Initialize_Node): New subprogram.
25923 Factors out node table slots allocation.
25924 (Fix_Parents): New subprogram.
25925 Encapsulate the pattern of fixing up parent pointers for syntactic
25926 children of a rewritten node.
25927 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
25928 (Rewrite): Use New_Copy when creating saved copy of original node.
25929 (Replace): Use Copy_Node to copy nodes.
25931 2004-04-19 Javier Miranda <miranda@gnat.com>
25933 * sprint.adb (Sprint_Node_Actual): Give support to the new
25934 Access_To_Subprogram node available in Access_Definition nodes. In
25935 addition, give support to the AI-231 node fields: null-exclusion,
25936 all-present, constant-present.
25938 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
25940 * sinfo.ads, sinfo.adb:
25941 New field Access_To_Subprogram_Definition in Access_Definition nodes
25943 * sem_ch6.adb (Process_Formals): Move here the code that creates and
25944 decorates internal subtype declaration corresponding to the
25945 null-excluding formal. This code was previously in Set_Actual_Subtypes.
25946 In addition, carry out some code cleanup on this code. In case of
25947 access to protected subprogram call
25948 Replace_Anonymous_Access_To_Protected_Subprogram.
25949 (Set_Actual_Subtypes): Code cleanup.
25951 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
25952 Find_Type in case of anonymous access renamings. Add warning in case of
25953 null-excluding attribute used in anonymous access renaming.
25955 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
25958 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
25960 (Access_Definition): In case of anonymous access to subprograms call
25961 the corresponding semantic routine to decorate the node.
25962 (Access_Subprogram_Declaration): Addition of some comments indicating
25963 some code that probably should be added here. Detected by comparison
25964 with the access_definition subprogram.
25965 (Analyze_Component_Declaration): In case of access to protected
25966 subprogram call Replace_Anonymous_Access_To_Protected.
25967 (Array_Type_Declaration): In case of access to protected subprogram call
25968 Replace_Anonymous_Access_To_Protected_Subprogram.
25969 (Process_Discriminants): In case of access to protected subprogram call
25970 Replace_Anonymous_Access_To_Protected_Subprogram.
25972 * par.adb (P_Access_Definition): New formal that indicates if the
25973 null-exclusion part was present.
25974 (P_Access_Type_Definition): New formal that indicates if the caller has
25975 already parsed the null-excluding part.
25977 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
25978 (P_Identifier_Declarations): Code cleanup and give support to renamings
25979 of anonymous access to subprogram types.
25980 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
25981 (P_Array_Type_Definition): Give support to AI-254.
25982 (P_Component_Items): Give support to AI-254.
25983 (P_Access_Definition): New formal that indicates if the header was
25984 already parsed by the caller.
25985 (P_Access_Type_Definition): New formal that indicates if the caller has
25986 already parsed the null-excluding part.
25988 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
25989 call to P_Access_Definition.
25991 2004-04-19 Geert Bosch <bosch@gnat.com>
25993 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
25994 the delicate semantics of floating-point to integer conversion.
25995 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
25997 * eval_fat.adb (Machine_Mantissa): Moved to spec.
25998 (Machine_Radix): New function.
26000 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
26002 (Machine_Radix): New function also for use in conversion checks.
26004 2004-04-19 Ed Schonberg <schonberg@gnat.com>
26006 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
26008 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
26009 to decorate the access-to-protected subprogram and the equivalent type.
26011 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
26012 to anonymous access to subprogram types.
26014 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
26015 constant-folding, for legality checks in contexts that require an RM
26018 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
26019 temporary but stack checking is not enabled, increment serial number
26020 to so that symbol generation is consistent with and without stack
26023 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
26024 independent on whether stack checking is enabled, caller must check
26025 the corresponding flag.
26027 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
26029 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
26030 parent if it has discriminants.
26031 (Build_Derived_Private_Type): Constructed full view does
26032 not come from source.
26033 (Process_Discriminants): Default discriminants on a tagged type are
26034 legal if this is the internal completion of a private untagged
26037 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
26038 no constraint checks, because it corresponds to an existing object.
26040 * sem_prag.adb (Process_Convention): Pragma applies
26041 only to subprograms in the same declarative part, i.e. the same unit,
26042 not the same scope.
26044 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
26045 ignore type mismatch on a numeric conversion if expression comes from
26048 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
26050 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
26051 Homonym_Number parameter, add processing for Source_Location parameter
26053 (Check_Eliminated): Remove the check for homonym numbers, add the check
26054 for source location traces.
26056 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
26057 with Arg_Source_Location corresponding to the changes in the format of
26060 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
26061 Eliminate pragma corresponding to the changes in the format of the
26062 pragma: Homonym_Number is replaced with Source_Location, two ways of
26063 distinguishing homonyms are mutially-exclusive.
26065 2004-04-19 Joel Brobecker <brobecker@gnat.com>
26067 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
26069 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
26070 No_Dollar_In_Label, no longer necessary, as it is always True.
26071 (Strip_Suffixes): Likewise.
26073 2004-04-19 Gary Dismukes <dismukes@gnat.com>
26075 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
26076 modulus for compatibility with size clause on targets with 16-bit
26079 * layout.adb (Discrimify): In the case of private types, set Vtyp to
26080 full type to fix type mismatches on calls to size functions for
26081 discriminant-dependent array components.
26083 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
26085 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
26088 2004-04-19 Pascal Obry <obry@gnat.com>
26090 * mdll-utl.adb (Locate): New version is idempotent.
26092 2004-04-17 Laurent Guerby <laurent@guerby.net>
26094 PR ada/14988 (partial)
26095 * impunit.adb: Fix typo.
26097 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
26099 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
26100 and install-rts-cert targets. Remove all gnatlib and gnattools
26101 targets and all other rts-* targets (moved to libada). Remove (now)
26102 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
26103 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
26105 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26107 * trans.c (tree_transform): Shortcut returning error_mark_node for
26108 statements in annotate_only_mode.
26109 (tree_transform, case N_Label, case N_Return_Statement,
26110 N_Goto_Statement): Make statement tree instead of generating code.
26111 (tree_transform, case N_Assignment_Statement): No longer check
26112 type_annotate_only.
26113 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
26115 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
26117 (gnat_to_gnu): Collect any RTL generated and deal with it.
26118 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
26119 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
26120 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
26122 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
26124 * ada-tree.def (EXPR_STMT): Fix typo in name.
26125 (BLOCK_STMT, IF_STMT): New nodes.
26127 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
26128 LABEL_STMT_FIRST_IN_EH): New macros.
26129 (RETURN_STMT_EXPR): Likewise.
26131 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
26132 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
26134 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
26136 * atree.ads: Correct documentation on extended nodes.
26138 * link.c: Set run_path_option for FreeBSD.
26140 2004-04-08 Vincent Celier <celier@gnat.com>
26142 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
26143 one of the ALI file, do not link with DEC lib.
26145 * par.adb Remove the last two characters ("%s" or "%b") when checking
26146 if a language defined unit may be recompiled.
26148 2004-04-08 Ed Schonberg <schonberg@gnat.com>
26150 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
26151 removal of abstract operation leaves no possible interpretation for
26154 * sem_eval.adb (Eval_Qualified_Expression): Use
26155 Set_Raises_Constraint_Error on node when needed, so that it does not
26156 get optimized away by subsequent optimizations.
26158 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
26159 operands even when they are not wrapped in a type conversion.
26161 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
26163 * sem_prag.adb (Set_Exported): Warn about making static as result of
26164 export only when the export is coming from source. This may be not
26165 be true e.g. on VMS where we expand export pragmas for exception codes
26166 together with imported or exported exceptions, and we don't want the
26167 user to be warned about something he didn't write.
26169 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
26171 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
26172 duplication between normal entities and those declared as renamings.
26173 No functional change.
26175 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
26176 inline functions returning an unconstrained result.
26178 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
26180 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
26181 conform to what other front-ends do.
26183 2004-04-08 Doug Rupp <rupp@gnat.com>
26185 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
26188 2004-04-06 Pascal Obry <obry@gnat.com>
26190 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
26192 * osint.adb (Program_Name): Do not look past a directory separator.
26194 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
26196 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
26198 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
26199 requirement for preserving a copy of the original assignment node.
26201 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
26203 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
26205 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
26208 2004-04-06 Ed Schonberg <schonberg@gnat.com>
26210 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
26211 operator calls in functional notation, and apply
26212 Universal_Interpretation to operands, not to their type.
26214 2004-04-06 Robert Dewar <dewar@gnat.com>
26216 * 5wdirval.adb: Minor reformatting
26218 2004-04-06 Ed Falis <falis@gnat.com>
26220 * gnat_rm.texi: Improve a reference to the GCC manual
26222 2004-04-05 Vincent Celier <celier@gnat.com>
26224 * adaint.h, adaint.c: Add function __gnat_named_file_length
26226 * impunit.adb: Add Ada.Directories to the list
26228 * Makefile.in: Add VMS and Windows versions of
26229 Ada.Directories.Validity package body.
26231 * Makefile.rtl: Add a-direct and a-dirval
26233 * mlib-tgt.ads: Minor comment update.
26235 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
26236 a-direct.ads, a-direct.adb: New files.
26238 2004-04-05 Vincent Celier <celier@gnat.com>
26241 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
26242 just to the compiler.
26244 2004-04-05 Robert Dewar <dewar@gnat.com>
26246 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
26247 returned string is 1.
26249 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
26251 * eval_fat.ads: Minor reformatting
26253 * g-curexc.ads: Document that lower bound of returned string values
26256 * gnatlink.adb: Add ??? comment for previous change
26257 (need to document why this is VMS specific)
26259 * s-stoele.ads: Minor reformatting
26261 * tbuild.ads: Minor reformatting throughout (new function specs)
26263 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
26266 * scng.adb: Minor reformatting
26268 2004-04-05 Geert Bosch <bosch@gnat.com>
26270 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
26271 (Leading_Part): Still perform truncation to machine number if the
26272 specified radix_digits is greater or equal to machine_mantissa.
26274 2004-04-05 Javier Miranda <miranda@gnat.com>
26276 * par-ch3.adb: Complete documentation of previous change
26277 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
26278 (aliased must appear before constant).
26280 * par-ch4.adb: Complete documentation of previous change.
26282 * par-ch6.adb: Complete documentation of previous change.
26284 * sinfo.ads: Fix typo in commment.
26286 2004-04-05 Ed Schonberg <schonberg@gnat.com>
26288 * sem_ch3.adb (Inherit_Components): If derived type is private and has
26289 stored discriminants, use its discriminants to constrain parent type,
26290 as is done for non-private derived record types.
26292 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
26293 Ada 2005 AI-310: an abstract non-dispatching operation is not a
26294 candidate interpretation in an overloaded call.
26296 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
26297 expression is Null and target type is not an access type (e.g. a
26298 non-private address type).
26300 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
26302 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
26303 statement whose right-hand side is an inlined call, save a copy of the
26304 original assignment subtree to preserve enough consistency for
26305 Analyze_Assignment to proceed.
26307 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
26308 complete assignment subtree which is now unnecessary, as the expansion
26309 of inlined call has been improved to preserve a consistent assignment
26310 tree. Note_Possible_Modification must be called only
26311 after checks have been applied, or else unnecessary checks will
26314 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
26315 of explicit dereferences that do not Come_From_Source:
26316 - be selective on cases where we must go back to the dereferenced
26317 pointer (an assignment to an implicit dereference must not be
26318 recorded as modifying the pointer);
26319 - do not rely on Original_Node being present (Analyze_Assignment
26320 calls Note_Possible_Modification on a copied tree).
26322 * sem_warn.adb (Check_References): When an unset reference to a pointer
26323 that is never assigned is encountered, prefer '<pointer> may be null'
26324 warning over '<pointer> is never assigned a value'.
26326 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
26328 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
26331 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
26333 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
26334 libexc. We currently don't reference anything in this library and
26335 linking it in triggers linker warnings we don't want to see.
26337 * init.c: Update comments.
26339 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26341 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
26342 * utils.c (create_field_decl): Likewise.
26343 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
26345 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
26347 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
26348 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
26349 Add info directory entry and category.
26351 2004-04-02 Jan Hubicka <jh@suse.cz>
26353 * utils.c: Include function.h
26354 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
26356 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
26359 * Make-lang.in: Clean up generation of documentation
26361 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
26363 * xgnatug.adb: Removed, replaced by xgnatugn.adb
26365 * xgnatugn.adb: Replaces xgnatug.adb
26367 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
26369 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
26371 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
26372 gnat_ug_wnt.texi: Removed.
26374 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
26376 * utils2.c: Update copyright notice.
26378 2004-04-01 Robert Dewar <dewar@gnat.com>
26380 * checks.adb: Minor reformatting throughout
26381 Note that prev checkin added RM reference to alignment warning
26383 2004-04-01 Ed Schonberg <schonberg@gnat.com>
26385 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
26386 non-static when building aggregate for bit-packed array.
26388 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
26389 function call that is itself the actual in a procedure call, build
26392 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
26393 a string literal, create a temporary for it, constant folding only
26394 handles scalars here.
26396 2004-04-01 Vincent Celier <celier@gnat.com>
26398 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
26399 Error_Msg_SP): New empty procedures to instantiate the Scanner.
26400 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
26402 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
26403 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
26404 and get the checksum.
26406 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
26408 Increase the Marking_Label at the end of the Multiple_Main_Loop,
26409 instead of at the beginning.
26411 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
26413 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
26416 * osint.ads (Multi_Unit_Index_Character): New Character global variable
26418 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
26421 * par.adb: Remove test on file name to detect language defined units.
26422 Add test on unit name, after parsing, to detect language defined units
26423 that are not compiled with -gnatg (except System.RPC and its children)
26425 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
26426 following units without style checking.
26428 * switch-c.adb: Change -gnatC to -gnateI
26430 * usage.adb: Document new switch -gnateInnn
26432 * scng.adb (Accumulate_Token_Checksum): New procedure
26433 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
26434 word or literal number.
26435 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
26438 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
26441 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
26442 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
26443 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
26444 5vtpopde.adb: Add missing 'constant' keywords.
26446 2004-04-01 Javier Miranda <miranda@gnat.com>
26448 * par-ch4.adb: (P_Allocator): Code cleanup
26450 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
26453 * sinfo.ads: Complete documentation of previous change
26455 2004-04-01 Pascal Obry <obry@gnat.com>
26457 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
26458 only on VMS. This special handling was done because an old GNU/ld bug
26459 on Windows which has been fixed.
26461 2004-04-01 GNAT Script <nobody@gnat.com>
26463 * Make-lang.in: Makefile automatically updated
26465 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26467 * decl.c (gnat_to_gnu_entity, make_type_from_size):
26468 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
26469 * trans.c (tree_transform, convert_with_check): Likewise.
26470 * utils.c (gnat_signed_or_unsigned_type): Likewise.
26471 (build_vms_descriptor, unchecked_convert): Likewise.
26472 * utils2.c (nonbinary_modular_operation): Likewise.
26474 2004-03-29 Javier Miranda <miranda@gnat.com>
26476 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
26477 (Install_Null_Excluding_Check): Local subprogram that determines whether
26478 an access node requires a runtime access check and if so inserts the
26479 appropriate run-time check.
26480 (Apply_Access_Check): Call Install_Null_Excluding check if required
26481 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
26483 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
26485 * einfo.ads: Fix typo in comment
26487 * exp_ch3.adb (Build_Assignment): Generate conversion to the
26488 null-excluding type to force the corresponding run-time check.
26489 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
26490 type to force the corresponding run-time check.
26492 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
26493 the null-excluding type to force the corresponding run-time check.
26495 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
26496 case of access types unless they have the null-excluding attribute.
26498 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
26501 * exp_util.ads: Fix typo in comment
26503 * par.adb (P_Null_Exclusion): New subprogram
26504 (P_Subtype_Indication): New formal that indicates if the null-excluding
26505 part has been scanned-out and it was present
26507 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
26509 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
26510 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
26511 type to force the corresponding run-time check
26512 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
26514 (Resolve_Array_Aggregate): Carry out some static checks
26515 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
26517 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
26518 attribute must be set only if specified by means of the null-excluding
26519 part. In addition, we must also propagate the access-constant attribute
26521 (Access_Subprogram_Declaration, Access_Type_Declaration,
26522 Analyze_Component_Declaration, Analyze_Object_Declaration,
26523 Array_Type_Declaration, Process_Discriminants,
26524 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
26525 and carry out some static checks.
26526 (Build_Derived_Access_Type): Set the null-excluding attribute
26527 (Derived_Type_Declaration, Process_Subtype): Carry out some static
26530 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
26532 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
26534 * sem_ch6.adb (Process_Formals): Carry out some static checks.
26535 (Set_Actual_Subtypes): Generate null-excluding subtype if the
26536 null-excluding part was present; it is not required to be done here in
26537 case of anonymous access types.
26538 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
26541 * sem_res.adb (Resolve_Actuals): Carry out some static check
26542 (Resolve_Null): Allow null in anonymous access
26544 * sinfo.adb: New subprogram Null_Exclusion_Present
26545 All_Present and Constant_Present available on access_definition nodes
26547 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
26548 object_declaration, derived_type_definition, component_definition,
26549 discriminant_specification, access_to_object_definition,
26550 access_function_definition, allocator, access_procedure_definition,
26551 access_definition, parameter_specification, All_Present and
26552 Constant_Present flags available on access_definition nodes.
26554 2004-03-29 Robert Dewar <dewar@gnat.com>
26556 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
26557 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
26558 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
26559 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
26560 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
26561 sem_prag.adb: Updates to handle multiple units/file
26563 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
26565 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
26566 sem_util.adb: Minor reformatting
26568 * sem_ch12.adb: Add comment for previous change
26570 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
26572 * osint.adb (Executable_Prefix): Set Exec_Name to the current
26573 executable name when not initialized. Otherwise, use its current value.
26575 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
26576 initialize it to another executable name than the current one. This
26577 allows to configure paths for an executable name (gnatmake) different
26578 from the current one (gnatdist).
26580 2004-03-29 Ed Schonberg <schonberg@gnat.com>
26582 * exp_ch6.adb (Expand_Call): A call to a function declared in the
26583 current unit cannot be inlined if it appears in the body of a withed
26584 unit, to avoid order of elaboration problems in gigi.
26586 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
26587 information for protected (wrapper) operation as well, to simplify gdb
26590 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
26591 protected body, indicate that the entity for the generated spec comes
26592 from source, to ensure that references are properly generated for it.
26593 (Build_Body_To_Inline): Do not inline a function that returns a
26596 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
26597 apply convention to homonyms that are declared explicitly.
26599 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
26600 that renames an equality operator and the operands are overloaded,
26601 resolve them with the declared formal types, before rewriting as an
26604 2004-03-29 GNAT Script <nobody@gnat.com>
26606 * Make-lang.in: Makefile automatically updated
26608 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
26610 * memtrack.adb: Log realloc calls, which are treated as free followed
26613 2004-03-25 Vincent Celier <celier@gnat.com>
26615 * prj-makr.adb (Process_Directories): Detect when a file contains
26616 several units. Do not include such files in the config pragmas or
26617 in the naming scheme.
26619 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
26620 Resolve links only when not in Trusted_Mode.
26621 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
26622 Do not resolve links for the display names.
26624 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
26625 resolve links when computing the display names.
26627 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
26629 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
26630 attribute reference does not denote a subtype, it can be any
26631 expression that has a classwide type, potentially after an implicit
26632 dereference. In particular, the prefix can be a view conversion for
26633 a classwide type (for which Is_Object_Reference holds), but it can
26634 also be a value conversion for an access-to-classwide type. In the
26635 latter case, there is an implicit dereference, and the original node
26636 for the prefix does not verify Is_Object_Reference.
26638 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
26639 conversion of a discriminant-dependent component of a mutable object
26642 2004-03-25 Ed Schonberg <schonberg@gnat.com>
26644 * freeze.adb (Freeze_Entity): When an inherited subprogram is
26645 inherited, has convention C, and has unconstrained array parameters,
26646 place the corresponding warning on the derived type declaration rather
26647 than the original subprogram.
26649 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
26650 indication on renaming declaration, if formal has a box and actual
26653 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
26654 determine whether to generate an implicit or explicit reference to
26655 the renamed entity.
26657 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
26658 subprogram renaming comes from a defaulted formal subprogram in an
26661 2004-03-25 Gary Dismukes <dismukes@gnat.com>
26663 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
26664 value expressions to ensure that calls within a component definition
26665 will be checked (since those are evaluated during the record type's
26668 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
26670 * s-tpobop.adb: Code clean up:
26671 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
26673 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
26675 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
26677 * Makefile.in: Clean up in the ravenscar run time.
26679 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26681 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
26682 of No_Strict_Aliasing to build_pointer_type_for_mode.
26683 * utils.c (update_pointer_to): Walk pointer and ref chains.
26685 2004-03-22 Cyrille Comar <comar@act-europe.fr>
26687 * ali.ads: Fix Comment about Dynamic_Elab.
26689 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
26690 Has_RACW, Is_Generic, etc.)
26691 (Output_Object, Gnatls): Take into account ALI files not attached to
26694 2004-03-22 Vincent Celier <celier@gnat.com>
26696 * gprep.adb: Change all String_Access to Name_Id
26697 (Is_ASCII_Letter): new function
26698 (Double_File_Name_Buffer): New procedure
26699 (Preprocess_Infile_Name): New procedure
26700 (Process_Files): New procedure
26701 (Gnatprep): Check if output and input are existing directories.
26702 Call Process_Files to do the real job.
26704 2004-03-22 Robert Dewar <dewar@gnat.com>
26706 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
26707 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
26709 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
26711 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
26712 case when the source contains only comments.
26714 2004-03-22 Ed Schonberg <schonberg@gnat.com>
26716 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
26717 declaration for a child subprogram body that acts as a spec, indicate
26718 that the entity in the declaration needs debugging information.
26720 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
26721 full view if the subtype is created for a constrained record component;
26722 gigi has enough information to construct the record, and there is no
26723 place in the tree for the declaration.
26725 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
26726 serial number for the dummy body that is built for analysis, to avoid
26727 inconsistencies in the generation of internal names when compiling
26730 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
26732 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
26735 2004-03-22 GNAT Script <nobody@gnat.com>
26737 * Make-lang.in: Makefile automatically updated
26739 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26741 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
26742 * trans.c (tree_transform, emit_index_check): Likewise.
26743 * utils.c (build_template): Likewise.
26744 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
26745 (maybe_unconstrained_array, unchecked_convert): Likewise.
26746 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
26747 (build_unary_op): Likewise.
26748 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
26749 (fill_vms_descriptor): Likewise.
26750 (build_call_alloc_dealloc): Likewise.
26752 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
26754 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
26757 * gnat_ug.texi: Add info directory category and entry.
26758 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
26759 gnat_ug_wnt.texi: Regenerate.
26761 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
26763 * ada-tree.h: Update copyright notice.
26764 Minor reformatting.
26766 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
26768 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
26769 as regular exception objects and not as mere integers representing the
26770 condition code. The latter approach required some dynamics to mask off
26771 severity bits, which did not fit well into the GCC table based model.
26772 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
26773 exception data objects. We don't it and it would conflict with the other
26774 external symbol we have to generate for such exceptions.
26776 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
26777 the special code for VMS exceptions, since these are now represented
26778 as regular exceptions objects.
26780 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26782 * decl.c (debug_no_type_hash): Remove.
26783 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
26784 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
26786 2004-03-19 Laurent Guerby <laurent@guerby.net>
26788 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
26789 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
26791 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26793 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
26794 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
26795 (TYPE_RM_SIZE_INT): Directly use type.values.
26796 (TREE_LOOP_ID): Clean up check.
26797 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
26798 TYPE_VALUES, not TYPE_FIELDS.
26799 * trans.c (convert_with_check): Delay access of bounds of basetype
26800 until sure is numeric.
26802 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
26804 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
26807 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
26808 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
26809 Specific.Set instead of direct call to e.g pthread_setspecific.
26811 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
26813 * adaint.c: Update comments.
26815 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
26816 GNATLIB_SHARED for FreeBSD.
26818 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
26820 * init.c [VxWorks]: Do not fix the stack size for the environment task.
26821 When needed (stack checking) the stack size is retrieved
26822 from the VxWorks kernel.
26824 * Makefile.in: Flag -nostdinc is required when building the run time
26825 for avoiding looking for files in the base compiler.
26826 Add the VxWorks specific version of the package body for
26827 System.Stack_checking.Operations (5zstchop.adb).
26829 * Make-lang.in: Add the object file for
26830 System.Stack_Checking.Operations.
26832 * Makefile.rtl: Add object file for the package
26833 System.Stack_Checking.Operations.
26835 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
26837 * s-stache.ads, s-stache.adb: Move the operations related to stack
26838 checking from this package to package System.Stack_Checking.Operations.
26839 This way, stack checking operations are only linked in the final
26840 executable when using the -fstack-check flag.
26842 2004-03-18 Doug Rupp <rupp@gnat.com>
26844 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
26847 * 5qsystem.ads, 5xcrtl.ads: New files.
26849 2004-03-18 Vincent Celier <celier@gnat.com>
26851 * prj.adb (Reset): Reset hash table Files_Htable
26853 * prj-env.adb (Source_Paths, Object_Paths): New tables.
26854 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
26855 the procedures Add_To_Path_File.
26856 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
26857 making sure that each directory is present only once and, for object
26858 dirs, when a directory already present is added, the duplicate is
26859 removed and the directory is always put as the last in the table.
26860 Write the path files at the end of these accumulations.
26862 * prj-nmsc.adb (Record_Source): Add source file name in hash table
26863 Files_Htable for all sources.
26865 * prj-proc.adb (Process): Remove restrictions between not directly
26866 related extending projects.
26868 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
26870 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
26871 (Find_Sources): Minor speed optimization.
26873 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
26874 parameter Trusted_Mode.
26876 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
26878 * scn.adb (Determine_License): Take into account a degenerated case
26879 when the source contains only comments.
26881 2004-03-18 Ed Schonberg <schonberg@gnat.com>
26883 * sem_warn.adb (Check_References): For a warning on a selected
26884 component that does not come from source, locate an uninitialized
26885 component of the record type to produce a more precise error message.
26887 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
26889 * 3zsoccon.ads: Fix multicast options.
26891 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
26894 2004-03-15 Robert Dewar <dewar@gnat.com>
26896 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
26897 pragma used for a private type.
26899 * lib-xref.adb (Generate_Reference): Do not generate warning if
26900 reference is in a different unit from the pragma Unreferenced.
26902 * 5vtpopde.adb: Minor reformatting
26903 Fix casing of To_Task_ID
26905 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
26906 flag if we have an unchecked conversion to an access type in the same
26909 2004-03-15 Geert Bosch <bosch@gnat.com>
26911 * a-ngcoty.adb (Modulus): In alternate formula for large real or
26912 imaginary parts, use Double precision throughout.
26914 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
26915 we want to be able to compile run-time with -gnata for testing, but
26916 this may also be instantiated in user code that is compiled with -gnata.
26918 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
26920 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
26921 codes. Having a separate type for this is useful to enforce consistency
26922 throughout the various run-time units.
26923 (Exception_Data): Use Exception_Code for Import_Code.
26925 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
26926 Natural and Integer in various places.
26927 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
26928 with the severity bits masked off.
26929 (Register_VMS_Exception): Handle the additional exception data pointer
26932 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
26933 component, now reflected by an exported accessor.
26934 (is_handled_by): New routine to compute whether the propagated
26935 occurrence matches some handler choice specification. Extracted out of
26936 get_action_description_for, and expanded to take care of the VMS
26938 (get_action_description_for): Use is_handled_by instead of an explicit
26939 complex condition to decide if the current choice at hand catches the
26940 propagated occurrence.
26942 * raise.h (Exception_Code): New type for C.
26944 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
26945 System.Standard_Library.Exception_Code, to allow references from the
26946 pragma import/export expander.
26948 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
26949 New accessors to allow easy access to GNAT exception data
26951 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
26952 redundant Handled_By_Others component, helper for the personality
26953 routine which will now be able to call the appropriate exception data
26956 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
26957 component of Standard_Exception_Type to be the closest possible to
26958 Exception_Code in System.Standard_Library, that we cannot get at this
26959 point. Expand a ??? comment to notify that this type node should
26960 probably be rewritten later on.
26962 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
26963 registration call to include a pointer to the exception object in the
26966 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
26967 instead of int and explicit bitmasks.
26969 2004-03-15 Vincent Celier <celier@gnat.com>
26971 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
26972 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
26974 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
26975 longer needed now that it is in the spec of
26976 System.Tasking.Task_Attributes.
26978 * adaint.h, adaint.c: (__gnat_create_output_file): New function
26980 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
26982 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
26984 * make.adb (Gnatmake): Do not check the executable suffix; it is being
26985 taken care of in Scan_Make_Arg.
26986 (Scan_Make_Arg): Add the executable suffix only if the argument
26987 following -o, in canonical case, does not end with the executable
26988 suffix. When in verbose mode and executable file name does not end
26989 with executable suffix, output the executable name, in canonical case.
26991 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
26992 to avoid warnings when instantiating Ada.Task_Attributes.
26995 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
26996 in the correct order.
26998 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
26999 redirect standard output and error to a file for the invocation of the
27000 compiler, then read the file.
27002 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
27003 directory, instead of the Value.
27004 (Find_Source_Dirs): Remove useless code & comments.
27006 2004-03-15 Ed Schonberg <schonberg@gnat.com>
27008 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
27009 tagged type is inherited, and the parent operation is not frozen yet,
27010 force generation of a freeze node for the inherited operation, so the
27011 corresponding dispatch entry is properly initialized.
27012 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
27013 when looking for user-defined equality operation.
27015 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
27016 boolean when locating primitive equality of tagged component.
27018 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
27019 bit-aligned field and the right-hand side a string literal, introduce
27020 a temporary before expanding assignment into a loop.
27022 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
27023 priority in full, to ensure that any expanded subepxressions of it are
27024 elaborated in the scope of the init_proc.
27026 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
27027 after object declaration, skipping over code that may have been
27028 generated for validity checks.
27030 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
27031 discriminants, ignore the known discriminants of its full view, if
27032 any, to check legality.
27034 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
27035 component if type has unknown discriminants.
27036 (Analyze_Private_Extension_Declaration): Discriminant constraint is
27037 null if type has unknown discriminants.
27039 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
27040 for end label when present.
27042 * s-fileio.adb (Open): When called with a C_Stream, use given name for
27043 temporary file, rather than an empty string.
27045 2004-03-15 Ed Falis <falis@gnat.com>
27047 * s-thread.adb: Removed, no longer used.
27049 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27051 * decl.c (target.h): Now include.
27052 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
27053 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
27054 (validate_size): For POINTER_TYPE, get smallest size permitted on
27057 * fe.h: Sort Einfo decls and add Set_Mechanism.
27059 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
27060 (ada/decl.o): Depends on target.h.
27062 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
27063 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
27065 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
27067 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
27069 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
27070 Insert_Dereference_Action when rewriting an implicit dereference into
27071 an explicit one, this will be taken care of during expansion of the
27072 explicit dereference.
27073 (Expand_N_Slice): Same. Always do the rewriting, even for the case
27074 of non-packed slices, since the dereference action generated by
27075 expansion of the explicit dereference is needed in any case.
27076 (Expand_N_Selected_Component): When rewriting an implicit dereference,
27077 analyze and resolve the rewritten explicit dereference so it is seen
27079 (Insert_Dereference_Action): This procedure is now called only for the
27080 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
27081 dereferences that do not come from source (including explicit
27082 dereferences resulting from rewriting implicit ones), but do not
27083 recursively insert a check for the dereference nodes contained within
27085 (Insert_Dereference_Action): Clarify and correct comment.
27087 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
27090 Move language detection to the top level.
27091 * config-lang.in: Build by default.
27093 2004-03-05 Robert Dewar <dewar@gnat.com>
27095 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
27097 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
27098 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
27099 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
27100 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
27101 unchecked conversion to spec to avoid warnings.
27103 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
27106 * 7stpopsp.adb: Correct casing in To_Task_ID call
27108 * a-strsea.ads, a-strsea.adb: Minor reformatting
27110 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
27112 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
27113 Adjust Max_Msg_Length to be clearly large enough.
27115 * fe.h: Define In_Same_Source_Unit
27117 * osint.adb: Add pragma Warnings Off to suppress warnings
27118 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
27121 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
27123 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
27125 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
27127 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
27129 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
27131 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
27132 node. We now do generate them for gcc back end.
27134 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
27137 * sinput-c.adb: Fix bad name in header.
27138 Add pragma Warnings Off to suppress aliasing warning.
27140 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
27142 * snames.h, snames.ads, snames.adb: Add entry for pragma
27143 No_Strict_Aliasing.
27145 2004-03-05 Vincent Celier <celier@gnat.com>
27147 * prj-com.ads: Add hash table Files_Htable to check when a file name
27148 is already a source of another project.
27150 * prj-nmsc.adb (Record_Source): Before recording a new source, check
27151 if its file name is not already a source of another project. Report an
27154 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
27155 source file name, call gnatpp with all the sources of the main project.
27157 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
27160 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
27161 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
27162 /RUNTIME_SYSTEM=, converted to --RTS=
27163 /NOTABS, converted to -notabs
27165 2004-03-05 Pascal Obry <obry@gnat.com>
27167 * make.adb: Minor reformatting.
27169 2004-03-05 Ed Schonberg <schonberg@gnat.com>
27171 Part of implemention of AI-262.
27172 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
27174 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
27177 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
27178 when component type is a partially constrained class-wide subtype.
27179 (Constrain_Discriminated_Type): If parent type has unknown
27180 discriminants, a constraint is illegal, even if full view has
27182 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
27183 with unknown discriminants whose full view is a discriminated record.
27185 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
27186 flag, to handle properly derivations of tagged types with unknown
27188 (Analyze_Package_Spec, Analyze_Package_Body): Install
27189 Private_With_Clauses before analyzing private part or body.
27191 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
27192 Has_Discriminants can be true for a given type (documentation).
27194 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
27196 * s-restri.ads: Fix license (GPL->GMGPL).
27198 * s-tassta.adb: Minor reformatting.
27200 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
27201 by calls to Exit_One_ATC_Level, since additional clean up is performed
27204 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
27205 by calls to Exit_One_ATC_Level, since additional clean up is performed
27208 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27210 * trans.c: Reflect GCC changes to fix bootstrap problem.
27211 Add warning for suspicious aliasing unchecked conversion.
27213 2004-03-05 GNAT Script <nobody@gnat.com>
27215 * Make-lang.in: Makefile automatically updated
27217 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
27219 * ali.adb (Read_Instantiation_Instance): Do not modify the
27220 current_file_num when reading information about instantiations, since
27221 this corrupts files in later references.
27223 2004-03-02 Vincent Celier <celier@gnat.com>
27225 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
27226 before checking if it is read-only.
27228 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
27229 of SRC_DIRS and eliminate duplicates.
27231 * gprcmd.adb: Replace command "path" with command "path_sep" to return
27232 the path separator.
27233 (Usage): Document path_sep
27235 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
27236 C++ compiler. No need for a script.
27237 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
27238 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
27241 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
27242 where there are Ada sources.
27243 (Set_Ada_Paths): Only add to the include path the source dirs of project
27245 (Add_To_Path): Add the Display_Values of the directories, not their
27248 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
27251 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
27253 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
27254 Value is canonicalized.
27255 (Language_Independent_Check): Do not copy Value to Display_Value when
27256 canonicalizing Value.
27258 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
27259 path to find limited with cycles.
27260 (Parse_Single_Project): Use canonical cased path to find the end of a
27263 2004-03-02 Ed Schonberg <schonberg@gnat.com>
27265 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
27266 and not a child unit.
27268 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
27269 appear in a with_clause.
27271 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
27272 only happen in type_annotate mode, do not try to elaborate it.
27274 * exp_util.adb (Force_Evaluation): If expression is a selected
27275 component on the left of an assignment, use a renaming rather than a
27276 temporary to remove side effects.
27278 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
27279 inlined instance body, which is analyzed before the end of the
27282 2004-03-02 Robert Dewar <dewar@gnat.com>
27284 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
27285 sem_ch4.adb: Use new feature for substitution of keywords in VMS
27287 * errout.ads, errout.adb: Implement new circuit for substitution of
27290 * sem_case.adb (Analyze_Choices): Place message properly when case is
27291 a subtype reference rather than an explicit range.
27293 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
27295 2004-03-02 Doug Rupp <rupp@gnat.com>
27297 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
27299 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
27301 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
27303 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27305 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
27308 2004-02-25 Robert Dewar <dewar@gnat.com>
27310 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
27311 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
27312 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
27313 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
27314 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
27315 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
27316 the defining instance of the type to avoid aliasing problems.
27317 Fix copyright header. Fix bad comments in package header.
27319 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
27321 2004-02-25 Ed Schonberg <schonberg@gnat.com>
27323 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
27324 rewritten as references when aliased through an address clause.
27326 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
27327 whether call can be interpreted as an indirect call to the result of a
27328 parameterless function call returning an access subprogram.
27330 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
27333 * exp_ch7.adb (Make_Clean): Remove generation of calls to
27334 Unlock[_Entries], since this is now done by Service_Entries directly.
27336 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
27338 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
27339 Requeue_Call for better code readability. Change spec and update calls:
27340 PO_Service_Entries now unlock the PO on exit.
27341 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
27342 PO_Service_Entries.
27344 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
27346 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
27348 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
27350 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
27351 protected subprogram call and analyzing the result of such expanding
27352 in case when the called protected subprogram is eliminated.
27354 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
27357 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
27359 * Makefile.in: Clean ups.
27361 2004-02-23 Ed Schonberg <schonberg@gnat.com>
27363 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
27364 protected operations if original subprogram is flagged as eliminated.
27365 (Expand_N_Subprogram_Body): For a protected operation, create
27366 discriminals for next operation before checking whether the operation
27369 * exp_ch9.adb (Expand_N_Protected_Body,
27370 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
27371 for internal protected operations if the original subprogram is
27374 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
27375 declared in a single protected object.
27377 2004-02-23 Vincent Celier <celier@gnat.com>
27379 * prj-attr.adb: Make attribute Builder'Executable an associative array,
27380 case insensitive if file names are case insensitive, instead of a
27381 standard associative array.
27383 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
27384 them as case insensitive on platforms where the file names are case
27387 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
27388 project file has already been parsed that canonical path are compared.
27390 2004-02-23 Robert Dewar <dewar@gnat.com>
27392 * sinput-c.ads: Correct bad unit title in header
27394 * freeze.adb: Minor reformatting
27396 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27398 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
27399 nonaddressable COMPONENT_REF that is removing padding that we are
27400 taking the address of, take the address of the padded record instead
27401 if item is variable size.
27403 2004-02-20 Robert Dewar <dewar@gnat.com>
27405 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
27407 2004-02-20 Ed Schonberg <schonberg@gnat.com>
27409 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
27410 itype references for the constrained designated type of a component
27411 whose base type is already frozen.
27413 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
27415 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
27416 avoid GCC warnings.
27418 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
27420 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
27421 identifier for a phantom package that rewrites the formal package
27422 declaration with a box. The Add semantic decorations for the defining
27423 identifier from the original node (that represents the formal package).
27425 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
27427 * Make-lang.in (ada/stamp-sdefault): Use the top level
27430 2004-02-19 Richard Henderson <rth@redhat.com>
27432 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
27434 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
27436 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
27437 Scan_ALI can be used for multiple ALI files without reinitializing
27440 2004-02-18 Robert Dewar <dewar@gnat.com>
27442 * debug.adb: Minor reformatting.
27444 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27446 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
27447 to zero if there is an address clause.
27449 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
27451 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
27453 2004-02-18 Gary Dismukes <dismukes@gnat.com>
27455 * layout.adb (Layout_Component_List): Revise generation of call to
27456 discriminant-checking function to pass selections of all of the type's
27457 discriminants rather than just the variant-controlling discriminant.
27459 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
27461 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
27462 fail in the current setup and triggers spurious system error messages.
27463 Pretend it occurred and failed instead.
27465 2004-02-18 Vincent Celier <celier@gnat.com>
27467 * bld.adb: Mark FLDFLAGS as saved
27468 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
27469 it is not the root project. Put each directory to be
27470 extended between double quotes to prevent it to be expanded on Windows.
27471 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
27472 the project file. Set them back to their initial values if they have not
27473 been set in the project file.
27475 * gprcmd.adb: (Gprdebug, Debug): New global variables
27476 (Display_Command): New procedure
27477 (Usage): Document new command "linkopts"
27478 Call Display_Command when env var GPRDEBUG has the value "TRUE"
27479 Implement new command "linkopts"
27480 Remove quotes that may be around arguments for "extend"
27481 Always call Normalize_Pathname with arguments formatted for the platform
27483 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
27484 Change @echo to @$(display) in target clean to be able to clean silently
27486 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
27488 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
27491 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
27492 = Extending_All when current project is an extending all project.
27494 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
27495 set to True only for LINK command, after Unix switch -o.
27496 (Process_Arguments): Set Output_File_Expected to True for LINK command
27497 after Unix switch -o. When Output_File_Expected is True, never add an
27498 extension to a file name.
27500 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
27501 option file name, only to the --for-linker= switch.
27502 (Option_File_Name): If option file name do not end with ".opt", append
27505 2004-02-18 GNAT Script <nobody@gnat.com>
27507 * Make-lang.in: Makefile automatically updated
27509 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
27511 * Make-lang.in (stamp-sdefault): Do not depend on
27514 2004-02-12 Zack Weinberg <zack@codesourcery.com>
27516 * config-lang.in: Disable Ada by default until probe logic for
27517 a bootstrap Ada compiler can be moved to the top level configure
27520 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
27522 * decl.c (components_to_record): Don't claim that the internal fields
27523 we make to hold the variant parts are semantically addressable, because
27526 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
27527 adjust the comment describing the modular type form when we can use it.
27528 (Install_PAT): Account for the Esiz renaming.
27530 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
27531 sc_onstack context indication before raising the exception to which
27532 the signal is mapped. Allows better handling of later signals possibly
27533 triggered by the resumed user code if the exception is handled.
27535 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
27537 * 5zinit.adb: Removed, no longer used.
27539 2004-02-12 Robert Dewar <dewar@gnat.com>
27541 * ali.adb: Remove separating space between parameters on R line. Makes
27542 format consistent with format used by the binder for Set_Globals call.
27544 * atree.ads, atree.adb: Minor reformatting (new function header format)
27546 * bindgen.adb: Add Run-Time Globals documentation section containing
27547 detailed documentation of the globals passed from the binder file to
27550 * gnatls.adb: Minor reformatting
27552 * init.c (__gnat_set_globals): Add note pointing to documentation in
27555 * lib-writ.ads, lib-writ.adb: Remove separating space between
27556 parameters on R line.
27557 Makes format consistent with format used by the binder for Set_Globals
27560 * osint.ads: Add 2004 to copyright notice
27563 * snames.ads: Correct capitalization of FIFO_Within_Priorities
27564 Noticed during code reading, documentation issue only
27566 * usage.adb: Remove junk line for obsolete C switch
27567 Noticed during code reading
27569 2004-02-12 Vincent Celier <celier@gnat.com>
27571 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
27572 extend for each directory, so that multiple /** directories are
27573 extended individually.
27574 (Recursive_Process): Set the default for LANGUAGES to ada
27576 * gprcmd.adb: Define new command "ignore", to do nothing.
27577 Implement new comment "path".
27579 * Makefile.generic: Suppress output when SILENT is set
27580 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
27581 used, so that the correct compiler is invoked.
27582 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
27583 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
27585 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
27587 * Makefile.in: Clean ups and remove obsolete targets.
27589 2004-02-12 Ed Schonberg <schonberg@gnat.com>
27591 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
27592 predicate declared in exp_util.
27594 * exp_util.adb: Add comments.
27596 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
27597 visibility before compiling context of the subunit.
27599 * sem_res.adb (Check_Parameterless_Call): If the context expects a
27600 value but the name is a procedure, do not attempt to analyze as a call,
27601 in order to obtain more telling diagnostics.
27603 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
27604 'Access on parameterless function calls.
27605 (Normalize_Actuals): For a parameterless function call with missing
27606 actuals, defer diagnostic until resolution of enclosing call.
27608 * sem_util.adb (Wrong_Type): If the context type is an access to
27609 subprogram and the expression is a procedure name, suggest a missing
27612 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
27613 Nathanael Nerode <neroden@gcc.gnu.org>
27617 Merge with libada-branch:
27618 * config-lang.in: Build libada only when ada is built.
27620 2004-02-09 Ed Schonberg <schonberg@gnat.com>
27622 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
27623 for a tagged type, verify that both formals have the same type.
27625 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
27626 temporary when the formal is an in-parameter and the actual a possibly
27629 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
27630 when expansion is disabled, to ensure proper name capture with
27631 overloaded literals. Condition can be of any boolean type, resolve
27634 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
27635 renaming is for a formal subprogram with a default operator name, and
27636 there is a usable operator that is visible at the point of
27639 2004-02-09 Robert Dewar <dewar@gnat.com>
27641 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
27642 rewrite to ignore errors in ali files, intended to allow tools downward
27643 compatibility with new versions of ali files.
27645 * ali.ads: Add new parameter Ignore_Errors
27647 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
27648 duplicating the error message giving the file with restrictions.
27650 * debug.adb: Add debug flag I for gnatbind
27652 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
27653 operators for the case where the operator is a defining operator.
27655 * exp_ch3.adb: Minor reformatting (new function spec format).
27657 * exp_ch4.adb: Add comment for previous change, and make minor
27658 adjustment to loop to always check for improper loop termination.
27659 Minor reformatting throughout (new function spec format).
27661 * gnatbind.adb: Implement -di debug flag for gnatbind
27663 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
27665 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
27667 * lib-load.adb: Fix bad assertion.
27668 Found by testing and code reading.
27669 Minor reformatting.
27671 * lib-load.ads: Minor reformatting.
27673 * lib-writ.adb: There is only one R line now.
27675 * lib-writ.ads: Add documentation on making downward compatible changes
27676 to ali files so old tools work with new ali files.
27677 There is only one R line now.
27678 Add documentation on format incompatibilities (with special GPS note)
27680 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
27682 * par-load.adb: Minor reformatting
27684 * sem_ch8.adb: Fix to error message from last update
27685 Minor reformatting and restructuring of code from last update
27687 * par-prag.adb, snames.adb, snames.ads, snames.h,
27688 sem_prag.adb: Implement pragma Profile.
27690 * stylesw.adb: Implement -gnatyN switch to turn off all style check
27693 * usage.adb: Add line for -gnatyN switch
27695 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
27697 2004-02-09 Albert Lee <lee@gnat.com>
27699 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
27701 2004-02-09 Ed Schonberg <schonberg@gnat.com>
27703 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
27706 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
27707 is nested in an instance that is not frozen yet, to avoid
27708 order-of-elaboration problems in gigi.
27710 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
27711 body the attribute is legal.
27713 2004-02-09 Robert Dewar <dewar@gnat.com>
27715 * s-rident.ads: Minor comment correction
27717 * targparm.adb: Remove dependence on uintp completely. There was
27718 always a bug in Make in that it called Targparm before initializing
27719 the Uint package. The old code appeared to get away with this, but
27720 the new code did not! This caused an assertion error in gnatmake.
27722 * targparm.ads: Fix bad comment, restriction pragmas with parameters
27723 are indeed fully supported.
27725 2004-02-06 Alan Modra <amodra@bigpond.net.au>
27727 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
27729 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
27731 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
27732 with targetm.calls.promote_prototypes.
27734 2004-02-04 Robert Dewar <dewar@gnat.com>
27736 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
27737 ali.ads, gprcmd.adb: Minor reformatting
27739 * bindgen.adb: Output restrictions string for new style restrictions
27742 * impunit.adb: Add s-rident.ads (System.Rident) and
27743 s-restri (System.Restrictions)
27745 * lib-writ.adb: Fix bug in writing restrictions string (last few
27748 * s-restri.ads, s-restri.adb: Change name Restrictions to
27749 Run_Time_Restrictions to avoid conflict with package name.
27750 Add circuit to read and acquire run time restrictions.
27752 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
27754 * restrict.ads, restrict.adb: Use the new restriction
27755 No_Task_Attributes_Package instead of the old No_Task_Attributes.
27757 * sem_prag.adb: No_Task_Attributes is a synonym of
27758 No_Task_Attributes_Package.
27760 * snames.ads, snames.adb: New entry for proper handling of
27761 No_Task_Attributes.
27763 * s-rident.ads: Adding restriction No_Task_Attributes_Package
27764 (AI-00249) that supersedes the GNAT specific restriction
27765 No_Task_Attributes.
27767 2004-02-04 Ed Schonberg <schonberg@gnat.com>
27770 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
27771 body, an identifier may be wrapped in an unchecked conversion.
27773 2004-02-04 Vincent Celier <celier@gnat.com>
27775 * lib-writ.ads: Comment update for the W lines
27777 * bld.adb: (Expression): An empty string list is static
27779 * fname-uf.adb: Minor comment update
27781 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
27783 * gnatbind.adb: Initialize Cumulative_Restrictions with the
27784 restrictions on the target.
27786 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
27788 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
27791 2004-02-02 Arnaud Charlet <charlet@gnat.com>
27793 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
27795 2004-02-02 Vincent Celier <celier@gnat.com>
27797 * gprcmd.adb (Check_Args): If condition is false, print the invoked
27798 comment before the usage.
27799 Gprcmd: Fail when command is not recognized.
27800 (Usage): Document command "prefix"
27802 * g-md5.adb (Digest): Process last block.
27803 (Update): Do not process last block. Store remaining characters and
27806 * g-md5.ads (Update): Document that several call to update are
27807 equivalent to one call with the concatenated string.
27808 (Context): Add fields to allow new Update behaviour.
27810 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
27811 defaulted to False.
27812 When May_Fail is True and no existing file can be found, return No_File.
27814 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
27817 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
27818 spec file name instead on the W line.
27820 2004-02-02 Robert Dewar <dewar@gnat.com>
27822 * ali.adb: Read and acquire info from new format restrictions lines
27824 * bcheck.adb: Add circuits for checking restrictions with parameters
27826 * bindgen.adb: Output dummy restrictions data
27827 To be changed later
27829 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
27830 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
27831 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
27832 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
27833 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
27835 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
27836 the warning message on access to possibly uninitialized variable S)
27837 Minor changes for new restrictions handling.
27839 * gnatbind.adb: Minor reformatting
27840 Minor changes for new restrictions handling
27841 Move circuit for -r processing here from bcheck (cleaner)
27843 * gnatcmd.adb, gnatlink.adb: Minor reformatting
27845 * lib-writ.adb: Output new format restrictions lines
27847 * lib-writ.ads: Document new R format lines for new restrictions
27850 * s-restri.ads/adb: New files
27852 * Makefile.rtl: Add entry for s-restri.ads/adb
27854 * par-ch3.adb: Fix bad error messages starting with upper case letter
27857 * restrict.adb: Major rewrite throughout for new restrictions handling
27858 Major point is to handle restrictions with parameters
27860 * restrict.ads: Major changes in interface to handle restrictions with
27861 parameters. Also generally simplifies setting of restrictions.
27863 * snames.ads/adb: New entry for proper handling of No_Requeue
27865 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
27866 restriction counting.
27867 Other minor changes for new restrictions handling
27869 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
27870 Restriction_Warnings now allows full parameter notation
27871 Major rewrite of Restrictions for new restrictions handling
27873 2004-02-02 Javier Miranda <miranda@gnat.com>
27875 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
27876 syntax rule for object renaming declarations.
27877 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
27878 component definitions.
27880 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
27882 (Array_Type_Declaration): Give support to access components. In addition
27883 it was also modified to reflect the name of the object in anonymous
27884 array types. The old code did not take into account that it is possible
27885 to have an unconstrained anonymous array with an initial value.
27886 (Check_Or_Process_Discriminants): Allow access discriminant in
27888 (Process_Discriminants): Allow access discriminant in non-limited types
27889 Initialize the new Access_Definition field in N_Object_Renaming_Decl
27890 node. Change Ada0Y to Ada 0Y in comments
27892 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
27893 equality operators.
27894 Change Ada0Y to Ada 0Y in comments
27896 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
27897 renamings Change Ada0Y to Ada 0Y in comments
27899 * sem_type.adb (Find_Unique_Type): Give support to the equality
27900 operators for universal access types
27901 Change Ada0Y to Ada 0Y in comments
27903 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
27905 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
27907 (N_Object_Renaming_Declaration): Addition of Access_Definition field
27908 Change Ada0Y to Ada 0Y in comments
27910 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
27911 component definition and object renaming nodes
27912 Change Ada0Y to Ada 0Y in comments
27914 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
27916 * restrict.adb: Use the new restriction identifier
27917 No_Requeue_Statements instead of the old No_Requeue for defining the
27918 restricted profile.
27920 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
27921 No_Requeue_Statements.
27923 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
27924 that supersedes the GNAT specific restriction No_Requeue. The later is
27925 kept for backward compatibility.
27927 2004-02-02 Ed Schonberg <schonberg@gnat.com>
27929 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
27930 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
27931 pragma and fix incorrect ones.
27933 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
27934 warning if the pragma is redundant.
27936 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
27938 * 5staprop.adb: Add missing 'constant' keywords.
27940 * Makefile.in: use consistent value for SYMLIB on
27941 platforms where libaddr2line is supported.
27943 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27945 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
27948 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
27950 * init.c (__gnat_install_handler): Setup an alternate stack for signal
27951 handlers in the environment thread. This allows proper propagation of
27952 an exception on stack overflows in this thread even when the builtin
27953 ABI stack-checking scheme is used without support for a stack reserve
27956 * utils.c (create_field_decl): Augment the head comment about bitfield
27957 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
27958 here, because the former is not accurate enough at this point.
27959 Let finish_record_type decide instead.
27960 Don't make a bitfield if the field is to be addressable.
27961 Always set a size for the field if the record is packed, to ensure the
27962 checks for bitfield creation are triggered.
27963 (finish_record_type): During last pass over the fields, clear
27964 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
27965 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
27966 from DECL_BIT_FIELD.
27968 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
27970 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
27971 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
27972 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
27974 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27976 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
27978 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
27979 (ZCX_By_Default): Likewise.
27980 (Front_End_ZCX_Support): Likewise.
27982 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
27983 (Initialize_Lock): Mark Level unreferenced.
27984 (Sleep): Mark Reason unreferenced.
27985 (Timed_Sleep): Likewise.
27986 (Wakeup): Likewise.
27987 (Exit_Task): Use Result.
27988 (Check_No_Locks): Mark Self_ID unreferenced.
27990 * 5gtasinf.adb (New_Sproc): Make Attr constant.
27991 (Bound_Thread_Attributes): Make Sproc constant.
27992 (New_Bound_Thread_Attributes): Likewise.
27994 2004-01-26 Ed Schonberg <schonberg@gnat.com>
27996 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
27997 one-dimensional array an slice assignments, when component type is
28000 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
28001 component type is controlled, and control_actions are in effect, use
28002 TSS procedure rather than generating inline code.
28004 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
28005 arrays with controlled components.
28007 2004-01-26 Vincent Celier <celier@gnat.com>
28009 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
28010 command line for the non VMS case.
28012 * gnatlink.adb (Process_Binder_File): When building object file, if
28013 GNU linker is used, put all object paths between quotes, to prevent ld
28014 error when there are unusual characters (such as '!') in the paths.
28016 * Makefile.generic: When there are sources in Ada and the main is in
28017 C/C++, invoke gnatmake with -B, instead of -z.
28019 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
28020 from VMS_Conversion.
28021 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
28022 specification of argument file on the command line.
28024 2004-01-26 Bernard Banner <banner@gnat.com>
28026 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
28028 2004-01-26 Ed Schonberg <schonberg@gnat.com>
28030 * snames.adb: Update copyright notice.
28031 Add info on slice assignment for controlled arrays.
28033 2004-01-23 Robert Dewar <dewar@gnat.com>
28035 * exp_aggr.adb: Minor reformatting
28037 * exp_ch9.adb: Minor code clean up
28039 Fix bad character in comment
28042 * targparm.adb (Get_Target_Parameters): Give clean abort error on
28043 unexpected end of file, along with more detailed message.
28045 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28047 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
28050 * decl.c (copy_alias_set): New function.
28051 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
28053 2004-01-23 Doug Rupp <rupp@gnat.com>
28055 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
28056 lib$${file} in case subsequent character is not a separator.
28058 2004-01-23 Vincent Celier <celier@gnat.com>
28060 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
28061 when the GCC version is at least 3.
28063 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
28064 Remove all "Opt.", to prepare for opt split
28066 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
28067 Extends_All. Set to True when the project parsed is an extending all
28068 project. Fails for importing an extending all project only when the
28069 imported project is an extending all project.
28070 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
28071 depending on the value of Extends_All returned.
28073 * prj-proc.adb (Process): Check that no project shares its object
28074 directory with a project that extends it, directly or indirectly,
28075 including a virtual project.
28076 Check that no project extended by another project shares its object
28077 directory with another also extended project.
28079 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
28080 Kind = N_With_Clause
28082 * prj-tree.ads: Minor reformatting
28083 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
28085 2004-01-23 Ed Schonberg <schonberg@gnat.com>
28087 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
28088 applies to a type with an incomplete view, use full view in Name of
28089 clause, for consistency with uses of Get_Attribute_Definition_Clause.
28091 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
28093 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
28094 SCHED_RR, since other values are not supported by this policy.
28095 (Initialize): Move initialization of mutex attribute to package
28096 elaboration, to prevent early access to this variable.
28098 * Makefile.in: Remove mention of Makefile.adalib, unused.
28100 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
28101 1ssecsta.ads: Removed, unused.
28103 2004-01-21 Javier Miranda <miranda@gnat.com>
28105 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
28106 entity if already built in the current scope.
28108 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
28109 reminder in internal scopes. Required for nested limited aggregates.
28111 2004-01-21 Doug Rupp <rupp@gnat.com>
28113 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
28114 VMS. Replace all occurences of libgnat- and libgnarl- with
28115 libgnat$(hyphen) and libgnarl$(hyphen).
28116 Fixed shared library build problem on VMS.
28118 2004-01-21 Robert Dewar <dewar@gnat.com>
28120 * mlib-prj.adb: Minor reformatting
28122 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
28124 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
28125 'constant' keywords for declaration of pointers that are not modified.
28127 * exp_pakd.adb: Fix English in comment.
28129 2004-01-21 Ed Schonberg <schonberg@gnat.com>
28132 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
28133 copy all attributes of the parent, including the foreign language
28136 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
28139 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
28140 for 'delay until' statement.
28142 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
28144 * Make-lang.in: Replace $(docdir) with doc.
28145 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
28146 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
28147 to use consistent MAKEINFO rule.
28148 (ada.man, ada.srcman): Dummy entry.
28149 (ADA_INFOFILES): Define.
28150 (ada.info, ada.srcinfo): New rules.
28152 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
28154 * utils.c: Update copyright notice, missed in previous change.
28156 2004-01-19 Vincent Celier <celier@gnat.com>
28158 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
28159 args if Bind is True. Set First_ALI, if not already done.
28160 (Build_Library): For Stand Alone Libraries, extract from one ALI file
28161 an eventual --RTS switch, for gnatbind, and all backend switches +
28162 --RTS, for linking.
28164 2004-01-19 Robert Dewar <dewar@gnat.com>
28166 * sem_attr.adb, memtrack.adb: Minor reformatting
28168 2004-01-19 Ed Schonberg <schonberg@gnat.com>
28170 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
28171 that rename enumeration literals. This is properly done in sem_eval.
28173 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
28174 to functions that rename enumeration literals.
28176 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
28177 functions that rename enumeration literals.
28179 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
28181 * Make-lang.in (utils.o): Depend on target.h.
28182 * utils.c: Include target.h.
28183 (process_attributes): Use targetm.have_named_sections instead
28184 of ASM_OUTPUT_SECTION_NAME.
28186 2004-01-16 Andreas Jaeger <aj@suse.de>
28188 * Makefile.in: Add $(DESTDIR).
28190 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
28192 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
28193 also when not defining if a Size clause applies. That information is
28196 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
28198 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
28199 symbolic links for the shared gnat run time when needed.
28201 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
28203 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
28204 for writing, and terminate with an error message if not.
28206 2004-01-15 Ed Schonberg <schonberg@gnat.com>
28208 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
28209 warning on an access to subprogram in an instance, when the target
28210 type is declared in the same generic unit.
28211 (Eval_Attribute): If 'access is known to fail accessibility check,
28212 rewrite as a raise statement.
28214 2004-01-15 GNAT Script <nobody@gnat.com>
28216 * Make-lang.in: Makefile automatically updated
28218 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
28220 * Make-lang.in (ada.srcextra): Dummy entry.
28222 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
28224 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
28226 2004-01-13 Ed Schonberg <schonberg@gnat.com>
28228 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
28229 components that are initialized with aggregates.
28231 2004-01-13 Vincent Celier <celier@gnat.com>
28233 * gnatlink.adb (Process_Binder_File): To find directory of shared
28234 libgcc, if "gcc-lib" is not a subdirectory, look for the last
28235 subdirectory "lib" in the path of the shared libgnat or libgnarl.
28237 * make.adb (Gnatmake): If GCC version is at least 3, link with
28238 -shared-libgcc, when there is at least one shared library project.
28240 * opt.ads (GCC_Version): New integer constant.
28242 * adaint.c (get_gcc_version): New function.
28244 2004-01-13 Robert Dewar <dewar@gnat.com>
28246 * sem_dist.adb, sem_res.adb, sem_util.adb,
28247 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
28248 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
28250 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
28252 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
28253 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
28256 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
28258 * misc.c: Remove trailing spaces.
28259 Update copyright notice missed in previous change.
28262 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
28265 * Makefile.generic: Update copyright.
28266 Add license notice.
28268 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
28269 of prefix/share/make.
28271 * Makefile.prolog: Update copyright.
28272 Add license notice.
28274 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
28276 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
28277 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
28278 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
28281 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
28284 2004-01-12 Javier Miranda <miranda@gnat.com>
28286 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
28287 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
28288 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
28289 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
28290 Component_Definition node.
28292 2004-01-12 Ed Falis <falis@gnat.com>
28294 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
28296 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
28298 * link.c: Change default libgnat kind to STATIC for FreeBSD.
28300 2004-01-12 Bernard Banner <banner@gnat.com>
28302 * Makefile.in: map 86numaux to a-numaux for x86_64
28304 2004-01-12 Ed Schonberg <schonberg@gnat.com>
28306 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
28307 generated to rename a generic actual, go to the actual itself, the
28308 subtype is not a user-visible entity.
28310 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
28311 part is a private subtype, reset the visibility of its full view, if
28312 any, to be consistent.
28315 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
28316 to use a generic package G as a formal package for another generic
28319 2004-01-12 Robert Dewar <dewar@gnat.com>
28321 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
28323 * usage.adb: Remove mention of obsolete -gnatwb switch
28324 Noticed during code reading
28326 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
28328 * 1ssecsta.adb: Minor changes for -gnatwa warnings
28330 2004-01-12 GNAT Script <nobody@gnat.com>
28332 * Make-lang.in: Makefile automatically updated
28334 2004-01-09 Mark Mitchell <mark@codesourcery.com>
28336 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
28338 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28340 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
28342 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
28344 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
28345 Update comment and copyright date.
28346 * stamp-xgnatug: Delete.
28348 2004-01-05 Robert Dewar <dewar@gnat.com>
28350 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
28351 be modified by the binder generated main program if the -D switch is
28354 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
28355 imported functions (since now we expect this to be done for imported
28358 * 5vtaprop.adb: Add several ??? for sections requiring more comments
28359 Minor reformatting throughout
28361 * 5zinit.adb: Minor reformatting
28362 Add 2004 to copyright date
28363 Minor changes to avoid -gnatwa warnings
28364 Correct some instances of using OR instead of OR ELSE (noted while
28365 doing reformatting)
28367 * sprint.adb: Minor updates to avoid -gnatwa warnings
28369 * s-secsta.ads, s-secsta.adb:
28370 (SS_Get_Max): New function to obtain high water mark for ss stack
28371 Default_Secondary_Stack is not a constant since it may be modified by
28372 the binder generated main program if the -D switch is used.
28374 * switch-b.adb: New -Dnnn switch for binder
28377 Make -gnatg imply all warnings currently in -gnatwa
28379 * vms_conv.adb: Minor reformatting
28380 Add 2004 to copyright notice
28381 Add 2004 to printed copyright notice
28383 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
28384 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
28385 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
28386 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
28387 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
28388 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
28389 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
28390 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
28391 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
28392 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
28393 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
28394 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
28395 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
28396 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
28397 checks.adb, clean.adb, cstand.adb, einfo.ads,
28398 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
28399 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
28400 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
28401 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
28402 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
28403 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
28404 Minor reformatting and code clean ups.
28405 Minor changes to prevent -gnatwa warnings
28407 * ali.adb: Minor reformatting and cleanup of code
28408 Acquire new SS indication of secondary stack use from ali files
28410 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
28411 (since now we expect this to be done for imported functions)
28413 * bindgen.adb: Generate call to modify default secondary stack size if
28416 * bindusg.adb: Add line for new -D switch
28418 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
28419 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
28420 Add circuitry for both records and arrays to avoid gigi
28421 processing if the type involved has non-bit-aligned components
28423 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
28424 N_String_Literal node always references an E_String_Literal_Subtype
28425 entity. This may not be true in the future.
28426 (Possible_Bit_Aligned_Component): Move processing of
28427 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
28429 * exp_ch6.adb (Expand_Thread_Body): Pick up
28430 Default_Secondary_Stack_Size as variable so that we get value modified
28431 by possible -Dnnn binder parameter.
28433 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
28434 (Type_May_Have_Bit_Aligned_Components): New function.
28436 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
28437 (Type_May_Have_Bit_Aligned_Components): New function.
28439 * fe.h: (Set_Identifier_Casing): Fix prototype.
28440 Add declaration for Sem_Elim.Eliminate_Error_Msg.
28441 Minor reformatting.
28443 * freeze.adb (Freeze_Entity): Add RM reference to error message about
28444 importing constant atomic/volatile objects.
28445 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
28446 unless explicit Pure_Function pragma given, to avoid insidious bug of
28447 call to non-pure imported function getting eliminated.
28449 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
28450 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
28451 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
28452 Add 2004 to printed copyright notice
28454 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
28457 * Makefile.rtl: Add entry for g-sestin.o
28458 g-sestin.ads: New file.
28460 * mdll.adb: Minor changes to avoid -gnatwa warnings
28462 * mlib-tgt.adb: Minor reformatting
28464 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
28465 New switch Sec_Stack_Used (GNAT, GNATBIND)
28466 Make Default_Secondary_Stack_Size a variable instead of a constant,
28467 so that it can be modified by the new -Dnnn bind switch.
28469 * rtsfind.adb (Load_Fail): Give full error message in configurable
28470 run-time mode if all_errors mode is set. This was not done in the case
28471 of a file not found, which was an oversight.
28472 Note if secondary stack unit is used by compiler.
28474 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
28475 ineffective elaborate all pragmas on non-visible packages (this
28476 happened when a renamed subprogram was called). Now the elaborate all
28477 always goes on the package containing the renaming rather than the one
28478 containing the renamed subprogram.
28480 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
28481 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
28483 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
28484 has an Etype that references an E_String_Literal.
28485 (Eval_String_Literal): Avoid assumption that N_String_Literal node
28486 always references an E_String_Literal_Subtype entity. This may not
28487 be true in the future.
28489 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
28492 * sem_res.adb (Resolve): Specialize msg for function name used in proc
28495 2004-01-05 Ed Falis <falis@gnat.com>
28497 * g-debuti.adb: Replaced direct boolean operator with short-circuit
28500 2004-01-05 Vincent Celier <celier@gnat.com>
28502 * bld.adb: Minor comment updates
28503 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
28506 * make.adb (Gnatmake): Special process for files to compile/check when
28507 -B is specified. Fail when there are only foreign mains in attribute
28508 Main of the project file and -B is not specified. Do not skip bind/link
28509 steps when -B is specified.
28511 * makeusg.adb: Document new switch -B
28513 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
28515 * switch-m.adb: (Scan_Make_Switches): Process -B switch
28517 * vms_data.ads: Add new GNAT PRETTY qualifier
28518 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
28520 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28522 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
28525 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
28526 Set_Identifier_Casing.
28528 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
28529 has size that overflows.
28531 2004-01-05 Gary Dismukes <dismukes@gnat.com>
28533 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
28534 -gnatwa warning on static condition.
28536 2004-01-05 Doug Rupp <rupp@gnat.com>
28538 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
28540 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
28542 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
28543 all attributes, including read-only attribute.
28545 2004-01-05 Pascal Obry <obry@gnat.com>
28547 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
28548 library naming scheme.
28550 * mlib-prj.adb (Build_Library): Generate different names for the static
28551 or dynamic version of the GNAT runtime. This is needed to support the
28552 new shared library naming scheme.
28553 (Process_Binder_File): Add detection of shared library in binder file
28554 based on the new naming scheme.
28556 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
28557 scheme for the shared runtime libraries.
28560 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
28562 (install-gnatlib): Do not create symlinks for shared libraries.
28563 (gnatlib-shared-default): Idem.
28564 (gnatlib-shared-dual-win32): New target. Not used for now as the
28565 auto-import feature does not support arrays/records.
28566 (gnatlib-shared-win32): Do not create copy for the shared libraries.
28567 (gnatlib-shared-vms): Fix shared runtime libraries names.
28569 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
28570 dependent runtime shared library name.
28572 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
28574 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
28577 2004-01-05 Ed Schonberg <schonberg@gnat.com>
28579 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
28580 protected objects when allocator has a subtype indication, not a
28581 qualified expression. Note that qualified expressions may have to be
28582 checked when limited aggregates are implemented.
28584 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
28585 pure, emit warning.
28586 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
28587 subprogram is imported, remove warning.
28589 2004-01-05 Geert Bosch <bosch@gnat.com>
28591 * s-poosiz.adb: Update copyright notice.
28592 (Allocate): Use Task_Lock to protect against concurrent access.
28593 (Deallocate): Likewise.
28595 2004-01-05 Joel Brobecker <brobecker@gnat.com>
28597 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
28600 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
28602 * gnat_ug.texi: Force a CVS commit by updating copyright.
28603 * gnat_ug_vxw.texi: Regenerate.
28604 * gnat_ug_wnt.texi: Regenerate.
28605 * gnat_ug_vms.texi: Regenerate.
28606 * gnat_ug_unx.texi: Regenerate.
28608 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
28610 * trans.c: Remove uses of "register" specifier in
28611 declarations of local variables.
28613 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
28615 * stamp-xgnatug: New stamp file.
28616 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
28617 (ada/doctools/xgnatug): Add $(build_exeext).
28618 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
28619 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
28621 2003-12-17 Ed Falis <falis@gnat.com>
28623 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
28626 * a-exextr.adb: Add context clause for
28627 Ada.Exceptions.Last_Chance_Handler.
28629 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
28631 * cstand.adb (Create_Standard): Change the way how the declaration of
28632 the Duration type is created (making it the same way as it is for all
28633 the other standard types).
28635 2003-12-17 Robert Dewar <dewar@gnat.com>
28637 * s-crtl.ads: Fix header format
28638 Change Pure to Preelaborate
28640 2003-12-17 Ed Schonberg <schonberg@gnat.com>
28642 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
28643 the expression type only if it is declared in the current unit.
28645 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
28646 are universal and already analyzed, as can occur in constrained
28647 subcomponents that depend on discriminants, when one constraint is a
28650 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
28651 type Any_Fixed is legal as the argument of a conversion, if only one
28652 fixed-point type is in context.
28654 2003-12-17 GNAT Script <nobody@gnat.com>
28656 * Make-lang.in: Makefile automatically updated
28658 2003-12-15 Robert Dewar <dewar@gnat.com>
28660 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
28663 2003-12-15 Vincent Celier <celier@gnat.com>
28665 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
28666 (Gnatchop): Do not set failure status when reporting the number of
28669 2003-12-15 Doug Rupp <rupp@gnat.com>
28671 * s-ctrl.ads: New file.
28673 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
28675 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
28676 (GNATBIND_OBJS): Add ada/s-crtl.o.
28678 * Makefile.in [VMS]: Clean up ifeq rules.
28680 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
28681 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
28682 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
28683 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
28684 s-tasdeb.adb: Update copyright.
28685 Import System.CRTL.
28686 Make minor modifications to use System.CRTL declared functions instead
28687 of importing locally.
28689 2003-12-15 GNAT Script <nobody@gnat.com>
28691 * Make-lang.in: Makefile automatically updated
28693 2003-12-11 Ed Falis <falis@gnat.com>
28695 * 5zinit.adb: Clean up.
28697 * 5zintman.adb (Notify_Exception): replaced case statement with a call
28698 to __gnat_map_signal, imported from init.c to support
28699 signal -> exception mappings that depend on the vxWorks version.
28702 Created and exported __gnat_map_signal to support signal -> exception
28703 mapping that is dependent on the VxWorks version.
28704 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
28706 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
28708 * 5wosinte.ads: Link with -mthreads switch.
28710 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
28712 * init.c (__gnat_install_handler [NetBSD]): Set
28713 __gnat_handler_installed, as done on all other platforms.
28714 Remove duplicated code.
28716 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
28718 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
28720 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
28722 * sinfo.ads: Fix inconsistent example code in comment.
28724 2003-12-11 Robert Dewar <dewar@gnat.com>
28726 * a-tiinau.adb: Add a couple of comments
28728 * sem_ch3.adb: Minor reformatting
28731 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
28732 Minor reformatting throughout
28734 2003-12-11 Ed Schonberg <schonberg@gnat.com>
28736 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
28737 bounds of a loop, create a separate block in order to generate proper
28738 cleanup actions to prevent memory leaks.
28740 * sem_res.adb (Resolve_Call): After a call to
28741 Establish_Transient_Scope, the call may be rewritten and relocated, in
28742 which case no further processing is needed.
28744 * sem_util.adb: (Wrong_Type): Refine previous fix.
28745 Fixes ACATS regressions.
28748 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
28751 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
28753 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
28754 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
28757 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
28760 2003-12-08 Robert Dewar <dewar@gnat.com>
28762 * 7sintman.adb: Minor reformatting
28764 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
28765 standard linker options to get standard libraries linked. We now plan
28766 to provide dummy versions of these libraries to match the appropriate
28767 configurable run-time (e.g. if a library is not needed at all, provide
28768 a dummy empty library).
28770 * targparm.ads: Configurable_Run_Time mode no longer affects linker
28771 options (-L parameters and standard libraries). What we plan to do is
28772 to provide dummy libraries where the libraries are not required.
28774 * gnatbind.adb: Minor comment improvement
28776 2003-12-08 Javier Miranda <miranda@gnat.com>
28778 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
28779 aggregate in the parent. Otherwise constants with limited aggregates
28780 are not supported. Add new formal to pass the component type (Ctype).
28781 It is required to call the corresponding IP subprogram in case of
28782 default initialized components.
28783 (Gen_Assign): In case of default-initialized component, generate a
28784 call to the IP subprogram associated with the component.
28785 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
28786 of aggregate with default initialized components.
28787 (Has_Default_Init_Comps): Improve implementation to recursively check
28788 all the present expressions.
28790 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
28791 to indicate that the initialization call corresponds to a
28792 default-initialized component of an aggregate.
28793 In case of default initialized aggregate with tasks this parameter is
28794 used to generate a null string (this is just a workaround that must be
28795 improved later). In case of discriminants, this parameter is used to
28796 generate a selected component node that gives access to the discriminant
28799 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
28800 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
28801 allocated aggregates with default-initialized components.
28803 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
28804 the box notation is used in positional aggregates.
28806 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
28808 * lib.ads: Fix typo in comment
28810 2003-12-08 Vincent Celier <celier@gnat.com>
28812 * prj.adb (Project_Empty): New component Unkept_Comments
28813 (Scan): Remove procedure; moved to Prj.Err.
28815 * prj.ads (Project_Data): New Boolean component Unkept_Comments
28816 (Scan): Remove procedure; moved to Prj.Err.
28818 * prj-dect.adb: Manage comments for the different declarations.
28820 * prj-part.adb (With_Record): New component Node
28821 (Parse): New Boolean parameter Store_Comments, defaulted to False.
28822 Set the scanner to return ends of line and comments as tokens, if
28823 Store_Comments is True.
28824 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
28825 comments are associated with these nodes. Store the node IDs in the
28827 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
28829 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
28830 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
28831 current project. Call Tree.Restore afterwards. Set the various nodes
28832 for comment storage (Next_End, End_Of_Line, Previous_Line,
28835 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
28836 defaulted to False.
28838 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
28839 to False. When Truncated is True, truncate the string, never go to the
28841 (Write_End_Of_Line_Comment): New procedure
28842 (Print): Process comments for nodes N_With_Clause,
28843 N_Package_Declaration, N_String_Type_Declaration,
28844 N_Attribute_Declaration, N_Typed_Variable_Declaration,
28845 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
28846 Process nodes N_Comment.
28848 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
28849 without comments and there are some comments, set the flag
28850 Unkept_Comments to True.
28851 (Scan): If there are comments, set the flag Unkept_Comments to True and
28852 clear the comments.
28853 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
28854 (Next_End_Nodes: New table
28855 (Comment_Zones_Of): New function
28856 (Scan): New procedure; moved from Prj. Accumulate comments in the
28857 Comments table and set end of line comments, comments after, after end
28859 (Add_Comments): New procedure
28860 (Save, Restore, Seset_State): New procedures
28861 (There_Are_Unkept_Comments): New function
28862 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
28863 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
28865 (First_Comment_After, First_Comment_After_End): New functions
28866 (First_Comment_Before, First_Comment_Before_End): New functions
28867 (Next_Comment): New function
28868 (End_Of_Line_Comment, Follows_Empty_Line,
28869 Is_Followed_By_Empty_Line): New functions
28870 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
28871 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
28872 (Set_Next_Comment): New procedure
28873 (Default_Project_Node): Associate comment before if the node can store
28876 * scans.ads (Token_Type): New enumeration value Tok_Comment
28877 (Comment_Id): New global variable
28879 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
28880 defaulted to False.
28881 (Scan): Store position of start of comment. If comments are tokens, set
28882 Comment_Id and set Token to Tok_Comment when scanning a comment.
28883 (Set_Comment_As_Token): New procedure
28885 * sinput-p.adb: Update Copyright notice
28886 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
28887 that no longer exists.
28889 2003-12-08 Javier Miranda <miranda@gnat.com>
28891 * sem_aggr.adb: Add dependence on Exp_Tss package
28892 Correct typo in comment
28893 (Resolve_Aggregate): In case of array aggregates set the estimated
28894 type of the aggregate before calling resolve. This is needed to know
28895 the name of the corresponding IP in case of limited array aggregates.
28896 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
28897 in case of default initialized array components.
28899 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
28900 types. Required to give support to limited aggregates in generic
28903 2003-12-08 Ed Schonberg <schonberg@gnat.com>
28905 * sem_ch3.adb (Check_Initialization): For legality purposes, an
28906 inlined body functions like an instantiation.
28907 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
28908 until bounds are analyzed, to diagnose premature use of type.
28910 * sem_util.adb (Wrong_Type): Improve error message when the type of
28911 the expression is used prematurely.
28913 2003-12-08 GNAT Script <nobody@gnat.com>
28915 * Make-lang.in: Makefile automatically updated
28917 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
28919 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
28920 they are automatically generated by Make-lang.in and cause nothing but
28921 maintenance troubles.
28923 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
28925 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
28926 version of this unit).
28928 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
28930 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
28931 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
28932 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
28933 the body of System.Interrupt_Management common to several targets.
28934 Update copyright notice when appropriate.
28936 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
28939 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
28940 to ensure that the kernel fills in the interrupted context structure
28941 before calling a signal handler, which is necessary to be able to
28942 unwind past it. Update the copyright notice.
28944 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
28946 * a-elchha.ads: New file.
28948 * a-elchha.adb: New default last chance handler. Contents taken from
28949 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
28951 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
28952 is moved to a-elchha.adb to provide a target-independent default last
28955 * Makefile.rtl: Add a-elchha.o
28957 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
28959 2003-12-05 Ed Schonberg <schonberg@gnat.com>
28961 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
28962 declared in an instance, do not inline the call if the instance is not
28963 frozen yet, to prevent order of elaboration problems.
28965 * sem_prag.adb: Add comments for previous fix.
28967 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
28969 * g-table.adb: Use the right variable in Set_Item.
28970 Update copyright notice.
28972 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
28974 * Makefile.in: Remove unused rules.
28976 2003-12-05 Vincent Celier <celier@gnat.com>
28978 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
28979 -nostdlib. Not needed here after all.
28981 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
28984 * adaint.h, adaint.c, g-os_lib.ads:
28985 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
28986 on some platforms (including FreeBSD), it is a 64 bit value.
28987 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
28989 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
28991 * gnatvsn.ads (Library_Version): Now contain only the relevant
28993 (Verbose_Library_Version): New constant.
28995 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
28996 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
28997 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
28999 * gnatlbr.adb: Clean up: replace Library_Version by
29000 Verbose_Library_Version.
29002 * make.adb, lib-writ.adb, exp_attr.adb:
29003 Clean up: replace Library_Version by Verbose_Library_Version.
29005 * 5lintman.adb: Removed.
29008 Update and simplify computation of LIBRARY_VERSION.
29009 Fix computation of GSMATCH_VERSION.
29010 5lintman.adb is no longer used: replaced by 7sintman.adb.
29012 2003-12-03 Robert Dewar <dewar@gnat.com>
29015 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
29016 name. Modified to consider small non-bit-packed arrays as troublesome
29017 and in need of component-by-component assigment expansion.
29019 2003-12-03 Vincent Celier <celier@gnat.com>
29021 * lang-specs.h: Process nostdlib as nostdinc
29023 * back_end.adb: Update Copyright notice
29024 (Scan_Compiler_Arguments): Process -nostdlib directly.
29026 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
29029 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
29030 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
29031 included in HIE_NONE_TARGET_PAIRS.
29033 2003-12-03 Ed Schonberg <schonberg@gnat.com>
29036 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
29037 is legal in an instance, because legality is cheched in the template.
29040 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
29041 appplied to an unchecked conversion of a formal parameter.
29044 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
29047 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
29049 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
29050 routines. The second one is new functionality to deal with backtracing
29051 through signal handlers.
29052 (unwind): Split into the two separate subroutines above.
29053 Update the documentation, and deal properly with sizeof (REG) different
29054 from sizeof (void*).
29056 2003-12-01 Nicolas Setton <setton@act-europe.fr>
29058 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
29059 so that the debugger can reliably access the value of the parameter,
29060 and therefore is able to display the exception name when an exception
29061 breakpoint is reached.
29063 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
29065 * fmap.adb: Fix typo in warning message.
29067 * g-socket.ads, g-socket.adb: Make Free a visible instance of
29068 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
29070 2003-12-01 Vincent Celier <celier@gnat.com>
29072 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
29074 (Build_Library): Get the switches only if Default_Switches is declared
29077 2003-12-01 Ed Schonberg <schonberg@gnat.com>
29079 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
29080 actuals that are indexed components, reanalyze actual to ensure that
29081 packed array references are properly expanded.
29083 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
29084 attempted assignment to a discriminant.
29086 2003-12-01 Robert Dewar <dewar@gnat.com>
29088 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
29091 * switch-c.adb: Minor reformatting of comments
29093 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
29095 * Makefile.in: Clean ups.
29097 2003-12-01 GNAT Script <nobody@gnat.com>
29099 * Make-lang.in: Makefile automatically updated
29101 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
29103 * 5wsystem.ads: Disable zero cost exception, not ready yet.
29105 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
29107 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
29108 to force serialization.
29110 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
29112 * g-socket.ads, g-socket.adb:
29113 Clarify documentation of function Stream. Introduce a Free procedure
29114 to release the returned Stream once it becomes unused.
29116 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
29118 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
29120 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
29121 since NT 4 cannot handle timeout values that are too large,
29122 e.g. DWORD'Last - 1.
29124 2003-11-26 Ed Schonberg <schonberg@gnat.com>
29127 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
29128 in procedure calls and whose expansion must be deferred.
29130 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
29134 (Build_Derived_Array_Type): Create operator for unconstrained type
29135 if ancestor is unconstrained.
29137 2003-11-26 Vincent Celier <celier@gnat.com>
29139 * make.adb (Project_Object_Directory): New global variable
29140 (Change_To_Object_Directory): New procedure
29141 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
29142 of Change_Dir directly. Do not change working directory to object
29143 directory of main project after each compilation.
29144 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
29146 Change to object directory of main project before binding step.
29147 (Initialize): Initialize Project_Object_Directory to No_Project
29150 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
29151 binding a Stand-Alone Library.
29153 * output.adb: Update Copyright notice
29154 (Write_Char): Output buffer when full
29156 2003-11-26 Robert Dewar <dewar@gnat.com>
29158 * sem_ch13.adb: (Check_Size): Reset size if size is too small
29161 (Check_Size): Fix documentation to include bit-packed array case
29163 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
29165 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
29167 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
29169 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
29172 * utils.c (init_gigi_decls): Change name of built-in setjmp to
29173 __builtin_setjmp, since this is apparently needed by recent
29176 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29178 * adadecode.c: Only include ctype.h if not IN_GCC.
29179 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
29181 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
29184 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
29185 signals and interrupts.
29187 * 5zintman.ads: New File.
29189 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
29190 add exception signals to the set of unmasked signals.
29193 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
29194 between signals and interrupts.
29195 Add to Unblocked_Signal_Mask the set of signals that are in
29199 Adding a check to see whether the Interrupt_ID we want to unmask is in
29200 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
29201 reason is that the index type of the Keep_Unmasked array is not always
29202 Interrupt_ID; it may be a subtype of Interrupt_ID.
29204 2003-11-24 Gary Dismukes <dismukes@gnat.com>
29207 (Remove_Side_Effects): Condition constantness of object created for a
29208 an unchecked type conversion on the constantness of the expression
29209 to ensure the correct value for 'Constrained when passing components
29210 of view-converted class-wide objects.
29212 2003-11-24 Robert Dewar <dewar@gnat.com>
29214 * par-load.adb (Load): Improve handling of misspelled and missing units
29215 Removes several cases of compilation abandoned messages
29217 * lib.adb: (Remove_Unit): New procedure
29219 * lib.ads: (Remove_Unit): New procedure
29221 * lib-load.adb: Minor reformatting
29223 2003-11-24 Vincent Celier <celier@gnat.com>
29226 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
29227 (Marking_Label): Label to mark processed source files. Incremented for
29229 (Gnatmake): Increase Marking_Labet for each executable
29230 (Is_Marked): Compare against marking label
29231 (Mark): Mark with marking label
29233 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
29236 Move the declaration of the TSD for System.Threads to System.Soft_Links.
29239 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
29240 (rts-cert): build a single relocatable object for the run-time lib.
29243 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
29246 Use gnatls rather than gcc to obtain the location of GNAT RTL for
29249 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
29251 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
29252 can not use it as before (that is, as a variable) when dumping it into
29253 the tree file. Add a local variable to store the result of this
29254 function and to be used as the string to be written into the tree.
29256 * scn.adb (Initialize_Scanner): Add comments explaining the recent
29259 * sinput.adb (Source_First, Source_Last): In case of
29260 Internal_Source_File, replace returning attributes of
29261 Internal_Source_Ptr (which is wrong) with returning attributes of
29264 2003-11-24 Ed Schonberg <schonberg@gnat.com>
29267 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
29268 used for implicit concatenation operators.
29272 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
29273 task bodies that are in the scope of a Suppress pragma.
29274 (Check_A Call): Use the flag to prevent spurious elaboration checks.
29276 * sinfo.ads, sinfo.adb:
29277 New flag No_Elaboration_Check on function/procedure calls, to properly
29278 suppress checks on calls in task bodies that are within a local suppress
29282 (Expand_Concatenate_Other): Use the proper integer type for the
29283 expression for the upper bound, to avoid universal_integer computations
29286 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
29288 * .cvsignore: Delete.
29290 2003-11-21 Andreas Schwab <schwab@suse.de>
29292 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
29294 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
29296 * 5wsystem.ads: Enable zero cost exception.
29298 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
29300 * 5ztiitho.adb: Remove an unreferenced variable.
29302 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
29304 * adaint.c: For FreeBSD, use mkstemp.
29306 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
29308 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
29310 2003-11-21 Robert Dewar <dewar@gnat.com>
29312 * bld.adb: Remove useless USE of gnatvsn
29314 * gnatchop.adb: Minor reformatting
29315 Clean up version handling to be more consistent
29317 * gnatxref.adb: Minor reformatting
29319 * gprcmd.adb: Minor reformatting
29320 Fix output of copyright to be more consistent with other tools
29322 2003-11-21 Vincent Celier <celier@gnat.com>
29324 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
29326 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
29328 * atree.adb (Initialize): Add initializations for global variables
29329 used in New_Copy_Tree.
29331 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
29332 Internal_Source_File as the actual).
29333 Put the set of statements creating Any_Character before the set of
29334 statements creating Any_Array to have Any_Character fully initialized
29335 when it is used in creating Any_Array.
29337 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
29338 not call Scan in case if the actual is Internal_Source_File
29339 Add 2003 to copyright note.
29341 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
29342 processing Internal_Source_File.
29344 * types.ads: Add the constant Internal_Source_File representing the
29345 source buffer for artificial source-code-like strings created within
29346 the compiler (the definition of Source_File_Index is changed).
29348 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
29350 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
29351 56system.ads: New file, FreeBSD version.
29353 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
29355 * Make-lang.in (ada.extraclean): Delete.
29357 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
29359 * gnatmem.adb: Clean up verbose output.
29361 * gprcmd.adb: Change copyright to FSF.
29363 2003-11-19 Vincent Celier <celier@gnat.com>
29365 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
29366 and Version (ignored).
29368 * symbols.ads: (Policy): New type
29369 (Initialize): New parameter Reference, Symbol_Policy and
29371 Remove parameter Force.
29372 Minor reformatting.
29374 * snames.ads, snames.adbadb: New standard names
29375 Library_Reference_Symbol_File and Library_Symbol_Policy
29378 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
29382 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
29384 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
29386 * prj.adb: (Project_Empty): New component Symbol_Data
29388 * prj.ads: (Policy, Symbol_Record): New types
29389 (Project_Data): New component Symbol_Data
29392 New attributes Library_Symbol_File, Library_Symbol_Policy and
29393 Library_Reference_Symbol_File.
29396 (Ada_Check): When project is a Stand-Alone library project, process
29397 attribute Library_Symbol_File, Library_Symbol_Policy and
29398 Library_Reference_Symbol_File.
29400 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
29401 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
29402 5sml-tgt.adb (Build_Dynamic_Library): New parameter
29403 Symbol_Data (ignored).
29405 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
29406 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
29407 functions Option_File_Name and Version_String. Set new options of
29408 gnatsym related to symbol file, symbol policy and reference symbol
29412 Extensive modifications to take into account the reference symbol file,
29413 the symbol policy, the library version and to put in the symbol file the
29414 minor and major IDs.
29416 * bld.adb (Process_Declarative_Items): Put second argument of
29417 gprcmd to_absolute between single quotes, to avoid problems with
29420 * bld-io.adb: Update Copyright notice.
29421 (Flush): Remove last character of a line, if it is a back slash, to
29422 avoid make problems.
29425 Implement new scheme with reference symbol file and symbol policy.
29427 * g-os_lib.ads: (Is_Directory): Clarify comment
29429 2003-11-19 Robert Dewar <dewar@gnat.com>
29431 * atree.adb: Move New_Copy_Tree global variables to head of package
29433 * errout.adb: Minor reformatting
29435 2003-11-19 Javier Miranda <miranda@gnat.com>
29437 * sem_ch4.adb: (Diagnose_Call): Improve error message.
29438 Add reference to Ada0Y (AI-50217)
29440 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
29441 sem_util.adb: Add reference to AI-50217
29443 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
29445 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
29447 * sem_aggr.adb: Complete documentation of AI-287 changes
29449 * par-ch4.adb: Document previous changes.
29451 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
29452 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
29455 * exp_aggr.adb: Add references to AI-287 in previous changes
29457 2003-11-19 Ed Schonberg <schonberg@gnat.com>
29460 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
29461 in the rewriting is the result of an inlined call.
29463 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
29464 parameter is a type conversion, use original node to construct the
29465 post-call assignment, because expression may have been rewritten, e.g.
29466 if it is a packed array.
29469 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
29470 body, just as it is in an instance.
29471 Categorization routines
29473 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
29474 Instantiate_Object): Set proper sloc reference for message on missing
29477 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
29479 * Makefile.in: Add FreeBSD libgnat pairs.
29481 * usage.adb: Fix typo in usage message.
29483 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
29485 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
29486 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
29487 pragma Thread_Body.
29488 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
29490 * s-thread.adb: This file is now a dummy implementation of
29493 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
29495 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
29497 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
29499 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
29500 instanciation references in the parent type description.
29502 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29504 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
29506 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
29507 TYPE_PRECISION directly from esize.
29509 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
29512 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
29514 * init.c: Initialization routines for FreeBSD
29516 * link.c: Link info for FreeBSD
29518 * sysdep.c: Add the case of FreeBSD
29520 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
29522 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
29523 already called in System.Threads.
29525 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
29526 environment task, as it has been moved to System.Threads.Initialization.
29528 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
29530 * adaint.c (__gnatlib_install_locks): Only reference
29531 __gnat_install_locks on VMS, since other platforms can avoid using
29532 --enable-threads=gnat
29534 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29536 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
29538 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
29539 TYPE_PACKED_ARRAY_TYPE_P.
29540 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
29542 Part of PR ada/12806
29543 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
29544 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
29546 2003-11-17 Vincent Celier <celier@gnat.com>
29548 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
29550 Do not set exit status to Failure when Warning is True.
29551 (Gnatchop): Make errors "no compilation units found" and
29552 "no source files written" warnings only.
29554 * make.adb (Gnatmake): When using a project file, set
29555 Look_In_Primary_Dir to False.
29556 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
29557 and Local_Configuration_Pragmas in the project where they are declared
29558 not an extending project which might have inherited them.
29560 * osint.adb (Locate_File): If Name is already an absolute path, do not
29561 look for a directory.
29563 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
29564 -gnats (Check_Syntax) is used, issue only a warning, not an error.
29566 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
29567 in objects of type Variable_Value.
29569 * prj.ads: (Variable_Value): New component Project
29571 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
29572 is in a project extended by Project.
29574 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
29575 Project of Variable_Values to this new parameter value.
29576 (Expression): Set component Project of Variable_Values.
29577 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
29578 Set the component Project in array elements.
29580 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
29582 * errout.adb: (Initialize): Add initialization for error nodes.
29584 * sem_ch12.adb (Initialize): Add missing initializations for
29585 Exchanged_Views and Hidden_Entities.
29587 2003-11-17 Ed Schonberg <schonberg@gnat.com>
29589 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
29590 already instantiated tree for use in subsequent inlining.
29591 (Analyze_Associations, Instantiate_Formal_Subprogram,
29592 Instantiate_Object): improve error message for mismatch in
29595 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
29596 instantiations of subprograms declared in instances.
29598 2003-11-17 Javier Miranda <miranda@gnat.com>
29600 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
29601 executed only under the Extensions_Allowed flag.
29603 2003-11-17 Robert Dewar <dewar@gnat.com>
29605 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
29607 (Address_Image): Fix bug of returning 0x instead of 0x0
29608 Minor reformatting (function specs).
29610 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
29611 (missed case of 33-63)
29613 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
29615 * s-thread.adb: Add comments for pragma Restriction
29617 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
29618 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
29620 2003-11-17 Ed Falis <falis@gnat.com>
29622 * s-thread.adb: Added No_Tasking restriction for this implementation.
29624 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
29626 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
29627 instanciation references in the parent type description.
29629 2003-11-17 GNAT Script <nobody@gnat.com>
29631 * Make-lang.in: Makefile automatically updated
29633 2003-11-16 Jason Merrill <jason@redhat.com>
29635 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
29636 and TAGS files that include them for each front end.
29638 2003-11-14 Andreas Jaeger <aj@suse.de>
29640 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
29641 is the canonical version.
29642 * misc.c (gnat_handle_option): Likewise.
29644 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
29646 * 5nsystem.ads: New file for x86_64-linux-gnu.
29648 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
29650 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
29652 * comperr.adb: Fix logic in previous change.
29654 2003-11-13 Vincent Celier <celier@gnat.com>
29656 * 5bml-tgt.adb (Build_Dynamic_Library): Use
29657 Osint.Include_Dir_Default_Prefix instead of
29658 Sdefault.Include_Dir_Default_Name.
29660 * gnatlbr.adb: Update Copyright notice
29661 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
29662 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
29663 instead of Sdefault.Object_Dir_Default_Name
29666 (Process_Binder_File): Never suppress the option following -Xlinker
29669 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
29670 Sdefault.Object_Dir_Default_Name.
29672 * osint.ads, osint.adb:
29673 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
29674 Minor reformatting.
29676 * vms_conv.ads: Minor reformating
29677 Remove GNAT STANDARD and GNAT PSTA
29680 Allow GNAT MAKE to have several files on the command line.
29681 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
29682 Sdefault.Object_Dir_Default_Name.
29684 Remove data for GNAT STANDARD
29687 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
29688 Remove data for GNAT STANDARD
29689 Remove options and documentation for -gnatwb/-gnatwB: these warning
29690 options no longer exist.
29692 2003-11-13 Ed Falis <falis@gnat.com>
29694 * 5zthrini.adb: (Init_RTS): Made visible
29697 (Register): Removed unnecessary call to taskVarGet that checked whether
29698 an ATSD was already set as a task var for the argument thread.
29701 Updated comment to reflect that this is a VxWorks version
29702 Added context clause for System.Threads.Initialization
29703 Added call to System.Threads.Initialization.Init_RTS
29705 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
29708 (Init_RTS): New procedure, for the initialization of the run-time lib.
29711 Remove dependancy on System.Init, so that this file can be used in the
29712 AE653 sequential run-time lib.
29714 2003-11-13 Robert Dewar <dewar@gnat.com>
29716 * bindgen.adb: Minor reformatting
29718 2003-11-13 Ed Schonberg <schonberg@gnat.com>
29721 (Apply_Discriminant_Check): Do no apply check if target type is derived
29722 from source type with no applicable constraint.
29725 (Ensure_System_Dependency): Do not apply the style checks that may have
29726 been specified for the main unit.
29729 (Find_Selected_Component): Further improvement in error message, with
29733 (Resolve): Handle properly the case of an illegal overloaded protected
29736 2003-11-13 Javier Miranda <miranda@gnat.com>
29739 (Has_Default_Init_Comps): New function to check the presence of
29740 default initialization in an aggregate.
29741 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
29742 extension aggregate of a limited record. In addition, a new formal
29743 was added to do not initialize the record controller (if any) during
29744 this recursive expansion of ancestors.
29745 (Init_Controller): Add support for limited record components.
29746 (Expand_Record_Aggregate): In case of default initialized components
29747 convert the aggregate into a set of assignments.
29749 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
29750 describing the new syntax.
29751 Nothing else needed to be done because this subprogram delegates part of
29752 its work to P_Precord_Or_Array_Component_Association.
29753 (P_Record_Or_Array_Component_Association): Give support to the new
29754 syntax for default initialization of components.
29757 (Resolve_Aggregate): Relax the strictness of the frontend in case of
29758 limited aggregates.
29759 (Resolve_Record_Aggregate): Give support to default initialized
29761 (Get_Value): In case of default initialized components, duplicate
29762 the corresponding default expression (from the record type
29763 declaration). In case of default initialization in the *others*
29764 choice, do not check that all components have the same type.
29765 (Resolve_Extension_Aggregate): Give support to limited extension
29769 (Check_Initialization): Relax the strictness of the front-end in case
29770 of aggregate and extension aggregates. This test is now done in
29771 Get_Value in a per-component manner.
29773 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
29774 expression corresponds to a limited aggregate. This test is now done
29777 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
29780 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
29781 present in an N_Component_Association node
29783 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
29785 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
29786 type-conformant entry only if they are homographs.
29788 2003-11-13 GNAT Script <nobody@gnat.com>
29790 * Make-lang.in: Makefile automatically updated
29792 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29794 * adadecode.c: Use <> form of include for ctype.h.
29795 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
29797 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29799 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
29800 Works around PR middle-end/6552.
29802 2003-11-10 Ed Falis <falis@gnat.com>
29804 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
29806 * 5zinit.adb: (Install_Handler): Moved back to spec
29807 (Install_Signal_Handlers): Deleted
29809 * 5zthrini.adb: Added context clause for System.Storage_Elements
29810 (Register): Only handles creation of taskVar; initialization moved to
29812 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
29813 Added declaration of environment task secondary stack and
29816 * s-thread.adb: Implement bodies for thread body processing
29819 Added comment identifying supported targets for pragma Thread_Body.
29821 2003-11-10 Pascal Obry <obry@gnat.com>
29823 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
29827 (Open): Properly check for string length before copying into the buffer.
29828 Raises Name_Error if buffer is too small. Note that this was a potential
29831 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
29833 * bindgen.adb, comperr.adb: Code clean ups.
29834 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
29836 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
29838 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
29840 2003-11-10 Vincent Celier <celier@gnat.com>
29843 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
29846 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
29848 * prj.adb: (Project_Empty): Add new boolean component Virtual
29850 * prj.ads: (Virtual_Prefix): New constant string
29851 (Project_Data): New boolean component Virtual
29853 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
29854 a library project is extended by a virtual extending project.
29857 Modifications throughout to implement extending-all project, including:
29858 (Virtual_Hash, Processed_Hash): New hash tables
29859 (Create_Virtual_Extending_Project): New procedure
29860 (Look_For_Virtual_Projects_For): New procedure
29863 (Process): After checking the projects, if main project is an
29864 extending-all project, set the object directory of all virtual extending
29865 project to the object directory of the main project.
29866 Adjust error message when a virtual extending project has the same
29867 object directory as an project being extended.
29868 (Recursive_Process): If name starts with the virtual prefix, set Virtual
29869 to True in the project data.
29872 (Default_Project_Node): Add new boolean component Extending_All
29873 (Is_Extending_All): New function
29874 (Set_Is_Extending_All): New procedure
29876 * prj-tree.ads: (Is_Extending_All): New function
29877 (Set_Is_Extending_All): New procedure
29878 (Project_Node_Record): New boolean component Extending_All
29880 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
29883 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
29885 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
29886 "gprcmd prefix" to define it.
29888 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
29890 * einfo.ads: Fix a typo and remove an extraneous word in comments.
29893 (Create_Dummy_Package_Unit): Set the scope of the entity for the
29894 created dummy package to Standard_Standard, not to itself, to
29895 defend other parts of the front-end against encoutering a cycle in
29899 (Analyze_With_Clause): When setting the entities for the successive
29900 N_Expanded_Names that constitute the name of a child unit, do not
29901 attempt to go further than Standard_Standard in the chain of scopes.
29902 This case arises from the placeholder units created by
29903 Create_Dummy_Package_Unit in the case of a with_clause for a
29904 nonexistent child unit.
29906 2003-11-10 Ed Schonberg <schonberg@gnat.com>
29909 (Expand_Thread_Body): Place subprogram on scope stack, so that new
29910 declarations are given the proper scope.
29913 (Check_Expr_Constants): Reject an expression that contains a constant
29914 created during expansion, and that appears after the object to which
29915 the address clause applies.
29917 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
29918 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
29919 that uses 'Range of a function call with controlled components, so
29920 that the function result can be finalized before starting the loop.
29923 (Find_Selected_Component): Improve error message when prefix is
29924 an implicit dereference of an incomplete type.
29926 2003-11-10 Robert Dewar <dewar@gnat.com>
29928 * opt.ads: New Print_Standard flag for -gnatS switch
29930 * sem_ch13.adb: Remove some additional checks for unaligned arrays
29932 * cstand.adb (Create_Standard): Print out package standard if -gnatS
29935 * debug.adb: Update doc for -gnatds to discuss relationship with new
29938 * sinfo.adb: Add new field Entity_Or_Associated_Node
29940 * sinfo.ads: Add new field Entity_Or_Associated_Node
29941 Update documentation for Associated_Node and Entity fields to clarify
29942 relationship and usage.
29945 (Write_Id): Properly process Associated_Node field in generic template
29948 Recognize new -gnatS switch for printing package Standard
29949 This replaces gnatpsta
29952 Add line for new -gnatS switch for printing package Standard
29953 This replaces gnatpsta
29955 2003-11-10 Andreas Jaeger <aj@suse.de>
29957 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
29960 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
29962 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
29965 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
29967 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
29970 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
29972 * sysdep.c: Add handling of cygwin.
29974 2003-11-10 GNAT Script <nobody@gnat.com>
29976 * Make-lang.in: Makefile automatically updated
29978 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
29981 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
29982 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
29983 Replace GNAT_ROOT by GCC_ROOT.
29985 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
29987 2003-11-06 Zack Weinberg <zack@codesourcery.com>
29989 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
29990 and update for changed meaning of GET_MODE_BITSIZE.
29992 2003-11-04 Doug Rupp <rupp@gnat.com>
29994 * sysdep.c: Problem discovered during IA64 VMS port.
29995 [VMS] #include <unixio.h> to get proper prototypes.
29998 Issues discovered/problems fixed during IA64 VMS port.
29999 [VMS] #define _POSIX_EXIT for proper semantics.
30000 [VMS] #include <unixio.h> for proper prototypes.
30001 [VMS] (fork): #define IA64 version.
30002 (__gnat_os_exit): Remove unnecessary VMS specific code.
30004 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30006 Part of PR ada/12806
30007 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
30011 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
30014 * targtyps.c, decl.c, misc.c,
30015 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
30016 routines to work around change in FP sizing semantics in GCC.
30019 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
30021 * gigi.h: (enumerate_modes): New function.
30023 * Make-lang.in: (ada/misc.o): Add real.h.
30025 * misc.c: (enumerate_modes): New function.
30027 2003-11-04 Robert Dewar <dewar@gnat.com>
30029 * 3vtrasym.adb: Minor reformatting
30030 Use terminology encoded/decoded name, rather than C++ specific notion
30031 of mangling (this is the terminology used throughout GNAT).
30033 * einfo.h: Regenerated
30035 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
30038 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
30040 * par-prag.adb: Add dummy entry for Thread_Body pragma
30043 Add entries for System.Threads entities for thread body processing
30046 (Analyze_Pragma, Access attributes): Check these are not applied to a
30047 thread body, since this is not permitted
30049 * sem_prag.adb: Add processing for Thread_Body pragma.
30053 (Resolve_Call): Check for incorrect attempt to call a thread body
30054 procedure with a direct call.
30056 * snames.ads, snames.adb: Add entry for Thread_Body pragma
30057 Add names associated with thread body expansion
30059 * snames.h: Add entry for Thread_Body pragma
30061 * s-thread.adb: Add entries for thread body processing
30062 These are dummy bodies so far
30064 * s-thread.ads: Add documentation on thread body handling.
30065 Add entries for thread body processing.
30067 2003-11-04 Javier Miranda <miranda@gnat.com>
30070 (Build_Limited_Views): Return after posting an error in case of limited
30071 with_clause on subprograms, generics, instances or generic renamings
30072 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
30073 on subprograms, generics, instances or generic renamings
30075 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
30077 * raise.c (setup_to_install): Correct mistake in last revision; two
30078 arguments out of order.
30080 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
30081 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
30082 notice, missed in previous change.
30083 Remove trailing blanks and other style errors introduced in previous
30086 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
30088 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
30089 rid of the wrapper for a LJM type, ensuring we don't do that if the
30090 field is addressable. This avoids potential low level type view
30091 mismatches later on, for instance in a by-reference argument passing
30094 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30096 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
30097 aligned at byte boundary.
30099 2003-11-04 Joel Brobecker <brobecker@gnat.com>
30101 * decl.c (components_to_record): Do not delete the empty variants from
30102 the end of the union type.
30104 2003-11-04 Ed Schonberg <schonberg@gnat.com>
30106 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
30107 operation for a derived type, an explicit declaration may use a local
30108 subtype of Boolean.
30110 2003-11-04 Vincent Celier <celier@gnat.com>
30112 * make.adb (Gnatmake): Allow main sources on the command line with a
30113 library project when it is only for compilation (no binding or
30116 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30118 * Makefile.in: Remove many duplicate variables.
30120 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
30122 * Make-lang.in (dvi): Move targets to $(docobjdir).
30123 (gnat_ug_vms.dvi): Simplify rule and adjust target.
30124 (gnat_ug_wnt.dvi): Likewise.
30125 (gnat_ug_unx.dvi): Likewise.
30126 (gnat_ug_vxw.dvi): Likewise.
30127 (gnat_rm.dvi): Likewise.
30128 (gnat-style.dvi): Likewise.
30130 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
30132 * gigi.h: Missed commit from update for C90.
30134 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
30136 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
30138 2003-10-31 Andreas Schwab <schwab@suse.de>
30140 * raise.c (get_action_description_for): Fix typo in last change.
30142 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
30145 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
30146 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
30148 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
30150 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
30151 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
30152 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
30153 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
30154 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
30156 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
30159 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
30160 numbers when symbol name is too long.
30162 2003-10-30 Ed Falis <falis@gnat.com>
30164 * g-signal.ads, g-signal.adb: New files
30166 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
30168 * Makefile.rtl: Introduce GNAT.Signals
30170 2003-10-30 Robert Dewar <dewar@gnat.com>
30172 * freeze.adb: Minor reformatting
30174 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
30176 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
30177 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
30178 New handling of Id_Check parameter to improve recognition of keywords
30179 used as identifiers.
30180 Update copyright notice to include 2003
30182 2003-10-29 Robert Dewar <dewar@gnat.com>
30184 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
30185 sem_ch10.adb: Minor reformatting
30187 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
30188 (Expand_Assign_Record): Test right hand side for bit unaligned as well
30190 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
30192 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
30193 Support for TBK$SYMBOLIZE-based symbolic traceback.
30195 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
30198 Revert previous change, that did not work well when pragma No_Run_Time
30199 was used in conjunction with a run-time other than ZFP.
30201 2003-10-29 Vincent Celier <celier@gnat.com>
30204 (Gnatmake): When there are no Ada mains in attribute Main, disable the
30205 bind and link steps only is switch -z is not used.
30207 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
30209 * Makefile.generic: Remove duplicated setting of CC.
30211 * Makefile.prolog: Set CC to gcc by default, to override make's
30214 * einfo.h: Regenerated.
30216 2003-10-29 Ed Schonberg <schonberg@gnat.com>
30218 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
30219 current body, after compiling subunit.
30221 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
30222 when in deleted code, because gigi needs properly ordered freeze
30223 actions to annotate types.
30225 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
30226 prevent the premature freezing of record type that contains
30227 subcomponents with a private type that does not yet have a completion.
30229 2003-10-29 Javier Miranda <miranda@gnat.com>
30232 (Analyze_Package_Instantiation): Check that instances can not be used in
30233 limited with_clauses.
30236 (Analyze_Package_Renaming): Check that limited withed packages cannot
30237 be renamed. Improve text on error messages related to limited
30240 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
30242 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
30243 Update copyright notice.
30245 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
30246 (Install_Limited_Context_Clauses): New subprogram that isolates all the
30247 checks required for limited context_clauses and installs the limited
30249 (Install_Limited_Withed_Unit): Complete its documentation.
30250 (Analyze_Context): Check that limited with_clauses are only allowed in
30252 (Install_Context): Call Install_Limited_Context_Clauses after the
30253 parents have been installed.
30254 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
30255 package as 'From_With_Type'; this mark indicates that the limited view
30256 is installed. Used to check bad usages of limited with_clauses.
30257 (Build_Limited_Views): Do not add shadow entities to the scope's list
30258 of entities. Do not add real entities to the Non_Limited_Views chain.
30259 Improve error notification.
30260 (Remove_Context_Clauses): Remove context clauses in two phases:
30261 limited views first and regular views later (to maintain the
30263 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
30264 its visible entities.
30266 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
30268 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
30269 with any type that Is_Fixed_Point_Type.
30271 * sinfo.ads: Fix documentation for Associated_Node attribute.
30273 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
30275 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
30276 both '-gnatc' and '-gnatt' are specified.
30278 * atree.adb (Initialize): Add initialization for Node_Count (set to
30281 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30283 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
30284 do not consider as Pure.
30286 Part of implementation of function-at-a-time:
30288 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
30289 (tree_transform): Add new argument to build_component_ref.
30290 (tree_transform, case N_Assignment_Statement): Make and return an
30292 (tree_transform): If result IS_STMT, set flags and return it.
30293 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
30295 * utils2.c (build_simple_component_ref, build_component_ref): Add new
30297 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
30298 (build_allocator): Likewise.
30300 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
30301 Add new arg to build_component_ref.
30302 (maybe_unconstrained_array, unchecked_convert): Likewise.
30304 * ada-tree.def (EXPR_STMT): New code.
30306 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
30308 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
30309 build_component_ref calls.
30311 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
30313 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
30314 (build_component_ref): Add new argument, NO_FOLD_P.
30316 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
30318 * Makefile.generic: Add missing substitution on object_deps handling.
30321 * Make-lang.in (check-ada): Enable ACATS test suite.
30323 2003-10-27 Robert Dewar <dewar@gnat.com>
30326 (Freeze_Array_Type): We do not need an initialization routine for types
30327 derived from String or Wide_String. They should be treated the same
30328 as String and Wide_String themselves. This caused problems with the
30329 use of Initialize_Scalars.
30332 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
30333 composites. This allows use of component clauses that are not byte
30337 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
30338 is an attempt to pack an array of atomic objects.
30340 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
30342 2003-10-27 Pascal Obry <obry@gnat.com>
30345 (Basename): Check for drive letters in a pathname only on DOS based OS.
30347 2003-10-27 Vincent Celier <celier@gnat.com>
30350 (Gnatmake): When unable to change dir to the object dir, display the
30351 content of the parent dir of the obj dir, to try to understand why this
30354 2003-10-27 GNAT Script <nobody@gnat.com>
30356 * Make-lang.in: Makefile automatically updated
30358 2003-10-27 Ed Schonberg <schonberg@gnat.com>
30361 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
30362 should not be done in Save/Restore_Scope_Stack, because it is performed
30366 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
30367 whether use clauses should be removed/restored.
30370 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
30371 whether use clauses should be removed/restored.
30373 2003-10-26 Andreas Jaeger <aj@suse.de>
30375 * Makefile.in: Remove duplicated lines.
30377 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
30379 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
30380 minimize the differences with ACT tree.
30382 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
30383 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
30384 Gnatvsn.Gnat_Static_Version_String to reduce differences between
30387 2003-10-24 Pascal Obry <obry@gnat.com>
30390 * adadecode.c (ostrcpy): New function.
30391 (__gnat_decode): Use ostrcpy of strcpy.
30392 (has_prefix): Set first parameter a const.
30393 (has_suffix): Set first parameter a const.
30394 Update copyright notice. Fix source name in header.
30395 Removes a trailing space.
30397 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
30400 Remove the test against being in No_Run_Time_Mode before generating a
30401 call to Register_Tag. It is redundant with the test against the
30402 availability of the function Register_Tag.
30404 2003-10-24 Vincent Celier <celier@gnat.com>
30406 * g-catiio.adb: (Month_Name): Correct spelling of February
30408 * make.adb: (Mains): New package
30409 (Initialize): Call Mains.Delete
30410 (Gnatmake): Check that each main on the command line is a source of a
30411 project file and, if there are several mains, each of them is a source
30412 of the same project file.
30413 (Gnatmake): When a foreign language is specified in attribute Languages,
30414 no main is specified on the command line and attribute Mains is not
30415 empty, only build the Ada main. If there is no Ada main, just compile
30416 the Ada sources and their closure.
30417 (Gnatmake): If a main is specified on the command line with directory
30418 information, check that the source exists and, if it does, that the path
30419 is the actual path of a source of a project.
30422 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
30423 Full_Path is True, return the full path instead of the simple file name.
30424 (Project_Of): New function
30427 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
30428 defaulted to False.
30429 (Project_Of): New function
30431 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
30433 * Makefile.generic:
30434 Ensure objects of main project are always checked and rebuilt if needed.
30435 Set CC to gcc by default.
30436 Prepare new handling of link by creating a global archive (not activated
30439 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
30440 stringt.h: Update copyright notice. Remove trailing blanks.
30441 Fix source name in header.
30443 2003-10-24 Robert Dewar <dewar@gnat.com>
30445 * sem_ch12.adb: Minor reformatting
30448 Minor reformatting (including new function return style throughout)
30451 Minor reformatting (including new function return style throughout)
30453 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
30455 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
30456 stringt.h: Update copyright notice. Remove trailing blanks.
30457 Fix source name in header.
30459 2003-10-24 GNAT Script <nobody@gnat.com>
30461 * Make-lang.in: Makefile automatically updated
30463 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
30465 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
30466 stringt.h: Convert to ISO C90 declarations and definitions.
30468 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
30471 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
30472 External_Tag attribute definition clauses.
30474 2003-10-23 Ed Schonberg <schonberg@gnat.com>
30477 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
30478 child unit, generate a fully qualified name to avoid spurious errors
30479 when the context contains renamings of different child units with
30480 the same simple name.
30482 * exp_dbug.ads: Add documentation on name qualification for renamings
30485 2003-10-23 Robert Dewar <dewar@gnat.com>
30487 * g-regpat.ads, g-regpat.adb: Minor reformatting
30489 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
30491 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
30493 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30495 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
30498 * urealp.h: (Machine): Update to proper definition.
30500 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
30502 * init.c, adaint.c: Minor reformatting.
30504 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
30506 * adaint.c (w32_epoch_offset): Define static const at file level.
30507 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
30508 rather than t_create, t_access in call to GetFileTime. Use union
30509 to convert between FILETIME and unsigned long long.
30510 (__gnat_file_time_name): Test for invalid file handle.
30511 (__gnat_set_filetime_name): Support win32 targets using
30512 w32api SetFileTime.
30514 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
30516 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
30518 * ctrl_c.c (__gnat_int_handler): Remove declaration.
30520 * decl.c (creat_concat_name): Const-ify prefix.
30522 * adaint.c: Include ctype.h if __MINGW32__.
30523 (__gnat_readlink): Mark arguments as possibly unused.
30524 (__gnat_symlink): Likewise.
30525 (__gnat_is_symbolic_link): Likewise.
30526 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
30528 (__gnat_file_time_name): Don't declare struct stat statbuf when
30530 (__gnat_is_absolute_path): Add parenthesis around condition of
30531 'if' statement to avoid warning.
30532 (__gnat_plist_init): Specify void as parameter.
30533 (plist_enter): Likewise.
30534 (plist_leave): Likewise.
30535 (remove_handle): Make static. Initialize prev.
30537 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
30540 * Makefile.in: Disable build of gnatpsta.
30541 * cstreams.c (__gnat_full_name): Minor improvements and clean up
30542 of previous change.
30544 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30546 * tracebak.c (MAX): Avoid redefinition warning.
30548 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
30549 Change msg to const char *.
30550 (__gnat_install_handler): Remove ss, unused.
30551 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
30553 * cstreams.c (__gnat_full_name): Declare p only when used.
30554 (__gnat_full_name) [sgi] Return buffer.
30556 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
30558 * mingw32.h: New file.
30559 * gnat_wrapper.adb: New file.
30561 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
30563 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
30564 string match a pre compiled regular expression (the corresponding
30565 version of the function working on a raw regular expression)
30566 Fix typos in various comments
30567 Update copyright notice in spec
30569 2003-10-21 Gary Dismukes <dismukes@gnat.com>
30572 (Component_Needs_Simple_Initialization): Return False when the type is a
30573 packed bit array. Revise spec comments to document this case.
30576 (Expand_Pragma_Import): Set any expression on the imported object to
30577 empty to avoid initializing imported objects (in particular this
30578 covers the case of zero-initialization of bit arrays).
30579 Update copyright notice.
30581 2003-10-21 Ed Schonberg <schonberg@gnat.com>
30584 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
30585 a subunit is missing.
30586 (Instantiate_Subprogram_Body): If body of function is missing, set type
30587 of return expression explicitly in dummy body, to prevent cascaded
30588 errors when a subunit is missing.
30592 (Access_Subprogram_Declaration): Verify that return type is valid.
30596 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
30601 (Corresponding_Discriminant): If the scope of the discriminant is a
30602 private type without discriminant, use its full view.
30605 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
30607 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
30608 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
30609 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
30610 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
30611 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
30612 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
30613 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
30614 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
30615 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
30616 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
30617 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
30618 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
30619 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
30620 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
30621 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
30622 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
30623 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
30624 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
30625 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
30626 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
30627 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
30628 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
30629 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
30630 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
30631 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
30632 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
30633 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
30634 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
30635 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
30636 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
30637 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
30638 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
30639 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
30640 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
30641 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
30642 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
30643 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
30644 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
30645 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
30646 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
30647 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
30648 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
30649 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
30650 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
30651 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
30652 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
30653 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
30654 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
30655 vms_conv.ads, vms_conv.adb, vms_data.ads,
30656 vxaddr2line.adb: Files added. Merge with ACT tree.
30658 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
30659 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
30660 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
30661 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
30662 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
30663 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
30664 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
30665 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
30666 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
30667 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
30669 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
30670 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
30671 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
30672 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
30673 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
30674 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
30675 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
30676 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
30677 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
30678 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
30679 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
30680 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
30681 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
30682 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
30683 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
30684 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
30685 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
30686 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
30687 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
30688 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
30689 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
30690 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
30691 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
30692 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
30693 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
30694 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
30695 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
30696 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
30697 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
30698 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
30699 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
30700 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
30701 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
30702 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
30703 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
30704 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
30705 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
30706 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
30707 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
30708 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
30709 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
30710 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
30711 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
30712 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
30713 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
30714 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
30715 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
30716 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
30717 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
30718 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
30719 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
30720 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
30721 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
30722 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
30723 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
30724 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
30725 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
30726 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
30727 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
30728 checks.adb, checks.ads, cio.c, comperr.adb,
30729 comperr.ads, csets.adb, cstand.adb, cstreams.c,
30730 debug_a.adb, debug_a.ads, debug.adb, decl.c,
30731 einfo.adb, einfo.ads, errout.adb, errout.ads,
30732 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
30733 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
30734 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
30735 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
30736 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
30737 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
30738 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
30739 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
30740 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
30741 fe.h, fmap.adb, fmap.ads, fname.adb,
30742 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
30743 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
30744 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
30745 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
30746 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
30747 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
30748 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
30749 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
30750 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
30751 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
30752 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
30753 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
30754 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
30755 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
30756 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
30757 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
30758 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
30759 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
30760 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
30761 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
30762 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
30763 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
30764 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
30765 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
30766 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
30767 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
30768 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
30769 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
30770 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
30771 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
30772 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
30773 layout.adb, lib.adb, lib.ads, lib-list.adb,
30774 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
30775 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
30776 link.c, live.adb, make.adb, make.ads,
30777 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
30778 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
30779 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
30780 misc.c, mkdir.c, mlib.adb, mlib.ads,
30781 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
30782 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
30783 namet.adb, namet.ads, namet.h, nlists.ads,
30784 nlists.h, nmake.adt, opt.adb, opt.ads,
30785 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
30786 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
30787 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
30788 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
30789 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
30790 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
30791 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
30792 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
30793 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
30794 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
30795 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
30796 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
30797 prj-util.adb, prj-util.ads, raise.c, raise.h,
30798 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
30799 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
30800 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
30801 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
30802 scans.ads, scn.adb, scn.ads, s-crc32.adb,
30803 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
30804 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
30805 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
30806 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
30807 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
30808 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
30809 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
30810 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
30811 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
30812 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
30813 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
30814 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
30815 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
30816 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
30817 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
30818 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
30819 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
30820 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
30821 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
30822 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
30823 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
30824 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
30825 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
30826 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
30827 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
30828 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
30829 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
30830 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
30831 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
30832 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
30833 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
30834 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
30835 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
30836 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
30837 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
30838 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
30839 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
30840 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
30841 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
30842 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
30843 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
30844 stringt.adb, stringt.ads, stringt.h, style.ads,
30845 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
30846 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
30847 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
30848 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
30849 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
30850 table.adb, table.ads, targparm.adb, targparm.ads,
30851 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
30852 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
30853 ttypes.ads, types.ads, types.h, uintp.adb,
30854 uintp.ads, uintp.h, uname.adb, urealp.adb,
30855 urealp.ads, urealp.h, usage.adb, utils2.c,
30856 utils.c, validsw.adb, validsw.ads, widechar.adb,
30857 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
30858 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
30859 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
30860 gnatvsn.ads: Merge with ACT tree.
30862 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
30864 2003-10-20 Mark Mitchell <mark@codesourcery.com>
30866 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
30867 (gnat_ug_vmx.info): Likewise.
30868 (gnat_ug_vxw.info): Likewise.
30869 (gnat_ug_wnt.info): Likewise.
30870 (gnat_rm.info): Likewise.
30871 (gnat-style.info): Likewise.
30873 * Make-lang.in (ada.install-info): Remove target.
30874 (info): New target.
30875 (install-info): Likewise.
30876 (gnat_ug_unx.info): Simplify rule.
30877 (gnat_ug_vmx.info): Likewise.
30878 (gnat_ug_vxw.info): Likewise.
30879 (gnat_ug_wnt.info): Likewise.
30880 (gnat_rm.info): Likewise.
30881 (gnat-style.info): Likewise.
30883 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
30885 * Make-lang.in: Replace uses of $(target_alias) with
30886 $(target_noncanonical).
30887 * ada/Makefile.in: Remove unused mention of $(target_alias).
30889 2003-10-06 Mark Mitchell <mark@codesourcery.com>
30891 * Make-lang.in (ada.info): Replace with ...
30893 (ada.dvi): Replace with ...
30896 2003-09-29 Zack Weinberg <zack@codesourcery.com>
30898 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
30899 initialize dconstp5 and dconstmp5.
30901 2003-09-28 Richard Henderson <rth@redhat.com>
30903 * trans.c (tree_transform): Update call to expand_asm_operands.
30905 2003-09-21 Richard Henderson <rth@redhat.com>
30907 * trans.c, utils.c: Revert.
30909 2003-09-21 Richard Henderson <rth@redhat.com>
30911 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
30914 2003-09-04 Michael Matz <matz@suse.de>
30916 * misc.c: Include "target.h".
30917 * Make-lang.in (misc.o): Add dependency on target.h.
30919 2003-09-03 DJ Delorie <dj@redhat.com>
30921 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
30924 2003-08-30 Zack Weinberg <zack@codesourcery.com>
30926 * Makefile.in: Update substitutions to match changes to
30927 configure. Use include directives instead of @-insertions
30928 to read in host and target fragments. Add a rule to
30929 regenerate ada/Makefile.
30931 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
30933 * lang-options.h: Remove.
30934 * lang.opt: Add help text.
30936 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
30938 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
30941 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
30943 * misc.c (gnat_handle_option): Don't handle filenames.
30945 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
30947 * Make-lang.in: Replace PWD with PWD_COMMAND.
30948 * Makefile.adalib: Likewise.
30949 * Makefile.in: Likewise.
30951 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
30953 * misc.c (gnat_argv): Revert last change.
30954 (gnat_handle_option, gnat_init_options): Copy arguments.
30956 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
30958 * misc.c (gnat_argv): Make const.
30960 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
30962 * misc.c (save_argc, save_argv): Keep non-static!
30964 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
30966 * misc.c (save_argc, save_argv): Make static.
30967 (gnat_init_options): New prototype.
30968 (gnat_init_options): Update.
30970 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
30972 * gnat_ug.texi: Remove unlikely characters from @vars.
30973 * gnat_ug_vms.texi: Regenerate.
30975 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
30977 * misc.c (record_code_position): Adjust emit_note call.
30979 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
30981 * misc.c (gnat_handle_option): Don't check for missing arguments.
30983 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
30985 * utils.c (end_subprog_body): Adjust expand_function_end call.
30987 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
30989 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
30992 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
30994 * lang.opt: Declare Ada.
30995 * misc.c (gnat_init_options): Update.
30997 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
30999 * utils.c (begin_subprog_body): Adjust init_function_start call.
31001 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
31003 * Make-lang.in: Update to use options.c and options.h.
31004 * misc.c: Include options.h not aoptions.h.
31005 (gnat_handle_option): Abort on unrecognized switch.
31006 (gnat_init_options): Request Ada switches.
31008 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
31010 * lang.opt: Add -Wall.
31011 * misc.c (gnat_handle_option): Handle it.
31013 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
31015 * misc.c (gnat_handle_option): Fix warnings.
31017 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
31019 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
31021 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
31023 * Make-lang.in: Update to handle command-line options.
31024 * lang.opt: New file.
31025 * misc.c: Include aoptions.h.
31026 (cl_options_count, cl_options): Remove.
31027 (gnat_handle_option): New.
31028 (gnat_decode_option): Remove.
31029 (LANG_HOOKS_DECODE_OPTION): Remove.
31030 (LANG_HOOKS_HANDLE_OPTION): Override.
31032 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
31034 * init.c, misc.c, trans.c, utils.c: Remove dead code.
31036 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
31038 * Makefile.in: Replace "host_canonical" with "host" for autoconf
31041 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
31043 * Make-lang.in: Update.
31044 * misc.c: Include opts.h. Define cl_options_count and cl_options.
31046 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
31048 * misc.c (gnat_init_options): Update.
31050 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
31052 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
31053 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
31054 __attribute__ ((__unused__)).
31056 2003-06-05 Jan Hubicka <jh@suse.cz>
31058 * Make-lang.in: Add support for stageprofile and stagefeedback
31060 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
31062 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
31063 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
31065 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
31067 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
31068 Remove non-VMS directive.
31069 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
31071 (Examples of gnatls Usage): Remove VMS alternative.
31073 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
31076 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
31077 and turn ZCX_By_Default back to False since the underlying support
31078 is not quite there yet.
31080 2003-06-01 Andreas Jaeger <aj@suse.de>
31082 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
31083 and ROUND_TYPE_SIZE_UNIT.
31085 2003-05-22 Geert Bosch <bosch@gnat.com>
31087 * gnat_rm.texi : Remove reference to Ada Core Technologies.
31089 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
31091 * trans.c (tree_transform): Use location_t and input_location
31093 (build_unit_elab): Likewise.
31094 * utils.c (create_label_decl): Likewise.
31096 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
31098 * trans.c (tree_transform, build_unit_elab,
31099 set_lineno): Rename lineno to input_line.
31100 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
31101 end_subprog_body): Likewise.
31102 * utils2.c (build_call_raise): Likewise.
31104 2003-05-01 Laurent Guerby <guerby@acm.org>
31107 * 5iosinte.ads: Increase pthread_cond_t size to match recent
31108 LinuxThread and NPTL version, merge from ACT.
31110 2003-04-28 Zack Weinberg <zack@codesourcery.com>
31112 * utils.c (convert): No need to clear TREE_CST_RTL.
31114 2003-04-23 Geert Bosch <bosch@gnat.com>
31116 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
31117 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
31118 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
31119 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
31120 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
31121 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
31122 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
31123 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
31124 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
31125 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
31126 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
31127 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
31128 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
31129 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
31130 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
31131 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
31132 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
31133 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
31134 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
31135 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
31136 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
31137 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
31138 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
31139 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
31140 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
31141 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
31142 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
31143 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
31144 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
31145 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
31146 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
31147 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
31148 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
31149 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
31150 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
31151 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
31152 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
31153 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
31154 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
31155 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
31156 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
31157 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
31158 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
31159 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
31160 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
31161 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
31162 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
31163 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
31164 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
31165 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
31166 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
31167 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
31168 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
31169 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
31170 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
31171 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
31172 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
31173 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
31174 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
31175 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
31176 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
31177 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
31178 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
31179 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
31180 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
31181 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
31182 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
31183 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
31184 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
31185 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
31186 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
31187 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
31188 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
31189 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
31190 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
31191 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
31192 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
31193 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
31194 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
31195 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
31196 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
31197 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
31198 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
31199 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
31200 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
31201 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
31202 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
31203 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
31204 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
31205 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
31206 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
31207 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
31208 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
31209 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
31210 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
31211 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
31212 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
31213 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
31214 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
31215 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
31216 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
31217 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
31218 ali.adb, ali.ads, alloc.ads, argv.c,
31219 atree.adb, atree.ads, atree.h, aux-io.c,
31220 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
31221 binde.adb, binde.ads, binderr.adb, binderr.ads,
31222 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
31223 butil.adb, butil.ads, cal.c, calendar.ads,
31224 casing.adb, casing.ads, ceinfo.adb, checks.adb,
31225 checks.ads, cio.c, comperr.adb, comperr.ads,
31226 config-lang.in, csets.adb, csets.ads, csinfo.adb,
31227 cstand.adb, cstand.ads, cuintp.c, debug.adb,
31228 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
31229 dec-io.ads, dec.ads, deftarg.c, directio.ads,
31230 einfo.adb, einfo.ads, elists.adb, elists.ads,
31231 elists.h, errno.c, errout.adb, errout.ads,
31232 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
31233 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
31234 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
31235 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
31236 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
31237 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
31238 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
31239 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
31240 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
31241 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
31242 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
31243 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
31244 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
31245 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
31246 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
31247 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
31248 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
31249 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
31250 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
31251 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
31252 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
31253 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
31254 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
31255 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
31256 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
31257 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
31258 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
31259 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
31260 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
31261 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
31262 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
31263 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
31264 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
31265 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
31266 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
31267 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
31268 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
31269 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
31270 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
31271 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
31272 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
31273 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
31274 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
31275 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
31276 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
31277 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
31278 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
31279 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
31280 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
31281 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
31282 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
31283 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
31284 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
31285 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
31286 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
31287 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
31288 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
31289 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
31290 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
31291 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
31292 lib.adb, lib.ads, live.adb, live.ads,
31293 machcode.ads, make.adb, make.ads, makeusg.adb,
31294 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
31295 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
31296 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
31297 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
31298 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
31299 mlib.ads, namet.adb, namet.ads, nlists.adb,
31300 nlists.ads, opt.adb, opt.ads, osint-b.adb,
31301 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
31302 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
31303 osint.ads, output.adb, output.ads, par-ch10.adb,
31304 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
31305 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
31306 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
31307 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
31308 par-tchk.adb, par-util.adb, par.adb, par.ads,
31309 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
31310 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
31311 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
31312 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
31313 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
31314 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
31315 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
31316 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
31317 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
31318 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
31319 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
31320 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
31321 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
31322 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
31323 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
31324 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
31325 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
31326 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
31327 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
31328 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
31329 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
31330 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
31331 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
31332 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
31333 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
31334 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
31335 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
31336 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
31337 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
31338 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
31339 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
31340 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
31341 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
31342 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
31343 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
31344 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
31345 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
31346 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
31347 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
31348 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
31349 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
31350 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
31351 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
31352 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
31353 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
31354 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
31355 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
31356 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
31357 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
31358 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
31359 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
31360 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
31361 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
31362 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
31363 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
31364 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
31365 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
31366 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
31367 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
31368 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
31369 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
31370 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
31371 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
31372 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
31373 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
31374 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
31375 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
31376 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
31377 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
31378 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
31379 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
31380 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
31381 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
31382 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
31383 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
31384 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
31385 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
31386 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
31387 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
31388 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
31389 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
31390 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
31391 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
31392 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
31393 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
31394 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
31395 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
31396 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
31397 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
31398 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
31399 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
31400 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
31401 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
31402 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
31403 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
31404 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
31405 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
31406 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
31407 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
31408 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
31409 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
31410 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
31411 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
31412 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
31413 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
31414 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
31415 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
31416 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
31417 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
31418 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
31419 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
31420 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
31421 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
31422 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
31423 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
31424 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
31425 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
31426 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
31427 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
31428 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
31429 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
31430 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
31431 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
31432 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
31433 snames.ads, sprint.adb, sprint.ads, stand.adb,
31434 stand.ads, stringt.adb, stringt.ads, style.adb,
31435 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
31436 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
31437 switch-m.ads, switch.adb, switch.ads, system.ads,
31438 table.adb, table.ads, targparm.adb, targparm.ads,
31439 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
31440 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
31441 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
31442 ttypef.ads, ttypes.ads, types.adb, types.ads,
31443 uintp.adb, uintp.ads, uname.adb, uname.ads,
31444 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
31445 usage.adb, usage.ads, validsw.adb, validsw.ads,
31446 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
31447 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
31448 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
31449 formatting and other trivial changes from ACT.
31451 2003-04-12 Zack Weinberg <zack@codesourcery.com>
31453 * gigi.h, utils2.c (build_constructor):
31454 Rename gnat_build_constructor. Use build_constructor.
31455 * decl.c (gnat_to_gnu_entity)
31456 * trans.c (tree_transform, pos_to_constructor, extract_values)
31457 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
31458 (unchecked_convert)
31459 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
31460 (fill_vms_descriptor):
31463 2003-04-06 Zack Weinberg <zack@codesourcery.com>
31465 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
31466 * misc.c (gnat_tree_size): New function.
31467 (LANG_HOOKS_TREE_SIZE): Override.
31469 2003-04-03 Jason Merrill <jason@redhat.com>
31471 * misc.c (gnat_adjust_rli): #if 0.
31473 2003-03-31 Geert Bosch <bosch@gnat.com>
31476 * link.c : Fix misspelled "const" keyword
31478 2003-03-23 Mark Mitchell <mark@codesourcery.com>
31481 * utils2.c: Adjust calls to put_var_into_stack.
31483 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
31485 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
31487 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
31489 * misc.c (gnat_init): Update for new prototype.
31491 2003-03-05 Olivier Hainque <hainque@gnat.com>
31494 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
31495 warning, and fix return type for the IN_RTS && !SJLJ case.
31497 2003-03-04 Tom Tromey <tromey@redhat.com>
31499 * Make-lang.in (ada.tags): New target.
31501 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
31504 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
31505 wrapper, which name remains constant whatever underlying GCC
31508 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
31509 the stable interface needed for a-except.
31511 2003-03-02 Andreas Jaeger <aj@suse.de>
31513 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31514 gnat_ug_wnt.texi: Regenerate.
31516 2003-03-02 Laurent Guerby <guerby@acm.org>
31518 * Makefile.in (install-gnatlib): Match previous change there
31521 2003-02-28 Andreas Schwab <schwab@suse.de>
31523 * Make-lang.in (install-gnatlib): Change to ada directory before
31524 running make instead of using ada/Makefile directly.
31526 2003-02-18 Ben Elliston <bje@redhat.com>
31528 Part of PR ada/9406
31529 * gnat_ug.texi (Binder output file): Grammar fix.
31531 2003-02-18 Ben Elliston <bje@redhat.com>
31534 * 5qtaprop.adb (Sleep): Fix typo in comment.
31536 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
31538 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
31539 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31540 gnat_ug_wnt.texi: Regenerate.
31542 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
31544 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
31545 be created if necessary.
31546 (ada.install-common): Let $(DESTDIR)$(bindir) be created
31547 if necessary. Remove erroneous and redundant gnatchop
31548 installation commands. Test for gnatdll before attempting
31550 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
31551 and gnatdll from all plausible locations.
31553 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
31555 * utils2.c (build_unary_op): Don't check flag_volatile.
31556 * gnat_ug.texi: Remove -fvolatile from example.
31557 * gnat_ug_vxw.texi: Likewise.
31559 2003-01-29 Laurent Guerby <guerby@acm.org>
31562 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
31563 * Makefile.in: match previous change.
31564 * Make-lang.in: match previous change.
31566 2003-01-29 Joel Sherrill <joel@OARcorp.com>
31568 * 5rosinte.ads: Add SIGXCPU.
31569 * 5rtpopsp.adb: New file.
31570 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
31571 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
31572 specific file 5rtpopsp.adb.
31573 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
31574 is likely needed for all newlib targets.
31575 * init.c: Add RTEMS specific version of __gnat_initialize().
31577 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31579 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
31581 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31583 * init.c (__gnat_error_handler): Make msg const.
31585 * gmem.c (convert_addresses): Move declaration ...
31586 * adaint.h: ... here.
31587 * adaint.c (convert_addresses): Adapt addrs type to match
31590 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
31592 2003-01-24 Andreas Schwab <schwab@suse.de>
31594 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
31595 size_t to avoid warning.
31597 2003-01-21 Zack Weinberg <zack@codesourcery.com>
31599 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
31601 2003-01-09 Geoffrey Keating <geoffk@apple.com>
31603 * gnat_rm.texi: Remove RCS version number.
31605 * ada-tree.h (union lang_tree_node): Add chain_next option.
31607 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
31609 * Make-lang.in (ada.install-info, ada.install-common,
31610 ada.uninstall): Prepend $(DESTDIR) to the destination
31611 directory in all (un)installation commands.
31612 * Makefile.in (install-gnatlib, install-rts): Ditto.
31614 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
31616 * gnat_rm.texi, gnat_ug.texi: Use @copying.
31617 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31618 gnat_ug_wnt.texi: Regenerate.
31620 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
31622 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
31624 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
31625 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
31626 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
31627 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
31628 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
31629 $(srcdir)/doc/include/gcc-common.texi.
31631 2002-12-15 Geert Bosch <bosch@gnat.com>
31633 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
31635 2002-12-14 Geert Bosch <bosch@gnat.com>
31638 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
31639 case of a body created for a Renaming_As_Body, on which
31640 conformance checks are not performed.
31642 2002-11-30 Zack Weinberg <zack@codesourcery.com>
31644 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
31645 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
31646 not already included.
31647 * Make-lang.in: Update dependencies.
31649 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
31650 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
31651 solution to buffer overflow bug on GNU/Linux.
31653 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
31657 * bindgen.adb: Remove all references to Public_Version.
31658 * comperr.adb: Remove all references to Public_Version and
31659 GNATPRO_Version; correct bug reporting instructions.
31660 * comperr.ads: Change to match bug box.
31661 * gnatvsn.ads: Remove all references to Public version and
31664 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
31667 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
31671 * config-lang.in: Remove diff_excludes.
31673 2002-11-05 Graham Stott <graham.stott@btinternet.com>
31676 * trans.c (gnu_pending_elaboration_lists): New GC root.
31677 (build_unit_elab): Use..
31679 2002-10-30 Geert Bosch <bosch@gnat.com>
31682 * misc.c : Include optabs.h
31684 * Make-lang.in (misc.o): Add dependency on optabs.h
31686 2002-10-29 Geert Bosch <bosch@gnat.com>
31689 * Make-lang.in (gnatbind): Depend on CONFIG_H
31691 2002-10-29 Geert bosch <bosch@gnat.com>
31694 * misc.c: Unrevert misc.c (1.13)
31696 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
31698 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
31699 maintainership comments.
31701 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
31704 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
31705 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
31706 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
31707 7staprop.adb: Correct statements in comments about
31708 maintainership of GNAT.
31711 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
31712 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
31713 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
31714 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
31715 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
31716 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
31717 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
31718 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
31719 comments about maintainership of GNAT.
31721 PR ada/6919 (forward port of patch for PR ada/5904)
31722 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
31723 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
31724 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
31725 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
31726 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
31727 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
31728 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
31729 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
31730 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
31731 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
31732 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
31733 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
31734 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
31735 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
31736 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
31737 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
31738 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
31739 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
31740 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
31741 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
31742 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
31743 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
31744 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
31745 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
31746 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
31747 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
31748 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
31749 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
31750 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
31751 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
31752 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
31753 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
31754 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
31755 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
31756 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
31757 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
31758 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
31759 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
31760 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
31761 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
31762 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
31763 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
31764 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
31765 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
31766 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
31767 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
31768 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
31769 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
31770 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
31771 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
31772 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
31773 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
31774 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
31775 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
31776 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
31777 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
31778 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
31779 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
31780 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
31781 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
31782 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
31783 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
31784 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
31785 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
31786 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
31787 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
31788 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
31789 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
31790 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
31791 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
31792 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
31793 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
31794 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
31795 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
31796 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
31797 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
31798 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
31799 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
31800 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
31801 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
31802 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
31803 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
31804 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
31805 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
31806 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
31807 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
31808 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
31809 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
31810 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
31811 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
31812 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
31813 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
31814 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
31815 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
31816 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
31817 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
31818 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
31819 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
31820 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
31821 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
31822 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
31823 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
31824 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
31825 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
31826 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
31827 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
31828 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
31829 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
31830 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
31831 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
31832 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
31833 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
31834 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
31835 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
31836 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
31837 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
31838 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
31839 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
31840 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
31841 par-endh.adb par-labl.adb par-load.adb par-prag.adb
31842 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
31843 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
31844 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
31845 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
31846 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
31847 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
31848 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
31849 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
31850 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
31851 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
31852 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
31853 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
31854 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
31855 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
31856 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
31857 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
31858 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
31859 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
31860 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
31861 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
31862 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
31863 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
31864 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
31865 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
31866 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
31867 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
31868 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
31869 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
31870 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
31871 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
31872 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
31873 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
31874 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
31875 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
31876 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
31877 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
31878 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
31879 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
31880 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
31881 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
31882 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
31883 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
31884 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
31885 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
31886 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
31887 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
31888 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
31889 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
31890 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
31891 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
31892 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
31893 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
31894 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
31895 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
31896 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
31897 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
31898 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
31899 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
31900 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
31901 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
31902 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
31903 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
31904 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
31905 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
31906 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
31907 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
31908 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
31909 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
31910 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
31911 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
31912 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
31913 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
31914 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
31915 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
31916 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
31917 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
31918 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
31919 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
31920 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
31921 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
31922 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
31923 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
31924 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
31925 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
31926 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
31927 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
31928 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
31929 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
31930 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
31931 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
31932 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
31933 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
31934 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
31935 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
31936 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
31937 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
31938 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
31939 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
31940 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
31941 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
31942 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
31943 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
31944 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
31945 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
31946 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
31947 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
31948 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
31949 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
31950 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
31951 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
31952 stringt.ads stringt.h style.adb style.ads stylesw.adb
31953 stylesw.ads switch.adb switch.ads sysdep.c system.ads
31954 table.adb table.ads targparm.adb targparm.ads targtyps.c
31955 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
31956 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
31957 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
31958 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
31959 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
31960 usage.ads utils.c utils2.c validsw.adb validsw.ads
31961 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
31962 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
31963 xtreeprs.adb: Correct statements in comments about maintainership
31966 2002-09-23 Zack Weinberg <zack@codesourcery.com>
31968 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
31969 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
31970 * gnatvsn.ads: Gnat_Version_String is now a function.
31971 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
31972 copy the C version_string into a String and return it.
31973 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
31974 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
31975 Remove pragma Ident (Gnat_Version_String). If this was the
31976 sole use of package Gnatvsn, remove the with statement too.
31977 * gnat1drv.adb: Tweak -gnatv output.
31979 2002-09-17 Richard Henderson <rth@redhat.com>
31981 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
31982 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
31983 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
31984 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
31985 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
31986 and real_2expN instead of a loop.
31987 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
31988 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
31990 2002-08-25 Andre Leis <a.leis@gmx.net>
31991 David Billinghurst (David.Billinghurst@riotinto.com>
31993 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
31995 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31997 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
31998 Remove $(CONFIG_H) dependency.
32000 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
32002 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
32004 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32006 * adadecode.c (ada_demangle): Use xstrdup in lieu of
32008 * misc.c (gnat_decode_option): Likewise.
32010 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
32012 * make.adb (Add_Switch): Make Generic_Position a procedure. The
32013 function approach did not work well because of a side effect (the
32014 function call could reallocate the table which was being indexed
32015 using its result). Fixes ada/4851. [RESURRECTED]
32017 2002-07-01 Roger Sayle <roger@eyesopen.com>
32019 * ada/utils.c (builtin_function): Accept an additional parameter.
32021 2002-06-28 Andreas Jaeger <aj@suse.de>
32024 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
32027 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32029 * Makefile.in (SHELL): Set to @SHELL@.
32031 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32033 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
32034 array size calculation.
32036 2002-06-04 Andreas Jaeger <aj@suse.de>
32038 * Make-lang.in (gnatbind): Readd rule that has been lost in last
32041 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
32043 Merge from pch-branch:
32045 * config-lang.in (gtfiles): Add ada-tree.h.
32046 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
32047 (SET_TYPE_MODULUS): New.
32048 (SET_TYPE_INDEX): New.
32049 (SET_TYPE_DIGITS_VALUE): New.
32050 (SET_TYPE_RM_SIZE): New.
32051 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
32052 (SET_TYPE_ADA_SIZE): New.
32053 (SET_TYPE_ACTUAL_BOUNDS): New.
32054 (SET_DECL_CONST_CORRESPONDING_VAR): New.
32055 (SET_DECL_ORIGINAL_FIELD): New.
32056 (TREE_LOOP_ID): Correct typo.
32057 * decl.c: Use new macros.
32058 * utils.c: Include debug.h, use new macros.
32059 * utils2.c: Use new macros.
32061 * ada-tree.h: Update all macros for new tree description.
32062 (struct tree_loop_id): New.
32063 (union lang_tree_node): New.
32064 (struct lang_decl): New.
32065 (struct lang_type): New.
32066 * misc.c (gnat_mark_tree): Delete.
32067 (LANG_HOOKS_MARK_TREE): Delete.
32068 * trans.c (tree_transform): No longer any need to cast
32071 * utils.c (struct language_function): New dummy structure.
32073 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
32074 (misc.o): Likewise.
32075 (utils.o): Likewise; also gtype-ada.h.
32076 * Make-lang.in (gnat1): Add dependency on s-gtype.
32077 (gnatbind): Add dependency on $(CONFIG_H).
32078 * utils.c: Correct last #include.
32079 (stuct e_stack): Remove unnecessary 'static'.
32080 (mark_e_stack): Remove unused prototype.
32082 * scn-nlit.adb: Remove whitespace after version number to
32083 keep lines under 80 chars.
32084 * snames.adb: Likewise.
32085 * treepr.ads: Likewise.
32087 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
32088 (misc.o): Likewise.
32089 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
32090 * config-lang.in (gtfiles): New.
32091 * decl.c: Use gengtype for roots.
32092 * gigi.h: Use gengtype for roots.
32093 * trans.c: Use gengtype for roots.
32094 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
32096 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
32098 * misc.c (gnat_init): Adjust setting of internal_error_function.
32100 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
32102 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
32103 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32104 gnat_ug_wnt.texi: Regenerate.
32106 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
32108 * 5ntaprop.adb (with System.OS_Primitives): Remove.
32110 * cstreams.c (max_path_len): Move from here ...
32111 * adaint.c (__gnat_max_path_len): ... to here.
32112 * adaint.c (__gnat_max_path_len): Declare.
32113 * g-dirope.adb (Max_Path): Adjust.
32114 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
32115 * i-cstrea.ads (max_path_len): Adjust.
32116 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
32117 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
32119 * Makefile.in, Make-lang.in: Documentation is now built in
32120 Make-lang.in. Store Info and generated Texinfo files in the
32122 * gnat_ug.texi: Remove CVS keywords, correct version number.
32123 Set file name correctly.
32125 * gnat_ug_*.texi: Add.
32126 * .cvsignore: Ignore generated Texinfo files.
32128 2002-05-30 Zack Weinberg <zack@codesourcery.com>
32130 * ada.h: Add MI guard macro.
32131 (SUBTYPE): Define constants with an anonymous enum, not static
32133 (IN): Cast constants to appropriate type before use.
32135 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
32137 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
32140 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32142 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
32143 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
32144 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
32145 (ALL_ADA_CFLAGS): Likewise.
32146 (ADA_INCLUDES): Likewise.
32147 Adapt for new working dir.
32148 (GNATBIND): Use Makefile.in version.
32149 (.SUFFIXES): Copy from Makefile.in.
32150 (ada-warn): Define.
32151 (.adb.o, .ads.o): Copy from Makefile.in.
32152 Added $(OUTPUT_OPTION).
32153 (GNAT1_C_OBJS): Moved from Makefile.in.
32154 Prefix with ada subdir.
32155 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
32156 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
32157 Adapt for new working dir.
32158 (EXTRA_GNATBIND_OBJS): Likewise.
32159 (ADA_BACKEND): Moved from Makefile.in.
32160 Renamed to avoid conflict with global BACKEND.
32162 (TARGET_ADA_SRCS): Moved from Makefile.in.
32163 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
32165 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
32166 (ada_extra_files): Moved from Makefile.in.
32167 Prefix with ada subdir.
32168 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
32169 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
32170 (ada/nmake.ads): Likewise.
32171 (update-sources): Moved from Makefile.in.
32172 Prefix with ada subdir.
32173 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
32174 (ADA_TREE_H): Likewise.
32175 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
32176 (ada/memtrack.o): Likewise.
32177 (ada/adadecode.o): Likewise.
32178 Update dependencies.
32179 (ada/adaint.o): New.
32180 (ada/argv.o): Moved from Makefile.in.
32181 Prefix with ada subdir.
32182 Update dependencies.
32183 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
32184 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
32185 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
32186 Prefix with ada subdir.
32187 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
32188 (GNAT DEPENDENCIES): Regenerate.
32189 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
32190 toplevel Makefile.in.
32191 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
32192 (TARGET_ADA_SRCS): Removed.
32193 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
32194 (GNATBIND_OBJS): Likewise.
32195 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
32196 (BACKEND): Removed.
32197 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
32198 (TREE_H): Likewise.
32199 (ada_extra_files): Likewise.
32200 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
32201 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
32202 (update-sources): Likewise.
32203 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
32204 (ADA_TREE_H): Likewise.
32205 (adadecoce.o): Likewise.
32206 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
32207 (GNAT DEPENDENCIES): Likewise.
32209 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32211 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
32212 * Makefile.in: Likewise.
32214 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32216 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
32217 Restore $(CONFIG_H) and prefix.o dependencies.
32218 (ada.stage[1-4]): Depend on stage?-start.
32220 * Makefile.in (b_gnatb.c): Depend on interfac.o.
32222 2002-05-02 Jim Wilson <wilson@redhat.com>
32224 * utils.c (finish_record_type): Change record_size to record_type.
32226 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
32228 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
32229 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
32230 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
32232 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
32234 * misc.c (gnat_parse_file): Update.
32236 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
32238 * misc.c (gnat_init): Don't set lang_attribute_common.
32240 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
32242 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
32244 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
32246 * gnat_ug.texi: New file.
32248 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
32249 instead of gfdl.texi
32251 * xgnatug.adb, ug_words: New files.
32253 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
32254 gnat_rm and gnat-style manuals.
32256 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
32258 * gigi.h (incomplete_type_error): Remove.
32259 * utils.c (incomplete_type_error): Remove.
32261 2002-04-16 Mark Mitchell <mark@codesourcery.com>
32263 * trans.c (tree_transform): Add has_scope argument to
32264 expand_start_stmt_expr.
32266 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
32268 * gigi.h (truthvalue_conversion): Rename.
32269 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
32270 * trans.c (tree_transform): Update.
32271 * utils2.c (truthvalue_conversion): Rename, update.
32272 (build_binary_op, build_unary_op): Update.
32274 2002-04-04 Laurent Guerby <guerby@acm.org>
32276 * make.adb: Implement -margs, remove restriction about file name placement.
32277 * makeusg.adb: Documentation update.
32278 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
32279 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
32281 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
32283 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
32284 (builtin_function): Similarly.
32286 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
32288 * decl.c (gnat_to_gnu_entity): Update.
32289 * gigi.h (mark_addressable): Rename.
32290 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
32291 * trans.c (tree_transform): Update.
32292 * utils.c (create_var_decl): Update.
32293 * util2.c (build_binary_op, build_unary_op,
32294 fill_vms_descriptor): Update.
32295 (mark_addressable): Rename, update.
32297 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
32299 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
32301 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
32302 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
32303 * trans.c (tree_transform, convert_with_check): Update.
32304 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
32307 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
32309 * gigi.h (finish_incomplete_decl): Rename.
32310 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
32311 * utils.c (gnat_init_decl_processing): Don't set hook.
32312 (finish_incomplete_decl): Rename.
32314 2002-03-29 Andreas Schwab <schwab@suse.de>
32316 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
32319 2001-03-28 Robert Dewar <dewar@gnat.com>
32322 (Remove_Checks): New procedure
32325 (Remove_Checks): New procedure
32328 Use new Duplicate_Subexpr functions
32329 (Duplicate_Subexpr_No_Checks): New procedure
32330 (Duplicate_Subexpr_No_Checks_Orig): New procedure
32331 (Duplicate_Subexpr): Restore original form (checks duplicated)
32332 (Duplicate_Subexpr): Call Remove_Checks
32335 (Duplicate_Subexpr_No_Checks): New procedure
32336 (Duplicate_Subexpr_No_Checks_Orig): New procedure
32337 Add 2002 to copyright notice
32339 * sem_util.adb: Use new Duplicate_Subexpr functions
32342 (Eval_Indexed_Component): This is the place to call
32343 Constant_Array_Ref and to replace the value. We simply merge
32344 the code of this function in here, since it is now no longer
32345 used elsewhere. This fixes the problem of the back end not
32346 realizing we were clever enough to see that this was
32348 (Expr_Val): Remove call to Constant_Array_Ref
32349 (Expr_Rep_Val): Remove call to Constant_Array_Ref
32351 (Constant_Array_Ref): Deal with string literals (patch
32352 suggested by Zack Weinberg on the gcc list)
32354 2001-03-28 Ed Schonberg <schonber@gnat.com>
32356 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
32357 Duplicate_Subexpr_Move_Checks.
32359 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
32360 Duplicate_Subexpr_Move_Checks.
32362 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
32363 value of array exists before retrieving it (it may a private
32364 protected component in a function).
32366 2002-03-28 Geert Bosch <bosch@gnat.com>
32368 * prj-pp.adb : New file.
32370 * prj-pp.ads : New file.
32372 2002-03-28 Andreas Jaeger <aj@suse.de>
32374 * Makefile.in (stamp-sdefault): Fix path for Makefile.
32376 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
32378 * misc.c (gnat_expand_expr): Move prototype.
32380 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
32382 * misc.c (insert_default_attributes): Remove.
32384 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
32386 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
32387 (gnat_init): Don't set hook.
32388 (gnat_expand_expr): Fix prototype.
32390 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
32392 * misc.c (ggc_p): Remove.
32394 2002-03-27 Geert Bosch <bosch@gnat.com>
32396 * prj-makr.ads, prj-makr.adb : New files.
32398 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
32400 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
32401 (lang_mark_tree): Make static, rename.
32403 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
32405 * misc.c (maybe_build_cleanup): Remove.
32407 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
32409 * gigi.h (yyparse): Remove.
32411 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
32413 * gnat_rm.texi: Sync with ACT version.
32414 (From Ben Brosgol <brosgol@gnat.com>)
32416 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
32418 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
32419 (gnat_init): Remove old hook.
32421 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
32423 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
32424 (yyparse): Rename gnat_parse_file.
32426 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
32428 Delete all lines containing "$Revision:".
32429 * xeinfo.adb: Don't look for revision numbers.
32430 * xnmake.adb: Likewise.
32431 * xsinfo.adb: Likewise.
32432 * xsnames.adb: Likewise.
32433 * xtreeprs.adb: Likewise.
32435 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32437 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
32438 gnat_tree_code_name): Delete.
32439 (tree_code_type, tree_code_length, tree_code_name): Define.
32440 (gnat_init): Don't try to copy into the various tree_code
32443 2002-03-11 Richard Henderson <rth@redhat.com>
32445 * Makefile.in (.NOTPARALLEL): Add fake tag.
32447 2002-03-07 Geert Bosch <bosch@gnat.com>
32449 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
32450 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
32451 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
32452 switch-m.adb, switch-m.ads : New files.
32454 2002-03-07 Geert Bosch <bosch@gnat.com>
32456 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
32457 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
32458 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
32459 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
32460 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
32461 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
32462 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
32463 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
32464 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
32465 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
32466 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
32467 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
32468 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
32469 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
32470 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
32471 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
32472 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
32473 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
32474 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
32475 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
32476 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
32477 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
32478 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
32479 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
32480 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
32481 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
32482 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
32483 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
32484 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
32485 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
32486 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
32487 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
32488 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
32489 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
32490 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
32491 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
32492 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
32493 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
32494 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
32495 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
32496 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
32497 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
32498 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
32499 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
32500 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
32501 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
32502 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
32503 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
32504 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
32505 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
32506 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
32507 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
32508 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
32509 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
32510 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
32511 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
32512 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
32513 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
32514 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
32515 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
32516 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
32517 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
32518 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
32519 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
32520 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
32521 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
32522 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
32523 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
32524 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
32525 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
32526 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
32527 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
32528 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
32529 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
32530 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
32531 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
32532 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
32533 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
32534 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
32535 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
32536 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
32537 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
32538 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
32539 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
32540 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
32541 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
32542 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
32543 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
32544 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
32545 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
32546 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
32547 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
32548 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
32549 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
32550 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
32551 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
32552 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
32554 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
32555 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
32556 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
32557 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
32559 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
32560 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
32562 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
32563 to mdll-fil.ad[bs] and mdll-util.ad[bs]
32565 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
32566 from mdllfile.ad[bs] and mdlltool.ad[bs]
32568 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32570 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
32571 lieu of explicit sizeof/sizeof.
32573 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
32575 * misc.c (copy_lang_decl): Remove.
32577 2002-02-27 Zack Weinberg <zack@codesourcery.com>
32579 * misc.c: Delete traditional-mode-related code copied from the
32580 C front end but not used, or used only to permit the compiler
32583 2002-02-07 Richard Henderson <rth@redhat.com>
32585 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
32586 * adaint.h (__gnat_to_gm_time): Update prototype.
32588 2002-01-30 Richard Henderson <rth@redhat.com>
32590 * trans.c (tree_transform) [N_Loop_Statement]: Use
32591 expand_exit_loop_top_cond.
32593 2001-12-23 Richard Henderson <rth@redhat.com>
32595 * utils.c (end_subprog_body): Push GC context around
32596 rest_of_compilation for nested functions.
32598 2001-12-23 Richard Henderson <rth@redhat.com>
32600 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
32602 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
32604 * gnat-style.texi (Declarations and Types): Remove ancient style
32605 rule which was mandated by code generation issues.
32607 * gnat-style.texi (header): Add @dircategory, @direntry.
32608 (title page): Remove date.
32609 (general) Add @./@: where approriate, and two spaces after the
32610 full stop at the end of a sentence. Use @samp markup when
32611 referring concrete lexical entities (keywords, attribute names
32612 etc.), and @syntax for ARM grammar elements. Use @r for English
32613 text in comments. Use @emph for emphasis. Change "if-statements"
32614 etc. to "if statements" (without @samp). Break long lines. Make
32615 casing of section names consistent.
32616 (Identifiers): Use @samp markup for variable names.
32617 (Comments): Use @samp markup for comment characters. Line-end
32618 comments may follow any Ada code, not just statements. Fix
32619 misspelling of "Integer" as "integer".
32620 (Loop statements): Do not use variable name "I", use "J".
32621 (Subprogram Declarations): Document alignment.
32622 (Subprogram Bodies, Block statements): Document empty line before
32625 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
32627 * make.adb (Add_Switch): Make Generic_Position a procedure. The
32628 function approach did not work well because of a side effect (the
32629 function call could reallocate the table which was being indexed
32630 using its result). Fixes ada/4851.
32632 2001-12-19 Robert Dewar <dewar@gnat.com>
32634 * bindgen.adb: Minor reformatting
32636 * cstand.adb: Minor reformatting
32638 * fmap.adb: Minor reformatting
32639 Change name from Add for Add_To_File_Map (Add is much too generic)
32640 Change Path_Name_Of to Mapped_Path_Name
32641 Change File_Name_Of to Mapped_File_Name
32642 Fix copyright dates in header
32645 Change name from Add for Add_To_File_Map (Add is much too generic)
32646 Change Path_Name_Of to Mapped_Path_Name
32647 Change File_Name_Of to Mapped_File_Name
32648 Fix copyright dates in header
32650 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
32651 Add use clause for Fmap.
32653 * make.adb: Minor reformatting
32655 * osint.adb: Minor reformatting. Change of names in Fmap.
32656 Add use clause for Fmap.
32658 * prj-env.adb: Minor reformatting
32660 * prj-env.ads: Minor reformatting
32662 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
32663 error found (there were odd exceptions to this general rule in
32664 -gnatec/-gnatem processing)
32666 2001-12-19 Olivier Hainque <hainque@gnat.com>
32668 * raise.c (__gnat_eh_personality): Exception handling personality
32669 routine for Ada. Still in rough state, inspired from the C++ version
32670 and still containing a bunch of debugging artifacts.
32671 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
32672 inspired from the C++ library.
32674 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
32675 exception handling integration.
32677 2001-12-19 Arnaud Charlet <charlet@gnat.com>
32679 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
32680 (HIE_SOURCES): Add s-secsta.ad{s,b}.
32681 (HIE_OBJS): Add s-fat*.o
32682 (RAVEN_SOURCES): Remove files that are no longer required. Add
32683 interrupt handling files.
32684 (RAVEN_MOD): Removed, no longer needed.
32686 2001-12-19 Robert Dewar <dewar@gnat.com>
32688 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
32689 Add 2001 to copyright date
32691 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
32692 need to force universal inlining for these cases.
32694 2001-12-19 Arnaud Charlet <charlet@gnat.com>
32696 * s-taprob.adb: Minor clean ups so that this unit can be used in
32699 * exp_ch7.adb: Allow use of secondary stack in HI mode.
32700 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
32702 2001-12-19 Vincent Celier <celier@gnat.com>
32704 * prj-tree.ads (Project_Node_Record): Add comments for components
32705 Pkg_Id and Case_Insensitive.
32707 2001-12-19 Pascal Obry <obry@gnat.com>
32709 * g-socket.adb: Minor reformatting. Found while reading code.
32711 2001-12-19 Robert Dewar <dewar@gnat.com>
32713 * prj-tree.ads: Minor reformatting
32715 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
32717 * config-lang.in (diff_excludes): Remove.
32719 2001-12-17 Ed Schonberg <schonber@gnat.com>
32721 * sem_res.adb (Resolve_Selected_Component): do not generate a
32722 discriminant check if the selected component is a component of
32723 the argument of an initialization procedure.
32725 * trans.c (tree_transform, case of arithmetic operators): If result
32726 type is private, the gnu_type is the base type of the full view,
32727 given that the full view itself may be a subtype.
32729 2001-12-17 Robert Dewar <dewar@gnat.com>
32731 * sem_res.adb: Minor reformatting
32733 * trans.c (tree_transform, case N_Real_Literal): Add missing third
32734 parameter in call to Machine (unknown horrible effects from this
32737 * urealp.h: Add definition of Round_Even for call to Machine
32738 Add third parameter for Machine
32740 2001-12-17 Ed Schonberg <schonber@gnat.com>
32742 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
32743 predefined units in No_Run_Time mode.
32745 2001-12-17 Richard Kenner <kenner@gnat.com>
32747 * misc.c (insn-codes.h): Now include.
32749 2001-12-17 Olivier Hainque <hainque@gnat.com>
32751 * a-except.adb: Preparation work for future integration of the GCC 3
32752 exception handling mechanism
32753 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
32754 to factorize previous code sequences and make them externally callable,
32755 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
32756 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
32757 Use the new notification routines.
32759 2001-12-17 Emmanuel Briot <briot@gnat.com>
32761 * prj-tree.ads (First_Choice_Of): Document the when others case
32763 2001-12-17 Arnaud Charlet <charlet@gnat.com>
32765 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
32766 HI-E mode, in order to support Ravenscar profile properly.
32768 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
32769 mode on 32 bits targets.
32771 2001-12-17 Vincent Celier <celier@gnat.com>
32773 * fmap.adb: Initial version.
32775 * fmap.ads: Initial version.
32777 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
32778 If search is successfully done, add to mapping.
32780 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
32783 (Gnatmake): Add new local variable Mapping_File_Name.
32784 Create mapping file when using project file(s).
32785 Delete mapping file before exiting.
32787 * opt.ads (Mapping_File_Name): New variable
32789 * osint.adb (Find_File): Use path name found in mapping, if any.
32791 * prj-env.adb (Create_Mapping_File): New procedure
32793 * prj-env.ads (Create_Mapping_File): New procedure.
32795 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
32798 * usage.adb: Add entry for new switch -gnatem.
32800 * Makefile.in: Add dependencies for fmap.o.
32802 2001-12-17 Ed Schonberg <schonber@gnat.com>
32804 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
32805 is a package instantiation rewritten as a package body.
32806 (Install_Withed_Unit): Undo previous change, now redundant.
32808 2001-12-17 Gary Dismukes <dismukes@gnat.com>
32811 (Compute_Length): Move conversion to Unsigned to callers.
32812 (Get_Max_Size): Convert Len expression to Unsigned after calls to
32813 Compute_Length and Determine_Range.
32814 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
32815 Compute_Length and Determine_Range.
32816 Above changes fix problem with length computation for supernull arrays
32817 where Max (Len, 0) wasn't getting applied due to the Unsigned
32818 conversion used by Compute_Length.
32820 2001-12-17 Arnaud Charlet <charlet@gnat.com>
32823 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
32824 System.Secondary_Stack.
32825 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
32827 Remove unused entity RE_Exception_Data.
32829 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
32831 * rident.ads (No_Secondary_Stack): New restriction.
32833 2001-12-17 Joel Brobecker <brobecke@gnat.com>
32835 * gnat_rm.texi: Fix minor typos. Found while reading the section
32836 regarding "Bit_Order Clauses" that was sent to a customer.
32837 Very interesting documentation!
32839 2001-12-17 Robert Dewar <dewar@gnat.com>
32841 * sem_case.adb (Choice_Image): Avoid creating improper character
32842 literal names by using the routine Set_Character_Literal_Name. This
32843 fixes bombs in certain error message cases.
32845 2001-12-17 Arnaud Charlet <charlet@gnat.com>
32847 * a-reatim.adb: Minor reformatting.
32849 2001-12-17 Ed Schonberg <schonber@gnat.com>
32851 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
32852 case where the formal is an extension of another formal in the current
32853 unit or in a parent generic unit.
32855 2001-12-17 Arnaud Charlet <charlet@gnat.com>
32857 * s-tposen.adb: Update comments. Minor reformatting.
32858 Minor code clean up.
32860 * s-tarest.adb: Update comments. Minor code reorganization.
32862 2001-12-17 Gary Dismukes <dismukes@gnat.com>
32864 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
32867 2001-12-17 Robert Dewar <dewar@gnat.com>
32869 * exp_attr.adb: Minor reformatting
32871 2001-12-17 Ed Schonberg <schonber@gnat.com>
32873 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
32874 derivations nested within a child unit: verify that the parent
32875 type is declared in an outer scope.
32877 2001-12-17 Robert Dewar <dewar@gnat.com>
32879 * sem_ch12.adb: Minor reformatting
32881 2001-12-17 Ed Schonberg <schonber@gnat.com>
32883 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
32884 warning if current unit is a predefined one, from which bodies may
32887 2001-12-17 Robert Dewar <dewar@gnat.com>
32889 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
32890 Fix header format. Add 2001 to copyright date.
32892 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
32893 which caused CE during compilation if checks were enabled.
32895 2001-12-17 Vincent Celier <celier@gnat.com>
32898 (Switches_Of): New function
32899 (Test_If_Relative_Path): New procedure
32900 (Add_Switches): Use new function Switches_Of
32901 (Collect_Arguments_And_Compile): Use new function Switches_Of.
32902 When using a project file, test if there are any relative
32903 search path. Fail if there are any.
32904 (Gnatmake): Only add switches for the primary directory when not using
32905 a project file. When using a project file, change directory to the
32906 object directory of the main project file. When using a project file,
32907 test if there are any relative search path. Fail if there are any.
32908 When using a project file, fail if specified executable is relative
32909 path with directory information, and prepend executable, if not
32910 specified as an absolute path, with the exec directory. Make sure
32911 that only one -o switch is transmitted to the linker.
32913 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
32916 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
32917 when using a non standard naming scheme.
32918 (Check_Ada_Naming_Scheme): Make sure that error messages
32919 do not raise exceptions.
32920 (Is_Illegal_Append): Return True if there is no dot in the suffix.
32921 (Language_Independent_Check): Check the exec directory.
32923 * prj.adb (Project_Empty): Add new component Exec_Directory
32926 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
32927 (Project_Data): Add component Exec_Directory
32929 * snames.adb: Updated to match snames.ads revision 1.215
32931 * snames.ads: Added Exec_Dir
32933 2001-12-17 Robert Dewar <dewar@gnat.com>
32935 * make.adb: Minor reformatting
32937 * prj-nmsc.adb: Minor reformatting
32939 * snames.adb: Updated to match snames.ads
32941 * snames.ads: Alphebetize entries for project file
32943 2001-12-17 Ed Schonberg <schonber@gnat.com>
32945 * trans.c (process_freeze_entity): Do nothing if the entity is a
32946 subprogram that was already elaborated.
32948 2001-12-17 Richard Kenner <kenner@gnat.com>
32950 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
32951 and Esize if object is referenced via pointer.
32953 2001-12-17 Ed Schonberg <schonber@gnat.com>
32955 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
32956 is discrete before analyzing choices.
32958 2001-12-17 Joel Brobecker <brobecke@gnat.com>
32960 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
32961 containing the name of the Ada Main Program. This string is mainly
32962 intended for the debugger.
32963 (Gen_Output_File_C): Do the equivalent change when generating a C file.
32965 2001-12-17 Robert Dewar <dewar@gnat.com>
32967 * ali.adb: Set new Dummy_Entry field in dependency entry
32969 * ali.ads: Add Dummy_Entry field to source dependency table
32971 * bcheck.adb (Check_Consistency): Ignore dummy D lines
32973 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
32975 * lib-writ.ads: Document dummy D lines for missing files.
32977 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
32979 2001-12-17 Robert Dewar <dewar@gnat.com>
32981 * ali.adb: Type reference does not reset current file.
32983 * ali.adb: Recognize and scan renaming reference
32985 * ali.ads: Add spec for storing renaming references.
32987 * lib-xref.ads: Add documentation for handling of renaming references
32989 * lib-xref.adb: Implement output of renaming reference.
32992 (Determine_Range): Document local variables
32993 (Determine_Range): Make sure Hbound is initialized. It looks as though
32994 there could be a real problem here with an uninitialized reference
32995 to Hbound, but no actual example of failure has been found.
32997 2001-12-17 Laurent Pautet <pautet@gnat.com>
33000 Fix comment of Shutdown_Socket and Close_Socket. These functions
33001 should not fail silently because if they are called twice, this
33002 probably means that there is a race condition in the user program.
33003 Anyway, this behaviour is consistent with the rest of this unit.
33004 When an error occurs, an exception is raised with the error message
33005 as exception message.
33007 2001-12-17 Robert Dewar <dewar@gnat.com>
33009 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
33010 that it happens before modification of Sloc values for -gnatD.
33012 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
33013 so that it happens before modification of Sloc values for -gnatD.
33015 * switch.adb: Minor reformatting
33017 2001-12-15 Richard Henderson <rth@redhat.com>
33019 * sem_ch7.adb: Wrap comment.
33021 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
33023 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
33024 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
33025 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
33026 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
33027 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
33028 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
33029 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
33030 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
33031 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
33032 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
33033 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
33034 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
33035 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
33036 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
33037 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
33038 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
33039 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
33040 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
33041 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
33042 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
33043 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
33044 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
33045 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
33046 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
33049 2001-12-14 Vincent Celier <celier@gnat.com>
33051 * osint.adb(Create_Debug_File): When an object file is specified,
33052 put the .dg file in the same directory as the object file.
33054 2001-12-14 Robert Dewar <dewar@gnat.com>
33056 * osint.adb: Minor reformatting
33058 * lib-xref.adb (Output_Instantiation): New procedure to generate
33059 instantiation references.
33061 * lib-xref.ads: Add documentation of handling of generic references.
33063 * ali.adb (Read_Instantiation_Ref): New procedure to read
33064 instantiation references
33066 * ali.ads: Add spec for storing instantiation references
33068 * bindusg.adb: Minor reformatting
33070 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
33072 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
33074 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
33076 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
33080 Add 2001 to copyright date
33081 Add entry for Latin-5 (Cyrillic ISO-8859-5)
33083 2001-12-14 Matt Gingell <gingell@gnat.com>
33085 * adaint.c: mktemp is a macro on Lynx and can not be used as an
33088 2001-12-14 Richard Kenner <kenner@gnat.com>
33090 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
33091 if operand is CONSTRUCTOR.
33093 2001-12-14 Ed Schonberg <schonber@gnat.com>
33095 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
33096 before emiting check on right-hand side, so that exception information
33099 2001-12-14 Richard Kenner <kenner@gnat.com>
33101 * utils.c (create_var_decl): Throw away initializing expression
33102 if just annotating types and non-constant.
33104 2001-12-14 Vincent Celier <celier@gnat.com>
33106 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
33109 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
33111 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
33113 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
33115 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
33117 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
33119 * ChangeLog: Remove piece of diff output.
33121 2001-12-14 Geert Bosch <bosch@gnat.com>
33123 * config-lang.in: Update copyright notice
33125 * layout.adb: Remove commented out code.
33127 * mdllfile.ads: Update copyright notice. Fix header format.
33129 * sem_case.ads: Likewise.
33131 * sem_ch3.adb: Minor reformatting.
33133 2001-12-12 Geert Bosch <bosch@gnat.com>
33135 * freeze.ads: Update copyright date.
33137 * g-comlin.ads: Minor reformatting.
33139 * gnat-style.texi: Fix typo.
33141 2001-12-12 Geert Bosch <bosch@gnat.com>
33143 * einfo.h: Regenerate.
33145 2001-12-12 Ed Schonberg <schonber@gnat.com>
33147 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
33148 on known node types, rather than untyped fields. Further cleanups.
33150 2001-12-12 Robert Dewar <dewar@gnat.com>
33153 (Save_Entity_Descendant): Minor comment update.
33154 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
33155 of an N_Attribute_Reference node. As per note below, this does not
33156 eliminate need for Associated_Node in attribute ref nodes.
33157 (Associated_Node): Documentation explicitly mentions attribute
33158 reference nodes, since this field is used in such nodes.
33160 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
33162 2001-12-12 Robert Dewar <dewar@gnat.com>
33164 * s-stalib.adb: Add more comments on with statements being needed
33166 * par-ch12.adb: Minor reformatting
33168 * prj-dect.ads: Fix copyright header
33170 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
33171 inputs fit in 32 bits, but the result still overflows.
33173 * s-fatgen.ads: Minor comment improvement
33175 2001-12-12 Ed Schonberg <schonber@gnat.com>
33177 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
33178 formal derived type, look for an inherited component from the full
33179 view of the parent, if any.
33181 2001-12-12 Robert Dewar <dewar@gnat.com>
33183 * checks.ads (Apply_Alignment_Check): New procedure.
33185 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
33186 ensure that the alignment of objects with address clauses is
33187 appropriate, and raise PE if not.
33189 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
33190 Exp_Pakd.Known_Aligned_Enough
33192 * mdllfile.ads: Minor reformatting
33194 * mlib-fil.ads: Minor reformatting
33196 2001-12-12 Ed Schonberg <schonber@gnat.com>
33198 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
33199 fix to any component reference if enclosing record has non-standard
33202 2001-12-12 Vincent Celier <celier@gnat.com>
33204 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
33207 2001-12-12 Ed Schonberg <schonber@gnat.com>
33209 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
33212 2001-12-12 Robert Dewar <dewar@gnat.com>
33214 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
33216 2001-12-12 Emmanuel Briot <briot@gnat.com>
33218 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
33219 and it adds dependencies to system.io.
33221 2001-12-12 Pascal Obry <obry@gnat.com>
33223 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
33226 2001-12-11 Ed Schonberg <schonber@gnat.com>
33228 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
33229 that is the parent of other generics, the instance body replaces the
33230 instance node. Retrieve the instance of the spec, which is the one
33231 that is visible in clients and within the body.
33233 2001-12-11 Vincent Celier <celier@gnat.com>
33235 * gnatmain.adb: Initial version.
33237 * gnatmain.ads: Initial version.
33239 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
33241 * snames.adb: Updated to match snames.ads.
33243 * snames.ads: Added Gnatstub.
33245 2001-12-11 Vincent Celier <celier@gnat.com>
33247 * prj-attr.adb (Initialization_Data): Change name from
33248 Initialisation_Data.
33250 2001-12-11 Emmanuel Briot <briot@gnat.com>
33252 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
33253 + and * applied to backslashed expressions like \r.
33255 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
33257 * g-os_lib.ads: String_List type added, Argument_List type is now
33258 subtype of String_List.
33260 2001-12-11 Robert Dewar <dewar@gnat.com>
33262 * g-os_lib.ads: Change copyright to FSF
33263 Add comments for String_List type
33265 2001-12-11 Vincent Celier <celier@gnat.com>
33267 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
33268 string to the buffer).
33270 2001-12-11 Ed Schonberg <schonber@gnat.com>
33272 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
33275 * sem_attr.adb: Simplify previous fix for Address.
33276 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
33277 to avoid anomalies where the bound of the type appears to raise
33280 2001-12-11 Robert Dewar <dewar@gnat.com>
33282 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
33285 2001-12-11 Ed Schonberg <schonber@gnat.com>
33287 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
33288 renamed unit before checking for recursive instantiations.
33290 2001-12-11 Emmanuel Briot <briot@gnat.com>
33292 * prj.ads: Add comments for some of the fields.
33294 2001-12-11 Robert Dewar <dewar@gnat.com>
33296 * lib-xref.adb (Output_Refs): Don't output type references outside
33297 the main unit if they are not otherwise referenced.
33299 2001-12-11 Ed Schonberg <schonber@gnat.com>
33301 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
33302 code and diagnose additional illegal uses
33304 * sem_util.adb (Is_Object_Reference): An indexed component is an
33305 object only if the prefix is.
33307 2001-12-11 Vincent Celier <celier@gnat.com>
33309 * g-diopit.adb: Initial version.
33311 * g-diopit.ads: Initial version.
33314 (Expand_Path): Avoid use of Unbounded_String
33315 (Find, Wildcard_Iterator): Moved to child package Iteration
33317 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
33319 2001-12-11 Robert Dewar <dewar@gnat.com>
33321 * sem_attr.adb: Minor reformatting
33323 2001-12-11 Ed Schonberg <schonber@gnat.com>
33325 * sem_ch3.adb: Clarify some ???.
33327 2001-12-11 Robert Dewar <dewar@gnat.com>
33329 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
33330 Exp_Pakd.Known_Aligned_Enough
33332 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
33333 version is moved to Exp_Ch13.
33335 2001-12-11 Robert Dewar <dewar@gnat.com>
33337 * einfo.ads: Minor reformatting
33339 * exp_ch5.adb: Add comment for previous.change
33341 * ali.adb: New interface for extended typeref stuff.
33343 * ali.ads: New interface for typeref stuff.
33345 * checks.adb (Apply_Alignment_Check): New procedure.
33347 * debug.adb: Add -gnatdM for modified ALI output
33349 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
33351 * lib-xref.adb: Extend generation of <..> notation to cover
33352 subtype/object types. Note that this is a complete rewrite,
33353 getting rid of the very nasty quadratic algorithm previously
33354 used for derived type output.
33356 * lib-xref.ads: Extend description of <..> notation to cover
33357 subtype/object types. Uses {..} for these other cases.
33358 Also use (..) for pointer types.
33360 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
33362 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
33363 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
33365 2001-12-11 Vincent Celier <celier@gnat.com>
33368 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
33369 Changed /BIND_ONLY to /ACTIONS=BIND
33370 Changed /LINK_ONLY to /ACTIONS=LINK
33372 2001-12-11 Ed Schonberg <schonber@gnat.com>
33374 * sem_ch8.adb (Find_Selected_Component): improved search for a
33375 candidate package in case of error.
33377 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
33378 chain back on scope stack before reinstalling use clauses.
33380 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
33381 is enabled, do not kill the code for the condition, to preserve
33384 2001-12-11 Robert Dewar <dewar@gnat.com>
33386 * checks.adb (Insert_Valid_Check): Apply validity check to expression
33387 of conversion, not to result of conversion.
33389 2001-12-11 Ed Schonberg <schonber@gnat.com>
33391 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
33392 before freezing parent. If the declarations are mutually recursive,
33393 an access to the current record type may be frozen before the
33394 derivation is complete.
33396 2001-12-05 Vincent Celier <celier@gnat.com>
33398 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
33399 -c /COMPILE_ONLY, -l /LINK_ONLY
33402 (Bind_Only): New Flag
33403 (Link_Only): New flag
33405 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
33408 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
33411 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
33412 (Gnatmake): Set the step flags. Only perform a step if the
33413 corresponding step flag is True.
33414 (Scan_Make_Arg): Reset the bind and link step flags when -u
33415 or -gnatc has been specified.
33417 2001-12-05 Ed Schonberg <schonber@gnat.com>
33419 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
33420 get bounds from right operand.
33422 * sem_eval.adb: Minor reformatting
33424 * exp_util.adb (Make_Literal_Range): use bound of literal rather
33425 than Index'First, its lower bound may be different from 1.
33427 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
33430 2001-12-05 Vincent Celier <celier@gnat.com>
33432 * prj-nmsc.adb Minor reformatting
33434 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
33435 set and libraries are not supported.
33437 2001-12-05 Ed Schonberg <schonber@gnat.com>
33439 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
33440 private view explicitly, so the back-end can treat as a global
33443 2001-12-05 Ed Schonberg <schonber@gnat.com>
33445 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
33446 unit, always replace instance node with new body, for ASIS use.
33448 2001-12-05 Vincent Celier <celier@gnat.com>
33450 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
33451 libraries are not supported and both attributes Library_Name and
33452 Library_Dir are specified.
33454 * prj-proc.adb (Expression): Set location of Result to location of
33457 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
33458 (prj-nmsc is now importing MLib.Tgt)
33460 * prj-proc.adb: Put the change indicated above that was forgotten.
33462 2001-12-05 Robert Dewar <dewar@gnat.com>
33464 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
33466 2001-12-05 Ed Schonberg <schonber@gnat.com>
33468 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
33469 constraint, introduce explicit subtype declaration and derive from it.
33471 * sem_ch3.adb: Minor reformatting
33473 2001-12-05 Robert Dewar <dewar@gnat.com>
33475 * checks.adb (Determine_Range): Increase cache size for checks.
33478 * exp_ch6.adb: Minor reformatting
33479 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
33480 a parameter whose root type is System.Address, since treating such
33481 subprograms as pure in the code generator is almost surely a mistake
33482 that will lead to unexpected results.
33484 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
33485 change handling of conversions.
33487 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
33489 2001-12-05 Ed Schonberg <schonber@gnat.com>
33491 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
33492 aggregate with static wrong size, attach generated Raise node to
33495 2001-12-05 Robert Dewar <dewar@gnat.com>
33497 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
33498 Fixes compilation abandoned bomb in B24009B.
33500 2001-12-05 Ed Schonberg <schonber@gnat.com>
33503 Document use of Associated_Node on Selected_Components.
33504 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
33505 to clarify use of untyped descendant fields.
33507 2001-12-05 Robert Dewar <dewar@gnat.com>
33509 * prj-dect.ads: Add ??? comment
33510 Add 2001 to copyright notice (was not done in after all)
33512 * prj-part.adb: Minor reformatting. Reword one awkward error message.
33514 * prj.ads: Minor reformatting throughout, and add some ??? comments
33516 * snames.ads: Minor reformatting
33518 2001-12-05 Geert Bosch <bosch@gnat.com>
33520 * snames.adb: Autoupdate
33522 2001-12-05 Vincent Celier <celier@gnat.com>
33524 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
33526 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
33528 * prj-env.adb: Minor comment changes (modifying -> extends).
33530 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
33532 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
33535 * prj.adb (Initialize): Change Modifying to Extends.
33537 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
33539 * prj.ads: Minor comment change (Modifying -> extending).
33541 * snames.ads: Change modifying to extends.
33543 2001-12-05 Robert Dewar <dewar@gnat.com>
33545 * sem_warn.adb: Remove stuff for conditionals, we are not going to
33548 * sem_warn.ads: Remove stuff for conditionals, we are not going to
33549 do this after all. Add 2001 to copyright notice
33551 2001-12-04 Geert Bosch <bosch@gnat.com>
33553 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
33555 2001-12-04 Robert Dewar <dewar@gnat.com>
33557 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
33558 location if we already have errors. Stops some cases of cascaded
33561 * errout.adb: Improve comment.
33563 2001-12-04 Robert Dewar <dewar@gnat.com>
33566 (Analyze_Formal_Type_Definition): Defend against Error.
33567 (Analyze_Formal_Subprogram): Defend against Error.
33569 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
33570 remove following semicolon if present. Removes cascaded error.
33572 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
33575 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
33576 exceptions equals 0.
33577 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
33578 Fixes PIWG E tests (which have to be run with -gnatL).
33580 2001-12-04 Robert Dewar <dewar@gnat.com>
33582 * einfo.ads: Minor reformatting
33584 2001-12-04 Ed Schonberg <schonber@gnat.com>
33586 * einfo.ads: Block_Node points to the identifier of the block, not to
33587 the block node itself, to preserve the link when the block is
33588 rewritten, e.g. within an if-statement with a static condition.
33590 * inline.adb (Cleanup_Scopes): recover block statement from block
33591 entity using new meaning of Block_Node.
33593 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
33594 identifier of block node, rather than to node itself.
33596 2001-12-04 Gary Dismukes <dismukes@gnat.com>
33599 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
33600 (Discrimify): Go back to setting the Etypes of the selected component
33601 because the Vname component does not exist at this point and will
33602 fail name resolution. Also set Analyzed.
33603 Remove with and use of Sem_Res.
33605 2001-12-04 Arnaud Charlet <charlet@gnat.com>
33607 * Makefile.in: (HIE_SOURCES): add s-fat*.
33609 2001-12-04 Robert Dewar <dewar@gnat.com>
33612 (Compile_Time_Known_Attribute): New procedure.
33613 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
33614 proper range check.
33616 2001-12-04 Ed Schonberg <schonber@gnat.com>
33618 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
33619 processing discriminants to diagnose illegal default values.
33621 2001-12-04 Ed Schonberg <schonber@gnat.com>
33623 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
33624 access discriminant within a type extension that constrains its
33625 parent discriminants.
33627 2001-12-04 Ed Schonberg <schonber@gnat.com>
33629 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
33630 is malformed, use instance of Any_Id to allow analysis to proceed.
33632 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
33633 type definition is illegal.
33634 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
33637 2001-12-04 Ed Schonberg <schonber@gnat.com>
33639 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
33642 2001-12-04 Robert Dewar <dewar@gnat.com>
33644 * errout.adb: Minor reformatting
33646 2001-12-04 Robert Dewar <dewar@gnat.com>
33648 * exp_util.adb: Minor reformatting from last change
33650 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
33651 which is a rewriting of an expression, traverse the original
33652 expression to remove warnings that may have been posted on it.
33654 2001-12-04 Ed Schonberg <schonber@gnat.com>
33656 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
33657 record that has other packed components.
33659 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
33661 * adaint.c: Minor cleanups.
33663 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
33665 * adaint.c: Do not use utime.h on vxworks.
33667 2001-12-04 Arnaud Charlet <charlet@gnat.com>
33669 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
33670 more confusion than it solves.
33672 2001-12-04 Geert bosch <bosch@gnat.com>
33674 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
33676 2001-12-04 Geert Bosch <bosch@gnat.com>
33678 * Makefile.in (update-sources): New target.
33679 For use by gcc_release script.
33681 2001-12-04 Ed Schonberg <schonber@gnat.com>
33683 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
33684 a configuration pragma, it is now legal wherever a pragma can appear.
33686 2001-12-04 Zack Weinberg <zack@codesourcery.com>
33688 * Makefile.in: Don't set ALL. Delete @cross_defines@,
33689 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
33690 is now @CROSS@ -DIN_GCC; update comment.
33692 2001-12-04 Robert Dewar <dewar@gnat.com>
33694 * einfo.adb (Has_Pragma_Pure_Function): New flag.
33695 Fix problem that stopped ceinfo from working
33697 * einfo.ads (Has_Pragma_Pure_Function): New flag.
33699 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
33701 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
33704 (File_Time_Stamp): New procedure.
33705 (Preserve_Mode): New boolean.
33706 (Write_Unit): Pass time stamp.
33707 Implement -p switch (preserve time stamps).
33709 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
33711 * gnatchop.adb: Do usage info for -p switch
33713 * adaint.h (__gnat_set_file_time_name): New function
33715 * adaint.c (__gnat_set_file_time_name): Implement
33717 * adaint.h: Fix typo
33719 2001-12-03 Robert Dewar <dewar@gnat.com>
33721 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
33722 have Associated_Node.
33724 2001-12-03 Robert Dewar <dewar@gnat.com>
33726 * prj-proc.adb: Minor reformatting
33728 * make.adb: Minor reformatting
33730 2001-12-03 Geert Bosch <bosch@gnat.com>
33732 * make.adb: Minor reformatting.
33734 2001-12-03 Robert Dewar <dewar@gnat.com>
33736 * sem_ch12.adb: Minor reformatting
33738 2001-12-03 Ed Schonberg <schonber@gnat.com>
33740 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
33741 push Standard on the stack before analyzing the instance body,
33742 in order to have a clean visibility environment.
33744 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
33746 2001-12-03 Ed Schonberg <schonber@gnat.com>
33748 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
33749 instantiation of a body that contains an inlined body.
33751 2001-12-03 Ed Schonberg <schonber@gnat.com>
33754 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
33755 to prevent freezing within formal packages.
33756 (Freeze_Subprogram_Body): If body comes from another instance that
33757 appeared before its own body, place freeze node at end of current
33758 declarative part, to prevent a back-end crash.
33759 (Inline_Instance_Body): Handle properly a package instance within
33760 a subprogram instance that is a child unit.
33762 2001-12-01 Graham Stott <grahams@redhat.com>
33764 * Makefile.in (misc.o): Add missing $(srcdir) prefix
33765 and add optabs.h dependency.
33767 * misc.c: Include optabs.h
33768 (gnat_tree_code_type): Make static and const.
33769 (gnat_tree_code_length): Likewise.
33770 (gnat_tree_code_name): Likewise.
33771 (update_setjmp_buf): Obtain operands mode from insn_data.
33773 2001-11-29 Richard Henderson <rth@redhat.com>
33775 * init.c: Remove obsolete dwarf2 frame.h section.
33777 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
33779 * Make-lang.in (ada.generated-manpages): New dummy target.
33781 2001-11-29 Ed Schonberg <schonber@gnat.com>
33783 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
33784 into Command, an array conversion is illegal here. Uncovered by
33787 2001-11-28 Geert Bosch <bosch@gnat.com>
33789 * init.c: Minor whitespace changes.
33791 2001-11-28 Doug Rupp <rupp@gnat.com>
33793 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
33796 2001-11-28 Zack Weinberg <zack@codesourcery.com>
33798 * misc.c (gnat_expand_constant): Move declaration above
33799 definition of lang_hooks.
33800 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
33801 (gnat_init): lang_expand_constant no longer exists.
33803 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
33804 always have vprintf.
33805 (gnat_init): Always call set_internal_error_function.
33807 2001-11-27 Andreas Jaeger <aj@suse.de>
33809 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
33811 2001-11-27 Laurent Guerby <guerby@acm.org>
33813 * Makefile.in: Regenerate Ada dependencies.
33815 2001-11-26 Richard Henderson <rth@redhat.com>
33817 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
33818 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
33819 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
33821 2001-11-25 Laurent Guerby <guerby@acm.org>
33823 * sysdep.c (rts_get_*): Fix style.
33825 2001-11-19 Laurent Guerby <guerby@acm.org>
33827 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
33828 since it is of no apparent use and cause warnings.
33830 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
33832 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
33834 (gnat_init): Don't return NULL.
33835 (finish_parse): Remove.
33837 2001-11-17 Laurent Guerby <guerby@acm.org>
33839 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
33840 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
33841 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
33842 * lang-spec.h: Add missing struct field to silence warnings.
33843 * sysdep.c (rts_get_*): Provide K&R prototype.
33844 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
33845 * traceback.c (Unlock_Task, Lock_Task): Likewise.
33846 * tracebak.c (__gnat_backtrace): Remove unused variable.
33847 * utils.c (end_subprog_body): Move to K&R style.
33849 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33851 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
33853 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
33855 * misc.c (gnat_init): Change prototype. Include the
33856 functionality of the old init_parse and init_decl_processing.
33857 (gnat_init_decl_processing): New prototype.
33858 (init_parse): Remove.
33859 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
33861 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
33863 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
33864 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
33865 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
33866 set_yydebug): Remove.
33868 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
33870 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
33871 (struct lang_hooks): Constify.
33872 (language_string, lang_identify): Remove.
33873 * utils.c (init_decl_processing): Update.
33875 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
33877 * misc.c: Include langhooks-def.h.
33878 * Makefile.in: Update.
33880 2001-10-30 Robert Dewar <dewar@gnat.com>
33883 (Check_Identifier): Rewrite circuit to be compatible with use of letters
33884 in the upper half of ASCII.
33885 (Check_Identifier): Minor reformatting
33887 2001-10-30 Geert Bosch <bosch@gnat.com>
33889 * (Associated_Node, Set_Associated_Node): Do not check for
33892 2001-10-30 Robert Dewar <dewar@gnat.com>
33894 * a-reatim.ads: Minor reformatting
33896 2001-10-30 Robert Dewar <dewar@gnat.com>
33898 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
33899 undocumented declarations.
33901 2001-10-30 Pascal Obry <obry@gnat.com>
33903 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
33904 to the binder and linker.
33907 * mdll.ads: Fix layout. Update copyright notice.
33909 * mdll.adb: Fix layout. Update copyright notice.
33911 2001-10-30 Robert Dewar <dewar@gnat.com>
33913 * usage.adb: Minor fix to output for -gnaty.
33915 2001-10-30 Ed Schonberg <schonber@gnat.com>
33917 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
33918 to accommodate all its possible values.
33920 * a-reatim.adb (Split): Special-case handling of Time_Span_First
33921 and of small absolute values of T.
33923 2001-10-30 Richard Kenner <kenner@gnat.com>
33925 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
33926 set_mem_attributes since not needed and wrong if RESULT if a REG;
33927 fixes ACATS failures.
33929 2001-10-30 Geert Bosch <bosch@gnat.com>
33931 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
33932 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
33934 2001-10-30 Robert Dewar <dewar@gnat.com>
33936 * bindusg.adb: Undocument -f switch.
33938 * gnatcmd.adb: Remove /FULL_ELABORATION.
33940 * opt.ads (Force_RM_Elaboration_Order): Document that this is
33943 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
33945 * gnatbind.adb: Minor update of warning msg.
33947 2001-10-30 Vincent Celier <celier@gnat.com>
33949 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
33950 for project file switches (-P (/PROJECT_FILE=),
33951 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
33954 2001-10-30 Geert Bosch <bosch@gnat.com>
33956 * decl.c: Minor whitespace fixes.
33958 2001-10-30 Richard Kenner <kenner@gnat.com>
33960 * utils2.c (build_allocator): Test for SIZE overflow in array case too
33962 2001-10-30 Geert Bosch <bosch@gnat.com>
33964 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
33965 Found due to GCC 3.0 warning of using uninitialized value.
33968 (Get_Max_Size): Use variant record for tracking value/expression.
33969 Makes logic clearer and prevents warnings for uninitialized variables.
33970 (Layout_Array_Type): Use variant record for tracking value/expression.
33971 Makes logic clearer and prevents warnings for uninitialized variables.
33973 2001-10-30 Robert Dewar <dewar@gnat.com>
33975 * lib.adb: Minor reformatting
33977 * s-taprop.ads: Minor reformatting
33979 2001-10-29 Laurent Guerby <guerby@acm.org>
33982 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
33984 (_gnat_error_handler): Make MSG const.
33986 2001-10-29 Richard Kenner <kenner@gnat.com>
33988 * sysdep.c: Fix localtime_r problem on LynxOS.
33989 Also remove #elif to avoid warnings.
33991 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
33994 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
33996 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
33998 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
33999 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
34000 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
34001 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
34002 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
34003 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
34004 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
34005 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
34006 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
34007 types.ads, urealp.adb: Fix spelling errors.
34009 2001-10-27 Laurent Guerby <guerby@acm.org>
34011 * trans.c (gigi): Fix non determinism leading to bootstrap
34012 comparison failures for debugging information.
34014 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
34016 * gnat_rm.texi: Use @./@: where appropriate.
34018 2001-10-26 Robert Dewar <dewar@gnat.com>
34020 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
34022 2001-10-26 Richard Kenner <kenner@gnat.com>
34024 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
34026 2001-10-26 Richard Kenner <kenner@gnat.com>
34028 * decl.c (validate_size): Modify message for bad size to avoid
34029 implication that compiler is modifying the size.
34031 2001-10-26 Robert Dewar <dewar@gnat.com>
34033 * prj-util.adb: Minor reformatting. Fix bad header format.
34035 2001-10-26 Robert Dewar <dewar@gnat.com>
34037 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
34039 * sinfo.ads: Clarify use of Associated_Node (documentation only).
34041 * sem_ch12.adb: Change Node4 to Associated_Node. Change
34042 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
34043 much more narrowly in places where needed. These are cleanups.
34045 2001-10-26 Joel Brobecker <brobecke@gnat.com>
34047 * 5zosinte.ads (null_pthread): new constant.
34050 (Initialize_TCB): Initialize thread ID to null, to be able to verify
34051 later that this field has been set.
34052 (Finalize_TCB): ditto.
34053 (Suspend_Task): Verify that the thread ID is not null before using it.
34054 (Resume_Task): ditto.
34057 (Resume_All_Tasks): Lock the tasks list before using it.
34058 (Suspend_All_Tasks): ditto.
34060 2001-10-26 Richard Kenner <kenner@gnat.com>
34062 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
34063 Make constant variant of designated type for Is_Access_Constant.
34064 Call update_pointer_to with main variant.
34066 * trans.c (process_freeze_entity, process_type):
34067 Call update_pointer_to on main variant.
34069 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
34070 If main variant, update all other variants.
34072 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
34075 2001-10-26 Robert Dewar <dewar@gnat.com>
34077 * prj-util.adb: Minor reformatting
34079 2001-10-26 Robert Dewar <dewar@gnat.com>
34081 * prj-util.adb: Minor reformatting
34083 2001-10-26 Robert Dewar <dewar@gnat.com>
34085 * prj-attr.adb: Minor reformatting throughout
34087 2001-10-26 Robert Dewar <dewar@gnat.com>
34089 * prj-attr.ads: Minor reformatting
34090 Add ??? comment (this whole spec has almost no comments)
34092 2001-10-26 Vincent Celier <celier@gnat.com>
34094 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
34095 ("//") that precede the drive letter on Interix.
34097 2001-10-26 Geert Bosch <bosch@gnat.com>
34099 * gnat_rm.texi: Add GNAT Reference Manual.
34101 2001-10-25 Robert Dewar <dewar@gnat.com>
34103 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
34104 is Error. Similar change for other renaming cases.
34106 2001-10-25 Robert Dewar <dewar@gnat.com>
34108 * s-atacco.ads: Add pragma Inline_Always for functions.
34109 Fix header format. Add copyright 2001
34111 2001-10-25 Ed Schonberg <schonber@gnat.com>
34113 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
34114 return Error rather than Empty so that analysis can proceed.
34116 2001-10-25 Ed Schonberg <schonber@gnat.com>
34118 * sem_util.adb (Enter_Name): better handling of cascaded error
34119 messages when a unit appears in its own context.
34121 2001-10-25 Ed Schonberg <schonber@gnat.com>
34123 * sem_util.adb (Defining_Entity): in case of error, attach created
34124 entity to specification, so that semantic analysis can proceed.
34126 2001-10-25 Robert Dewar <dewar@gnat.com>
34129 (Defining_Entity): Deal with Error.
34130 (Process_End_Label): Deal with bad end label for.
34132 2001-10-25 Ed Schonberg <schonber@gnat.com>
34134 * sem_elab.adb (Check_A_Call): refine message when call is in an
34135 instance but callee is not declared in the generic unit.
34137 2001-10-25 Ed Schonberg <schonber@gnat.com>
34139 * sem_elab.adb (Check_A_Call): check for renaming before finding the
34140 enclosing unit, which may already be different from the calling unit.
34142 2001-10-25 Geert Bosch <bosch@gnat.com>
34144 * 4gintnam.ads: fix header format.
34146 2001-10-25 Ed Schonberg <schonber@gnat.com>
34148 * sem_res.adb (Resolve_Call): if the call is actually an indexing
34149 operation on the result of a parameterless call, perform elaboration
34150 check after the node has been properly rewritten.
34152 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
34153 inlined within the generic tree, the defining identifier is not a
34156 2001-10-25 Ed Schonberg <schonber@gnat.com>
34158 * sem_res.adb (Resolve): special-case resolution of Null in an
34159 instance or an inlined body to avoid view conflicts.
34161 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
34162 compatibility by retrieving the access type of the generic copy.
34164 2001-10-25 Robert Dewar <dewar@gnat.com>
34167 (Analyze_Number_Declaration): Handle error expression.
34168 (Signed_Integer_Type_Declaration): Handle error bound.
34169 (Analyze_Subtype_Indication): Handle error range.
34171 * sem_util.adb (Get_Index_Bounds): Check for Error.
34173 2001-10-25 Robert Dewar <dewar@gnat.com>
34175 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
34176 in no run time mode.
34178 2001-10-25 Pascal Obry <obry@gnat.com>
34180 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
34181 mode case for ALLOC case.
34183 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
34184 all platforms. Improvement of last change.
34186 2001-10-25 Robert Dewar <dewar@gnat.com>
34188 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
34190 2001-10-25 Geert Bosch <bosch@gnat.com>
34192 * osint.adb (Is_Relative): Remove duplicate.
34194 2001-10-25 Pascal Obry <obry@gnat.com>
34196 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
34197 pathnames in UNIX and DOS style with drive letter.
34198 (Is_Relative): new routine.
34200 * osint.adb: Minor reformatting
34202 * osint.adb (Is_Relative): implementation using
34203 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
34205 2001-10-25 Pascal Obry <obry@gnat.com>
34207 * g-dirope.adb (Basename): correctly compute offset between the
34208 original Path and the translated one.
34210 * g-dirope.adb: (Base_Name): add some comments.
34212 2001-10-25 Robert Dewar <dewar@gnat.com>
34214 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
34215 in HIE mode, avoids compilation abandoned message
34217 * exp_imgv.adb: Correct typo in previous change
34219 * exp_imgv.adb: Correct typo in previous change (not my day!)
34221 2001-10-25 Robert Dewar <dewar@gnat.com>
34223 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
34225 2001-10-25 Pascal Obry <obry@gnat.com>
34227 * g-awk.ads: Move all pragma inlines next to the routine
34228 declarations. This is more uniform with other GNAT spec.
34230 2001-10-22 Geert Bosch <bosch@gnat.com>
34232 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
34234 2001-10-19 Geert Bosch <bosch@gnat.com>
34236 * Makefile.in (tools, gnattools): Remove gnatmem.
34238 2001-10-17 Richard Henderson <rth@redhat.com>
34240 * Makefile.in (misc.o): Depend on langhooks.h.
34241 * misc.c: Include it.
34242 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
34243 (LANG_HOOKS_DECODE_OPTION): New.
34244 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
34246 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
34248 * trans.c (tree_transform): Adjust to recent change in
34249 expand_asm_operands to implement named asm operands.
34251 2001-10-11 Ed Schonberg <schonber@gnat.com>
34253 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
34254 renaming of discriminant for mutable record type.
34256 2001-10-11 Robert Dewar <dewar@gnat.com>
34258 * validsw.adb: Properly save -gnatVn status.
34260 2001-10-11 Robert Dewar <dewar@gnat.com>
34262 * usage.adb: Add lines for V switch.
34264 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
34265 (/VALIDITY_CHECKING).
34267 2001-10-11 Ed Schonberg <schonber@gnat.com>
34269 * sem_type.adb (Add_One_Interp): an operator for a type declared in
34270 an extension of System is known to be visible.
34272 2001-10-11 Ed Schonberg <schonber@gnat.com>
34274 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
34275 properly. Fixes regression on ACATS C34005G.
34277 2001-10-11 Robert Dewar <dewar@gnat.com>
34279 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
34280 loop in generic instance, since this is likely not very useful.
34282 2001-10-11 Robert Dewar <dewar@gnat.com>
34284 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
34285 the error message for high integrity mode.
34287 * rtsfind.adb (RTE): Give message if we try to find an entity that
34288 is not available in high integrity mode.
34291 (OK_To_Use_In_HIE_Mode): New array.
34292 (RTE): May return Empty in high integrity mode.
34294 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
34295 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
34297 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
34298 unit if not inlined always and in no runtime mode. Fixes problem
34299 caused by new Rtsfind changes.
34301 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
34304 * rtsfind.adb (RTE): Make sure we do not try to load unit after
34305 giving message for entity not available in high integrity mode.
34307 2001-10-11 Pascal Obry <obry@gnat.com>
34309 * impunit.adb: Add GNAT.CRC32.
34311 2001-10-11 Ed Schonberg <schonber@gnat.com>
34313 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
34314 properly the case where one universal operand in a non-static
34315 exponentiation of a real literal.
34317 2001-10-11 Ed Schonberg <schonber@gnat.com>
34319 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
34320 clause, return the gobal finalization list, for lack of anthing else.
34322 2001-10-11 Ed Schonberg <schonber@gnat.com>
34324 * exp_ch7.adb (Make_Transient_Block): if statement is within
34325 exception handler, always use new transient scope to place Clean
34328 2001-10-11 Pascal Obry <obry@gnat.com>
34331 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
34332 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
34333 (GNATLS_RTL_OBJS): add g-crc32.o
34334 (GNATMAKE_RTL_OBJS): add g-crc32.o
34337 (CRC_Match): new function.
34338 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
34339 instead of the previous simple checksum algorithm.
34340 (Time_Stamp_Mismatch): use CRC_Match for comparison.
34341 (Set_Source_Table): idem.
34344 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
34345 instead of simple checksum.
34346 (CRC_Match): new function.
34347 (CRC_Error): new constant.
34349 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
34350 a CRC now and not a simple checksum. A CRC uses lower-case hex
34351 letters, fixes ambiguity in parsing.
34353 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
34354 is what this variable will store.
34356 * bcheck.adb: Change reference to chechsum in comments by CRC.
34357 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
34358 rename All_Checksum_Match to All_CRC_Match. Change due to API
34359 renaming since now GNAT does not use a simple checksum but a
34360 CRC using GNAT.CRC32.
34362 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
34363 now and not anymore a simple checksum.
34365 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
34368 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
34371 (Restore_Scan_State): rename Checksum to CRC.
34372 (Save_Scan_State): idem.
34376 (Checksum): rename to CRC.
34377 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
34379 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
34380 GNAT.CRC32). Update copyright notice.
34382 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
34383 GNAT.CRC32). Update copyright notice.
34386 (Accumulate_Checksum): removed.
34387 (Update): new procedure. Add a wide-character into the CRC.
34390 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
34391 (Load_File): fix initialization of S (change Source_Checksum to
34394 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
34395 Source_CRC in S initialization.
34397 * sinput.adb (Source_Checksum): renamed to Source_CRC.
34399 * sinput.ads (Source_Checksum): renamed to Source_CRC.
34400 Update comments for the CRC.
34402 * types.adb (Hex): Use lowercase for the letter part.
34404 * types.ads (Get_Hex_String): Returns the hexadecimal representation
34405 for a word. This is currently used only for CRC. In previous version,
34406 the checksum was using a representation with all letter being
34407 upper-case. With the new implementation (using CRC) we do not remove
34408 the 32th bit of the CRC, so we can have an upper-case starting letter
34409 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
34410 It is ambigous since the CRC was optional and could be followed by
34411 options like EB, EE. So now this routines uses lower-case letter for
34412 the hexadecimal representation. Strange enough only lower case letters
34413 where checked in Scan_ALI (even if this was not a possible case).
34415 * gnatvsn.ads (Library_Version): changed to 3.15a.
34417 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
34420 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
34423 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
34424 Add 2001 to copyright notice
34425 (Accumulate_Checksum): Modify to use System.CRC32.
34427 * ali-util.ads: Redo changes of previous revision to continue to use
34428 the word Checksum. Add 2001 to copyright notice.
34430 * ali.adb: Undo some of previous changes, not needed.
34431 Keep the change for lower case letters in the checksum.
34433 * ali.ads: Undo previous change not needed.
34435 * bcheck.adb: Undo most of previous change, not needed.
34436 But do use Checksums_Match for checksum comparison.
34438 * gnatls.adb: Undo most of previous change, not needed.
34439 But do use Checksums_Match for comparing checksums.
34441 * lib-load.adb: Undo previous change, not needed.
34443 * lib-writ.adb: Undo previous change, not needed.
34445 * lib-writ.ads: Document that checksums use lower case,
34446 not upper case letters.
34448 * scans.adb: Undo previous change, not needed
34450 * scans.ads: Undo previous change, not needed.
34452 * scn-nlit.adb: Undo previous changes, not needed.
34454 * scn-slit.adb: Undo previous change, not needed. Fix header format.
34457 (Accumulate_Checksum): Use System.CRC32.
34458 (Initialize_Checksum): New procedure.
34459 Remove other changes of previous revision.
34461 * sinput-p.adb: Undo previous change, not needed.
34463 * sinput.adb: Undo previous change, not needed.
34465 * sinput-l.adb: Undo previous change, not needed.
34467 * sinput.ads: Undo previous change, not needed. Keep only comment
34468 on new checksum algorithm
34470 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
34471 Also remove a-tags and a-stream from GNAT sources.
34473 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
34475 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
34477 2001-10-11 Geert Bosch <bosch@gnat.com>
34479 * einfo.h: Regenerate.
34481 * nmake.ads: Regenerate.
34483 * nmake.adb: Regenerate.
34485 * sinfo.h: Regenerate.
34487 * treeprs.adb: Regenerate.
34489 2001-10-10 Geert Bosch <bosch@gnat.com>
34491 * gnat-style.texi: New file describing coding guidelines for Ada.
34493 2001-10-10 Ed Schonberg <schonber@gnat.com>
34495 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
34498 2001-10-10 Geert Bosch <bosch@gnat.com>
34500 * snames.ads: Add new names for project facility.
34502 * snames.adb: Update to reflect snames.ads changes.
34504 * snames.h: Update to reflect snames.ads changes.
34506 2001-10-10 Vincent Celier <celier@gnat.com>
34509 (Add_Switches): reflect the changes for the switches attributes
34510 Default_Switches indexed by the programming language,
34511 Switches indexed by the file name.
34512 (Collect_Arguments_And_Compile): Idem.
34513 Reflect the attribute name changes.
34516 (Initialisation_Data): Change the names of some packages and
34518 (Initialize): process case insensitive associative arrays.
34521 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
34524 (Parse_Attribute_Declaration): For case insensitive associative
34525 arrays, set the index string to lower case.
34528 Reflect the changes of the project attributes.
34531 Replace Check_Naming_Scheme by Ada_Check and
34532 Language_Independent_Check.
34535 Replaced Check_Naming_Scheme by 2 procedures:
34536 Ada_Check and Language_Independent_Check.
34539 (Process_Declarative_Items): For case-insensitive associative
34540 arrays, set the index string to lower case.
34541 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
34542 Prj.Nmsc.Check_Naming_Scheme.
34545 (Case_Insensitive): New function
34546 (Set_Case_Insensitive): New procedure
34549 (Case_Insensitive): New function
34550 (Set_Case_Insensitive): New procedure
34551 (Project_Node_Record): New flag Case_Insensitive.
34554 (Value_Of): new function to get the string value of a single
34555 string variable or attribute.
34558 (Value_Of): new function to get the string value of a single
34559 string variable or attribute.
34562 (Ada_Default_Spec_Suffix): New function
34563 (Ada_Default_Impl_Suffix): New function
34564 Change definitions of several constants to reflect
34565 new components of record types.
34568 (Naming_Data): Change several components to reflect new
34569 elements of naming schemes.
34570 (Project_Data): New flags Sources_Present and
34571 Language_Independent_Checked.
34572 (Ada_Default_Spec_Suffix): New function.
34573 (Ada_Default_Impl_Suffix): New function.
34576 Modification of predefined names for project manager: added
34577 Implementation, Specification_Exceptions, Implementation_Exceptions,
34578 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
34579 Default_Switches, _Languages, Builder, Cross_Reference,
34580 Finder. Removed Body_Part, Specification_Append, Body_Append,
34581 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
34584 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34587 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
34588 not that it is Nil_Variable_Value.
34590 * prj.ads: Add ??? for uncommented declarations
34592 2001-10-10 Ed Schonberg <schonber@gnat.com>
34594 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
34595 constant, do not indicate possible modification, so that gigi can
34596 treat it as a bona fide constant.
34598 2001-10-10 Robert Dewar <dewar@gnat.com>
34600 * sem_prag.adb: Add processing for pragma External.
34602 * snames.ads: Add entry for pragma External.
34604 * par-prag.adb: Add pragma External.
34606 * snames.adb: Updated to match snames.ads.
34608 2001-10-10 Ed Schonberg <schonber@gnat.com>
34610 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
34611 a dynamic task if the allocator appears in an indexed assignment
34612 or selected component assignment.
34614 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
34615 For a dynamic task in an assignment statement, use target of
34616 assignment to generate meaningful name.
34618 2001-10-10 Ed Schonberg <schonber@gnat.com>
34620 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
34623 * einfo.ads: Body_Entity is also defined for generic package.
34624 Documentation change only
34626 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
34627 others_choice for a discriminated component initialization,
34628 convert discriminant references into the corresponding discriminals.
34630 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
34631 only if original type is private and expression has to be wrapped
34635 (Apply_Constraint_Check): Do not perform length check
34636 if expression is an aggregate with only an others_choice.
34637 (Length_N_Cond): two references to the same in_parameter
34638 (typically the discriminal in an init_proc) denote the same value.
34639 Two useful optimization uncovered by bugfixes above.
34641 2001-10-10 Robert Dewar <dewar@gnat.com>
34643 * xeinfo.adb: Change int to char in translation of enumeration types.
34644 This fixes a problem in the C representation of component alignment.
34645 Add 2001 to copyright notice
34647 2001-10-10 Richard Kenner <kenner@gnat.com>
34649 * decl.c: (validate_size): Do check size of object of integral type
34650 if it is a packed array type.
34652 2001-10-10 Richard Kenner <kenner@gnat.com>
34654 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
34655 VAR_DECL for constant if not Is_Public but -O0.
34657 2001-10-10 Richard Kenner <kenner@gnat.com>
34659 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
34661 2001-10-10 Geert Bosch <bosch@gnat.com>
34663 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
34664 use '/' as switch character, allowing for absolute file names.
34666 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
34668 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
34671 2001-10-08 Geert Bosch <bosch@gnat.com>
34673 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
34674 Automatically build utilities when files need to be regenerated.
34676 2001-10-08 Geert Bosch <bosch@gnat.com>
34678 * xsnames.adb: New utility for updating snames.ads and snames.adb
34680 2001-10-08 Zack Weinberg <zack@codesourcery.com>
34682 * Make-lang.in (ADAFLAGS): Add -W -Wall.
34683 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
34684 (gnat1): Also depend on attribs.o.
34685 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
34686 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
34687 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
34688 (ADAFLAGS): Add -W -Wall.
34689 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
34692 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
34693 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
34694 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
34695 Use $(ADAC), not $(CC), as compilation command.
34697 (gnattools): Depend directly on tools to build, don't use
34699 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
34701 * einfo.h, sinfo.h: New files (autogenerated).
34703 2001-10-08 Richard Henderson <rth@redhat.com>
34705 * comperr.adb (Abort_In_Progress): New.
34706 (Compiler_Abort): Use it to prevent recursion.
34708 2001-10-08 Robert Dewar <dewar@gnat.com>
34710 * atree.adb: Set Error_Posted in Error node, helps error recovery.
34712 * par-endh.adb (Output_End_Expected): We should also not test
34713 Error_Posted on the Error node, since now it is always set.
34715 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
34716 to help error recovery. Part of general work on 9407-004.
34718 * par.adb: Add ??? for misuse of error
34721 (Resolve): Defend against Error, fixes 9407-003.
34722 (Resolve_Discrete_Subtype_Indication): Defend against Error.
34724 * sinfo.ads (N_Error): Now has Etype field (which will be set
34725 to Any_Type to help error recovery).
34727 2001-10-08 Richard Kenner (kenner@gnat.com)
34729 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
34730 Consistently set MEM attributes from expression; fixes
34731 bootstrap failure on x86.
34733 2001-10-08 Geert Bosch (bosch@gnat.com)
34735 * 5oosinte.adb: Add 2001 to copyright notice.
34737 2001-10-08 Geert Bosch (bosch@gnat.com)
34739 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
34741 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
34743 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
34745 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
34747 2001-10-05 Geert Bosch (bosch@gnat.com)
34749 * adaint.h: Small formatting fix.
34751 2001-10-04 Geert Bosch <bosch@gnat.com>
34753 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
34754 Arg is int, not FILE *, in dummy version of functions.
34756 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
34757 Arg is int, not FILE *.
34759 2001-10-04 Geert Bosch <bosch@gnat.com>
34761 * 3lsoccon.ads: Added file, missed with initial check ins.
34763 * 4lintnam.ads: Fix header format.
34764 Change Linux to GNU/Linux.
34766 * 5iosinte.adb: Change Linux to GNU/Linux.
34768 * 5iosinte.ads: Change Linux to GNU/Linux.
34770 * 5itaprop.adb: Change Linux to GNU/Linux.
34772 * 5itaspri.ads: Change Linux to GNU/Linux.
34773 Update copyright notice.
34775 * 5lintman.adb: Change Linux to GNU/Linux.
34777 * 5lml-tgt.adb: Change Linux to GNU/Linux.
34779 * 5losinte.ads: Change Linux to GNU/Linux.
34781 * 5lsystem.ads: Change Linux to GNU/Linux.
34783 * 5qosinte.adb: Change Linux to GNU/Linux.
34785 * 5qosinte.ads: Change Linux to GNU/Linux.
34787 * 5qparame.ads: Change Linux to GNU/Linux.
34789 * 5qtaprop.adb: Change Linux to GNU/Linux.
34791 * 5qtaspri.ads: Change Linux to GNU/Linux.
34792 Add 2001 to copyright notice.
34794 * 5vintman.ads: Change Linux to GNU/Linux.
34795 Fix header format. Add 2001 to copyright notice.
34797 * g-soccon.ads: Change Linux to GNU/Linux.
34799 * g-trasym.ads: Change Linux to GNU/Linux.
34800 Add 2001 to copyright notice.
34802 * memtrack.adb: Change Linux to GNU/Linux.
34804 * s-intman.ads: Change Linux to GNU/Linux.
34805 Add 2001 to copyright notice. Fix header format.
34807 * s-stache.adb: Change Linux to GNU/Linux.
34809 * adaint.c: Change Linux to GNU/Linux.
34811 * cio.c: Change Linux to GNU/Linux.
34813 * cstreams.c: Change Linux to GNU/Linux.
34815 * init.c: Change Linux to GNU/Linux.
34817 * gmem.c: Change Linux to GNU/Linux.
34819 * tracebak.c: Change Linux to GNU/Linux.
34822 2001-10-02 Geert Bosch <bosch@gnat.com>
34824 * misc.c (insert_default_attributes): Add dummy version.