1 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
4 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
5 Pass 'false' for the new allocate_struct_function parameter.
6 * utils.c (build_function_stub): Likewise.
8 2007-11-25 Richard Guenther <rguenther@suse.de>
10 utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
11 (gnat_poplevel): Likewise.
13 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
15 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
16 strict alignment, no alignment clause and a known static size, cap
17 the type alignment to the greatest power of 2 factor of the size.
18 (gnat_to_gnu_field): If the field has a component clause, is aliased
19 or of a type with strict alignment, require that its size be equal to
21 (validate_size): Use the type size as the minimum size for a type with
24 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
26 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
27 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
28 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
29 Use 'Access instead of 'Unchecked_Access in second and third
30 arguments of pthread_sigmask.
32 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
34 * decl.c (ceil_alignment): New function.
35 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
36 (make_packable_type): Likewise.
38 2007-11-22 Olivier Hainque <hainque@adacore.com>
40 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
43 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
45 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
46 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
48 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
51 * misc.c (gnat_adjust_rli): Delete.
52 (gnat_init): Do not initialize the translation code here.
53 Do not call set_lang_adjust_rli.
54 * trans.c (init_code_table): Make static.
55 (gnat_init_stmt_group): Delete.
56 (gigi): Initialize the translation code entirely here.
57 Emit debug info for the common types here instead of...
58 * utils.c (gnat_init_decl_processing): ...here.
59 * gigi.h (init_code_table): Delete.
60 (gnat_init_stmt_group): Likewise.
62 2007-11-16 Olivier Hainque <hainque@adacore.com>
64 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
65 retrieving an allocator return value from a super-aligned address from
67 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
68 expect a super-aligned address for a fat or thin pointer.
70 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
72 * trans.c (call_to_gnu): Always set the source location on the call
73 expression. If the function returns-by-target, also set it on the
76 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
78 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
79 sections of non-supported Interix target.
81 * s-osinte-interix.ads: Removed.
83 * i-cstrin.ads (chars_ptr): Make it a C convention type.
85 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
87 * a-tasatt.adb: Add a comment at the beginning of the package
88 explaining why in general 'Unchecked_Access must be used instead
91 * sem_prag.adb (Process_Convention): Move the test for the
92 entity on which the Convention pragma applies down to also
93 forbid pragma Convention on enumeration literals reached
96 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
98 * a-tasatt.adb: Revert previous change for this file as it will
99 generate an error when this package is instantiated from a
102 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
104 * a-tasatt.adb: Type Wrapper should be declared in comment instead
105 of already declared type Node_Access.
106 Use 'Access instead of 'Unchecked_Access when applicable. Local
107 lifetime is the one of the package.
108 (Set_Value): W is allocated on the heap.
110 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
112 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
114 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
117 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
119 (elaboration code): Timer_Queue lifetime is the one of the
122 * tracebak.c (i386 alternative): Remove useless comparaison
123 which is always false; LOWEST_ADDRESS is 0 and is never greater
124 than an unsigned integer.
126 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
127 embedded check for "Ada_Version >= Ada_05".
129 2007-11-07 Olivier Hainque <hainque@adacore.com>
131 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
132 craft and expand comment.
134 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
136 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
138 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
140 * misc.c (gnat_handle_option): Replace call to abort with
141 call to gcc_unreachable.
142 (gnat_init): Likewise.
143 (gnat_expand_expr): Likewise.
144 (fp_prec_to_size): Likewise.
145 (fp_size_to_prec): Likewise.
147 2007-10-23 Richard Guenther <rguenther@suse.de>
150 * tracebak.c: #undef abort after including system.h.
152 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
154 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
155 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
157 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
159 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
161 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
162 Set the protection status of the guard page based on the value of On.
164 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
166 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
167 (Exit_Task): Pass False to Hide_Yellow_Zone.
169 2007-10-15 Robert Dewar <dewar@adacore.com>
171 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
172 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
173 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
174 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
175 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
176 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
177 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
178 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
179 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
180 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
181 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
182 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
183 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
184 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
185 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
186 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
188 Add Unreferenced and Warnings (Off) pragmas for cases of
189 variables modified calls where they are IN OUT or OUT parameters and
190 the resulting values are not subsequently referenced. In a few cases,
191 we also remove redundant code found by the new warnings.
193 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
194 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
195 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
196 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
197 warning controlled by -gnatw.o that warns on cases of out parameter
198 values being ignored.
200 2007-10-15 Geert Bosch <bosch@adacore.com>
202 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
204 * expect.c: Initial port to arm-mentor-nucleus.
205 Use kill for __gnat_kill() on VMS.
207 2007-10-15 Emmanuel Briot <briot@adacore.com>
209 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
211 (Xref_Record): Change type for Line, since in the case of a reference to
212 a predefined entity (as happens for array index types), the line is set
214 Add support for parsing multiple array index types info, or
215 multiple inherited interfaces info. This information cannot be stored
216 in Xref_Entity_Record, which only supports a single instance of Tref_*,
217 and is therefore stored in the list of references instead. It has a
218 special treatement later on in tools that use this information.
220 2007-10-15 Tristan Gingold <gingold@adacore.com>
222 * debug.adb: Document use of -gnatd.a and -gnatd.I
224 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
226 2007-10-15 Javier Miranda <miranda@adacore.com>
228 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
229 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
230 care of access to class-wide interface types plus removal of bizarre
231 conversion of tagged object to access type (reported by Gary
232 Dismukes). After this patch there is no need to perform any
233 additional management on these nodes in Expand_Interface_Actuals.
235 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
236 that handles use of 'Access and 'Unchecked_Access applied to
237 actuals covering interface types. Such code is now
238 centralized in Expand_N_Attribute_Reference.
240 2007-10-15 Ed Schonberg <schonberg@adacore.com>
242 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
243 of tagged types whose ultimate ancestor is a CPP type.
244 (Freeze_Array_Type): For a packed array type, generate an initialization
245 procedure if the type is public, to handle properly a client that
246 specifies Normalize_Scalars.
248 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
250 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
251 inside a generic body, retrieve the full view of the entry family
252 discrete subtype if available.
254 2007-10-15 Thomas Quinot <quinot@adacore.com>
256 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
257 attempt to generate stubs for hidden primitive operations.
259 2007-10-15 Vincent Celier <celier@adacore.com>
261 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
262 returning None, used when there is no platform specific body for
265 2007-10-15 Bob Duff <duff@adacore.com>
267 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
268 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
269 the generic Heap_Sort_G, in order to avoid trampolines.
271 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
272 Jose Ruiz <ruiz@adacore.com>
274 * vx_stack_info.c: New file.
276 * i-forbla-unimplemented.ads: New file.
278 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
279 for unsupported configurations; use it on VMS targets instead of the
281 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
282 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
283 used by VxWorks targets to have access to task-specific data and be
284 able to extract the stack boundaries for stack checking.
285 Use system-vms-ia64.ads on ivms.
287 * Make-lang.in: Update dependencies.
289 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
292 2007-10-15 Vincent Celier <celier@adacore.com>
294 * snames.adb, snames.ads: Add new standard name runtime_library_dir
296 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
298 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
300 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
301 the source is unknown.
303 * prj-ext.adb: Spelling error fix
305 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
306 95 reserved word in its name.
307 (Process_Project_Level_Array_Attributes): Process new attribute
310 * prj-part.adb (Parse_Single_Project): Do not check the name of the
311 config project against the user project names.
313 * prj-proc.adb (Expression): In multi-language mode, indexes that do
314 not include a dot are always case insensitive.
315 (Process_Declarative_Items): Ditto
316 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
319 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
320 True, compare both indexes in lower case.
322 2007-10-15 Robert Dewar <dewar@adacore.com>
324 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
326 2007-10-15 Gary Dismukes <dismukes@adacore.com>
328 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
329 association for an access component, add an association with null as
330 the expression. Remove testing for array subtypes and the setting in
331 that case of Ctyp to the array component type, which prevented proper
332 inclusion of an association for null-initialized arrays. Collapse
333 condition that tests for array subtypes into just a test of
334 Is_Partially_Initialized_Type (which already covers arrays anyway).
336 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
338 * sem_ch12.adb: Minor code reformatting.
339 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
340 find the parent package which may have been hidden by local
343 2007-10-15 Gary Dismukes <dismukes@adacore.com>
345 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
346 flag of derived concurrent types, taking into account the flag setting
347 on the parent subtype and any new set of discriminants.
349 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
351 * sem_ch4.adb: Minor code and comment reformatting.
352 (Analyze_Allocator): When the designated type of an unconstrained
353 allocator is a record with unknown discriminants or an array with
354 unknown range bounds, emit a detailed error message depending on the
355 compilation mode and whether the designated type is limited.
357 2007-10-15 Tristan Gingold <gingold@adacore.com>
359 * system-vms-ia64.ads: New file.
361 * system-vms_64.ads: Minor comment fix.
363 2007-10-15 Ed Schonberg <schonberg@adacore.com>
365 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
366 body generated for a function with a controlling result that is a null
367 extension, discard the generated body in favor of the current explicit
370 2007-10-15 Ed Schonberg <schonberg@adacore.com>
372 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
373 examining its original form, to handle properly operator calls that
376 2007-10-15 Olivier Hainque <hainque@adacore.com>
378 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
379 instead of a procedure value in each traceback entry.
381 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
382 instead of procedure value to TBK$SYMBOLIZE.
384 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
386 (TB_Entry_For): Account for the PV/FP renaming.
388 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
390 (Null_TB_Entry): Account for change of component name.
391 (PV_For): Rename as FP_For.
393 2007-10-15 Tristan Gingold <gingold@adacore.com>
395 * trans.c (gnat_to_gnu): Remove the padding structure more often.
396 This optimize assignment to over-aligned record.
398 2007-10-15 Emmanuel Briot <briot@adacore.com>
400 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
403 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
404 type, for dispatching calls.
406 2007-10-15 Vincent Celier <celier@adacore.com>
407 Robert Dewar <dewar@adacore.com>
409 * gnat_ugn.texi: Add documentation for switches --version and --help
410 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
411 gnatxref, gnatfind, gnatls, and gnatclean.
413 Mention attribute Excluded_Source_Dirs
414 Replace obsolescent attribute Locally_Removed_Files with attribute
415 Excluded_Source_Files.
416 Improve documentation of -u (gnatbind)
417 Document how to do reliable stack checking for the environmental task
420 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
421 Document attribute Excluded_Source_Files and indicate that attribute
422 Locally_Removed_Files is obsolescent.
424 2007-10-15 Thomas Quinot <quinot@adacore.com>
426 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
429 Update documentation to note that OpenVMS 8.3 or later must be used
430 to generate g-soccon-vms.ads.
432 * atree.adb: Add ??? comment
434 * exp_util.adb: Minor reformatting.
435 Add ??? comment in Kill_Dead_Code.
437 2007-10-15 Robert Dewar <dewar@adacore.com>
439 * errout.ads: Comment clarification
441 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
442 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
444 * lib.ads: Comment update
446 * init.c: Minor reformatting.
448 * sem_attr.adb: Minor formatting
450 * osint-b.ads: Minor reformatting
452 * sem_ch9.adb: Implement -gnatd.I switch
454 * g-comlin.adb: (Start): Fix handling of empty command line.
456 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
457 even when -rules follows the -cargs section.
459 2007-10-08 Ollie Wild <aaw@google.com>
461 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
463 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
465 (gnat_eh_runtime_type): Removed.
466 (gnat_return_tree): New function.
468 2007-10-08 Ben Elliston <bje@au.ibm.com>
472 2007-08-31 Ben Elliston <bje@au.ibm.com>
474 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
475 when compiling for powerpc64-*-linux.
476 * system-linux-ppc64.ads: New file.
478 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
480 Mapped location support
481 * back_end.adb (Call_Back_End): Pass information about source
482 files instead of units to gigi.
483 * gigi.h (struct File_Info_Type): New.
484 (gigi): Rename and change type of number_units parameter, change
485 type of file_info_ptr parameter.
486 * trans.c (number_files): New global variable.
487 (gigi): Rename and change type of number_units parameter, change
488 type of file_info_ptr parameter.
489 If mapped location support is enabled, create the isomorphic mapping
490 between source files and line maps.
491 (Sloc_to_locus): If mapped location support is enabled, translate
492 source location into mapped location.
493 (annotate_with_node): Rename into set_expr_location_from_node.
494 Call set_expr_location instead of annotate_with_locus.
495 (Pragma_to_gnu): Adjust for above change.
496 (Loop_Statement_to_gnu): Likewise.
497 (call_to_gnu): Likewise.
498 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
499 (gnat_to_gnu): Likewise.
500 (add_stmt_with_node): Likewise.
501 (add_cleanup): Likewise.
502 * utils.c (gnat_init_decl_processing): Do not set input_line.
504 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
506 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
507 (Applicable_Use): Emit a warning when a package tries to use itself.
508 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
509 is already in use or the package where it is declared is in use or is
510 declared in the current package.
511 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
513 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
514 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
515 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
517 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
519 * a-calend-vms.adb, a-calend.adb:
520 Add a section on leap seconds control along with two entities used to
521 enable and disable leap seconds support. The array Leap_Second_Times is
522 now constant and contains hard time values pre-generated. Remove
523 all elaboration code used to populate the table of leap seconds.
526 Add entity Leap_Seconds_Support to the list of global run-time variables
527 along with a comment on its usage and values.
528 (Gen_Adainit_Ada): Add code to generate the declaration and import of
529 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
530 or one (enabled) depending on the presence of binder switch "-y".
531 (Gen_Adainit_C): Add code to generate the declaration of external int
532 __gl_leap_seconds_support. Set is value to zero (disabled) or one
533 (enabled) depending on the presence of binder switch "-y".
535 * init.c: Add __gl_leap_seconds_support to the list of global values
536 computed by the binder.
538 2007-09-26 Jerome Guitton <guitton@adacore.com>
540 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
541 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
542 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
543 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
545 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
547 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
548 function which can be called by the debugger to interrupt the tasks of
549 an Ada application asynchronously, as needed on VxWorks.
550 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
552 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
553 renamed from Stop_All_Tasks. Update comments.
554 (Stop_All_tasks): New function declaration.
556 2007-09-26 Olivier Hainque <hainque@adacore.com>
558 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
559 #include <utime.h> and #define GCC_RESOURCE_H before
560 #include <sys/wait.h>.
561 Add more protections in __gnat_translate_vms.
563 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
564 #include <sys/wait.h>.
566 2007-09-26 Thomas Quinot <quinot@adacore.com>
567 Sergey Rybin <rybin@adacore.com>
569 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
571 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
574 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
576 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
579 * sem_dist.ads: Minor comment fix
581 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
583 2007-09-26 Javier Miranda <miranda@adacore.com>
584 Eric Botcazou <ebotcazou@adacore.com>
587 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
588 indirection added to the HT_Link component of the TSD. This is required
589 to statically allocate the TSD.
592 Minor reordering of the declarations in the private part. Required to
593 add a level of indirection to the contents of the TSD component HT_Link.
594 This is required to statically allocate the TSD.
596 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
597 Is_Statically_Allocated set from constant objects.
598 Do not make exported constants created by the compiler volatile.
599 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
602 * trans.c (Identifier_to_gnu): For constants, unshare initializers
603 before returning them.
605 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
606 public part of the package.
607 (Make_DT): Move HT_Link component out of the TSD record. For this
608 purpose Make_DT now declares a separate object that stores the
609 HT_Link value, and initializes the TSD component with the address
610 of this new object. The addition of this level of indirection is
611 required to statically allocate the TSD because the TSD cannot
612 have variable components.
613 (Expand_Interface_Conversion): Improve the expanded code.
614 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
616 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
617 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
618 if we are building static dispatch tables then we must not generate
619 extra code to register the primitive because the dispatch table will
620 be built at the end of the library package; otherwise we notify that
621 we cannot build the static dispatch table.
623 2007-09-26 Robert Dewar <dewar@adacore.com>
625 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
628 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
629 (Analyze_Record_Representation_Clause): Suppress junk warning for
630 missing component clause.
631 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
632 tests for controlled type overlay to composites with controlled
634 (Analyze_Record_Representation_Clause): Add reference for component name
636 2007-09-26 Javier Miranda <miranda@adacore.com>
637 Gary Dismukes <dismukes@adacore.com>
639 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
640 for thunks associated with interface types.
642 * einfo.ads: Improve documentatation of Is_Internal
643 (Is_Thunk): New attribute applicable to subprograms. True for thunks
644 associated with interface types.
645 Extensive comment fixes regarding flags that appear in all entities. The
646 documentation is now consistent for all such flags (there were a number
647 of errors in the documentation in this regard).
649 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
651 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
652 of these procedures are passed a function call that already has
653 build-in-place actuals (testing new flag
654 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
655 the case where processing continues.
656 (Expand_Call): If the call is generated from a thunk body then we
657 propagate the extra actuals associated with the accessibility
658 level of the access type actuals.
660 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
661 of each extra formal of a protected operation to reference the
662 corresponding extra formal of the subprogram denoted by the
663 operation's Protected_Body_Subprogram.
665 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
666 N_Function_Call nodes.
668 2007-09-26 Robert Dewar <dewar@adacore.com>
670 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
672 * debug.adb: Add d.s flag.
674 2007-09-26 Gary Dismukes <dismukes@adacore.com>
676 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
677 debug variable so that it won't be initialized when pragma
678 Initialize_Scalars is in effect.
680 2007-09-26 Gary Dismukes <dismukes@adacore.com>
682 * freeze.adb (Freeze_Entity): Remove check for preelaborable
683 initialization of a full view. This is moved to
684 Analyze_Package_Specification.
686 * sem_ch7.adb (Analyze_Package_Specification): Add check for
687 preelaborable initialization of a full view in entity loop.
688 (Uninstall_Declarations): If entity is a use-visible compilation unit,
689 its child units are use-visible only if they are visible child units.
691 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
692 whether an expression can be used within a type declaration that
693 requires preelaborable init.
694 (Check_Components): Replace inline code that does partial checking for
695 preelaborable default expressions with call to
696 Is_Preelaborable_Expression.
697 (Has_Preelaborable_Initialization): In the case of a generic actual
698 subtype, (that is, Is_Generic_Actual is True), return the result of
699 applying Has_Preelaborable_Initialization to the generic actual's base
702 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
704 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
705 call to Jan_1_Day _Of_Week to optimize its performance.
706 (Is_Leap): Move the routine to the scope of Week_In_Year.
707 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
708 weekday on which January 1 falls of Year - 1 and Year + 1. This function
709 avoids calling Time_Of and Split, thus making it more efficent.
710 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
712 * g-calend.ads (Week_In_Year): Change comment to reflect new
715 2007-09-26 Emmanuel Briot <briot@adacore.com>
717 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
718 Command_Line): New types
719 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
720 support for defining how switches can be grouped on a command line (as
721 is the case for -gnatw... for GNAT), and how simple switches can be
722 used as aliases for more complex switches (-gnatwa is same as
724 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
725 (Start, Current_*): New subprograms
726 Added support for parsing an array of strings in addition to the real
728 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
729 be moved from the body to the private part of the spec.
730 (*): All subprograms now have an extra parameter with default value to
731 specify which parser should be used. For backward compatibility, it
732 defaults to parsing the command line of the application. They were also
733 modified to properly handle cases where each of the argument does not
734 start at index 1 (which is always true for Ada.Command_Line, but not
735 when processing any Argument_List).
736 (Free): New subprogram
737 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
738 Argument): New subprograms
739 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
740 special characters like ':', '=',... are now handled in a single place,
741 which makes the code more extensible eventually.
742 (Getopt, Full_Switch): When the switch was returned as part of the
743 special character '*', make sure it is prepended by the switch character
744 ('-' in general), so that the application knows whether "foo" or "-foo"
745 was specified on the command line.
747 2007-09-26 Florian Villoing <villoing@adacore.com>
749 * g-dirope.adb (Remove_Dir): In case we are removing directories
750 recursively, make sure that if an exception is raised during the
751 processing, the current working directory is reset to its initial
752 value before propagating the exception.
754 2007-09-26 Vincent Celier <celier@adacore.com>
756 * gnatbind.adb: If there are several ALI files specified and there is
757 a main program to bind, the first ALI is expected to contain the main
758 subprogram and the names of the binder generated files will be derived
759 from the first ALI file name.
760 (Gnatbind): Fix insertion character in invocation of Error_Msg
762 2007-09-26 Vincent Celier <celier@adacore.com>
764 * gnatcmd.adb (Check_Files): Do not include sources that have been
765 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
767 2007-09-26 Ed Schonberg <schonberg@adacore.com>
769 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
770 information about each of its index types, following the type
771 reference for its component type.
773 2007-09-26 Vincent Celier <celier@adacore.com>
775 * make.adb: (Kill): New procedure (__gnat_kill imported)
776 (Running_Compile, Outstanding_Compiles): Global variables that
777 were previously local to procedure Compile_Sources.
778 (Sigint_Intercepted): Send signal SIGINT to all outstanding
779 compilation processes.
781 (Gnatmake): If project files are used, create the mapping of all the
782 sources, so that the correct paths will be found.
784 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
786 2007-09-26 Vincent Celier <celier@adacore.com>
788 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
790 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
791 Replace components Compiler_Min_Options and Binder_Min_Options with
792 Compiler_Required_Switches and Binder_Required_Switches in record
794 Remove components Default_Language and Config in Project_Tree_Data,
797 * prj-attr.adb: New attributes Required_Switches (<language>) in
798 packages Compiler and Binder.
800 * prj-nmsc.adb: Major rewrite of the processing of configuration
801 attributes for gprbuild. No impact on GNAT tools.
803 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
804 process configuration attributes: this is done in Prj.Nmsc.Check.
805 (Recursive_Process): Make a full copy of packages inherited from project
806 being extended, instead of a shallow copy.
807 (Process_Project_Tree_Phase_1): New procedure
808 (Process_Project_Tree_Phase_1): New procedure
809 (Process): Implementation now uses the two new procedures
811 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
812 from the project config, not the tree config that no longer exists.
814 2007-09-26 Vincent Celier <celier@adacore.com>
816 * Make-lang.in: Update dependencies..
818 2007-09-26 Vincent Celier <celier@adacore.com>
820 * osint.adb, osint.ads: Minor reformatting
822 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
824 2007-09-26 Gary Dismukes <dismukes@adacore.com>
826 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
827 message to cite use of <> in aggregate component associations rather
828 than wrongly indicating use of limited aggregates.
830 2007-09-26 Robert Dewar <dewar@adacore.com>
832 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
835 2007-09-26 Ed Schonberg <schonberg@adacore.com>
837 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
838 ancestor of the derived type, the operations are inherited from the
839 primary dispatch table of the parent.
840 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
841 when the context is an explicit type conversion.
843 2007-09-26 Ed Schonberg <schonberg@adacore.com>
845 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
846 rule for qualified expressions properly, to detect improper conversions
847 and resolve some cases of overloading.
849 2007-09-26 Ed Schonberg <schonberg@adacore.com>
851 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
852 proper kind of reference to the primitive operation, for better source
854 (Valid_Conversion): A tagged conversion is legal if both operands are
857 2007-09-26 Robert Dewar <dewar@adacore.com>
859 * sem_warn.adb (Check_References): Catch more cases of unreferenced
862 2007-09-26 Vincent Celier <celier@adacore.com>
864 * snames.adb, snames.ads: Change Include_Option to Include_Switches
866 2007-09-26 Robert Dewar <dewar@adacore.com>
868 * s-wchstw.adb: provide messages for run time unit exceptions
870 * a-witeio.adb: Minor reformatting
872 * exp_ch13.adb: Minor reformatting
874 2007-09-26 Sergey Rybin <rybin@adacore.com>
876 * vms_data.ads: Revise gnatmetric qualifiers.
877 Add qualified for the new gnatbind option '-y'
879 * gnat_ugn.texi: Revise the gnatmetric section.
880 Add entry for new gnatbind option '-y'.
882 * gnat_rm.texi: Minor spelling correction.
883 Document restriction on overlaying controlled types
885 2007-09-26 Vincent Celier <celier@adacore.com>
887 * makegpr.adb (Link_Executables): Do not fail when the root project has
888 no sources, but is an extending project.
890 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
892 * trans.c: Fix misplaced #define.
894 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
896 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
897 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
899 2007-09-21 Olivier Hainque <hainque@adacore.com>
901 * utils.c (type_for_nonaliased_component_p): Return false for
904 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
906 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
907 object covered by 13.3(19) volatile.
909 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
913 * utils.c (unchecked_convert): Use a subtype as the intermediate type
914 in the special VIEW_CONVERT_EXPR case.
916 2007-09-12 Robert Dewar <dewar@adacore.com>
918 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
920 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
921 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
922 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
923 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
924 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
925 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
926 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
927 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
928 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
929 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
930 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
931 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
932 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
933 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
934 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
935 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
936 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
937 pragma Compiler_Unit and adds it to relevant library units.
939 2007-09-12 Ed Schonberg <schonberg@adacore.com>
941 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
942 a box need not correspond to any component.
944 2007-09-12 Robert Dewar <dewar@adacore.com>
946 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
947 the tasking version of the Ada run time when foreign threads are
948 present and there are no explicit Ada tasks or tasking constructs.
950 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
952 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
954 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
955 the usage of switch -y.
957 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
958 when switch -y is present.
960 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
961 leap seconds in Ada.Calendar and its children.
963 2007-09-12 Jose Ruiz <ruiz@adacore.com>
965 * a-extiti.ads (Timer): The discriminant is a "not null access
966 constant" in the Reference Manual.
967 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
969 2007-09-12 Robert Dewar <dewar@adacore.com>
971 * a-swuwha.adb: Remove junk RM header
973 2007-09-12 Vincent Celier <celier@adacore.com>
975 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
978 * g-bytswa.ads: Minor reformatting
980 2007-09-12 Thomas Quinot <quinot@adacore.com>
982 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
983 Add new constant Thread_Blocking_IO, always True by default, set False
984 on a per-runtime basis.
985 (Need_Netdb_Buffer): New constant.
987 2007-09-12 Arnaud Charlet <charlet@adacore.com>
989 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
990 Added renames for corresponding functions in System.Partition_Interface.
992 2007-09-12 Doug Rupp <rupp@adacore.com>
994 * Makefile.in: Remove VMS specific System.CRTL packages which are no
997 * s-crtl-vms64.ads: Removed.
999 2007-09-12 Olivier Hainque <hainque@adacore.com>
1001 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
1002 with discriminant constraints, generalize the code for BIT_FIELDs
1003 to PACKED fields of constant size and propagate DECL_PACKED.
1005 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
1007 * decl.c (array_type_has_nonaliased_component): New predicate.
1008 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
1009 set the TYPE_NONALIASED_COMPONENT flag on the type.
1010 <E_Array_Subtype>: Likewise.
1011 * gigi.h (type_for_nonaliased_component_p): Declare.
1012 * utils.c (type_for_nonaliased_component_p): New predicate.
1013 (create_field_decl): Invoke the above predicate to set the
1014 DECL_NONADDRESSABLE_P flag on the field.
1016 2007-09-11 Javier Miranda <miranda@adacore.com>
1018 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
1019 in library level record type entities if we are generating statically
1020 allocated dispatch tables.
1022 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
1023 importing/exporting the _tag declaration by new code
1024 importing/exporting the dispatch table wrapper. This change allows us
1025 to statically allocate of the TSD.
1026 (Make_DT.Export_DT): New procedure.
1027 (Build_Static_DT): New function.
1028 (Has_DT): New function.
1030 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
1031 True_Constant and Current_Value. Required to statically
1032 allocate the dispatch tables.
1033 (Check_Allocator): Make function iterative instead of recursive.
1034 Also return inner allocator node, when present, so that we do not have
1035 to look for that node again in the caller.
1037 2007-09-11 Jan Hubicka <jh@suse.cz>
1039 * misc.c (gnat_expand_body): Kill.
1040 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
1042 2007-09-10 Robert Dewar <dewar@adacore.com>
1044 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
1045 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1046 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1047 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
1048 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
1049 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
1050 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
1051 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
1052 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
1053 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
1054 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
1055 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
1056 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
1057 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
1058 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
1059 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
1060 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
1061 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
1062 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
1063 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
1064 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
1065 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
1066 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
1067 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
1068 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
1069 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
1070 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
1071 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
1072 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
1073 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
1074 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
1075 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
1076 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
1077 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
1078 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
1079 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
1080 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
1081 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
1082 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
1083 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
1084 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
1085 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
1086 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
1087 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
1088 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
1089 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
1090 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
1091 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
1092 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
1093 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
1094 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
1095 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
1096 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
1097 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
1098 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
1099 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
1100 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
1101 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
1102 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
1103 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
1104 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
1105 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
1106 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
1107 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
1108 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
1109 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
1110 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
1111 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
1112 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
1113 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
1114 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
1115 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
1116 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
1117 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
1118 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
1119 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
1120 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
1121 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
1122 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
1123 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
1124 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
1125 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
1126 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
1128 2007-09-10 Emmanuel Briot <briot@adacore.com>
1130 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
1133 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
1135 * adaint.c (__gnat_translate_vms): new function.
1137 2007-09-10 Gary Dismukes <dismukes@adacore.com>
1138 Thomas Quinot <quinot@adacore.com>
1140 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
1141 create an abstract subprogram in the case of 'Input. For 'Output we now
1142 create a real spec/body when the type is abstract, since it can
1143 potentially be called.
1144 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
1145 body for 'Output when the type is abstract (only the creation of the
1146 body for 'Input is excluded when the type is abstract).
1147 (Stream_Operation_OK): Add an additional condition in the return
1148 statement, so that False will be returned for TTS_Stream_Input if the
1149 associated tagged type is an abstract extension. Add comments for
1151 (Expand_N_Object_Declaration): For the case of a shared passive
1152 variable, insert init proc call only after the shared variable
1153 procedures have been processed, because the IP call needs to undergo
1154 shared passive variable reference expansion, which requires these
1155 procedures to be available (and elaborated).
1157 2007-09-10 Vincent Celier <celier@adacore.com>
1159 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
1160 parameter Runtime_Project.
1162 2007-09-10 Ed Schonberg <schonberg@adacore.com>
1164 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
1165 given a box association, the type of the component is discriminated,
1166 and the value of the discriminant is the discriminant of the enclosing
1167 type, retrieve its value from the aggregate itself, where it must have
1170 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
1171 to remove other spurious ambiguities on arithmetic operations involving
1172 literals and addresses, on systems where Address is a visible integer
1173 type, when the operator is called in functional notation.
1174 (Try_Primitive_Operation): Within an instance, a call in prefixed form
1175 is legal when the types match, even if the operation is currently
1178 2007-09-10 Ed Schonberg <schonberg@adacore.com>
1180 * sem_ch12.adb (Build_Local_Package): A formal package with no
1181 associations is legal if all formals have defaults. It is not
1182 equivalent to a formal declared with a box.
1184 2007-09-10 Sergey Rybin <rybin@adacore.com>
1186 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
1188 2007-09-10 Sergey Rybin <rybin@adacore.com>
1190 * gnat_ugn.texi: Add description of the new '-lratio' option
1191 Update 7.3.1 section about availability of the feature.
1193 2007-09-10 Thomas Quinot <quinot@adacore.com>
1195 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
1198 2007-09-10 Olivier Hainque <hainque@adacore.com>
1200 * Makefile.in: (mips-irix section): Activate build of libgmem.
1202 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
1204 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
1207 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
1209 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
1210 a debug renaming declaration specially.
1212 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
1214 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
1215 which a constant renaming is treated as a normal object declaration.
1216 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
1217 the N_Indexed_Component case.
1218 <N_Indexed_Component>: Fall through to above case.
1219 <N_Object_Renaming_Declaration>: Return true for all composite types.
1221 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
1223 * decl.c (make_packable_type): If the new type has been given BLKmode,
1224 try again to get an integral mode for it.
1226 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
1228 Re-apply accidentally reverted change:
1230 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
1232 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
1233 get_action_description_for): Replace _Unwind_Word with _uleb128_t
1234 and _Unwind_SWord with _sleb128_t.
1236 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
1238 * trans.c (convert_with_check): Update call to real_2expN.
1240 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
1242 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
1243 * utils.c (end_subprog_body): Likewise.
1245 2007-09-03 Nick Clifton <nickc@redhat.com>
1247 * Make-lang.in: Change copyright header to refer to version 3 of
1248 the GNU General Public License and to point readers at the
1249 COPYING3 file and the FSF's license web page.
1250 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
1251 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
1252 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
1253 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
1256 2007-08-31 Vincent Celier <celier@adacore.com>
1260 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
1261 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
1262 (Check_Version_And_Help): New procedure in package Switch to process
1263 switches --version and --help.
1264 Use Check_Version_And_Help in GNAT tools
1267 (Compile_Sources): Make sure that sources that are "excluded" are not
1269 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
1270 project file is used.
1271 (Version_Switch): Remove, moved to Switch
1272 (Help_Switch): Remove, moved to Switch
1273 (Display_Version): Remove, moved to Switch
1275 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
1276 package Switch to process switches --version and --help.
1277 (Display_Version): New procedure
1279 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
1281 2007-08-31 Javier Miranda <miranda@adacore.com>
1283 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
1286 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1288 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
1289 (Mark_Non_Null): If the node for which we just generated an access check
1290 is a reference to an *in* parameter and the reference appears in the
1291 declarative part of a subprogram body, mark the node as known non null.
1293 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1295 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
1296 structure of E_Exception to reflect the new flag.
1297 (Is_Raised, Set_Is_Raised): New inlined routines.
1298 Update the usage of available flag to reflect the addition of Is_Raised.
1299 (Is_Raised, Set_Is_Raised): Bodies of new routines.
1300 (Write_Entity_Flags): Write the status of flag Is_Raised.
1301 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
1302 spurious ambiguities when integer literals appear in the context of an
1303 address type that is a visible integer type.
1305 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
1306 exceptions never being raised.
1307 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
1310 2007-08-31 Javier Miranda <miranda@adacore.com>
1312 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
1313 statement when compiling under restriction No_Exceptions_Proparation.
1315 2007-08-31 Ed Schonberg <schonberg@adacore.com>
1317 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
1318 initialization aggregate for the type, generate itype references for
1319 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
1321 2007-08-31 Gary Dismukes <dismukes@adacore.com>
1323 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
1324 library-level package renaming, pass the declaration associated with
1325 the renaming's special debug variable to Qualify_Entity_Names to ensure
1326 that its encoded name is properly qualified.
1328 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
1329 occurring in the list of entities to qualify, and do not attempt to
1330 traverse an entity list in that case. Variables associated with
1331 ` library-level package renamings can now occur in the table.
1333 * exp_dbug.ads: Revise documentation of the encoding for renaming
1336 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1338 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
1339 access type points to an unconstrained array.
1341 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1343 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
1346 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
1347 simple redundant qualifications. The check is performed whenever the
1348 expression is a non-overloaded identifier.
1349 (Resolve_Type_Conversion): Enchance the redundant type conversion check
1350 to include loop parameters.
1351 (Valid_Conversion): Avoid generation of spurious error message.
1353 2007-08-31 Bob Duff <duff@adacore.com>
1355 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
1356 concatenations of string literals into a single literal, in order to
1357 avoid very deep recursion in the front end, which was causing stack
1360 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
1361 string, and the right operand is a string literal (the case of "" &
1362 "..."), optimize by avoiding copying the right operand -- just use the
1363 value of the right operand directly.
1365 * stringt.adb (Store_String_Chars): Optimize by growing the
1366 String_Chars table all at once, rather than appending characters one by
1368 (Write_String_Table_Entry): If the string to be printed is very long,
1369 just print the first few characters, followed by the length. Otherwise,
1370 doing "pn(n)" in the debugger can take an extremely long time.
1372 * sem_prag.adb (Process_Interface_Name): Replace loop doing
1373 Store_String_Char with Store_String_Chars.
1375 2007-08-31 Vincent Celier <celier@adacore.com>
1377 * prj-attr.adb: Add new attribute Excluded_Source_Files
1379 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
1380 Locally_Removed_Files.
1382 * snames.ads, snames.adb: New standard name Excluded_Source_Files
1384 2007-08-31 Ed Schonberg <schonberg@adacore.com>
1386 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
1387 clauses of subunits, ignore limited_with_clauses that are illegal and
1388 have not been fully analyzed.
1390 2007-08-31 Ed Schonberg <schonberg@adacore.com>
1392 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
1393 flag, for effiency. It is called when analyzing arithmetic operators
1394 and also for actuals in calls that are universal_integers. The flag is
1395 set for the predefined type address, and for any type or subtype
1398 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
1399 Universal_Integer, when the formal is a descendent of address and the
1400 call appears in user code.
1401 (Analyze_Selected_Component): if the prefix is a private extension, the
1402 tag component is visible.
1404 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
1407 2007-08-31 Robert Dewar <dewar@adacore.com>
1409 * s-fileio.adb (Open): Normalize file name to lower case in non-case
1410 sensitive file name systems to avoid unexpected mismatch in Vista.
1412 2007-08-31 Vincent Celier <celier@adacore.com>
1414 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
1416 2007-08-31 Vincent Celier <celier@adacore.com>
1418 * symbols-vms.adb (Initialize): Read symbol files with continuation
1420 (Finalize): If symbol is long, split the line
1422 2007-08-31 Vincent Celier <celier@adacore.com>
1424 * fmap.ads: Minor comment updates
1426 2007-08-31 GNAT Script <nobody@adacore.com>
1428 * Make-lang.in: Makefile automatically updated
1430 2007-08-31 Bob Duff <duff@adacore.com>
1432 * sinfo.ads: Minor comment fix.
1434 2007-08-31 Thomas Quinot <quinot@adacore.com>
1436 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
1437 with implementation.
1438 Documentation cleanup only.
1440 2007-08-31 Sergey Rybin <rybin@adacore.com>
1442 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
1443 gnatpp '--separate-stmt-name' option.
1444 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
1447 * gnat_ugn.texi: Add description for the new gnatpp
1448 '--separate-stmt-name' and '--use-on-new-line' options.
1450 2007-08-31 Ben Elliston <bje@au.ibm.com>
1452 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
1453 when compiling for powerpc64-*-linux.
1454 * system-linux-ppc64.ads: New file.
1456 2007-08-22 Krister Walfridsson <cato@df.lth.se>
1458 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
1461 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1463 * misc.c (gnat_type_max_size): Constify.
1465 2007-08-16 Gary Dismukes <dismukes@adacore.com>
1467 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
1468 associated with Standard_Debug_Renaming_Type, to be used as the type of
1469 the special variables whose names provide debugger encodings for
1470 renaming declarations.
1472 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
1473 (Set_Debug_Renaming_Link): Change to set Node25.
1474 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
1475 (Write_Field25_Name): Add case for E_Variable to output
1476 "Debug_Renaming_Link".
1477 (Write_Field23_Name): Correct the output string for "Limited_View".
1479 * exp_dbug.adb: Add with and use of Tbuild.
1480 (Debug_Renaming_Declaration): Replace creation of an enumeration type
1481 and literal with creation of a variable of type
1482 Standard_Debug_Renaming_Type whose name encodes both the renamed object
1483 and the entity of the renaming declaration.
1484 (Qualify_Entity_Name): Add the delayed qualification of the entity name
1485 part of the name of a variable that has a Debug_Renaming_Link.
1487 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
1488 special type to be associated with variables that provide debugger
1489 encodings for renaming declarations.
1491 2007-08-16 Gary Dismukes <dismukes@adacore.com>
1492 Ed Schonberg <schonberg@adacore.com>
1493 Javier Miranda <miranda@adacore.com>
1495 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
1496 ancestor part given by an aggregate to test for an unchecked conversion,
1497 since this can occur in some cases when the ancestor part is a function
1498 call, and we don't want to fall into the recursive call to this
1499 procedure in that case.
1501 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
1502 stream attributes on limited types to account for user-specified
1503 attributes as well as whether Input (resp. Output) becomes available
1504 due to Read (resp. Write) being available for the type. Change Boolean
1505 variable to the more accurate name
1506 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
1507 double-"not" predicate at beginning of return statement to more
1508 understandable form.
1510 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
1511 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
1512 in a block statement and use that as the first statement of the
1513 expanded return rather than incorrectly using the handled sequence as
1514 the first statement.
1516 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
1517 operation, generate an explicit freeze node for it rather than
1518 generating extra formals, to ensure that gigi has the proper order of
1519 elaboration for anonymous subtypes in the signature of the subprograms.
1520 (Build_In_Place_Formal): Move assertion to beginning of loop.
1521 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
1522 applied to a function call (occurs for some cases of 'Input).
1523 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
1524 applied to a function call (occurs for some cases of 'Input).
1526 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
1527 2005, generate an extended return statement enclosing the result object
1530 * freeze.adb (Freeze_Record_Type): Extend the current management of
1531 components that are access type with an allocator as default value: add
1532 missing support to the use of qualified expressions of the
1533 allocator (which also cause freezing of the designated type!)
1534 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
1535 dispatching operation, since extra formals may be needed by calls to
1536 build-in-place functions (such as stream 'Input).
1538 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
1539 formals for 'Constrained and accessibility level in the case of a
1540 predefined dispatching operation.
1542 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
1543 point, no need to find the parent node.
1545 2007-08-16 Javier Miranda <miranda@adacore.com>
1547 * exp_attr.adb (Attribute_Priority): Add missing support for entries
1550 2007-08-16 Javier Miranda <miranda@adacore.com>
1552 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
1553 is not really required and can introduce regression with the debugger.
1554 The original problem is fixed with the patch written for checks.adb.
1556 2007-08-16 Thomas Quinot <quinot@adacore.com>
1558 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
1559 Range_Check on Allocated_Table.
1561 2007-08-16 Vincent Celier <celier@adacore.com>
1563 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
1564 Including_Non_Switch set to False.
1565 (Gnatmake): For the compiler, call Test_If_Relative_Path with
1566 Including_Non_Switch set to False.
1568 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
1569 parameter Including_Non_Switch, defaulted to True. When
1570 Including_Non_Switch is False, options that are not switches and
1571 appear as relative path are not converted to absolute paths.
1573 2007-08-16 Nicolas Roche <roche@adacore.com>
1575 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
1578 * Make-lang.in: Update dependencies
1580 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
1582 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
1583 currently inspected is a selected component, retrieve the entity of
1585 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
1586 from the immediate ancestor of Main_Unit_Entity.
1587 (Install_Limited_Withed_Unit): Do not install the limited view of
1588 package P if P is reachable through an ancestor chain from package C
1589 and C also has a with clause for P in its body.
1590 (Has_Limited_With_Clause): New routine.
1591 (Has_With_Clause): New routine.
1593 2007-08-16 Ed Schonberg <schonberg@adacore.com>
1595 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
1596 generic for an enclosing instance is a global reference, even though
1597 its scope is the enclosing instance.
1599 2007-08-16 Gary Dismukes <dismukes@adacore.com>
1600 Javier Miranda <miranda@adacore.com>
1602 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
1603 initialize a limited object.
1604 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
1606 Make sure Has_Complex_Representation is inherited by derived type.
1608 2007-08-16 Robert Dewar <dewar@adacore.com>
1610 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
1613 2007-08-16 Ed Schonberg <schonberg@adacore.com>
1615 * sem_disp.adb (Check_Dispatching_Operation): If the operation
1616 implements an operation inherited from a progenitor interface, verify
1617 that they are subtype-conformant.
1619 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
1620 Bob Duff <duff@adacore.com>
1621 Nicolas Setton <setton@adacore.com>
1623 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
1624 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
1625 the statement which is being resolved comes from a predefined library
1626 unit, all non-predefined library interpretations are skipped.
1627 (Resolve_Op_Concat): If string concatenation was folded in the parser,
1628 but the "&" is user defined, give an error, because the folding would
1631 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
1632 the parser has folded a long sequence of concatenations of string
1635 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
1636 and "JMP_BUF" variables as artificial.
1637 (N_String_Literal): Do not use alloca for very long string literals. Use
1638 xmalloc/free instead. Otherwise the stack might overflow.
1640 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
1643 2007-08-16 Vincent Celier <celier@adacore.com>
1645 * vms_conv.adb (Process_Argument): Ensure that project related options
1646 are not put in the -cargs section when using GNAT COMPILE.
1648 2007-08-16 Robert Dewar <dewar@adacore.com>
1650 * gnat_ugn.texi: Add note on preprocessing (output file not written)
1652 2007-08-16 Thomas Quinot <quinot@adacore.com>
1654 * a-tags.adb: Minor reformatting.
1656 2007-08-16 Bob Duff <duff@adacore.com>
1658 * sem_type.ads, sem_ch4.adb: Minor reformatting.
1660 2007-08-14 Thomas Quinot <quinot@adacore.com>
1662 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
1663 s-osinte-interix.ads, system-interix.ads: Removed.
1665 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
1667 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
1668 calls to Check_Within_Time_Bounds.
1669 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
1670 (Difference): Account for possible rounding of the resulting difference
1672 2007-08-14 Robert Dewar <dewar@adacore.com>
1674 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
1675 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
1676 s-osinte-solaris.adb, s-osinte-solaris.ads,
1677 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
1679 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
1680 switch -gnatyS. Enable -gnatyS in GNAT style check mode
1682 2007-08-14 Robert Dewar <dewar@adacore.com>
1683 Ed Schonberg <schonberg@adacore.com>
1685 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
1686 Suppress unmodified in-out parameter warning in some cases
1687 This patch is a also fairly significant change to the way suppressible
1690 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
1691 needed for access to concurrent record types generated by the expander.
1692 (Generate_Range_Check): When generating a temporary to capture the
1693 value of a conversion that requires a range check, set the type of the
1694 temporary before rewriting the node, so that the type is always
1695 properly placed for back-end use.
1696 (Apply_Float_Conversion_Check): Handle case where the conversion is
1698 (Get_Discriminal): Code reformatting. Climb the scope stack looking
1699 for a protected type in order to examine its discriminants.
1701 2007-08-14 Robert Dewar <dewar@adacore.com>
1702 Gary Dismukes <dismukes@adacore.com>
1703 Ed Schonberg <schonberg@adacore.com>
1704 Thomas Quinot <quinot@adacore.com>
1706 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
1707 a-stwisu.adb, a-strsup.adb: Fix warnings for range
1708 tests optimized out.
1710 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
1711 (Get_Allocator_Final_List): For the case of an anonymous access type
1712 that has a specified Associated_Final_Chain, do not go up to the
1714 (Expand_N_Type_Conversion): Test for the case of renamings of access
1715 parameters when deciding whether to apply a run-time accessibility
1717 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
1718 aggregate code before allocator, and ahead of declaration for
1719 temporary, to prevent access before elaboration when the allocator is
1720 an actual for an access parameter.
1721 (Expand_N_Type_Conversion): On an access type conversion involving an
1722 access parameter, do not apply an accessibility check when the
1723 operand's original node was an attribute other than 'Access. We now
1724 create access conversions for the expansion of 'Unchecked_Access and
1725 'Unrestricted_Access in certain cases and clearly accessibility should
1726 not be checked for those.
1728 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
1729 includes a type conversion of a packed component that has been expanded,
1730 recover the original expression for the object, and use this expression
1731 in the post-call assignment statement, so that the assignment is made
1732 to the object and not to a back-end temporary.
1733 (Freeze_Subprogram): In case of primitives of tagged types not defined
1734 at the library level force generation of code to register the primitive
1735 in the dispatch table. In addition some code reorganization has been
1736 done to leave the implementation clear.
1737 (Expand_Call): When expanding an inherited implicit conversion,
1738 preserve the type of the inherited function after the intrinsic
1739 operation has been expanded.
1741 * exp_ch2.ads, exp_ch2.adb
1742 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
1743 of an entry formal appearing in an assignment statement does not assign
1745 (Expand_Current_Value): Instead of calling a routine to determine
1746 whether the prefix of an attribute reference should be optimized or
1747 not, prevent the optimization of such prefixes all together.
1749 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
1750 component whose prefix is known to be of an access type is an implicit
1751 dereference and does not assign to the prefix.
1753 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1754 Robert Dewar <dewar@adacore.com>
1756 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
1757 itype is visited, make an entry into table to link associated node and
1759 Add comments and correct harmless error in Build_NCT_Hash_Tables
1760 (Array_Aggr_Subtype): Associate each itype created for an index type to
1761 the corresponding range construct, and not to the aggregate itself. to
1762 maintain a one-to-one correspondence between itype and its associated
1763 node, to prevent errors when complex expression is copied.
1764 Fix mishandling of multiple levels of parens
1766 * sem_aggr.adb: Create a limited view of an incomplete type, to make
1767 treatment of limited views uniform for all visible declarations in a
1768 limited_withed package.
1769 (New_Copy_Tree): If hash table is being used and itype is visited,
1770 make an entry into table to link associated node and new itype.
1771 (Resolve_Record_Aggregate): Do not add an others box association for a
1772 discriminated record component that has only discriminants, when there
1773 is a box association for the component itself.
1775 * par-ch4.adb: Fix mishandling of multiple levels of parens
1777 2007-08-14 Robert Dewar <dewar@adacore.com>
1779 * comperr.adb: Fix problem with suppressing warning messages from gigi
1781 * erroutc.ads, erroutc.adb, errout.ads,
1782 errout.adb (Write_Eol): Remove trailing spaces before writing the line
1783 (Write_Eol_Keep_Blanks): New procedure to write a line, including
1784 possible trailing spaces.
1785 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
1786 Fix problem with suppressing warning messages from back end
1787 Improve handling of deleted warnings
1790 Fix problem with suppressing warning messages from back end
1791 Handle setting of Static_Dispatch_Tables flag.
1794 Fix problem with suppressing warning messages from back end
1796 * exp_intr.adb: Improve handling of deleted warnings
1798 2007-08-14 Robert Dewar <dewar@adacore.com>
1800 * debug.adb: Improve -gnatdI to cover all cases of serialization
1801 Add documentation of dZ, d.t
1803 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
1805 (Sprint_Node_Actual): Generate new output associated with implicit
1806 importation and implicit exportation of object declarations.
1808 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1809 Robert Dewar <dewar@adacore.com>
1810 Javier Miranda <miranda@adacore.com>
1811 Gary Dismukes <dismukes@adacore.com>
1813 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
1814 to make treatment of limited views uniform for all visible declarations
1815 in a limited_withed package.
1816 Improve warnings for in out parameters
1817 (Set_Related_Interaface/Related_Interface): Allow the use of this
1818 attribute with constants.
1819 (Write_Field26_Name): Handle attribute Related_Interface in constants.
1820 Warn on duplicate pragma Preelaborable_Initialialization
1822 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
1823 generation of a freezing node to ensure proper management of null
1824 excluding access types in the backend.
1825 (Create_Extra_Formals): Test base type of the formal when checking for
1826 the need to add an extra accessibility-level formal. Pass the entity E
1827 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
1828 originally being done in a couple of cases), to ensure that the
1829 Extra_Formals list gets set on the entity E when the first entity is
1831 (Conforming_Types): Add missing calls to Base_Type to the code that
1832 handles anonymous access types. This is required to handle the
1833 general case because Process_Formals builds internal subtype entities
1834 to handle null-excluding access types.
1835 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
1836 functions that need it, even when not marked Requires_Overriding.
1837 Improve warnings for in out parameters
1838 (Analyze_Function_Return): Warn for disallowed null return
1839 Warn on return from procedure with unset out parameter
1840 Ensure consistent use of # in error messages
1841 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
1842 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
1843 the implicit conversion of the expression done for anonymous access
1844 types. This is required to generate the code of the null excluding
1845 check (if required).
1847 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
1848 A formal parameter is never publicly referenceable outside of its body.
1849 (Check_References): For an unreferenced formal parameter in an accept
1850 statement, use the same warning circuitry as for subprogram formal
1852 (Warn_On_Unreferenced_Entity): New subprogram, taken from
1853 Output_Unreferenced_Messages, containing the part of that routine that
1854 is now reused for entry formals as described above.
1855 (Goto_Spec_Entity): New function
1856 (Check_References): Do not give IN OUT warning for dispatching operation
1857 Improve warnings for in out parameters
1858 (Test_Ref): Check that the entity is not undefinite before calling
1859 Scope_Within, in order to avoid infinite loops.
1860 Warn on return from procedure with unset out parameter
1861 Improved warnings for unused variables
1863 2007-08-14 Robert Dewar <dewar@adacore.com>
1864 Javier Miranda <miranda@adacore.com>
1865 Gary Dismukes <dismukes@adacore.com>
1867 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
1868 (Expand_N_Attribute_Reference): Further unify the handling of the
1869 three forms of access attributes, using common code now for all three
1870 cases. Add a test for the case of applying an access attribute to
1871 an explicit dereference when the context is an access-to-interface
1872 type. In that case we need to apply the conversion to the prefix
1873 of the explicit dereference rather than the prefix of the attribute.
1874 (Attribute_Version, UET_Address): Set entity as internal to ensure
1875 proper dg output of implicit importation.
1876 (Expand_Access_To_Type): Removed.
1877 (Expand_N_Attribute_Reference): Merge the code from the three cases
1878 of access attributes, since the processing is largely identical for
1879 these cases. The substantive fix here is to process the case of a
1880 type name prefix (current instance case) before handling the case
1881 of interface prefixes.
1883 2007-08-14 Thomas Quinot <quinot@adacore.com>
1884 Ed Schonberg <schonberg@adacore.com>
1885 Javier Miranda <miranda@adacore.com>
1886 Robert Dewar <dewar@adacore.com>
1888 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
1889 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
1890 type that is an anonymous access to controlled object, establish
1891 an associated finalization chain to avoid corrupting the global
1892 finalization list when a dynamically allocated object designated
1893 by such a component is deallocated.
1894 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
1895 functions that need it, even when not marked Requires_Overriding.
1896 (Initialize_Tag): Replace call to has_discriminants by call to
1897 Is_Variable_Size_Record in the circuitry that handles the
1898 initialization of secondary tags.
1899 (Is_Variable_Size_Record): New implementation.
1900 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
1901 Suppress_Initialization pragma for a derived type.
1902 (Is_Variable_Size_Record): New subprogram.
1903 (Build_Offset_To_Top_Functions): New implementation that simplifies the
1904 initial version of this routine and also fixes problems causing
1905 incomplete initialization of the table of interfaces.
1906 (Build_Init_Procedure): Improve the generation of code to initialize the
1907 the tag components of secondary dispatch tables.
1908 (Init_Secondary_Tags): New implementation that simplifies the previous
1909 version of this routine.
1910 (Make_DT): Add parameter to indicate when type has been frozen by an
1911 object declaration, for diagnostic purposes.
1912 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
1913 diagnose attemps to freeze a subprogram when some untagged type of its
1914 profile is a private type whose full view has not been analyzed yet.
1915 (Freeze_Array_Type): Generate init proc for packed array if either
1916 Initialize or Normalize_Scalars is set.
1917 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
1918 constructing the new profile, copy the null_exclusion indicator for each
1919 parameter, to ensure full conformance of the new body with the spec.
1921 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
1922 Create wrappers for constructor functions that need it, even when not
1923 marked Requires_Overriding.
1924 (Covers): Handle properly designated types of anonymous access types,
1925 whose non-limited views are themselves incomplete types.
1926 (Add_Entry): Use an entity to store the abstract operation which hides
1928 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
1929 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
1930 initialization aggregate.
1931 (Function_Interp_May_Be_Hidden): Rename to
1932 Function_Interp_Has_Abstract_Op.
1933 (Has_Compatible_Type): Remove machinery that skips interpretations if
1934 they are labeled as potentially hidden by an abstract operator.
1935 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
1936 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
1937 (Write_Overloads): Output the abstract operator if present.
1938 (Add_Entry): Before inserting a new entry into the interpretation table
1939 for a node, determine whether the entry will be disabled by an abstract
1941 (Binary_Op_Interp_May_Be_Hidden): New routine.
1942 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
1944 (Function_Interp_May_Be_Hidden): New routine.
1945 (Has_Compatible_Type): Do not consider interpretations hidden by
1946 abstract operators when trying to determine whether two types are
1948 (Has_Hidden_Interp): New routine.
1949 (Set_May_Be_Hidden_Interp): New routine.
1950 (Write_Overloads): Write the status of flag May_Be_Hidden.
1952 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1953 Javier Miranda <miranda@adacore.com>
1955 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
1956 types declared in the declarative part of a nested package body or in
1957 the proper body of a stub.
1958 (Set_All_DT_Position): Add missing check to avoid wrong assignation
1959 of the same dispatch table slot to renamed primitives.
1960 (Make_Select_Specific_Data_Table): Handle private types.
1961 (Tagged_Kind): Handle private types.
1962 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
1963 output of implicit importation and exportation.
1964 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
1965 first formal of the thunk is always associated with the controlling
1966 type. In addition perform the following code cleanup: remove formal
1967 Thunk_Alias which is no longer required, cleanup evaluation of the
1968 the controlling type, and update the documentation.
1969 Replace occurrence of Default_Prim_Op_Count by
1970 Max_Predef_Prims. Addition of compile-time check to verify
1971 that the value of Max_Predef_Prims is correct.
1972 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
1973 (Make_DT): Add parameter to indicate when type has been frozen by an
1974 object declaration, for diagnostic purposes.
1975 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
1976 construction of statically allocated dispatch tables.
1977 (Make_DT): In case of library-level tagged types export the declaration
1978 of the primary tag. Remove generation of tags (now done by Make_Tags).
1979 Additional modifications to handle non-static generation of dispatch
1980 tables. Take care of building tables for asynchronous interface types
1981 (Make_Tags): New subprogram that generates the entities associated with
1982 the primary and secondary tags of Typ and fills the contents of Access_
1983 Disp_Table. In case of library-level tagged types imports the forward
1984 declaration of the primary tag that will be declared later by Make_DT.
1985 (Expand_Interface_Conversion): In case of access types to interfaces
1986 replace an itype declaration by an explicit type declaration to avoid
1987 problems associated with the scope of such itype in transient blocks.
1989 2007-08-14 Robert Dewar <dewar@adacore.com>
1990 Ed Schonberg <schonberg@adacore.com>
1991 Javier Miranda <miranda@adacore.com>
1993 * exp_util.ads, exp_util.adb:
1994 This patch replaces a number of occurrences of explicit tests for N_Null
1995 with calls to Known_Null. This improves tracking of null values, since
1996 Known_Null also catches null constants, and variables currently known to
1997 be null, so we get better tracking.
1998 (Ensure_Defined): create an itype reference only in the scope of the
2000 (Side_Effect_Free): A selected component of an access type that
2001 denotes a component with a rep clause must be treated as not
2002 side-effect free, because if it is part of a linked structure its
2003 value may be affected by a renaming.
2004 (Expand_Subtype_From_Expr): For limited objects initialized with build
2005 in place function calls, do nothing; otherwise we prematurely introduce
2006 an N_Reference node in the expression initializing the object, which
2007 breaks the circuitry that detects and adds the additional arguments to
2008 the called function. Bug found working in the new patch for statically
2009 allocated dispatch tables.
2010 (Is_Library_Level_Tagged_Type): New subprogram.
2011 (Remove_Side_Effects): If the expression of an elementary type is an
2012 operator treat as a function call.
2013 (Make_Literal_Range): If the index type of the array is not integer, use
2014 attributes properly to compute the constraint on the resulting aggregate
2017 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
2018 class-wide type whose base type is an incomplete private type, leave
2019 class-wide type unfrozen so that freeze nodes can be generated
2020 properly at a later point.
2021 (Freeze_Entity, array case): Handle case of pragma Pack and component
2022 size attributre clause for same array.
2024 2007-08-14 Vincent Celier <celier@adacore.com>
2026 * prj.ads, prj.adb: Update Project Manager to new attribute names for
2028 Allow all valid declarations in configuration project files
2029 (Reset): Initialize all tables and hash tables in the project tree data
2030 Major update of the Project Manager and of the project aware tools,
2031 including gprmake, so that the same sources in the GNAT repository
2032 can be used by gprbuild.
2033 (Slash_Id): Change type to be Path_Name_Type
2034 (Slash): Return a Path_Name_Type instead of a File_Name_Type
2036 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
2038 Update Project Manager to new attribute names for ghprbuild
2039 Allow all valid declarations in configuration project files
2040 Major update of the Project Manager and of the project aware tools,
2041 including gprmake, so that the same sources in the GNAT repository
2042 can be used by gprbuild.
2045 Major update of the Project Manager and of the project aware tools,
2046 including gprmake, so that the same sources in the GNAT repository
2047 can be used by gprbuild.
2049 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
2050 insensitive flag for attributes with optional index.
2051 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
2052 array attribute, put the index in lower case.
2053 Update Project Manager to new attribute names for ghprbuild
2054 Allow all valid declarations in configuration project files
2055 Major update of the Project Manager and of the project aware tools,
2056 including gprmake, so that the same sources in the GNAT repository
2057 can be used by gprbuild.
2059 * prj-env.ads, prj-env.adb:
2060 Major update of the Project Manager and of the project aware tools,
2061 including gprmake, so that the same sources in the GNAT repository
2062 can be used by gprbuild.
2063 (Get_Reference): Change type of parameter Path to Path_Name_Type
2065 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
2066 removing '-' from the path to start with the first character of the
2068 Major update of the Project Manager and of the project aware tools,
2069 including gprmake, so that the same sources in the GNAT repository
2070 can be used by gprbuild.
2071 Major update of the Project Manager and of the project aware tools,
2072 including gprmake, so that the same sources in the GNAT repository
2073 can be used by gprbuild.
2075 * prj-nmsc.ads, prj-nmsc.adb:
2076 Update Project Manager to new attribute names for ghprbuild
2077 Allow all valid declarations in configuration project files
2078 (Search_Directories): Detect subunits that are specified with an
2079 attribute Body in package Naming. Do not replace a source/unit in the
2080 same project when the order of the source dirs are known. Detect
2081 duplicate sources/units in the same project when the order of the
2082 source dirs are not known.
2083 (Check_Ada_Name): Allow all identifiers that are not reserved words
2085 Major update of the Project Manager and of the project aware tools,
2086 including gprmake, so that the same sources in the GNAT repository
2087 can be used by gprbuild.
2088 (Look_For_Sources): If the list of sources is empty, set the object
2089 directory of non extending project to nil.
2090 Change type of path name variables to be Path_Name_Type
2091 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
2092 otherwise creating missing directories will fail.
2094 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
2095 prj-part.ads, prj-part.adb:
2096 Major update of the Project Manager and of the project aware tools,
2097 including gprmake, so that the same sources in the GNAT repository
2098 can be used by gprbuild.
2100 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
2101 insensitive flag for attributes with optional index.
2102 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
2103 array attribute, put the index in lower case.
2104 (Parse_Variable_Reference): Allow the current project name to be used in
2105 the prefix of an attribute reference.
2107 * prj-util.ads, prj-util.adb
2108 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
2109 defaulted to False. When True, always check against indexes in lower
2112 * snames.ads, snames.h, snames.adb:
2113 Update Project Manager to new attribute names for gprbuild
2114 Allow all valid declarations in configuration project files
2116 2007-08-14 Robert Dewar <dewar@adacore.com>
2117 Ed Schonberg <schonberg@adacore.com>
2119 * opt.ads: Warning for non-local exception propagation now off by
2121 New switch -gnatI to disable representation clauses
2122 Implement new pragma Implicit_Packing
2125 Warning for non-local exception propagation now off by default
2126 Add warning for unchecked conversion of pointers wi different
2128 New switch -gnatI to disable representation clauses
2130 * usage.adb: new switch -gnatyS
2132 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
2133 note that aggregates of anonymous array types are not flagged.
2134 -gnatwc now includes membership tests optimized away
2135 -gnatw.x warnings are now off by default
2136 Added conditional compilation Appendix
2137 Add documentation of -gnatI
2138 Add documentation for new -gnatyS style check
2139 Update documentation about SAL and auto-init on Windows.
2142 Add documentation for pragma Check_Name and 'Enabled attribute
2143 Document that Eliminate on dispatching operation is ignored
2144 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
2145 Document pragma Main
2146 Document pragma Implicit_Packing
2148 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
2149 different conventions
2150 New switch -gnatI to disable representation clauses
2152 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
2153 recognized, report the invalid characters including "-gnat" instead of
2154 just the first character in the switch.
2155 New switch -gnatI to disable representation clauses
2156 Set Warn_On_Object_Renames_Function true for -gnatg
2158 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
2159 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
2160 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
2161 to switch -aP (add directory to project search dir).
2163 * par-prag.adb: Implement new pragma Implicit_Packing
2165 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
2166 type as having a non-standard representation, to force expansion on
2167 conversion to related types.
2168 (Analyze_Pragma): Warn on misspelled pragma
2169 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
2170 Ensure consistent use of # in error messages
2171 Implement pragma Implicit_Packing
2173 2007-08-14 Olivier Hainque <hainque@adacore.com>
2174 Eric Botcazou <ebotcazou@adacore.com>
2176 * targtyps.c (get_target_maximum_default_alignment): New function.
2178 that the compiler might choose by default for a type or object.
2179 (get_target_default_allocator_alignment): New function. Alignment known
2180 to be honored by the target default allocator.
2181 (get_target_maximum_allowed_alignment): New function. Maximum alignment
2182 we might accept for any type or object on the target.
2183 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
2185 * gigi.h (get_target_maximum_default_alignment): Declare new function.
2186 (get_target_default_allocator_alignment): Likewise.
2187 (get_target_maximum_allowed_alignment): Likewise.
2190 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
2191 result of a function call, first try to use a stabilized reference for
2192 a constant renaming too.
2193 (validate_alignment): Use target_maximum_allowed_alignment instead of
2194 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
2195 (gnat_to_gnu_entity): Use common nodes directly.
2196 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
2197 alignment and size for the object.
2198 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
2199 and N_Procedure_Call_Statement.
2200 (takes_address): Rename to lvalue_required_p, add third parameter
2201 'aliased' and adjust recursive calls.
2202 <N_Indexed_Component>: Update 'aliased' from the array type.
2203 <N_Selected_Component>: New case.
2204 <N_Object_Renaming_Declaration>: New Likewise.
2205 (Identifier_to_gnu): Adjust for above changes.
2206 (maybe_stabilize_reference) <CONST_DECL>: New case.
2208 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
2209 between type variants.
2210 (build_simple_component_ref): Likewise.
2211 (build_call_alloc_dealloc): Use target_default_allocator_alignment
2212 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
2213 aligning type circuitry for allocations from the default storage pool.
2214 (build_allocator): Likewise.
2215 (build_simple_component_ref): Manually fold the reference for a
2216 constructor if the record type contains a template.
2218 * utils.c (value_zerop): Delete.
2219 (gnat_init_decl_processing): Emit debug info for common types.
2220 (rest_of_record_type_compilation): If a union contains a field
2221 with a non-constant qualifier, treat it as variable-sized.
2222 (finish_record_type): Give the stub TYPE_DECL a name.
2223 (rest_of_record_type_compilation): Likewise.
2224 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
2225 types are equivalent array types.
2226 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
2227 even if the type is not passed by reference.
2228 (static_ctors, static_dtors): Delete.
2229 (end_subprog_body): Do not record constructors and destructors.
2230 (build_global_cdtor): Delete.
2231 (gnat_write_global_declarations): Do not call build_global_cdtor.
2233 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
2234 -fRTS=rtp is specified.
2235 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
2238 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
2239 of the personality function with SJLJ exceptions.
2241 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
2242 the name of the personality function with SJLJ exceptions.
2244 2007-08-14 Robert Dewar <dewar@adacore.com>
2245 Ed Schonberg <schonberg@adacore.com>
2247 * par.ads, par.adb: Improve handling of extra right parens.
2248 (Par): Remove flag From_Limited_With_Clause.
2250 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
2251 Improve handling of extra right parens.
2253 2007-08-14 Robert Dewar <dewar@adacore.com>
2255 * par-tchk.adb (TF_Semicolon): Improve error recovery
2257 2007-08-14 Robert Dewar <dewar@adacore.com>
2258 Ed Schonberg <schonberg@adacore.com>
2260 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
2261 enumeration type, mark all literals as referenced.
2262 (Eval_Attribute, case 'Image): If the argument is an enumeration
2263 literal and names are available, constant-fold but mark nevertheless as
2265 Clean up function names.
2266 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
2268 (Requires_Simple_Name_Prefix): Removed.
2270 2007-08-14 Robert Dewar <dewar@adacore.com>
2271 Ed Schonberg <schonberg@adacore.com>
2273 * sem_ch11.adb: Improved warnings for unused variables
2275 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
2276 is a synchronized interface, the derived type is limited.
2277 (Analyze_Object_Declaration): Mark the potential coextensions in the
2278 definition and expression of an object declaration node.
2279 (Build_Derived_Type): For the completion of a private type declaration
2280 with a derived type declaration, chain the parent type's representation
2281 items to the last representation item of the derived type (not the
2282 first one) if they are not present already.
2283 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
2284 object declaration of forward references to tags.
2285 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
2286 subprogram types can appear as access discriminants of synchronized
2288 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
2289 given in prefixed form as a selected component.
2290 (Process_Discriminants): If not all discriminants have defaults, place
2291 error message on a default that is present.
2292 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
2293 extend a synchronized tagged type.
2294 Improved warnings for unused variables
2295 (Is_Visible_Component): Fix a visibility hole on a component inherited
2296 by a private extension when parent is itself declared as a private
2297 extension, and the derivation is in a child unit.
2298 (Find_Hidden_Interface): Move spec from the package body.
2300 2007-08-14 Robert Dewar <dewar@adacore.com>
2301 Ed Schonberg <schonberg@adacore.com>
2303 * sem_ch5.adb: Improve warnings on redundant assignments
2305 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
2307 (Is_Synchronized_Tagged_Type): New subprogram that returns true
2308 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
2309 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
2310 is set to False. Improves handling of Known_[Not_]Null.
2311 (Wrong_Type): Special case address arithmetic attempt
2312 (Collect_Abstract_Interfaces): Add new formal to allow collecting
2313 abstract interfaces just using the partial view of private types.
2314 (Has_Abstract_Interfaces): Add new formal to allow checking types
2315 covering interfaces using the partial view of private types.
2316 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
2317 component still needs to be defined in this case, but is never
2318 initialized as VMs are using other dispatching mechanisms.
2319 (Abstract_Interface_List): For a protected type, use base type to get
2321 Improve warnings on redundant assignments
2322 (Is_Variable): Handle properly an implicit dereference of a prefixed
2324 (Build_Actual_Subtype): If this is an actual subtype for an
2325 unconstrained formal parameter, use the sloc of the body for the new
2326 declaration, to prevent anomalises in the debugger.
2328 2007-08-14 Robert Dewar <dewar@adacore.com>
2330 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
2331 dispatching operation
2333 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2334 Gary Dismukes <dismukes@adacore.com>
2337 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
2338 expanded aggregate code before allocator, and ahead of declaration for
2339 temporary, to prevent access before elaboration when the allocator is
2340 an actual for an access parameter.
2341 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
2342 the TSD and the table of interfaces.
2343 (Convert_To_Assignments): Augment the test for delaying aggregate
2344 expansion for limited return statements to include the case of extended
2345 returns, to prevent creation of an unwanted transient scope.
2346 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
2347 (Expand_Array_Aggregate): Handle aggregates associated with
2348 statically allocated dispatch tables.
2349 (Expand_Record_Aggregate): Handle aggregates associated with
2350 statically allocated dispatch tables.
2351 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
2352 of anonymous access type.
2354 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2356 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
2357 is a variable that renames a slice, use the variable itself in the
2358 expannsion when the renamed expression itself may be modified between
2359 the declaration of the renaming and the array assignment.
2361 2007-08-14 Jerome Guitton <guitton@adacore.com>
2363 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2364 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
2365 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
2366 New functions; dummy implementations.
2368 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
2369 functions, used to implement the multi-tasks mode routines on VxWorks.
2371 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
2373 binding to the VxWorks routines which have changed between VxWorks 5
2375 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
2376 which are not callable from a RTP.
2378 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
2379 implemented for the multi-tasks mode on VxWorks 5 and 6.
2381 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
2383 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
2386 2007-08-14 Vincent Celier <celier@adacore.com>
2388 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
2389 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
2390 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
2391 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2392 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2393 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
2394 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
2396 (Major_Id_Name): New function.
2397 mlib-tgt.ads/mlib.tgt.adb:
2398 (Library_Major_Minor_Id_Supported): New function, default returns True
2399 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
2400 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
2401 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
2402 Implementation of Library_Major_Minor_Id_Supported returns False
2404 (Clean_Library_Directory): If major/minor ids are supported, clean all
2406 Major update of the Project Manager and of the project aware tools,
2407 including gprmake, so that the same sources in the GNAT repository
2408 can be used by gprbuild.
2410 2007-08-14 Olivier Hainque <hainque@adacore.com>
2412 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
2413 (GCC_ZCX_Support): Switch to True.
2415 * s-intman-solaris.adb (Notify_Exception): Call
2416 Adjust_Context_For_Raise before raising, as expected for signal
2417 handlers in general.
2419 * s-intman-posix.adb (Notify_Exception): Remove declaration of
2420 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
2421 to other implementation bodies.
2423 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
2424 be visible by multiple implementation bodies.
2426 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
2427 only for conditions coming from hardware.
2428 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
2429 adjustments to signal context prior to exception raise from signal
2431 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
2433 Solaris section: (__gnat_adjust_context_for_raise): New function.
2434 Implementation of the machine context adjustments to perform prior to
2435 raise from a signal handler. Version for both sparc and x86.
2436 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
2437 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
2438 prior to raising as expected for any handler, before possible nested
2439 faults to make sure all the contexts in a chain have been adjusted by
2440 the time we propagate.
2442 2007-08-14 Pascal Obry <obry@adacore.com>
2444 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
2445 (SYSTEM_INFO): New record.
2446 (SetThreadIdealProcessor): New imported routine needed for supporting
2447 task_info pragma on Windows.
2449 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
2450 info can be applied to the current host.
2451 (Create_Task): Set the ideal processor if information is present.
2453 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
2454 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
2456 2007-08-14 Olivier Hainque <hainque@adacore.com>
2458 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
2459 stack size and initial stack pointer value for a given task.
2460 (Enter_Task): Get the stack attributes of the task we are entering and
2461 let the stack checking engine know about them.
2463 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
2464 Let the stack-checking engine know about the initial sp value and stack
2465 size associated with the current task.
2466 (Set_Stack_Info): If a stack base has been notified for the current
2467 task, honor it. Fallback to the previous less accurate method otherwise.
2469 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
2471 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2473 * sem_ch10.adb: Create a limited view of an incomplete type, to make
2474 treatment of limited views uniform for all visible declarations in a
2475 limited_withed package.
2476 Set flag indicating that a subprogram body for a child unit has a
2478 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
2479 separate declaration, remove the unit name from visibility after
2480 compilation, so that environment is clean for subsequent compilations.
2481 (Install_Limited_Context_Clauses): Do not install a
2482 limited_private_with_clause unless the current unit is a body or a
2484 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
2485 in the same fashion.
2486 (Install_Limited_Withed_Unit): Do not install a limited with clause if
2487 it applies to the declaration of the current package body.
2488 (Remove_Private_With_Clauses): If there is a regular with_clause for
2489 the unit, delete Private_With_Clause from context, to prevent improper
2490 hiding when processing subsequent nested packages and instantiations.
2492 2007-08-14 Jose Ruiz <ruiz@adacore.com>
2494 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
2495 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
2496 representing absolute path names.
2497 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
2499 * cstreams.c (__gnat_full_name for VxWorks): Use
2500 __gnat_is_absolute_path to detect whether we need to add the current
2501 directory to normalize the path.
2503 2007-08-14 Javier Miranda <miranda@adacore.com>
2506 a-tags.adb (Displace): Associate a message with the raised CE
2508 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
2509 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
2510 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
2512 (Default_Prim_Op_Count): Removed.
2513 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
2514 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
2515 Remove pragma Inline_Always.
2517 * rtsfind.ads (Default_Prim_Op_Count): Removed
2518 (Max_Predef_Prims): New entity
2519 (RE_Expanded_Name): Removed
2520 (RE_HT_Link): Removed
2521 (RE_Iface_Tag): Remmoved
2522 (RE_Ifaces_Table): Removed
2523 (RE_Interfaces_Array): Removed
2524 (RE_Interface_Data_Element): Removed
2525 (RE_Nb_Ifaces): Removed
2526 (RE_RC_Offset): Removed
2527 (RE_Static_Offset_To_Top): Removed
2529 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
2531 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
2532 Prim_Op_Count by Max_Predef_Prims.
2534 2007-08-14 Thomas Quinot <quinot@adacore.com>
2535 Vincent Celier <celier@adacore.com>
2537 * binde.adb (Elab_All_Links): Remove unnecessary call to
2538 Generic_Separately_Compiled (if a unit satisfies this predicate, there
2539 won't be an associated Afile).
2540 (Elab_All_Links): Fail if a referenced unit cannot be found
2543 Fix comments in bindgen regarding consistency checks done in Bcheck:
2544 the checks are made across units within a partition, not across several
2546 Fix generation of C binder file for VxWorks.
2548 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
2549 Generic_May_Lack_ALI, more descriptive of the current use of the
2550 predicate, and update documentation.
2552 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
2553 reorganization and documentation update for the case of predefined
2554 library generics (for which we do not reference an Afile).
2556 2007-08-14 Robert Dewar <dewar@adacore.com>
2558 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
2559 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
2560 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
2561 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
2562 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
2563 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
2564 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
2565 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
2566 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
2567 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
2568 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
2569 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
2570 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
2571 g-altcon.adb: Minor reformatting
2573 ada-tree.h: Delete empty line.
2575 ali.ads: Minor reformatting
2576 Clarification of comments.
2577 Minor spelling correction
2579 * exp_dbug.adb: Add Warnings Off to suppress new warning
2581 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
2584 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
2587 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
2589 * a-textio.ads: Reorder the standard input/output/error declarations
2592 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
2594 * par-ch2.adb: Recognize RM specially in errout
2595 Change 'R'M to RM in all error messages
2597 * scng.adb: Recognize RM specially in errout
2599 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
2600 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
2602 * s-direio.adb: Add missing routine header box.
2604 * sem_attr.ads: Add ??? comments
2606 * sem_eval.adb: Recognize RM specially in errout
2607 Change 'R'M to RM in all error messages
2609 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
2611 * s-tasinf.ads: Fix minor comment typo.
2613 * a-cihama.adb: Minor comment addition
2615 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
2618 * s-tasinf-tru64.ads: Fix minor comment typo.
2620 * itypes.ads: Comment update.
2622 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
2625 * argv.c: Added protection against null gnat_argv and gnat_envp.
2627 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
2628 warning message when Tolerate_Consistency_Errors is True.
2630 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
2631 Any_Id, as this subprogram is only applicable to *type* entities (it
2632 sets RM_Size). Instead initialize just Esize and Alignment.
2634 2007-08-14 Bob Duff <duff@adacore.com>
2636 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
2637 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
2638 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
2639 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
2640 a-coorse.ads (Next): Applied pragma Inline.
2641 Make all Containers packages Remote_Types (unless they are already
2643 (Previous): applied pragma Inline
2644 (Elements_Type): is now a record instead of an array
2646 2007-08-14 Thomas Quinot <quinot@adacore.com>
2648 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
2650 (Set_Item): When the new item is an element of the currently allocated
2651 table passed by reference, save a copy on the stack if we're going
2652 to reallocate. Also, in Table.Set_Item, make sure we test the proper
2653 variable to determine whether to call Set_Last.
2655 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
2656 symbols-vms.adb, symbols-processing-vms-alpha.adb,
2657 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
2658 some occurrences of the pattern
2660 T.Table (T.Last) := Value;
2661 with a cleaner call to
2664 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2665 Gary Dismukes <dismukes@adacore.com>
2666 Thomas Quinot <quinot@adacore.com>
2668 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
2669 derived type with interface progenitors use the analyzed formal as the
2670 parent of the actual, to create renamings for all the inherited
2671 operations in Derive_Subprograms.
2672 (Collect_Previous_Instances): new procedure within of
2673 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
2674 unit being loaded, to ensure that the generation of global symbols is
2675 consistent in different compilation modes.
2676 (Is_Tagged_Ancestor): New function testing the ancestor relation that
2677 takes progenitor types into account.
2678 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
2679 traversing over the primitives of the formal and actual types to locate
2680 any abstract subprograms of the actual type that correspond to a
2681 nonabstract subprogram of the formal type's ancestor type(s), and issue
2682 an error if such is found.
2683 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
2684 Instantiate_Package_Body, Instantiate_Subprogram_Body):
2685 Remove bogus guard around calls to Inherit_Context.
2686 (Reset_Entity): If the entity is the selector of a selected component
2687 that denotes a named number, propagate constant-folding to the generic
2688 template only if the named number is global to the generic unit.
2689 (Set_Instance_Env): Only reset the compilation switches when compiling
2690 a predefined or internal unit.
2692 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2694 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
2695 parameter to determine whether operation applies to the prefix.
2696 (Complete_Object_Operation): If actual has an access type and
2697 controlling formal is not an in_parameter, reject the actual if it is
2698 an access_to_constant type.
2699 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
2700 type, the candidate operations are found in the scope of declaration of
2701 the type, because the type has no primitive subprograms.
2702 (Analyze_Selected_Component): If prefix is class-wide, and root type is
2703 a private extension, only examine visible components before trying to
2704 analyze as a prefixed call.
2705 Change Entity_List to Type_To_Use, for better readability.
2706 (Has_Fixed_Op): Use base type when checking whether the type of an
2707 operator has a user-defined multiplication/division
2708 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
2709 user-defined operators are available for fixed-point types.
2711 2007-08-14 Thomas Quinot <quinot@adacore.com>
2712 Ed Schonberg <schonberg@adacore.com>
2714 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
2715 formal At_Any_Place indicating, when True, that we want to test for
2716 availability of the stream attribute at any place (as opposed to the
2717 current visibility context only).
2718 (Missing_Read_Write_Attributes): A stream attribute is missing for the
2719 purpose of enforcing E.2.2(8) only if it is not available at any place.
2720 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
2721 when checking the legality of an extension aggregate in a preelaborable
2722 package. Treat the literal null as a valid default expression in a
2723 component declaration for a type with preelaborable initialization.
2724 A limited interface is a legal progenitor for the designated type of a
2725 remote access to class-wide type.
2727 2007-08-14 Thomas Quinot <quinot@adacore.com>
2728 Ed Schonberg <schonberg@adacore.com>
2730 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
2731 reference): Use correct entity as denoted entity for the selector of
2733 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
2734 setting the Referenced_As_LHS flag for entities that are implicitly
2736 (Find_Type): If the type is an internally generated incomplete type,
2737 mark the full view as referenced, to prevent spurious warnings.
2738 (Find_Selected_Component, Has_Components): Handle properly non-limited
2739 views that are themselves incomplete types.
2740 Handle interfaces visible through limited-with clauses.
2741 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
2742 subprogram generic actual for which we have generated a renaming.
2743 Warn when the renaming introduces a homonym of
2744 the renamed entity, and the renamed entity is directly visible.
2746 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2747 Hristian Kirtchev <kirtchev@adacore.com>
2749 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
2750 appear in the subtree to the current allocator if it is not a static
2752 (Resolve_Allocator): Perform cleanup if resolution has determined that
2753 the allocator is not a coextension.
2754 (Resolve): Skip an interpretation hidden by an abstract operator only
2755 when the type of the interpretation matches that of the context.
2756 (Resolve): When looping through all possible interpretations of a node,
2757 do not consider those that are hidden by abstract operators.
2758 (Resolve_Actuals): When verifying that an access to class-wide object
2759 is an actual for a controlling formal, ignore anonymous access to
2760 subprograms whose return type is an access to class_wide type.
2761 (Resolve_Slice): If the prefix of the slice is a selected component
2762 whose type depends on discriminants, build its actual subtype before
2763 applying range checks on the bounds of the slice.
2764 (Valid_Conversion): In an instance or inlined body, compare root types,
2765 to prevent anomalies between private and public views.
2766 (Resolve): Improve error message for ambiguous fixed multiplication
2767 expressions that involve universal_fixed multiplying operations.
2769 2007-08-14 Javier Miranda <miranda@adacore.com>
2770 Hristian Kirtchev <kirtchev@adacore.com>
2772 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
2773 location to allow the correct generation of errors in case of
2774 restrictions applied to the expanded code.
2775 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
2776 function if the condition does not reference them.
2777 (Expand_Entry_Body_Declarations): Mark the index constant as having a
2780 2007-08-14 Thomas Quinot <quinot@adacore.com>
2782 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
2783 typecode parameters for a union (in a variant record), remove
2784 extraneous layer of Any wrapping for member label.
2785 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
2786 elabration statements, register the package with the name server
2787 at the beginning, not at the end, of the elaboration statements so
2788 that they can create remote access to subprogram values that designate
2789 remote subprograms from the package.
2791 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
2793 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
2794 values to compute the number of seconds since the Unix Epoc in order to
2795 account for Daylight Savings Time. Perform special processing for dates
2796 that are earlier than the Unix Epoc to obtain a negative number.
2798 2007-08-14 Emmanuel Briot <briot@adacore.com>
2800 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
2803 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
2805 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
2806 binder-generated file is not in Ada.
2807 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
2808 recorded in the ALI file.
2809 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
2811 2007-08-14 Vincent Celier <celier@adacore.com>
2813 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
2814 (Output_Source): Do nothing if parameter is No_Sdep_Id
2816 * make.adb (Gnatmake): Do not rebuild an archive simply because a
2817 shared library it imports has a later time stamp.
2818 (Check): Resolve the symbolic links in the path name of the object
2820 Check that the ALI file is in the correct object directory
2821 Check if a file name does not correspond to the mapping of units
2823 (Display_Version): New procedure
2824 (Initialize): Process switches --version and --help
2825 Use type Path_Name_Type for path name
2827 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
2829 * impunit.adb: Re-organize System.Random_Numbers and
2830 GNAT.Random_Numbers and add to builds.
2832 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
2834 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
2836 * a-assert.ads, a-assert.adb: New files.
2838 2007-08-14 Gary Dismukes <dismukes@adacore.com>
2840 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
2841 if AAMP_On_Target is True, then the size of the type encompasses two
2842 addresses (a static link and a subprogram address), except in the case
2843 of library-level access types.
2845 2007-08-14 Vincent Celier <celier@adacore.com>
2847 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
2849 (Write_Eol_Keep_Blanks): New procedure to write a line, including
2850 possible trailing spaces.
2851 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
2853 2007-08-14 Javier Miranda <miranda@adacore.com>
2855 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
2856 null-excluding access types.
2858 2007-08-14 Javier Miranda <miranda@adacore.com>
2860 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
2861 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
2862 of private types add missing check on matching interfaces in the
2863 partial and full declarations.
2864 (Analyze_Protected_Type): Code cleanup.
2865 (Analyze_Task_Type): Code cleanup.
2867 2007-08-14 Javier Miranda <miranda@adacore.com>
2869 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
2870 generated interface thunk.
2872 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2874 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
2875 obsolescent warning on application of 'Class to an incomplete type.
2877 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
2878 prevent obsolescent warning on application of 'Class to an incomplete
2881 2007-08-14 Pascal Obry <obry@adacore.com>
2883 * s-fileio.adb (Is_Open): Add check for usability of the underlying
2886 2007-08-14 Cyrille Comar <comar@adacore.com>
2888 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
2889 since it is potentially used in cases implying double finalization of
2892 2007-08-14 Jose Ruiz <ruiz@adacore.com>
2894 * s-tasini.adb (Get_Stack_Info): Move this function to
2895 System.Soft_Links.Tasking because it is common to the full and the
2896 restricted run times.
2897 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
2898 in SSL.Tasking.Init_Tasking_Soft_Links.
2900 * s-solita.adb (Get_Stack_Info): Function moved from
2901 System.Tasking.Initialization because it is common to the full and the
2902 restricted run times.
2903 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
2905 2007-08-14 Arnaud Charlet <charlet@adacore.com>
2907 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
2908 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
2909 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
2912 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
2915 2007-08-14 Gary Dismukes <dismukes@adacore.com>
2917 * s-veboop.adb (SU): New named number initialized to
2918 System.Storage_Unit.
2919 (True_Val): The initialization expression is revised to use SU (=
2920 Storage_Unit) rather than assuming 8 for the component size of an
2921 unpacked Boolean array.
2923 2007-08-14 Tristan Gingold <gingold@adacore.com>
2925 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
2927 * tb-ivms.c: New file.
2929 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
2931 2007-08-14 Geert Bosch <bosch@adacore.com>
2933 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
2934 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
2935 Add required linker pragmas for automatically linking with the gnalasup
2936 linear algebra support library, and the systems math library.
2937 Rename cdot to cdotu and zdot to zdotu.
2938 Update header comment to describe purpose of package.
2940 2007-08-14 Thomas Quinot <quinot@adacore.com>
2942 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
2943 an explicitly specified Associated_Final_Chain, use that list.
2944 (Expand_N_Package_Body): Build dispatch tables of library level tagged
2946 (Expand_N_Package_Declaration): Build dispatch tables of library level
2947 tagged types. Minor code cleanup.
2949 2007-08-14 Vincent Celier <celier@adacore.com>
2951 * gnatchop.adb (Terminate_Program): Remove exception and use
2952 Types.Terminate_Program instead.
2954 * osint.ads, osint.adb (Current_Exit_Status): New global variable
2955 (Find_Program_Name): Added protection against empty name.
2956 (OS_Exit_Through_Exception): New procedure
2958 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
2959 (OS_Exit_Default): New procedure that contains the previous
2960 implementation of procedure OS_Exit.
2961 (Final_Value): Remove obsolete Interix stuff.
2963 2007-08-14 Thomas Quinot <quinot@adacore.com>
2965 * g-socket.ads: Reorganize example code so that it also works on
2968 2007-08-14 Tristan Gingold <gingold@adacore.com>
2970 * g-trasym.ads: AIX now supports symbolic backtraces.
2972 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2974 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
2975 units being loaded to detect circularities. A circularity may be
2976 present even if the current chain of pending units to load starts from
2977 a limited_with_clause.
2979 * lib-load.ads: Change profile of Load_Unit to use a with_clause
2980 rather than a boolean flag, in order to detect circularities in
2983 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
2984 than propagating the From_Limited_With flag, in order to handle
2985 properly circularities involving with_clauses.
2987 2007-08-14 Nicolas Setton <setton@adacore.com>
2989 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
2992 2007-08-14 Arnaud Charlet <charlet@adacore.com>
2994 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
2995 to build for libgnala.
2996 libgnat: Add rules to build libgnala.a
2997 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
2998 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
2999 Add s-osinte-vxworks-kernel.adb to the target pairs of the
3000 kernel run-time lib for VxWorks 6, which would provide a different
3001 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
3002 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
3003 running ZCX by default.
3004 Add g-sttsne-locking to LynxOS version.
3005 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
3006 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
3008 * system-darwin-x86.ads: New file.
3010 * Make-lang.in: Delete files before copying onto them, so if they are
3011 read-only, the copy won't fail.
3014 2007-08-14 Pascal Obry <obry@adacore.com>
3016 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
3019 2007-08-14 Vincent Celier <celier@adacore.com>
3021 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
3022 (Gcc): Initialize Gcc_Name at the first call
3024 2007-08-14 Ed Schonberg <schonberg@adacore.com>
3026 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
3027 with_clauses of the enclosing unit when analyzing the package
3028 specification of a nested instance.
3030 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
3032 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
3033 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
3034 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
3035 layout of N_Allocator.
3037 2007-08-14 Thomas Quinot <quinot@adacore.com>
3039 * rtsfind.adb (Check_RPC): Add PCS version check.
3041 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
3042 (Gnat_Free_Software): New function.
3044 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
3045 the PCS_Version value from s-parint, used to check that it is consistent
3046 with what exp_dist expects.
3048 * s-parint.ads (PCS_Version): New entity for checking consistency
3049 between exp_dist and PCS.
3051 * gen-soccon.c: (SO_REUSEPORT): New constant.
3053 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
3055 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
3056 variable Sub_Second to Duration in order to accomodate a larger range
3057 of arithmetic operations.
3059 2007-08-14 Bob Duff <duff@adacore.com>
3061 * g-sttsne-locking.ads: Move comments from spec to body.
3062 * g-sttsne-locking.adb: Move comments from spec to body.
3063 * g-sttsne-vxworks.ads: Removed.
3064 * g-sttsne-vxworks.adb: Removed.
3066 2007-08-11 Ian Lance Taylor <iant@google.com>
3068 * misc.c (gnat_get_alias_set): Change return type to
3071 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3073 * decl.c, utils2.c: Fix whitespace in last change.
3075 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3077 * decl.c (compare_field_bitpos): Constify.
3078 * utils2.c (compare_elmt_bitpos): Likewise.
3080 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
3082 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
3083 anonymous access type.
3084 (pthread_sigmask): Now take an access sigset_t.
3086 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
3088 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
3090 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
3092 PR tree-optimization/25737
3093 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
3095 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
3097 * trans.c (Attribute_to_gnu): When subtracting an
3098 offset from a pointer, use POINTER_PLUS_EXPR with
3099 NEGATE_EXPR instead of MINUS_EXPR.
3100 (gnat_to_gnu): Likewise.
3101 * utils.c (convert): When converting between
3102 thin pointers, use POINTER_PLUS_EXPR and sizetype
3104 * utils2.c (known_alignment): POINTER_PLUS_EXPR
3105 have the same semantics as PLUS_EXPR for alignment.
3106 (build_binary_op): Add support for the semantics of
3107 POINTER_PLUS_EXPR's operands.
3108 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
3110 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
3112 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
3113 of get_signed_or_unsigned_type.
3114 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
3116 2007-06-11 Bob Duff <duff@adacore.com>
3117 Thomas Quinot <quinot@adacore.com>
3119 * g-stsifd-sockets.adb (Create): Work around strange behavior of
3120 'bind' on windows that causes 'connect' to fail intermittently, by
3121 retrying the 'bind'.
3122 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3124 2007-06-10 Duncan Sands <baldrick@free.fr>
3126 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
3127 than to void, for the fields when making a new fat pointer type.
3128 (gnat_substitute_in_type): Now substitute_in_type.
3129 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
3130 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
3131 * utils.c (update_pointer_to): Update fat pointers by updating the
3132 dummy node pointers used for the fields.
3134 2007-06-06 Thomas Quinot <quinot@adacore.com>
3135 Bob Duff <duff@adacore.com>
3137 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
3138 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
3139 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
3140 constant Thread_Blocking_IO, always True by default, set False
3141 on a per-runtime basis.
3142 (Need_Netdb_Buffer): New constant.
3144 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
3145 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
3148 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
3149 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
3150 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
3151 child package Task_Safe_NetDB
3152 (Host_Error_Messages): Add stub body.
3153 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3155 * g-soccon-mingw.ads: Add Windows-specific constants.
3156 (Need_Netdb_Buffer): New constant.
3157 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
3158 wrapper and import inet_addr(3) from the standard sockets library
3160 (In_Addr): Add alignment clause.
3161 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3163 2007-06-06 Robert Dewar <dewar@adacore.com>
3165 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3166 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
3167 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
3168 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
3169 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
3170 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
3171 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
3172 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
3173 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
3174 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
3175 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
3176 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
3177 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
3178 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
3179 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
3180 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
3181 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
3182 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
3183 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
3184 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
3185 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
3186 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
3187 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
3188 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
3189 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
3190 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
3191 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
3192 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
3193 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
3194 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
3195 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
3196 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
3197 Unchecked_* by Ada.Unchecked_*
3199 2007-06-06 Robert Dewar <dewar@adacore.com>
3201 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
3202 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
3203 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
3204 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
3205 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
3206 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
3208 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
3209 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
3210 s-tasloc.adb, s-tasloc.ads: New files.
3212 2007-06-06 Bob Duff <duff@adacore.com>
3215 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
3216 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
3217 (Send_Signal, Close): Raise Invalid_Process if the process id is
3219 (Pattern_Matcher_Access): Is now a general access type to be able to
3222 2007-06-06 Thomas Quinot <quinot@adacore.com>
3223 Arnaud Charlet <charlet@adacore.com>
3225 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
3226 (SIGEMT is now used instead of SIGTERM on AIX).
3228 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
3229 (Time_Slice_Supported): Set to True.
3230 Use SIGEMT instead of SIGTERM as SIGADAABORT.
3232 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
3234 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
3235 (Time, Time)): Use To_Relative_Time rather than manual calculation to
3236 express the bounds of Duration as Time. Raise Time_Error when the
3237 result is greater or equal to the higher bound of Duration (on the
3239 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
3241 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
3243 ("-" (Time, Time)): Reorder code.
3244 (All_Leap_Seconds): Removed.
3245 (Arithmetic_Operations.Add): Remove sign related kludge.
3246 (Arithmetic_Operations.Difference): Control the leaps seconds processing
3247 with flag Leap_Support.
3248 (Arithmetic_Operations.Subtract): Remove sign related kludge.
3249 (Check_Within_Time_Bounds): New procedure.
3250 (Clock): Control the leap seconds processing with flag Leap_Support.
3251 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
3252 (Formatting_Operations.Split): Control the leap seconds processing with
3254 (Formatting_Operations.Time_Of): Control the leaps seconds processing
3255 with flag Leap_Support. Adjust the year, month and day (if applicable)
3256 when the value of day seconds designates a new day.
3257 (Split): Use parameter associations for better readability. Integrate
3259 (Time_Of): Use parameter associations for better readability. Integrate
3262 * a-calfor.adb (Split): Use parameter associations for better
3263 readability. Integrate flag Is_Ada_05.
3264 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
3265 better readability. Integrate flag Is_Ada_05.
3267 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3269 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
3270 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
3271 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
3272 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
3273 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
3274 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
3275 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
3276 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
3277 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
3278 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
3279 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
3280 time when entering this routine to detect a backward clock setting
3281 (manual setting or DST adjustment), to avoid waiting for a longer delay
3283 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
3284 Remove handling of deferred priority change, and replace by setting the
3285 task priority directly, as required by AI-188.
3287 (Max_Task_Image_Length): New constant.
3288 Replace Warnings (Off) by Unreferenced pragma, cleaner.
3289 (Dynamic_Priority_Support): Removed, no longer needed.
3290 (Poll_Base_Priority_Change): Ditto.
3291 (Set_Ceiling): Add this procedure to change the ceiling priority
3292 associated to a lock. This is a dummy implementation because dynamic
3293 priority ceilings are not supported by the underlying system.
3295 * a-dynpri.adb (Set_Priority): Take into account case where Target is
3296 accepting a RV with its priority boosted.
3297 Remove handling of deferred priority change, and replace by setting the
3298 task priority directly, as required by AI-188.
3300 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
3302 Remove handling of deferred priority change, and replace by setting the
3303 task priority directly, as required by AI-188.
3304 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
3307 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
3308 (Poll_Base_Priority_Change): Removed.
3309 Code clean up: use SSL.Current_Target_Exception.
3311 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
3312 to run as this is a potentially dispatching point.
3313 (Call_Synchronous): Use Local_Defer_Abort.
3314 (Callable): Relax assertion.
3315 (Selective_Wait): Relax assertion in case abort is not allowed.
3316 Remove handling of deferred priority change, and replace by setting the
3317 task priority directly, as required by AI-188.
3319 * s-tasuti.adb (Make_Passive): Adjust assertions.
3320 Remove handling of deferred priority change, and replace by setting the
3321 task priority directly, as required by AI-188.
3323 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3325 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
3326 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
3327 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
3328 system-vxworks-mips.ads, system-vxworks-alpha.ads,
3329 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
3330 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
3331 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
3332 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
3333 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
3334 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
3335 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
3336 This patch changes the largest non-binary modulus from 2**31-1 to
3338 (Compiler_System_Version): Removed, no longer used.
3339 Clean up system files by removing flags only used on a single target.
3340 Also remove obsolete flags, only used during bootstrap from system.ads
3341 (Address): Add a pragma Preelaborable_Initialization.
3343 * system-aix.ads: Ditto.
3344 (GCC_ZCX_Support): Set to true.
3345 Update priority range on AIX and map Ada priorities to target
3346 priorities appropriately for different scheduling policies.
3348 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
3350 2007-06-06 Vincent Celier <celier@adacore.com>
3352 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
3353 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
3355 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
3356 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
3357 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
3358 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3359 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
3360 MLib.Tgt, containing the default versions of the exported subprograms.
3361 For each platform, create a specific version of the body of new child
3362 package MLib.Tgt.Specific that contains only the body of subprograms
3363 that are different from the default.
3364 (Archive_Builder_Append_Options): New function.
3366 2007-06-06 Matthew Gingell <gingell@adacore.com>
3368 * s-osinte-aix.adb: Map Ada priorities to target priorities
3369 appropriately for different scheduling policies.
3371 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3373 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
3375 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
3376 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
3378 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
3380 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
3381 Noop on VMS, added for interface commonality.
3383 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
3384 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3385 Olivier Hainque <hainque@adacore.com>
3387 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
3388 renamed expression of a full renaming at toplevel.
3389 (gnat_to_gnu_entity, case object): If not defining, do not look inside
3390 the values the constant is initialized to if it is an N_Allocator.
3391 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
3392 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
3393 (make_aligning_type): Accept an extra ROOM argument for storage to be
3394 made available before the aligned field, and an extra BASE_ALIGN
3395 argument for callers to pass the alignment guaranteed to be honored for
3396 the whole aligning object. Avoid call to finish_record_type, which only
3397 interferes with the sizes we want to set.
3398 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
3399 make_aligning_type for super-aligned objects on stack.
3400 (components_to_record): Pass the adjusted size of the type when creating
3401 fields in the qualified union for the variant part.
3402 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
3403 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
3405 (maybe_pad_type): Set TYPE_USER_ALIGN.
3406 (make_aligning_type): Likewise.
3407 ALIGN argument is unsigned int.
3408 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
3409 (gnat_to_gnu_param): Likewise, for parameters.
3410 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
3411 if it is constant and stems from a function call.
3412 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
3413 of the record is specified. Adjust accordingly.
3414 (adjust_packed): New static function.
3415 (gnat_to_gnu_field): Use it to adjust the packedness setting.
3416 (components_to_record): Likewise.
3417 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
3418 side-effects if the object is deemed constant.
3419 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
3420 type instead of merely finalizing it. Tidy.
3421 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
3422 <E_Access_Type>: Likewise.
3423 (defer_debug_incomplete_list): Rename to defer_finalize_list.
3424 (defer_debug_level): Delete.
3425 (gnat_to_gnu_entity) <debug_deferred>: Likewise
3426 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
3428 <E_Record_Type>: Do not explicitly defer finalizing the type.
3429 Adjust for write_record_type_debug_info renaming.
3430 <E_Subprogram_Type>: Likewise.
3431 Finalize deferred types right after deferred incomplete types are
3433 (rest_of_type_decl_compilation): New global function.
3434 (components_to_record): Rename defer_debug parameter to do_not_finalize.
3435 (components_to_record): Propagate the packedness to the fields of the
3436 qualified union type if there is a variant part.
3437 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
3438 instead of inline code to adjust the XUT field offsets.
3439 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
3440 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
3441 and write the debug info if the type derives from a discriminated one.
3442 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
3443 <E_Array_Subtype>: Likewise.
3444 <E_String_Literal_Subtype>: Likewise.
3445 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
3446 an alignment clause.
3447 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
3448 before giving warning.
3449 (prepend_one_attribute_to): New function, helper to prepend an attribute
3450 to an attribute list.
3451 (gnat_to_gnu_entity) <E_Procedure>: Use it.
3452 (prepend_attributes): Likewise.
3453 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
3454 <E_Array_Type>: Declare the padding type for the element type, if any.
3455 <E_Array_Subtype>: Likewise.
3456 (defer_limited_with): New variable.
3457 (Gigi_Equivalent_Type): New function.
3458 (gnat_to_gnu_entity): Use it at start and use result throughout.
3459 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
3460 Gigi_Equivalent_Type, support Limited_With, allow two levels of
3461 indirection, precompute if unconstrained array to simplify logic, and
3462 use defer_limited_with to defer elaboration of some types from limited
3464 (finalize_from_with_types): New function.
3466 2007-06-06 Gary Dismukes <dismukes@adacore.com>
3467 Eric Botcazou <ebotcazou@adacore.com>
3468 Tristan Gingold <gingold@adacore.com>
3469 Olivier Hainque <hainque@adacore.com>
3471 * trans.c (Identifier_to_gnu): Change test for deferred constant by
3472 adding guard that the entity is an E_Constant before testing presence
3473 of Full_view (and remove unnecessary test that entity is not a type).
3474 For a CONST_DECL used by reference, manually retrieve
3475 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
3476 (struct language_function): Move from utils.c to here.
3477 (struct parm_attr): New structure.
3478 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
3479 (f_parm_attr_cache): New macro.
3480 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
3481 expressions for the 'First, 'Last and 'Length attributes of the
3482 unconstrained array IN parameters.
3483 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
3484 Allocate the information structure for the function earlier, as well
3485 as the language-specific part.
3486 If the parameter attributes cache has been populated, evaluate the
3487 cached expressions on entry.
3488 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
3489 N_Procedure_Call_Statement and N_Indexed_Component.
3490 (Pragma_to_gnu): Translate inspection_point to an asm statement
3491 containaing a comment and a reference to the object (either its address
3492 for BLKmode or its value).
3493 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
3494 to go to DECL_INITIAL. Together with the size constraint relaxation
3495 in create_var_decl, enlarges the set of situations in which an
3496 identifier may be used as an initializer without implying elaboration
3498 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
3499 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
3501 (maybe_stabilize_reference): Remove lvalues_only parameter.
3502 (gnat_stabilize_reference): Adjust for above change.
3503 (gnat_to_gnu): Do not set location information on the result
3504 if it is a reference.
3505 (add_cleanup): Add gnat_node parameter and set the location of the
3507 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
3508 (Exception_Handler_to_gnu_zcx): Likewise.
3509 (gigi): Remove the cgraph node if the elaboration procedure is empty.
3510 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
3511 the former right after the latter.
3512 (start_stmt_group): Make global.
3513 (end_stmt_group): Likewise.
3514 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
3516 (gnu_program_error_label_stack): Likewise.
3517 (gigi): Initialize them.
3518 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
3519 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
3521 (push_exception_label_stack): New function.
3522 (takes_address): New function.
3524 * utils.c (struct language_function): Move to trans.c from here.
3525 (unchecked_convert): Do not wrap up integer constants in
3527 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
3528 the latter for aggregate types, unexpected by later passes, and relax an
3529 arbitrary size constraint on the former.
3530 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
3531 to compare the sizes.
3532 (convert_vms_descriptor): When converting to a fat pointer type, be
3533 prepared for a S descriptor at runtime in spite of a SB specification.
3534 (shift_unc_components_for_thin_pointers): New function.
3535 (write_record_type_debug_info): For variable-sized fields, cap the
3536 alignment of the pointer to the computed alignment.
3537 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
3538 If REP_LEVEL is 2, do not compute the sizes.
3539 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
3540 (build_unc_object_type): Likewise.
3541 (declare_debug_type): New function.
3543 * ada-tree.def: USE_STMT: removed (not emitted anymore).
3545 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
3546 no statement is expandable anymore.
3547 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
3548 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
3549 when the user requested it explicitely.
3550 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
3552 (get_alias_set): Return alias set 0 for a type if
3553 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
3555 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
3556 (DECL_FUNCTION_STUB): New accessor macro.
3557 (SET_DECL_FUNCTION_STUB): New setter macro.
3559 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
3561 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
3564 2007-06-06 Jose Ruiz <ruiz@adacore.com>
3566 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
3567 Rename to Abort_Task_Interrupt to be able to keep the same interface
3568 as the rest of the targets.
3570 * s-osinte-vxworks.ads s-osinte-vxworks.adb
3571 (To_VxWorks_Priority): Remove explicit "in" mode indicator
3573 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
3576 2007-06-06 Robert Dewar <dewar@adacore.com>
3578 * a-chahan.ads: Remove obsolescent pragmas
3580 * a-chlat1.ads: Minor reformatting
3582 2007-06-06 Robert Dewar <dewar@adacore.com>
3584 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
3587 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
3590 * errout.ads (Finalize): Changed interface
3591 (Output_Messages): New procedure
3592 (Compilation_Errors): New Interface
3594 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
3595 Finalize/Output_Messages interface for Errout
3596 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
3599 2007-06-06 Thomas Quinot <quinot@adacore.com>
3600 Olivier Hainque <hainque@adacore.com>
3601 Robert Dewar <dewar@adacore.com>
3603 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
3605 (Raise_Current_Excep): Call Debug_Raise_Exception just before
3606 propagation starts, to let debuggers know about the event in a reliable
3608 (Local_Raise): Moved to System.Exceptions
3609 More convenient to have this as a separate unit
3611 * s-except.adb, s-except.ads: New files.
3613 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
3614 Debug_Unhandled_Exception in System.Exceptions where it belongs
3615 together with a couple of other debug helpers.
3616 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
3617 the former Unhandled_Exception.
3619 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
3620 (Warn_No_Exception_Propagation): New procedure
3621 (Warn_If_No_Propagation): Rewritten for new warning generation
3622 (Expand_Exception_Handlers): New warning generation
3623 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
3624 (Add_Exception_Label): Use Special_Exception_Package_Used for test
3625 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
3626 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
3627 even if restriction is set (makes life easier in Check_Returns)
3628 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
3629 checking exception identities.
3630 (Expand_Local_Exception_Handlers): Do not optimize when all others case
3631 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
3632 block for handler (used by Check_Returns)
3633 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
3634 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
3635 remove all exception handlers when optimizing local raise statements.
3636 (Find_Local_Handler): Use Get_Renamed_Entity
3637 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
3638 marked analyzed after expanding exception handlers, do not generate
3639 redundant cleanup actions, because they have been constructed already.
3641 2007-06-06 Thomas Quinot <quinot@adacore.com>
3643 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
3644 presence of this categorization pragma is mandated by the language.
3645 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
3648 2007-06-06 Vincent Celier <celier@adacore.com>
3649 Robert Dewar <dewar@adacore.com>
3651 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
3652 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
3653 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
3654 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
3655 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
3656 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
3657 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
3658 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
3659 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
3660 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
3661 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
3663 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
3664 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
3665 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
3666 Use variables of types File_Name_Type and Unit_Name_Type in error
3668 (Get_Name): Add parameter Ignore_Special, and set it reading file name
3669 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
3671 Define flags Flag217-Flag230 with associated subprograms
3672 (Flag_Word5): New record type.
3673 (Flag_Word5_Ptr): New access type.
3674 (To_Flag_Word5): New unchecked conversion.
3675 (To_Flag_Word5_Ptr): Likewise.
3676 (Flag216): New function.
3677 (Set_Flag216): New procedure.
3679 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3681 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
3684 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
3686 2007-06-06 Javier Miranda <miranda@adacore.com>
3688 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
3690 (Object_Specific_Data_Array): This is now internal to the package.
3691 (Object_Specific_Data): This is now internal to the package.
3692 (Select_Specific_Data_Element): This is now internal to the package.
3693 (Select_Specific_Data_Array): This is now internal to the package.
3694 (Select_Specific_Data): This is now internal to the package.
3695 (Offset_To_Top_Function_Ptr): This is now public.
3696 (To_Offset_To_Top_Function_Ptr): Removed.
3697 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
3698 local to subprogram Offset_To_Top.
3699 (Predefined_DT): Removed.
3700 (Typeinfo_Ptr): Removed.
3701 (OSD): This function is now internal to this package.
3702 (SSD): This function is now internal to this package.
3703 (DT): New function that displaces the pointer to the table of primitives
3704 to get access to the enclosing wrapper record.
3705 (IW_Membership): Code cleanup.
3706 (Offset_To_Top): Code cleanup.
3707 (Predefined_DT): Removed.
3708 (Register_Interface_Tag): Removed.
3709 (Set_Interface_Table): Removed.
3710 (Set_Offset_Index): Removed.
3711 (Set_Offset_To_Top): Code cleanup.
3713 (Set_Signature): Removed.
3715 (Set_Tagged_Kind): Removed.
3716 (Typeinfo_Ptr): Removed.
3718 (Displace): Add missing check on null actual.
3720 * exp_disp.ads, exp_disp.adb
3721 (Select_Expansion_Utilities): Removed.
3722 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
3723 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
3724 the interface requires a new parameter.
3725 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
3726 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
3727 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
3728 Done to remove package Select_Expansion_Utilities.
3729 (Make_DT): New implementation for statically allocated dispatch tables.
3730 (Make_Secondary_DT): Moved to the scope of Make_DT.
3731 (Register_Primitive): Code cleanup plus incoporate the use of the new
3732 function DT_Address_Attribute.
3733 (Expand_Interface_Thunk): The profile of this subprogram has been
3734 changed to return the Thunk_Id and the corresponding code.
3735 (Fill_DT_Entry): Removed. Its functionality is now provided by
3736 subprogram Register_Primitive.
3737 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
3738 subprogram Register_Primitive.
3739 (Register_Primitive): New subprogram that incorporates the previous
3740 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
3741 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
3742 was only required to call Make_DT_Access_Action, which is now removed.
3743 (Ada_Actions): Removed
3744 (Action_Is_Proc): Removed
3745 (Action_Nb_Arg): Removed
3746 Replace all the calls to Make_DT_Access_Action by direct calls to
3747 Make_Procedure_Call_Statement or Make_Function_Call.
3748 (Set_DTC_Entity_Value): New subprogram.
3749 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
3750 (Expand_Interface_Thunk): Add missing support for primitives that are
3751 functions with a controlling result (case in which there is no need
3752 to generate the thunk).
3754 * exp_atag.ads, exp_atag.adb
3755 (Build_DT): New subprogram that displaces the pointer to reference the
3756 base of the wrapper record.
3757 (Build_Typeinfo_Offset): Removed.
3758 (RTE_Tag_Node): Removed.
3759 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
3760 (Build_Get_RC_Offset): Removed.
3761 (Build_Inherit_Predefined_Prims): Removed.
3762 (Build_Inherit_TSD: Removed.
3763 (Build_New_TSD): Removed.
3764 (Build_Set_External_Tag): Removed.
3765 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
3766 (Build_Set_Prim_Op_Address): Add documentation.
3767 (Build_Set_TSD): Removed.
3769 * rtsfind.ads, rtsfind.adb
3770 (Load_Fail): If load fails and we are not in configurable run-time
3771 mode, then raise Unrecoverable_Error.
3772 (Text_IO_Kludge): Generate an error message if a run-time library is
3773 not available in a given run-time (ie. zfp run-time).
3774 (RTE_Record_Component): Add code to check that the component we search
3775 for is not found in two records in the given run-time package.
3776 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
3777 (RE_DT_Predef_Prims_Offset): New entity
3778 (RE_Static_Offset_To_Top): New entity
3779 (RE_HT_Link): New entity.
3780 (System_Address_Image): Addition of this run-time package.
3781 (RE_Address_Image): New entity.
3782 (RE_Abstract_Interface): Removed.
3783 (RE_Default_Prim_Op_Count): Removed.
3784 (RE_DT_Entry_Size): Removed.
3785 (RE_DT_Min_Prologue_Size): Removed.
3786 (RE_DT_Prologue_Size): Removed.
3787 (RE_Ifaces_Table_Ptr): Removed.
3788 (RE_Interface_Data_Ptr): Removed.
3789 (RE_Type_Specific_Data): Removed.
3790 (RE_Primary_DT): Removed.
3791 (RE_Register_Interface_Tag): Removed.
3792 (RE_Set_Offset_Index): Removed.
3793 (RE_Set_OSD): Removed.
3794 (RE_Set_SSD): Removed.
3795 (RE_Set_Signature): Removed.
3796 (RE_Set_Tagged_Kind): Removed.
3797 (RE_Address_Array): New entity.
3798 (RE_DT): New entity.
3799 (RE_Iface_Tag): New entity.
3800 (RE_Interfaces_Table): New entity.
3801 (RE_No_Dispatch_Table): New entity.
3802 (RE_NDT_Prims_Ptr): New entity.
3803 (RE_NDT_TSD): New entity.
3804 (RE_Num_Prims): New entity.
3805 (RE_Offset_To_Top_Function_Ptr): New entity.
3806 (RE_OSD_Table): New entity.
3807 (RE_OSD_Num_Prims): New entity.
3808 (RE_Predef_Prims): New entity
3809 (RE_Predef_Prims_Table_Ptr): New entity.
3810 (RE_Primary_DT): New entity.
3811 (RE_Signature): New entity.
3812 (RE_SSD): New entity.
3813 (RE_TSD): New entity.
3814 (RE_Type_Specific_Data): New entity.
3815 (RE_Tag_Kind): New entity.
3817 2007-06-06 Thomas Quinot <quinot@adacore.com>
3819 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
3820 C imported variable.
3821 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
3824 2007-06-06 Robert Dewar <dewar@adacore.com>
3826 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
3829 2007-06-06 Vincent Celier <celier@adacore.com>
3831 * a-tifiio.adb (Put, internal): For negative numbers, check that there
3832 is room for at least one digit and the minus sign.
3833 (Put.Put_Character): Never put a character outside of the range of
3836 2007-06-06 Olivier Hainque <hainque@adacore.com>
3837 Eric Botcazou <ebotcazou@adacore.com>
3839 * utils2.c (build_allocator): Provide the extra arguments to
3840 make_aligning_type for super-aligned objects allocated from the default
3841 pool. Leave enough room for a pointer before the aligning field, and
3842 store the system's allocator return value there.
3843 (build_call_alloc_dealloc): When releasing a super-aligned object,
3844 retrieve the system's allocator return value from where build_allocator
3845 has stored it, just ahead of the adjusted address we are passed.
3846 (build_call_raise): Handle properly the generation of line numbers when
3847 the node is marked No_Location.
3848 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
3849 by using DECL_UID on ties.
3850 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
3852 (build_call_raise): Handle converting exception into goto; support new
3854 (build_component_ref): Add new arg to build_call_raise.
3856 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
3858 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
3859 "." in the case of nnn.xxx when nnn terminates with an underscore.
3860 Parse the remaining "#" or ":" in the case of nnn#.xxx#
3862 2007-06-06 Robert Dewar <dewar@adacore.com>
3864 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
3866 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3867 Vincent Celier <celier@adacore.com>
3868 Robert Dewar <dewar@adacore.com>
3870 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
3872 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
3873 ((destructor)) for adafinal, even when switch -a is used.
3874 Do not issue pragma Linker_Destructor for adafinal when switch -a is
3876 (Gen_Object_Files_Options): Add formatting of Linker Options, when
3877 Output_Linker_Option_List is set. Suppress this formatting when
3878 Zero_Formatting is set.
3879 Add case for CLI_Target.
3880 (System_Restrictions_Used): New flag, used to avoid generating with of
3881 System_Restrictions and initialization of the data unless there is
3882 some use of System.Restrictions in the partition.
3883 (Check_System_Restrictions_Used): New procedure
3885 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
3886 since we only with this unit in the binder file if it is used elsewhere
3889 2007-06-06 Vincent Celier <celier@adacore.com>
3891 * bindusg.adb: Add line for @<response file>
3892 Add lines for new switches -R and -Z
3894 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
3895 hierarchy in the list of files of the closure when -R is used
3896 (Gnatbind): Accept arguments starting with '@' to indicate response
3897 files and take the arguments from the response files.
3898 If List_Closure is set, display the referenced files
3900 2007-06-06 Javier Miranda <miranda@adacore.com>
3901 Robert Dewar <dewar@adacore.com>
3902 Ed Schonberg <schonberg@adacore.com>
3904 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
3905 which the address-clause is applied to in-mode actuals (allowed by
3907 (Apply_Discriminant_Check): Do not generate a check if the type is
3908 constrained by a current instance.
3909 (Activate_Division_Check): New procedure
3910 (Activate_Overflow_Check): New procedure
3911 (Activate_Range_Check): New procedure
3912 Call these new Activate procedures instead of setting flags directly
3913 (Apply_Array_Size_Check): Removed, no longer needed.
3914 Code clean up: remove obsolete code related to GCC 2.
3915 (Get_E_Length): Protect against bomb in case scope is standard
3916 (Selected_Range_Checks): If the node to be checked is a conversion to
3917 an unconstrained array type, and the expression is a slice, use the
3918 bounds of the slice to construct the required constraint checks.
3919 Improve NOT NULL error messages
3920 (Apply_Constraint_Check): If the context is a null-excluding access
3921 type, diagnose properly the literal null.
3923 2007-06-06 Pascal Obry <obry@adacore.com>
3925 * clean.adb (Clean_Archive): Use untouched casing for the archive name
3926 and the corresponding .deps file.
3927 (Clean_Interface_Copy_Directory): Use untouched casing for the library
3928 src directory. Minor code-clean-up. Use untouched casing for files
3929 read into the library src dir.
3930 (Clean_Library_Directory): Idem.
3931 (Parse_Cmd_Line): Accept new switch -aP
3933 2007-06-06 Javier Miranda <miranda@adacore.com>
3934 Ed Schonberg <schonberg@adacore.com>
3935 Robert Dewar <dewar@adacore.com>
3936 Eric Botcazou <ebotcazou@adacore.com>
3937 Arnaud Charlet <charlet@adacore.com>
3939 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
3940 applicable to types that have the With_Type flag set. Returns the
3941 non-limited view of the type, if available, otherwise the type itself.
3942 For class-wide types, there is no direct link in the tree, so we have
3943 to retrieve the class-wide type of the non-limited view of the Etype.
3944 New attributes Static_Initialization and Static_Elaboration_Desired.
3945 Remove the pragma Thread_Body, and the associated flag
3946 Is_Thread_Body in entities, and all related code.
3947 (Suppress_Value_Tracking_On_Call): New flag
3948 E_Exception has Esize and Alignment fields
3949 (Universal_Aliasing): New function.
3950 (Set_Universal_Aliasing): New procedure.
3951 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
3952 (Check_Nested_Access): New procedure.
3953 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
3954 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
3955 (Related_Interface): New attribute. Present in dispatch table pointer
3956 components of records. Set to point to the entity of the corresponding
3958 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
3959 (Original_Access_Type): Remove, not needed.
3960 (Root_Type): Handle properly subtypes of class-wide-types.
3963 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
3964 class-wide types visible through limited-with clauses.
3965 (Try_Primitive_Operation): When examining all primitive operations of a
3966 tagged type, do not consider subprograms labeled as hidden unless they
3967 belong to a private generic type with a tagged parent.
3968 (Try_Object_Operation): Extensive rewriting, to handle properly various
3969 overloading cases, when several ancestors may have class-wide operations
3970 that are possible candidates, and when the overloaded functions return
3971 array types and have defaulted parameters so that the call may be
3972 interpreted as an indexing.
3973 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
3974 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
3975 successive actuals before analyzing the call itself.
3976 (Try_Primitive_Operation): A primitive operation is compatible with the
3977 prefix if the prefix has a synchronized type and the type of the formal
3978 is its corresponding record, as can be the case when the primitive
3979 operation is declared outside of the body of the type.
3980 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
3981 perform homonym traversal, looking for class-wide operation matches
3982 (formerly done in statements of Try_Class_Wide_Operation). Matches on
3983 access parameters are now restricted to anonymous access types.
3984 (Mark_Allocator): An allocator with a discriminant association parent is
3986 (Try_One_Prefix_Interpretation): If the type of the object is
3987 incomplete, as can be happen when it is a limited view obtained through
3988 a limited_with_clause, the selected component is not part of a prefixed
3990 (Complete_Object_Operation): Diagnose properly an object that is not
3991 aliased when the corresponding controlling formal is an access
3993 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
3994 ambiguous calls in prefixed notation, where two primitives differ only
3995 in that the controlling argument of one is an access parameter.
3997 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
3998 whether a function that returns an unconstrained type can be inlined.
3999 (Process_Formals): Diagnose properly the illegal use of an incomplete
4000 type in the profile of an access_to_subprogram declaration.
4001 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
4002 operations are attached to the corresponding record.
4003 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
4004 When processing a primitive of a concurrent type which implements an
4005 interface change the type of all controlling formals to that of the
4006 corresponding record type.
4007 (Check_Synchronized_Overriding): Relax the conditional logic when trying
4008 to determine the tagged type to which a primitive belongs.
4009 (Check_Conventions): Capture condition to ignore a primitive operation
4010 (which is shared between the loop in Check_Conventions and the one in
4011 Check_Convention) in a new local function Skip_Check.
4012 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
4013 confusion with Check_Conventions' own Prim_Op local variable.
4014 (Create_Extra_Formals): Test for a tagged result type rather than a
4015 controlling result when determining whether to add a BIP_Alloc_Form
4016 formal and a BIP_Final_List formal to the function.
4017 (Check_Conformance); For parameters that are anonymous access types,
4018 subtype conformance requires that the not null and the constant
4019 indicators must match
4020 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
4021 to retrieve the appropriate type when processing a concurrent type
4022 declared within a generic. Minor comment reformatting. Change invocation
4023 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
4025 (Analyze_Subprogram_Body): If the return type of a function is an
4026 anonymous access to the limited view of a class-wide type, and the
4027 non-limited view of the type is available, update the type of the
4028 function so that code can be generated.
4029 (Process_Formals): In case of access-subtype itype whose designated
4030 type is also an itype (situation that happens now with access to
4031 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
4032 attribute to avoid backend problems.
4033 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
4034 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
4035 anonymous types' designated types are same before testing
4036 Subtypes_Statically_Match.
4037 (Create_Extra_Formals): Test for a named access parameter that is a
4038 controlling formal as an additional condition for adding an
4039 accessibility level formal. This can occur in the subp type created for
4040 dispatching calls in Expand_Dispatching_Call, and allows calling
4041 Create_Extra_Formals from that procedure rather than special-casing the
4042 extra formals there.
4043 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
4044 when the function has a controlling result.
4045 (Check_Returns): Add much more knowledge of the optimization of local
4046 raise statements to gotos, to retain proper warnings in this case.
4047 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
4048 nodes when looking for last statement.
4050 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
4051 class-wide types visible through limited with clauses.
4052 (Add_One_Interp): If the operands are anonymous access types, the
4053 predefined operator on universal_access is immediately visibles
4054 (Find_Unique_Type): Handle anonymous access to subprogram types just as
4055 other anonymous access types.
4056 (Disambiguate): Take into account CIL convention.
4057 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
4059 2007-06-06 Robert Dewar <dewar@adacore.com>
4061 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
4062 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
4063 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
4064 Fix lower bound of tables.
4067 * nlists.adb: Ditto.
4068 (Prev_Node, Next_Node): Change index type to Int so that it properly
4069 covers the range First_Node_Id - 1 up.
4071 2007-06-06 Javier Miranda <miranda@adacore.com>
4072 Ed Schonberg <schonberg@adacore.com>
4073 Bob Duff <duff@adacore.com>
4074 Hristian Kirtchev <kirtchev@adacore.com>
4076 * exp_aggr.ads, exp_aggr.adb:
4077 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
4078 in extension aggregates.
4079 (Flatten): Other conditions being met, an aggregate is static if the
4080 low bound given by component associations is different from the low
4081 bound of the base index type.
4082 (Packed_Array_Aggregate_Handled): If the component type is itself a
4083 packed array or record, the front-end must expand into assignments.
4084 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
4085 Init_Pr, instead of Ancestor_Is_Expression.
4086 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
4087 coextension chain root, either generate a list controller or use the
4088 already existing one.
4089 (Static_Array_Aggregate): New procedure to construct a positional
4090 aggregate that can be handled by the backend, when all bounds and
4091 components are compile-time known constants.
4092 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
4093 types covering interface types into assignments.
4094 (Replace_Type): move to Build_Record_Aggr_Code.
4095 (Expand_Record_Aggr_Code): if the target of the aggregate is an
4096 interface type, convert to the definite type of the aggregate itself,
4097 so that needed components are visible.
4098 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
4099 components and the context is an extended return statement do not
4100 create a transient block for it, to prevent premature finalization
4101 before the return is executed.
4102 (Gen_Assign): Do not generate a call to deep adjust routine if the
4103 component type is itself an array of controlled (sub)-components
4104 initialized with an inner aggregate.
4105 (Component_Check): New name for Static_Check. This name is now more
4106 appropriate, and documentation is added which was missing.
4107 (Component_Check): Add test for bit aligned component value
4108 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
4109 Tagged_Comps, name is more appropriate given added function below.
4110 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
4112 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4113 Javier Miranda <miranda@adacore.com>
4114 Robert Dewar <dewar@adacore.com>
4116 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
4117 Terminated: Add unchecked type conversion from System.Address to
4118 System.Tasking.Task_Id when calling the predefined primitive
4120 Disable new Ada 05 accessibility check for JVM.NET targets, which
4121 cannot be implemented in a practical way.
4122 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
4123 the sources always references the tag of the actual object. Therefore,
4124 if 'Tag is applied in the sources to class-wide interface objects we
4125 generate code that displaces "this" to reference the base of the object.
4126 (Expand_N_Attribute_Reference, case Size): Return specified size if
4128 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
4129 has code that displaces the pointer of the object to manage interface
4130 types. However this code must not be executed when the prefix is a
4131 subprogram. This bug caused the wrong expansion of the internally
4132 generated assignment that fills the dispatch table when the primitive
4133 is a function returning a class-wide interface type.
4134 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
4135 Set_Attribute_Name for Name_Unaligned_Valid.
4137 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4138 Gary Dismukes <dismukes@adacore.com>
4140 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
4141 If the initialization is the equivalent aggregate of the initialization
4142 procedure of the type, do not remove it.
4143 (Expand_N_Attribute_Definition_Clause): Exclude access variables
4144 initialized to null from having their expression reset to empty and
4145 note this exception in the comment.
4147 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4148 Robert Dewar <dewar@adacore.com>
4149 Ed Schonberg <schonberg@adacore.com>
4150 Gary Dismukes <dismukes@adacore.com>
4152 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
4153 Add "with" and "use" clauses for Sem_Attr.
4154 (Expand_Current_Value): Do not replace occurences of attribute
4155 references where the prefix must be a simple name.
4157 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
4158 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
4159 Attribute_Requires_Simple_Name_Prefix.
4160 (Name_Modifies_Prefix): Body of new function.
4161 (Requires_Simple_Name_Prefix): Body of new function.
4162 (Resolve_Attribute, case Access): Improve error message for case of
4163 mismatched conventions.
4164 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
4166 (Analyze_Attribute, case 'Access): If the type of the prefix is a
4167 constrained subtype for a nominal unconstrained type, use its base type
4168 to check for conformance with the context.
4169 (Resolve_Attribute): Remove test of the access type being associated
4170 with a return statement from condition for performing accessibility
4171 checks on access attributes, since this case is now captured by
4172 Is_Local_Anonymous_Access.
4173 (Analyze_Access_Attribute): Set Address_Taken on entity
4174 (Analyze_Attribute, case Address): Set Address_Taken on entity
4175 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
4176 validating an access attribute whose prefix is a current instance.
4177 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
4178 applied to dispatching operations, if freezing is required then we set
4179 the attribute Has_Delayed_Freeze in the prefix's entity.
4180 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
4181 current scope if access of local subprogram taken
4182 (Analyze_Access_Attribute): Check legality of self-reference even if the
4183 expression comes from source, as when a single component association in
4184 an aggregate has a box association.
4185 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
4186 the prefix if it is a protected operation and the attribute is
4187 Unrestricted_Access.
4188 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
4189 reference to the base type of the context, to force a constraint check
4190 when the context is an access subtype with an explicit constraint.
4191 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
4192 node is rewritten as an interface conversion. leave unanalyzed after
4193 resolution, to ensure that type checking against the context will take
4196 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4197 Javier Miranda <miranda@adacore.com>
4198 Robert Dewar <dewar@adacore.com>
4200 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
4201 wrapper when the full view of the controlling type of an inherited
4202 function that dispatches on result implements interfaces.
4203 (Expand_N_Object_Declaration): In cases where the type of the
4204 declaration is anonymous access, create finalization list for it.
4205 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
4206 if the object has no explicit initialization, to match description of
4207 functionality of pragam Persistent_BSS.
4208 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
4209 new function to build static aggregates, to replace initialization call
4210 when static initialization is desired.
4211 (Freeze_Type): Generate a list controller for an access type whenever
4212 its designated type has controlled anonymous access discriminants.
4213 (Build_Equivalent_Aggregate): New procedure to compute a static
4214 aggregate to be used as default initialization for composite types,
4215 instead of a generating a call to the initialization procedure for the
4217 (Build_Initialization_Call): When available, replace a call to the
4218 initialization procedure with a copy of the equivalent static aggregate
4220 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
4221 declarations for objects of a class-wide interface type, rather than
4222 just identifiers, to prevent visibility problems.
4223 (Expand_N_Object_Declaration): When expanding the declaration for an
4224 object of a class-wide interface type, preserve the homonym chain of
4225 the original entity before exchanging it with that of the generated
4226 renaming declaration.
4227 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
4228 active, because there is no way to handle the exception.
4229 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
4230 to do a minimum decoration of the Access_Disp_Table list.
4231 (Expand_Record_Controller): Avoid the addition of the controller between
4232 the component containing the tag of a secondary dispatch table and its
4233 adjacent component that stores the offset to the base of the object.
4234 This latter component is only generated when the parent type has
4235 discriminants ---documented in Add_Interface_Tag_Components).
4236 (Apply_Array_Size_Check): Removed, no longer needed.
4237 (Expand_N_Full_Type_Declaration): If the type has anonymous access
4238 components, create a Master_Entity for it only if it contains tasks.
4239 (Build_Init_Procedure): Suppress the tag assignment compiling under
4241 (Freeze_Record_Type): Remove code associated with creation of dispatch
4243 (Init_Secondary_Tags): Update type of actuals when generating calls to
4244 Ada.Tags.Set_Offset_To_Top
4245 (Stream_Operation_OK): Disable use of streams compiling under no
4247 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
4248 if Has_Init_Expression set.
4249 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
4250 Register_Primitive, which provides the same functionality.
4251 (Requires_Init_Proc): Return false in case of interface types.
4252 (Add_Secondary_Tables): Use the new attribute Related_Interface to
4254 (Predefined_Primitive_Freeze): Do not assume that an internal entity
4255 is always associated with a predefined primitive because the internal
4256 entities associated with interface types are not predefined primitives.
4257 Therefore, the call to Is_Internal is replaced by a call to the
4258 function Is_Predefined_Dispatching_Operation.
4259 (Make_Eq_If): When generating the list of comparisons for the
4260 components of a given variant, omit the controller component that is
4261 present if the variant has controlled components.
4263 2007-06-06 Javier Miranda <miranda@adacore.com>
4264 Hristian Kirtchev <kirtchev@adacore.com>
4265 Bob Duff <duff@adacore.com>
4267 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
4268 handle the creation of finalization lists and calls for nested
4269 coextensions when the root of the chains is part of a return statement.
4270 (Inside_A_Return_Statement): New function inside Complete_Coextension_
4272 (Expand_Record_Equality): Skip components that are interface types.
4273 (Displace_Allocator_Pointer): Add missing support for interface subtypes
4274 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
4275 with Rewrite_Coextension. Change the condition for detecting coextension
4277 (Is_Local_Access_Discriminant): Removed.
4278 (Rewrite_Coextension): New routine which rewrites a static coextension
4279 as a temporary and uses its unrestricted access in the construction of
4281 (Complete_Coextension_Finalization): New routine. Generate finalization
4282 attachment calls to all delayed coextensions.
4283 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
4284 the allocator is not a coextension itself and has delayed coextensions.
4285 If the current allocator is controlled, but also a coextension, delay
4286 the generation of the finalization attachment call.
4287 Rename local variable "Node" to "Nod" in order to avoid confusion with
4289 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
4290 limited types that are not inherently limited. Such an allocator is
4291 illegal, but is generated by the expander for a return statement, to
4292 copy the result onto the secondary stack. This is the only case where a
4293 limited object can be copied. Generate code to displace the pointer
4294 to the object if the qualified expression is a class-wide interface
4295 object. Such displacement was missing and hence the copy of the object
4297 (Apply_Accessibility_Check): Handle allocated objects initialized in
4299 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
4300 and Expand_Allocator_Expression. Allocating class-wide interface objects
4301 this routine displaces the pointer to the allocated object to reference
4302 the component referencing the corresponding secondary dispatch table.
4303 Expand_Allocator_Expression): Add missing support to allocate class-wide
4304 interface objects initialized with a qualified expression.
4305 (Get_Allocator_Final_List): Test for an anonymous access type that is a
4306 function result type, and use the finalization list associated with the
4307 function scope in that case (such an anonymous type should not be
4308 treated like an access parameter's type).
4310 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4311 Gary Dismukes <dismukes@adacore.com>
4312 Javier Miranda <miranda@adacore.com>
4314 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
4315 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
4316 required exception handler.
4317 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
4318 properly the case of a function whose return type is a limited
4319 class-wide interface type. Modify the code of the accessibility
4320 check to handle class-wide interface objects. In this case we need to
4321 displace "this" to reference the primary dispatch table to get access
4322 to the TSD of the object (to evaluate its accessibility level).
4323 (Expand_N_Extended_Return_Statement): Test for a tagged result type
4324 rather than a controlling result as one of the conditions for
4325 generating tests of the implicit BIP_Alloc_Form formal. The
4326 initialization assignment is also handled according to whether the
4327 result is tagged instead of controlling.
4328 In the case where the init assignment is inserted in the "then" part of
4329 the allocation conditional, rewrite the target to be a dereference of
4330 the implicit BIP_Object_Access formal.
4331 If the returned value is unconstrained and created on the secondary
4332 stack, mark the enclosing block and function so that the secondary
4333 stack is not reclaimed on return.
4334 Treat returns from functions with controlling results similarly to
4335 returns from functions with unconstrained result subtypes.
4336 If the object returned is unconstrained, and an allocator must be
4337 created for it, analyze the allocator once the block for the extended
4338 return is installed, to ensure that finalizable components
4339 of the expression use the proper finalization list. Guard the call to
4340 Move_Final_List with a check that there is something to finalize.
4341 (Make_Tag_Ctrl_Assignment): Use "old" handling
4342 of controlled type assignment for virtual machines, since new code uses
4343 unsupported features (such as direct access to bytes in memory).
4345 2007-06-06 Gary Dismukes <dismukes@adacore.com>
4346 Ed Schonberg <schonberg@adacore.com>
4348 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
4349 accessibility actual, check for the case of an aliased object that has
4350 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
4351 we fall into processing for the attribute rather than the name of the
4353 (Expand_Inline_Call): If an actual is a literal, and the corresponding
4354 formal has its address taken in the body, create a temporary to capture
4355 value. If the return type is a limited interface, do not treat the
4356 return value as Controlled.
4357 (Is_In_Place_Function): If the return type is a limited interface,
4358 treat as returning in place. The actual returned object may not always
4359 be limited, but the caller has to assume that it is returned in place.
4360 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
4361 context of an allocator, use the correct finalization chain (that is,
4362 the chain belonging to the access type, rather than the chain belonging
4363 to the current scope).
4364 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
4365 result type rather than a controlling result as a precondition for
4366 adding an allocation form actual to a build-in-place call.
4367 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
4368 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
4369 primitive in the dispatch tables. This work is now done by Make_DT when
4371 (Register_Predefined_DT_Entry): Removed.
4372 (Add_Return): If end label is not present, use sloc of last statement
4373 for generated return statement in procedure, for better gdb behavior
4375 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
4376 object address nodes to ensure proper processing by routines like
4378 (Expand_Call): Fix generation of validity check for parameter
4379 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
4380 the allocation form parameter if the result subtype is constrained,
4381 except when the function has a controlling result.
4382 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
4383 rather than Is_Controlled and Has_Controlled_Component, since we want to
4384 include class-wide result types in this treatment. Also test for a
4385 controlling result, since that also requires passing a finalization
4387 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
4388 even when the result subtype is constrained, to handle calls involving
4389 controlling results.
4390 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
4391 is now called even when the result subtype is constrained, to handle
4392 calls involving controlling results.
4393 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
4394 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
4395 now performs the test).
4396 (Make_Build_In_Place_Call_In_Object_Declaration):
4397 Add_Alloc_Form_Actual_* is now called even when the result subtype is
4398 constrained, to handle calls involving controlling results.
4399 (Add_Return): Accomodate rewritten pattern from local raise to goto
4400 transformation, so that we still recognize an transfer statement
4401 and do the right thing here in that case.
4402 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
4403 and end of subprogram code.
4404 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
4405 support for primitives that are functions (without formals) with a
4407 (Inherited_From_Formal): If the actual subtype has not generic parent
4408 type, it is not an actual for a formal derived type, and there is no
4409 operation to inherit from the formal.
4411 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4412 Thomas Quinot <quinot@adacore.com>
4414 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
4415 inserted cleanup code appropriately for GDB use.
4416 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
4417 exception handler for Deep_Adjust or Deep_Finalize.
4418 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
4419 Raise_From_Controlled_Operation is available, use a call to that
4420 subprogram instead of a plain "raise Program_Error" node to raise
4421 Program_Error if an exception is propagated from an Adjust or Finalize
4423 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
4424 appears in the optional statement list of a triggering alternative, the
4425 scope actions can be inserted directly there, and not in the list that
4426 includes the asynchronous select itself.
4428 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4429 Robert Dewar <dewar@adacore.com>
4430 Hristian Kirtchev <kirtchev@adacore.com>
4432 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
4433 generated exception handler appropriately when debugging generated code.
4434 Deal properly with No_Exception_Propagation restriction mode.
4435 (Expand_N_Abort_Statement): Add an unchecked type conversion from
4436 System.Address to System.Tasking.Task_Id when processing the result of
4437 the predefined primitive _disp_get_task_id.
4438 (Expand_N_Asynchronous_Select): Clarify comment.
4439 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
4440 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
4441 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
4442 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
4443 privals and for generated call to Complete_Entry_Body, for better gdb
4445 (Copy_Result_Type): Utility to construct a parameter and result profile
4446 for protected functions whose return type is an anonymous access to
4448 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
4450 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
4451 point when the local-raise-to-goto transformation has taken place.
4453 2007-06-06 Javier Miranda <miranda@adacore.com>
4454 Nicolas Setton <setton@adacore.com>
4456 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
4457 functionality when the backend is generating code.
4458 Otherwise any serious error
4459 reported by the backend calling the frontend routine Error_Msg
4460 changes the Compilation_Mode to Check_Semantics, disables the
4461 functionality of this routine and causes the generation of
4462 spureous additional errors.
4464 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
4465 debugging information now generated by the compiler for fat-pointer
4467 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
4469 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
4471 2007-06-06 Thomas Quinot <quinot@adacore.com>
4473 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
4474 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
4475 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
4476 For a remote call to a function with a classwide return type, apply an
4477 E.4(18) check to the returned value.
4478 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
4479 stream attributes of the designated type of an RACW, as they are not
4480 dispatching primitive operations.
4482 2007-06-06 Geert Bosch <bosch@adacore.com>
4484 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
4486 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
4488 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
4489 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
4491 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
4493 2007-06-06 Javier Miranda <miranda@adacore.com>
4495 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
4496 attribute compiling package Ada.Tags under No_Run_Time_Mode.
4498 2007-06-06 Javier Miranda <miranda@adacore.com>
4500 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
4501 deallocation of class-wide interface objects.
4502 (Expand_Dispatching_Constructor_Call): Take into account that if the
4503 result of the dispatching constructor is an interface type, the
4504 function returns a class-wide interface type; otherwise the returned
4505 object would be actual. The frontend previously accepted returning
4506 interface types because Expand_Interface_Actuals silently performed
4507 the management of the returned type "as if" it were a class-wide
4509 (Expand_Dispatching_Constructor_Call): Replace call to
4510 Make_DT_Access_Action by direct call to Make_Function_Call.
4512 2007-06-06 Robert Dewar <dewar@adacore.com>
4513 Ed Schonberg <schonberg@adacore.com>
4515 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
4516 compute masking constant, since we now set Esize properly to the
4518 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
4519 to match the alignment.
4520 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
4521 packed arrays of 8 bits or less.
4523 * freeze.adb (Freeze_Entity): When freezing the formals of a
4524 subprogram, freeze the designated type of a parameter of an access type
4525 only if it is an access parameter.
4526 Increase size of C convention enumeration object
4527 (Freeze_Entity, array type case): Make sure Esize value is properly
4528 adjusted for the alignment if it is known.
4529 (Freeze_Entity, array type case): When checking bit packed arrays for
4530 the size being incorrect, check RM_Size, not Esize.
4531 (Freeze_Record_Type): Check for bad discriminated record convention
4532 (In_Exp_Body): Return true if the body is generated for a subprogram
4533 renaming, either an attribute renaming or a renaming as body.
4534 (Check_Itype): If the designated type of an anonymous access component
4535 is a non-protected subprogram type, indicate that it is frozen, to
4536 prevent out-of-scope freeze node at some subsequent call.
4537 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
4538 only if the subprogram is neither imported nor exported, as well as the
4539 NCA descriptor class if the subprogram is exported.
4541 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4542 Arnaud Charlet <charlet@adacore.com>
4543 Robert Dewar <dewar@adacore.com>
4544 Gary Dismukes <dismukes@adacore.com>
4546 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
4547 default initialization on an imported object, when there is no
4548 initialization call generated for it.
4549 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
4552 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
4553 Static_Elaboration_Desired.
4554 Remove pragma Thread_Body.
4555 Implement a new pragma No_Body
4556 Removes the Explicit_Overriding pragma
4557 Remove Optional_Overriding pragma
4558 (Prag): Deal with Universal_Aliasing.
4559 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
4560 Pragma_CIL_Constructor): New names.
4562 * sem_cat.adb (Validate_Object_Declaration): An initialization that
4563 uses the equivalent aggregate of a type must be treated as an implicit
4565 (Get_Categorization): Check a unit for pragma Preelaborate only if it
4566 has none of the other categories.
4567 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
4568 to apply Import to an object renaming declaration.
4570 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
4571 from a C++ class should be declared as limited and that it will be
4572 considererd limited.
4573 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
4574 should be declared as limited and that it will be considererd limited.
4575 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
4576 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
4577 (Analyze_Pragma): Deal with Universal_Aliasing.
4578 (Sig_Flags): Likewise.
4579 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
4580 (Overflow_Checks_Unsuppressed): New flag.
4581 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
4582 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
4583 case of JVM or .NET targets, and compiling user code.
4584 Add debugging convenience routine rv
4586 2007-06-06 Robert Dewar <dewar@adacore.com>
4588 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
4590 (Build_Elementary_Input_Call): For floating-point use right type in the
4591 absence of strange size or stream size clauses.
4592 (Build_Elementary_Write_Call): Same fix
4593 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
4594 set to value that does not match base type size.
4596 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4598 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
4599 object of a limited type can be initialized with a call to a function
4600 that returns in place. If the limited type has unknown discriminants,
4601 and the underlying type is a constrained composite type, build an actual
4602 subtype from the function call, as is done for private types.
4603 (Side_Effect_Free): An expression that is the renaming of an object or
4604 whose prefix is the renaming of a object, is not side-effect free
4605 because it may be assigned through the renaming and its value must be
4606 captured in a temporary.
4607 (Has_Controlled_Coextensions): New routine.
4608 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
4609 as is done for other limited types.
4610 (Non_Limited_Designated_Type): new predicate.
4611 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
4613 Remove all handling of with_type clauses.
4615 * par-ch10.adb: Remove all handling of with_type clauses.
4617 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
4618 checksum if the main source could not be parsed.
4619 (Loat_Unit): When processing a child unit, determine properly whether
4620 the parent unit is a renaming when the parent is itself a child unit.
4621 Remove handling of with_type clauses.
4623 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
4624 (Set_Is_Static_Coextension): New procedure.
4625 (Has_Local_Raise): New function
4626 (Set_Has_Local_Raise): New procedure
4627 (Renaming_Exception): New field
4628 (Has_Init_Expression): New flag
4629 (Delay_Finalize_Attach): Remove because flag is obsolete.
4630 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
4631 Remove all handling of with_type clauses.
4632 (Exception_Junk): Can now be set in N_Block_Statement
4634 2007-06-06 Vincent Celier <celier@adacore.com>
4635 Robert Dewar <dewar@adacore.com>
4637 * frontend.adb (Frontend): Return immediately if the main source could
4638 not be parsed, because of preprocessing errors.
4640 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
4641 (Gnat1drv): Exit with errors if the main source could not be parsed,
4642 because of preprocessing errors.
4643 (Check_Rep_Info): New procedure
4645 2007-06-06 Robert Dewar <dewar@adacore.com>
4647 * g-hesorg.ads, g-heasor.ads,
4648 g-busorg.ads, g-bubsor.ads: Update documentation
4649 GNAT.Heap/Bubble_Sort_G is now pure
4651 2007-06-06 Robert Dewar <dewar@adacore.com>
4653 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
4655 2007-06-06 Robert Dewar <dewar@adacore.com>
4656 Ed Schonberg <schonberg@adacore.com>
4658 * g-comlin.ads, g-comlin.adb:
4659 Add new warning for renaming of function return objects
4661 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
4662 (Tree_Read): Use size of object instead of type'object_size, since the
4663 latter is incorrect for packed array types.
4664 (Tree_Write): Same fix
4666 * opt.ads: Add new warning for renaming of function return objects
4667 (Generating_Code): New boolean variable used to indicate that the
4668 frontend as finished its work and has called the backend to process
4669 the tree and generate the object file.
4670 (GCC_Version): Is now private
4671 (Static_Dispatch_Tables): New constant declaration.
4672 (Overflow_Checks_Unsuppressed): New flag.
4673 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
4674 (List_Closure): New flag for gnatbind (-R)
4675 Zero_Formatting: New flag for gnatbind (-Z)
4676 (Special_Exception_Package_Used): New flag.
4677 (Warn_On_Unrepped_Components): New flag.
4679 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
4680 unit is a compilation unit, rather than relying on its scope, so that
4681 Standard can be renamed.
4682 (Analyze_Object_Renaming): Add new warning for renaming of function
4684 Also reject attempt to rename function return object in Ada 83 mode.
4685 (Attribute_Renaming): In case of tagged types, add the body of the
4686 generated function to the freezing actions of the type.
4687 (Find_Type): A protected type is visible right after the reserved word
4688 "is" is encountered in its type declaration. Set the entity and type
4689 rather than emitting an error message.
4690 (New_Scope): Properly propagate Discard_Names to inner scopes
4691 (Check_Nested_Access): New procedure.
4692 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
4693 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
4695 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
4696 Add new warning for renaming of function return objects
4697 (Check_References): Suppress warnings for objects whose type or
4698 base type has Warnings suppressed.
4699 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
4700 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
4702 2007-06-06 Vincent Celier <celier@adacore.com>
4703 Emmanuel Briot <briot@adacore.com>
4704 Olivier Hainque <hainque@adacore.com>
4706 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
4707 absolute value of Header.Block_Size when displaying the freed physical
4709 (Allocate): Compute Storage_Address using Integer_Address, not
4710 Storage_Offset, because the range of Storage_Offset may not be large
4712 (Configure): New parameter Low_Level_Traces
4713 (Allocate, Deallocation, Free_Physically): Added low-level traces
4714 (Configure): new parameter Errors_To_Stdout.
4715 (Output_File): new subprogram
4716 (Deallocate, Dereference): Send error messages to the proper stream
4717 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
4718 documented. Previous code would send it to the current output file
4719 defined in GNAT.IO, which might not be stdout
4720 (Is_Valid): Adjust comment to mention that a positive reply means that
4721 Header_Of may be used to retrieve the allocation header associated with
4722 the subprogram Storage address argument. Return False early if this
4723 address argument is misaligned.
4725 2007-06-06 Vincent Celier <celier@adacore.com>
4727 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
4729 (ASIS_Main): New global variable
4730 (Get_Closure): New procedure
4731 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
4732 check, metric or pretty. Call Get_Closure in this case.
4733 (Check_Files): For GNAT LIST, check all sources of all projects when
4734 All_Projects is True.
4735 (GNATCmd): Accept -U for GNAT LIST
4737 2007-06-06 Vincent Celier <celier@adacore.com>
4739 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
4741 Correct error message when invocation of the linker fails
4742 Add explicit size clause for the C imported variables
4743 Object_List_File_Supported and Using_GNU_Linker to emphasize that
4744 we expect char size.
4745 Read target parameters earlier, since this is needed to set
4746 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
4749 2007-06-06 Vincent Celier <celier@adacore.com>
4752 Add 3 spaces before the default project directory when displaying
4753 the project search path.
4754 Add new command line switch '-l' to display license information.
4756 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
4758 * gmem.c: Add support for timestamps on memory operations.
4760 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
4761 operations (not used currently, just foundation for future
4762 enhancements). Add possibility to perform full dump of gmem.out file.
4763 (Print_Back_Traces): Declare accesses to root arrays constants since
4764 they aren't modified.
4765 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
4767 2007-06-06 Vincent Celier <celier@adacore.com>
4769 * gnatsym.adb: Update Copyright notice
4770 (Parse_Cmd_Line): Accept new switch -D
4771 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
4774 * prj.ads (Policy): New policy Direct
4775 (Yes_No_Unknown): New enumeration type
4776 (Project_Data): New component Libgnarl_Needed
4778 * prj-nmsc.adb (Check_For_Source): When recording a source file make
4779 use the untouched pathname casing.
4780 (Get_Directories): Ensure that the Display_Exec_Directory is using the
4781 proper casing on non case-sensitive platforms like Windows.
4782 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
4783 on all platforms, as it is not possible to know which one is allowed
4784 before processing the project files.
4785 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
4786 specified when symbol policy is Direct. Check that when there is a
4787 symbol file defined (either by default or with attribute
4788 Library_Symbol_File) it is not the same as the reference symbol file.
4789 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
4790 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
4792 (Record_Ada_Source): Record a source that has been locally removed in an
4795 * symbols.ads (Policy): New policy Direct
4797 * symbols-vms.adb (Initialize): Take new policy Direct in case
4800 2007-06-06 Vincent Celier <celier@adacore.com>
4802 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
4803 Correct obvious bug (return Dir; instead of return Directory;).
4804 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
4806 2007-06-06 Thomas Quinot <quinot@adacore.com>
4808 * g-pehage.adb (Produce): Open output files in Binary mode, so that
4809 they have UNIX line endings (LF only) even on Windows, and thus pass
4810 all GNAT style checks.
4812 2007-06-06 Emmanuel Briot <briot@adacore.com>
4814 * g-regpat.adb (Quote): Fix improper quoting of '.'
4816 2007-06-06 Thomas Quinot <quinot@adacore.com>
4818 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
4819 default, set False on a per-runtime basis.
4820 (Need_Netdb_Buffer): New constant.
4822 * g-socket.ads, g-socket.adb: Import new package
4823 GNAT.Sockets.Thin.Task_Safe_NetDB.
4824 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
4825 binding to obtain proper message.
4826 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
4827 Replace various occurrences of Arry (Arry'First)'Address with the
4828 equivalent Arry'Address (GNAT always follows implementation advice from
4830 (Get_Host_By_Address, Get_Host_By_Name,
4831 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
4832 instead, rely on platform-specific task safe netdb operations provided
4835 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
4836 parameter Process_Blocking_IO.
4837 (Host_Error_Messages): Add stub body.
4838 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4839 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
4840 Safe_Getservbyport): Move functions into new child package
4842 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
4843 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
4844 (In_Addr): Add alignment clause.
4846 2007-06-06 Robert Dewar <dewar@adacore.com>
4848 * g-trasym.ads, g-traceb.ads: Update list of supported targets
4849 Add note about symbolic traceback
4851 2007-06-06 Pascal Obry <obry@adacore.com>
4853 * hostparm.ads (Normalized_CWD): Use the host directory separator
4854 instead of the hardcoded forward slash which is not the proper
4855 character on Windows for example.
4858 2007-06-06 Vincent Celier <celier@adacore.com>
4859 Arnaud Charlet <charlet@adacore.com>
4861 * a-clrefi.adb, a-clrefi.ads: New files
4863 * impunit.adb: Add s-os_lib in the list of user visible units.
4864 (Non_Imp_File_Names_95): Add a-clrefi to this list
4865 Remove obsolete run-time entries.
4866 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
4867 "a-exetim" -- Ada.Execution_Time
4868 "a-extiti" -- Ada.Execution_Time.Timers
4870 * mlib-prj.ads, mlib-prj.adb
4871 (Build_Library): Use untouched object dir and library dir. At the
4872 same time makes sure that the checks are done using the canonical
4873 form. Removes hard-coded directory separator and use the proper host
4875 (Process_Project): Do not look in object directory to check if libgnarl
4876 is needed for a library, if there is no object directory.
4877 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
4879 (Build_Library): When invoking gnatbind, use a response file if the
4880 total size of the arguments is too large.
4882 * Makefile.rtl: (g-sttsne): New object file.
4883 Add entry for a-clrefi, s-utf_32, System.Exceptions
4885 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
4886 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
4887 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
4888 Change g-string to s-string, g-os_lib to s-os_lib
4889 Change all g-utf_32 references to s-utf_32
4891 2007-06-06 Tristan Gingold <gingold@adacore.com>
4892 Olivier Hainque <hainque@adacore.com>
4894 * init.c: Do not adjust IP of an imported VMS exception of ia64.
4895 LIB$STOP is called to raise an exception and the IP of the exception
4896 is the instruction right after the call.
4897 (__gnat_adjust_context_for_raise, AIX): Implement.
4898 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
4899 adjust_context_for_raise before Raise_From_Signal_Hanler.
4900 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
4901 siginfo is passed to the handler, necessary to let the zcx propagation
4902 engine unwind past it.
4904 2007-06-06 Olivier Hainque <hainque@adacore.com>
4906 * initialize.c (__gnat_initialize for vxworks): Update documentation
4907 on the ZCX support, using different sets of crtstuff objects than with
4910 2007-06-06 Robert Dewar <dewar@adacore.com>
4912 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
4914 (Layout_Type): Fix recomputation of size from alignment.
4916 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4917 Javier Miranda <miranda@adacore.com>
4919 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
4920 association in an instance.
4921 (Copy_Generic_Node): If the node is a string literal, no need to copy
4923 (Is_Generic_Formal): For a formal subprogram, the declaration is the
4924 grandparent of the entity.
4925 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
4926 to simplify handling of formal interfaces that derive from other formal
4928 (Instantiate_Subprogram_Body): The defining unit name of the body of
4929 the instance should be a defining identifier.
4930 (Install_Formal_Packages): make global to the package, for use in
4931 instantiations of child units.
4932 (Analyze_Package_Instantiation): Do not attempt to set information on an
4933 enclosing master of an entry when expansion is disabled.
4934 (Instantiate_Type): If the actual is a tagged synchronized type and the
4935 generic ancestor is an interface, create a generic actual for the
4936 corresponding record.
4937 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
4938 declaration, to ensure that the interface list is processed correctly.
4939 (Inline_Instance_Body): If enclosing scope is an instance body, remove
4940 its entities from visibiility as well.
4941 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
4942 given with a named association, analyze the expression only, not the
4943 discriminant association itself.
4944 (Reset_Entity): If the analysis of a selected component is transformed
4945 into an expanded name in the prefix of a call with parameters, do not
4946 transform the original node into an expanded name, to prevent visibility
4947 errors in the case of nested generics.
4948 (Check_Private_View): For an array type, check whether the index types
4949 may need exchanging.
4951 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4952 Vincent Celier <celier@adacore.com>
4954 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
4955 since both are separated.
4956 Add support for imported CIL packages.
4957 Add further special handling of "value_type" for CIL.
4958 Add special handling of pragma Import for CIL.
4960 * make.ads, make.adb: When switch -eS is used, direct all outputs to
4961 standard output instead of standard error, except errors.
4962 (Absolute_Path): Use untouched casing for the parent directory.
4963 (Add_Library_Search_Dir): Use the untouched directory name.
4964 (Add_Source_Search_Dir): Idem.
4965 (Change_To_Object_Directory): Update output to use proper casing.
4966 (Create_Binder_Mapping_File): Use the untouched filename to set
4968 (Gnatmake): Use untouched library and executable directory names.
4969 (Insert_Project_Sources): Use untouched filename for spec and body.
4970 (Is_In_Object_Directory): Use untouched object directory.
4971 (Mark_Directory): Idem.
4972 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
4973 contains the non-canonical filename in all cases.
4974 (Change_To_Object_Directory): In verbose mode, display the name of the
4975 object directory we're changing to.
4976 (Compile_Sources): Make sure, when a project file is used, to compile
4977 the body of the unit, when there is one, even when only the spec is
4978 recorded in an ALI file.
4979 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
4981 (Report_Compilation_Failed): New procedure
4982 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
4983 procedures moved from the spec to the body.
4984 (Extract_Failure): Removed, not used
4985 Replace explicit raises of exception Bind_Failed and Link_Failed with
4986 calls to Make_Failed with the proper message.
4987 Replace explicit raises of exception Compilation_Failed with calls to
4988 procedure Report_Compilation_Failed.
4989 (Initialize): Create mapping files unconditionally when using project
4992 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
4993 Pragma_CIL_Constructor): New names.
4995 * targparm.ads, targparm.adb
4996 (Compiler_System_Version): Removed, no longer used.
4997 (Get_Target_Parameters): Relax checks on system.ads validity. Add
4998 handling of two new system flags: JVM and CLI.
5000 2007-06-06 Jose Ruiz <ruiz@adacore.com>
5001 Arnaud Charlet <charlet@adacore.com>
5003 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
5004 time, use the default s-interr body that provides interrupt support
5006 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
5007 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
5008 g-soccon.ads, and s-taprop.adb for the marte run time.
5009 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
5010 timers are supported on marte.
5011 (EH_MECHANISM for marte): Do not use ZCX.
5012 (THREADSLIB for marte): Use -lmarte.
5013 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
5014 Add mlib-tgt-specific.o to gnatmake objects
5015 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
5017 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
5018 6, either kernel or rtp, use a specialized version of s-osinte.ads.
5020 2007-06-06 Pascal Obry <obry@adacore.com>
5022 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
5024 2007-06-06 Vincent Celier <celier@adacore.com>
5026 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
5027 separator, use instead the proper host directory separator.
5028 (Copy_ALI_Files): Make sure that an already existing ALI file in the
5029 ALI copy dir is writable, before doing the copy.
5031 * mlib-utl.ads, mlib-utl.adb:
5032 (Gcc): If length of command line is too long, put the list of object
5033 files in a response file, if this is supported by the platform.
5034 (Ar): If invocation of the archive builder is allowed to be done in
5035 chunks and building it in one shot would go above an OS dependent
5036 limit on the number of characters on the command line, build the archive
5039 2007-06-06 Vincent Celier <celier@adacore.com>
5041 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
5042 of specified object file is not equal to base name of source.
5044 2007-06-06 Javier Miranda <miranda@adacore.com>
5045 Hristian Kirtchev <kirtchev@adacore.com>
5046 Ed Schonberg <schonberg@adacore.com>
5048 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
5049 the full type declaration.
5050 (Analyze_Component_Declaration): Add local variable E to capture the
5051 initialization expression of the declaration. Replace the occurences of
5052 Expression (N) with E.
5053 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
5054 limited interface object with a function call.
5055 (Array_Type_Declaration): If the declaration lacks subtype marks for
5056 indices, create a simple index list to prevent cascaded errors.
5057 (Is_Null_Extension): Ignore internal components created for secondary
5058 tags when checking whether a record extension is a null extension.
5059 (Check_Abstract_Interfaces): Add missing support for interface subtypes
5060 and generic formals.
5061 (Derived_Type_Declaration): Add missing support for interface subtypes
5062 and generic formals.
5063 (Analyze_Object_Declaration): If an initialization expression is
5064 present, traverse its subtree and mark all allocators as static
5066 (Add_Interface_Tag_Component): When looking for components that may be
5067 secondary tags, ignore pragmas that can appear within a record
5069 (Check_Abstract_Overriding): an inherited function that dispatches on
5070 result does not need to be overriden if the controlling type is a null
5072 (Mentions_T): Handle properly a 'class attribute in an anonymous access
5073 component declaration, when the prefix is an expanded name.
5074 (Inherit_Component): If the derivation is for a private extension,
5075 inherited components remain visible and their ekind should not be set
5077 (Find_Type_Of_Object): In the case of an access definition, always set
5078 Is_Local_Anonymous_Access. We were previously not marking the anonymous
5079 access type of a return object as a local anonymous type.
5080 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
5081 range with character literal bounds.
5082 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
5083 (Access_Subprogram_Declaration): Indicate that the type declaration
5084 depends on an incomplete type only if the incomplete type is declared
5086 (Analyze_Subtype_Declaration): Handle properly subtypes of
5087 synchronized types that are tagged, and that may appear as generic
5089 (Access_Subprogram_Declaration): An anonymous access to subprogram can
5090 appear as an access discriminant in a private type declaration.
5091 (Add_Interface_Tag_Components): Complete decoration of the component
5092 containing the tag of a secondary dispatch table and the component
5093 containing the offset to the base of the object (this latter component
5094 is only generated when the parent type has discriminants --as documented
5096 (Inherit_Components): Use the new decoration of the tag components to
5097 improve the condition that avoids inheriting the components associated
5098 with secondary tags of the parent.
5099 (Build_Discriminanted_Subtype): Indicate to the backend that the
5100 size of record types associated with dispatch tables is known at
5102 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
5103 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
5104 to include task, protected, and synchronized interfaces as limited
5106 (Process_Discriminants): Remove the setting of
5107 Is_Local_Anonymous_Access on the type of (anonymous) access
5108 discriminants of nonlimited types.
5109 (Analyze_Interface_Type_Declaration): Complete the decoration of the
5110 class-wide entity it is is already present. This situation occurs if
5111 the limited-view has been previously built.
5112 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
5114 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
5117 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5119 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
5120 of the type that specify the position of interface tags when the type
5121 inherits discriminated array components from the parent type.
5122 If a component is initialized with a box, check for the presence of a
5123 default expression in its declaration before using its default
5124 initialization procedure.
5125 (Resolve_Record_Aggregate): If a component is box-initialized, and the
5126 component type has a discriminants, create a partial aggregate for it
5127 by copying the discriminants of the component subtype.
5128 Reject attempt to initialize a discriminant with a box.
5129 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
5130 associated with dispatch tables is known at compile time.
5131 (Get_Value): If an association in a record aggregate has a box
5132 association, and the corresponding record component has a default
5133 expression, always copy the default expression, even when the
5134 association has a single choice, in order to create a proper
5135 association for the expanded aggregate.
5137 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5138 Robert Dewar <dewar@adacore.com>
5140 * par-ch12.adb (P_Generic_Associations): The source position of an
5141 Others association is that of the others keyword, not that of the token
5142 that follows the box.
5143 (P_Formal_Type_Definition): Handle formal access types that carry a
5146 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
5147 multiple identifier are present, save Scan_State before scanning the
5148 colon, to ensure that separate trees are constructed for each
5150 (P_Identifier_Declarations): For object declaration, set new flag
5151 Has_Init_Expression if initialization expression present.
5152 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
5153 Improve NOT NULL error messages
5155 2007-06-06 Robert Dewar <dewar@adacore.com>
5157 * par-ch4.adb: (P_Name): Recover from literal used as name
5159 2007-06-06 Vincent Celier <celier@adacore.com>
5161 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
5163 In the "not" case, recursive call with Complemented set to True.
5164 Do not allow "or" or "and" operators when Complemented is True.
5166 2007-06-06 Vincent Celier <celier@adacore.com>
5168 * prj.adb (Project_Empty): Gives default value for new component
5171 * prj-attr.ads: Minor reformatting
5173 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
5174 directory using the untouched casing.
5175 (For_All_Source_Dirs): Idem.
5177 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
5178 directories specified with switches -aP.
5179 (Add_Search_Project_Directory): New procedure
5180 (Initialize_Project_Path): Put the directories in table
5181 Search_Directories in the project search path.
5182 (Initialize_Project_Path): For VMS, transform into canonical form the
5185 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5187 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
5188 true if configurable run-time or No_Run_Time is set.
5189 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
5190 processing an unit which is not the one being compiled.
5192 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5194 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
5195 Replace UC by Ada.UC
5197 * s-bitops.adb: Get rid of System.Pure_Exceptions.
5198 Replace UC by Ada.UC
5200 2007-06-06 Robert Dewar <dewar@adacore.com>
5202 * scng.adb: (Check_End_Of_Line): Deal with very long lines
5204 2007-06-06 Robert Dewar <dewar@adacore.com>
5206 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
5207 Remove no longer used nodes.
5209 2007-06-06 Javier Miranda <miranda@adacore.com>
5210 Ed Schonberg <schonberg@adacore.com>
5211 Robert Dewar <dewar@adacore.com>
5213 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
5214 on obsolescent withed unit in case of limited-withed units.
5215 (Analyze_Compilation_Unit): Add guard to code that removed an
5216 instantiation from visibility, to prevent compiler aborts when
5217 instantiation is abandoned early on.
5218 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
5219 current unit being analyzed, and Distinguish local incomplete types
5220 from limited views of types declared elsewhere.
5221 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
5222 to state that the class-wide entity is shared by the limited-view
5224 (Analyze_With_Clause): Improve placement of flag for case of
5226 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
5227 manner similar to GNAT.Current_Exception. This is a violation of
5228 restriction (No_Exception_Propagation), and also inhibits the
5229 optimization of local raise to goto.
5230 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
5231 and if so set Most_Recent_Exception_Used flag in Opt, and also check
5232 for violation of restriction No_Exception_Propagation.
5234 2007-06-06 Javier Miranda <miranda@adacore.com>
5235 Hristian Kirtchev <kirtchev@adacore.com>
5236 Gary Dismukes <dismukes@adacore.com>
5238 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
5239 use of entity Exception_Occurrence if it is not available in the
5242 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
5243 concurrent types are declared within an Ada 2005 generic, build their
5244 corresponding record types since they are needed for overriding-related
5246 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
5247 protected type does not implement a task interface or a nonlimited
5249 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
5250 type does not implement a protected interface or a nonlimited interface.
5251 (Single_Task_Declaration, Single_Protected_Declaration): use original
5252 entity for variable declaration, to ensure that debugging information
5253 is correcty generated.
5254 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
5255 routines if the expander is not active.
5256 (Analyze_Task_Body): Mark all handlers to stop optimization of local
5257 raise, since special things happen for task exception handlers.
5259 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
5260 concurrent types declared within a generic.
5261 (Check_Dispatching_Operation): Do not emit warning about late interface
5262 operations in the context of an instance.
5263 (Check_Dispatching_Call): Remove restriction against calling a
5264 dispatching operation with a limited controlling result.
5265 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
5266 Register_Interface_DT_Entry by calls to Register_Primitive.
5267 (Check_Dispatching_Formals): Handle properly a function with a
5268 controlling access result.
5270 2007-06-06 Robert Dewar <dewar@adacore.com>
5271 Arnaud Charlet <charlet@adacore.com>
5273 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
5274 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
5275 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
5276 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
5277 message when using a VM, since this attribute is not supported.
5278 (Analyze_Record_Representation_Clause): Give unrepped component warnings
5280 * usage.adb: Add new warning for renaming of function return objects
5281 Indicate that -gnatwp and -gnatwP concern front-end inlining
5282 Add line for -gnatyg
5283 Add usage information for -gnatw.c/C
5285 2007-06-06 Robert Dewar <dewar@adacore.com>
5286 Ed Schonberg <schonberg@adacore.com>
5289 (Find_Var): Do not consider function call in test for infinite loop
5290 warning if warnings set off for function entity.
5291 (One_Bound): Do not create a temporary for a loop bound if it is a
5293 (Analyze_Assignment): Traverse the right hand side of an assignment and
5294 mark all allocators as static coextensions.
5295 (Analyze_Assignment): Exempt assignments involving a dispatching call
5296 to a function with a controlling access result from the check requiring
5297 the target to be class-wide.
5299 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5300 Ed Schonberg <schonberg@adacore.com>
5301 Robert Dewar <dewar@adacore.com>
5302 Javier Miranda <miranda@adacore.com>
5304 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
5305 chain of coextensions when an allocator serves as the root of such a
5307 (Propagate_Coextensions): Remove the test for the root being an
5309 (Resolve_Allocator): Add condition to ensure that all future decoration
5310 occurs on an allocator node. Add processing and cleanup for static
5312 (Valid_Conversion): If the operand type is the limited view of a
5313 class-wide type, use the non-limited view is available to determine
5314 legality of operation.
5315 (Ambiguous_Character): move to spec, for use elsewhere.
5316 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
5317 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
5319 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
5320 Do_Division_Check flag explicitly.
5321 (Resolve_Actuals): If the actual is of a synchronized type, and the
5322 formal is of the corresponding record type, this is a call to a
5323 primitive operation of the type, that is declared outside of the type;
5324 the actual must be unchecked-converted to the type of the actual
5325 (Resolve_Call): Kill all current values for any subprogram call if
5326 flag Suppress_Value_Tracking_On_Call is set.
5327 (Resolve_Type_Conversion): Generate error message the the operand
5328 or target of interface conversions come from a limited view.
5329 (Check_Infinite_Recursion): Ignore generated calls
5330 (Check_Allocator_Discrim_Accessibility): New procedure for checking
5331 that an expression that constrains an access discriminant in an
5332 allocator does not denote an object with a deeper level than the
5333 allocator's access type.
5334 (Resolve_Allocator): In the case of an allocator initialized by an
5335 aggregate of a discriminated type, check that associations for any
5336 access discriminants satisfy accessibility requirements by calling
5337 Check_Allocator_Discrim_Accessibility.
5338 (Resolve_Equality_Op): Handle comparisons of anonymous access to
5339 subprogram types in the same fashion as other anonymous access types.
5340 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
5341 message that is not a continuation message.
5342 (Resolve_Type_Conversion): Add missing support for conversion to
5344 (Resolve_Actuals): Introduce a transient scope around the call if an
5345 actual is a call to a function returning a limited type, because the
5346 resulting value must be finalized after the call.
5347 (Resolve_Actuals): If the call was given in prefix notations, check
5348 whether an implicit 'Access reference or implicit dereference must be
5349 added to make the actual conform to the controlling formal.
5351 2007-06-06 Robert Dewar <dewar@adacore.com>
5352 Javier Miranda <miranda@adacore.com>
5354 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
5355 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
5356 overriding of an inherited private subprogram now there is no need to
5357 inherit its dispatching slot and reduce the size of the dispatch table.
5358 Set_All_DT_Position now ensures that the same slot is now assigned to
5359 both entities. This is required to statically build the dispatch table.
5360 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
5361 of calling Set_All_DT_Position to re-evaluate the position of the
5362 entries in the dispatch table. Such reevaluation is not desired if
5363 the tagged type is already frozen.
5365 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5366 Gary Dismukes <dismukes@adacore.com>
5367 Robert Dewar <dewar@adacore.com>
5368 Javier Miranda <miranda@adacore.com>
5370 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
5371 reference acts as an lvalue when the attribute name modifies the prefix
5372 (Is_Coextension_Root): New routine.
5373 (Mark_Static_Coextensions): New routine.
5374 (Type_Access_Level): Revise code for checking the level of the
5375 anonymous access type of a return object.
5376 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
5377 (Matches_Prefixed_View_Profile): Remove the no longer necessary
5378 retrieval of the corresponding controlling record type.
5379 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
5380 concurrent types declared within a generic as well as class wide types.
5381 Emit a mode incompatibility error whenever a protected entry or routine
5382 override an interface routine whose first parameter is not of mode
5383 "out", "in out" or access to variable.
5384 (Overrides_Synchronized_Primitive): Rename to
5385 Find_Overridden_Synchronized_Primitive.
5386 (Collect_Interface_Components): New subprogram that collects all the
5387 components of a tagged record containing tags of secondary dispatch
5389 (Add_Global_Declaration): New procedure
5390 (Abstract_Interface_List): Handle properly the case of a subtype of a
5392 (Type_Access_Level): In the case of a type whose parent scope is a
5393 return statement, call Type_Access_Level recursively on the enclosing
5394 function's result type to determine the level of the return object's
5396 (Build_Elaboration_Entity): Build name of elaboration entity from the
5397 scope chain of the entity, rather than the unit name of the file name.
5398 (Check_Nested_Access): New procedure.
5399 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
5400 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
5401 (Get_Renamed_Entity): Utility routine for performing common operation
5402 of chasing the Renamed_Entity field of an entity.
5404 2007-06-06 Robert Dewar <dewar@adacore.com>
5406 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
5408 (Check_A_Call): Add check for entry call which was causing blowup
5410 2007-06-06 Olivier Hainque <hainque@adacore.com>
5412 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
5413 special code on ia64-vms to handle major incompatibilities between the
5414 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
5415 this routine with a very different set of arguments and expectations on
5418 2007-06-06 Thomas Quinot <quinot@adacore.com>
5420 * socket.c (__gnat_close_signalling_fd): New function.
5421 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
5422 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
5423 New supporting functions for task safe Netdb operations.
5425 2007-06-06 Thomas Quinot <quinot@adacore.com>
5426 Olivier Hainque <hainque@adacore.com>
5428 * a-except-2005.ads, a-except-2005.adb
5429 (Raise_From_Controlled_Operation): New procedure in
5430 (private part of) Ada.Exceptions (standard runtime version). Used to
5431 provide informational exception message when Program_Error is raised as
5432 a result of an Adjust or Finalize operation propagating an exception.
5433 (Rmsg_28): Fix description for E.4(18) check.
5434 (Raise_Current_Excep): Call Debug_Raise_Exception just before
5435 propagation starts, to let debuggers know about the event in a reliable
5437 Take the address of E and dereference to make sure it is homed on stack
5438 and prevent the stores from being deleted, necessary for proper
5439 debugger behavior on "break exception" hits.
5440 (Local_Raise): Moved to System.Exceptions
5442 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
5443 exception message from the current occurrence and raise Program_Error
5444 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
5446 2007-06-06 Jose Ruiz <ruiz@adacore.com>
5447 Arnaud Charlet <charlet@adacore.com>
5449 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
5452 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
5453 priority associated to a lock.
5455 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
5456 assertion to take into account case of no abort restriction.
5457 (Initialize_Protection_Entries): Add initialization for the field
5458 New_Ceiling associated to the protected object.
5459 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
5462 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
5463 since this function needs to be set consistently with Update_Exception.
5465 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
5466 since this function needs to be set consistently with Update_Exception.
5468 * s-taskin.ads: Update comments on
5469 Interrupt_Server_Blocked_On_Event_Flag.
5470 (Unbind_Handler): Fix handling of server_task wakeup
5471 (Server_Task): Set self's state so that Unbind_Handler can take
5472 appropriate actions.
5473 (Common_ATCB): Now use a constant from System.Parameters to determine
5474 the max size of the Task_Image field.
5476 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
5477 Initialize_Analyzer function.
5478 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
5479 take into account case of no abort restriction.
5480 ([Vulnerable_]Complete_Master): Modify assertion.
5482 * s-tataat.adb (Finalize): Use the nestable versions of
5483 Defer/Undefer_Abort.
5485 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
5487 * s-tpobop.ads: Update comments.
5489 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
5490 of locking the object manually, to avoid inconsistencies between
5491 Lock/Unlock_Entry assertions.
5493 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
5495 application and System.Parameters.No_Abort is True.
5496 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
5497 (Unbind_Handler): Fix handling of server_task wakeup
5498 (Server_Task): Set self's state so that Unbind_Handler can take
5499 appropriate actions.
5501 2007-06-06 Thomas Quinot <quinot@adacore.com>
5503 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
5504 declarations instead of an explicit null body, for conciseness.
5506 2007-06-06 Robert Dewar <dewar@adacore.com>
5508 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
5509 illegal aggregate and the type is still Any_Composite.
5510 (Subtypes_Statically_Match): Fix problem of empty discriminant list
5512 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5514 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
5515 to prevent subsequent expansion.
5517 2007-06-06 Robert Dewar <dewar@adacore.com>
5519 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
5521 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5522 Robert Dewar <dewar@adacore.com>
5524 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
5526 (Write_Itype): Handle case of string literal subtype, which
5527 comes up in this context.
5528 (Update_Itype): when debugging expanded code, update sloc of itypes
5529 associated with defining_identifiers and ranges, for gdb use.
5530 (Sprint_Node_Actual): Add static keyword to object or exception
5531 declaration output if Is_Statically_Allocated is True.
5532 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
5533 or task body, so that the tree carries the proper Sloc information for
5535 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
5537 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5539 * s-secsta.adb (Chunk): Ensure this object has a static size known at
5540 compile time, to avoid dynamic memory allocation
5541 (Elaboration code): Only use dynamic memory allocation when needed.
5543 2007-06-06 Quentin Ochem <ochem@adacore.com>
5545 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
5547 (Stack_Analyzer): Added field "Overflow_Guard"
5548 (Task_Result): Added field "Overflow_Guard".
5549 (Index_Str): New constant.
5550 (Task_Name_Str): New constant.
5551 (Actual_Size_Str): New constant.
5552 (Pattern_Array_Element_Size): New constant.
5553 (Get_Usage_Range): New subprogram.
5554 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
5555 Now align the output.
5557 (Initialize): Added value for Overflow_Guard.
5558 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
5559 Update the value of the overflow guard according to the actual
5560 beginning of the pattern array.
5561 (Initialize_Analyzer): Added parameter Overflow_Guard.
5562 Take this parameter into accound when computing the max size.
5563 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
5564 (Report_Result): Removed extra useless procedure.
5565 Updated call to Output_Result.
5566 Moved full computation of the Task_Result here.
5568 2007-06-06 Thomas Quinot <quinot@adacore.com>
5570 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
5571 Thread_Blocking_IO, always True by default, set False on a per-runtime
5573 Add Windows-specific constants
5574 Add new constant Need_Netdb_Buffer.
5575 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
5576 not, whether to use getXXXbyYYY_r.
5578 * gsocket.h: Add new constant Need_Netdb_Buffer.
5579 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
5580 not, whether to use getXXXbyYYY_r.
5582 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
5584 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
5585 than their first call.
5586 Add type Dummy_Communication_Block used in the generation of the pre-
5587 defined dispatching primitive _disp_asynchronous_select.
5588 (Storage_Element): Put Pragma Universal_Aliasing on it.
5590 2007-06-06 Vincent Celier <celier@adacore.com>
5592 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
5595 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
5596 letter if it is not followed by a '/' or a '\'.
5597 (Windows): New Boolean function
5599 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
5601 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
5603 (Containing_Directory): Raise Use_Error when the directory is a root
5605 (Extension): When returning the result, use a conversion to Result_Type,
5606 not a qualification.
5608 2007-06-06 Robert Dewar <dewar@adacore.com>
5610 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
5611 (Set_Style_Check_Options): Recognize new -gnatyg style switch
5613 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
5614 Warn_On_Non_Local_Exception to False, to turn off warnings for
5615 No_Exception_Propagation in ZFP runtime.
5616 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
5618 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
5620 2007-06-06 Vincent Celier <celier@adacore.com>
5622 * switch-b.adb (Scan_Binder_Switches): Add processing for new
5625 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
5626 (Scan_Make_Switches): Recognize new switch -aP
5628 2007-06-06 Matthew Gingell <gingell@adacore.com>
5629 Jose Ruiz <ruiz@adacore.com>
5631 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
5632 VxWorks task descriptor in the Ada run time, call a C subprogram
5633 (__gnat_get_stack_info) that extracts the required information.
5635 * sysdep.c: Back out temporary lynxos workaround.
5636 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
5637 time the stack information associated to the currently executing task.
5638 Only VxWorks systems require this function.
5640 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
5642 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
5643 add the stack bias if the offset is computed from a frame address.
5644 (__gnat_backtrace): Adjust for above change.
5646 2007-06-06 Thomas Quinot <quinot@adacore.com>
5648 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
5649 PE_Non_Transportable_Actual.
5650 (By_Descriptor_Last): New constant.
5651 (By_Copy_Return): Likewise.
5653 2007-06-06 Vincent Celier <celier@adacore.com>
5655 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
5658 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
5659 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
5660 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
5661 Add missing comment for /OPTIMIZE=SPACE
5662 Add entry for OPTIMIZE=SPACE
5663 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
5664 Add documentation for new qualifiers corresponding to -gnatw.c/.C
5666 2007-06-06 Vincent Celier <celier@adacore.com>
5667 Robert Dewar <dewar@adacore.com>
5669 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
5672 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
5673 Document gnatbind switch -a
5674 (case Constructions): Document that variables declarations are allowed
5675 for previously declared variables.
5676 Fix external lib project example
5677 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
5678 Indicate that "#if not X or Y then" is not allowed in input files to
5680 Document gnatw.x and gnatw.X warning flags
5681 Mention -Winline switch to activate warnings when back-end inlining is
5683 Add gnatcheck rule descriptions
5684 Describe how to use the GNAT driver to call a tool on a closure.
5685 Describe how to run project-wide checks or metrics.
5686 Document gnatbind's -R option
5687 Updated to account for Ada 2005 support
5689 * gnat_rm.texi (Case Construction): Allow variable declarations for
5690 previously declared variables.
5691 (Representation Clauses and Pragmas): Lift restriction on alignment
5692 clauses for record types.
5693 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
5694 Document No_Exception_Propagation restriction
5695 Document No_Body pragma
5696 Updated to account for Ada 2005 support; corrected some typos
5697 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
5699 * gnat-style.texi: Make it clear that we never use mode IN for
5700 procedures or functions
5702 * ug_words: Add entries for -gnatw.x and -gnatw.X
5703 Add entries for -gnatw.c/.C
5705 2007-06-06 Pascal Obry <obry@adacore.com>
5706 Vincent Celier <celier@adacore.com>
5708 * makegpr.adb (Add_Archive_Path): Use untouched object and library
5709 dirs and library name.
5710 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
5712 (Build_Library): Idem.
5713 (Compile_Individual_Sources): Idem.
5714 (Compile_Link_With_Gnatmake): Idem.
5715 (Compile_Sources): Idem.
5716 (Get_Imported_Directories): Idem.
5717 (Link_Executables): Idem. Same change for the executable dir.
5718 (Check_Compilation_Needed): C_Source_Path new variable containing
5719 the canonical form of Source_Path to check against the source names
5720 in the dependency file.
5721 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
5722 verbose mode, display the name of the object directory we're changing
5724 (Saved_Switches): New name of table X_Switches
5725 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
5726 (Usage): New line for switch -aP
5727 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
5728 testing if a directory should be added to the search path.
5730 2007-06-06 Javier Miranda <miranda@adacore.com>
5732 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
5733 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
5734 declaration after freezing point of all its associated tagged types;
5735 otherwise such types are frozen too early.
5737 2007-06-06 Robert Dewar <dewar@adacore.com>
5739 * a-reatim.adb: Documentation addition
5741 * g-cgideb.adb: Minor code reorganization
5743 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
5744 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
5745 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
5747 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
5748 function. Change name New_Scope to Push_Scope
5749 (Get_Debug_Flag_K): Remove unused obsolete function.
5751 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
5754 * makeusg.adb: Update Copyright notice
5755 Add line for switch -aP
5757 * makeusg.adb: Fix wording of some usage messages
5759 * s-assert.adb (Raise_Assert_Failure): Add call to
5760 Debug_Raise_Assert_Failure.
5762 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
5763 (2, Standard'Alignment) for compatibility with AAMP (where alignment
5764 is restricted to 1).
5766 * s-wchjis.adb: Remove use of System.Pure_Exceptions
5768 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
5769 node location to No_Location when we're not debugging the expanded
5772 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
5774 * misc.c (enumerate_modes): Consider log2_b to always be one.
5776 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
5778 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
5780 2007-05-02 Pascal Obry <obry@adacore.com>
5782 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
5783 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
5784 encoding support of Stream_IO.
5787 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
5788 filename and corresponding encoding to match the OS requirement.
5789 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
5790 routine will fail on specific devices like CON: AUX: ...
5792 PR ada/29856: Add missing braces
5794 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
5797 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
5799 2007-04-21 Jan Hubicka <jh@suse.cz>
5801 * misc.c (gnat_expand_body): Don't call target for destructors,
5802 avoid redundant check on syntax errors.
5804 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
5806 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
5807 instead of checking GIMPLE_STMT_P in chain_next.
5809 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
5812 * system-linux-alpha.ads: Disable constant condition warning for the
5813 Default_Bit_Order variable.
5814 * system-linux-s390.ads: Likewise.
5815 * system-linux-s390x.ads: Likewise.
5816 * system-linux-sparc.ads: Likewise.
5818 2007-04-06 Javier Miranda <miranda@adacore.com>
5819 Matt Heaney <heaney@adacore.com>
5820 Robert Dewar <dewar@adacore.com>
5822 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5823 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
5824 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
5825 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
5826 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
5827 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
5828 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
5829 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
5830 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
5831 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
5832 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
5833 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
5834 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
5835 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
5836 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
5837 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
5838 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
5839 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
5840 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
5841 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
5842 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
5843 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
5844 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
5845 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
5846 s-taprop-tru64.adb, s-taprop-irix.adb,
5847 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
5848 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
5849 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
5850 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
5851 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
5852 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
5853 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
5854 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
5855 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
5856 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
5857 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
5858 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
5859 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
5860 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
5861 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
5862 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
5863 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
5864 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
5865 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
5866 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
5868 Update documentation.
5871 2007-04-06 Robert Dewar <dewar@adacore.com>
5873 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
5874 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5875 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
5876 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
5877 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
5878 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5879 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
5880 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
5881 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
5882 system-hpux-ia64.ads, targparm.adb,
5883 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
5885 * system.ads: Move Functions_Return_By_DSP to obsolete section,
5886 kept for bootstrap purposes only.
5888 2007-04-06 Arnaud Charlet <charlet@adacore.com>
5890 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5891 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
5892 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
5893 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
5895 2007-04-06 Robert Dewar <dewar@adacore.com>
5897 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
5898 (Local_Raise): New dummy procedure called when a raise is converted
5899 to a local goto. Used for debugger to detect that the exception
5902 * debug.adb: Document new d.g flag (expand local raise statements to
5903 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
5905 * exp_sel.adb: Use Make_Implicit_Exception_Handler
5907 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
5908 suppress warnings for unused handlers.
5909 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
5910 warnings for raise statements not handled locally.
5911 (Get_RT_Exception_Entity): New function
5912 (Get_Local_Call_Entity): New function
5913 (Find_Local_Handler): New function
5914 (Warn_If_No_Propagation): New procedure
5915 (Expand_At_End_Handler): Call Make_Implicit_Handler
5916 (Expand_Exception_Handlers): Major additions to deal with local handlers
5917 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
5918 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
5921 * exp_ch11.ads (Get_RT_Exception_Entity): New function
5922 (Get_Local_Call_Entity): New function
5924 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
5925 of restrictions that the binder will never suggest adding.
5927 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
5930 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
5931 be with'ed in the presence of pragma Restriction
5932 (No_Exception_Propagation).
5934 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
5936 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
5937 parameter, then the handler is not a suitable target for a local raise,
5938 and this is a violation of restriction No_Exception_Propagation.
5939 (Analyze_Handled_Statements): Analyze choice parameters in exception
5940 handlers before analyzing statement sequence (needed for proper
5941 detection of local raise statements).
5942 (Analyze_Raise_Statement): Reraise statement is a violation of the
5943 No_Exception_Propagation restriction.
5945 * s-rident.ads: Add new restriction No_Exception_Propagation
5947 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
5948 function, like Make_Exception_Handler but sets Local_Raise_Statements
5950 (Add_Unique_Serial_Number): Deal with case where this is called during
5951 processing of configuration pragmas.
5953 2007-04-06 Thomas Quinot <quinot@adacore.com>
5954 Pat Rogers <rogers@adacore.com>
5955 Pascal Obry <obry@adacore.com>
5957 * g-stsifd-sockets.adb: New file.
5959 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
5960 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
5961 g-socthi-vms.adb: Move signalling
5962 fd management to a nested package, so that they can conveniently be
5963 moved to a subunit that is shared across Windows, VMS, and VxWorks
5964 (Ada implementation) or completed with imported bodies from socket.c
5966 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
5968 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
5969 the signalling file descriptor.
5970 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
5971 signalling file descriptor.
5972 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
5973 instead of creating a pair of sockets for signalling here.
5975 * g-socthi.adb: Ditto.
5976 Set the runtime process to ignore SIGPIPEs on platforms that support
5977 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
5979 * g-socthi-mingw.adb: Ditto.
5980 (WS_Version): Use Windows 2.2.
5981 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
5983 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
5984 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
5986 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
5987 added GNAT byte swapping facility
5988 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
5990 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
5992 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
5994 (__gnat_create_signalling_fds): New subprogram.
5995 Set the runtime process to ignore SIGPIPEs on platforms that support
5996 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
5998 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
5999 Vincent Celier <celier@adacore.com>
6001 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
6002 New version of Ada.Calendar which supports the new upper bound of Ada
6003 time (2399-12-31 86_399.999999999).
6004 The following modifications have been made to the package:
6005 - New representation of time as count of nanoseconds since the start of
6006 Ada time (1901-1-1 0.0).
6007 - Target independent Split and Time_Of routines which service both
6008 Ada 95 and Ada 2005 code.
6009 - Target independent interface to the Ada 2005 children of Calendar.
6010 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
6011 - Handling of non-leap centenial years.
6012 - Updated clock function.
6013 - Updated arithmetic and comparison operators.
6015 * a-caldel.adb (To_Duration): Add call to target independent routine in
6016 Ada.Calendar to handle the conversion of time to duration.
6018 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
6020 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
6022 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
6023 targets do not have a natural time zone, GMT is used as a default.
6024 (__gnat_get_task_options): New.
6026 * a-direct.adb (Modification_Time): Add with and use clauses for
6027 Ada.Calendar and Ada.
6028 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
6029 since it is no longer needed.
6030 (Duration_To_Time): Removed.
6031 (OS_Time_To_Long_Integer): Removed.
6032 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
6033 Formatting Time_Of routines which automatically handle time zones,
6034 buffer periods and leap seconds.
6036 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
6037 target independent routines in Ada.Calendar.
6039 * a-calfor.ads, a-calfor.adb:
6040 Code cleanup and addition of validity checks in various routines.
6041 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
6044 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
6045 independent routine in Ada.Calendar.
6047 2007-04-06 Olivier Hainque <hainque@adacore.com>
6050 (convert_addresses): Adjust prototype and dummy definition to expect an
6051 extra file_name argument.
6053 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
6054 filling the now expected file_name argument with the appropriate
6056 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
6057 (tracebk): Array of void * instead of char *, corresponding to what
6058 convert_addresses expects.
6059 (exename): New static global, to hold the executable file name to be
6060 used in all convert_addresses invocations.
6061 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
6063 (__gnat_gmem_a2l_initialize): Resolve exename.
6064 (__gnat_convert_addresses): Use exename as the convert_addresses
6067 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
6068 "convert_addresses", now expecting a filename argument. Import the
6069 necessary entities to compute the filename to use and pass it to
6072 2007-04-06 Matt Gingell <gingell@adacore.com>
6074 * system-aix.ads: Back out previous change.
6075 (Functions_Return_By_DSP): Removed
6077 2007-04-06 Pascal Obry <obry@adacore.com>
6079 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
6080 or the monotonic used by Ada.Real_Time) to compute the sleep duration
6083 2007-04-06 Jose Ruiz <ruiz@adacore.com>
6085 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
6086 function. Its value changes in different VxWorks versions, and it is
6087 now handled by the function __gnat_get_task_options.
6089 * s-taprop-vxworks.adb (Create_Task): Call the function
6090 __gnat_get_task_options to get the required options for creating a task.
6092 2007-04-06 Pascal Obry <obry@adacore.com>
6093 Thomas Quinot <quinot@adacore.com>
6095 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
6096 dealing with filename.
6097 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
6098 filename from a standard string to a wide-string depending on the
6100 (__gnat_freopen): Idem.
6101 (__gnat_current_time): New function (wrapper for time(3) standard C
6104 * g-os_lib.ads (Current_Time): New function. Returns the current
6105 system time as an OS_Time value.
6107 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
6108 (Monotonic_Clock): Same.
6110 2007-04-06 Quentin Ochem <ochem@adacore.com>
6112 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
6114 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
6116 2007-04-06 Jose Ruiz <ruiz@adacore.com>
6118 * a-retide.adb: Add elaboration code to ensure that the tasking run
6119 time is initialized when using delay operations even when no task is
6122 2007-04-06 Javier Miranda <miranda@adacore.com>
6124 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
6125 component Num_Prim_Ops.
6126 (Set_Num_Prim_Ops): Removed.
6127 Remove all the assertions because all the routines of this
6128 package are inline always.
6129 (Get_Offset_Index): Add support to primary dispatch tables.
6130 Move the documentation about the dispatch table to a-tags.ads
6131 (Set_External_Tag): Removed
6132 (Inherit_TSD): Removed.
6133 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
6135 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
6136 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
6137 of the TSD field "Table" because this field has been renamed to
6139 (Inherit_CPP_DT): Removed.
6140 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
6141 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
6142 declarations have been moved to a-tags.ads
6143 (Check_Size): Removed.
6144 (Expanded_Name): Updated to get access to the new field of TSD
6145 containing the address of the expanded name.
6146 (Get_Access_Level/Set_Access_Level): Removed.
6147 (Get_Predefined_Prim_Op_Address): Removed.
6148 (Set_Predefined_Prim_Op_Address): Removed.
6149 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
6150 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
6151 (Set_Expanded_Name): Removed.
6152 (Inherit_DT): Removed.
6153 (Inherit_CPP_DT): Removed.
6154 (Set_RC_Offset): Removed.
6156 (Base_Address): New function that displaces "this" to point to the base
6157 of the object (that is, to point to the primary tag of the object).
6159 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6160 Javier Miranda <miranda@adacore.com>
6162 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
6163 anonymous access component, do not create a master_id if type already
6164 has one, as may happen if the type is a subcomponent of a packed array
6166 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
6167 Initialize_Tag): Remove code associated with the old CPP pragmas.
6168 CPP_Virtual and CPP_Vtable are no longer supported.
6169 (Build_Offset_To_Top_Internal): Add support for concurrent record types
6170 (Build_Offset_To_Top_Functions): Add support for concurrent record types
6171 (Freeze_Record_Type): Remove call to
6172 Init_Predefined_Interface_Primitives.
6173 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
6174 code required to initialize the tags of the secondary dispatch tables.
6175 This leaves the algoritm more clear.
6176 (Init_Secondary_Tags): Add support for concurrent record types
6177 (Make_Predefined_Primitive_Specs): Code cleanup.
6178 (Predefined_Primitive_Bodies): Code cleanup.
6179 (Build_Master_Renaming): New local subprogram.
6180 (Expand_N_Full_Type_Declaration): Build the master_id associated with
6181 anonymous access to task type components.
6182 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
6183 subtype indication are resolved during analysis, and must not be done
6185 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
6187 2007-04-06 Geert Bosch <bosch@adacore.com>
6188 Ed Schonberg <schonberg@adacore.com>
6189 Javier Miranda <miranda@adacore.com>
6190 Bob Duff <duff@adacore.com>
6192 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
6193 for conversion of a Float_Type'Truncation to integer.
6195 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
6196 check if a node is an attribute that can be handled directly by the
6198 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
6199 attributes that can be handled directly by the back end.
6200 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
6201 use new predicate Is_Access_Protected_Subprogram_Type.
6202 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
6203 and Unchecked_Union if it is generated as part of the default Output
6204 procedure for a type with default discriminants.
6205 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
6206 if we are compiling under restriction No_Dispatching_Calls.
6207 (Constrained): Use Underlying_Type, in case the type is private without
6208 discriminants, but the full type has discriminants.
6209 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
6210 call to Build_Get_Access_Level.
6211 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
6212 interface objects requires a call to the run-time subprogram that
6213 returns the base address of the object.
6214 (Valid_Conversion): Improve error message on illegal attempt to store
6215 an anonymous access to subprogram value into a record component.
6217 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
6219 (Simplify_Type_Conversion): New procedure that performs simplification
6220 of Int_Type (Float_Type'Truncation (X)).
6221 (Resolve_Type_Conversion): Call above procedure after resolving operand
6222 and before performing checks. This replaces the existing ineffective
6224 (Set_String_Literal_Subtype): When creating the internal static lower
6225 bound subtype for a string literal, use a newly created copy of the
6226 subtree representing the lower bound.
6227 (Resolve_Call): Exclude build-in-place function calls from transient
6228 scope treatment. Update comments to describe this exception.
6229 (Resolve_Equality_Op): In case of dispatching call check violation of
6230 restriction No_Dispatching_Calls.
6231 (Resolve_Call): If the call returns an array, the context imposes the
6232 component type of the array, and the function has one non-defaulted
6233 parameter, rewrite the call as the indexing of a call with a single
6234 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
6236 (Resolve_Actuals): If an actual is an allocator for an access parameter,
6237 the master of the created object is the innermost enclosing statement.
6238 (Remove_Conversions): For a binary operator, check if type of second
6239 formal is numeric, to check if an abstract interpretation is present
6240 in the case of exponentiation as well.
6242 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6243 Bob Duff <duff@adacore.com>
6245 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
6246 copying a parameter list in a call, set properly the First_Named_Formal
6247 and Next_Named_Formal fields in the new list and in the enclosing call.
6248 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
6249 names, to ease typing in the debugger. Improve comments.
6250 (Watch_Node): New variable, intended to be set in the debugger.
6251 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
6252 called when the watched node is created.
6253 (New_Node_Debugging_Output): Combined version of local procedures
6254 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
6255 with a parameter so that conditional breakpoints like "if Node = 12345"
6257 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
6260 2007-04-06 Thomas Quinot <quinot@adacore.com>
6261 Ed Schonberg <schonberg@adacore.com>
6262 Gary Dismukes <dismukes@adacore.com>
6264 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
6265 required for a conversion between two access-to-unconstrained-array
6267 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
6268 to discriminant constraints on discriminant objects. This rule must
6269 apply as well to discriminants of protected types in private components.
6270 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
6271 object of a null-excluding access type then don't require the
6272 the object declaration to have an expression and don't emit a
6275 2007-04-06 Arnaud Charlet <charlet@adacore.com>
6276 Eric Botcazou <botcazou@adacore.com>
6278 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
6281 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
6282 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
6285 * fe.h (Compiler_Abort): Add third parameter.
6287 * misc.c (internal_error_function): Build third argument from current
6288 input location and pass it to Compiler_Abort.
6290 2007-04-06 Gary Dismukes <dismukes@adacore.com>
6292 * cstand.adb (Create_Standard): When the target's storage unit size is
6293 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
6296 2007-04-06 Nicolas Roche <roche@adacore.com>
6298 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
6299 absolute path can have the following form: device:/a/b. In this case
6300 '/' should be inserted between the path and the filename.
6302 2007-04-06 Olivier Hainque <hainque@adacore.com>
6303 Eric Botcazou <botcazou@adacore.com>
6305 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
6306 VAR_DECL to a CONST_DECL we make for a public constant when we know the
6307 corresponding definition has created the so made visible variable.
6308 Handle anonymous access to protected subprogram.
6309 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
6310 object with an address clause volatile. Re-enable original fix.
6311 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
6313 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
6314 associated with either the Equivalent or Root type, instead of the
6316 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
6317 subtree for every field of a global record type.
6318 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
6319 discriminants, invoke again variable_size on its newly computed sizes.
6321 2007-04-06 Robert Dewar <dewar@adacore.com>
6322 Thomas Quinot <quinot@adacore.com>
6323 Ed Schonberg <schonberg@adacore.com>
6324 Bob Duff <duff@adacore.com>
6326 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
6327 (Next_Component_Or_Discriminant): New function and procedure
6328 (First_Index, First_Literal, Master_Id,
6329 Set_First_Index, Set_First_Literal, Set_Master_Id):
6330 Add missing Ekind assertions.
6331 (Is_Access_Protected_Subprogram_Type): New predicate.
6332 (Has_RACW): New entity flag, set on package entities to indicate that
6333 the package contains the declaration of a remote accecss-to-classwide
6335 (E_Return_Statement): This node type has the Finalization_Chain_Entity
6336 attribute, in case the result type has controlled parts.
6337 (Requires_Overriding): Add this new flag, because "requires
6338 overriding" is subtly different from "is abstract" (see AI-228).
6339 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
6340 Is_Abstract_Type. Make sure these are called only when appropriate.
6341 (Has_Pragma_Unreferenced_Objects): New flag
6343 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
6344 class-wide, the tag of the right-hand side must be an exact match, not
6345 an ancestor of that of the object on left-hand side.
6346 (Move_Activation_Chain): New procedure to create the call to
6347 System.Tasking.Stages.Move_Activation_Chain.
6348 (Expand_N_Extended_Return_Statement): Generate code to call
6349 System.Finalization_Implementation.Move_Final_List at the end of a
6350 return statement if the function's result type has controlled parts.
6351 Move asserts to Build_In_Place_Formal.
6352 (Move_Final_List): New function to create the call statement.
6353 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
6354 tagged type, replace generation of call to the run-time subprogram
6355 CW_Membership by call to Build_CW_Membership.
6356 (Expand_N_Return_Statement): Replace generation of call to the run-time
6357 subprogram Get_Access_Level by call to Build_Get_Access_Level.
6358 (Expand_N_Simple_Function_Return): Replace generation of call to the
6359 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
6361 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
6362 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
6363 access to protected operations.
6364 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
6365 master and chain actual parameters to a build-in-place function call
6367 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
6369 (Make_Build_In_Place_Call_In_Allocator,
6370 Make_Build_In_Place_Call_In_Anonymous_Context,
6371 Make_Build_In_Place_Call_In_Assignment,
6372 Make_Build_In_Place_Call_In_Object_Declaration): Call
6373 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
6374 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
6375 stubbed procedure with a null body, replace the call with a null
6376 statement without using the full inlining machinery, for efficiency
6377 and to avoid invalid values in source file table entries.
6379 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
6380 renamings of calls to build-in-place functions.
6382 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
6383 provides the functionality of RTE_Available to record components.
6384 (RTU_Entity): The function Entity has been renamed to RTU_Entity
6385 to avoid undesired overloading.
6386 (Entity): New subprogram that returns the entity for the referened
6387 unit. If this unit has not been loaded, it returns Empty.
6388 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
6389 Remove no longer used entities.
6390 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
6391 (RE_Type_Specific_Data): New entity.
6392 (RE_Move_Any_Value): New entity.
6393 (RE_TA_A, RE_Get_Any_Type): New entities.
6394 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
6395 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
6396 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
6397 (Entity): New subprogram that returns the entity for the referened
6398 unit. If this unit has not been loaded, it returns Empty.
6399 (RTE): Addition of a new formal that extends the search to the scopes
6400 of the record types found in the chain of the package.
6402 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
6403 "abstract subprograms must be visible" message, whether or not the type
6404 is an interface; that is, remove the special case for interface types.
6405 (Analyze_Function_Return): Remove error message "return of task objects
6406 is not yet implemented" because this is now implemented.
6407 (Create_Extra_Formals): Add the extra master and activation chain
6408 formals in case the result type has tasks.
6409 Remove error message "return of limited controlled objects is not yet
6411 (Create_Extra_Formals): Add the extra caller's finalization list formal
6412 in case the result type has controlled parts.
6413 (Process_Formals): In case of access formal types there is no need
6414 to continue with the analysis of the formals if we already notified
6416 (Check_Overriding_Indicator): Add code to check overriding of predefined
6418 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
6419 flags for formals that do not require them,.
6420 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
6421 hidden entity is use visible or directly visible.
6422 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
6423 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
6424 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
6425 New_Overloaded_Entity): Split Is_Abstract flag into
6426 Is_Abstract_Subprogram and Is_Abstract_Type.
6428 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
6429 a return statement's finalization list to the caller's list, used for
6430 build-in-place functions with result type with controlled parts.
6431 Remove no longer used entities.
6433 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
6434 longer needed, because the full type is now limited, and therefore a
6435 pass-by-reference type.
6436 (Foreign_Task_Level): New constant.
6438 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
6439 move tasks from the activation chain belonging to a return statement to
6440 the one passed in by the caller, and update the master to the one
6441 passed in by the caller.
6442 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
6443 of unactivated tasks, so we don't kill the ones that are being returned
6444 by a build-in-place function.
6445 (Create_Task): Ignore AI-280 for foreign threads.
6447 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6448 Robert Dewar <dewar@adacore.com>
6449 Bob Duff <duff@adacore.com>
6450 Gary Dismukes <dismukes@adacore.com>
6452 * errout.adb (Unwind_Internal_Type): Use predicate
6453 Is_Access__Protected_Subprogram_Type.
6455 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
6456 (Freeze_Entity, packed array case): Do not override explicitly set
6457 alignment and size clauses.
6458 (Freeze_Entity): An entity declared in an outer scope can be frozen if
6459 the enclosing subprogram is a child unit body that acts as a spec.
6460 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
6461 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
6462 Remove all code for DSP option
6464 * layout.adb (Layout_Record_Type): Use First/
6465 Next_Component_Or_Discriminant
6466 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
6467 to handle properly the anonymous access case.
6469 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
6470 for all access attributes, because overload resolution should work the
6471 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
6472 causes the error message for the ambiguous "X'Access = Y'Access" and
6473 "X'Unrestricted_Access = Y'Access" and so forth to match.
6474 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
6475 now that anonymous access to protected operations have their own kind.
6476 (Resolve_Attribute): In case of dispatching call check the violation of
6477 restriction No_Dispatching_Calls.
6478 (Check_Array_Type): Check new -gnatyA array index style option
6480 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
6481 attempt to derive from a synchronized tagged type.
6482 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
6483 type, inherit the class-wide type already created, because it may
6484 already have been used in a self-referential anonymous access component.
6485 (Mentions_T): Recognize self-referential anonymous access components
6486 that use (a subtype of) the class-wide type of the enclosing type.
6487 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
6488 Derived_Type for Prev formal on call to
6489 Check_Anonymous_Access_Components rather than Empty.
6490 (Make_Incomplete_Type_Declaration): Add test for case where the type has
6491 a record extension in deciding whether to create a class-wide type,
6492 rather than just checking Tagged_Present.
6493 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
6494 to stand-alone object declarations as well as component declarations.
6495 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
6496 prevent accidental overwriting when enclosing package appears in
6497 a limited_with_clause.
6498 (Array_Type_Declaration): If the component type is an anonymous access,
6499 the associated_node for the itype is the type declaration itself.
6500 (Add_Interface_Tag_Components): Modified to support concurrent
6501 types with abstract interfaces.
6502 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
6503 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
6504 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
6505 to complete the decoration of synchronized interface types. Add also
6506 a call to Check_Abstract_Interfaces to verify the ARM rules.
6507 (Derive_Interface_Subprograms): Modified to support concurrent types
6508 with abstract interfaces.
6509 (Analyze_Subtype_Indication): Resolve the range with the given subtype
6510 mark, rather than delaying the full resolution depending on context.
6511 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
6512 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
6513 Array_Type_Declaration,Build_Derived_Record_Type,
6514 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
6515 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
6516 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
6517 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
6518 called only when appropriate.
6519 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
6521 (Analyze_Subtype_Declaration): For an access subtype declaration, create
6522 an itype reference for the anonymous designated subtype, to prevent
6523 scope anonmalies in gigi.
6524 (Build_Itype_Reference): New utility, to simplify construction of such
6527 2007-04-06 Vincent Celier <celier@adacore.com>
6529 * errutil.adb (Initialize): Initialize warnings table, if all warnings
6530 are suppressed, supply an initial dummy entry covering all possible
6533 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
6534 and start with only one, such as "-RTS=none".
6535 (Collect_Arguments): Do not check for sources outside of projects.
6536 Do not collect arguments if project is externally built.
6537 (Compile_Sources): Do nothing, not even check if the source is up to
6538 date, if its project is externally built.
6539 (Compile): When compiling a predefined source, add -gnatpg
6540 as the second switch, after -c.
6541 (Compile_Sources): Allow compilation of Annex J renames without -a
6542 (Is_In_Object_Directory): Check if the ALI file is in the object
6543 even if there is no project extension.
6544 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
6545 gnatbind if the ALI file effectively exists.
6546 (Initialize): Add the directory where gnatmake is invoked in front of
6547 the path if it is invoked from a bin directory, even without directory
6548 information, so that the correct GNAT tools will be used when spawned
6549 without directory information.
6551 * makeusg.adb: Change switch -S to -eS
6552 Add lines for new switches -we, -wn and -ws
6553 Add line for new switch -p
6555 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
6556 Treat_As_Error and there are warnings.
6558 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
6559 -gnatww Change gnatmake switch -S to -eS
6560 (Scan_Make_Switches): Code reorganisation. Process separately multi
6561 character switches and single character switches.
6562 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
6563 False when switch is not recognized by gnatmake.
6564 (Scan_Make_Switches): Set Setup_Projects True when -p or
6565 --create-missing-dirs is specified.
6567 * fname.adb (Is_Predefined_File_Name): Return True for annex J
6568 renamings Calendar, Machine_Code, Unchecked_Conversion and
6569 Unchecked_Deallocation only when Renamings_Included is True.
6571 * par.adb: Allow library units Calendar, Machine_Code,
6572 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
6573 when -gnatg is not specified.
6574 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
6575 there is no need to generate always a record_definition_node in case
6576 of synchronized interface types.
6577 (SIS_Entry_Active): Initialize global variable to False
6578 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
6579 indicate cases where AI-447 says "not null" is legal.
6581 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
6583 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
6584 files with with several lines starting with the object fileb name.
6585 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
6587 (Initialize): Add the directory where gprmake is invoked in front of the
6588 path, if it is invoked from a bin directory or with directory
6589 information, so that the correct GNAT tools will be used when invoked
6591 (Check_Compilation_Needed): Process correctly backslashes on Windows.
6593 * vms_data.ads: Update switches/qualifiers
6595 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6596 Thomas Quinot <quinot@adacore.com>
6599 If the array component is a discriminated record, the array aggregate
6600 is non-static even if the component is given by an aggregate with
6602 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
6603 (Convert_Aggr_In_Allocator): If the allocator is for an access
6604 discriminant and the type is controlled. do not place on a finalization
6605 list at this point. The proper list will be determined from the
6607 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
6608 initialize record controller if needed, before the components, to ensure
6609 that they are properly finalized.
6610 (Build_Record_Aggr_Code): For the case of an array component that has a
6611 corresponding array aggregate in the record aggregate, perform sliding
6614 2007-04-06 Javier Miranda <miranda@adacore.com>
6615 Gary Dismukes <dismukes@adacore.com>
6616 Ed Schonberg <schonberg@adacore.com>
6618 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
6619 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
6621 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
6622 accessibility on class-wide allocators if the allocator occurs at the
6623 same scope level as the allocator's type. The check is guaranteed to
6624 succeed in that case, even when the expression originates from a
6625 parameter of the containing subprogram.
6626 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
6627 under No_Dispatching_Calls restriction. During the semantic analysis
6628 we already notified such violation.
6629 (Tagged_Membership): Constant folding. There is no need to check
6630 the tag at run-time if the type of the right operand is non
6631 class-wide abstract.
6632 Replace call to Is_Ancestor by call to Is_Parent
6633 to support concurrent types with interface types.
6634 (Expand_N_Allocator): Add an assertion associated with the generation
6636 (Expand_N_Slice): Do not enable range check to nodes associated
6637 with the frontend expansion of the dispatch table.
6638 (Is_Local_Access_Discriminant): Subsidiary function to
6640 (Tagged_Membership): Replace generation of call to the run-time
6641 subprogram CW_Membership by call to Build_CW_Membership.
6642 (Expand_Allocator_Expression): Replace generation of call to the
6643 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
6645 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
6646 initialize most the TSD components by means of an aggregate.
6647 Modify the declaration of the object containing the TSD
6648 because we now expand code that has a higher level of abstraction.
6649 The TSD has a discriminant containing the Inheritance Depth Level,
6650 value that is used in the membership test but also to fix the size
6651 of the table of ancestors.
6652 (Expand_Interface_Conversion): Insert function body at the closest place
6653 to the conversion expression, to prevent access-before-elaboration
6654 errors in the backend.
6655 Code improved to reduce the size of the dispatch table if
6656 compiling under restriction No_Dispatching_Calls plus code cleanup.
6657 Code reorganization plus removal of calls to Set_Num_Prim_Ops
6658 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
6659 (Expand_Dispatching_Call): Minor code reorganization plus addition of
6660 code to return immediately if compiling under No_Dispatching_Calls
6662 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
6663 CPP_Virtual and CPP_Vtable are no longer supported.
6664 (Expand_Interface_Conversion): Add missing support for interface type
6666 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
6667 Is_Parent to support concurrent types with interfaces.
6668 (Init_Predefined_Interface_Primitives): Removed.
6669 (Make_Secondary_DT): Modified to support concurrent record types.
6670 (Set_All_DT_Position): Modified to support concurrent record types.
6671 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
6672 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
6673 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
6675 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
6676 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
6677 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
6678 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
6679 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
6680 (Expand_Dispatching_Call): Replace generation of call to the run-time
6681 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
6682 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
6684 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
6685 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
6686 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
6687 Build_Set_Prim_Op_Address.
6688 (Get_Remotely_Callable): Subprogram removed.
6689 (Init_Predefined_Interface_Primitives): Replace generation of call to
6690 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
6693 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
6694 First (Parameter_Associations ()) with the call to First_Actual that
6695 returns an actual parameter expression for both named and positional
6698 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
6699 check violation of restriction No_Dispatching_Calls.
6700 (Check_Controlling_Type): A formal of a tagged incomplete type is a
6701 controlling argument.
6703 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
6704 First/Next_Component_Or_Discriminant
6705 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
6706 (Find_Implemented_Interface): Removed. All the calls to this subprogram
6707 specify Any_Limited_Interface, and this functionality is already
6708 provided by the function Has_Abstract_Interfaces.
6709 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
6710 support concurrent types implementing interfaces.
6711 (Find_Implemented_Interface): Removed. All the calls to this subprogram
6712 specify kind Any_Limited_Interface, and this functionality is already
6713 provided by the function Has_Abstract_Interfaces.
6714 (Remove_Side_Effects): replace Controlled_Type by
6715 CW_Or_Controlled_Type whenever the issue is related to
6716 using or not the secondary stack.
6718 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
6719 P_Interface_Type_Definition to fulfill the new interface (the formal
6720 Is_Synchronized is no longer required).
6722 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
6723 Update dependencies.
6725 * exp_atag.ads, exp_atag.adb: New file
6727 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6728 Bob Duff <duff@adacore.com>
6729 Cyrille Comar <comar@adacore.com>
6731 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
6732 anonymous, use finalization list of enclosing dynamic scope.
6733 (Expand_N_Package_Declaration): For a library package declaration
6734 without a corresponding body, generate RACW subprogram bodies in the
6735 spec (just as we do for the task activation call).
6736 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
6737 Is_Abstract_Type. Make sure these are called only when appropriate.
6738 Remove all code for DSP option
6739 (CW_Or_Controlled_Type): new subprogram.
6741 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6742 Ed Schonberg <schonberg@adacore.com>
6743 Gary Dismukes <dismukes@adacore.com>
6745 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
6746 parameter. If it is set to true, return a result capped according to
6747 the global upper bound for the index of an entry family.
6748 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
6749 (Build_Find_Body_Index): Adjust for above change.
6750 (Entry_Index_Expression): Likewise.
6751 (Is_Potentially_Large_Family): New function extracted from...
6752 (Collect_Entry_Families): ...here. Call it to detect whether the family
6753 is potentially large.
6754 (Build_Entry_Count_Expression): If the family is potentially large, call
6755 Family_Size with 'Cap' set to true.
6756 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
6757 a protected version of an operation declared in the private part of
6758 a protected object, because they may be invoked through a callback.
6759 (Set_Privals): If the type of a private component is an anonymous access
6760 type, do not create a new itype for each protected body.
6761 If the body of a protected operation creates
6762 controlled types (including allocators for class-widetypes), the
6763 body of the corresponding protected subprogram must include a
6765 (Build_Activation_Chain_Entity): Build the chain entity for extended
6767 (Type_Conformant_Parameters): Use common predicate Conforming_Types
6768 to determine whether operation overrides an inherited primitive.
6769 (Build_Wrapper_Spec): Add code to examine the parents while looking
6770 for a possible overriding candidate.
6771 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
6772 hold an actual parameter value since its initialization is separated
6773 from the the declaration. Prevents errors on null-excluding access
6776 2007-04-06 Thomas Quinot <quinot@adacore.com>
6778 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
6779 Do an Unchecked_Conversion to handle the passage from the Underlying
6780 Type to the Base Type when calling Build_To_Any_Call and
6781 Build_From_Any_Call.
6782 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
6783 E_Constant, depending upon Variable formal.
6784 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6785 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
6786 parameter that requires an extra constrained parameter, declare
6787 temporary for actual as a variable, not a constant.
6788 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
6789 the unit being compiled is the one that contains the stub type.
6790 Change primitive operation name for the RACW associated with a RAS
6791 from Call to _Call so it cannot clash with any legal identifier.
6792 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
6794 (Append_RACW_Bodies): New subprogram.
6795 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
6796 Add_Receiving_Stubs_To_Declarations functions.
6797 When expanding a package body, this list correspond to the
6798 statements in the HSS at the end of the pacakge.
6799 When expanding a package spec, this list correspond to the
6801 (Add_Receiving_Stubs_To_Declarations): Append the function
6802 registering the receiving stubs at the end of the 'Stmts' list.
6803 (RCI_Package_Locator): Pass the new Version generic formal when
6804 instantiating a RCI_Locator package.
6805 (Build_From_Any_Function): To compute the High bound for an
6806 unconstrained array actual, we add the Low bound with the length.
6807 Thus we must convert the low bound and the length to an appropriate
6808 type before doing the sum.
6809 (Build_Subprogram_Receiving_Stubs, PolyORB):
6810 * Retrieve the extra formals parameters at the
6811 end of the parameter stream.
6812 * Use Move_Any_Value to write back out parameters
6813 after executing the request as it is more efficient
6814 than Copy_Any_Value.
6815 * Build the any containing Extra Formals with the
6816 appropriate typecode.
6817 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
6818 empty Component_List.
6819 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
6820 the tree the declaration for an object that serves as actual parameter
6821 in server-side stubs.
6822 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6823 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
6824 Use Build_Actual_Object_Declaration to prepare the actuals.
6825 (Add_Parameter_To_NVList): Set the parameter mode to In for
6826 Extra Constrained Parameters.
6827 (Build_General_Calling_Stubs): Set the parameter type to boolean for
6828 Extra Constrained parameters.
6829 (Build_To_Any_Function, Build_From_Any_Function,
6830 Built_TypeCode_Function): When Typ is implicit, call the correct
6831 function with the first not implicit parent type.
6832 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
6833 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
6834 typecode from the Etype. Therefore we retrieve the correct typecode
6835 with a call to Get_Any_Type.
6836 (Copy_Specification): Do controlling formal type substitution based on
6837 Is_Controlling_Formal flag, instead of caller-provided object type.
6838 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
6839 a RACW primitive operation, we might get a subprogram declaration for an
6840 ancestor of the RACW designated type (not for the designated type
6841 itself), in the case where this operation is inherited. In this case we
6842 have no easy means of determining the original tagged type for which
6843 the primitive was declared, so instead we now rely on
6844 Copy_Specification to use the Is_Controlling_Formal flag to determine
6845 which formals require type substitution.
6847 2007-04-06 Robert Dewar <dewar@adacore.com>
6848 Ed Schonberg <schonberg@adacore.com>
6850 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
6851 GNAT.Current_Exception are not allowed if pragma Restrictions
6852 (No_Exception_Propagation) is set and in any case make the associated
6853 handler unsuitable as a target for a local raise statement.
6854 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
6855 run-time subprogram CW_Membership by call to Build_CW_Membership.
6856 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
6857 by a function call, a temporary must be created before expanding the
6858 Constructor_Call itself, to prevent out-of-order elaboration in the
6859 back-end when stack checking is enabled..
6861 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6863 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
6864 result are the bounds of the left operand, not the right.
6866 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6869 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
6870 discriminant defaults.
6871 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
6872 (Make_Component_List_Attributes): Ditto.
6874 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6875 Bob Duff <duff@adacore.com>
6877 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
6878 an association with a box as providing a value even though the
6879 initialization procedure for the type is not available.
6880 (Resolve_Record_Aggregate): Check that a choice of an association with a
6881 box corresponds to a component of the type.
6882 (Resolve_Record_Aggregate): Split Is_Abstract flag into
6883 Is_Abstract_Subprogram and Is_Abstract_Type.
6885 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
6888 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
6889 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
6890 called only when appropriate.
6892 2007-04-06 Olivier Hainque <hainque@adacore.com>
6894 * g-alleve.ads (Low Level Vector type definitions): Map each to the
6895 associated vector view instead of all to the unsigned char view.
6897 * g-altcon.adb (Generic_Conversions): New internal generic package,
6898 offering facilities for all the Vector/View conversion routines
6899 implemented by this unit.
6900 (To_View/To_Vector - all versions): Reimplemented in a systematic
6901 manner, using the internal Generic_Conversions facilities.
6903 2007-04-06 Pascal Obry <obry@adacore.com>
6905 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
6907 (Create): Free the source string before storing the new one.
6909 2007-04-06 Vincent Celier <celier@adacore.com>
6911 * g-debpoo.adb (Validity): New package with a complete new
6912 implementation of subprograms Is_Valid and Set_Valid.
6913 (Is_Valid): Move to local package Validity
6914 (Set_Valid): Move to local package Validity
6916 2007-04-06 Arnaud Charlet <charlet@adacore.com>
6918 * g-expect.adb (Get_Command_Output): When expanding the output buffer
6919 we must ensure that there is enough place for the new data we are going
6922 2007-04-06 Thomas Quinot <quinot@adacore.com>
6924 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
6927 2007-04-06 Jose Ruiz <ruiz@adacore.com>
6928 Vincent Celier <celier@adacore.com>
6930 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
6931 (Stack_String): Add this String that contains the name of the Stack
6932 package in the project file.
6933 (Packages_To_Check_By_Stack): Add this list that contains the packages
6934 to be checked by gnatstack, which are the naming and the stack packages.
6935 (Check_Files): If no .ci files were specified for gnatstack we add all
6936 the .ci files belonging to the projects, including binder generated
6938 (Non_VMS_Usage): Document that gnatstack accept project file switches.
6939 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
6940 Add gnatstack to the list of commands that use project file related
6941 switches, and get the single attribute Switches from the stack package
6942 in a project file when calling gnatstack. Parse the -U flag for
6943 processing files belonging to all projects in the project tree.
6944 Remove all processing for command Setup
6946 * prj-attr.adb: Add new package Stack with single attribute Switches
6948 * vms_conv.ads (Command_Type): Add command Stack.
6949 Move to body declarations that are only used in the body: types Item_Id,
6950 Translation_Type, Item_Ptr, Item and its subtypes.
6952 * vms_conv.adb: (Initialize): Add data for new command Stack.
6953 Add declarations moved from the spec: types Item_Id, Translation_Type,
6954 Item_Ptr, Item and its subtypes.
6955 (Cargs_Buffer): New table
6956 (Cargs): New Boolean global variable
6957 (Process_Buffer): New procedure to create arguments
6958 (Place): Put character in table Buffer or Cargs_Buffer depending on the
6960 (Process_Argument): Set Cargs when processing qualifiers for GNAT
6962 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
6963 empty, for table Cargs_Buffer.
6964 (Initialize): Remove component Setup in Command_List
6966 2007-04-06 Vincent Celier <celier@adacore.com>
6968 * gprep.adb (Process_Files.Process_One_File): Use full file name when
6969 issuing pragma Source_Reference.
6971 2007-04-06 Emmanuel Briot <briot@adacore.com>
6973 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
6974 [[:xdigit:]] character class.
6975 Also raise an exception when an invalid character class is used.
6977 2007-04-06 Pascal Obry <obry@adacore.com>
6979 * i-cstrea.ads: (fopen): Add encoding parameter.
6981 Change reference from a-sysdep.c to sysdep.c in comment.
6982 Update copyright notice.
6983 This set of patch add support for the encoding form parameter.
6985 * mingw32.h (S2WSU): New macro to convert from a string to a
6986 wide-string using the UTF-8 encoding. The S2WS macro supports now only
6987 standard 8bits encoding.
6988 (WS2SU): As above but converting from wide-sring to string.
6989 This is needed as it is necessary to have access to both versions in the
6990 runtime for the form parameter encoding support.
6991 This set of patch add support for the encoding form parameter.
6992 (S2WS): Improve implementation to handle cases where the filename is not
6993 UTF-8 encoded. In this case we default to using the current code page
6996 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
6997 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
6998 the constants defined in adaint.h.
6999 (fopen): Add encoding parameter.
7002 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
7003 encoding. This is needed for the Reset routine (freopen low level-call).
7005 * s-fileio.adb (Open): Decode encoding form parameter and set the
7006 corresponding encoding value into AFCB structure.
7007 (Reset): Pass the encoding value to freopen.
7008 (Close): Move the call to Lock_Task to the beginning of the procedure.
7010 2007-04-06 Geert Bosch <bosch@adacore.com>
7011 Robert Dewar <dewar@adacore.com>
7013 * i-fortra.ads: Add Double_Complex type.
7015 * impunit.adb: (Is_Known_Unit): New function
7016 Add Gnat.Byte_Swapping
7018 Add new Ada 2005 units
7019 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
7020 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
7021 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
7022 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
7024 * impunit.ads (Is_Known_Unit): New function
7026 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
7027 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
7028 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
7029 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
7030 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
7031 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
7034 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
7036 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
7038 2007-04-06 Eric Botcazou <botcazou@adacore.com>
7039 Arnaud Charlet <charlet@adacore.com>
7041 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
7042 __gnat_adjust_context_for_raise.
7043 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
7044 implementation of floating point operations as native x86 targets.
7045 So the FPU should be initialized in the same way using finit. Fix
7046 floating point operations accuracy issues.
7047 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
7048 member in struct sigaction, so as to avoid warning for incompatible
7051 2007-04-06 Serguei Rybin <rybin@adacore.com>
7053 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
7054 switches from previously loaded tree
7056 2007-04-06 Thomas Quinot <quinot@adacore.com>
7058 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
7059 cases where a given dependency has a body or not.
7060 (Write_With_File_Names): New subprogram, common code for the two cases
7063 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7064 Javier Miranda <miranda@adacore.com>
7066 * lib-xref.ads, lib-xref.adb:
7067 Modify the loop that collects type references, to include interface
7068 types that the type implements. List each of these interfaces when
7069 building the entry for the type.
7070 (Generate_Definition): Initialize component Def and Typ of new entry
7071 in table Xrefs, to avoid to have these components unitialized.
7072 (Output_References): Split Is_Abstract flag into
7073 Is_Abstract_Subprogram and Is_Abstract_Type.
7074 (Generate_Reference): Add barrier to do not generate the warning
7075 associated with Ada 2005 entities with entities generated by the
7078 2007-04-06 Robert Dewar <dewar@adacore.com>
7079 Arnaud Charlet <charlet@adacore.com>
7080 Vincent Celier <celier@adacore.com>
7082 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
7083 Update 'Exception Handling Control' chapter which was outdated.
7084 Minor fix to documentation of -gnatwq
7085 Remove section "Adapting the Run Time to a New C++ Compiler" because
7087 Add passage on need of -nostart-files in some non-ada-main cases.
7088 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
7089 Update documentation about Interfacing with C++
7090 Add documentation for new gnatmake switch -p
7091 Add missing protocol part in URLs.
7093 Document pragma Compile_Time_Error
7094 Add documentation for Object_Size indicating that stand alone
7095 objects can have a larger size in some cases.
7096 Add node for GNAT.Byte_Swapping, GNAT.SHA1
7097 Update reference to the Ravenscar profile.
7098 Document pragma Unreferenced_Objects
7100 * gnat-style.texi: Fix typo
7102 2007-04-06 Vincent Celier <celier@adacore.com>
7104 * mlib.adb (Building_Library): Only output "building a library..." in
7107 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
7108 files in verbose mode.
7110 * mlib-utl.adb (Ar): Only output the first object files when not in
7112 (Gcc): Do not display all the object files if not in verbose mode, only
7115 2007-04-06 Robert Dewar <dewar@adacore.com>
7117 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
7118 it no longer destroys the contents of Name_Buffer or Name_Len and
7119 non-standard and invalid names are handled better.
7120 (Get_Decoded_Name_String): Improve performance by using
7121 Name_Has_No_Encodings flag in the name table.
7122 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
7123 Used for debugging printouts.
7125 2007-04-06 Robert Dewar <dewar@adacore.com>
7126 Javier Miranda <miranda@adacore.com>
7127 Bob Duff <duff@adacore.com>
7129 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
7130 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
7131 there is no need to generate always a record_definition_node in case
7132 of synchronized interface types.
7133 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
7134 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
7135 illegal in Ada 95, in cases where it is legal. Change the warnings to
7136 errors in other cases. Don't give the error unless the "not null"
7137 parses properly. Correct the source position at which the error occurs.
7138 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
7139 P_Null_Exclusion, to suppress "not null" warnings.
7140 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
7141 associated goto statements.
7143 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
7146 * scans.ads (Type_Token_Location): New flag
7148 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
7149 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
7150 P_Null_Exclusion, to suppress "not null" warnings.
7152 2007-04-06 Robert Dewar <dewar@adacore.com>
7153 Javier Miranda <miranda@adacore.com>
7154 Bob Duff <duff@adacore.com>
7155 Vincent Celier <celier@adacore.com>
7157 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
7158 (Extensions_Allowed): No longer sets Ada_Version
7159 Entry for pragma Unreferenced_Objects
7161 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
7162 system.tasking if pragma priority used in a procedure
7163 (Analyze_Pragma, case Warning): Handle dot warning switches
7164 (Process_Compile_Time_Warning_Or_Error): New procedure
7165 (Analyze_Pragma): Add processing for Compile_Time_Error
7166 Add support for extra arguments External_Name and Link_Name.
7167 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
7168 (Process_Import_Or_Interface): Add support for the use of pragma Import
7170 (Extensions_Allowed): No longer affects Ada_Version
7171 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
7172 Is_Abstract_Type. Make sure these are called only when appropriate.
7173 Add processing for pragma Unreferenced_Objects
7175 * snames.h, snames.ads, snames.adb: Add entry for pragma
7177 Add new standard name Minimum_Binder_Options for new gprmake
7178 Add new standard names for gprmake: Archive_Suffix,
7179 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
7180 Library_Support, Library_Version_Options,
7181 Shared_Library_Minimum_Options,
7182 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
7183 Change Name_Call to Name_uCall so that it cannot clash with a legal
7185 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
7186 Append C_Plus_Plus to convention identifiers as synonym for CPP
7187 Add new standard names Stack and Builder_Switches
7188 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
7189 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
7190 Run_Path_Option, Toolchain_Version.
7191 Entry for pragma Unreferenced_Objects
7193 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
7194 switches, without repetition of "eD". Make sure that last character of
7195 -gnatep= switch is not taken as -gnat switch character.
7196 Complete rewrite of circuit for handling saving compilation options
7197 Occasioned by need to support dot switchs for -gnatw, but cleans up
7199 -gnatX does not affect Ada_Version
7200 Include -gnatyA in -gnatg style switches
7202 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
7203 warnings on return objects.
7204 (Warn_On_Useless_Assignment): Exclude warnings on return objects
7205 (Set_Dot_Warning_Switch): New procedure
7206 (Check_References): Add missing case of test for
7207 Has_Pragma_Unreferenced_Objects
7208 (Output_Unreferenced_Messages): Implement effect of new pragma
7209 Unreferenced_Objects, remove special casing of limited controlled
7212 2007-04-06 Vincent Celier <celier@adacore.com>
7214 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
7215 the default project path, initially done during elaboration of the
7217 If the prefix returned by Sdefault is null, get the prefix from a call
7218 to Executable_Prefix_Path.
7219 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
7222 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
7223 canonical directory name to open the directory from which files are
7225 (Record_Other_Sources): Idem.
7226 (Locate_Directory): Add the possibility to create automatically missing
7227 directories when Setup_Projects is True.
7228 Call Locate_Directory so that the directory will be created when
7229 Setup_Projects is True, for object dir, library dir, library ALI dir,
7230 library source copy dir and exec dir.
7232 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
7235 2007-04-06 Robert Dewar <dewar@adacore.com>
7237 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
7238 Use First/Next_Component_Or_Discriminant
7239 (Analyze_Record_Representation_Clause):
7240 Use First/Next_Component_Or_Discriminant
7241 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
7242 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
7243 definition if type is unconstrained.
7244 (Adjust_Record_For_Reverse_Bit_Order): New procedure
7245 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
7246 Is_Abstract_Subprogram and Is_Abstract_Type.
7247 (Adjust_Record_For_Reverse_Bit_Order): New procedure
7249 * repinfo.adb (List_Record_Info): Use First/
7250 Next_Component_Or_Discriminant.
7252 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
7255 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
7256 Include -gnatyA in default switches
7258 * opt.ads: (Warn_On_Non_Local_Exception): New flag
7259 (Warn_On_Reverse_Bit_Order): New flag
7260 (Extensions_Allowed): Update the documentation.
7261 (Warn_On_Questionable_Missing_Parens): Now on by default
7263 * usage.adb: Add documentation of -gnatw.x/X switches
7264 Document new -gnatyA style switch
7265 -gnatq warnings are on by default
7267 2007-04-06 Ed Falis <falis@adacore.com>
7269 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
7270 full word is no longer compared twice.
7272 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7274 * sem_ch10.adb (Install_Limited_Context_Clauses.
7275 Expand_Limited_With_Clause): Use a new copy of selector name in the
7276 call to Make_With_Clause. This fixes the tree structure for ASIS
7277 purposes. Nothing is changed in the compiler behaviour.
7278 (Process_Body_Clauses): Handle properly use clauses whose prefix is
7280 (Install_Limited_With_Clauses): Do not install non-limited view when it
7281 is still incomplete.
7283 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7284 Gary Dismukes <dismukes@adacore.com>
7286 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
7287 when capturing size information, instead of base type, which for a
7288 formal array type will be the unconstrained type.
7289 (Analyze_Formal_Object_Declaration): Add check for illegal default
7290 expressions for a formal in object of a limited type.
7291 (Instantiate_Object): Ditto.
7292 (Check_Formal_Package_Instance): Skip entities that are formal objects,
7293 because they were defaulted in the formal package and no check applies
7295 (Check_Formal_Package_Instance): Extend conformance check to other
7296 discrete types beyond Integer.
7297 (Process_Default): Copy directly the unmatched formal. A generic copy
7298 has already been performed in Analyze_Formal_Package.
7299 (Analyze_Associations): If a formal subprogram has no match, check for
7300 partial parametrization before looking for a default, to prevent
7302 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
7303 not set the instantiation environment before analyzing the actuals.
7304 Fixes regression on 8515-003 with implementation of AI-133.
7305 Set_Instance_Env checks whether the generic unit is a predefined
7306 unit, in which case the instance must be analyzed with the latest Ada
7307 mode. This setting must take place after analysis of the actuals,
7308 because the actuals must be analyzed and frozen in the Ada mode extant
7309 outside of the current instantiation.
7310 (Save_Env, Restore_Env): Preserve and restore the configuration
7311 parameters so that predefined units can be compiled in the proper Ada
7313 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
7314 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
7315 and Is_Abstract_Type.
7316 (Analyze_Formal_Package): For better error recovery, Add exception
7317 handler to catch Instantion_Error, which can be raised in
7318 Analyze_Associations
7320 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7321 Bob Duff <duff@adacore.com>
7322 Gary Dismukes <dismukes@adacore.com>
7324 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
7325 prefix type is a discriminated subtype of the type of the formal.
7326 (Analyze_Allocator): Collect all coextensions regardless of the context.
7327 Whether they can be allocated statically is determined in exp_ch4.
7328 (Analyze_Selected_Component): If the prefix is a limited view and the
7329 non-limited view is available, use the non-limited one.
7330 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
7331 therefore illegal), suggest a qualified expression rather than a type
7332 conversion, because a type conversion would be illegal in this context.
7333 (Anayze_Allocator): Trace recursively all nested allocators so that all
7334 coextensions are on the corresponding list for the root. Do no mark
7335 coextensions if the root allocator is within a declaration for a stack-
7336 allocated object, because the access discriminants will be allocated on
7338 (Analyze_Call): Remove restriction on calls to limited functions for the
7339 cases of generic actuals for formal objects, defaults for formal objects
7340 and defaults for record components.
7341 (Analyze_Allocator): Before analysis, chain coextensions on the proper
7342 element list. Their expansion is delayed until the enclosing allocator
7343 is processed and its finalization list constructed.
7344 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
7345 for an operation with the given name among the primitive operations of
7346 the corresponding record type.
7347 (Analyze_Selected_Component): If the prefix is a task type that
7348 implements an interface, and there is no entry with the given name,
7349 check whether there is another primitive operation (e.g. a function)
7351 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
7352 properly the indexing of a function call written in prefix form, where
7353 the function returns an array type, and all parameters of the function
7354 except the first have defaults.
7355 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
7356 the original operands, rather than relocating them, for efficiency and
7357 to work properly when an operand is overloaded.
7358 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
7359 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
7360 (Analyze_Selected_Component): If the prefix is a private extension, only
7361 scan the visible components, not those of the full view.
7362 (Try_Primitive_Operation): If the operation is a procedure, collect all
7363 possible interpretations, as for a function, because in the presence of
7364 classwide parameters several primitive operations of the type can match
7365 the given arguments.
7367 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7368 Robert Dewar <dewar@adacore.com>
7370 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
7371 tag-indeterminate call to an abstract function, when the left-hand side
7373 (Analyze_Loop_Statement): Improve detection of infinite loops
7375 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7376 Thomas Quinot <quinot@adacore.com>
7378 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
7379 out of Analyze_Package_Declaration, because processing must be applied
7380 to package bodies as well, for deferred constants completed by pragmas.
7381 (Analyze_Package_Declaration): When the package declaration being
7382 analyzed does not require an explicit body, call Check_Completion.
7383 (May_Need_Implicit_Body): An implicit body is required when a package
7384 spec contains the declaration of a remote access-to-classwide type.
7385 (Analyze_Package_Body): If the package contains RACWs, append the
7386 pending subprogram bodies generated by exp_dist at the end of the body.
7387 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
7388 Is_Abstract_Subprogram and Is_Abstract_Type.
7389 (Preserve_Full_Attributes): The full entity list is not an attribute
7390 that must be preserved from full to partial view.
7392 * sem_dist.adb (Add_RAS_Dereference_TSS):
7393 Change primitive name to _Call so it cannot clash with any legal
7394 identifier, and be special-cased in Check_Completion.
7395 Mark the full view of the designated type for the RACW associated with
7396 a RAS as Comes_From_Source to get proper view switching when installing
7397 private declarations.
7398 Provite a placeholder nested package body along with the nested spec
7399 to have a place for Append_RACW_Bodies to generate the calling stubs
7400 and stream attributes.
7402 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7403 Robert Dewar <dewar@adacore.com>
7405 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
7406 that is a limited view, check the non-limited view if available.
7407 (Undefined): Refine error message for missing with of Text_IO
7408 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
7409 to distinguish real missing with cases.
7410 Fix format of all missing with messages
7411 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
7412 renaming as body when renamed entity is abstract.
7414 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7415 Javier Miranda <miranda@adacore.com>
7417 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
7418 predicate recursive, to handle complex expressions on literals whose
7419 spurious ambiguity comes from the abstract interpretation of some
7421 (Interface_Present_In_Ancestor): Add support to concurrent record
7423 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
7424 Is_Abstract_Subprogram and Is_Abstract_Type.
7426 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7427 Javier Miranda <miranda@adacore.com>
7429 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
7430 dereference of a local object R created as a reference to another
7431 object O, use the access level of O.
7432 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
7433 rather than local Same_Formal_Type, to check whether protected operation
7434 overrides an inherited one.
7435 (Same_Formal_Type): New predicate, used when matching signatures of
7436 overriding synchronized operations, to handle the case when a formal
7437 has a type that is a generic actual.
7438 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
7439 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
7440 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
7441 syntactic ambiguities involving indexing of function calls that return
7443 (Abstract_Interface_List): New subprogram that returns the list of
7444 abstract interfaces associated with a concurrent type or a
7445 concurrent record type.
7446 (Interface_Present_In_Parent): New subprogram used to check if a
7447 given type or some of its parents implement a given interface.
7448 (Collect_Abstract_Interfaces): Add support for concurrent types
7449 with interface types.
7450 (Has_Abstract_Interfaces): Add support for concurrent types with
7452 (Is_Parent): New subprogram that determines whether E1 is a parent
7453 of E2. For a concurrent type its parent is the first element of its
7454 list of interface types; for other types this function provides the
7455 same result than Is_Ancestor.
7456 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
7457 (Collect_Synchronized_Interfaces): Removed because the subprogram
7458 Collect_Abstract_Interfaces provides this functionality.
7459 (Collect_Abstract_Interfaces): Minor update to give support to
7460 concurrent types and thus avoid undesired code duplication.
7461 (Get_Subprogram_Entity): Handle entry calls.
7462 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
7464 (Enter_Name): Do not give -gnatwh hiding warning for record component
7465 entities, they never result in hiding.
7467 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7468 Robert Dewar <dewar@adacore.com>
7470 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
7471 to chain nested components that are allocators for access discriminants
7472 of the enclosing object.
7473 Add N_Push and N_Pop nodes
7474 New field Exception_Label added
7475 (Local_Raise_Statements): New field in N_Exception_Handler_Node
7476 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
7477 (Is_Coextension): New flag for allocators, to mark allocators that
7478 correspond to access discriminants of dynamically allocated objects.
7479 (N_Block_Statement): Document the fact that the corresponding entity
7480 can be an E_Return_Statement.
7481 (Is_Coextension): New flag for allocators.
7482 Remove all code for DSP option
7484 * sprint.ads, sprint.adb: Display basic information for class_wide
7485 subtypes. Add handling of N_Push and N_Pop nodes
7487 2007-04-06 Arnaud Charlet <charlet@adacore.com>
7489 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
7490 before propagating exception.
7492 2007-04-06 Olivier Hainque <hainque@adacore.com>
7494 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
7495 an address always within the call instruction from a return address.
7497 2007-04-06 Olivier Hainque <hainque@adacore.com>
7498 Eric Botcazou <botcazou@adacore.com>
7500 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
7501 expression with a COMPOUND_EXPR including the call instead of emitting
7502 the call directly here.
7503 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
7504 high bound is constant and the slice is empty. Tidy.
7505 (tree_transform, case N_Op_Not): Handle properly the case where the
7506 operation applies to a private type whose full view is a modular type.
7507 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
7508 Address_Clause, use the associated Expression as the GNAT tree
7509 representing the choice value to ensure the corresponding GCC tree is
7511 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
7512 instead of just the operands, as the base GCC stabilize_reference does.
7513 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
7514 requested; otherwise fail.
7515 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
7517 2007-04-06 Thomas Quinot <quinot@adacore.com>
7519 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
7520 implementation of UI_Div.
7521 (UI_Div): Reimplement as a call to UI_Div_Rem.
7522 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
7523 remainder, avoiding the cost of a multiplication and a subtraction.
7524 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
7525 provides both quotient and remainder in a single computation.
7526 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
7528 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
7529 is undefined if the given n is not inversible.
7531 2007-04-06 Olivier Hainque <hainque@adacore.com>
7533 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
7534 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
7537 2007-04-06 Eric Botcazou <botcazou@adacore.com>
7538 Olivier Hainque <hainque@adacore.com>
7540 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
7541 when updating the contents of the old pointer to an unconstrained array.
7542 (end_subprog_body): Set error_gnat_node to Empty.
7543 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
7544 (unchecked_convert): For subtype to base type conversions, require that
7545 the source be a subtype if it is an integer type.
7546 (builtin_decls): New global, vector of available builtin functions.
7547 (gnat_pushdecl): Add global builtin function declaration nodes to the
7549 (gnat_install_builtins): Adjust comments.
7550 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
7551 calling gnat_pushdecl, so that it knows when it handed a builtin
7552 function declaration node.
7553 (builtin_decl_for): Search the builtin_decls list.
7555 2007-04-06 Eric Botcazou <botcazou@adacore.com>
7557 * s-stchop-vxworks.adb:
7558 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
7560 2007-04-06 Robert Dewar <dewar@adacore.com>
7561 Arnaud Charlet <charlet@adacore.com>
7563 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
7565 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
7567 Add mention of -Sev (set initialize_scalars option from environment
7568 variable at run time) in gnatbind usage message.
7570 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
7572 * fname-uf.ads: Minor comment fix
7574 * osint.ads: Change pragma Elaborate to Elaborate_All
7576 * par-load.adb: Add documentation.
7578 * sem_cat.ads, sem_cat.adb: Minor code reorganization
7580 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
7582 * s-secsta.ads: Extra comments
7584 * s-soflin.ads: Minor comment fixes
7586 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
7588 * s-wchcon.ads: Minor comment addition
7590 * treepr.adb: Minor change in message
7591 (Print_Name,Print_Node): Make these debug printouts more robust: print
7592 "no such..." instead of crashing on bad input.
7594 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
7596 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
7597 instead of gnat_signed_or_unsigned_type.
7598 * utils.c (gnat_signed_or_unsigned_type): Remove.
7599 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
7600 * gigi.h (gnat_signed_or_unsigned_type): Remove
7602 2007-03-09 Roger Sayle <roger@eyesopen.com>
7604 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
7605 fold with the result of buildN.
7606 * decl.c (gnat_to_gnu_entity): Likewise.
7607 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
7608 * utils.c (finish_record_type, merge_sizes, max_size, convert):
7610 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
7611 nonbinary_modular_operation, build_binary_op, build_unary_op,
7612 build_cond_expr): Likewise.
7614 * utils.c (convert): Use fold_build1 when casting values to void.
7615 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
7616 fold_convert instead of convert when appropriate.
7618 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
7620 * Make-lang.in: Add install-pdf target as copied from
7621 automake v1.10 rules.
7623 2007-02-28 Andreas Schwab <schwab@suse.de>
7625 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
7626 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
7627 (doc/gnat-style.info): Likewise.
7629 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
7631 * gnat-style.texi: Standardize title page.
7632 * gnat_rm.texi: Likewise.
7633 * gnat_ugn.texi: Likewise.
7635 2007-02-25 Mark Mitchell <mark@codesourcery.com>
7637 * decl.c (annotate_value): Adjust for refactoring of tree_map
7640 2007-02-24 Mark Mitchell <mark@codesourcery.com>
7642 * decl.c (annotate_value): Adjust for refactoring of tree_map
7645 2007-02-21 Ed Schonberg <schonberg@adacore.com>
7648 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
7649 untagged derived type, add hidden components to keep discriminant
7650 layout consistent, when a given discriminant of the derived type
7651 constraints several discriminants of the parent type.
7653 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
7654 Sandra Loosemore <sandra@codesourcery.com>
7656 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
7657 build the call expression.
7658 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
7659 * utils.c (max_size) <tcc_exceptional>: Delete.
7660 <tcc_vl_exp>: New case.
7661 <tcc_expression>: Delete CALL_EXPR subcase.
7662 (build_global_cdtor): Use build_call_nary instead of build3.
7663 * utils2.c (build_call_1_expr): Likewise.
7664 (build_call_2_expr): Likewise.
7665 (build_call_0_expr): Likewise.
7666 (build_call_alloc_dealloc): Likewise.
7668 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
7670 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
7671 get_action_description_for): Replace _Unwind_Word with _uleb128_t
7672 and _Unwind_SWord with _sleb128_t.
7674 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
7676 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
7677 * decl.c: Include gt-ada-decl.h.
7678 (annotate_value_cache): New.
7679 (annotate_value): Use it instead of TREE_COMPLEXITY.
7681 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
7683 * misc.c, utils2.c: Fix comment typos.
7685 2007-01-24 Roger Sayle <roger@eyesopen.com>
7687 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
7688 TREE_CONSTANT_OVERFLOW.
7689 (allocatable_size_p, annotate_value): Likewise.
7690 * trans.c (gnat_to_gnu): Likewise.
7691 * utils.c (unchecked_convert): Likewise.
7692 * utils2.c (build_simple_component_ref): Likewise.
7694 2007-01-23 Richard Guenther <rguenther@suse.de>
7697 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
7698 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
7699 (gnatboot3): Likewise.
7700 (GNATBIND): Do not define.
7701 * Makefile.in (GNATBIND): Do not define.
7703 2007-01-08 Richard Guenther <rguenther@suse.de>
7705 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
7706 * trans.c (gnat_to_gnu): Likewise.
7708 2006-12-07 Geoffrey Keating <geoffk@apple.com>
7710 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
7711 * adaint.c: Likewise.
7713 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
7715 Merge from gimple-tuples-branch:
7716 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
7718 * ada-tree.h (lang_tree_node): Handle gimple tuples.
7719 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
7722 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
7724 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
7725 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
7728 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
7731 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
7732 if the initializer takes into account the padding.
7734 2006-11-11 Richard Guenther <rguenther@suse.de>
7736 * trans.c (maybe_stabilize_reference): Remove handling of
7737 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
7739 2006-11-05 Arnaud Charlet <charlet@adacore.com>
7742 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
7743 (To_Target_Priority): New function.
7745 2006-10-31 Robert Dewar <dewar@adacore.com>
7747 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
7748 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
7749 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
7750 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
7751 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
7752 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
7753 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
7754 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
7755 a-szbzha.adb: Minor reformatting. Fix header.
7757 * a-numaux-x86.adb: Add parentheses for use of unary minus
7758 * a-ngcefu.adb: Supply missing parentheses for unary minus
7759 * a-ngcoty.adb: Add parens for use of unary minus
7760 * a-ngelfu.adb: Add missing parens for unary minus
7761 * a-tifiio.adb: Add parentheses for uses of unary minus
7763 2006-10-31 Robert Dewar <dewar@adacore.com>
7764 Bob Duff <duff@adacore.com>
7765 Ed Schonberg <schonberg@adacore.com>
7767 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
7768 with multiplying operator.
7769 (Expected_Type_Is_Any_Real): New function to determine from the Parent
7770 pointer whether the context expects "any real type".
7771 (Resolve_Arithmetic_Op): Do not give an error on calls to the
7772 universal_fixed "*" and "/" operators when they are used in a context
7773 that expects any real type. Also set the type of the node to
7774 Universal_Real in this case, because downstream processing requires it
7775 (mainly static expression evaluation).
7776 Reword some continuation messages
7777 Add some \\ sequences to continuation messages
7778 (Resolve_Call): Refine infinite recursion case. The test has been
7779 sharpened to eliminate some false positives.
7780 Check for Current_Task usage now includes entry barrier, and is now a
7781 warning, not an error.
7782 (Resolve): If the call is ambiguous, indicate whether an interpretation
7783 is an inherited operation.
7784 (Check_Aggr): When resolving aggregates, skip associations with a box,
7785 which are priori correct, and will be replaced by an actual default
7786 expression in the course of expansion.
7787 (Resolve_Type_Conversion): Add missing support for conversion from
7788 a class-wide interface to a tagged type. Minor code cleanup.
7789 (Valid_Tagged_Converion): Add support for abstact interface type
7791 (Resolve_Selected_Component): Call Generate_Reference here rather than
7792 during analysis, and use May_Be_Lvalue to distinguish read/write.
7793 (Valid_Array_Conversion): New procedure, abstracted from
7794 Valid_Conversion, to incorporate accessibility checks for arrays of
7795 anonymous access types.
7796 (Valid_Conversion): For a conversion to a numeric type occurring in an
7797 instance or inlined body, no need to check that the operand type is
7798 numeric, since this has been checked during analysis of the template.
7799 Remove legacy test for scope name Unchecked_Conversion.
7801 * sem_res.ads: Minor reformatting
7803 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
7804 (PE_Current_Task_In_Entry_Body): New exception code
7805 (SE_Restriction_Violation): Removed, not used
7807 * a-except.ads: Update comments.
7809 * types.h, types.ads: Add definition for Validity_Check
7810 (PE_Current_Task_In_Entry_Body): New exception code
7811 (SE_Restriction_Violation): Removed, not used
7813 2006-10-31 Thomas Quinot <quinot@adacore.com>
7815 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
7818 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
7819 Jose Ruiz <ruiz@adacore.com>
7821 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
7822 part of Ada.Calendar: all subprogram raise Unimplemented.
7823 (Split_W_Offset): Temp function body, raising Unimplemented
7825 * a-calend.ads, a-calend-vms.ads:
7826 Add imported variable Invalid_TZ_Offset used to designate targets unable
7827 to support time zones.
7828 (Unimplemented): Temporary function raised by the body of new
7830 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
7831 unit provides handling of leap seconds and is used by the new Ada 2005
7832 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
7833 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
7834 version returns an extra value which is the offset to UTC.
7836 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
7837 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
7838 (Split_W_Offset): New function body.
7839 (Time_Of): When a date is close to UNIX epoch, compute the time for
7840 that date plus one day (that amount is later substracted after
7841 executing mktime) so there are no problems with time zone adjustments.
7843 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
7845 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
7846 a-catizo.ads, a-catizo.adb: New files.
7848 * impunit.adb: Add new Ada 2005 entries
7850 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
7851 Rename all occurences of "__gnat_localtime_r" to
7852 "__gnat_localtime_tzoff".
7853 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
7854 zone data and calculate the GMT offset.
7855 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
7856 Use the field "tm_gmtoff" to extract the GMT offset.
7857 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
7858 the external variable "timezone" to calculate the GMT offset.
7860 2006-10-31 Arnaud Charlet <charlet@adacore.com>
7861 Jose Ruiz <ruiz@adacore.com>
7863 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
7864 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
7865 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
7866 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
7867 System.Any_Priority to a POSIX priority on the target.
7869 * system-linux-ia64.ads:
7870 Extend range of Priority types on Linux to use the whole range made
7871 available by the system.
7873 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
7874 function maps from System.Any_Priority to a POSIX priority on the
7876 (PTHREAD_PRIO_PROTECT): Set real value.
7877 (PTHREAD_PRIO_INHERIT): Now a function.
7878 (SIGCPUFAIL): New signal.
7879 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
7880 are documented as reserved by the OS.
7882 * system-aix.ads: Use the full range of priorities provided by the
7885 * s-taprop-posix.adb: Call new function To_Target_Priority.
7886 (Set_Priority): Take into account Task_Dispatching_Policy and
7887 Priority_Specific_Dispatching pragmas when determining if Round Robin
7888 must be used for scheduling the task.
7890 * system-linux-x86_64.ads, system-linux-x86.ads,
7891 system-linux-ppc.ads: Extend range of Priority types on Linux to use
7892 the whole range made available by the system.
7894 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
7895 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
7896 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
7897 when deallocating the TCB in order to avoid potential references to
7899 (Set_Priority): Take into account Task_Dispatching_Policy and
7900 Priority_Specific_Dispatching pragmas when determining if Round Robin
7901 or FIFO within priorities must be used for scheduling the task.
7903 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
7904 the Thread field (to be used internally by the run-time system) and the
7905 kernel-level task id in the LWP field (to be used by the debugger).
7906 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
7907 instance, and propagate the current task options to the spawned task.
7908 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
7909 (Initialize): Set Round Robin dispatching when the corresponding pragma
7912 2006-10-31 Robert Dewar <dewar@adacore.com>
7914 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7915 system-linux-hppa.ads, system-hpux-ia64.ads,
7916 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
7917 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7918 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7919 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
7920 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7921 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7922 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
7923 Default_Bit_Order) to kill constant condition warnings for references
7926 2006-10-31 Vincent Celier <celier@adacore.com>
7927 Eric Botcazou <ebotcazou@adacore.com>
7929 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
7930 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
7931 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
7932 Ext_To, when building the library file name
7934 * mlib-tgt-vxworks.adb: ditto.
7935 (Get_Target_Suffix): Add support for x86 targets.
7937 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
7939 * mlib-tgt-darwin.adb:
7940 Use Append_To, instead of Ext_To, when building the library file name
7941 (Flat_Namespace): New global variable.
7942 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
7943 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
7944 (Link_Shared_Libgcc): Delete.
7945 (Build_Dynamic_Library): Adjust for above changes.
7947 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
7949 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
7951 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
7952 (Initialize): Add type conversions required by above change.
7954 2006-10-31 Jose Ruiz <ruiz@adacore.com>
7956 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
7957 (getpid): New body for this function that uses the underlying taskIdSelf
7958 function for VxWorks 5 and VxWorks 6 in kernel mode.
7959 (unsigned_int): New type, modular to allow logical bit operations.
7960 (taskOptionsGet): New imported function.
7962 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
7963 field to be compliant with the type used by the corresponding operating
7966 2006-10-31 Pascal Obry <obry@adacore.com>
7967 Eric Botcazou <ebotcazou@adacore.com>
7968 Vincent Celier <celier@adacore.com>
7970 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
7971 ASCII version of the registry API. This is needed as the GNAT runtime
7972 is now UNICODE by default.
7974 (get_gcc_version): Do not hardcode the return value.
7975 (__gnat_file_time_name): On Windows properly set the default returned
7976 value to -1 which corresponds to Invalid_Time.
7977 (__gnat_fopen): New routine. A simple wrapper on all plateforms
7978 except on Windows where it does conversion for unicode support.
7979 (__gnat_freopen): Idem.
7980 (__gnat_locate_exec_on_path): If environment variable PATH does not
7981 exist, return a NULL pointer
7983 * adaint.h: (__gnat_fopen): Declare.
7984 (__gnat_freopen): Likewise.
7986 * mingw32.h (_tfreopen): Define this macro here for older MingW
7988 Activate the unicode support on platforms using a MingW runtime
7989 version 3.9 or newer.
7991 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
7992 This is needed for proper unicode support on Windows.
7995 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
7996 Nicolas Setton <setton@adacore.com>
7997 Olivier Hainque <hainque@adacore.com>
7998 Gary Dismukes <dismukes@adacore.com>
8000 * gigi.h: (tree_code_for_record_type): Declare.
8001 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
8002 (get_global_renaming_pointers): Rename to
8003 invalidate_global_renaming_pointers.
8004 (static_ctors): Delete.
8005 (static_dtors): Likewise.
8006 (gnat_write_global_declarations): Declare.
8007 (create_var_decl): Adjust descriptive comment to indicate that the
8008 subprogram may return a CONST_DECL node.
8009 (create_true_var_decl): Declare new function, similar to
8010 create_var_decl but forcing the creation of a VAR_DECL node.
8011 (get_global_renaming_pointers): Declare.
8012 (add_global_renaming_pointer): Likewise.
8014 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
8016 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
8017 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
8019 (gnat_to_gnu_entity): Remove From_With_Type from computation for
8021 <E_Access_Type>: Use the Non_Limited_View as the full view of the
8022 designated type if the pointer comes from a limited_with clause. Make
8023 incomplete designated type if it is in the main unit and has a freeze
8025 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
8026 Underlying_Full_View similarly. Return earlier if the full view already
8027 has an associated tree.
8028 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
8029 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
8030 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
8031 reference type built for objects with an address clause.
8032 Use create_true_var_decl with const_flag set for
8033 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
8035 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
8036 for Character and Wide_Character types. This info is read by the
8037 dwarf-2 writer, and is needed to be able to use the command "ptype
8038 character" in the debugger.
8039 (gnat_to_gnu_entity): When generating a type representing
8040 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
8041 so that debug writers can distinguish it from ordinary integers.
8042 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
8043 addition to TREE_READONLY to assert the constantness of variables for
8044 elaboration purposes.
8045 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
8046 parameters to call new Einfo function First_Formal_With_Extras.
8047 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
8048 protected type with its corresponding discriminant, to obtain a usable
8050 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
8051 for a multiple elaboration of the "equivalent" type.
8052 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
8053 into record_global_renaming_pointer.
8054 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
8055 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
8056 <E_Array_Subtype>: Likewise.
8057 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
8058 incomplete subtypes and incomplete subtypes of incomplete types visible
8059 through a limited with clause.
8060 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
8061 the base index type for the maximum size of the array only if they are
8063 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
8064 expression into a SAVE_EXPR if stabilization failed.
8066 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
8067 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
8068 by lower level compilation passes.
8069 (gnat_genericize): New function, lowering a function body to GENERIC.
8070 Turn the type of RESULT_DECL into a real reference type if the decl
8071 has been marked DECL_BY_REFERENCE, and adjust references to the latter
8073 (gnat_genericize_r): New function. Tree walking callback for
8075 (convert_from_reference, is_byref_result): New functions. Helpers for
8077 (create_type_decl): Call gnat_pushdecl before calling
8078 rest_of_decl_compilation, to make sure that field TYPE_NAME of
8079 type_decl is properly set before calling the debug information writers.
8080 (write_record_type_debug_info): The heuristics which compute the
8081 alignment of a field in a variant record might not be accurate. Add a
8082 safety test to make sure no alignment is set to a smaller value than
8083 the alignment of the field type.
8084 (make_dummy_type): Use the Non_Limited_View as the underlying type if
8085 the type comes from a limited_with clause. Do not loop on the full view.
8086 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
8087 (dummy_node_table): New global variable, moved from decl.c.
8088 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
8089 (save_gnu_tree): Use above macros.
8090 (get_gnu_tree): Likewise.
8091 (present_gnu_tree): Likewise.
8092 (init_dummy_type): New function, moved from decl.c. Use above macros.
8093 (make_dummy_type): Likewise.
8094 (tree_code_for_record_type): New function extracted from make_dummy_type
8095 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
8096 (static_ctors): Change it to a vector, make static.
8097 (static_dtors): Likewise.
8098 (end_subprog_body): Adjust for above change.
8099 (build_global_cdtor): Moved from trans.c.
8100 (gnat_write_global_declarations): Emit global constructor and
8101 destructor, and call cgraph_optimize before emitting debug info for
8102 global declarations.
8103 (global_decls): New global variable.
8104 (gnat_pushdecl): Store the global declarations in global_decls, for
8106 (gnat_write_global_declarations): Emit debug information for global
8108 (create_var_decl_1): Former create_var_decl, with an extra argument to
8109 state whether the creation of a CONST_DECL is allowed.
8110 (create_var_decl): Behavior unchanged. Now a wrapper around
8111 create_var_decl_1 allowing CONST_DECL creation.
8112 (create_true_var_decl): New function, similar to create_var_decl but
8113 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
8114 (create_field_decl): Do not always mark the field as addressable
8115 if its type is an aggregate.
8116 (global_renaming_pointers): New static variable.
8117 (add_global_renaming_pointer): New function.
8118 (get_global_renaming_pointers): Likewise.
8120 * misc.c (gnat_dwarf_name): New function.
8121 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
8122 (gnat_post_options): Add comment about structural alias analysis.
8123 (gnat_parse_file): Do not call cgraph_optimize here.
8124 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
8126 * trans.c (process_freeze_entity): Don't abort if we already have a
8127 non dummy GCC tree for a Concurrent_Record_Type, as it might
8128 legitimately have been elaborated while processing the associated
8129 Concurrent_Type prior to this explicit freeze node.
8130 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
8131 exception handler volatile if it is of variable size.
8132 (process_type): Remove bypass for types coming from a limited_with
8134 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
8135 actual, convert the corresponding gnu_actual to the real destination
8136 type when necessary.
8137 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
8138 originally TREE_READONLY but whose elaboration cannot be performed
8140 Part of fix for F504-021.
8141 (tree_transform, subprogram cases): Change loops on formal parameters to
8142 call new Einfo function First_Formal_With_Extras.
8143 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
8144 stemming from type conversion for the lhs.
8145 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
8146 number of bits per unit for components of records.
8147 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
8148 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
8149 with At_End_Proc after the SJLJ EH cleanup.
8150 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
8152 (elaborate_all_entities): Do not retest type_annotate_only.
8153 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
8154 result type of an abstract subprogram, which may be an itype associated
8155 with an anonymous access result (related to AI-318-02).
8156 (build_global_cdtor): Move to utils.c.
8157 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
8158 this choice is not a null tree nor an integer constant.
8159 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
8160 on the body of elaboration routines instead of mark_unvisited.
8161 (add_stmt): Do not mark the tree.
8162 (add_decl_expr): Tweak comment.
8163 (mark_unvisited): Delete.
8164 (unshare_save_expr): New static function.
8165 (call_to_gnu): Issue an error when making a temporary around a
8166 procedure call because of non-addressable actual parameter if the
8167 type of the formal is by_reference.
8168 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
8169 after building the elaboration routine.
8171 2006-10-31 Bob Duff <duff@adacore.com>
8173 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
8174 as finalization-started, so we can raise Program_Error on 'new'.
8176 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
8177 collection has already started.
8179 * s-finimp.ads (Collection_Finalization_Started): Added new special
8180 flag value for indicating that a collection's finalization has started.
8182 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
8183 create a task whose master has already waited for dependent tasks.
8185 2006-10-31 Robert Dewar <dewar@adacore.com>
8187 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
8189 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
8190 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
8191 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
8192 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
8193 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
8194 a-except-2005.ads: Add pragma Preelaborable_Warning
8196 2006-10-31 Robert Dewar <dewar@adacore.com>
8197 Jose Ruiz <ruiz@adacore.com>
8199 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
8201 * ali.adb (Get_Name): Properly handle scanning of wide character names
8202 encoded with brackets notation.
8203 (Known_ALI_Lines): Add S lines to this list.
8204 (Scan_ALI): Acquire S (priority specific dispatching) lines.
8205 New flag Elaborate_All_Desirable in unit table
8207 * ali.ads (Priority_Specific_Dispatching): Add this range of
8208 identifiers to be used for Priority_Specific_Dispatching table entries.
8209 (ALIs_Record): Add First_Specific_Dispatching and
8210 Last_Specific_Dispatching that point to the first and last entries
8211 respectively in the priority specific dispatching table for this unit.
8212 (Specific_Dispatching): Add this table for storing each S (priority
8213 specific dispatching) line encountered in the input ALI file.
8214 New flag Elaborate_All_Desirable in unit table
8216 * bcheck.adb: (Check_Configuration_Consistency): Add call to
8217 Check_Consistent_Dispatching_Policy.
8218 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
8219 verifying that the use of Priority_Specific_Dispatching,
8220 Task_Dispatching_Policy, and Locking_Policy is consistent across the
8223 * bindgen.adb: (Public_Version_Warning): function removed.
8224 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
8225 required information from ALI files in order to initialize the table
8226 containing the specific dispatching policy.
8227 (Gen_Adainit_Ada): Generate the variables required for priority specific
8228 dispatching entries (__gl_priority_specific_dispatching and
8229 __gl_num_specific_dispatching).
8230 (Gen_Adainit_C): Generate the variables required for priority specific
8231 dispatching entries (__gl_priority_specific_dispatching and
8232 __gl_num_specific_dispatching).
8233 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
8235 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
8236 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
8238 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
8239 a call to gnat_set_globals.
8240 Generate a string containing settings from
8241 Priority_Specific_Dispatching pragma entries.
8242 (Gen_Object_Files_Options): Do not include the runtime libraries when
8243 pragma No_Run_Time is specified.
8245 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
8246 consistency with s-intman-posix.adb.
8247 (__gnat_error_handler, case FreeBSD): Account for the fact that the
8248 handler is installed with SA_SIGINFO.
8249 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
8250 FreeBSD ZCX support, copied from Linux version.
8251 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
8252 sigfillset, and sigemptyset so the routines defined by MaRTE.
8253 (__gl_priority_specific_dispatching): Add this variable that stores the
8254 string containing priority specific dispatching policies in the
8256 (__gl_num_specific_dispatching): Add this variable that indicates the
8257 highest priority for which a priority specific dispatching pragma
8259 (__gnat_get_specific_dispatching): Add this routine that returns the
8260 priority specific dispatching policy, as set by a
8261 Priority_Specific_Dispatching pragma appearing anywhere in the current
8262 partition. The input argument is the priority number, and the result
8263 is the upper case first character of the policy name.
8264 (__gnat_set_globals): Now a dummy function.
8265 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
8266 mechargs instead of sigargs, as the latter can be retrieved from the
8267 former and sigargs is not what we want on ia64.
8268 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
8270 (__gnat_adjust_context_for_raise, ia64-vms): New function.
8271 (tasking_error): Remove unused symbol.
8272 (_abort_signal): Move this symbol to the IRIX specific part since this
8273 is the only target that uses this definition.
8274 (Check_Abort_Status): Move this symbol to the IRIX specific part since
8275 this is the only target that uses this definition.
8276 (Lock_Task): Remove unused symbol.
8277 (Unlock_Task): Remove unused symbol.
8279 * lib-writ.adb (Write_ALI): Output new S lines for
8280 Priority_Specific_Dispatching pragmas.
8281 Implement new flag BD for elaborate body desirable
8283 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
8284 (Specific_Dispatching): Add this table for storing the entries
8285 corresponding to Priority_Specific_Dispatching pragmas.
8286 Document new BD flag for elaborate body desirable
8288 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
8291 2006-10-31 Javier Miranda <miranda@adacore.com>
8293 * a-tags.ads, a-tags.adb:
8294 (Predefined_DT): New function that improves readability of the code.
8295 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
8296 Inherit_DT): Use the new function Predefined_DT to improve code
8298 (Register_Interface_Tag): Update assertion.
8299 (Set_Interface_Table): Update assertion.
8300 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
8301 determining progenitor interfaces in Tags.
8302 (Inherit_CPP_DT): New subprogram.
8304 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
8305 analysis of the thunk code.
8306 (Expand_Interface_Conversion): Handle run-time conversion of
8307 access to class wide types.
8308 (Expand_Dispatching_Call): When generating the profile for the
8309 subprogram itype for a dispatching operation, properly terminate the
8310 formal parameters chaind list (set the Next_Entity of the last formal
8312 (Collect_All_Interfaces): Removed. This routine has been moved to
8313 sem_util and renamed as Collect_All_Abstract_Interfaces.
8314 (Set_All_DT_Position): Hidden entities associated with abstract
8315 interface primitives are not taken into account in the check for
8316 3.9.3(10); this check is done with the aliased entity.
8317 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
8318 interfacing with CPP by default.
8319 (Expand_Interface_Conversion): Add missing support for static conversion
8320 from an interface to a tagged type.
8321 (Collect_All_Interfaces): Add new out formal containing the list of
8322 abstract interface types to cleanup the subprogram Make_DT.
8323 (Make_DT): Update the code to generate the table of interfaces in case
8324 of abstract interface types.
8325 (Is_Predefined_Dispatching_Alias): New function that returns true if
8326 a primitive is not a predefined dispatching primitive but it is an
8327 alias of a predefined dispatching primitive.
8328 (Make_DT): If the ancestor of the type is a CPP_Class and we are
8329 compiling under full ABI compatibility mode we avoid the generation of
8330 calls to run-time services that fill the dispatch tables because under
8331 this mode we currently inherit the dispatch tables in the IP subprogram.
8332 (Write_DT): Emit an "is null" indication for a null procedure primitive.
8333 (Expand_Interface_Conversion): Use an address as the type of the formal
8334 of the internally built function that handles the case in which the
8335 target type is an access type.
8337 2006-10-31 Robert Dewar <dewar@adacore.com>
8339 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
8341 2006-10-31 Robert Dewar <dewar@adacore.com>
8343 * bindusg.ads, bindusg.adb:
8344 Change to package and rename procedure as Display, which
8345 now ensures that it only outputs usage information once.
8347 2006-10-31 Jose Ruiz <ruiz@adacore.com>
8349 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
8352 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
8355 2006-10-31 Robert Dewar <dewar@adacore.com>
8356 Ed Schonberg <schonberg@adacore.com>
8358 * treepr.adb: Use new subtype N_Membership_Test
8360 * checks.ads, checks.adb: Add definition for Validity_Check
8361 (Range_Or_Validity_Checks_Suppressed): New function
8362 (Ensure_Valid): Test Validity_Check suppressed
8363 (Insert_Valid_Check): Test Validity_Check suppressed
8364 (Insert_Valid_Check): Preserve Do_Range_Check flag
8365 (Validity_Check_Range): New procedure
8366 (Expr_Known_Valid): Result of membership test is always valid
8367 (Selected_Range_Checks): Range checks cannot be applied to discriminants
8368 by themselves. Disabling those checks must also be done for task types,
8369 where discriminants may be used for the bounds of entry families.
8370 (Apply_Address_Clause_Check): Remove side-effects if address expression
8371 is non-static and is not the name of a declared constant.
8372 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
8373 Code cleanup and new error messages.
8374 (Enable_Range_Check): Test for some cases of suppressed checks
8375 (Generate_Index_Checks): Suppress index checks if index checks are
8376 suppressed for array object or array type.
8377 (Apply_Selected_Length_Checks): Give warning for compile-time detected
8378 length check failure, even if checks are off.
8379 (Ensure_Valid): Do not generate a check on an indexed component whose
8380 prefix is a packed boolean array.
8381 * checks.adb: (Alignment_Checks_Suppressed): New function
8382 (Apply_Address_Clause_Check): New procedure, this is a completely
8383 rewritten replacement for Apply_Alignment_Check
8384 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
8385 we request a discriminal value only in case of discriminants.
8386 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
8387 assignments where the target subtype is unconstrained and the target
8388 object is a parameter or dereference (other aliased cases are known
8389 to be unconstrained).
8391 2006-10-31 Robert Dewar <dewar@adacore.com>
8393 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
8394 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
8395 vms_conv.adb: Fix bad table increment values (much too small)
8397 * table.adb (Realloc): Make sure we get at least some new elements
8398 Defends against silly small values for table increment
8400 2006-10-31 Robert Dewar <dewar@adacore.com>
8401 Ed Schonberg <schonberg@adacore.com>
8402 Bob Duff <duff@adacore.com>
8404 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
8405 entities. Move other fields around to make this possible
8406 (Is_Derived_Type): Add missing call to Is_Type.
8407 (Extra_Formals): New function for subprograms, entries, subprogram
8409 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
8410 (First_Formal_With_Extras): New function for subprogs, entries, subp
8412 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
8413 Add node information for E_Return_Statement.
8414 (Elaborate_Body_Desirable): New flag
8415 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
8416 to be Is_Inherently_Limited_Type, because return-by-reference has
8417 no meaning in Ada 2005.
8418 (E_Return_Statement): New entity kind.
8419 (Return_Applies_To): Field of E_Return_Statement.
8420 (Is_Return_Object): New flag in object entities.
8421 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
8422 (Must_Have_Preelab_Init): New flag
8423 (Known_To_Have_Preelab_Init): New flag
8424 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
8425 (Is_Visible_Formal): New flag on entities in formal packages.
8426 (Low_Bound_Known): New flag
8427 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
8429 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
8430 output when Id is an incomplete subtype.
8432 2006-10-31 Robert Dewar <dewar@adacore.com>
8434 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
8435 Avoid abbreviation Creat
8436 (Finalize): List all sources in extended mail source if -gnatl
8438 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
8439 (Finalize): Implement new -gnatl=xxx switch to output listing to file
8440 (Set_Specific_Warning_On): New procedure
8441 (Set_Specific_Warning_Off): New procedure
8442 Add implementation of new insertion \\
8443 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
8444 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
8446 (Error_Msg_Internal): Make sure that we set Last_Killed to
8447 True when a message from another package is suppressed.
8448 Implement insertion character ~ (insert string)
8449 (First_Node): Minor adjustments to get better placement.
8452 Implement new -gnatl=xxx switch to output listing to file
8455 Implement new -gnatl=xxx switch to output listing to file
8457 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
8458 (Commands_To_Stdout): New flag
8459 Implement new -gnatl=xxx switch to output listing to file
8460 New switch Dump_Source_Text
8461 (Warn_On_Deleted_Code): New warning flag for -gnatwt
8462 Define Error_Msg_Line_Length
8463 (Warn_On_Assumed_Low_Bound): New switch
8465 * osint.ads, osint.adb
8466 (Normalize_Directory_Name): Fix bug.
8467 Implement new -gnatl=xxx switch to output listing to file
8468 (Concat): Removed, replaced by real concatenation
8469 Make use of concatenation now allowed in compiler
8470 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
8471 we find the 'lib' or 'bin' directory even when the tool has been
8472 invoked with a relative path.
8473 (Executable_Name): New function taking string parameters.
8475 * osint-c.ads, osint-c.adb:
8476 Implement new -gnatl=xxx switch to output listing to file
8478 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
8481 Implement new -gnatl=xxx switch to output listing to file
8482 Recognize new -gnatL switch
8483 (no longer keep in old warning about old style usage)
8484 Use concatenation to simplify code
8485 Recognize -gnatjnn switch
8486 (Scan_Front_End_Switches): Clean up handling of -gnatW
8487 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
8489 2006-10-31 Robert Dewar <dewar@adacore.com>
8491 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
8492 (Set_Specific_Warning_Off): New procedure
8493 (Warning_Specifically_Suppressed): New function
8494 (Validate_Specific_Warnings): New procedure
8495 (Output_Msg_Text): Complete rewrite to support -gnatjnn
8497 * err_vars.ads: Implement insertion character ~ (insert string)
8499 2006-10-31 Bob Duff <duff@adacore.com>
8500 Ed Schonberg <schonberg@adacore.com>
8502 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
8503 the parent part is a build-in-place function call, generate assignments.
8504 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
8505 are build-in-place function calls.
8506 (Replace_Self_Reference): New subsidiary of
8507 Make_OK_Assignment_Statement, to replace an access attribute that is a
8508 self-reference into an access to the appropriate component of the
8509 target object. Generalizes previous mechanism to handle self-references
8510 nested at any level.
8511 (Is_Self_Referential_Init): Remove, not needed.
8512 (Is_Self_Referential_Init): New predicate to simplify handling of self
8513 referential components in record aggregates.
8514 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
8515 check for presence of entity before checking for self-reference.
8516 (Has_Default_Init_Comps): Return True if a component association is a
8517 self-reference to the enclosing type, which can only come from a
8518 default initialization.
8519 (Make_OK_Assignment_Statement): If the expression is of the form
8520 Typ'Acc, where Acc is an access attribute, the expression comes from a
8521 default initialized self-referential component.
8522 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
8523 that has been derived from several abstract interfaces we must also
8524 initialize the tags of the secondary dispatch tables.
8526 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8527 Thomas Quinot <quinot@adacore.com>
8528 Javier Miranda <miranda@adacore.com>
8529 Robert Dewar <dewar@adacore.com>
8532 (Expand_Access_To_Protected_Op): If the context indicates that an access
8533 to a local operation may be transfered outside of the object, create an
8534 access to the wrapper operation that must be used in an external call.
8535 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
8536 target, pass the Valid attribute applied to a floating-point prefix on
8537 to the back end without expansion.
8538 (Storage_Size): Use the new run-time function Storage_Size to retrieve
8539 the allocated storage when it is specified by a per-object expression.
8540 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
8541 Nothing to do here, the attribute has been rewritten during semantic
8543 (Expand_Attribute_Reference): Handle expansion of the new Priority
8545 (Find_Fat_Info): Handle case of universal real
8546 (Expand_Access_To_Protected_Op): Fix use of access to protected
8547 subprogram from inside the body of a protected entry.
8548 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
8549 'Access and 'Unrestricted_Access, to transform the attribute reference
8551 (Is_Constrained_Aliased_View): New predicate to help determine whether a
8552 subcomponent's enclosing variable is aliased with a constrained subtype.
8553 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
8554 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
8555 an aliased prefix must be known to be constrained in order to use True
8556 for the attribute value, and now it's possible for some aliased views
8557 to be unconstrained.
8559 2006-10-31 Robert Dewar <dewar@adacore.com>
8561 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
8562 (Expand_Entity_Reference): Correct error of not handling subprogram
8563 formals in current_value processing.
8565 2006-10-31 Javier Miranda <miranda@adacore.com>
8566 Robert Dewar <dewar@adacore.com>
8567 Ed Schonberg <schonberg@adacore.com>
8568 Gary Dismukes <dismukes@adacore.com>
8570 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
8571 register in the final list objects containing class-wide interfaces;
8572 otherwise we incorrectly register the tag of the interface in the final
8574 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
8575 generate the wrapper if the parent primitive is abstract. This is
8576 required to report the correct error message.
8577 (Expand_N_Subtype_Indication): Do validity checks on range
8578 (Clean_Task_Names): If an initialization procedure includes a call to
8579 initialize a task (sub)component, indicate that the procedure will use
8580 the secondary stack.
8581 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
8582 compatibility for interfacing with CPP by default.
8583 (Expand_N_Object_Declaration): Only build an Adjust call when the
8584 object's type is a nonlimited controlled type.
8585 * exp_ch3.adb: Add with and use of Exp_Ch6.
8586 (Expand_N_Object_Declaration): Check for object initialization that is a
8587 call to build-in-place function and apply Make_Build_In_Place_Call_In_
8588 Object_Declaration to the call.
8589 (Freeze_Type): When the designated type of an RACW was not frozen at the
8590 point where the RACW was declared, validate the primitive operations
8591 with respect to E.2.2(14) when it finally is frozen.
8592 (Build_Initialization_Call,Expand_Record_Controller): Rename
8593 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
8594 return-by-reference has no meaning in Ada 2005.
8595 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
8596 to register tag of the immediate ancestor interfaces in the
8598 (Init_Secondary_Tags): Moved to the specification to allow the
8599 initialization of extension aggregates with abstract interfaces.
8600 (Build_Master_Renaming): Make public, for use by function declarations
8601 whose return type is an anonymous access type.
8602 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
8603 Insert_List_Before_And_Analyze after the generation of the specs
8604 associated with null procedures.
8605 (Expand_Tagged_Root): Update documentation in its specification.
8606 (Init_Secondary_Tags): Update documentation.
8607 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
8608 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
8609 then generate code to inherit the contents of the dispatch table
8610 directly from the ancestor.
8611 (Expand_Record_Controller): Insert controller component after tags of
8612 implemented interfaces.
8613 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
8614 create null procedure overridings when null procedures are inherited
8616 (Make_Null_Procedure_Specs): New procedure to generate null procedure
8617 declarations for overriding null primitives inherited from interfaces.
8618 (Is_Null_Interface_Procedure): New function in
8619 Make_Null_Procedure_Specs.
8620 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
8621 immediate ancestor of a tagged type is an abstract interface type we
8622 must generate the specification of the predefined primitives associated
8623 with controlled types (because the dispatch table of the ancestor is
8624 null and hence these entries cannot be inherited). This is required to
8625 elaborate well the dispatch table.
8627 2006-10-31 Javier Miranda <miranda@adacore.com>
8628 Ed Schonberg <schonberg@adacore.com>
8629 Bob Duff <duff@adacore.com>
8630 Gary Dismukes <dismukes@adacore.com>
8631 Robert Dewar <dewar@adacore.com>
8633 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
8635 (Expand_N_In): Do validity checks on range
8636 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
8637 (Expand_N_Allocator): For "new T", if the object is constrained by
8638 discriminant defaults, allocate the right amount of memory, rather than
8639 the maximum for type T.
8640 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
8641 when the allocator is initialized by a build-in-place call, since the
8642 allocator is already rewritten as a reference to the function result,
8643 and this prevents an unwanted duplication of the function call.
8644 Add with and use of Exp_Ch6.
8645 (Expand_Allocator_Expresssion): Check for an allocator whose expression
8646 is a call to build-in-place function and apply
8647 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
8648 untagged designated types).
8649 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
8650 optimization if source or target is biased.
8651 (Expand_N_Allocator): Add comments for case of an allocator within a
8652 function that returns an anonymous access type designating tasks.
8653 (Expand_N_Allocator): apply discriminant checks for access
8654 discriminants of anonymous access types (AI-402, AI-416)
8656 2006-10-31 Bob Duff <duff@adacore.com>
8657 Robert Dewar <dewar@adacore.com>
8658 Gary Dismukes <dismukes@adacore.com>
8659 Ed Schonberg <schonberg@adacore.com>
8661 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
8663 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
8664 (Expand_N_Assignment_Statement): Call
8665 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
8666 build-in-place function call. Currently, this can happen only for
8667 assignments that come from aggregates.
8668 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
8669 in order to alleviate the upward compatibility introduced by AI-318.
8670 (Expand_N_Extended_Return_Statement): Add support for handling the
8671 return object as a build-in-place result.
8672 (Expand_Non_Function_Return): Implement simple return statements nested
8673 within an extended return.
8674 (Enable_New_Return_Processing): Turn on the new processing of return
8676 (Expand_Non_Function_Return): For a return within an extended return,
8677 don't raise Program_Error, because Sem_Ch6 now gives a warning.
8678 (Expand_N_Extended_Return_Statement): Implement AI-318
8679 (Expand_Simple_Function_Return): Ditto.
8680 (Expand_N_If_Statement): Handle new -gnatwt warning
8681 (Expand_N_Case_Statement): Handle new -gnatwt warning
8682 (Expand_N_Assignment): Handle assignment to the Priority attribute of
8684 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
8685 validity checking of assignments to elementary record components.
8686 (Expand_N_Return_Statement): return Class Wide types on the secondary
8687 stack independantly of their controlled status since with HIE runtimes,
8688 class wide types are not potentially controlled anymore.
8690 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
8693 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
8694 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
8695 it expects a block, procedure, or task. The return statement will get
8696 turned into a block, and Expand_Cleanup_Actions will happen then.
8698 2006-10-31 Robert Dewar <dewar@adacore.com>
8699 Ed Schonberg <schonberg@adacore.com>
8700 Bob Duff <duff@adacore.com>
8701 Gary Dismukes <dismukes@adacore.com>
8703 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
8705 (Expand_Inlined_Call): Tagged types are by-reference types, and
8706 therefore should be replaced by a renaming declaration in the expanded
8707 body, as is done for limited types.
8708 (Expand_Call): If this is a call to a function with dispatching access
8709 result, propagate tag from context.
8710 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
8712 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
8713 build-in-place when the right-hand side of an assignment is a
8714 build-in-place function call.
8715 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
8716 of the explicit dereference of the allocator to the result subtype of
8717 the build-in-place function. This is needed to satisfy type checking
8718 in cases where the caller's return object is created by an allocator for
8719 a class-wide access type and the type named in the allocator is a
8721 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
8722 conversion of the reference to the declared object to the result subtype
8723 of the build-in-place function. This is needed to satisfy type checking
8724 in cases where the declared object has a class-wide type. Also, in the
8725 class-wide case, change the type of the object entity to the specific
8726 result subtype of the function, to avoid passing a class-wide object
8727 without explicit initialization to the back end.
8728 (Register_Interface_DT_Entry): Moved outside the body of
8729 Freeze_Subprogram because this routine is now public; it is called from
8730 Check_Dispatching_Overriding to handle late overriding of abstract
8731 interface primitives.
8732 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
8733 adding an implicit access actual on a call to a build-in-place function.
8734 (Expand_Actuals): Test for an actual parameter that is a call to a
8735 build-in-place function and apply
8736 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
8737 (Is_Build_In_Place_Function): New function to determine whether an
8738 entity is a function whose calls should be handled as build-in-place.
8739 (Is_Build_In_Place_Function_Call): New function to determine whether an
8740 expression is a function call that should handled as build-in-place.
8741 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
8742 calls to build-in-place functions as the initialization of an allocator.
8743 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
8744 handling calls to build-in-place functions in contexts that do not
8745 involve init of a separate object (for example, actuals of subprogram
8747 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
8748 handling calls to build-in-place functions as the initialization of an
8750 (Detect_Infinite_Recursion): Add explicit parameter Process to
8751 instantiation of Traverse_Body to avoid unreferenced warning.
8752 (Check_Overriding_Inherited_Interfaces): Removed.
8753 (Register_Interface_DT_Entry): Code cleanup.
8754 (Register_Predefined_DT_Entry): Code cleanup.
8755 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
8756 inlined statements if within a transient scope.
8757 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
8758 formal parameters with occurrences of actuals in inlined body, establish
8759 visibility on the proper view of the actual's subtype for the body's
8761 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
8762 compatibility mode and we have an imported CPP subprogram because
8763 for now we assume that imported CPP primitives correspond with
8764 objects whose constructor is in the CPP side (and therefore we
8765 don't need to generate code to register them in the dispatch table).
8766 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
8767 aligned selected component.
8768 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
8769 the actual of an in-mode parameter is a type conversion.
8770 (Expand_Actuals): If the call does not come from source and the actual
8771 is potentially misaligned, let gigi handle it rather than rejecting the
8772 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
8773 Class Wide types as returning by reference independantly of their
8774 controlled status since with HIE runtimes class wide types are not
8775 potentially controlled anymore.
8777 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8779 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
8780 references that are private components of the protected object.
8781 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
8782 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
8783 instantiation to deal with warnings.
8784 (Initialize_Protection): If expression for priority is non-static, use
8785 System_Priority as its expected type, in case the expression has not
8788 2006-10-31 Robert Dewar <dewar@adacore.com>
8790 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
8791 initialization of Homonym_Len.
8792 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
8793 names from fully qualified name. Fixes problem of duplicate
8794 external names differing only in the presence of such a block name.
8796 2006-10-31 Thomas Quinot <quinot@adacore.com>
8797 Pablo Oliveira <oliveira@adacore.com>
8799 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
8800 subprogram Ids, even if they are not yet assigned.
8801 (Build_Subprogram_Id): It is now this function that will take care of
8802 calling Assign_Subprogram_Ids if necessary.
8803 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
8804 should be done only once they are assigned.
8805 (Build_From_Any_Function, case of tagged types): Add missing call to
8807 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
8808 type for an RACW type.
8809 (Add_RACW_Features): When processing an RACW declaration for which the
8810 designated type is already frozen, enforce E.2.2(14) rules immediately.
8811 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
8812 special reordering of controlling formals.
8814 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
8815 associated stub type for an RACW type.
8817 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8819 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
8820 fixed-point operations in an integer context, i.e. as operands of a
8821 conversion to an integer type, indicate that result must be rounded.
8823 2006-10-31 Robert Dewar <dewar@adacore.com>
8825 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
8826 cases, pass the encoding method, since it is now required by the run
8829 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
8830 assumption that Str'First = 1.
8831 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
8832 it on to the Value_Wide_Wide_Character call.
8833 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
8834 properly handles a string of the form quote-encoded_wide_char-quote.
8836 * s-wchcnv.adb: Minor reformatting
8838 2006-10-31 Javier Miranda <miranda@adacore.com>
8840 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8841 run-time membership test to ensure that the constructed object
8842 implements the target abstract interface.
8844 2006-10-31 Robert Dewar <dewar@adacore.com>
8846 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
8847 Machine_Attribute pragma internally to implement the user pragma.
8848 Add processing for pragma Interface so that it is now completely
8849 equivalent to pragma Import.
8851 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
8852 so that it can be applied to all entities, including record components
8853 and enumeration literals.
8854 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
8855 priority ranges are correct, verify compatibility against task
8856 dispatching and locking policies, and if everything is correct an entry
8857 is added to the table containing priority specific dispatching entries
8858 for this compilation unit.
8859 (Delay_Config_Pragma_Analyze): Delay processing
8860 Priority_Specific_Dispatching pragmas because when processing the
8861 pragma we need to access run-time data, such as the range of
8862 System.Any_Priority.
8863 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
8864 Allow pragma Unreferenced as a context item
8865 Add pragma Preelaborable_Initialization
8866 (Analyze_Pragma, case Interface): Interface is extended so that it is
8867 now syntactically and semantically equivalent to Import.
8868 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
8869 insertion characters.
8870 Add handling for Pragma_Wide_Character_Encoding
8871 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
8872 never supercedes a real restriction, and that a real restriction
8873 always supercedes a warning.
8874 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
8877 2006-10-31 Bob Duff <duff@adacore.com>
8878 Ed Schonberg <schonberg@adacore.com>
8879 Robert Dewar <dewar@adacore.com>
8881 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
8882 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
8883 Is_Inherently_Limited_Type, because return-by-reference has no meaning
8885 (Find_Node_To_Be_Wrapped): Use new method of determining the result
8886 type of the function containing a return statement, because the
8887 Return_Type field was removed. We now use the Return_Applies_To field.
8889 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
8890 (Build_Task_Image_Decl): If procedure is not called from an
8891 initialization procedure, indicate that function that builds task name
8892 uses the sec. stack. Otherwise the enclosing initialization procedure
8893 will carry the indication.
8894 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
8895 N_Object_Declaration instead.
8896 (Kill_Dead_Code): New interface to implement -gnatwt warning for
8897 conditional dead code killed, and change implementation accordingly.
8898 (Insert_Actions): Add N_Return_Object_Declaration case.
8899 Correct comment to mention N_Extension_Aggregate node.
8900 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
8901 attempts to save information for global variables which cannot be
8903 (Get_Current_Value_Condition): Handle conditions the other way round
8904 (constant on left). Also handle right operand of AND and AND THEN
8905 (Set_Current_Value_Condition): Corresponding changes
8906 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
8907 (Get_Current_Value_Condition): Handle simple boolean operands
8908 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
8909 (Get_Current_Value_Condition): If the variable reference is within an
8910 if-statement, does not appear in the list of then_statments, and does
8911 not come from source, treat it as being at unknown location.
8912 (Get_Current_Value_Condition): Enhance to allow while statements to be
8913 processed as well as if statements.
8914 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
8916 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
8917 of loop. This is safe now that we fixed Kill_Current_Values.
8918 (OK_To_Do_Constant_Replacement): Check whether current scope is
8919 Standard, before examining outer scopes.
8921 2006-10-31 Vincent Celier <celier@adacore.com>
8923 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
8924 When True, apply VMS treatment to children of packages A, G, I and S.
8927 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
8929 2006-10-31 Robert Dewar <dewar@adacore.com>
8930 Ed Schonberg <schonberg@adacore.com>
8932 * freeze.adb: Add handling of Last_Assignment field
8933 (Warn_Overlay): Supply missing continuation marks in error msgs
8934 (Freeze_Entity): Add check for Preelaborable_Initialization
8936 * g-comlin.adb: Add Warnings (Off) to prevent new warning
8938 * g-expect.adb: Add Warnings (Off) to prevent new warning
8940 * lib-xref.adb: Add handling of Last_Assignment field
8941 (Generate_Reference): Centralize handling of pragma Obsolescent here
8942 (Generate_Reference): Accept an implicit reference generated for a
8943 default in an instance.
8944 (Generate_Reference): Accept a reference for a node that is not in the
8945 main unit, if it is the generic body corresponding to an subprogram
8948 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
8950 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
8952 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
8954 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
8955 use clauses, to avoid messages on packages used to qualify, and also
8956 to avoid messages from obsolescent units.
8957 (Warn_On_Useless_Assignments): Don't generate messages for imported
8958 and exported variables.
8959 (Warn_On_Useless_Assignments): New procedure
8960 (Output_Obsolescent_Entity_Warnings): New procedure
8961 (Check_Code_Statement): New procedure
8963 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
8964 Change name Is_Ada_2005 to Is_Ada_2005_Only
8965 (Last_Assignment): New field for useless assignment warning
8967 2006-10-31 Olivier Hainque <hainque@adacore.com>
8969 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
8970 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
8972 2006-10-31 Bob Duff <duff@adacore.com>
8973 Robert Dewar <dewar@adacore.com>
8974 Ed Schonberg <schonberg@adacore.com>
8976 * g-awk.adb (Default_Session, Current_Session): Compile this file in
8977 Ada 95 mode, because it violates the new rules for AI-318.
8979 * g-awk.ads: Use overloaded subprograms in every case where we used to
8980 have a default of Current_Session. This makes the code closer to be
8981 correct for both Ada 95 and 2005.
8983 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
8984 code, relying on the fact that the compiler generates a warning
8985 instead of an error in -gnatg mode.
8987 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
8988 E_Return_Statement entity kind.
8989 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
8991 * par.adb (P_Interface_Type_Definition): Addition of one formal to
8992 report an error if the reserved word abstract has been previously found.
8993 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
8995 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
8996 parenthesized range attribute usage
8997 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
8999 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
9000 in the syntax for extended_return_statement. This is not in the latest
9001 RM, but the ARG is expected to issue an AI allowing this.
9002 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
9003 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
9004 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
9005 P_Return_Statement): Parse the new syntax for extended_return_statement.
9007 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
9008 Output_End_Missing): Add error-recovery code for the new
9009 extended_return_statement syntax; that is, the new E_Return entry on
9012 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
9013 limited to nonlimited, because otherwise we violate the new Ada 2005
9014 rules about returning limited types in function Create_AST_Handler in
9017 * sem.adb (Analyze): Add cases for new node kinds
9018 N_Extended_Return_Statement and N_Return_Object_Declaration.
9020 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
9021 type is in the same category as type of context before applying check,
9022 to prevent anomalies in instantiations.
9023 (Resolve_Aggregate): Remove test for limited components in aggregates.
9024 It's unnecessary in Ada 95, because if it has limited components, then
9025 it must be limited. It's wrong in Ada 2005, because limited aggregates
9027 (Resolve_Record_Aggregate): Move check for limited types later, because
9028 OK_For_Limited_Init requires its argument to have been resolved.
9029 (Get_Value): When copying the component default expression for a
9030 defaulted association in an aggregate, use the sloc of the aggregate
9031 and not that of the original expression, to prevent spurious
9032 elaboration errors, when the expression includes function calls.
9033 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
9034 were missing. We also didn't handle qualified expressions. Now also
9035 allow function calls. Use new common routine OK_For_Limited_Init.
9036 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
9037 with space can upper case letter).
9039 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
9040 Has_Static_Discriminants flag
9041 (Record_Type_Declaration): Diagnose an attempt to declare an interface
9042 type with discriminants.
9043 (Process_Range_Expr_In_Decl): Do validity checks on range
9044 (Build_Discriminant_Constraints): Use updated form of
9045 Denotes_Discriminant.
9046 (Process_Subtype): If the subtype is a private subtype whose full view
9047 is a concurrent subtype, introduce an itype reference to prevent scope
9049 (Build_Derived_Record_Type, Collect_Interface_Primitives,
9050 Record_Type_Declaration): The functionality of the subprograms
9051 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
9052 is now performed by a single routine.
9053 (Build_Derived_Record_Type): If the type definition includes an explicit
9054 indication of limitedness, then the type must be marked as limited here
9055 to ensure that any access discriminants will not be treated as having
9056 a local anonymous access type.
9057 (Check_Abstract_Overriding): Issue a detailed error message when an
9058 abstract subprogram was not overridden due to incorrect mode of its
9060 (Analyze_Private_Extension_Declaration): Add support for the analysis of
9061 synchronized private extension declarations. Verify that the ancestor is
9062 a limited or synchronized interface or in the generic case, the ancestor
9063 is a tagged limited type or synchronized interface and all progenitors
9064 are either limited or synchronized interfaces.
9065 Derived_Type_Declaration): Check for presence of private extension when
9066 dealing with synchronized formal derived types.
9067 Process_Full_View): Enchance the check done on the usage of "limited" by
9068 testing whether the private view is synchronized.
9069 Verify that a synchronized private view is completed by a protected or
9071 (OK_For_Limited_Init_In_05): New function.
9072 (Analyze_Object_Declaration): Move check for limited types later,
9073 because OK_For_Limited_Init requires its argument to have been resolved.
9074 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
9075 in order to alleviate the upward compatibility introduced by AI-318.
9076 (Constrain_Corresponding_Record): If the constraint is for a component
9077 subtype, mark the itype as frozen, to avoid out-of-scope references to
9078 discriminants in the back-end.
9079 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
9080 this subprogram against wrong sources.
9081 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
9082 discriminant of limited type completed with a protected type, when the
9083 discriminant is used to constrain a private component of the type, and
9084 expansion is disabled.
9085 (Find_Type_Of_Object): Do not treat a return subtype that is an
9086 anonymous subtype as a local_anonymous_type, because its accessibility
9087 level is the return type of the enclosing function.
9088 (Check_Initialization): In -gnatg mode, turn the error "cannot
9089 initialize entities of limited type" into a warning.
9090 (OK_For_Limited_Init): Return true for generated nodes, since it
9091 sometimes violates the legality rules.
9092 (Make_Incomplete_Declaration): If the type for which an incomplete
9093 declaration is created happens to be the currently visible entity,
9094 preserve the homonym chain when removing it from visibility.
9095 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
9096 inherited subprograms.
9097 (Access_Definition): If this is an access to function that is the return
9098 type of an access_to_function definition, context is a type declaration
9099 and the scope of the anonymous type is the current one.
9100 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
9101 incomplete subtype to the set of private dependents of the original
9103 (Constrain_Discriminated_Type): Emit an error message whenever an
9104 incomplete subtype is being constrained.
9105 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
9106 corresponding subtype of the full view of the original incomplete type.
9107 (Check_Incomplete): Properly detect invalid usage of incomplete types
9110 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9112 * g-catiio.ads, g-catiio.adb (Value): New function.
9113 Given an input String, try and parse a valid Time value.
9115 2006-10-31 Vincent Celier <celier@adacore.com>
9117 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
9118 Integer_Address arithmetic, as in Set_Valid.
9120 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9121 Robert Dewar <dewar@adacore.com>
9123 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
9124 handling executable extension manually and duplicating code.
9126 * make.adb: Implement new -S switch
9127 (Gnatmake): Use new function Osint.Executable_Name instead
9128 of handling executable extension manually.
9130 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
9131 is specified, the executable name ends with this suffix.
9132 Take advantage of Osint.Executable_Name instead of duplicating code.
9134 * switch-m.adb: Recognize new gnatmake -S switch
9136 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
9138 (Get_Target_Parameters): Set Executable_Extension_On_Target if
9141 * makeusg.adb: Add line for gnatmake -S switch
9143 2006-10-31 Vincent Celier <celier@adacore.com>
9145 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
9146 call it with -static-libgcc, as there are some platforms, such as
9147 Darwin, where one of these two switches is compulsory to link.
9149 2006-10-31 Vincent Celier <celier@adacore.com>
9151 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
9152 instead of ADA_PROJECT_PATH, for the project path.
9153 (Gnatls): When displaying the project path directories, use host dir
9156 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
9157 names in the project path, as absolute paths may correspond to
9158 multi-valued VMS logical names.
9160 2006-10-31 Vincent Celier <celier@adacore.com>
9162 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
9164 (Locate_Regular_File): Ditto
9165 (Change_Dir): Remove, no longer used
9166 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
9167 on Windows. Get it calling Get_Current_Dir.
9168 (OpenVMS): Remove imported boolean, no longer needed.
9169 (Normalize_Pathname)[VMS]: Do not resolve directory names.
9170 (Pid_To_Integer): New function to convert a Process_Id to Integer
9172 2006-10-31 Thomas Quinot <quinot@adacore.com>
9174 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
9175 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
9177 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
9180 2006-10-31 Robert Dewar <dewar@adacore.com>
9182 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
9183 initial letter o as a zero.
9185 2006-10-31 Robert Dewar <dewar@adacore.com>
9187 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
9189 2006-10-31 Robert Dewar <dewar@adacore.com>
9191 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
9193 (Layout_Variant_Record): Retrieve the discriminants from the entity
9194 rather than from the type definition, because in the case of a full
9195 type for a private type we need to take the discriminants from the
9197 (Layout_Component_List): When applying the Max operator to variants with
9198 a nonstatic size, check whether either operand is static and scale that
9199 operand from bits to storage units before applying Max.
9200 (Layout_Type): In VMS, if a C-convention access type has no explicit
9201 size clause (and does not inherit one in the case of a derived type),
9202 then the size is reset to 32 from 64.
9204 2006-10-31 Vincent Celier <celier@adacore.com>
9206 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
9207 its file has already been loaded, according to the unit being loaded,
9208 not to the current value of Multiple_Unit_Index.
9210 2006-10-31 Thomas Quinot <quinot@adacore.com>
9211 Eric Botcazou <ebotcazou@adacore.com>
9212 Arnaud Charlet <charlet@adacore.com>
9214 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
9215 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
9217 (a-except.o): Pass it to the compiler.
9218 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
9219 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
9220 a-calend-mingw.adb version.
9222 * Makefile.rtl: Added s-dsaser.
9223 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
9224 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
9225 Ada.Dispatching.Round_Robin.
9226 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
9228 * Make-lang.in: Remove all references to gt-ada-decl.h.
9229 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
9231 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
9232 Update dependencies.
9234 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
9236 2006-10-31 Vincent Celier <celier@adacore.com>
9238 * mlib-utl.adb (Initialized): Remove, no longer used
9239 (Initialize): Remove, no longer used
9240 (Ar): If Ar_Exec is null, get the location of the archive builder and,
9241 if there is one, the archive indexer. Fail if the archive builder cannot
9243 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
9246 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9248 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
9249 Process_Body_Clauses): If the context of a body includes a use clause
9250 for P.Q then a with_clause for P in the same body is not redundant,
9251 even if the spec also has a with_clause on P.
9252 Add missing continuation mark to error msg
9253 (Build_Limited_Views): A limited view of a type is tagged if its
9254 declaration includes a record extension.
9255 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
9256 node, even if the subunit has errors. This avoids malfunction by
9257 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
9258 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
9259 generation of obsolescent messages for with statements (cannot do
9260 this too early, or we cannot implement avoiding the messages in the
9261 case of obsolescent units withing obsolescent units).
9262 (Install_Siblings): If the with_clause is on a remote descendant of
9263 an ancestor of the current compilation unit, find whether there is
9264 a sibling child unit that is immediately visible.
9265 (Remove_Private_With_Clauses): New procedure, invoked after completing
9266 the analysis of the private part of a nested package, to remove from
9267 visibility the private with_clauses of the enclosing package
9269 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
9270 now centralized in Generate_Reference.
9271 (Install_Limited_Context_Clauses): Remove superfluous error
9272 message associated with unlimited view visible through use
9273 and renamings. In addition, at the point in which the error
9274 is reported, we add the backslash to the text of the error
9275 to ensure that it is reported as a single error message.
9276 Use new // insertion for some continuation messages
9277 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
9278 to create implicit with_clause for parent unit mentioned in original
9279 limited_with_clause.
9280 (Install_Limited_With_Unit): Set entity of parent identifiers if the
9281 unit is a child unit. For ASIS queries.
9282 (Analyze_Subunit): If the subunit appears within a child unit, make all
9283 ancestor child units directly visible again.
9285 2006-10-31 Robert Dewar <dewar@adacore.com>
9287 * par-ch10.adb (P_Context_Clause): Minor error message fix
9289 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9290 Javier Miranda <miranda@adacore.com>
9292 * par-ch12.adb: Grammar update and cleanup.
9293 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
9294 support for synchronized derived type definitions.
9295 Add the new actual Abstract_Present to every call to
9296 P_Interface_Type_Definition.
9297 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
9298 a formal object declaration with an access definition or a subtype mark
9299 with a null exclusion.
9300 (P_Generic_Association): Handle association with box, and others_choice
9301 with box, to support Ada 2005 partially parametrized formal packages.
9303 2006-10-31 Robert Dewar <dewar@adacore.com>
9304 Javier Miranda <miranda@adacore.com>
9306 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
9307 (P_Type_Declaration): Remove barrier against the reserved word "limited"
9308 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
9309 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
9311 (P_Type_Declaration): Add the new actual Abstract_Present to every call
9312 to P_Interface_Type_Definition.
9313 (P_Interface_Type_Definition): Addition of one formal to report an error
9314 if the reserved word abstract has been previously found.
9315 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
9316 object renaming declaration with an access definition or subtype mark
9317 with a possible null exclusion.
9319 * par-ch9.adb: Minor error msg fix
9321 * par-load.adb: Add missing continuation mark to error msg
9323 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
9325 2006-10-31 Vincent Celier <celier@adacore.com>
9327 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
9328 unknown attribute in unknown package or in package that does not need
9330 (Parse_Package_Declaration): Do not issue warning for unknown package in
9333 2006-10-31 Vincent Celier <celier@adacore.com>
9335 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
9336 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
9339 2006-10-31 Vincent Celier <celier@adacore.com>
9341 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
9342 on VMS, change "__" to '.' before checking the name.
9343 (Record_Ada_Source): Always add the source file name in the list of
9344 of sources, even if it is not the first time, as it is for another
9346 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
9347 dot, instead of replacing only the first '_'.
9349 * prj-part.adb (Parse): Convert project file path to canonical form
9351 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
9352 extended, the project id of the project extending it is recorded in its
9353 data, even when it has already been processed as an imported project.
9355 2006-10-31 Robert Dewar <dewar@adacore.com>
9357 * repinfo.adb (List_Entities): Don't list entities from renaming
9360 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9361 Robert Dewar <dewar@adacore.com>
9363 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
9364 only a restriction warning is active for the given restriction. This is
9365 desirable because we do not want to modify code in the case where only
9367 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
9368 causes overriding of real restrictions.
9369 Take advantage of new No_Restrictions constant.
9371 * raise.h: (__gnat_set_globals): Change profile.
9373 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9375 * rtsfind.adb: Remove s-polint from comment as it exists no more.
9378 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
9379 Move all the entities in obsolete package System.PolyORB_Interface to
9380 System.Partition_Interface.
9381 (RE_Storage_Size): New function in System.Tasking.
9382 (RE_Get_Ceiling): New entity.
9383 (RE_Set_Ceiling): New entity.
9384 (RO_PE_Get_Ceiling): New entity.
9385 (RO_RE_Set_Ceiling): New entity.
9386 (Inherit_CPP_DT): New entity
9388 2006-10-31 Robert Dewar <dewar@adacore.com>
9390 * scng.adb (Scan, case of numeric literal): Better msg for identifier
9391 starting with a digit.
9393 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9394 Thomas Quinot <quinot@adacore.com>
9395 Javier Miranda <miranda@adacore.com>
9396 Gary Dismukes <dismukes@adacore.com>
9398 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
9399 properly an attempt to apply Unchecked_Access to a protected operation.
9400 (OK_Self_Reference): New subprogram to check the legality of an access
9401 attribute whose prefix is the type of an enclosing aggregate.
9402 Generalizes previous mechanism to handle attribute references nested
9403 arbitrarily deep within the aggregate.
9404 (Analyze_Access_Attribute): An access attribute whose prefix is a type
9405 can appear in an aggregate if this is a default-initialized aggregate
9406 for a self-referential type.
9407 (Resolve_Attribute, case Access): Ditto.
9408 Add support for new implementation defined attribute Stub_Type.
9409 (Eval_Attribute, case Attribute_Stub_Type): New case.
9410 (Analyze_Attribute, case Attribute_Stub_Type): New case.
9411 (Stream_Attribute_Available): Implement using new subprogram from
9412 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
9413 Has_Specified_Stream_Attribute flag.
9414 Disallow Storage_Size and Storage_Pool for access to subprogram
9415 (Resolve_Attribute, case 'Access et al): Take into account anonymous
9416 access types of return subtypes in extended return statements. Remove
9417 accessibility checks on anonymous access types when Unchecked_Access is
9419 (Analyze_Attribute): Add support for the use of 'Class to convert
9420 a class-wide interface to a tagged type.
9421 Add support for the attribute Priority.
9422 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
9423 whether the designated type is discriminated with a constrained partial
9424 view and require static matching in that case.
9425 Add local variable Des_Btyp. The Designated_Type
9426 of an access to incomplete subtype is either its non-limited view if
9427 coming from a limited with or its etype if regular incomplete subtype.
9429 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
9430 Fix predicate to identify and allow cases of (expander-generated)
9431 references to tag of designated object of a RACW.
9432 (Validate_Static_Object_Name): In Ada 2005, a formal object is
9433 non-static, and therefore cannot appear as a primary in a preelaborable
9435 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
9436 Has_Read_Write_Attributes.
9437 (Has_Read_Write_Attributes): Reimplement in termes of
9438 Has_Stream_Attribute_Definition.
9439 (Missing_Read_Write_Attributes): When checking component types in a
9440 record, unconditionally call Missing_Read_Write_Attributes recursively
9441 (remove guard checking for Is_Record_Type / Is_Access_Type).
9443 2006-10-31 Robert Dewar <dewar@adacore.com>
9445 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
9446 useless assignments here and conditionalize it on absence of exception
9448 (Analyze_Exception_Handlers): Small code reorganization of error
9449 detection code, for new handling of formal packages.
9451 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9452 Hristian Kirtchev <kirtchev@adacore.com>
9454 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
9455 that has been constant-folded, preserve information of original tree,
9457 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
9458 generated private extension declaration if the formal derived type is
9459 synchronized. Carry synchronized present over to the generated private
9461 (Validate_Derived_Type_Instance): Ensure that the actual of a
9462 synchronized formal derived type is a synchronized tagged type.
9463 (Instantiate_Formal_Package): When creating the instantiation used to
9464 validate the actual package of a formal declared without a box, check
9465 whether the formal itself depends on a prior actual.
9466 (Instantiate_Formal_Subprogram): Create new entities for the defining
9467 identifiers of the formals in the renaming declaration, for ASIS use.
9468 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
9469 a renaming declaration or a subtype declaration for an actual in an
9470 instance, capture location information of declaration in generic, for
9472 (Instantiate_Formal_Package): Add comments on needed additional tests.
9473 AI-317 (partial parametrization) is fully implemented.
9474 (Validate_Private_Type_Instance): Add check for actual which
9475 must have preelaborable initialization
9476 Use new // insertion for some continuation messages
9477 (Analyze_Formal_Object_Declaration): Change usage of Expression to
9478 Default_Expression. Add type retrieval when the declaration has an
9479 access definition. Update premature usage of incomplete type check.
9480 (Check_Access_Definition): New subsidiary routine. Check whether the
9481 current compilation version is Ada 05 and the supplied node has an
9483 (Instantiate object): Alphabetize local variables. Handle the creation
9484 of new renaming declarations with respect to the kind of definition
9485 used - either an access definition or a subtype mark. Guard against
9486 unnecessary error message in the context of anonymous access types after
9487 they have been resolved. Add check for required null exclusion in a
9488 formal object declaration.
9489 (Switch_View): A private subtype of a non-private type needs to be
9490 switched (the base type can have been switched without its private
9491 dependents because of the last branch of Check_Private_View.
9492 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
9494 (Instantiate_Type): Emit an error message whenever a class-wide type of
9495 a tagged incomplete type is used as a generic actual.
9496 (Find_Actual_Type): Extend routine to handle a component type in a child
9497 unit that is imported from a formal package in a parent.
9498 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
9499 agree on constrainedness, rather than checking against ultimate ancestor
9500 (Instantiate_Subprogram_Body): Create a cross-reference link to the
9501 generic body, for navigation purposes.
9503 2006-10-31 Robert Dewar <dewar@adacore.com>
9504 Thomas Quinot <quinot@adacore.com>
9506 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
9508 (New_Stream_Subprogram): When processing an attribute definition clause
9509 for a stream-oriented subprogram, record an entity node occurring at
9510 the point of clause to use for checking the visibility of the clause,
9511 as defined by 8.3(23) as amended by AI-195.
9512 (New_Stream_Subprogram): New procedure, factoring behaviour from both
9513 New_Stream_Function and New_Stream_Procedure.
9514 (New_Stream_Function, New_Stream_Procedure): Removed.
9515 (Analyze_Attribute_Definition_Clause, case Address): Check new
9516 Alignment_Check check
9518 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9519 Javier Miranda <miranda@adacore.com>
9520 Robert Dewar <dewar@adacore.com>
9522 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
9523 generate the same errors compiling under -gnatc.
9524 (Try_Object_Operation): If no candidate interpretation succeeds, but
9525 there is at least one primitive operation with the right name, report
9526 error in call rather than on a malformed selected component.
9527 (Analyze_Selected_Component): If the prefix is an incomplete type from
9528 a limited view, and the full view is available, use the full view to
9529 determine whether this is a prefixed call to a primitive operation.
9530 (Operator_Check): Verify that a candidate interpretation is a binary
9531 operation before checking the type of its second formal.
9532 (Analyze_Call): Add additional warnings for function call contexts not
9534 (Analyze_Allocator): Move the check for "initialization not allowed for
9535 limited types" after analyzing the expression. This is necessary,
9536 because OK_For_Limited_Init looks at the structure of the expression.
9537 Before analysis, we don't necessarily know what sort of expression it
9538 is. For example, we don't know whether F(X) is a function call or an
9539 indexed component; the former is legal in Ada 2005; the latter is not.
9540 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
9541 were missing. We also didn't handle qualified expressions. Now also
9542 allow function calls. Use new common routine OK_For_Limited_Init.
9543 (Analyze_Type_Conversion): Do not perform some legality checks in an
9544 instance, because the error message will be redundant or spurious.
9545 (Analyze_Overloaded_Selected_Component): Do not do style check when
9546 setting an entity, since we do not know it is the right entity yet.
9547 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
9548 (Analyze_Overloaded_Selected_Component): Same change
9549 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
9550 since regular incomplete subtypes are transformed into corresponding
9551 subtypes of their full views.
9552 (Complete_Object_Operation): Treat name of transformed subprogram call
9553 as coming from source, for browsing purposes.
9554 (Try_Primitive_Operation): If formal is an access parameter, compare
9555 with base type of object to determine whether it is a primitive
9557 (Operator_Check): If no interpretation of the operator matches, check
9558 whether a use clause on any candidate might make the operation legal.
9559 (Try_Class_Wide_Operation): Check whether the first parameter is an
9560 access type whose designated type is class-wide.
9562 2006-10-31 Robert Dewar <dewar@adacore.com>
9563 Ed Schonberg <schonberg@adacore.com>
9564 Gary Dismukes <dismukes@adacore.com>
9566 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
9567 warn on infinite loops.
9568 Add \\ to some continuation messages
9569 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
9570 (Process_Bounds): If the bounds are integer literals that result from
9571 constant-folding, and they carry a user-defined type, preserve that type
9572 rather than treating this as an integer range.
9573 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
9574 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
9575 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
9576 left hand side of assignment.
9577 (Analyze_Assignment): Add suport to manage assigments to the attribute
9578 priority of a protected object.
9579 (Check_Possible_Current_Value_Condition): Allow fully qualified names
9580 not just identifiers.
9581 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
9582 or AND THEN for possible tracking.
9583 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
9584 case of while loops so we can track values in the loop body.
9586 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9587 Hristian Kirtchev <kirtchev@adacore.com>
9588 Bob Duff <duff@adacore.com>
9590 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
9591 procedure cannot be a protected operation (it is a basic_declaration,
9592 not a subprogram_declaration).
9593 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
9594 Subp. Add logic for entry processing.
9595 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
9596 Determine whether an entry or subprogram of a protected or task type
9597 override an inherited primitive of an implemented interface.
9598 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
9599 Update the actual used in calls to Check_Overriding_Indicator.
9600 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
9601 generate the proper reference to the parent unit, for cross-reference.
9602 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
9604 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
9605 (Add_Extra_Formal): Revise procedure to allow passing in associated
9606 entity, scope, and name suffix, and handle setting of the new
9607 Extra_Formals field.
9608 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
9609 pass new parameters. Add support for adding the new extra access formal
9610 for functions whose calls are treated as build-in-place.
9611 (Analyze_A_Return_Statement): Correct casing in error message.
9612 Move Pop_Scope to after Analyze_Function_Return, because an extended
9613 return statement really is a full-fledged scope. Otherwise, visibility
9614 doesn't work right. Correct use of "\" for continuation messages.
9615 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
9616 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
9617 the node doesn't get properly marked as analyzed.
9618 (Analyze_Subprogram_Body): If subprogram is a function that returns
9619 an anonymous access type that denotes a task, build a Master Entity
9621 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
9622 proper usage of null exclusion in a result definition.
9623 (Process_Formals): Code cleanup and new error message.
9624 (Process_Formals): Detect incorrect application of null exclusion to
9626 (Conforming_Types): Handle conformance between [sub]types and itypes
9627 generated for entities that have null exclusions applied to them.
9628 (Maybe_Primitive_Operation): Add an additional type retrieval when the
9629 base type is an access subtype. This case arrises with null exclusions.
9630 (New_Overloaded_Entity): Do not remove the overriden entity from the
9631 homonym chain if it corresponds with an abstract interface primitive.
9632 (Process_Formals): Replace membership test agains Incomplete_Kind with a
9633 call to the synthesized predicate Is_Incomplete_Type.
9634 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
9636 (Analyze_Subprogram_Declaration): Check that abstract interface
9637 primitives are abstract or null.
9638 (Analyze_Subprogram_Specification): Remove previous check for abstract
9639 interfaces because it was not complete.
9640 (Has_Interface_Formals): Removed.
9642 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9643 Javier Miranda <miranda@adacore.com>
9645 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
9646 of Analyze_Package_Body, to create Itype references for anonymous
9647 access types created in the package declaration, whose designated types
9648 may have only a limited view.
9649 (Analyze_Package_Specification): For the private part of a nested
9650 package, install private_with_clauses of enclosing compilation unit if
9651 we are in its visible part.
9652 (Declare_Inherited_Private_Subprograms): Complete barrier
9653 to ensure that the primitive operation has an alias to some parent
9654 primitive. This is now required because, after the changes done for the
9655 implementation of abstract interfaces, the contents of the list of
9656 primitives has entities whose alias attribute references entities of
9657 such list of primitives.
9658 (Analyze_Package_Specification): Simplify code that handles parent units
9659 of instances and formal packages.
9660 (Uninstall_Declarations): Check the convention consistency among
9661 primitive overriding operations of a tagged record type.
9663 2006-10-31 Robert Dewar <dewar@adacore.com>
9664 Hristian Kirtchev <kirtchev@adacore.com>
9665 Javier Miranda <miranda@adacore.com>
9666 Ed Schonberg <schonberg@adacore.com>
9668 * sem_ch8.adb: Minor error msg rewording
9669 (Undefined): When checking for misspellings, invert arguments (to get
9670 expected and found set right)
9671 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
9672 (Analyze_Generic_Renaming): Same fix
9673 (Use_One_Package): Do not take into account the internal entities of
9674 abstract interfaces during the analysis of entities that are marked
9675 as potentially use-visible.
9676 (Find_Type): Handle the case of an attribute reference for
9677 implementation defined attribute Stub_Type (simply let the analysis of
9678 the attribute reference rewrite it).
9679 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
9680 type that appears in a Use_Type clause.
9681 (Analyze_Object_Renaming): Add support for renaming of the Priority
9683 (Find_Type): In Ada 2005, a task type can be used within its own body,
9684 when it appears in an access definition.
9685 (Analyze_Object_Renaming): Remove warning on null_exclusion.
9686 (Analyze_Object_Renaming): Introduce checks for required null exclusion
9687 in a formal object declaration or in a subtype declaration.
9688 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
9689 (Check_Null_Exclusion): New local routine to
9690 Analyze_Subprogram_Renaming. Check whether the formals and return
9691 profile of a renamed subprogram have required null exclusions when
9692 their counterparts of the renaming already impose them.
9693 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
9694 Determine whether an entity is inside a generic scope.
9695 (In_Open_Scope): First pass of documentation update.
9696 (Find_Expanded_Name): Add support for shadow entities associated with
9697 limited withed packages. This is required to handle nested packages.
9698 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
9699 that makes a renaming of a limited withed package illegal.
9701 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9702 Ed Schonberg <schonberg@adacore.com>
9704 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
9705 Check_Overriding_Indicator.
9706 (Analyze_Task_Definition): Ditto.
9707 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
9708 (Check_Overriding_Indicator): To find overridden interface operation,
9709 examine only homonyms that have an explicit subprogram declaration, not
9710 inherited operations created by an unrelated type derivation.
9711 (Check_Overriding_Indicator): When checking for the presence of "null"
9712 in a procedure, ensure that the queried node is a procedure
9714 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
9715 type when the formal is an access to variable.
9716 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
9717 (Analyze_Task_Type): Same addition
9718 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
9719 provide navigation capabilities for entries.
9721 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9722 Ed Schonberg <schonberg@adacore.com>
9723 Javier Miranda <miranda@adacore.com>
9724 Gary Dismukes <dismukes@adacore.com>
9726 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
9727 inherited from an interface ancestor by another interface in the
9728 context of an instance as 'late'.
9729 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
9730 of a call to a function that dispatches on access result.
9731 (Check_Dispatching_Operation): In case of late overriding of a primitive
9732 that covers abstract interface subprograms we register it in all the
9733 secondary dispatch tables associated with abstract interfaces.
9734 (Check_Dispatching_Call): Add check that a dispatching call is not made
9735 to a function with a controlling result of a limited type. This is a
9736 current implementation restriction.
9737 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
9738 (Check_Dispatching_Operation): Do no emit a warning if the controlling
9739 argument is an interface type that is a generic formal.
9740 (Is_Interface_Subprogram): Removed.
9741 (Check_Dispatching_Operation): If the subprogram is not a dispatching
9742 operation, check the formals to handle the case in which it is
9743 associated with an abstract interface type.
9745 2006-10-31 Robert Dewar <dewar@adacore.com>
9746 Ed Schonberg <schonberg@adacore.com>
9748 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
9749 Add new calls to this procedure during traversal
9750 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
9751 another unit if expansion is disabled.
9753 2006-10-31 Robert Dewar <dewar@adacore.com>
9755 * sem_eval.adb (Compile_Time_Compare): Make use of information from
9756 Current_Value in the conditional case, to evaluate additional
9757 comparisons at compile time.
9759 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9760 Hristian Kirtchev <kirtchev@adacore.com>
9761 Javier Miranda <miranda@adacore.com>
9763 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
9764 subprogram type to provide better diagnostics in case of ambiguity.
9765 (Covers): Handle coverage of formal and actual anonymous access types in
9766 the context of generic instantiation.
9767 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
9768 abstract interface types; this is required to handle concurrent types
9769 with discriminants and abstract interface types.
9770 (Covers): Include type coverage of both regular incomplete subtypes and
9771 incomplete subtypes of incomplete type visibles through a limited with
9774 2006-10-31 Robert Dewar <dewar@adacore.com>
9775 Hristian Kirtchev <kirtchev@adacore.com>
9776 Ed Schonberg <schonberg@adacore.com>
9778 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
9779 messages for entities in packages which are not used.
9780 (Collect_Synchronized_Interfaces): New procedure.
9781 (Overrides_Synchronized_Primitive): New function.
9782 (Denotes_Discriminant): Extend predicate to apply to task types.
9783 Add missing continuation marks in error msgs
9784 (Unqualify): New function for removing zero or more levels of
9785 qualification from an expression. There are numerous places where this
9786 ought to be used, but we currently only deal properly with zero or one
9788 (In_Instance); The analysis of the actuals in the instantiation of a
9789 child unit is not within an instantiation, even though the parent
9790 instance is on the scope stack.
9791 (Safe_To_Capture_Value): Exclude the case of variables that are
9793 (Check_Obsolescent): Removed
9794 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
9795 is an aliased view, even when rewritten as a reference to the target
9796 object in an assignment.
9797 (Get_Subprogram_Entity): New function
9798 (Known_To_Be_Assigned): New function
9799 (Type_Access_Level): Compute properly the access level of a return
9800 subtype that is an anonymous access type.
9801 (Explain_Limited_Type): Correct use of "\" for continuation messages.
9802 (Is_Transfer): The new extended_return_statement causes a transfer of
9804 (Has_Preelaborable_Initialization): New function
9805 (Has_Null_Exclusion): New function. Given a node N, determine whether it
9806 has a null exclusion depending on its Nkind.
9807 Change Is_Lvalue to May_Be_Lvalue
9808 (May_Be_Lvalue): Extensive additional code to deal with subprogram
9809 arguments (IN parameters are not Lvalues, IN OUT parameters are).
9810 (Safe_To_Capture_Value): Extend functionality so it can be used for
9811 the current value condition case.
9812 (Has_Compatible_Alignment): New function
9813 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
9814 objects to handle the Ada 2005 case, where aliasedness no longer implies
9815 that the object is constrained. In particular, for dereferenced names,
9816 the designated object must be assumed to be unconstrained.
9817 (Kill_Current_Values): Properly deal with the case where we encounter
9818 a loop in the scope chain.
9819 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
9821 (Compile_Time_Constraint_Error): Improve error message in error case
9823 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
9824 associated with entities of abstract interface primitives.
9825 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
9827 2006-10-31 Robert Dewar <dewar@adacore.com>
9829 * s-osinte-tru64.adb:
9830 Mark Asm statements Volatile to prevent warnings (seems a
9831 reasonable change anyway)
9834 * s-mastop-irix.adb: Add Volatile to Asm statements
9835 Suppresses warning, and seems appropriate in any case
9837 * s-osinte-vms.adb: Add Volatile to Asm statement
9839 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
9841 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
9843 Add call to Check_Code_Statement
9845 2006-10-31 Robert Dewar <dewar@adacore.com>
9846 Ed Schonberg <schonberg@adacore.com>
9847 Bob Duff <duff@adacore.com>
9849 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
9850 Synchronized_Present): Add Formal_Derived_Type_Definition and
9851 Private_Extension_Declaration to the list of assertions.
9852 (Is_Entry_Barrier_Function): New flag
9853 (Has_Self_Reference): New flag on aggregates, to indicate that they
9854 contain a reference to the enclosing type, inserted through a default
9856 (Next_Rep_Item): Move from Node4 to Node5.
9857 (Entity): Add this field for N_Attribute_Definition_Clause.
9858 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
9859 (N_Return_Object_Declaration): Remove this node kind. We now use
9860 N_Object_Declaration instead.
9861 (Actual_Designated_Subtype): Move to a different place to make room in
9862 N_Extended_Return_Statement.
9863 (Procedure_To_Call): Move to a different place to make room in
9864 N_Extended_Return_Statement.
9865 (Return_Type): Removed this field to make room in return statements
9867 (Return_Statement_Entity): New field in return statements, in part to
9868 replace Return_Type, and in part to support the fact that return
9869 statements are now pushed on the scope stack during semantic analysis.
9870 (Return_Object_Declarations): New field to support extended return
9872 (N_Extended_Return_Statement): New node for extended_return_statement
9874 (N_Return_Object_Declaration): New node for part of
9875 extended_return_statement nonterminal. Needed because all the necessary
9876 fields won't fit in N_Extended_Return_Statement.
9877 Generic_associations now carry the Box_Present flag, to indicate a
9878 default for an actual in a partially parametrized formal package.
9880 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
9881 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
9882 and for the new predefined dispatching policies: EDF_Across_Priorities,
9883 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
9884 Introduce new name Stub_Type for implementation defined attribute.
9885 Add pragma Preelaborable_Initialization
9886 Add entry for Priority attribute.
9887 Add Pragma_Wide_Character_Encoding
9888 (Get_Convention_Name): Given a convention id, this function returns the
9889 corresponding name id from the names table.
9891 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9892 Robert Dewar <dewar@adacore.com>
9893 Bob Duff <duff@adacore.com>
9895 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
9896 print null exclusion twice in the case of an access definition,
9897 Implement new -gnatL switch
9898 Remove N_Return_Object_Declaration. We now use
9899 N_Object_Declaration instead. Implement the case for
9900 N_Extended_Return_Statement. Alphabetize the cases.
9901 Add cases for new nodes N_Extended_Return_Statement and
9902 N_Return_Object_Declaration. The code is not yet written.
9903 Update the output for N_Formal_Object_Declaration
9904 and N_Object_Renaming_Declaration.
9905 (Write_Itype): Account for the case of a modular integer subtype whose
9906 base type is private.
9908 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9910 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
9911 Remove elaboration code, now done in the binder.
9913 * s-rident.ads: Make this unit Preelaborate.
9914 (No_Restrictions): New constant used to clean up code and follow
9915 preelaborate constraints.
9918 Add System.Restrictions dependence, referenced directly from the
9919 binder generated file.
9921 2006-10-31 Gary Dismukes <dismukes@adacore.com>
9923 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
9924 True when AAMP extended floating-point is in use (48-bit). Change type
9925 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
9926 the two byte array types on AFloat. Change type of IV_Ilf overlay
9927 variable from Byte8 to ByteLF. Add appropriate initializations of
9928 floating-point overlays for AAMP cases.
9930 2006-10-31 Javier Miranda <miranda@adacore.com>
9932 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
9933 (Get_Ceiling): New subprogram that returns
9934 the ceiling priority of the protected object.
9935 (Set_Ceiling): New subprogram that sets the new ceiling priority of
9936 the protected object.
9938 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
9940 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
9942 2006-10-31 Jose Ruiz <ruiz@adacore.com>
9944 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
9945 requeuing to the same protected object to give higher priority tasks
9946 the opportunity to execute.
9948 2006-10-31 Robert Dewar <dewar@adacore.com>
9950 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
9951 add more precise check for the character sequence that follows '[' to
9952 avoid possible confusion in case if '[' is the last character of a
9954 (Scan_Wide): Always allow brackets encoding
9956 2006-10-31 Olivier Hainque <hainque@adacore.com>
9958 * s-stchop.ads: make this unit preelaborate. This is desirable in
9959 general and made mandatory by the use of this unit by s-taprop which
9960 is itself preelaborate.
9962 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
9963 Td_Events component.
9965 2006-10-31 Vincent Celier <celier@adacore.com>
9967 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
9970 2006-10-31 Vincent Celier <celier@adacore.com>
9972 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
9974 2006-10-31 Vincent Celier <celier@adacore.com>
9976 * makegpr.adb (Check_Compilation_Needed): Take into account path names
9978 (Check_Compilation_Needed): When checking a C or C++ source, do not
9979 resolve symbolic links.
9980 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
9981 When not in verbose mode and Ellipse is True, display "..." for the
9982 first argument with Display set to False.
9983 (Build_Global_Archive): Always set Display True for the first object
9984 file. Call Display_Command with Ellipse set to True.
9986 2006-10-31 Matt Heaney <heaney@adacore.com>
9988 * a-crbtgo.ads: Commented each subprogram
9990 * a-crbtgo.adb: Added reference to book from which algorithms were
9993 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
9994 indicate which child.
9995 (Generic_Conditional_Insert): changed parameter name from "Success" to
9997 (Generic_Unconditional_Insert_With_Hint): improved algorithm
9999 * a-coorse.adb (Replace_Element): changed parameter name in call to
10000 conditional insert operation.
10002 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
10004 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
10007 * a-ciorse.adb (Replace_Element): changed parameter name in call to
10008 conditional insert operation.
10010 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
10013 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
10014 instead of mode inout.
10016 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
10018 (Generic_Read): preserve existing buckets array if possible
10019 (Generic_Write): don't send buckets array length anymore
10021 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
10022 instead of mode inout.
10024 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
10025 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
10027 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
10028 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
10029 (Replace_Element): local operation is now an instantiation
10031 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
10032 check current length.
10033 (Generic_Replace_Element): new operation
10035 2006-10-31 Doug Rupp <rupp@adacore.com>
10037 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
10038 Call TBK$SYMBOLIZE without omitting parameters.
10040 2006-10-31 Vincent Celier <celier@adacore.com>
10042 * symbols-processing-vms-ia64.adb,
10043 symbols-processing-vms-alpha.adb (Process): Do not include symbols
10044 that come from generic instantiations in bodies.
10046 2006-10-31 Pat Rogers <rogers@adacore.com>
10048 * a-rttiev.ads, a-rttiev.adb:
10049 This is a significant redesign primarily for the sake of automatic
10050 timer task termination but also to fix a design flaw.
10051 Therefore we are now using an RTS lock, instead of a protected
10052 object, to provide mutual exclusion to the queue of pending events
10053 and the type Timing_Event is no longer a protected type.
10055 2006-10-31 Robert Dewar <dewar@adacore.com>
10056 Cyrille Comar <comar@adacore.com>
10057 Ben Brosgol <brosgol@adacore.com>
10059 * debug.adb: Update flags documentation
10061 * gnat_ugn.texi: Add documentation for new -gnatwq switch
10062 Clean up documentation for several other warning switches
10063 Clarify how task stack size can be specified with various
10064 versions of Windows.
10065 Add note that -gnatVo includes ranges including loops
10066 Add documentation for -gnatL switch
10067 Add note on elaboration warning for initializing variables
10068 Add documentation for new -gnatwt warning switch
10069 Document new form of pragma Warnings (On|Off, string)
10070 Add comment on use of pragma Warnings to control warnings
10071 Add documentation for -gnatjnn switch
10072 Modify section on interfacing with C for VMS 64-bit.
10073 Add doc for -gnatVe/E
10074 Add documentation of new warning flags -gnatww/-gnatwW
10075 Add warnings about address clause overlays to list of warnings
10076 (Exception Handling Control): Document that the option --RTS must be
10077 used consistently for gcc and gnatbind.
10078 Clarify that inlining is not always possible
10079 Update documentation on pragma Unchecked_Union.
10082 Add documentation for new extended version of pragma Obsolescent
10083 Add documentation for implementation defined attribute 'Stub_Type.
10084 Add note on use of Volatile in asm statements
10085 Add documentation on use of pragma Unreferenced in context clause
10086 Document new form of pragma Warnings (On|Off, pattern)
10087 Document pragma Wide_Character_Encoding
10088 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
10089 enforced if code generation is active.
10090 Add section on pragma Suppress to document GNAT specific check
10092 Clarify difference between No_Dispatching_Calls & No_Dispatch.
10093 Add documentation for pragma Restrictions (No_Elaboration_Code)
10096 Add comments on layout of subprogram local variables in the
10097 presence of nested subprograms.
10099 * ug_words: Resync.
10101 * elists.ads: Minor reformatting
10102 Node returns Node_Or_Entity_Id (doc change only)
10104 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
10106 * g-arrspl.ads (Create): Update comments.
10108 * sem.ads: Add details on the handling of the scope stack.
10110 * usage.adb: Update documentation.
10112 * validsw.ads, validsw.adb:
10113 Add definition of Validity_Check_Components and implement -gnatVe/E
10115 * vms_data.ads: Add missing VMS qualifiers.
10117 * s-addope.ads: Add documentation on overflow and divide by zero
10119 2006-10-31 Robert Dewar <dewar@adacore.com>
10120 Thomas Quinot <quinot@adacore.com>
10121 Arnaud Charlet <charlet@adacore.com>
10123 * fmap.adb: Put routines in alpha order
10125 * g-boumai.ads: Remove redundant 'in' keywords
10127 * g-cgi.adb: Minor reformatting
10129 * g-cgi.ads: Remove redundant 'in' keywords
10131 * get_targ.adb: Put routines in alpha order
10133 * prj-attr.ads: Minor reformatting
10135 * s-atacco.ads: Minor reformatting
10137 * scn.adb: Put routines in alpha order
10139 * sinput-l.adb: Minor comment fix
10141 * sinput-p.adb: Minor comment fix
10143 * s-maccod.ads: Minor reformatting
10145 * s-memory.adb: Minor reformatting
10147 * s-htable.adb: Fix typo in comment.
10149 * s-secsta.adb: Minor comment update.
10151 * s-soflin.adb: Minor reformatting
10154 Add comment about odd qualification in Storage_Offset declaration
10157 Remove unnecessary 'in' keywords for formal parameters.
10159 * treeprs.adt: Minor reformatting
10161 * urealp.adb: Put routines in alpha order
10163 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
10166 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
10168 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
10170 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
10171 workaround as on other platforms.
10173 * g-eacodu-vms.adb: Remove redundant 'in' keywords
10174 * g-expect-vms.adb: Remove redundant 'in' keywords
10176 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
10177 clear error message if the list-of-files file cannot be opened.
10179 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
10180 equality operator is always visible.
10182 * lang.opt: Woverlength-strings: New option.
10185 Update copyright, since nmake.ads and nmake.adb have changed.
10187 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
10188 (Binder_Output_Time_Stamps_Set): removed.
10189 (Old_Binder_Output_Time_Stamp): idem.
10190 (New_Binder_Output_Time_Stamp): idem.
10191 (Recording_Time_From_Last_Bind): idem.
10192 (Recording_Time_From_Last_Bind): Make constant.
10194 * output.ads, output.adb (Write_Str): Allow LF characters
10195 (Write_Spaces): New procedure
10197 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
10199 * inline.adb: Minor reformatting
10201 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
10203 * s-mastop-vms.adb: Remove redundant 'in' keywords
10205 * s-osprim-vms.adb: Remove redundant 'in' keywords
10207 * s-trafor-default.adb: Remove redundant 'in' keywords
10209 * 9drpc.adb: Remove redundant 'in' keywords
10211 * s-osinte-mingw.ads: Minor reformatting
10213 * s-inmaop-posix.adb: Minor reformatting
10215 * a-direio.ads: Remove quotes from Compile_Time_Warning message
10217 * a-exexda.adb: Minor code reorganization
10219 * a-filico.adb: Minor reformatting
10221 * a-finali.adb: Minor reformatting
10223 * a-nudira.ads: Remove quote from Compile_Time_Warning message
10225 * a-numeri.ads: Minor reformatting
10227 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
10229 * exp_pakd.ads: Fix obsolete comment
10231 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
10232 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
10233 Probably not a bug, but certainly neater and more efficient.
10235 * a-tienio.adb: Minor reformatting
10237 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
10238 Avoid assuming low bound of string is 1.
10240 * gnatbind.adb: Change Bindusg to package and rename procedure as
10241 Display, which now ensures that it only outputs usage information once.
10242 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
10244 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
10247 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
10249 (Match): Add pragma Assert to ensure that Matches'First is zero
10251 * g-regpat.ads (Match): Document that Matches lower bound must be zero
10253 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
10254 documented preconditions (also kills warnings about bad indexes).
10256 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
10258 (Build_Import_Library): Ditto;
10260 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
10262 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
10264 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
10265 lower bound of choice table is 1.
10267 * sem_case.ads (Analyze_Choices): Document that lower bound of
10270 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
10273 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
10274 and add appropriate Assert pragma to suppress warnings.
10276 * atree.h, atree.ads, atree.adb
10277 Change Elist24 to Elist25
10278 Add definitions of Field28 and Node28
10279 (Traverse_Field): Use new syntactic parent table in sinfo.
10281 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
10283 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
10285 * exp_tss.adb: Put routines in alpha order
10287 * fe.h: Remove redundant declarations.
10289 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
10291 * utils.c (builtin_function): Rename to gnat_builtin_function.
10292 Move common code to add_builtin_function.
10293 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
10294 gnat_builtin_function.
10295 * gigi.h (builtin_function): Rename to gnat_builtin_function.
10296 Change the signature.
10298 2006-10-16 Brooks Moses <bmoses@stanford.edu>
10300 * Makefile.in: Add TEXI2PDF definition.
10301 * Make-lang.in: Add "ada.pdf" target.
10303 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
10305 * decl.c, utils.c: Fix comment typos.
10306 * utils.c: Fix a typo.
10308 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
10310 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
10311 on "pure" Ada subprograms if SJLJ exceptions are used.
10312 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
10313 on the declaration node of JMPBUF_SAVE.
10314 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
10315 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
10316 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
10318 2006-08-20 Laurent GUERBY <laurent@guerby.net>
10321 g-socket.adb (Bind_Socket): Call Set_Address.
10323 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
10326 * decl.c (same_discriminant_p): New static function.
10327 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
10328 subtype and we have discriminants, fix up the COMPONENT_REFs
10329 for the discriminants to make them reference the corresponding
10330 fields of the parent subtype after it has been built.
10332 2006-09-15 Roger Sayle <roger@eyesopen.com>
10335 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
10336 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
10338 2006-09-13 Olivier Hainque <hainque@adacore.com>
10341 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
10342 of a SAVE_EXPR, just make the operand addressable/not-readonly and
10343 let the common gimplifier code make and propagate a temporary copy.
10344 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
10345 out/in-out actuals and defer setting the addressable/readonly bits
10348 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
10351 * decl.c (components_to_record): Defer emitting debug info for the
10352 record type associated with the variant until after we are sure to
10355 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
10358 * gigi.h (gnat_internal_attribute_table): Declare.
10359 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
10360 * utils.c (gnat_internal_attribute_table): New global variable.
10361 (builtin_function): Always call decl_attributes on the builtin.
10362 (handle_const_attribute): New static function.
10363 (handle_nothrow_attribute): Likewise.
10365 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
10367 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
10369 2006-06-23 Olivier Hainque <hainque@adacore.com>
10371 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
10372 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
10374 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
10375 Eric Botcazou <ebotcazou@adacore.com>
10378 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
10379 check-gnat into check-acats.
10381 2006-06-17 Karl Berry <karl@gnu.org>
10383 * gnat-style.texi (@dircategory): Use "Software development"
10384 instead of "Programming", following the Free Software Directory.
10386 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10389 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
10391 2006-06-06 Laurent GUERBY <laurent@guerby.net>
10394 mlib-utl.adb: Use Program_Name.
10396 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
10398 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
10399 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
10400 trans.c, utils.c: Fix comment typos. Follow spelling
10402 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
10405 2006-05-19 Nicolas Setton <setton@adacore.com>
10407 * misc.c (gnat_dwarf_name): New function.
10408 (LANG_HOOKS_DWARF_NAME): Define to it.
10410 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
10412 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
10413 (ada/misc.o): Likewise.
10414 (ada/utils.o): Likewise.
10416 2006-04-08 Aurelien Jarno <aurel32@debian.org>
10418 * Makefile.in: Add Ada support for GNU/kFreeBSD.
10419 * s-osinte-kfreebsd-gnu.ads: New file.
10421 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
10423 * Make-lang.in: Rename docdir to gcc_docdir.
10425 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
10427 * gigi.h (get_ada_base_type): Delete.
10428 * utils2.c (get_ada_base_type): Likewise.
10429 * trans.c (convert_with_check): Operate in the real base type.
10431 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10433 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
10435 2006-03-02 Richard Sandiford <richard@codesourcery.com>
10437 * utils.c (create_var_decl): Use have_global_bss_p when deciding
10438 whether to make the decl common.
10440 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
10442 * Make-lang.in (Ada): Remove.
10443 (.PHONY): Remove Ada
10445 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10447 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
10448 aggregate, check the interpretations of the other operand to find one
10449 that may be a boolean array.
10451 (Analyze_Selected_Component): Fix flow-of-control typo in case where
10452 the prefix is a private extension.
10454 2006-02-17 Eric Botcazou <botcazou@adacore.com>
10457 * utils2.c (find_common_type): If both input types are BLKmode and
10458 have the same constant size, keep using the first one.
10460 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
10462 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
10464 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
10466 2006-02-17 Jose Ruiz <ruiz@adacore.com>
10468 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
10469 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
10470 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
10471 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
10472 Abort_Defer/Undefer pairs to avoid the possibility of a task being
10473 aborted while owning a lock.
10475 2006-02-17 Javier Miranda <miranda@adacore.com>
10476 Robert Dewar <dewar@adacore.com>
10478 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
10479 through an access to class-wide interface we force the displacement of
10480 the pointer to the allocated object to reference the corresponding
10481 secondary dispatch table.
10482 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
10483 if Long_Shifts are supported on the target, even if 64 bit divides
10484 are not supported (configurable run time mode).
10485 (Expand_N_Type_Conversion): Do validity check if validity checks on
10486 operands are enabled.
10487 (Expand_N_Qualified_Expression): Do validity check if validity checks
10488 on operands are enabled.
10490 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10492 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
10493 must be materialized when the renamed expression is an explicit
10496 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10498 * freeze.adb (Statically_Discriminated_Components): Return false if
10499 the bounds of the type of the discriminant are not static expressions.
10501 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
10502 the bounds of the discriminant type are not static.
10504 2006-02-17 Robert Dewar <dewar@adacore.com>
10506 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
10507 then we close To if it is valid.
10509 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
10511 * init.c (facility_resignal_table): new array
10512 (__gnat_default_resignal_p): enhance default predicate to resignal if
10513 VMS condition has one of the predefined facility codes.
10515 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
10517 * Makefile.in: Use VMS64 specialized versions of several units in
10518 Interfaces.C hierarchy to be compatible with HP C default size choices.
10519 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
10521 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10523 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
10524 instantiation, the corresponding entity is the related_instance of the
10525 wrapper package created for the instance.
10527 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10529 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
10530 the current instance is nested within another instance in a child unit.
10532 2006-02-17 Javier Miranda <miranda@adacore.com>
10533 Ed Schonberg <schonberg@adacore.com>
10535 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
10536 type we cannot inherit the primitive operations; we inherit the
10537 Corresponding_Record_Type (which has the list of primitive operations).
10538 (Check_Anonymous_Access_Types): When creating anonymous access types for
10539 access components, use Rewrite in order to preserve the tree structure,
10541 (Analyze_Object_Declaration): For limited types with access
10542 discriminants with defaults initialized by an aggregate, obtain
10543 subtype from aggregate as for other mutable types.
10544 (Derived_Type_Declaration): If the derived type is a limited interface,
10545 set the corresponding flag (Is_Limited_Record is not sufficient).
10547 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10549 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
10550 to inline a function that returns an unconstrained type, the return
10551 expression must be the first variable declared in the body of the
10554 2006-02-17 Javier Miranda <miranda@adacore.com>
10556 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
10557 abstract interface type, the static analysis is not enough to know if
10558 the interface is implemented or not by the source tagged type. Hence
10559 we must pass the work to the expander to generate the required code to
10560 evaluate the conversion at run-time.
10561 (Resolve_Equality_Op): Do not apply previous
10562 transformation if expansion is disasbled, to prevent anomalies when
10563 locating global references in a generic unit.
10565 2006-02-17 Vincent Celier <celier@adacore.com>
10567 * snames.ads, snames.adb: New standard names for new project attributes:
10568 archive_builder, archive_indexer, compiler_pic_option,
10569 config_body_file_name, config_body_file_name_pattern,
10570 config_file_switches, config_file_unique, config_spec_file_name,
10571 config_spec_file_name_pattern, default_builder_switches,
10572 default_global_compiler_switches, default_language,
10573 dependency_file_kind, global_compiler_switches, include_path,
10574 include_path_file, language_kind, linker_executable_option,
10575 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
10576 roots, runtime_project.
10578 2006-02-17 Matthew Heaney <heaney@adacore.com>
10580 * a-convec.ads, a-convec.adb:
10581 (operator "&"): handle potential overflow for large index types
10582 (Insert): removed Contraint_Error when using large index types
10583 (Insert_Space): removed Constraint_Error for large index types
10584 (Length): moved constraint check from Length to Insert
10586 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
10587 as not null access.
10588 Explicit raise statements now include an exception message.
10589 (operator "&"): handle potential overflow for large index types
10590 (Insert): removed Contraint_Error when using large index types
10591 (Insert_Space): removed Constraint_Error for large index types
10592 (Length): moved constraint check from Length to Insert
10594 2006-02-17 Robert Dewar <dewar@adacore.com>
10596 * s-wchcnv.adb: Document handling of [ on output (we do not change
10597 this to ["5B"] and the new comments say why not.
10600 Add note for -gnatVo that this now includes the cases of type
10601 conversions and qualified expressions.
10602 Add comments on handling of brackets encoding for Text_IO
10604 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
10605 Thomas Quinot <quinot@adacore.com>
10606 Robert Dewar <dewar@adacore.com>
10607 Javier Miranda <miranda@adacore.com>
10609 * expander.adb: Fix typo in comment
10611 * exp_pakd.adb: Fix typo
10612 Minor comment reformatting.
10614 * g-dyntab.adb: Minor reformatting
10616 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
10617 aliased subprograms to look for the abstract interface subprogram.
10619 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
10621 * env.c (__gnat_setenv): Use size_t.
10622 (__gnat_unsetenv): Likewise.
10623 (__gnat_clearenv): Likewise.
10625 2006-02-16 Arnaud Charlet <charlet@adacore.com>
10627 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
10629 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10631 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
10632 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
10633 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
10634 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
10635 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
10636 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
10637 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
10638 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
10639 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
10642 2006-02-13 Jose Ruiz <ruiz@adacore.com>
10644 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
10645 protection against race conditions is not needed.
10646 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
10648 (Set_Specific_Handler): Add mutual exclusive access to the specific
10650 (Specific_Handler): Add mutual exclusive access for retrieving the
10653 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
10656 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
10657 Fall_Back_Handler and Specific_Handler.
10659 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
10660 termination handlers.
10661 Set two different owerflow depending on the maximal stack size.
10663 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
10664 protection against race conditions is not needed when executing the
10665 task termination handler.
10667 2006-02-13 Robert Dewar <dewar@adacore.com>
10669 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
10670 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
10671 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
10672 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
10673 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
10674 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
10675 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
10676 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
10677 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
10678 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
10679 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
10680 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
10681 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
10682 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
10683 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
10684 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
10685 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
10686 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
10687 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
10688 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
10689 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
10690 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
10691 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
10692 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
10693 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
10694 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
10695 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
10696 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
10697 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
10698 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
10699 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
10700 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
10701 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
10702 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
10705 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
10707 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
10708 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
10709 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
10710 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
10711 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
10712 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
10713 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
10714 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
10715 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
10717 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10719 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
10720 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
10721 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
10722 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
10723 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
10724 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
10725 replaced by anonymous access type.
10726 (pthread_sigmask): Now take an access sigset_t
10728 * s-osinte-hpux.ads: Ditto.
10729 (pthread_mutex_t, pthread_cond_t): Update definitions to support
10730 properly 32 and 64 bit ABIs.
10732 2006-02-13 Pascal Obry <obry@adacore.com>
10734 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
10735 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
10736 s-taprop-linux.adb, s-taprop-solaris.adb,
10737 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
10738 adjustement is already done when calling this routine.
10740 2006-02-13 Pascal Obry <obry@adacore.com>
10742 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
10743 table to take advantage of the 16 priority levels available on Windows
10744 2000 and XP. On NT4 there are only 7 priority levels, this is properly
10745 supported by this new mapping.
10747 2006-02-13 Nicolas Setton <setton@adacore.com>
10749 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
10750 (get_encoding): New subprogram. Extracts the encodings from an encoded
10753 2006-02-13 Pascal Obry <obry@adacore.com>
10754 Nicolas Roche <roche@adacore.com>
10755 Arnaud Charlet <charlet@adacore.com>
10757 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
10759 (__gnat_try_lock): Add unicode support by using a specific section on
10761 (__gnat_get_current_dir): Idem.
10762 (__gnat_open_read): Idem.
10763 (__gnat_open_rw): Idem.
10764 (__gnat_open_create): Idem.
10765 (__gnat_create_output_file): Idem.
10766 (__gnat_open_append): Idem.
10767 (__gnat_open_new): Idem.
10768 (__gnat_file_time_name): Idem.
10769 (__gnat_set_file_time_name): Idem.
10770 (__gnat_stat): Idem.
10771 (win32_no_block_spawn): Idem.
10772 (__gnat_locate_exec_on_path): Idem.
10773 (__gnat_opendir): New routine.
10774 (__gnat_closedir): Idem.
10775 (__gnat_readdir): Add new parameter length (pointer to int). Update
10776 implementation to use it and add specific Win32 code for Unicode
10778 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
10779 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
10780 (convert_addresses): Do not define this dummy routine on VMS.
10782 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
10783 runtime Unicode support will be activated.
10784 (S2WS): String to Wide-String conversion. This version just copy a
10785 string in non Unicode version.
10786 (WS2S): Wide-String to String conversion. This version just copy a
10787 string in non Unicode version.
10789 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
10790 (Open): Now import __gnat_opendir from adaint.c.
10791 (Read): Change the implementation to support unicode characters. It is
10792 not possible to use strlen() on Windows as this version supports only
10793 standard ASCII characters. So the length of the directory entry is now
10794 returned from the imported __gnat_readdir routine.
10795 Update copyright notice.
10797 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
10798 (opendir): Moved to adaint.c.
10800 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
10801 (Get_Directory): Fix wrong indexing.
10802 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
10803 __gnat_getenv from env.c
10804 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
10807 * env.h, env.c: New file.
10809 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
10810 adaint.c by __gnat_getenv from env.c
10812 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
10813 adaint.c by __gnat_getenv from env.c
10815 * Make-lang.in: Add env.o in the list of C object needed by gnat1
10817 Update dependencies.
10819 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10820 Olivier Hainque <hainque@adacore.com>
10821 Eric Botcazou <ebotcazou@adacore.com>
10823 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
10825 * gigi.h (value_factor_p): Add prototype and description, now public.
10827 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
10828 promotion for field with rep clause if the associated size was proven
10830 Expand comments describing attempts to use a packable type.
10831 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
10832 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
10833 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
10834 necessary since these are not different types and pointers may
10835 actually designate any subtype in this hierarchy.
10836 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
10837 discriminants but put them into record only if not Unchecked_Union;
10838 pass flag to components_to_record showing Unchecked_Union.
10839 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
10840 components before variants; don't set TYPE_UNCHECKED_UNION_P.
10841 (components_to_record): New argument UNCHECKED_UNION.
10842 Remove special case code for Unchecked_Union and instead use main code
10843 with small changes.
10846 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
10847 variable with the expression being built, only its inner field.
10849 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
10850 emit_sequence_entry_statements.
10851 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
10852 (establish_gnat_vms_condition_handler): Move before
10853 Subprogram_Body_to_gnu.
10854 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
10855 for a subprogram if it has a foreign convention or is exported.
10856 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
10857 substituted for a CONST_DECL.
10858 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
10859 Etype to assoc_to_constructor.
10860 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
10861 discriminants of Unchecked_Union.
10862 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
10863 don't need cluttering preprocessor directives.
10864 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
10865 condition handler as current in the compiled function.
10866 (body_with_handlers_p): New function. Tell whether a given sequence of
10867 statements node is attached to a package or subprogram body and involves
10868 exception handlers possibly nested within inner block statements.
10869 (emit_sequence_entry_statements): New function, to emit special
10870 statements on entry of sequences when necessary. Establish GNAT
10871 condition handler in the proper cases for VMS.
10872 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
10873 emit_sequence_entry_statements.
10875 * utils2.c (find_common_type): If both input types are BLKmode and
10876 have a constant size, use the smaller one.
10877 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
10880 * utils.c (value_factor_p): Make public, to allow uses from other gigi
10882 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
10883 (convert, case UNION_TYPE): Remove special treatment for unchecked
10887 (update_pointer_to): Update variants of pointer types to unconstrained
10888 arrays by attaching the list of fields of the main variant.
10890 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10891 Robert Dewar <dewar@adacore.com>
10893 * a-exexpr.adb, a-exexpr-gcc.adb
10894 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
10895 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
10896 Remove code unused for exception propagation for the compiler itself
10897 from a-except.adb and update to still share separate packages.
10899 * a-except.ads, a-except.adb: Ditto.
10900 Add comments that this version is now used only by the compiler and
10901 other basic tools. The full version that includes the Ada 2005 stuff
10902 is in separate files a-except-2005.ads/adb. The reason is that we do
10903 not want to cause bootstrap problems with compilers not recognizing
10905 Add exception reason code PE_Implicit_Return
10906 Add new exception reason code (Null Exception_Id)
10908 * a-except-2005.adb, a-except-2005.ads: New files.
10910 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
10912 * s-wchcon.adb: New file.
10914 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
10915 (traceback.o deps): Likewise.
10916 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
10917 Activate build of GMEM instrumentation library on VMS targets.
10918 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
10919 Use a-except-2005.ads/adb for all run-time library builds unless
10920 specified otherwise.
10921 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
10922 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
10923 Use s-parame.adb on all native platforms.
10924 Use s-parame-vxworks.adb on all vxworks platforms.
10925 Add env.c env.h in LIBGNAT_SRCS
10926 Add env.o in LIBGNAT_OBJS
10927 (GNATMAKE_OBJS): Remove ctrl_c.o object.
10928 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
10929 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
10930 supports VxWorks 6 RTPs.
10931 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
10932 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
10934 * types.h, types.ads (Terminate_Program): New exception
10935 Add comment on modifying multiple versions of a-except.adb when the
10936 table of exception reasons is modified.
10937 Add exception reason code PE_Implicit_Return
10938 Add new exception reason code (Null Exception_Id)
10940 * clean.adb (Initialize): Get the target parameters before checking
10941 if target is OpenVMS. Move the OpenVMS specific code here from package
10942 body elaboration code.
10944 2006-02-13 Thomas Quinot <quinot@adacore.com>
10945 Vincent Celier <celier@adacore.com>
10946 Robert Dewar <dewar@adacore.com>
10948 * ali-util.adb (Get_File_Checksum): Update to account for change in
10949 profile of Initialize_Scanner.
10951 * gprep.adb (Gnatprep): Update to account for change in profile of
10952 Initialize_Scanner.
10953 (Process_One_File): Same.
10955 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
10956 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
10957 that behaviour using the new Unit information recorded in the source
10958 files table, rather than going through all units every time.
10959 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
10960 (Get_Source_Unit): Same.
10962 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
10963 change in profile of Initialize_Scanner.
10964 (Prepare_To_Preprocess): Same.
10966 * lib.ads: Fix typo in comment (templace -> template).
10968 * prj-part.adb (Parse_Single_Project): Update to account for change in
10969 profile of Initialize_Scanner.
10971 * scn.adb (Initialize_Scanner): Account for change in profile of
10972 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
10973 Also record the association of the given Source_File_Index to the
10974 corresponding Unit_Number_Type.
10976 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
10978 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
10979 Remove Unit formal for generic scanner: this formal
10980 is only relevant to Scn (the scanner instance used to parse Ada source
10981 files), not to other instances. Update comment accordingly.
10982 (Scan): Use new function Snames.Is_Keyword_Name.
10984 * sinfo-cn.adb: Fix typo in comment.
10986 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
10989 * sinput.ads (Source_File_Record): New component Unit, used to capture
10990 the unit identifier (if any) associated to a source file.
10992 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
10993 Unit in Source_File_Record.
10995 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
10996 in profile of Initialize_Scanner.
10998 * scans.adb (Initialize_Ada_Keywords): New procedure
11000 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
11001 Ada keywords in the Namet table, without the need to call
11002 Initialize_Scanner.
11004 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
11005 (Is_Keyword_Name): New function
11007 * snames.ads: Add subtype Configuration_Pragma_Names
11008 Add pragma Ada_2005 (synonym for Ada_05)
11009 (Is_Keyword_Name): New function
11011 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
11013 2006-02-13 Arnaud Charlet <charlet@adacore.com>
11015 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
11018 * a-stwima.adb (To_Set): Add extra check when N = 0.
11020 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
11022 2006-02-13 Arnaud Charlet <charlet@adacore.com>
11024 * s-parame-mingw.adb, s-parame-linux.adb,
11025 s-parame-solaris.adb: Removed, replaced by s-parame.adb
11027 * s-parame-vxworks.ads: Fix typo.
11029 * s-parame-vxworks.adb: New file.
11031 * s-parame.adb: Version now used by all native platforms.
11032 (Default_Stack_Size): Use 2 megs for default stack size and use
11033 __gl_default_stack_size when available.
11034 (Minimum_Stack_Size): Use 12K.
11036 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
11037 (Create_Task): Refine implementation taking advantage of the XP stack
11038 size support. On XP, we now create the thread using the flag
11039 STACK_SIZE_PARAM_IS_A_RESERVATION.
11041 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
11043 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
11044 XP and 0 on older Windows versions.
11046 * interfac-vms.ads: Removed, no longer used.
11048 2006-02-13 Matthew Heaney <heaney@adacore.com>
11050 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
11051 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
11052 a-cohase.adb: All explicit raise statements now include an exception
11055 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
11056 (Update_Element_Preserving_Key): renamed op to just Update_Element.
11057 Explicit raise statements now include an exception message
11059 * a-cihase.ads, a-cohase.ads: Removed comment.
11061 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
11062 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
11063 a-szbzha.adb, a-szfzha.ads: New files.
11065 2006-02-13 Matthew Heaney <heaney@adacore.com>
11067 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
11070 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
11072 * lang.opt: Wvariadic-macros: New option.
11073 Wold-style-definition: Likewise.
11074 Wmissing-format-attribute: Likewise.
11076 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
11077 -Wold-style-definition and -Wmissing-format-attribute.
11079 2006-02-13 Robert Dewar <dewar@adacore.com>
11081 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
11083 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
11085 2006-02-13 Nicolas Roche <roche@adacore.com>
11087 * a-envvar.adb, a-envvar.ads: New files.
11089 2006-02-13 Douglas Rupp <rupp@adacore.com>
11091 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
11093 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
11095 2006-02-13 Pat Rogers <rogers@adacore.com>
11097 * a-rttiev.adb, a-rttiev.ads: New files.
11099 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
11101 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
11102 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
11104 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
11106 2006-02-13 Robert Dewar <dewar@adacore.com>
11108 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
11109 sem_case.adb: Minor code reorganization (not Present should be No)
11111 2006-02-13 Geert Bosch <bosch@adacore.com>
11112 Gary Dismukes <dismukes@adacore.com>
11114 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
11115 0, since the lower bound of the actual string may be greater than one.
11118 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
11119 layout is requested.
11121 2006-02-13 Vincent Celier <celier@adacore.com>
11123 * back_end.adb (Scan_Compiler_Arguments): Check if
11124 Search_Directory_Present is True and, if it is, add the argument in
11125 the source search directory path.
11127 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
11128 Search_Directory_Present to True.
11130 2006-02-13 Joel Brobecker <brobecke@adacore.com>
11132 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
11133 volatile, to tell the compiler to preserve this variable at any level
11135 (Gen_Versions_Ada): Temporarily work around codegen bug.
11137 2006-02-13 Vincent Celier <celier@adacore.com>
11139 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
11140 gcc to link with option -shared-libgcc.
11141 (Gnatlink): Remove duplicate switches -shared-libgcc
11143 2006-02-13 Robert Dewar <dewar@adacore.com>
11145 * gnatvsn.ads (Current_Year): New constant, used to easily update
11146 copyright on all GNAT tools.
11148 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
11151 2006-02-13 Robert Dewar <dewar@adacore.com>
11153 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
11154 after hyphen (small aesthetic change useful for a range of numbers
11156 Suppress range checks for a couple of assignments which otherwise
11157 cause validity checks with validity checking turned on.
11159 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
11160 Improvement in error message for object.
11161 (Rep_Item_Too_Late): Remove '!' in warning message.
11163 2006-02-13 Robert Dewar <dewar@adacore.com>
11164 Eric Botcazou <ebotcazou@adacore.com>
11166 * err_vars.ads: Suppress range checks for a couple of assignments
11167 which otherwise cause validity checks with validity checking turned on.
11170 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
11171 Make message unconditional if it is a warning.
11172 (Error_Msg_NEL): Always output warning messages.
11173 Suppress range checks for a couple of assignments which otherwise
11174 cause validity checks with validity checking turned on.
11176 * errout.ads (Message Insertion Characters): Document that '!' is
11177 implied by '?' in error messages.
11179 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
11180 (Gnat1drv): Use a goto to end of main subprogram instead of
11181 Exit_Program (E_Success) so that finalization can occur normally.
11183 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
11185 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
11188 2006-02-13 Vincent Celier <celier@adacore.com>
11190 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
11191 Unchecked_Conversion functions.
11192 (Modification_Time): Use direct conversion of OS_Time to Calendar time
11193 when OpenVMS returns False.
11195 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
11196 a-dirval.adb (OpenVMS): New Boolean function
11198 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11199 Thomas Quinot <quinot@adacore.com>
11201 * checks.adb (Build_Discriminant_Checks): If the expression being
11202 checks is an aggregate retrieve the values of its discriminants to
11203 generate the check, rather than creating a temporary and a reference
11205 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
11206 (Install_Null_Excluding_Check): Ditto
11207 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
11208 not for the renamed object, so that the actual itype is attached in the
11211 2006-02-13 Robert Dewar <dewar@adacore.com>
11212 Vincent Celier <celier@adacore.com>
11214 * debug.adb: Eliminate numeric switches for binder/gnatmake
11216 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
11217 switches for the compiler.
11218 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
11219 (Scan_Make_Switches): When failing with an illegal switch, output an
11220 error message with the full switch.
11221 Eliminate numeric switches for binder/gnatmake
11223 * switch.ads, switch.adb (Bad_Switch): New procedure
11225 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
11226 Remove 0-9 as debug flag character possibilities
11227 -d is now controlling the primary stack size when its value is a
11228 positive. Also add checks against invalid values, and support for kb,
11229 mb. Ditto for -D switch.
11231 2006-02-13 Robert Dewar <dewar@adacore.com>
11232 Serguei Rybin <rybin@adacore.com>
11234 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
11235 save/restore routines.
11236 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11237 were not always properly handled previously.
11238 Since we are changing the tree format anyway, also get rid of the
11239 junk obsolete Immediate_Errors flag.
11240 (Tree_Read): Change the way of reading Tree_Version_String - now we
11241 read the version string from the tree even if its length is not the
11242 same as the length of the version string computed from Gnatvsn.
11243 (Search_Directory_Present): New Boolean flag for the compiler.
11244 Define Tree_Version_String as a dynamic string.
11245 (Default_Stack_Size): new variable, used to handle switch -d.
11248 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
11249 only for main unit.
11250 Add pragma Ada_2005 (synonym for Ada_05)
11251 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11252 were not always properly handled previously.
11254 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
11255 explicit Ada_95 to Ada_2005.
11257 2006-02-13 Javier Miranda <miranda@adacore.com>
11258 Robert Dewar <dewar@adacore.com>
11259 Ed Schonberg <schonberg@adacore.com>
11261 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
11262 against errors in the source program: a private types for which the
11263 corresponding full type declaration is missing and pragma CPP_Virtual
11265 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
11266 (Is_Known_Null): New flag
11267 (Has_Pragma_Pure): New flag
11268 (No_Return): Present in all entities, set only for procedures
11269 (Is_Limited_Type): A type whose ancestor is an interface is limited if
11270 explicitly declared limited.
11271 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
11272 entities. Only used for component marked Is_Tag. If present it stores
11273 the Offset_To_Top function used to provide this value in tagged types
11274 whose ancestor has discriminants.
11276 * exp_ch2.adb: Update status of new Is_Known_Null flag
11278 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
11280 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
11281 the categorization sense if Is_Pure was set by pragma Pure_Function.
11283 2006-02-13 Quentin Ochem <ochem@adacore.com>
11284 Olivier Hainque <hainque@adacore.com>
11286 * bindusg.adb: Updated documentation for -d and -D switches.
11288 * raise.h (__gnat_set_globals): added new parameter for
11289 Default_Stack_Size.
11291 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
11292 (__gnat_handle_vms_condition): Adjust context before raise.
11293 (__gnat_install_handler): Restore the global vector setup for GCC
11294 versions before 3.4, as the frame based circtuitry is not available
11296 (__gnat_set_globals): added a parameter default_stack_size
11297 (__gl_default_stack_size): new variable.
11299 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11301 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
11302 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
11303 does not exist in the Ada RM.
11304 (Compatible_Int_Bounds): Determine whether two integer range bounds
11305 are of equal length and have the same start and end values.
11306 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
11307 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
11308 aggregate when it is part of an object declaration.
11309 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
11310 constrains discriminants of its parent, add explicitly the discriminant
11311 constraints of the ancestor by retrieving them from the
11312 stored_constraint of the parent.
11314 2006-02-13 Robert Dewar <dewar@adacore.com>
11316 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
11317 attribute Mechanism_Code is applied to renamed subprogram, modify
11318 prefix to point to base subprogram.
11319 Max/Min attributes now violate Restriction No_Implicit_Conditionals
11321 * sinfo.ads: Document that Mechanism_Code cannot be applied to
11322 renamed subprograms so that the front-end must replace the prefix
11325 2006-02-13 Javier Miranda <miranda@adacore.com>
11326 Gary Dismukes <dismukes@adacore.com>
11328 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
11329 availability of RE_Interface_Tag.
11330 (Build_Initialization_Call): Fix wrong access to the discriminant value.
11331 (Freeze_Record_Type): Do not generate the tables associated with
11332 timed and conditional dispatching calls through synchronized
11333 interfaces if compiling under No_Dispatching_Calls restriction.
11334 When compiling for Ada 2005, for a nonabstract
11335 type with a null extension, call Make_Controlling_Function_Wrappers
11336 and insert the wrapper function declarations and bodies (the latter
11337 being appended as freeze actions).
11338 (Predefined_Primitive_Bodies): Do not generate the bodies of the
11339 predefined primitives associated with timed and conditional
11340 dispatching calls through synchronized interfaces if we are
11341 compiling under No_Dispatching_Calls.
11342 (Build_Init_Procedure): Use RTE_Available to check if a run-time
11343 service is available before generating a call.
11344 (Make_Controlling_Function_Wrappers): New procedure.
11345 (Expand_N_Full_Type_Declaration): Create a class-wide master for
11346 access-to-limited-interfaces because they can be used to reference
11347 tasks that implement such limited interface.
11348 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
11349 procedure spec and body of the Offset_To_Top function that is generated
11350 when the parent of a type with discriminants has secondary dispatch
11352 (Init_Secondary_Tags): Handle the case in which the parent of the type
11353 containing secondary dispatch tables has discriminants to generate the
11354 correct arguments to call Set_Offset_To_Top.
11355 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
11357 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
11358 Add Wide_[Wide_]Expanded_Name.
11359 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
11360 the same functionality of Get_Prim_Op_Address but applied to predefined
11361 primitive operations because the pointers to the predefined primitives
11362 are now saved in a separate table.
11363 (Parent_Size): Modified to get access to the separate table of primitive
11364 operations or the parent type.
11365 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
11366 functionality of Set_Prim_Op_Address but applied to predefined primitive
11368 (Set_Signature): New subprogram used to store the signature of a DT.
11369 (Displace): If the Offset_To_Top value is not static then call the
11370 function generated by the expander to get such value; otherwise use
11371 the value stored in the table of interfaces.
11372 (Offset_To_Top): The type of the actual has been changed to Address to
11373 give the correct support to tagged types with discriminants. In this
11374 case this value is stored just immediately after the tag field.
11375 (Set_Offset_To_Top): Two new formals have been added to indicate if the
11376 offset_to_top value is static and hence pass this value to the run-time
11377 to store it in the table of interfaces, or else if this value is dynamic
11378 and then pass to the run-time the address of a function that is
11379 generated by the expander to provide this value for each object of the
11382 * rtsfind.ads (Default_Prin_Op_Count): Removed.
11383 (Default_Prim_Op_Count): New entity
11384 (Get_Predefined_Prim_Op_Address): New entity
11385 (Set_Predefined_Prim_Op_Address): New entity
11386 (RE_Set_Signature): New entity
11388 2006-02-13 Thomas Quinot <quinot@adacore.com>
11389 Ed Schonberg <schonberg@adacore.com>
11391 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
11392 Make_Adjust_Call done for a newly-allocated object.
11394 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
11395 in a subprogram are wrapped in a cleanup block, indicate that the
11396 subprogram contains an inner block with an exception handler.
11397 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
11398 Adjust call is for a newly-allocated object. In that case we must not
11399 assume that the finalization list chain pointers are correct (since they
11400 come from a bit-for-bit copy of the original object's pointers) so if
11401 the attach level would otherwise be zero (no change), we set it to 4
11402 instead to cause the pointers to be reset to null.
11404 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
11405 reset chain pointers to null.
11407 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11409 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
11410 string, and the context requires a loop for the assignment (e.g.
11411 because the left-hand side is packed), generate a unique name for the
11412 temporary that holds the string, to prevent spurious name clashes.
11414 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11415 Javier Miranda <miranda@adacore.com>
11416 Robert Dewar <dewar@adacore.com>
11417 Gary Dismukes <dismukes@adacore.com>
11419 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
11420 return unconstrained arrays.
11422 (Expand_Call): An indirect call through an access parameter of a
11423 protected operation is not a protected call.
11424 Add circuit to raise CE in Ada 2005 mode following call
11425 to Raise_Exception.
11426 (Register_DT_Entry): Do nothing if
11427 the run-time does not give support to abstract interfaces.
11428 (Freeze_Subprogram): In case of dispatching operations, do not generate
11429 code to register the operation in the dispatch table if the source
11430 is compiled with No_Dispatching_Calls.
11431 (Register_Predefined_DT_Entry): Generate code that calls the new
11432 run-time subprogram Set_Predefined_Prim_Op_Address instead of
11433 Set_Prim_Op_Address.
11435 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
11436 on array assignments if the right-hand side is a function call that has
11437 been inlined. Check is performed on the assignment in the block.
11438 (Process_Bounds): If bounds and range are overloaded, apply preference
11439 rule for root operations to disambiguate, and diagnose true ambiguity.
11440 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
11441 a tag-indeterminate right-hand side even when Expander_Active is True.
11442 Needed to ensure that dispatching calls to T'Input are allowed and
11443 get the tag of the target class-wide object.
11445 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
11446 an inherited primitive operation that already overrides several
11447 abstract interface primitives. For transitivity, the new entity must
11448 also override all the abstract interface primitives covered by the
11449 inherited overriden primitive.
11450 Emit warning if new entity differs from homograph in same scope only in
11451 that one has an access parameter and the other one has a parameter of
11452 a general access type with the same designated type, at the same
11453 position in the signature.
11454 (Make_Inequality_Operator): Use source locations of parameters and
11455 subtype marks from corresponding equality operator when creating the
11456 tree structure for the implicit declaration of "/=". This does not
11457 change anything in behaviour except that the decoration of the
11458 components of the subtree created for "/=" allows ASIS to get the
11459 string images of the corresponding identifiers.
11460 (Analyze_Return_Statement): Remove '!' in warning message.
11461 (Check_Statement_Sequence): Likewise.
11462 (Analyze_Subprogram_Body): For an access parameter whose designated type
11463 is an incomplete type imported through a limited_with clause, use the
11464 type of the corresponding formal in the body.
11465 (Check_Returns): Implicit return in No_Return procedure now raises
11466 Program_Error with a compile time warning, instead of beging illegal.
11467 (Has_Single_Return): Function returning unconstrained type cannot be
11468 inlined if expression in unique return statement is not an identifier.
11469 (Build_Body_To_Inline): It is possible to inline a function call that
11470 returns an unconstrained type if all return statements in the function
11471 return the same local variable. Subsidiary procedure Has_Single_Return
11472 verifies that the body conforms to this restriction.
11474 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
11475 same type, and one of them is of an anonymous access type, convert
11476 the other operand to it, so that this is a valid binary operation for
11478 (Resolve_Type_Conversion): Handle subtypes of protected types and
11479 task types when accessing to the corresponding record type.
11480 (Resolve_Allocator): Add '\' in 2-line warning message.
11481 Remove '!' in warning message.
11482 (Resolve_Call): Add '\' in 2-line warning message.
11483 (Valid_Conversion): Likewise.
11484 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
11485 resulting type may be an access type with an implicit dereference.
11486 Obtain the proper component from the designated type.
11487 (Make_Call_Into_Operator): Handle properly a call to predefined equality
11488 given by an expanded name with prefix Standard, when the operands are
11489 of an anonymous access type.
11490 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
11491 Explicit_Dereference and Resolve_Selected_Component, to verify that the
11492 prefix of the expression is not of an incomplete type. Allows full
11493 diagnoses of all semantic errors.
11494 (Resolve_Actuals): If the actual is an allocator whose directly
11495 designated type is a class-wide interface we build an anonymous
11496 access type to use it as the type of the allocator. Later, when
11497 the subprogram call is expanded, if the interface has a secondary
11498 dispatch table the expander will add a type conversion to force
11499 the displacement of the pointer.
11500 (Resolve_Call): If a function that returns an unconstrained type is
11501 marked Inlined_Always and inlined, the call will be inlined and does
11502 not require the creation of a transient scope.
11503 (Check_Direct_Boolean_Op): Removed
11504 (Resolve_Comparison_Op): Remove call to above
11505 (Resolve_Equality_Op): Remove call to above
11506 (Resolve_Logical_Op): Inline above, since this is only call.
11507 (Valid_Conversion): Handle properly conversions between arrays of
11508 convertible anonymous access types.
11511 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
11512 the literal in an unchecked conversion, because GCC 4.x needs a static
11513 value for a string bound.
11515 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11516 Hristian Kirtchev <kirtchev@adacore.com>
11518 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
11519 components of the corresponding record, take into account component
11520 definitions that are access definitions.
11521 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
11522 procedure is not considered a dispatching call and will be expanded
11525 2006-02-13 Javier Miranda <miranda@adacore.com>
11527 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
11528 controlling argument of the dispatching call is an abstract interface
11529 class-wide type then we use it directly.
11530 Check No_Dispatching_Calls restriction.
11531 (Default_Prim_Op_Position): Remove the code that looks for the last
11532 entity in the list of aliased subprograms. This code was wrong in
11534 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
11535 when the source is compiled with the No_Dispatching_Calls restriction.
11536 (Init_Predefined_Interface_Primitives): No need to inherit primitives
11537 if we are compiling with restriction No_Dispatching_Calls.
11538 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
11539 subprograms if we are compiling under No_Dispatching_Calls restriction.
11540 (Make_DT): Generate a dispatch table with a single dummy entry if
11541 we are compiling with the No_Dispatching_Calls restriction. In
11542 addition, in this case we don't generate code that calls to the
11543 following run-time subprograms: Set_Type_Kind, Inherit_DT.
11544 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
11545 of this subprogram if compiling with the No_Dispatching_Calls
11547 (Expand_Type_Conversion): Instead of using the actual parameter,
11548 the argument passed as parameter to the conversion function was
11549 erroneously referenced by the expander.
11550 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
11551 Set_Predefined_Primitive_Op_Address and Set_Signature.
11552 (Expand_Dispatching_Call): Generate call to
11553 Get_Predefined_Prim_Op_Address for predefined primitives.
11554 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
11555 predefined primitives.
11556 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
11557 primitives we reserve one dummy entry to ensure that the tag does not
11558 point to some memory that is associated with some other object. In
11559 addition, remove all the old code that generated the assignments
11560 associated with the signature of the dispatch table and replace them
11561 by a call to the new subprogram Set_Signature.
11562 (Set_All_DT_Position): Change the algorithm because now we have a
11563 separate dispatch table associated with predefined primitive operations.
11564 (Expand_Interface_Conversion): In case of non-static offset_to_top
11565 add explicit dereference to get access to the object after the call
11566 to displace the pointer to the object.
11567 (Expand_Interface_Thunk): Modify the generation of the actual used
11568 in the calls to the run-time function Offset_To_Top to fulfil its
11570 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
11572 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11574 * exp_dist.adb (Copy_Specification): For access parameters, copy
11575 Null_Exclusion flag, which will have been set for stream subprograms
11578 2006-02-13 Pascal Obry <obry@adacore.com>
11580 * expect.c (__gnat_expect_portable_execvp): New implementation. The
11581 previous implementation was using the C runtime spawnve routine but
11582 the corresponding wait was using directly the Win32 API. This was
11583 causing some times a lock when waiting for an event using
11584 WaitForSingleObject in __gnat_waitpid. This new implementation uses
11585 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
11586 API fixes this problem.
11588 2006-02-13 Robert Dewar <dewar@adacore.com>
11590 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
11593 2006-02-13 Thomas Quinot <quinot@adacore.com>
11595 * exp_pakd.ads: Fix typos in comments.
11597 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
11598 array reference that is an explicit dereference, mark the converted
11599 (packed) array reference as analyzed to prevent a forthcoming
11600 reanalysis from resetting its type to the original (non-packed) array
11603 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11604 Javier Miranda <miranda@adacore.com>
11605 Eric Botcazou <ebotcazou@adacore.com>
11607 * exp_util.ads, exp_util.adb (Find_Prim_Op,
11608 Is_Predefined_Primitive_Operation): When
11609 searching for the predefined equality operator, verify that operands
11610 have the same type.
11611 (Is_Predefined_Dispatching_Operation): Remove the code that looks
11612 for the last entity in the list of aliased subprograms. This code
11613 was wrong in case of renamings.
11614 (Set_Renamed_Subprogram): New procedure
11615 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
11616 Exp_Type constant computed when entering this subprogram.
11617 (Known_Null): New function
11618 (OK_To_Do_Constant_Replacement): New function
11619 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
11620 (Side_Effect_Free): An attribute reference 'Input is not free of
11621 side effect, unlike other attributes that are functions. (from code
11623 (Remove_Side_Effects): Expressions that involve packed arrays or records
11624 are copied at the point of reference, and therefore must be marked as
11625 renamings of objects.
11626 (Is_Predefined_Dispatching_Operation): Return false if the operation is
11627 not a dispatching operation.
11630 (Remove_Side_Effects): Lift enclosing type conversion nodes for
11631 elementary types in all cases.
11633 2006-02-13 Javier Miranda <miranda@adacore.com>
11635 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
11636 task types when accessing to the corresponding record type.
11637 Remove '!' in warning message.
11639 2006-02-13 Olivier Hainque <hainque@adacore.com>
11641 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
11642 to avoid useless and space inefficient overalignments on targets where
11643 Max_Alignment is larger than 16.
11645 2006-02-13 Pascal Obry <obry@adacore.com>
11647 * g-catiio.adb (Sec_Number): New type used to compute the number of
11648 seconds since 1-1-1970.
11649 (Image) [Natural]: The parameter was an Integer, as we can't deal with
11650 negative numbers (years, months...) it is better to have a Natural here.
11652 (Image) [Number]: Change parameter from Long_Integer to Number.
11653 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
11654 overflow for dates past year 2038.
11656 2006-02-13 Matthew Heaney <heaney@adacore.com>
11658 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
11661 2006-02-13 Arnaud Charlet <charlet@adacore.com>
11663 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
11665 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
11666 finalization can occur normally.
11668 2006-02-13 Vincent Celier <celier@adacore.com>
11670 * gnatcmd.adb (Rules_Switches): New table
11671 (Add_To_Rules_Switches): New procedure
11672 (GNATCmd): For command CHECK, put all options following "-rules" in the
11673 Rules_Switches table. Append these -rules switches after the -cargs
11676 2006-02-13 Robert Dewar <dewar@adacore.com>
11678 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
11679 These two cases were generating incorrect output, and if this unit
11680 was built with checks on, generated a discriminant mismatch constraint
11683 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11684 Robert Dewar <dewar@adacore.com>
11686 * lib-xref.adb (Get_Type_Reference): For a private type whose full
11687 view is an array type, indicate the component type as well, for
11688 navigation purposes.
11689 (Generate_Reference): Don't consider array ref on LHS to be a case
11690 of violating pragma Unreferenced.
11691 Do not give Ada 2005 warning except on real reference.
11693 2006-02-13 Vincent Celier <celier@adacore.com>
11695 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
11696 main source, add switch -mdebug-main=_ada_ so that the executable can
11697 be debugged by the standard VMS debugger.
11698 (Gnatmake): Set No_Main_Subprogram to True when there is no main
11699 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
11700 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
11701 of the last source, as the binding and linking phases are never
11703 Set all executable obsolete when rebuilding a library.
11705 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
11708 2006-02-13 Javier Miranda <miranda@adacore.com>
11711 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
11712 code to improve the error message reported when the program has
11713 declarations of abstract interface types and it is not compiled with
11714 the -gnat05 switch.
11715 (P_Access_Definition): Reorganize the code to improve the error
11716 message reported when the new Ada 2005 syntax for anonymous
11717 access types is used and the program is not compiled with the
11720 2006-02-13 Robert Dewar <dewar@adacore.com>
11722 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
11723 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
11726 2006-02-13 Javier Miranda <miranda@adacore.com>
11728 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
11729 against source containing syntax errors.
11731 2006-02-13 Vincent Celier <celier@adacore.com>
11733 * prj.adb (Reset): Initialize the first element of table Namings with
11734 the standard naming data.
11736 2006-02-13 Vincent Celier <celier@adacore.com>
11738 * prj.ads (Error_Warning): New enumeration type
11740 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
11741 unknown, use the location of the project to report the error.
11742 (When_No_Sources): New global variable
11743 (Report_No_Ada_Sources): New procedure
11744 (Check): New parameter When_No_Sources. Set value of global variable
11746 (Find_Sources): Call Report_No_Ada_Sources when appropriate
11747 (Get_Sources_From_File): Ditto
11748 (Warn_If_Not_Sources): Better warning messages indicating the unit name
11751 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
11752 Call Prj.Proc.Process with parameter When_No_Sources.
11754 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
11755 Call Recursive_Check with parameter When_No_Sources.
11756 (Recursive_Check): New parameter When_No_Sources. Call itself and
11757 Prj.Nmsc.Check with parameter When_No_Sources.
11758 (Process): New parameter When_No_Sources. Call Check with parameter
11760 (Copy_Package_Declarations): New procedure to copy renamed parameters
11761 and setting the location of the declared attributes to the location
11762 of the renamed package.
11763 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
11766 2006-02-13 Vincent Celier <celier@adacore.com>
11768 * prj-makr.adb (Make): Preserve the comments from the original project
11770 When removing nodes (attributes Source_Dirs, Source_Files,
11771 Source_List_File and package Naming), save the comments and attach the
11772 saved comments to the newly created nodes.
11773 Do not add a with clause for the naming package if one already exists.
11775 2006-02-13 Javier Miranda <miranda@adacore.com>
11776 Gary Dismukes <dismukes@adacore.com>
11777 Robert Dewar <dewar@adacore.com>
11779 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
11781 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
11782 aliased entities to look for the overriden abstract interface
11784 (Is_Interface_Subprogram): Complete documentation.
11785 (Check_Dispatching_Operation): Do not generate code to register the
11786 operation in the dispatch table if the source is compiled with
11787 restriction No_Dispatching_Calls.
11788 (Override_Dispatching_Operation): Check for illegal attempt to override
11789 No_Return procedure with procedure that is not No_Return
11790 (Check_Dispatching_Call): Suppress the check for an abstract operation
11791 when the original node of an actual is a tag-indeterminate attribute
11792 call, since the attribute, which must be 'Input, can never be abstract.
11793 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
11794 call to the Input attribute (even when rewritten).
11795 (Propagate_Tag): Augment comment to indicate the possibility of a call
11796 to an Input attribute.
11798 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
11799 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
11801 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
11802 No_Wide_Characters is no longer partition-wide
11803 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
11806 2006-02-13 Douglas Rupp <rupp@adacore.com>
11808 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
11810 2006-02-13 Javier Miranda <miranda@adacore.com>
11812 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
11813 handles default-initialized components to keep separate the management
11814 of this feature but also avoid the unrequired resolution and
11815 expansion of components that do not have partially initialized
11817 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
11818 (Check_Bounds): Likewise.
11819 (Check_Length): Likewise.
11821 2006-02-13 Javier Miranda <miranda@adacore.com>
11822 Ed Schonberg <schonberg@adacore.com>
11824 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
11825 abstract interface type call analyze_and_resolve to expand the type
11826 conversion into the corresponding displacement of the
11827 reference to the base of the object.
11828 (Eval_Attribute, case Width): For systems where IEEE extended precision
11829 is supported, the maximum exponent occupies 4 decimal digits.
11830 (Accessibility_Message): Add '\' in 2-line warning message.
11831 (Resolve_Attribute): Likewise.
11832 (case Attribute_Access): Significantly revise checks
11833 for illegal access-to-subprogram Access attributes to properly enforce
11834 the rules of 3.10.2(32/2).
11835 Diagnose use of current instance with an illegal attribute.
11837 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
11839 (Enclosing_Generic_Unit): New function to return a node's innermost
11840 enclosing generic declaration node.
11841 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
11842 (Type_Access_Level): The accessibility level of anonymous acccess types
11843 associated with discriminants is that of the current instance of the
11844 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
11845 (Compile_Time_Constraint_Error): Handle case of conditional expression.
11846 (Kill_Current_Values_For_Entity): New function
11847 (Enter_Name): Change formal type to Entity_Id
11849 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
11850 Ed Schonberg <schonberg@adacore.com>
11851 Gary Dismukes <dismukes@adacore.com>
11853 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
11854 Analyze_Compilation_Unit.
11855 Detect and warn on redundant with clauses detected in a package spec
11856 and/or body when -gnatwr is used.
11857 (Analyze_Context): Analyze config pragmas before other items
11858 (Install_Context_Items): Don't analyze config pragmas here
11859 (Install_Limited_Withed_Unit): Set limited entity of package in
11860 with_clause so that cross-reference information or warning messages on
11861 unused packages can be properly generated
11862 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
11863 has Error_Posted set. Prevent infinite loops in illegal programs.
11864 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
11865 to the point of the error test requiring the current unit to be private.
11866 This ensures that private with clauses are not exempted from the basic
11867 checking for being a descendant of the same library unit parent as a
11868 withed private descendant unit.
11869 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
11870 handle private with clauses properly, as well as to account for cases
11871 where the withed unit is a public descendant of a private ancestor
11872 (in which case the current unit must be a descendant of the private
11873 ancestor's parent). The spec comments were updated accordingly. Also,
11874 the old error message in this subprogram was replaced with error
11875 messages that mirror the errors tested and reported by
11876 Check_Private_Child_Unit.
11877 Parameter and variable names improved for readability.
11878 (Install_Limited_Context_Clauses): Remove test for a withed unit being
11879 private as the precondition for calling
11880 Check_Private_Limited_Withed_Unit since that subprogram has been
11881 revised to test public units as well as private units.
11883 2006-02-13 Thomas Quinot <quinot@adacore.com>
11884 Robert Dewar <dewar@adacore.com>
11885 Ed Schonberg <schonberg@adacore.com>
11886 Javier Miranda <miranda@adacore.com>
11888 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
11889 that Scope_Stack.First = 1.
11890 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11891 were not always properly handled previously.
11892 (Formal_Entity): Complete rewrite, to handle properly some complex case
11893 with multiple levels of parametrization by formal packages.
11894 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
11895 to the corresponding derived type declaration for proper semantics.
11897 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
11898 (Check_Component): Enforce restriction on components of
11899 unchecked_unions: a component in a variant cannot contain tasks or
11901 (Unchecked_Union): Allow nested variants and multiple discriminants, to
11903 Add pragma Ada_2005 (synonym for Ada_05)
11904 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11905 were not always properly handled previously.
11906 Document that pragma Propagate_Exceptions has no effect
11907 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
11908 (Set_Convention_From_Pragma): Check that if a convention is
11909 specified for a dispatching operation, then it must be
11910 consistent with the existing convention for the operation.
11911 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
11912 longer required to specify an vtable-ptr component in the record. For
11913 compatibility reasons we leave the support for the previous definition.
11914 (Analyze_Pragma, case No_Return): Allow multiple arguments
11916 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
11917 non-overrideen inherited operation with a controlling result as
11918 illegal only its implicit declaration comes from the derived type
11919 declaration of its result's type.
11920 (Check_Possible_Deferred_Completion): Relocate the object definition
11921 node of the subtype indication of a deferred constant completion rather
11922 than directly analyzing it. The analysis of the generated subtype will
11923 correctly decorate the GNAT tree.
11924 (Record_Type_Declaration): Check whether this is a declaration for a
11925 limited derived record before analyzing components.
11926 (Analyze_Component_Declaration): Diagnose record types not explicitly
11927 declared limited when a component has a limited type.
11928 (Build_Derived_Record_Type): Code reorganization to check if some of
11929 the inherited subprograms of a tagged type cover interface primitives.
11930 This check was missing in case of a full-type associated with a private
11932 (Constant_Redeclaration): Check that the subtypes of the partial and the
11933 full view of a constrained deferred constant statically match.
11934 (Mentions_T): A reference to the current type in an anonymous access
11935 component declaration must be an entity name.
11936 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
11937 class_wide type to refer to full type, not to the incomplete one.
11938 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
11939 available. Required to give support to the certified run-time.
11940 (Analyze_Component_Declaration): In case of anonymous access components
11941 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
11942 (Process_Discriminants): For an access discriminant, use the
11943 discriminant specification as the associated_node_for_itype, to
11944 simplify accessibility checks.
11946 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11947 Javier Miranda <miranda@adacore.com>
11949 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
11950 abstract interpretations on an operator, remove interpretations that
11951 yield Address or a type derived from it, if one of the operands is an
11953 (Try_Object_Operation.Try_Primitive_Operation,
11954 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
11955 location when creating the new reference to a primitive or class-wide
11956 operation as a part of rewriting a subprogram call.
11957 (Try_Primitive_Operations): If context requires a function, collect all
11958 interpretations after the first match, because there may be primitive
11959 operations of the same type with the same profile and different return
11960 types. From code reading.
11961 (Try_Primitive_Operation): Use the node kind to choose the proper
11962 operation when a function and a procedure have the same parameter
11964 (Complete_Object_Operation): If formal is an access parameter and prefix
11965 is an object, rewrite as an Access reference, to match signature of
11966 primitive operation.
11967 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
11968 by an expanded name with prefix Standard, when the operands are of an
11969 anonymous access type.
11970 (Remove_Abstract_Operations): If the operation is abstract because it is
11971 inherited by a user-defined type derived from Address, remove it as
11972 well from the set of candidate interpretations of an overloaded node.
11973 (Analyze_Membership_Op): Membership test not applicable to cpp-class
11976 2006-02-13 Bob Duff <duff@adacore.com>
11978 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
11979 redundant use clauses.
11980 In particular, if the scope of two use clauses overlaps, but one is not
11981 entirely included in the other, we should not warn. This can happen
11982 with nested packages.
11983 (Analyze_Subprogram_Renaming): Protect the compiler against previously
11984 reported errors. The bug was reported when the compiler was built
11985 with assertions enabled.
11986 (Find_Type): If the node is a 'Class reference and the prefix is a
11987 synchronized type without a corresponding record, return the type
11990 2006-02-13 Javier Miranda <miranda@adacore.com>
11992 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
11993 if this is the full-declaration associated with a private declaration
11994 that implement interfaces, then the private type declaration must be
11996 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
11997 as aliased. The use of the 'access attribute is not available for such
11998 object (for this purpose the object should be explicitly marked as
11999 aliased, but being an anonymous type this is not possible).
12001 2006-02-13 Ed Schonberg <schonberg@adacore.com>
12002 Robert Dewar <dewar@adacore.com>
12004 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
12005 compilation unit is an elaboration scope.
12006 (Add_Task_Proc): Add '\' in 2-line warning message.
12007 (Activate_All_Desirable): Deal with case of unit with'ed by parent
12009 2006-02-13 Ed Schonberg <schonberg@adacore.com>
12010 Javier Miranda <miranda@adacore.com>
12012 * sem_type.adb (Write_Overloads): Improve display of candidate
12014 (Add_One_Interp): Do not add to the list of interpretations aliased
12015 entities corresponding with an abstract interface type that is an
12016 immediate ancestor of a tagged type; otherwise we have a dummy
12017 conflict between this entity and the aliased entity.
12018 (Disambiguate): The predefined equality on universal_access is not
12019 usable if there is a user-defined equality with the proper signature,
12020 declared in the same declarative part as the designated type.
12021 (Find_Unique_Type): The universal_access equality operator defined under
12022 AI-230 does not cover pool specific access types.
12023 (Covers): If one of the types is a generic actual subtype, check whether
12024 it matches the partial view of the other type.
12026 2006-02-13 Thomas Quinot <quinot@adacore.com>
12028 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
12029 line. This is necessary to allow In_Extended_Main_Unit to provide
12030 correct results for itypes while writing out expanded source.
12031 (Close_File): No need to update the source_index_table here since it's
12032 now done for each line.
12034 2006-02-13 Ed Schonberg <schonberg@adacore.com>
12035 Robert Dewar <dewar@adacore.com>
12037 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
12038 preserve the source unit where the itype is declared, and prevent a
12040 (Note_Implicit_Run_Time_Call): New procedure
12041 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
12044 * sprint.ads: Document use of $ for implicit run time routine call
12046 2006-02-13 Quentin Ochem <ochem@adacore.com>
12048 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
12051 2006-02-13 Bob Duff <duff@adacore.com>
12053 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
12054 Scan_Unsigned, so we do not scan leading blanks and sign twice.
12055 Integer'Value("- 5") and Integer'Value("-+5") now correctly
12056 raise Constraint_Error.
12058 * s-vallli.adb (Scan_Long_Long_Integer): Call
12059 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
12060 do not scan leading blanks and sign twice.
12061 Integer'Value("- 5") and Integer'Value("-+5") now correctly
12062 raise Constraint_Error.
12064 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
12065 Scan_Long_Long_Unsigned): Split out most of the processing from
12066 Scan_Long_Long_Unsigned out into
12067 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
12068 This prevents scanning leading blanks and sign twice.
12069 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
12072 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
12073 out most of the processing from Scan_Unsigned out into
12074 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
12075 This prevents scanning leading blanks and sign twice.
12077 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
12078 use with Modular'Value attribute.
12079 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
12082 2006-02-13 Robert Dewar <dewar@adacore.com>
12084 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
12086 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
12088 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
12089 (PPC VxWorks): Likewise.
12090 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
12091 (forced_callee): Make non-inlinable and non-pure.
12092 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
12094 2006-02-13 Arnaud Charlet <charlet@adacore.com>
12095 Ben Brosgol <brosgol@adacore.com>
12096 Robert Dewar <dewar@adacore.com>
12098 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
12100 Document that gnatbind -M option is for cross environments only.
12101 Added description of using gnatmem to trace gnat rtl allocs and deallocs
12102 Add note on use of $ to label implicit run time calls
12103 Add documentation for -gnatyI (check mode IN)
12104 Updated chapter on compatibility with HP Ada
12105 VMS-oriented edits.
12106 Ran spell and corrected errors
12107 Add documentation for gnatbind -d and rework documentation of -D
12109 Add subprogram/data elimination section.
12110 Minor editing of annex A.
12111 Add section for gnatcheck.
12112 Add documentation for restriction No_Dispatching_Calls
12113 Add documentation for pragma Ada_2005
12114 Remove mention of obsolete pragma Propagate_Exceptions
12115 Document that pragma Unreferenced can appear after DO in ACCEPT
12116 Clarify Pure_Function for library level units
12117 Mention Max/Min in connection with No_Implicit_Conditionals
12118 No_Wide_Characters restriction is no longer partition-wide
12119 Add a nice example for Universal_Literal_String attribute
12120 Document that pragma No_Return can take multiple arguments
12122 * ug_words: Added entry for gnatcheck
12124 * g-ctrl_c.ads (Install_Handler): Enhance comments
12126 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
12128 * g-trasym.ads: Add documentation on how to do off line symbolic
12129 traceback computation.
12131 * s-fatgen.adb: Add comments for Unaligned_Valid
12133 * stand.ads: Fix typo in comment
12135 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12137 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
12139 2006-02-06 Roger Sayle <roger@eyesopen.com>
12141 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
12143 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12146 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
12147 implementation that calls __main.
12149 2006-01-25 Peter O'Gorman <peter@pogma.com>
12152 * Makefile.in (GCC_LINK): Remove quotes.
12153 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
12156 (powerpc-darwin): Pass -shared-libgcc when building shared library.
12158 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12161 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
12163 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12165 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
12167 2005-12-12 Arnaud Charlet <charlet@adacore.com>
12169 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
12172 2005-12-12 Arnaud Charlet <charlet@adacore.com>
12174 * Make-lang.in: Update dependencies
12176 2005-12-12 Arnaud Charlet <charlet@adacore.com>
12178 * Make-lang.in: Add rule for ada/exp_sel.o
12180 2005-12-12 Arnaud Charlet <charlet@adacore.com>
12182 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
12184 2005-12-09 Arnaud Charlet <charlet@adacore.com>
12186 * gnatvsn.ads (Library_Version): Bump to version 4.2
12187 (ASIS_Version_Number): Bumped.
12189 2005-12-09 Doug Rupp <rupp@adacore.com>
12191 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
12192 Ada bind file prefix on VMS from b$ to b__.
12193 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
12196 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
12197 Targparm.OpenVMS_On_Target.
12198 (Object_Suffix): Initialize with target object suffix.
12199 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
12201 * butil.adb: Change some Hostparm.OpenVMS checks to
12202 Targparm.OpenVMS_On_Target.
12204 * clean.adb: Change some Hostparm.OpenVMS checks to
12205 Targparm.OpenVMS_On_Target.
12206 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
12207 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
12208 Ada bind file prefix on VMS from b$ to b__.
12210 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
12211 --GCC so that Get_Target_Parameters can find system.ads.
12212 (Gnatlink): Call Get_Target_Parameters in mainline.
12213 Initialize standard packages for Targparm.
12214 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
12215 (Process_Args): Also Check for object files with target object
12217 (Make_Binder_File_Names): Create with target object extension.
12218 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
12221 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
12222 Targparm.OpenVMS_On_Target.
12223 ({declaration},Build_Library,Check_Library): Change Ada bind file
12224 prefix on VMS from b$ to b__.
12226 * osint-b.adb: Change some Hostparm.OpenVMS checks to
12227 Targparm.OpenVMS_On_Target.
12228 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
12231 * targext.c: New file.
12233 * Makefile.in: add support for vxworks653 builds
12234 (../../vxaddr2line): gnatlink with targext.o.
12235 (TOOLS_LIBS): Move targext.o to precede libgnat.
12236 (init.o, initialize.o): Minor clean up in dependencies.
12237 (GNATLINK_OBJS): Add targparm.o, snames.o
12238 Add rules fo building targext.o and linking it explicitly with all
12240 Also add targext.o to gnatlib.
12242 * Make-lang.in: Add rules for building targext.o and linking it in
12243 with gnat1 and gnatbind.
12244 Add entry for exp_sel.o.
12246 * osint.adb Change some Hostparm.OpenVMS checks to
12247 Targparm.OpenVMS_On_Target.
12248 (Object_File_Name): Use target object suffix.
12250 * osint.ads (Object_Suffix): Remove, no longer used.
12251 (Target_Object_Suffix): Initialize with target object suffix.
12253 * rident.ads: Add special exception to license.
12255 * targparm.adb (Get_Target_Parameters): Set the value of
12256 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
12258 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
12260 * targparm.ads: Add special exception to license.
12262 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
12264 (Copy_File): Make sure from file is closed if error on to file
12265 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
12267 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
12268 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
12270 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
12271 target object suffix.
12273 2005-12-09 Jose Ruiz <ruiz@adacore.com>
12274 Quentin Ochem <ochem@adacore.com>
12275 Florian Villoing <villoing@adacore.com>
12277 * a-taster.ads, a-taster.adb: New files.
12279 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
12280 link to the version that does nothing. This way the task termination
12281 routine is not executed twice for the environment task when finishing
12282 because of an unhandled exception.
12284 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
12285 handler because of an unhandled exception.
12287 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
12288 System.Tasking.Utilities instead of that in System.Tasking.Stages.
12290 * s-finimp.adb (initialization code): Modify the soft link for the
12291 finalization of the global list instead of Adafinal.
12293 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
12294 non-tasking version of the soft link for task termination. We do
12295 nothing since if we are using the non-tasking version it
12296 means that the task termination functionality is not used.
12297 (Null_Finalize_Global_List): Add this null version for the procedure
12298 in charge of finalizing the global list for controlled objects.
12299 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
12300 instead for handling run-time termination in a more flexible way.
12301 (Adafinal_NT): This new procedure will take care of finalizing the
12302 global list for controlled objects if needed, but no tasking
12305 * s-tarest.adb (Task_Lock): Do not try to lock again the
12306 Global_Task_Lock if we already own it. Otherwise, we get blocked in
12307 some run-time operations.
12308 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
12309 until all nested locks have been released.
12310 (Task_Wrapper): Call the fall-back task termination handler. It
12311 applies to all tasks but the environment task.
12312 (Finalize_Global_Tasks): Add the call for the task termination
12313 procedure for the environment task.
12314 (Task_Wrapper): suppress warnings around declaration of
12315 Secondary_Stack_Address.
12317 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
12318 moved to the Common_ATCB record.
12319 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
12320 Common_ATCB record.
12321 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
12322 Common_ATCB record.
12324 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
12325 Fall_Back_Handler, and Specific_Handler.
12327 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
12328 defined in Ada.Task_Termination, to avoid circular dependencies.
12329 (Termination_Handler): Redefine this type here, alredy defined in
12330 Ada.Task_Termination, for avoiding circular dependencies.
12331 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
12332 for storing task termination handlers. In addition,
12333 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
12334 Common_ATCB because it is used by both the regular and the restricted
12336 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
12337 Common_ATCB because it is used by both the regular and the restricted
12339 (Common_ATCB): Added a dynamic task analyzer field.
12341 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
12342 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
12343 (Task_Wrapper): Call the task termination handler. It applies to all
12344 tasks but the environment task.
12345 (Finalize_Global_Tasks): Call the task termination procedure for the
12346 environment task. The call to Finalize_Global_List is now performed
12347 using the soft links mechanism.
12348 (Task_Wrapper): added dynamic stack analysis.
12350 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
12351 potentially blocking operations has been moved from
12352 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
12353 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
12354 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
12355 this run-time check.
12357 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
12358 of task termination procedure.
12359 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
12360 link for the task termination procedure.
12362 * bindusg.adb: (Bindusg): Added documentation for -u option.
12364 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
12365 (Get_Main_C): Add handling of dynamic stack analysis.
12366 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
12368 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
12369 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
12370 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
12372 * opt.ads: Added flags used by dynamic stack measurement.
12373 (Max_Line_Length): Remove (not used anymore)
12375 * s-io.ads, s-io.adb (Standard_Error): new subprogram
12376 (Standart_Output): new subprogram
12377 (Set_Output): new subprogram
12378 (Put): now uses the value of Current_Out to know if the output has to be
12379 send to stderr or stdout.
12381 * s-stausa.ads: Complete implementation.
12383 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
12385 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
12386 list of Ada 05 files.
12387 (GNAT Library Units): Add AltiVec files.
12389 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
12390 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
12391 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
12393 2005-12-09 Nicolas Setton <setton@adacore.com>
12395 * adaint.c (__gnat_locate_regular_file): Return immediately if
12396 file_name is empty.
12398 2005-12-09 Javier Miranda <miranda@adacore.com>
12399 Hristian Kirtchev <kirtchev@adacore.com>
12401 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
12402 to the specification because the frontend generates code that uses this
12404 (Set_Interface_Table): Add missing assertion.
12405 Update documentation describing the run-time structure.
12406 (Displace): New subprogram that displaces the pointer to the object
12407 to reference one of its secondary dispatch tables.
12408 (IW_Membership): Modified to use the new table of interfaces.
12409 (Inherit_TSD): Modified to use the new table of interfaces.
12410 (Register_Interface_Tag): Use the additional formal to fill the
12411 contents of the new table of interfaces.
12412 (Set_Interface_Table): New subprogram that stores in the TSD the
12413 pointer to the table of interfaces.
12414 (Set_Offset_To_Top): Use the additional formal to save copy of
12415 the offset value in the table of interfaces.
12416 Update structure of GNAT Primary and Secondary dispatch table diagram.
12417 Add comment section on GNAT dispatch table prologue.
12418 (Offset_To_Signature): Update the constant value of the Signature field.
12419 (Dispatch_Table): Update comment on hidden fields in the prologue.
12420 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
12421 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
12422 the type of formal parameter T to Tag, introduce additional assertions.
12423 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
12425 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
12427 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
12428 in all the calls to Expand_Interface_Thunk. Instead of referencing the
12429 record component containing the tag of the secondary dispatch table we
12430 have to use the Offset_To_Top run-time function to get this information;
12431 otherwise if the pointer to the base of the object has been displace
12432 we get a wrong value if we use the 'position attribute.
12434 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
12435 all the calls to Expand_Interface_Thunk.
12436 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
12437 interfaces; hence the call to Set_Interface_Table was clearly wrong.
12438 (Collect_All_Interfaces): Modify the internal subprogram Collect to
12439 ensure that the interfaces implemented by the ancestors are placed
12440 at the header of the generated list.
12441 (Expand_Interface_Conversion): Handle the case in which the displacement
12442 associated with the interface conversion is not statically known. In
12443 this case we generate a call to the new run-time subprogram Displace.
12444 (Make_DT): Generate and fill the new table of interfaces.
12445 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
12446 Get_Tagged_Kind and Set_Tagged_Kind.
12447 (Tagged_Kind): New function that determines the tagged kind of a type
12448 with respect to limitedness and concurrency and returns a reference to
12450 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
12451 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
12452 primary dispatch table for a type.
12453 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
12454 secondary dispatch table respectively of a tagged type.
12456 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
12457 (Expand_Interface_Conversion): New subprogram to indicate if the
12458 displacement of the type conversion is statically known.
12459 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
12461 * rtsfind.ads (RE_Offset_To_Top): New entity
12462 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
12463 accessible to users.
12464 (Re_Displace): New entity
12465 (RE_Interface_Data): New entity
12466 (RE_Set_Interface_Data): New_Entity
12467 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
12468 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
12469 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
12470 RE_TK_Tagged, RE_TK_Task.
12472 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
12473 Init_Secondary_Tags_Internal to allow its use with interface types and
12474 also to generate the code for the new additional actual required
12475 by Set_Offset_To_Top.
12476 (Build_Init_Statements): In case of components associated with abstract
12477 interface types there is no need to generate a call to its IP.
12478 (Freeze_Record_Type): Generate Select Specific Data tables only for
12480 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
12481 the bodies and specifications of the predefined primitive operations
12482 dealing with dispatching selects and abort, 'Callable, 'Terminated only
12483 for concurrent types.
12485 * exp_sel.ads, exp_sel.adb: New files.
12487 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
12488 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
12489 properly protected objects and attach handler in the case of the
12490 restricted profile.
12491 Move embeded package Select_Expansion_Utilities into a separate external
12493 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
12494 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
12495 (Build_K, Build_S_Assignment): New subprograms, part of the select
12496 expansion utilities.
12497 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
12498 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
12499 where the trigger is a dispatching procedure of a limited tagged type.
12501 2005-12-09 Olivier Hainque <hainque@adacore.com>
12503 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
12504 pointer initialization values. Make a SAVE_EXPR instead. Add comments
12505 about the use and expansion of SAVE_EXPRs in the various possible
12506 renaming handling cases.
12507 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
12508 abusing DECL_FCONTEXT.
12510 2005-12-09 Matthew Heaney <heaney@adacore.com>
12512 * a-convec.adb (Merge): Added assertions to check whether vector params
12515 * a-coinve.adb (Merge): Added assertions to check whether vector params
12518 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
12520 (Cursor'Read): raises PE
12522 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
12523 to its default value.
12525 * a-cihama.adb: Manually check whether cursor's key and elem are
12528 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
12529 (Merge): Assert that target and source lists are in order
12530 (Swap): Declare non-const temporaries, to pass to Splice
12532 * a-cdlili.ads: (Splice): Changed param name and param mode
12534 * a-cdlili.adb: (Splice): Changed param name and param mode
12535 (Merge): Assert that target and source lists are in order
12536 (Swap): Declare non-const temporaries, to pass to Splice
12538 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
12539 (Write): declare Stream param as not null
12541 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
12542 an exception message.
12544 2005-12-09 Thomas Quinot <quinot@adacore.com>
12545 Robert Dewar <dewar@adacore.com>
12547 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
12548 which is the absolute maximum length we can support.
12550 * frontend.adb: For the processing of configuration pragma files,
12551 remove references to Opt.Max_Line_Length, which is not checked anymore.
12553 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
12556 * scn.adb, scng.adb:
12557 Always check line length against the absolute supported maximum,
12558 Hostparm.Max_Line_Length.
12560 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
12561 value for the maximum line length is Max_Line_Length (not
12562 Column_Number'Last).
12563 Minor error msg update
12564 (Set_Style_Check_Options): New interface returning error msg
12565 Minor code reorganization (processing for 'M' was out of alpha order)
12567 * switch-c.adb: New interface for Set_Style_Check_Options
12569 * stylesw.ads (Set_Style_Check_Options): New interface returning error
12572 2005-12-09 Javier Miranda <miranda@adacore.com>
12574 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
12575 with IP subprogram were only supported if there were limited types.
12577 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
12578 records with IP subprogram were only supported if there were limited
12581 2005-12-09 Olivier Hainque <hainque@adacore.com>
12582 Eric Botcazou <ebotcazou@adacore.com>
12584 * trans.c (tree_transform, emit_check): Adjust calls to
12585 build_call_raise, passing the now expected GNAT_NODE argument.
12587 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
12588 source line information than what the current global locus indicates
12591 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
12592 field has overflowed.
12593 (build_call_raise): Add a GNAT_NODE argument to convey better source
12594 line information than what the current global locus indicates when
12596 (build_component_ref): Adjust call to build_call_raise.
12598 2005-12-09 Pascal Obry <obry@adacore.com>
12600 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
12601 the iterator is quitting iteration on parent directory.
12603 2005-12-09 Javier Miranda <miranda@adacore.com>
12605 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
12606 and the assignment to a class-wide object, before the assignment we
12607 generate a run-time check to ensure that the tag of the Target is
12608 covered by the tag of the source.
12610 2005-12-09 Robert Dewar <dewar@adacore.com>
12612 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
12613 parameter in call to Image_Wide_Character.
12615 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
12616 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
12617 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
12618 annoying FFFE/FFFF inconsistency.
12620 2005-12-09 Robert Dewar <dewar@adacore.com>
12621 Javier Miranda <miranda@adacore.com>
12622 Ed Schonberg <schonberg@adacore.com>
12624 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
12625 of type conversion.
12626 (Find_Interface): New subprogram that given a tagged type and one of its
12627 component associated with the secondary table of an abstract interface
12628 type, return the entity associated with such abstract interface type.
12629 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
12630 base type to create anonymous subtype, because entity may be a locally
12631 declared subtype or generic actual.
12632 (Find_Interface): New subprogram that given a tagged type and one of its
12633 component associated with the secondary table of an abstract interface
12634 type, return the entity associated with such abstract interface type.
12636 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
12637 conversion cannot be handled at compile time. In this case we pass this
12638 information to the expander to generate the appropriate code.
12640 2005-12-09 Robert Dewar <dewar@adacore.com>
12641 Ed Schonberg <schonberg@adacore.com>
12642 Gary Dismukes <dismukes@adacore.com>
12643 Javier Miranda <miranda@adacore.com>
12644 Hristian Kirtchev <kirtchev@adacore.com>
12646 * einfo.adb (Itype_Printed): New flag
12647 (Is_Limited_Type): Derived types do not inherit limitedness from
12648 interface progenitors.
12649 (Is_Return_By_Reference_Type): Predicate does not apply to limited
12652 * einfo.ads (Itype_Printed): New flag
12653 Move Is_Wrapper_Package to proper section
12654 Add missing Inline for Is_Volatile
12656 * output.ads, output.adb (Write_Erase_Char): New procedure
12657 (Save/Restore_Output_Buffer): New procedures
12658 (Save/Restore_Output_Buffer): New procedures
12660 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
12661 Add missing support for anonymous access type
12662 (Write_Id): Insert calls to Write_Itype
12663 (Write_Itype): New procedure to output itypes
12665 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
12666 use of "limited" in declaration.
12668 * sinfo.ads, sinfo.adb:
12669 Formal derived types can carry an explicit "limited" indication.
12671 * sem_ch3.adb: Add with and use of Targparm.
12672 (Create_Component): If Frontend_Layout_On_Target is True and the
12673 copied component does not have a known static Esize, then reset
12674 the size and positional fields of the new component.
12675 (Analyze_Component_Declaration): A limited component is
12676 legal within a protected type that implements an interface.
12677 (Collect_Interfaces): Do not add to the list the interfaces that
12678 are implemented by the ancestors.
12679 (Derived_Type_Declaration): If the parent of the full-view is an
12680 interface perform a transformation of the tree to ensure that it has
12681 the same parent than the partial-view. This simplifies the job of the
12682 expander in order to generate the correct object layout, and it is
12683 needed because the list of interfaces of the full-view can be given in
12685 (Process_Full_View): The parent of the full-view does not need to be
12686 a descendant of the parent of the partial view if both parents are
12688 (Analyze_Private_Extension_Declaration): If declaration has an explicit
12689 "limited" the parent must be a limited type.
12690 (Build_Derived_Record_Type): A derived type that is explicitly limited
12691 must have limited ancestor and progenitors.
12692 (Build_Derived_Type): Ditto.
12693 (Process_Full_View): Verify that explicit uses of "limited" in partial
12694 and full declarations are consistent.
12695 (Find_Ancestor_Interface): Remove function.
12696 (Collect_Implemented_Interfaces): New procedure used to gather all
12697 implemented interfaces by a type.
12698 (Contain_Interface): New function used to check whether an interface is
12700 (Find_Hidden_Interface): New function used to determine whether two
12701 lists of interfaces constitute a set equality. If not, the first
12702 differing interface is returned.
12703 (Process_Full_View): Improve the check for the "no hidden interface"
12704 rule as defined by AI-396.
12706 2005-12-09 Robert Dewar <dewar@adacore.com>
12708 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
12709 types, not on record subtypes.
12710 (Freeze_Entity): Code cleanup. Add barrier to the loop
12711 that generates the references for primitive operations. This allows to
12712 remove an unnecessary exception handler.
12713 Code reformatting and comment clean ups.
12715 2005-12-09 Vincent Celier <celier@adacore.com>
12717 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
12718 If GNAT CHECK is called with a project file, but with no
12719 source on the command line, call gnatcheck with all the compilable
12720 sources of the project.
12721 Take into account the new command Check, for gnatcheck. Treat as for
12722 other ASIS tools: take into account project, specific package Check and
12724 For ASIS tools, add the switches in package Compiler for
12725 the invocation of the compiler.
12727 * prj-attr.adb: Add package Check and its attributes
12729 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
12731 * vms_conv.adb (Initialize): Change Params of command Check to
12733 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
12734 Add data for new command Check
12736 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
12738 Add qualifiers for Check command options
12739 (Command_Type): New command Check
12741 2005-12-09 Thomas Quinot <quinot@adacore.com>
12743 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
12744 command line switch overruns the output buffer.
12746 2005-12-09 Robert Dewar <dewar@adacore.com>
12748 * sem_prag.adb: Processing for new pragma Complete_Representation
12749 (Analyze_Pragma, case Debug): Implement two argument form.
12751 * par-prag.adb: Entry for new pragma Complete_Representation
12752 (Prag, case Debug): Recognize two argument form of pragma Debug
12753 New interface for Set_Style_Check_Options.
12755 * sem_ch13.adb: Implement new pragma Complete_Representation.
12757 * snames.adb, snames.ads, snames.h: Entry for new pragma
12758 Complete_Representation.
12760 2005-12-09 Gary Dismukes <dismukes@adacore.com>
12762 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
12763 available user-specified stream attributes on limited parameters to
12764 also test the type directly rather than only its underlying type (for
12765 Ada 95) and, in the case of Ada 2005, to check that the user-specified
12766 attributes are visible at the point of the subprogram declaration.
12767 For Ada 2005, the error message is modified to indicate that the
12768 type's stream attributes must be visible (again, only for -gnat05).
12770 2005-12-09 Ed Schonberg <schonberg@adacore.com>
12772 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
12773 anonymous access types.
12775 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
12776 matching of anonymous access types and anonymous access to subprogram
12777 types. 'R'M 4.9.1 (2/2).
12779 2005-12-09 Ed Schonberg <schonberg@adacore.com>
12781 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
12782 rule prematurely when operands are universal, remaining ambiguities
12783 will be removed during resolution.
12786 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
12787 that are Ada 2005 functions.
12788 (Has_Abstract_Interpretation): Subsidiary to
12789 Remove_Conversions, to remove ambiguities caused by abstract operations
12790 on numeric types when operands are universal.
12792 2005-12-09 Robert Dewar <dewar@adacore.com>
12794 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
12795 for case where spec is categorized.
12797 2005-12-09 Javier Miranda <miranda@adacore.com>
12799 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
12800 types use the corresponding record type. This was not needed before
12801 the implementation of Ada 2005 synchronized types because
12802 concurrent types were never tagged types in Ada 95.
12804 2005-12-09 Ed Schonberg <schonberg@adacore.com>
12806 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
12807 first subtype of the type of the expression to verify that it is a
12810 2005-12-09 Robert Dewar <dewar@adacore.com>
12812 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
12815 2005-12-09 Quentin Ochem <ochem@adacore.com>
12816 Robert Dewar <dewar@adacore.com>
12817 Ed Falis <falis@adacore.com>
12818 Florian Villoing <villoing@adacore.com>
12819 Thomas Quinot <quinot@adacore.com>
12820 Arnaud Charlet <charlet@adacore.com>
12822 * gnat_ugn.texi: Created section "Stack Related Tools"
12823 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
12824 "Stack Related Tools"
12825 Added subsection "Static Stack Usage Analysis"
12826 Added subsection "Dynamic Stack Usage Analysis"
12827 Include documentation of itypes in sprint listing (-gnatG)
12828 Documented gnatbind -D switch (default sec stack size for fixed sec
12830 Added Interrupt_State and Persistent_BSS to list of configuration
12832 Add missing doc for maximum value of nnn in -gnatyMnnn
12834 * gnat_rm.texi: Document the AltiVec binding.
12835 Add documentation for pragma Complete_Representation
12836 Shortened an overly long line (> 79 chars)
12837 Clarify documentation of unchecked conversion in implementation
12839 Document two argument form of pragma Debug
12841 * types.ads (Column_Number): Update documentation.
12843 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
12844 library level Finalize_Storage_Only objects (these are not attached to
12845 any finalization list).
12847 * system-mingw.ads: (Underlying_Priorities): Update comment.
12849 2005-12-09 Robert Dewar <dewar@adacore.com>
12851 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
12852 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
12853 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
12854 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
12855 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
12856 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
12857 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
12858 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
12861 2005-12-09 Robert Dewar <dewar@adacore.com>
12863 * s-vaflop-vms-alpha.adb: (Ne_F): New function
12864 (Ne_G): New function
12866 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
12867 for tag assignment.
12868 (Rewrite_Comparison): Handle case where operation is not a comparison
12869 and ignore, and also handle type conversion case.
12871 2005-12-09 Thomas Quinot <quinot@adacore.com>
12873 * exp_aggr.ads: Fix typo in comment.
12874 ???-mark Convert_Aggr_In_Assignment as needing documentation.
12876 2005-12-09 Gary Dismukes <dismukes@adacore.com>
12878 * layout.adb: Replace various uses of byte by storage unit throughout.
12879 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
12880 static size, convert to storage units before returning, to conform to
12883 2005-12-09 Matthew Gingell <gingell@adacore.com>
12885 * g-exctra.ads: Fix typo in comment.
12887 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12889 * utils.c: Minor reformatting.
12891 2005-12-09 Robert Dewar <dewar@adacore.com>
12894 Further comment fixes to make the status of the default file clear
12896 * s-bitops.adb: Clarify comment for Bits_Array
12898 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12900 * Make-lang.in (ada.install-normal): Remove.
12902 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12904 * Make-lang.in: Remove all dependencies on s-gtype.
12906 2005-12-05 Richard Guenther <rguenther@suse.de>
12908 * utils.c (convert): Use fold_convert where appropriate.
12910 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
12912 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
12915 2005-12-02 Richard Guenther <rguenther@suse.de>
12917 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
12919 2005-12-01 Roger Sayle <roger@eyesopen.com>
12921 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
12924 2005-11-23 Laurent GUERBY <laurent@guerby.net>
12926 * mlib-prj.adb (Build_Library): Initialize Delete.
12928 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
12930 * socket.c: Add extern int h_errno for rtems since networking header
12931 files are not available at this point in a tool bootstrap. Newlib
12932 only has basic C library header files.
12934 2005-11-19 Richard Guenther <rguenther@suse.de>
12935 Roger Sayle <roger@eyesopen.com>
12938 * misc.c (internal_error_function): Don't use vsprintf to format
12939 the error message text, instead use pp_format_text and the new
12940 pretty printer APIs. This allows handling of %qs, %w, etc.
12942 2005-11-18 Laurent GUERBY <laurent@guerby.net>
12945 * Makefile.in: Use s-auxdec-empty for RTEMS.
12947 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12950 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
12951 a temporary if taking the address of something that is neither
12952 reference, declaration, or constant, since the gimplifier
12953 can't handle that case.
12955 2005-11-17 Laurent GUERBY <laurent@guerby.net>
12958 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
12960 2005-11-16 Richard Guenther <rguenther@suse.de>
12962 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
12964 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
12967 * raise-gcc.c: Add missing stdarg.h include.
12969 2005-11-16 Richard Guenther <rguenther@suse.de>
12971 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
12972 (ada/misc.o): Likewise.
12974 2005-11-14 Thomas Quinot <quinot@adacore.com>
12976 * g-soccon.ads: Minor reformatting. Update comments.
12978 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
12979 gain visibility on the declaration of struct timeval.
12981 * g-soccon-freebsd.ads,
12982 g-soccon-darwin.ads,
12983 g-soccon-tru64.ads,
12987 g-soccon-solaris.ads,
12989 g-soccon-mingw.ads,
12990 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
12992 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
12993 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
12994 g-soccon-linux-x86.ads: New files.
12996 * g-socthi-mingw.adb:
12997 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
12999 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
13000 (time_t, suseconds_t): New types constructed to match the tv_sec
13001 and tv_usec fields of C struct timeval.
13002 (Timeval): Construct structure in terms of the new types.
13003 (Host_Errno): New function (imported from socket.c), returns last hosts
13006 * g-socthi-vxworks.adb: Add error handling circuitry.
13008 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
13009 components of struct timeval.
13010 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
13011 (Check_Selector): In error conditions, clear internal socket sets to
13012 avoid a memory leak.
13013 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
13014 Send_Timeout, Receive_Timeout.
13016 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
13017 the tv_sec and tv_usec fields of C struct timeval.
13018 (Timeval): Construct structure in terms of the new types.
13019 (Host_Errno): New function (imported from socket.c), returns last hosts
13022 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
13023 hosts database last error code.
13025 * gen-soccon.c: Complete value expansion should not be performed on
13026 TARGET, as it has the form of a math expression, and some components
13027 may be platform-defined macros.
13028 For VxWorks, generate the OK and ERROR values.
13029 New constants giving the sizes of the components of C struct timeval.
13031 2005-11-14 Robert Dewar <dewar@adacore.com>
13032 Ed Schonberg <schonberg@adacore.com>
13035 * types.ads: Include All_Checks in Suppress_Array
13037 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
13038 not(a=b), since we no longer do this rewriting, and hence it is not
13040 (Elaboration_Checks_Suppressed): Add special casing to
13041 deal with different cases of static and dynamic elaboration checks (all
13042 checks does not count in the first case, but does in the second).
13043 (Expr_Known_Valid): Do not assume that the result of any arbitrary
13044 function call is valid, since this is not the case.
13045 (Ensure_Valid): Do not apply validity check to a real literal
13046 in a universal or fixed context
13048 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
13049 elementary types using the operator in standard. It is cleaner not to
13050 modify the programmers intent, especially in the case of floating-point.
13051 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
13052 it did not matter because we always rewrote a/=b to not(a=b).
13053 (Expand_Allocator_Expression): For an allocator expression whose nominal
13054 subtype is an unconstrained packed type, convert the expression to its
13055 actual constrained subtype.
13056 Implement warning for <= or >= where < or > not possible
13057 Fix to Vax_Float tests (too early in many routines, causing premature
13058 Vax_Float expansions.
13060 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
13061 to be used with packages and generic packages as well as with
13063 (Suppress): Set All_Checks, but not Elaboration_Check, for case
13064 of pragma Suppress (All_Checks)
13065 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
13066 a string literal for precise control over warnings.
13067 Avoid raise of pragma in case of unrecognized pragma and just return
13070 * sem_prag.ads: Minor reformatting
13072 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
13073 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
13074 Switch. Do not handle any exception.
13075 Include -gnatwx as part of -gnatg (warn on redundant parens)
13076 Allow optional = after -gnatm
13077 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
13078 longer sets Elaboration_Checks.
13079 Code to set warning mode moved to Sem_Warn
13080 so that it can be shared by pragma processing.
13082 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
13085 * s-taprop-solaris.adb:
13086 Change some <= to =, to avoid new warning
13088 * a-exexda.adb, prj-proc.adb:
13089 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
13090 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
13092 2005-11-14 Robert Dewar <dewar@adacore.com>
13094 * exp_vfpt.adb: Handle /= case
13095 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
13096 so that we do not get duplicate scaling for fixed point conversions.
13098 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
13100 2005-11-14 Matthew Gingell <gingell@adacore.com>
13102 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
13103 Increase default priority on Lynx from 15 to 17, and meet the Ada
13104 requirement that Default_Priority be ((Priority'First +
13105 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
13107 2005-11-14 Vincent Celier <celier@adacore.com>
13109 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
13110 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
13111 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
13112 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
13113 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
13114 mlib-tgt-lynxos.adb (DLL_Prefix): New function
13116 2005-11-14 Doug Rupp <rupp@adacore.com>
13118 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
13121 2005-11-14 Arnaud Charlet <charlet@adacore.com>
13123 * s-traces-default.adb, s-trafor-default.ads,
13124 s-tratas-default.adb: Fix compilation errors.
13126 2005-11-14 Jose Ruiz <ruiz@adacore.com>
13128 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
13129 raising the exception so the memory used is freed.
13131 2005-11-14 Arnaud Charlet <charlet@adacore.com>
13133 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
13134 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
13135 (convert_address): Update comments and list of platforms using this.
13137 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
13140 2005-11-14 Pascal Obry <obry@adacore.com>
13141 Vincent Celier <celier@adacore.com>
13143 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
13146 * memroot.adb: Remove redundant with/use clause on
13147 System.Storage_Elements.
13149 2005-11-14 Arnaud Charlet <charlet@adacore.com>
13151 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
13152 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
13153 related code to a-exexpr.adb
13154 (Save_Occurrence_And_Private): Move GCC EH related code to
13156 (Raise_Current_Excep): Add new variable Id with pragma
13157 volatile, to ensure that the variable lives on stack.
13159 * a-exexpr-gcc.adb, raise-gcc.c: New file.
13161 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
13163 Move GCC EH related code to a-exexpr-gcc.adb
13165 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
13167 Split the Linux version of g-soccon into separate variants for 32 and 64
13169 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
13170 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
13171 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
13172 of host variable $(RANLIB_FLAGS).
13173 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
13174 Code clean up: remove unused/obsolete targets.
13175 (EH_MECHANISM): New variable introduced to differenciate between the
13176 two EH mechanisms statically.
13177 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
13178 (LIBGNAT_OBJS): Add raise-gcc.o
13179 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
13180 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
13181 supports VxWorks 6 RTPs.
13182 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
13183 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
13185 * raise.c: Move all GCC EH-related routines to raise-gcc.c
13187 2005-11-14 Jose Ruiz <ruiz@adacore.com>
13189 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
13190 deferral level, when abort is not allowed, to a later stage (the
13192 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
13193 it will not get changed by the generated code. It was previously done
13196 2005-11-14 Thomas Quinot <quinot@adacore.com>
13197 Olivier Hainque <hainque@adacore.com>
13198 Eric Botcazou <ebotcazou@adacore.com>
13201 Factor common code to build a storage type for an unconstrained object
13202 from a fat or thin pointer type and a constrained object type.
13203 (annotate_value): Handle BIT_AND_EXPR.
13204 (annotate_rep): Don't restrict the back annotation of inherited
13205 components to the type_annotate_only case.
13206 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
13207 we are not defining the type.
13208 <E_Record_Type>: Likewise.
13209 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
13210 to get advantage of the new maybe_stabilize_reference interface, to
13211 ensure that what we reference is indeed stabilized instead of relying
13212 on assumptions on what the stabilizer does.
13213 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
13214 type imported through a limited_with clause, use its non-limited view.
13215 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
13217 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
13218 of #if sections + explicit comparisons of convention identifiers.
13219 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
13220 before early-returning for certain types when code generation is
13222 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
13223 nullification of gnu_expr we do for objects with address clause and
13224 that we are not defining.
13225 (elaborate_expression_1): Do not create constants when creating
13226 variables needed by the debug info: the dwarf2 writer considers that
13227 CONST_DECLs is used only to represent enumeration constants, and emits
13229 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
13230 object with an address clause into an indirect reference, drop the
13231 initializing expression.
13233 (STACK_CHECK_BUILTIN): Delete.
13234 (STACK_CHECK_PROBE_INTERVAL): Likewise.
13235 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
13236 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
13237 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
13238 corresponding to the renamed object as ignored for debugging purposes.
13240 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
13241 related): For a prefix that is a dereference of a fat or thin pointer,
13242 if there is an actual subtype provided by the front-end, use that
13243 subtype to build an actual type with bounds template.
13244 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
13245 is provided by the front-end, use that subtype to compute the size of
13246 the deallocated object.
13247 (gnat_to_gnu): When adding a statement into an elaboration procedure,
13248 check for a potential violation of a No_Elaboration_Code restriction.
13249 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
13250 with extra arguments to control whether to recurse through non-values
13251 and to let the caller know if the stabilization has succeeded.
13252 (gnat_stabilize_reference): Now a simple wrapper around
13253 maybe_stabilize, for common uses without restriction on lvalues and
13254 without need to check for the success indication.
13255 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
13256 pass false instead of 0 as the FORCE argument which is a bool.
13257 (Identifier_to_gnu): Remove checks ensuring that an renamed object
13258 attached to a renaming pointer has been properly stabilized, as no such
13259 object is attached otherwise.
13260 (call_to_gnu): Invoke create_var_decl to create the temporary when the
13261 function uses the "target pointer" return mechanism.
13262 Reinstate conversion of the actual to the type of the formal
13263 parameter before any other specific treatment based on the passing
13264 mechanism. This turns out to be necessary in order for PLACEHOLDER
13265 substitution to work properly when the latter type is unconstrained.
13267 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
13269 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
13270 with extra arguments to control whether to recurse through non-values
13271 and to let the caller know if the stabilization has succeeded.
13273 * utils2.c (gnat_build_constructor): Only sort the fields for possible
13274 static output of record constructor if all the components are constant.
13275 (gnat_build_constructor): For a record type, sort the list of field
13276 initializers in increasing bit position order.
13277 Factor common code to build a storage type for an unconstrained object
13278 from a fat or thin pointer type and a constrained object type.
13279 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
13280 types variants, and process special cases of VIEW_CONVERT expressions
13281 as their NOP_EXPR counterpart to ensure we get to the
13282 CORRESPONDING_VARs associated with CONST_DECls.
13283 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
13284 on the right-hand side.
13286 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
13288 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
13289 are converting back to its original type.
13290 (convert) <JM input>: Fallthrough regular conversion code instead of
13291 extracting the object if converting to a type variant.
13292 (create_var_decl): When a variable has an initializer requiring code
13293 generation and we are at the top level, check for a potential violation
13294 of a No_Elaboration_Code restriction.
13295 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
13296 SIZE and SIZE_UNIT which we need for later back-annotations.
13297 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
13298 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
13299 is an unchecked union.
13300 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
13301 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
13302 main variant, just replace the VIEW_CONVERT_EXPR.
13303 <UNION_TYPE>: Revert 2005-03-02 change.
13305 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
13307 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
13309 2005-11-14 Matthew Heaney <heaney@adacore.com>
13311 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
13312 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
13313 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
13314 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
13315 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
13316 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
13317 Compiles against the spec for ordered maps described in sections
13318 A.18.6 of the most recent (August 2005) AI-302 draft.
13320 2005-11-14 Olivier Hainque <hainque@adacore.com>
13322 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
13323 to ensure bias adjustments take place when need be and to prevent
13324 occurrences of intermediate overflows.
13326 2005-11-14 Matthew Gingell <gingell@adacore.com>
13327 Olivier Hainque <hainque@adacore.com>
13329 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
13332 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
13333 tracebacks on ia64 HP-UX and provide explanatory comment.
13334 Enable backtraces on ia64 GNU/Linux.
13335 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
13336 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
13338 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
13339 Javier Miranda <miranda@adacore.com>
13341 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
13342 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
13343 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
13344 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
13346 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
13347 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
13350 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
13351 subprogram that generates the external name associated with a
13352 secondary dispatch table.
13353 (Get_Secondary_DT_External_Name): New subprogram that generates the
13354 external name associated with a secondary dispatch table.
13356 2005-11-14 Emmanuel Briot <briot@adacore.com>
13358 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
13359 line in the ALI file to include both an instantiation reference, and a
13362 2005-11-14 Vincent Celier <celier@adacore.com>
13364 * clean.adb (Check_Project): Look for Ada code in extending project,
13365 even if Ada is not specified as a language.
13366 Use new function DLL_Prefix for DLL_Name
13367 (Clean_Interface_Copy_Directory): New procedure
13368 (Clean_Library_Directory): New procedure
13369 (Clean_Directory): Remove procedure, no longer used
13370 (Clean_Project): Do not delete any file in an externally built project
13372 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
13373 directory of an extending project, even when there are no Ada source
13375 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
13376 (Set_Ada_Paths.Add.Recursive_Add): Ditto
13378 * mlib-prj.adb (Check_Library): For all library projects, get the
13379 library file timestamp.
13380 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
13381 (Build_Library): Use new function DLL_Prefix for the DLL_Name
13382 (Clean): Remove procedure, no longer used
13383 (Ultimate_Extension_Of): New function
13384 (Build_Library): When cleaning the library directory, only remove an
13385 existing library file and any ALI file of a source of the project.
13386 When cleaning the interface copy directory, remove any source that
13387 could be a source of the project.
13389 * prj.ads, prj.adb (Project_Empty): Add values of new components
13390 Library_TS and All_Imported_Projects.
13391 (Project_Empty): Add values for new components of Project_Data:
13392 Library_ALI_Dir and Display_Library_ALI_Dir
13394 * prj-attr.adb: New project level attribute name Library_ALI_Dir
13396 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
13397 attribute Library_ALI_Dir.
13398 (Check_Library_Attributes): The library directory cannot be the same as
13399 any source directory of the project tree.
13400 (Check_Stand_Alone_Library): The interface copy directory cannot be
13401 the same as any source directory of the project tree.
13403 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
13404 all temporary files.
13406 2005-11-14 Robert Dewar <dewar@adacore.com>
13407 Ed Schonberg <schonberg@adacore.com>
13409 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13410 (Check_Elab_Call): A call within a protected body is never an
13411 elaboration call, and does not require checking.
13412 (Same_Elaboration_Scope): Take into account protected types for both
13414 (Activate_Elaborate_All_Desirable): New procedure
13416 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
13419 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
13420 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
13422 * lib-writ.ads, lib-writ.adb:
13423 Implement new AD/ED for Elaborate_All/Elaborate desirable
13424 Use new Elaborate_All_Desirable flag in N_With_Clause node
13426 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
13427 N_Free_Statement nodes.
13428 Define new class N_Subprogram_Instantiation
13429 Add Elaborate_Desirable flag to N_With_Clause node
13430 Add N_Delay_Statement (covering two kinds of delay)
13432 * debug.adb: Introduce d.f flag for compiler
13433 Add -da switch for binder
13435 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13436 Cyrille Comar <comar@adacore.com>
13438 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
13439 for task component, in the case of a limited aggregate. The enclosed
13440 object declaration will create it earlier. Otherwise, in the case of a
13441 nested aggregate, the object may appear in the wrong scope.
13442 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
13443 (Gen_Assign): If the component being assigned is an array type and the
13444 expression is itself an aggregate, wrap the assignment in a block to
13445 force finalization actions on the temporary created for each row of the
13447 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
13448 structures are initialized after all discriminants are set so that
13449 they can be accessed even when their offset is dynamic.
13451 2005-11-14 Robert Dewar <dewar@adacore.com>
13452 Hristian Kirtchev <kirtchev@adacore.com>
13454 * sem_attr.adb: Implement Machine_Rounding attribute
13455 (Analyze_Access_Attribute): The access attribute may appear within an
13456 aggregate that has been expanded into a loop.
13457 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
13458 'Terminated whenever the prefix is of a task interface class-wide type.
13459 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
13460 the prefix is of a task interface class-wide type.
13462 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
13465 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
13466 Remove pragma Inline for [Unaligned_]Valid.
13467 Add comments that Valid routines do not work for Vax_Float
13469 * exp_attr.adb: Implement Machine_Rounding attribute
13471 * snames.h: Add entry for Machine_Rounding attribute
13473 2005-11-14 Javier Miranda <miranda@adacore.com>
13474 Robert Dewar <dewar@adacore.com>
13475 Hristian Kirtchev <kirtchev@adacore.com>
13477 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
13478 and related): For a prefix that is an explicit dereference of an
13479 access to unconstrained packed array type, annotate the dereference
13480 with an actual subtype so GIGI can make a correct size computation.
13481 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
13482 'Unrestricted_Access, if the designated type is an interface we
13483 add a type conversion to force the displacement of the pointer
13484 to the secondary dispatch table.
13485 Use Universal_Real instead of Long_Long_Float when we need a high
13486 precision float type for the generated code (prevents gratuitous
13487 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
13488 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
13489 'Terminated for task interface class-wide objects. Generate a call to
13490 the predefined dispatching routine used to retrieve the _task_id from
13491 a task corresponding record.
13492 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
13494 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13495 (Check_Dispatching_Operation): Protect the frontend againts
13496 previously detected errors.
13498 * Makefile.rtl: Add new instantiations of system.fat_gen
13500 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
13501 Change name of instantiated package for better consistency
13502 with newly added system.fat_gen instantiations.
13504 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
13505 s-fvagfl.ads: New files.
13507 2005-11-14 Cyrille Comar <comar@adacore.com>
13508 Thomas Quinot <quinot@adacore.com>
13510 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
13511 assignment of a value of a tagged type that has been rewritten to a
13512 block statement, it is known by construction that no checks are
13513 necessary for the statements within the block: analyze it with checks
13515 (Expand_N_If_Statement): When killing a dead then-branch in an
13516 if-statement that has elsif_parts, recompute the Current_Value node
13517 for any entity whose value is known from the condition of the first
13519 (Expand_N_Return_Statement): When returning a mutable record, convert
13520 the return value into its actual subtype in order to help the backend
13521 to return the actual size instead of the maximum. This is another
13522 aftermath of not returning mutable records on the sec-stack anymore.
13524 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
13525 handling of error msg for suspicious reverse range iteration.
13526 (Check_Possible_Current_Value_Condition): Move declaration from body to
13527 spec, to allow this subprogram to be called from exp_ch5.
13529 2005-11-14 Thomas Quinot <quinot@adacore.com>
13531 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
13532 generate a set of nested array aggregates instead of a single flat
13533 aggregate for multi-dimensional arrays.
13535 2005-11-14 Pascal Obry <obry@adacore.com>
13537 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
13538 by spawnve is a process handle, no need to convert. Add a parameter
13539 close to control wether the process handle must be closed.
13540 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
13541 a process handle, not need to convert.
13542 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
13544 * g-expect.adb: (Kill): Document the new close parameter.
13545 (Close): Do not release the process handle in the kill there as
13546 waitpid() is using it.
13547 (Send_Signal): Release the process handle.
13549 2005-11-14 Robert Dewar <dewar@adacore.com>
13551 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
13552 need a high precision float type for the generated code (prevents
13553 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
13556 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
13557 need a high precision float type for the generated code (prevents
13558 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
13560 (Expand_Width_Attribute): In configurable run-time, the attribute is not
13561 allowed on non-static enumeration subtypes. Force a load error to emit
13562 the correct diagnostic.
13564 2005-11-14 Thomas Quinot <quinot@adacore.com>
13565 Robert Dewar <dewar@adacore.com>
13566 Ed Schonberg <schonberg@adacore.com>
13568 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
13569 subtype to compute the size of the designated object at run-time,
13570 create such a subtype and store it in the Actual_Designated_Subtype
13571 attribute of the N_Free_Statement.
13572 Generate itype for classwide designated object in both cases of
13573 user-specified storage pool: specific and class-wide, not only in the
13575 Raise CE when trying to set a not null access type object to null.
13576 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
13577 an explicit loop, because freeze nodes make its position variable.
13579 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
13582 2005-11-14 Javier Miranda <miranda@adacore.com>
13584 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
13585 Build_Stream_Procedure): Add the null-excluding attribute to the first
13587 This has no semantic meaning under Ada95 mode but it is a
13588 requirement under Ada05 mode.
13590 * par-ch3.adb (P_Access_Definition): Addition of warning message if
13591 the null exclusion is used under Ada95 mode
13592 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
13593 (P_Access_Definition): Remove assertion that forbids the use of
13594 the null-exclusion feature in Ada95.
13596 2005-11-14 Robert Dewar <dewar@adacore.com>
13598 * impunit.adb: Exclude container helper units not intended for use by
13601 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13603 * freeze.adb (Freeze_Entity): For an access formal that is an access
13604 to subprogram, freeze the anonymous subprogram type at the same time,
13605 to prevent later freezing in the wrong scope, such as the enclosing
13607 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
13608 subprogram whenever available.
13610 2005-11-14 Arnaud Charlet <charlet@adacore.com>
13613 * gnatvsn.ads (Library_Version): Bump to 4.1
13615 2005-11-14 Robert Dewar <dewar@adacore.com>
13617 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
13618 Storage_Offset to avoid wrap around causing invalid results.
13620 2005-11-14 Pascal Obry <obry@adacore.com>
13622 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
13624 (Scan_Bind_Arg): Fail with an error message if -M option is used
13625 on a native compiler.
13627 2005-11-14 Robert Dewar <dewar@adacore.com>
13628 Vincent Celier <celier@adacore.com>
13630 * gprep.adb: Implement -C switch to scan comments
13632 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
13634 * scans.ads: Comment updates (including new use of Tok_Comment in
13637 * opt.ads: Add documentation for flags that are used by gprmake,
13638 currently and in the next version of gprmake.
13639 (Verbosity_Level): New variable
13640 Add Replace_In_Comments switch
13642 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
13644 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
13646 2005-11-14 Arnaud Charlet <charlet@adacore.com>
13648 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
13649 message, friendlier.
13651 2005-11-14 Robert Dewar <dewar@adacore.com>
13653 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
13655 2005-11-14 Doug Rupp <rupp@adacore.com>
13657 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
13659 2005-11-14 Robert Dewar <dewar@adacore.com>
13661 * interfac.ads: Change declarations of IEEE float types so that we no
13662 longer need a separate version of this package for VMS.
13664 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13666 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
13667 internal entity created for the declaration of a child subprogram body
13668 with no spec as coming from source, to generate proper cross-reference
13671 2005-11-14 Vincent Celier <celier@adacore.com>
13673 * make.adb (Compile_Sources): Change verbose message to minimum
13674 verbosity level High for "is in an Ada library", "is a read-only
13675 library" and "is an internal library",
13676 (Create_Binder_Mapping_File): Path name of ALI file for library project
13677 must include the library directory, not the object directory.
13678 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
13679 for new switches -vl, -vm and -vh.
13680 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
13681 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
13682 (Compile_Sources): Do not attempt to compile if an ALI file is missing
13683 in a project that is externally built.
13684 (Compute_All_Imported_Projects): New procedure
13685 (Gnatmake): Check if importing libraries should be regenerated because
13686 at least an imported library is more recent.
13687 (Initialize): For each project compute the list of the projects it
13688 imports directly or indirectly.
13689 (Add_Library_Search_Dir): New procedure, used in place of
13690 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
13691 put in the search paths.
13692 (Add_Source_Search_Dir): New procedure, used in place of
13693 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
13694 put in the search paths.
13695 (Mark_Directory): Resolve the absolute path the directory before marking
13698 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
13699 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
13700 Switch. Do not handle any exception.
13701 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
13702 so that the switch is recognized as valid.
13703 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
13705 2005-11-14 GNAT Script <nobody@adacore.com>
13707 * Make-lang.in: Makefile automatically updated
13709 2005-11-14 Pascal Obry <obry@adacore.com>
13711 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
13713 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
13714 In both cases the last argument was dropped.
13716 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
13718 * namet.h: (Column_Numbe): New type.
13719 (Get_Column_Number): Define to sinput__get_column_number.
13720 (Instantiation): Define to sinput__instantiation.
13721 (Get_Column_Number): Declare.
13722 (Instantiation): Likewise.
13724 2005-11-14 Robert Dewar <dewar@adacore.com>
13726 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
13727 syntax, which could cause compiler hangs.
13729 2005-11-14 Vincent Celier <celier@adacore.com>
13731 * prj-ext.adb: Take into account new environment variable
13732 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
13734 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
13735 normalize its path name, making it absolute and resolving symbolic
13736 links, and replace the original if resolved path is different.
13738 2005-11-14 Vincent Celier <celier@adacore.com>
13740 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
13741 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
13743 2005-11-14 Emmanuel Briot <briot@adacore.com>
13745 * prj-pp.adb (Print): Do not output the with statement if the
13746 associated name is empty, which happens for virtual extending projects.
13747 (Print): Preserve the "extends all" attribute when printing the project.
13749 * prj-tree.ads (String_Value_Of): Add comment about returned value for
13750 a virtual extending project.
13752 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13754 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
13755 rhs of an assignment even if the type is unconstrained, when the
13756 context is non-expanding.
13757 In an inlined body, if the context type is private,
13758 resolve with its full view, which must be a composite type.
13760 2005-11-14 Robert Dewar <dewar@adacore.com>
13761 Ed Schonberg <schonberg@adacore.com>
13763 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13764 Do not give obsolescent warning on with of subprogram (since we
13766 (Analyze_With_Clause): Add test for obsolescent package
13767 (Install_Context_Clauses): If the unit is the body of a child unit, do
13768 not install twice the private declarations of the parents, to prevent
13769 circular lists of Use_Clauses in a parent.
13770 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
13771 compiling body of child unit.
13772 Use new class N_Subprogram_Instantiation
13773 (Expand_With_Clause): If this is a private with_clause for a child unit,
13774 appearing in the context of a package declaration, then the implicit
13775 with_clauses generated for parent units are private as well.
13776 (License_Check): Do not generate message if with'ed unit is internal
13778 2005-11-14 Gary Dismukes <dismukes@adacore.com>
13779 Ed Schonberg <schonberg@adacore.com>
13780 Thomas Quinot <quinot@adacore.com>
13782 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
13783 names are internal, because they will not have a corresponding partner
13784 in the actual package.
13785 (Analyze_Formal_Package): Move the setting of the formal package spec's
13786 Generic_Parent field so that it occurs prior to analyzing the package,
13787 to allow proper operation of Install_Parent_Private_Declarations.
13788 (Analyze_Package_Instantiation): Set the instantiated package entity's
13789 Package_Instantiation field.
13790 (Get_Package_Instantiation_Node): Move declaration to package spec.
13791 Retrieve the N_Package_Instantiation node when the Package_Instantiation
13793 (Check_Generic_Child_Unit): Within an inlined call, the only possible
13794 instantiation is Unchecked_Conversion, for which no parents are needed.
13795 (Inline_Instance_Body): Deinstall and record the use_clauses for all
13796 parent scopes of a scope being removed prior to inlining an instance
13798 (Analyze_Package_Instantiation): Do not perform front-end inlining when
13799 the current context is itself an instance within a non-instance child
13800 unit, to prevent scope stack errors.
13801 (Save_References): If the node is an aggregate that is an actual in a
13802 call, rewrite as a qualified expression to preserve some type
13803 information, to resolve possible ambiguities in the instance.
13804 (Instance_Parent_Unit): New global variable to record the ultimate
13805 parent unit associated with a generic child unit instance (associated
13806 with the existing Parent_Unit_Visible flag).
13807 (type Instance_Env): New component Instance_Parent_Unit for stacking
13808 parents recorded in the global Instance_Parent_Unit.
13809 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
13811 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
13812 it's not a top-level unit, and only do this if Instance_Parent_Unit is
13813 not already set. Replace test of Is_Child_Unit with test of parent's
13814 scope against package Standard. Add comments and a ??? comment.
13815 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
13816 on a child instance parent to test that the parent equals
13817 Instance_Parent rather than simply checking that the unit is not a
13819 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
13820 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
13821 a formal interface are ancestors of the corresponding actual.
13822 (Validate_Formal_Interface_Type): Additional legality checks.
13823 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
13824 interface types with ancestors.
13825 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
13826 to diagnose attempts to use generic within its own declaration.
13828 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13829 Javier Miranda <miranda@adacore.com>
13831 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
13833 (Build_Private_Derived_Type): The entity of the created full view of the
13834 derived type does not come from source. If after installing the private
13835 declarations of the parent scope the parent is still private, use its
13836 full view to construct the full declaration of the derived type.
13837 (Build_Derived_Record_Type): Relax the condition that controls the
13838 execution of the check that verifies that the partial view and
13839 the full view agree in the set of implemented interfaces. In
13840 addition, this test now only takes into account the progenitors.
13841 (Derive_Interface_Subprograms): No need to derive subprograms
13842 of ancestors that are interfaces.
13843 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
13845 Change name Is_Package to Is_Package_Or_Generic_Package
13846 (Complete_Subprograms_Derivation): Handle the case in which the full
13847 view is a transitive derivation of the ancestor of the partial view.
13848 (Process_Full_View): Rename local subprogram Find_Interface_In_
13849 Descendant to Find_Ancestor_Interface to leave the code more clear.
13850 Remove wrong code that avoids the generation of an error message
13851 when the immediate ancestor of the partial view is an interface.
13852 In addition some minor reorganization of the code has been done to
13853 leave it more clear.
13854 (Analyze_Type_Declaration): If type has previous incomplete tagged
13855 partial view, inherit properly its primitive operations.
13856 (Collect_Interfaces): Make public, for analysis of formal
13858 (Analyze_Interface_Declaration): New procedure for use for regular and
13859 formal interface declarations.
13860 (Build_Derived_Record_Type): Add support for private types to the code
13861 that checks if a tagged type implements abstract interfaces.
13862 (Check_Aliased_Component_Type): The test applies in the spec of an
13864 (Access_Type_Declaration): Clean up declaration of malformed type
13865 declared as an access to its own classwide type, to prevent cascaded
13867 (Collect_Interfaces): For private extensions and for derived task types
13868 and derived protected types, the parent may be an interface that must
13869 be included in the interface list.
13870 (Access_Definition): If the designated type is an interface that may
13871 contain tasks, create Master_Id for it before analyzing the expression
13872 of the declaration, which may be an allocator.
13873 (Record_Type_Declaration): Set properly the interface kind, for use
13874 in allocators, the creation of master id's for task interfaces, etc.
13876 2005-11-14 Javier Miranda <miranda@adacore.com>
13877 Ed Schonberg <schonberg@adacore.com>
13879 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
13880 omitted in case of stream attribute subprograms.
13881 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
13882 appear immediately after a subprogram body, when there is no previous
13883 subprogram declaration.
13884 Change name Is_Package to Is_Package_Or_Generic_Package
13885 (Process_Formals): A non null qualifier on a non null named access
13886 type is not an error, and is a warning only if Redundant_Constructs
13889 2005-11-14 Gary Dismukes <dismukes@adacore.com>
13890 Ed Schonberg <schonberg@adacore.com>
13892 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
13893 nested within Analyze_Package_Specification to install the private
13894 declarations and use clauses within each of the parent units of a
13895 package instance of a generic child package.
13896 (Analyze_Package_Specification): When entering a private part of a
13897 package associated with a generic instance or formal package, the
13898 private declarations of the parent must be installed (by calling new
13899 procedure Install_Parent_Private_Declarations).
13900 Change name Is_Package to Is_Package_Or_Generic_Package
13901 (Preserve_Full_Attributes): For a synchronized type, the corresponding
13902 record is absent in a generic context, which does not indicate a
13905 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13907 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
13908 not try to rewrite a renamed stream attribute, because the operations
13909 on the type may not have been generated.
13910 Handle properly a renaming_as_body generated for a stream operation
13911 whose default is abstract because the object type itself is abstract.
13912 (Find_Type): If the type is incomplete and appears as the prefix of a
13913 'Class reference, it is tagged, and its list of primitive operations
13914 must be initialized properly.
13915 (Chain_Use_Clauses): When chaining the use clauses that appear in the
13916 private declaration of a parent unit, prior to compiling the private
13917 part of a child unit, find on the scope stack the proper parent entity
13918 on which to link the use clause.
13919 (Note_Redundant_Use): Emit a warning when a redundant use clause is
13921 (Analyze_Object_Renaming): An attribute reference is not a legal object
13922 if it is not a function call.
13924 2005-11-14 Robert Dewar <dewar@adacore.com>
13925 Ed Schonberg <schonberg@adacore.com>
13927 * sem_eval.adb: Implement d.f flag
13928 (Subtype_Statically_Match): A generic actual type has unknown
13929 discriminants when the corresponding actual has a similar partial view.
13930 If the routine is called to validate the signature of an inherited
13931 operation in a child instance, the generic actual matches the full view,
13933 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
13934 Ed Schonberg <schonberg@adacore.com>
13935 Robert Dewar <dewar@adacore.com>
13936 Thomas Quinot <quinot@adacore.com>
13938 * sem_res.adb (Resolve_Call): Provide a better error message whenever
13939 a procedure call is used as a select statement trigger and is not an
13940 entry renaming or a primitive of a limited interface.
13941 (Valid_Conversion): If the operand has a single interpretation do not
13942 remove address operations.
13943 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
13944 statement to inhibit warning.
13945 (Resolve_Unary_Op): Do not produce a warning when
13946 processing an expression of the form -(A mod B)
13947 Use Universal_Real instead of Long_Long_Float when we need a high
13948 precision float type for the generated code (prevents gratuitous
13949 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
13950 (Resolve_Concatenation_Arg): Improve error message when argument is an
13951 ambiguous call to a function that returns an array.
13952 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
13953 there is an implicit operator in the given scope if we are within an
13954 instance: legality check has been performed on the generic.
13955 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
13956 after resolving operand, to avoid false warnings on overloaded calls.
13958 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13959 Javier Miranda <miranda@adacore.com>
13962 * sem_type.adb (Covers): In an inlined body, a composite type matches
13963 a private type whose full view is a composite type.
13964 (Interface_Present_In_Ancestor): Protect the frontend against
13965 previously detected errors to ensure that its compilation
13966 with assertions enabled gives the same output that its
13967 compilation without assertions.
13968 (Interface_Present_In_Ancestor): Add support for private types.
13969 Change name In_Actual to In_Generic_Actual (clean up)
13970 (Disambiguate): New predicate In_Actual, to recognize expressions that
13971 appear in the renaming declaration generated for generic actuals, and
13972 which must be resolved in the outer context.
13974 2005-11-14 Robert Dewar <dewar@adacore.com>
13975 Thomas Quinot <quinot@adacore.com>
13976 Hristian Kirtchev <kirtchev@adacore.com>
13977 Ed Schonberg <schonberg@adacore.com>
13979 * sem_util.ads, sem_util.adb: Change name Is_Package to
13980 Is_Package_Or_Generic_Package.
13981 (Check_Obsolescent): New procedure.
13982 (Set_Is_Public): Remove obsolete junk test.
13983 (Set_Public_Status): Do not set Is_Public on an object whose declaration
13984 occurs within a handled_sequence_of_statemets.
13985 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
13986 for a parameterless procedure.
13987 (Enter_Name): Recognize renaming declarations created for private
13988 component of a protected type within protected operations, so that
13989 the source name of the component can be used in the debugger.
13991 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13992 Robert Dewar <dewar@adacore.com>
13994 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
13995 of a generic subprogram are not visible outside the body.
13996 (Set_Warning_Switch): New procedure (code to set warning mode moved
13997 here from Switch.C so that it can be shared by pragma processing.
13998 (Check_References): Special case warning for non-modified non-imported
14000 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
14001 form with a string literal argument
14003 2005-11-14 Javier Miranda <miranda@adacore.com>
14005 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
14007 (Write): Addition of "not null" to the anonymous access.
14008 (Read): Addition of "not null" to the anonymous access.
14009 (Write): Addition of "not null" to the anonymous access.
14011 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
14012 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
14013 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
14014 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
14015 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
14016 "not null" to the anonymous access.
14018 2005-11-14 Robert Dewar <dewar@adacore.com>
14020 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
14023 2005-11-14 Vincent Celier <celier@adacore.com>
14025 * switch.adb (Bad_Switch): New procedure
14026 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
14027 message when in error.
14029 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
14030 Too_Many_Output_Files): Remove declarations, no longer used.
14031 (Scan_Nat): New parameter Switch
14033 (Bad_Switch): New procedure
14035 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
14036 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
14037 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
14038 to Osint.Fail. Do not handle any exception.
14040 2005-11-14 Vincent Celier <celier@adacore.com>
14042 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
14043 designates a non existent directory.
14045 2005-11-14 Robert Dewar <dewar@adacore.com>
14047 * xgnatugn.adb: Replace invalid membership test by 'Valid
14049 2005-11-14 Vincent Celier <celier@adacore.com>
14051 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
14052 there is no object directory.
14054 2005-11-14 Robert Dewar <dewar@adacore.com>
14056 * usage.adb: Minor adjustment to output format, use nn instead of nnn
14057 (so that -gnateInnn does not run into next column)
14059 2005-11-14 Ed Falis <falis@adacore.com>
14061 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
14064 2005-11-14 Cyrille Comar <comar@adacore.com>
14066 * s-chepoo.ads: Add comments on Dereference.
14067 Remove unnecessary inherited abstract primitives.
14070 2005-11-14 Robert Dewar <dewar@adacore.com>
14072 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
14073 node parameter, not needed, since it is available as Declaration_Node.
14075 2005-11-14 Geert Bosch <bosch@adacore.com>
14077 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
14078 grammatically correct.
14080 2005-11-14 Vincent Celier <celier@adacore.com>
14082 * s-fileio.ads: Correct spelling error in comment
14084 2005-11-14 Cyrille Comar <comar@adacore.com>
14085 Robert Dewar <dewar@adacore.com>
14086 Vincent Celier <celier@adacore.com>
14087 Ben Brosgol <brosgol@adacore.com>
14088 Jose Ruiz <ruiz@adacore.com>
14089 Pascal Obry <obry@adacore.com>
14092 Document that -fstack-check is needed for strict compliance with the
14093 Ada 95 Reference Manual.
14094 Correct reference to VAX systems to meet HP guidelines
14095 Add documentation for new gnatmake switches -vl, -vm and -vh
14096 Replace DEC Ada by HP Ada
14097 Replace DIGITAL by HP
14098 Remove empty section on tools in compatibility section
14099 Clarify the Windows convention semantics.
14100 Document the Win32 calling convention.
14101 The Stdcall, Win32 and DLL convention are synonyms.
14102 Add a note in -gnatR description about zero size record components
14103 Note on new >= and <= warnings for -gnatwc
14104 Document that equal sign after -gnatm is optional.
14105 Note that strip is working fine on DLL built with a Library
14106 Project. The restriction apply only to DLL built with gnatdll.
14107 Update section about the way to debug a DLL.
14108 Update information about the DLL convention.
14109 Document -C switch for gnatprep
14110 Document new attribute Library_ALI_Dir
14111 Update elaboration doc to include implicit Elaborate pragmas now
14112 generated for subprogram instantiations.
14113 Document limitation on executable names that include spaces for --GCC,
14114 --GNATBIND, and --GNATLINK switches.
14115 Document that -w causes -gnatws to be added at start of gcc switches
14117 * gnat_rm.texi: Document that -mieee is needed for generating infinite
14118 and NaN values in case of overflow on machines that are not fully
14119 compliant with the IEEE floating-point standard.
14120 Create a section describing the set of compiler options needed for
14121 strict compliance with the Ada 95 Reference Manual.
14122 Add documentation for pragma Obsolescent applied to a package
14123 Clarify potential issues of mixed language programs related to the
14124 I/O buffering enabling in the elaboration of the GNAT runtime.
14125 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
14126 This documentation only patch adds extra documentsion for pragma
14127 Restrictions (No_Elaboration_Code), explaining why it is not possible
14128 to document this restriction in terms of allowed source constructs.
14129 Document string literal form of pragma Warnings
14130 Document new attribute Library_ALI_Dir
14131 Add documentation on stable attributes in project files that was missing
14133 * gnat-style.texi: Indicate that paragraphs within a single comment
14134 should be separated by empty comment lines
14136 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
14139 * bindusg.adb: Minor cleanup, put -m before -M for consistency
14141 2005-11-14 Robert Dewar <dewar@adacore.com>
14143 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
14144 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
14145 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
14146 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
14147 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
14148 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
14149 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
14150 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
14151 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
14152 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
14153 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
14154 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
14155 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
14156 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
14157 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
14158 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
14159 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
14160 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
14161 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
14162 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
14163 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
14164 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
14165 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
14166 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
14167 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
14168 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
14169 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
14170 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
14171 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
14172 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
14173 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
14174 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
14175 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
14176 system-interix.ads, system-solaris-sparc.ads,
14177 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
14178 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
14179 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
14180 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
14181 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
14182 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
14183 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
14184 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
14185 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
14186 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
14187 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
14188 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
14189 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
14190 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
14191 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
14192 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
14193 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
14194 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
14195 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
14196 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
14197 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
14198 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
14199 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
14200 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
14201 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
14202 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
14203 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
14204 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
14205 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
14206 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
14207 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
14208 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
14209 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
14210 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
14211 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
14212 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
14213 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
14214 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
14215 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
14216 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
14217 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
14218 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
14219 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
14220 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
14221 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
14222 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
14223 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
14224 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
14225 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
14226 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
14227 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
14228 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
14229 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
14230 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
14231 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
14232 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
14233 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
14234 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
14235 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
14236 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
14237 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
14238 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
14239 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
14240 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
14241 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
14242 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
14243 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
14244 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
14245 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
14246 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
14247 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
14248 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
14249 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
14250 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
14251 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
14252 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
14253 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
14254 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
14255 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
14256 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
14257 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
14258 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
14259 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
14260 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
14261 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
14262 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
14263 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
14264 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
14265 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
14266 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
14267 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
14268 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
14269 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
14270 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
14271 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
14272 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
14273 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
14274 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
14275 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
14276 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
14277 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
14278 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
14279 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
14280 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
14281 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
14282 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
14283 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
14284 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
14285 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
14286 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
14287 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
14288 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
14289 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
14290 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
14291 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
14292 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
14293 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
14294 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
14295 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
14296 a-numaux-darwin.ads, a-numaux-darwin.adb,
14297 a-swuwha.ads, a-stunha.ads: Minor reformatting
14299 2005-11-14 Robert Dewar <dewar@adacore.com>
14302 * osint-m.adb: Add pragma Elaborate_All for Osint
14304 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
14307 * trans.c (call_to_gnu): Restore statement lost in translation.
14309 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
14311 * init.c: Use the Linux-specific section for the IA-64/Linux target.
14312 (__gnat_adjust_context_for_raise): Add conditional code so that the
14313 IA-64 is also supported.
14315 2005-11-03 James E Wilson <wilson@specifix.com>
14318 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
14319 TREE_OVERFLOW check.
14321 2005-09-21 Olivier Hainque <hainque@adacore.com>
14324 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
14325 as we create them to store a size in bits.
14327 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
14335 * utils2.c (build_return_expr): New helper function.
14336 * gigi.h (build_return_expr): Declare it.
14337 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
14338 of manually building the RETURN_EXPR tree.
14339 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
14340 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
14341 build_binary_op for the "target pointer" case. Use build_return_expr
14342 instead of manually building the RETURN_EXPR tree.
14344 2005-09-16 Laurent GUERBY <laurent@guerby.net>
14347 * s-tpinop.ads: Make this unit Preelaborate.
14349 2005-09-16 Andreas Jaeger <aj@suse.de>
14351 * socket.c: Add string.h for memcpy.
14353 2005-09-05 Arnaud Charlet <charlet@adacore.com>
14355 * dec-io.ads, dec-io.adb: Removed, no longer used.
14357 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14359 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
14361 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
14362 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
14363 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
14364 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
14365 dependent units are Preelaborate.
14366 (Initialize): Call Interrupt_Managemeent.Initialize and
14367 OS_Primitives.Initialize to ensure proper initialization of this unit.
14368 Remove use of System.Soft_Links
14369 Make this unit Preelaborate.
14371 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
14372 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
14373 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
14374 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
14375 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
14376 s-tratas.ads, s-tasinf.ads: Minor reformatting.
14377 Add pragma Preelaborate, since these packages are suitable for this
14381 * s-traent-vms.ads, s-intman-dummy.adb,
14382 s-taprop-dummy.adb: Make this unit Preelaborate.
14384 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
14385 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
14386 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
14387 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
14388 s-intman-solaris.adb, s-intman-irix-athread.adb,
14389 s-intman-irix.adb: Mark this unit Preelaborate.
14390 (Initialize): New procedure.
14393 * s-taspri-linux.ads: Removed.
14395 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
14396 as done by other implementations (e.g. posix).
14398 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
14399 responsible for deferring abort.
14400 Mark this unit Preelaborate.
14402 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
14403 proper initialization of the tasking run-time.
14405 * s-tasdeb.ads: Mark this unit Preelaborate.
14406 (Known_Tasks): Add explicit default value to avoid elaboration code.
14408 * s-inmaop-vms.adb (Elaboration code): Add call to
14409 Interrupt_Management.Initialize since the elaboration code depends on
14410 proper initialization of this package.
14412 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
14413 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
14414 s-osprim-posix.adb: Make this unit Preelaborate.
14416 * a-calend.adb: Add call to OS_Primitives.Initialize
14418 * a-elchha.adb: Update use of Except.Id.Full_Name.
14419 Minor reformatting.
14420 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
14422 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
14423 Move with clauses outside Warnings Off now that dependent units are
14425 Use raise xxx with "..."; Ada 2005 form.
14427 * a-taside.ads, a-taside.adb:
14428 Remove some dependencies, to make it easier to make this unit truly
14430 Rewrite some code to be conformant with Preelaborate rules.
14432 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
14433 marked Preelaborate in the future.
14435 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
14436 these units Preelaborate.
14438 * s-exctab.adb: Update use of Except.Id.Full_Name.
14440 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
14441 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
14442 Set_Exc_Stack_Addr): Removed, no longer used.
14443 Remove reference to *Machine_State_Addr*, no longer needed.
14445 * s-stalib.ads: Mark this unit as Preelaborate[_05].
14446 (Exception_Data): Full_Name is now a System.Address so that this unit
14447 can be made Preelaborate.
14448 Clean up/simplify code thanks to Full_Name being a System.Address.
14449 Remove obsolete pragma Suppress (All_Checks), no longer needed.
14451 * s-taskin.ads, s-taskin.adb:
14452 Move with clauses outside Warnings Off now that dependent units are
14454 Make this unit Preelaborate.
14455 (Initialize): New proceduure, replace elaboration code and makes the
14456 set up of the tasking run-time cleaner.
14457 (Detect_Blocking): Now a function instead of a deferred boolean, to
14458 obey Preelaborate rules.
14460 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
14461 soft links, no longer used.
14463 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
14464 packages are suitable for this categorization.
14466 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
14467 since we compile run-time sources in Ada 2005 mode.
14468 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
14469 avoid having s-taprop*.adb depend on s-soflin and to avoid code
14471 Remove reference to *Machine_State_Addr*, no longer needed.
14473 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14475 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
14476 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
14477 Remove reference to System.Exceptions.
14479 * s-mastop-x86.adb: Removed, no longer used.
14481 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
14483 * a-excach.adb: Minor reformatting.
14485 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
14486 instead fix new warnings that were hidden by this change.
14487 (AAA, ZZZ): Removed, replaced by...
14488 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
14489 are used instead of constants, to help make Ada.Exception truly
14491 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
14492 Raise_Storage_Error): File is now a System.Address, to simplify code.
14493 (Elab code): Removed, no longer used.
14494 (Null_Occurrence): Remove Warnings Off and make this construct
14496 Remove code related to front-end zero cost exception handling, since
14497 it is no longer used.
14498 Remove -gnatL/-gnatZ switches.
14500 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
14501 Update use of Except.Msg.
14503 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
14504 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
14505 to front-end zero cost exception handling, since it is no longer used.
14506 Remove -gnatL/-gnatZ switches.
14508 * lib-writ.ads: Minor reformatting
14511 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
14513 * Make-lang.in: Remove references to s-except.ads
14515 * s-except.ads: Removed, no longer used.
14517 * s-mastop.ads, s-mastop.adb:
14518 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
14519 Remove reference to System.Exceptions.
14521 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
14522 switch-b.adb: Remove code related to front-end zero cost exception
14523 handling, since it is no longer used.
14524 Remove -gnatL/-gnatZ switches.
14526 2005-09-01 Robert Dewar <dewar@adacore.com>
14527 Gary Dismukes <dismukes@adacore.com>
14528 Javier Miranda <miranda@adacore.com>
14530 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
14531 type by valid test and generate warning.
14532 (Tagged_Membership): Generate call to the run-time
14533 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
14534 Change formal name Subtype_Mark to Result_Definition in several calls to
14535 Make_Function_Specification.
14536 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
14537 check for proper accessibility of the operand of a class-wide allocator.
14538 The check can be left out if checks are suppressed or if the expression
14539 has a specific tagged type whose level is known to be safe.
14541 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
14542 generates the run-time check associated with null-excluding entities.
14543 (Expand_N_Return_Statement): Add tests to determine if the accessibility
14544 check on the level of the return expression of a class-wide function
14545 can be elided. The check usually isn't needed if the expression has a
14546 specific type (unless it's a conversion or a formal parameter). Also
14547 add a test for whether accessibility checks are suppressed. Augment
14548 the comments to describe the conditions for performing the check.
14550 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
14551 Javier Miranda <miranda@adacore.com>
14552 Gary Dismukes <dismukes@adacore.com>
14553 Ed Schonberg <schonberg@adacore.com>
14555 * a-tags.adb (IW_Membership): Give support to
14556 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
14557 subprogram has been extended to look for the tag in the ancestors tag
14559 Update the structure of the GNAT Dispatch Table to reflect the
14560 additional two tables used in dispatching selects.
14561 Introduce appropriate array types and record components in
14562 Type_Specific_Data to reflect the two tables.
14563 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
14564 the TSD of a tag, indexed by position.
14565 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
14566 operation kind in the TSD of a tag, indexed by position.
14568 * a-tags.ads: Introduce an enumeration type to capture different
14569 primitive operation kinds. Define a constant reflecting the number of
14570 predefined primitive operations.
14571 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
14572 of an entry wrapper.
14573 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
14574 callable entity of a primitive operation.
14576 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
14577 primitive operations used in dispatching selects for limited
14578 interfaces, limited tagged, task and protected types what implement a
14580 (Freeze_Type): Generate the bodies of the primitive operations used in
14581 dispatching selects for limited tagged, task and protected types that
14582 implement a limited interface. Generate statements to populate the two
14583 auxiliary tables used for dispatching in select statements.
14584 (Freeze_Record_Type): Add call to initialize the dispatch table entries
14585 associated with predefined interface primitive operations.
14586 (Build_Dcheck_Function): Change Set_Subtype_Mark to
14587 Set_Result_Definition.
14588 (Build_Variant_Record_Equality): Change Subtype_Mark to
14590 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
14591 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
14592 (Build_Assignment): Simplify the code that adds the run-time-check.
14593 (Expand_N_Object_Declaration): Code cleanup.
14595 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
14596 entries when there is a protected type that implements a limited
14599 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
14600 common routines used in expansion of dispatching selects.
14601 (Add_Private_Declarations): Select the appropriate protection type when
14602 there is a protected type that implements a limited interface.
14603 (Build_Parameter_Block): Generate a wrapped parameter block.
14604 (Build_Protected_Subprogram_Body): Select the appropriate type for
14605 locking entries when there is a protected type that implements a
14607 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
14608 classified as entry wrappers.
14609 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
14610 asynchronous selects.
14611 (Expand_N_Conditional_Entry_Call): Add support for expansion of
14612 dispatching conditional selects.
14613 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
14614 protection when there is a protected type that implements limited
14616 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
14618 (Extract_Dispatching_Call): Extract the entity of the name of a
14619 dispatching call, the object parameter, actual parameters and
14620 corresponding formals.
14621 (Make_Initialize_Protection): Correct logic of protection initialization
14622 when there is a protected type that implements a limited interface.
14623 (Parameter_Block_Pack): Populate a wrapped parameter block with the
14624 values of actual parameters.
14625 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
14626 block and assign them to the original actual parameters.
14628 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
14629 (Build_Protected_Sub_Specification): Change the type and name of the
14630 last formal to account for the increased variety of protection modes.
14632 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
14633 entities. Used to save the value of the Is_Hidden attribute when the
14634 limited-view is installed.
14635 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
14636 the attribute of procedures classified as entry wrappers.
14637 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
14638 entity of a primitive wrapper.
14639 (Write_Entity_Flags): Output the name and value of the
14640 Is_Primitive_Wrapper attribute.
14641 (Write_Field27_Name): Output the name and entity of the field Wrapped_
14643 (Underlying_Type): If we have an incomplete entity that comes from
14644 the limited view then we return the Underlying_Type of its non-limited
14645 view if it is already available.
14646 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
14647 including operators.
14648 (Write_Field26_Name): Add entry for Overridden_Operation
14649 (Overridden_Operation): New attribute of functions and procedures.
14651 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
14652 predefined position in the dispatch table for the primitive operations
14653 used in dispatching selects.
14654 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
14655 predefined primitive operations and replace it with
14656 Default_Prim_Op_Count.
14657 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
14658 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
14659 the names of the generated primitive operations used in dispatching
14661 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
14662 case of abstract interface types. They will be inherit by the objects
14663 implementing the interface.
14664 (Make_DT): There is no need to inherit the dispatch table of the
14665 ancestor interface for the elaboration of abstract interface types.
14666 The dispatch table will be inherited by the object implementing the
14668 (Copy_Secondary_DTs): Add documentation.
14669 (Validate_Position): Improve this static check in case of
14670 aliased subprograms because aliased subprograms must have
14672 (Init_Predefined_Interface_Primitives): New subprogram that initializes
14673 the entries associated with predefined primitives of all the secondary
14675 (Build_Anonymous_Access_Type): Removed.
14676 (Expand_Interface_Actuals): With the previous cleanup there is no need
14677 to build an anonymous access type. This allows further cleanup in the
14678 code generated by the expander.
14679 (Expand_Interface_Conversion): If the actual is an access type then
14680 build an internal function to handle the displacement. If the actual
14681 is null this function returns null because no displacement is
14682 required; otherwise performs a type conversion that will be
14683 expanded in the code that returns the value of the displaced actual.
14684 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
14685 conversions that have no effect in the generated code because no
14686 displacement is required. Code cleanup; use local variables to
14687 avoid repeated calls to the subprogram directly_designated_type().
14689 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
14690 Classify the primitive operations used in dispatching selects as
14692 (Implements_Limited_Interface): Determine whether some type either
14693 directly implements a limited interface or extends a type that
14694 implements a limited interface.
14695 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
14696 (Expand_Subtype_From_Expr): Do not build actual subtype if the
14697 expression is limited.
14698 (Find_Interface_Tag): Add code to handle class-wide types and
14699 entities from the limited-view.
14701 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
14702 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
14703 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
14704 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
14707 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
14708 of procedure name or prefix that appears as a trigger in a triggering
14711 * uintp.ads: Introduce constants Uint_11 and Uint_13.
14713 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14715 * s-tataat.adb, a-tasatt.adb:
14716 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
14718 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
14719 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
14720 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
14723 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14724 Jose Ruiz <ruiz@adacore.com>
14726 * s-taprop-vxworks.adb:
14727 Move with clauses outside Warnings Off now that dependent units are
14729 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
14730 initialization of this unit.
14731 (Specific): Add new procedures Initialize and Delete so that this
14732 package can be used for VxWorks 5.x and 6.x
14733 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
14734 differences between VxWorks 5.x and 6.x
14735 Minor reformatting.
14736 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
14738 Use only Preelaborate-compatible constructs.
14740 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
14741 Primitives.Operations.
14742 (Delete, Initialize): New procedures.
14744 * s-osinte-vxworks.adb: Body used to handle differences between
14745 VxWorks 5.x and 6.x
14746 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
14748 * s-osinte-vxworks.ads: Minor reformatting.
14749 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
14750 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
14752 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
14753 between Vxworks 5 and 6.
14754 (taskLock, taskUnlock): Removeed, no longer used.
14756 * adaint.c: The wait.h header is not located in the sys directory on
14757 VxWorks when using RTPs.
14758 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
14760 (__gnat_dup): dup is available on Vxworks when using RTPs.
14761 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
14763 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
14765 * expect.c: The wait.h header is not located in the sys directory on
14766 VxWorks when using RTPs.
14768 2005-09-01 Thomas Quinot <quinot@adacore.com>
14770 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
14772 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
14774 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
14775 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
14776 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
14777 g-soccon-freebsd.ads: Add new constants:
14779 SO_RCVTIMEO/SO_SNDTIMEO
14783 Move all target-specific file inclusions and macro definitions to
14784 gsocket.h, in order to ensure that any C code in socket.c will see a
14785 set of constants that is consistent with the contents of g-soccon.ads.
14787 * gsocket.h: Code imported from gen-soccon.c:
14788 Move all target-specific file inclusions and macro definitions to
14789 gsocket.h, in order to ensure that any C code in socket.c will see a set
14790 of constants that is consistent with the contents of g-soccon.ads.
14791 This change also makes gen-soccon self-contained (removing dependencies
14792 upon GCC internal headers).
14794 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
14796 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
14798 * socket.c: Minor reformatting.
14800 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14801 Thomas Quinot <quinot@adacore.com>
14803 * fname-sf.adb, mlib-tgt.ads,
14804 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
14805 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
14806 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
14807 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
14808 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
14809 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
14810 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
14811 makegpr.adb: Remove redundant use_clauses.
14813 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14815 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
14816 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
14817 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
14818 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
14819 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
14820 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
14821 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
14822 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
14823 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
14824 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
14825 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
14826 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
14827 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
14828 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
14829 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
14830 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14831 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
14832 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
14833 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
14834 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
14835 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
14836 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
14837 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
14838 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
14839 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
14840 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
14841 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
14842 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
14843 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
14844 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
14845 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
14846 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
14847 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
14848 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
14849 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
14850 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
14851 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
14852 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
14853 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
14854 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
14855 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
14856 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
14857 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
14858 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
14859 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
14860 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
14861 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
14862 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
14863 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
14864 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
14865 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
14866 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
14867 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
14868 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
14869 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
14870 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
14871 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
14872 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
14873 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
14874 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
14875 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
14876 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
14877 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
14878 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
14879 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
14880 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
14881 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
14882 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
14883 and always use the no parameter form for consistency.
14885 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
14887 2005-09-01 Robert Dewar <dewar@adacore.com>
14889 * binde.adb: Minor reformatting
14890 (Find_Elab_Order): Output warning if -p used with static elab order
14892 2005-09-01 Robert Dewar <dewar@adacore.com>
14894 * checks.adb (Check_Needed): New procedure, deals with removing checks
14895 based on analysis of short-circuited forms. Also generates warnings for
14896 improper use of non-short-circuited forms.
14899 2005-09-01 Robert Dewar <dewar@adacore.com>
14901 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
14904 2005-09-01 Robert Dewar <dewar@adacore.com>
14906 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
14908 Implement new insertion char < (conditional warning)
14909 * errutil.adb, erroutc.adb: Implement new insertion char <
14910 (conditional warning).
14911 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
14912 (Error_Msg_Warn): New variable for < insertion char.
14913 * prj-nmsc.adb: Implement new errout insertion char < (conditional
14915 (Check_For_Source): Change value of Source_Id only after the current
14916 source has been dealt with.
14918 2005-09-01 Robert Dewar <dewar@adacore.com>
14919 Doug Rupp <rupp@adacore.com>
14921 * exp_attr.adb: Handle vax fpt for 'Valid attribute
14922 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
14923 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
14924 (Valid_D, Valid_F, Valid_G): New functions
14926 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14927 Hristian Kirtchev <kirtchev@adacore.com>
14928 Javier Miranda <miranda@adacore.com>
14930 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
14931 from object notation, the original node is unanalyzed and carries no
14932 semantic information, so that accessiblity checks must be performed on
14933 the type of the actual itself.
14934 (Expand_N_Subprogram_Declaration): Change last actual parameter for
14935 compatibility with Build_Protected_Sub_Specification.
14936 (Check_Overriding_Inherited_Interfaces): Add suport to handle
14937 overloaded primitives.
14938 (Register_Interface_DT_Entry): Use the new name of the formal
14939 the the calls to Expand_Interface_Thunk
14941 * exp_dbug.ads: Augment comments on encoding of protected types to
14942 include the generation of dispatching subprograms when the type
14943 implements at least one interface.
14945 * lib.ads: Extend information in Load_Stack to include whether a given
14946 load comes from a Limited_With_Clause.
14948 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
14949 whether a potential circularity is harmless, because it includes units
14950 loaded through a limited_with clause. Extends previous treatment which
14951 did not handle properly arbitrary combinations of limited and
14952 non-limited clauses.
14954 2005-09-01 Nicolas Setton <setton@adacore.com>
14956 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
14957 to be encoded as typ___XBLU_lowerbound__upperbound instead of
14958 typ___XB_lowerbound__upperbound.
14960 2005-09-01 Thomas Quinot <quinot@adacore.com>
14962 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
14963 dummy access formal for RACW/RAS TypeCode TSS.
14964 (Build_TypeCode_Call): Do not generate dummy null access actual for
14965 calls to the TypeCode TSS.
14967 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14969 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
14970 fully qualified name, to distinguish instances with the same local name.
14972 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
14975 2005-09-01 Robert Dewar <dewar@adacore.com>
14977 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
14980 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
14982 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
14983 (Free): New deallocation procedure for filter elements
14984 (Close): Deallocate any existing filter for the concerned connection
14986 2005-09-01 Laurent Pautet <pautet@adacore.com>
14988 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
14989 position set is provided, we compute one in order to reduce the maximum
14990 length of the keys. This computation first selects a character
14991 position between 1 and the minimum length of the keys in order to
14992 avoid reducing one of the keys to an empty string.
14993 (Initialize, Compute): When the ratio V to K is too low, the algorithm
14994 does not converge. The initialization procedure now comes with a
14995 maximum number of iterations such that when exceeded, an exception is
14996 raised in Compute. The user can initialize this ratio to another value
14998 Reformating and updated headers.
15000 2005-09-01 Javier Miranda <miranda@adacore.com>
15002 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
15003 that given an entity T creates and returns an Itype that duplicates the
15004 contents of T. The returned Itype has the null-exclusion
15005 attribute set to True, and its Etype attribute references T
15006 to keep the association between the two entities.
15007 Update copyright notice
15009 * sem_aggr.adb (Check_Can_Never_Be_Null,
15010 Aggregate_Constraint_Checks, Resolve_Aggregate,
15011 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
15013 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
15015 2005-09-01 Gary Dismukes <dismukes@adacore.com>
15016 Robert Dewar <dewar@adacore.com>
15017 Hristian Kirtchev <kirtchev@adacore.com>
15019 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
15022 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
15024 Call Set_Result_Definition instead of Set_Subtype_Mark.
15025 (P_Subprogram_Specification): Add parsing of anonymous access result
15026 plus null exclusions. Call Set_Result_Definition instead of
15029 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
15030 (P_Access_Type_Definition): Add parsing for an anonymous access result
15031 subtype, plus parsing for null exclusions. Call Set_Result_Definition
15032 instead of Set_Subtype_Mark.
15034 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
15035 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
15036 (Result_Definition): New function for N_Function_Specifications.
15037 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
15038 N_Function_Specification.
15039 (Set_Null_Exclusion_Present): Allow this flag for
15040 N_Function_Specification.
15041 (Set_Result_Definition): New procedure for N_Function_Specifications.
15042 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
15043 and N_Function_Specification.
15045 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
15046 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
15047 Add support for LIMITED NEW for Ada 2005 AI-419
15048 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
15049 syntax for anonymous access results.
15050 Replace Subtype_Mark field by Result_Definition in
15051 N_Function_Specification and N_Access_Definition specs.
15052 Add Null_Exclusion_Present to spec of N_Function_Specification.
15053 (Result_Definition): New function for N_Function_Specification and
15054 N_Access_Function_Definition.
15055 (Set_Result_Definition): New procedure for N_Function_Specification and
15056 N_Access_Function_Definition.
15058 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
15059 Result_Definition for cases of N_Access_Function_Definition and
15060 N_Function_Specification.
15061 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
15063 2005-09-01 Vincent Celier <celier@adacore.com>
15065 * lib-writ.adb: Update Copyright notice
15066 (Write_With_Lines): On platforms where file names are case-insensitive,
15067 record the file names in lower case.
15068 (Write_ALI): For D lines, on platforms where file names are
15069 case-insensitive, record the file names in lower case.
15071 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15072 Emmanuel Briot <briot@adacore.com>
15074 * lib-xref.adb (Output_Overridden_Op): Display information on
15075 overridden operation.
15077 * lib-xref.ads: Add documentation on overridden operations.
15079 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
15082 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
15083 overriding entity information.
15085 2005-09-01 Vincent Celier <celier@adacore.com>
15087 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
15088 including those that are inherited.
15090 2005-09-01 Robert Dewar <dewar@adacore.com>
15092 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
15094 * par-prag.adb: Implement new pragma Debug_Policy
15096 * sem_prag.adb Implement new pragma Debug_Policy
15097 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
15098 Component_Size attribute specification. Give warning for ignored pragma
15101 * snames.h, snames.ads, snames.adb: Introduce entries in
15102 Preset_Names for Name_Disp_Asynchronous_Select,
15103 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
15104 Name_Disp_Timed_Select.
15105 New pragma Debug_Policy
15107 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
15109 Switch -gnata also sets Debug_Pragmas_Enabled
15111 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
15112 handle an explicit -gnata when compiling predefined files.
15114 2005-09-01 Vincent Celier <celier@adacore.com>
15116 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
15117 directories of projects that have no Ada sources.
15119 2005-09-01 Robert Dewar <dewar@adacore.com>
15121 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
15122 (makes a difference for wide characters)
15124 * widechar.adb, widechar.ads:
15125 Add Wide_Char_Byte_Count feature to count chars vs bytes
15127 2005-09-01 Thomas Quinot <quinot@adacore.com>
15128 Ed Schonberg <schonberg@adacore.com>
15129 Robert Dewar <dewar@adacore.com>
15131 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
15132 'Address attribute reference with an overloaded prefix, use the
15133 location of the prefix (not the location of the attribute reference) as
15134 the error location.
15135 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
15136 a function renaming thereof, is a valid prefix for 'Size (where it is
15137 intepreted as a function call).
15138 (Statically_Denotes_Entity): New predicate to determine whether the
15139 prefix of an array attribute can be considered static.
15142 (Eval_Attr): Fix failure to evaluate Component_Size for
15143 unconstrained arrays (resulted in wrong value in packed case, since
15144 back end cannot handle this case)
15146 2005-09-01 Robert Dewar <dewar@adacore.com>
15148 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
15149 error msgs for most common cases.
15150 Use new errout insertion char < (conditional warning)
15152 2005-09-01 Javier Miranda <miranda@adacore.com>
15153 Ed Schonberg <schonberg@adacore.com>
15155 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
15156 become local to the whole package.
15157 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
15158 the package was already analyzed the new algorithm "replaces" the
15159 real entities by the shadow ones. This is required to ensure that
15160 the order of these entities in the homonym chains does not change;
15161 otherwise we can have undefined references at linking time because
15162 in case of conflicts the external name of the entities will have
15163 a suffix that depends on the order of the entities in the chain.
15164 (Remove_Limited_With_Clause): Complementary code that completes the
15165 new algorithm and replaces the shadow entities by the real ones.
15166 (Install_Limited_Withed_Unit): When unchaining entities before the
15167 installation of the shadow entities, only regular entities of the
15168 public part must be taken into account. This is required to
15169 keep this routine in synch with the work done by Remove_Limited_
15171 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
15172 even if unit is analyzed, because the analysis of the unit is
15173 idempotent in any case, and the limited view of the unit may have to
15174 be installed for proper visibility.
15175 (Expand_Limited_With_Clause): Even if the unit in the implicit
15176 with_clause has been analyzed already, a limited view of the package
15177 must be built for the current context, if it does not exist yet.
15179 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15180 Javier Miranda <miranda@adacore.com>
15181 Gary Dismukes <dismukes@adacore.com>
15183 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
15184 defining entity for the instance body, make a new defining identifier
15185 rather than copying the entity of the spec, to prevent accidental
15186 sharing of the entity list.
15187 (Check_Private_View): When exchanging views of private types, build the
15188 list of exchanged views as a stack, to ensure that on exit the exchanges
15189 are undone in the proper order.
15190 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
15191 Restore the compilation environment in case of instantiation_error.
15192 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
15193 for an anonymous access result.
15194 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
15195 (Formal_Entity): Handle properly the case of a formal package that
15196 denotes a generic package renaming.
15198 2005-09-01 Thomas Quinot <quinot@adacore.com>
15200 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
15201 clause if the array aggregate is surrounded by parentheses.
15203 2005-09-01 Cyrille Comar <comar@adacore.com>
15204 Gary Dismukes <dismukes@adacore.com>
15205 Ed Schonberg <schonberg@adacore.com>
15206 Javier Miranda <miranda@adacore.com>
15208 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
15210 to check if a type is Constrained in cases related to code generation
15211 (rather than semantic checking) since otherwise we do not generate
15212 similar code for mutable private types depending if their
15213 discriminants are visible or not.
15214 (Check_Abstract_Overriding): Do not complain about failure to override
15215 the primitive operations used in dispatching selects since they will
15216 always be overriden at the freeze point of the type.
15217 (Access_Definition): Separate out handling for resetting the scope
15218 of an anonymous access function result type. Retrieve the scope
15219 of the associated function rather than using Current_Scope, which
15220 does not have a consistent value (depends on whether we're in the
15221 middle of analyzing formal parameters). Add ??? comment about
15222 finding a cleaner way to handle the special cases of scope setting.
15223 (Process_Incomplete_Dependents): A protected operation is never a
15224 dispatching operation (only its wrapper may be).
15225 (Build_Derived_Record_Type): In case of tagged private types that
15226 implement interfaces add derivation of predefined primitive
15228 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
15229 by two parameters that are used in case of derivation from abstract
15230 interface types: No_Predefined_Prims is used to avoid the derivation
15231 of predefined primitives from the interface, and Predefined
15232 Prims_Only is used to complete the derivation predefined primitives
15233 in case of private tagged types implementing interfaces.
15234 Fix typo in comments
15235 (Find_Interface_In_Descendant): Protect the frontend against
15236 wrong code with large circularity chains.
15237 (Is_Private_Overriding): Add support for entities overriding interface
15238 subprograms. The test failed because Entities associated with overriden
15239 interface subprograms are always marked as hidden (and used to build
15240 the secondary dispatch table); in this case the overriden entity is
15241 available through the field abstract_interface_alias (cf. override_
15242 dispatching_operation)
15243 (Access_Definition): Set the scope of the type to Current_Scope for the
15244 case of a function with an anonymous access result type.
15245 (Access_Subprogram_Declaration): Handle creation of the type entity for
15246 an access-to-function type with an anonymous access result.
15247 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
15248 in handling for N_Access_Function_Definition.
15249 (Analyze_Subtype_Declaration): Modify the text of error message.
15250 (Derived_Type_Declaration): Modify the text of error message.
15251 (Process_Subtype): Modify the text of error message plus cleanup
15252 of one redundant error message.
15253 (Analyze_Component_Declaration): Code cleanup.
15254 (Analyze_Object_Declaration): Code cleanup.
15255 (Analyze_Subtype_Declaration): Propagate the null-exclusion
15256 attribute in case of access types. Code cleanup.
15257 (Array_Type_Declaration): Code cleanup.
15258 (Process_Discriminants): Create the new null-excluding itype
15259 if required. Code cleanup.
15260 (Process_Subtype): Create the new null-excluding itype if
15261 required. Code cleanup.
15262 (Build_Derived_Record_Type): Code cleanup to avoid calling
15263 twice the subprogram derive_subprograms in case of private
15264 types that implement interfaces. In this particular case the
15265 subprogram Complete_Subprograms_Derivation already does the
15266 job associated with the second call.
15268 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
15269 conversion to the full view when generating an operation for a
15270 discriminant whose type may currently be private.
15272 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15273 Javier Miranda <miranda@adacore.com>
15275 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
15276 V (Obj.F), the rewriting does not involve the indexed component, but
15277 only the selected component itself.
15278 Do not apply the transformation if the analyzed node is an actual of a
15279 call to another subprogram.
15280 (Complete_Object_Operation): Retain the entity of the
15281 dispatching operation in the selector of the rewritten node. The
15282 entity will be used in the expansion of dispatching selects.
15283 (Analyze_One_Call): Improve location of the error message associated
15285 (Analyze_Selected_Component): No need to resolve prefix when it is a
15286 function call, resolution is done when parent node is resolved, as
15288 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
15289 when attempting to resolve a call transformed from its object notation.
15290 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
15291 of the argument list for each interpretation of the operation.
15292 (Try_Object_Operation): The designated type of an access parameter may
15293 be an incomplete type obtained through a limited_with clause, in which
15294 case the primitive operations of the type are retrieved from its full
15296 (Analyze_Call): If this is an indirect call, and the return type of the
15297 access_to_subprogram is incomplete, use its full view if available.
15299 2005-09-01 Javier Miranda <miranda@adacore.com>
15300 Gary Dismukes <dismukes@adacore.com>
15302 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
15303 access types the null-exclusion and access-to-constant attributes must
15305 (Analyze_Return_Statement): When the result type is an anonymous access
15306 type, apply a conversion of the return expression to the access type
15307 to ensure that appropriate accessibility checks are performed.
15308 (Analyze_Return_Type): For the case of an anonymous access result type,
15309 generate the Itype and set Is_Local_Anonymous_Access on the type.
15310 Add ??? placeholder for check to disallow returning a limited object
15311 in Ada 2005 unless it's an aggregate or a result of a function call.
15312 Change calls from Subtype_Mark to Result_Definition.
15313 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
15314 Result_Definition in call to Make_Function_Specification.
15315 (Build_Body_To_Inline): Change Set_Subtype_Mark to
15316 Set_Result_Definition.
15317 (Make_Inequality_Operator): Change formal Subtype_Mark to
15318 Result_Definition in call to Make_Function_Specification.
15319 (Process_Formals): Create the new null-excluding itype if required.
15320 (New_Overloaded_Entity): For an entity overriding an interface primitive
15321 check if the entity also covers other abstract subprograms in the same
15322 scope. This is required to handle the general case, that is, overriding
15323 other interface primitives and overriding abstract subprograms inherited
15324 from some abstract ancestor type.
15325 (New_Overloaded_Entity): For an overriding entity that comes from
15326 source, note the operation that it overrides.
15327 (Check_Conformance, Type_Conformant): Addition of one new formal
15328 to skip controlling formals in the analysis. This is used to
15329 handle overloading of abstract interfaces.
15330 (Base_Types_Match): Add missing case for types imported from
15331 limited-with clauses
15332 (New_Overloaded_Entity): Add barrier to protect the use of
15333 the "alias" attribute.
15335 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15337 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
15338 verify that the procedure and the entry are mode conformant.
15339 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
15340 as a different operator, which is often a cut-and-paste error.
15342 2005-09-01 Javier Miranda <miranda@adacore.com>
15343 Ed Schonberg <schonberg@adacore.com>
15345 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
15346 used in controlling parameters exclude null because it is necessary to
15347 read the tag to dispatch, and null has no tag.
15348 (Override_Dispatching_Operation): If the previous operation is inherited
15349 from an interface, it becomes hidden and does not participate in later
15352 2005-09-01 Javier Miranda <miranda@adacore.com>
15353 Ed Schonberg <schonberg@adacore.com>
15354 Gary Dismukes <dismukes@adacore.com>
15356 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
15357 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
15358 the expander will generate the corresponding run-time check to evaluate
15360 (Resolve_Call): Check for legal type of procedure name or prefix that
15361 appears as a trigger in a triggering alternative.
15362 (Valid_Conversion): If expression is ambiguous and the context involves
15363 an extension of System, remove System.Address interpretations.
15364 (Resolve_Qualified_Expression): Reject the case of a specific-type
15365 qualification applied to a class-wide argument. Enhance comment
15366 to explain checking of Original_Node.
15367 (Resolve_Type_Conversion): The location of the error message was not
15368 general enough to handle the general case and hence it has been removed.
15369 In addition, this patch improves the text of the message.
15370 (Resolve_Type_Conversion): Add missing support for access to interface
15372 (Resolve_Type_Conversion): If the target is a class-wide interface type,
15373 do not expand if the expression is the actual in a call, because proper
15374 expansion will take place when the call itself is expanded.
15375 (Resolve_Allocator): If the context is an unchecked conversion, the
15376 allocator inherits its storage pool, if any, from the target type of
15379 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15380 Javier Miranda <miranda@adacore.com>
15382 * sem_type.adb (Add_One_Interp): If a candidate operation is an
15383 inherited interface operation that has an implementation, use the
15384 implementation to avoid spurious ambiguities.
15385 (Interface_Present_In_Ancestor): In case of concurrent types we can't
15386 use the Corresponding_Record_Typ attribute to look for the interface
15387 because it is set by the expander (and hence it is not always
15388 available). For this reason we traverse the list of interfaces
15389 (available in the parent of the concurrent type).
15390 (Interface_Present_In_Ancestor): Handle entities from the limited view
15392 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15394 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
15395 from the list of required components.
15396 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
15397 primitive procedure of a limited interface with a controlling first
15399 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
15401 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
15402 capture if it is generated in the second operand of a short-circuit
15404 Do not capture values for variables with address clauses.
15405 (Is_Object_Reference): Treat a function call as an object reference only
15406 if its type is not Standard_Void_Type.
15408 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15410 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
15411 to a variable that is statically known to be constant.
15413 2005-09-01 Geert Bosch <bosch@adacore.com>
15414 Robert Dewar <dewar@adacore.com>
15416 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
15417 (VAXGF_Safe_First): Idem.
15419 2005-09-01 Robert Dewar <dewar@adacore.com>
15420 Arnaud Charlet <charlet@adacore.com>
15422 * g-dirope.ads: Minor reformatting
15423 Document that bounds of result of Base_Name match the input index
15425 Add documentation on environment variable syntax for Expand_Path
15427 * gnat_ugn.texi: Update documentation to include mention of -m switches
15428 Document new treatment of wide characters in max line length
15430 Remove -gnatL/-gnatZ switches, no longer used.
15431 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
15434 * gnat_rm.texi: Add doc for two argument form of pragma
15435 Float_Representation.
15436 Add documentation for pragma No_Strict_Aliasing
15437 Add note that explicit component clause overrides pragma Pack.
15438 Add documentation of pragma Debug_Policy
15440 2005-09-01 Matthew Heaney <heaney@adacore.com>
15442 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
15443 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
15444 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
15445 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
15446 draft (Draft 13, August 2005) of Ada Amendment 1.
15448 2005-09-01 Arnaud Charlet <charlet@adacore.com>
15450 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
15451 Note that the platform-specific version of g-soccon.ads for VMS is now
15452 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
15453 really is a package spec).
15454 Replace s-taspri-linux.ads by s-taspri-posix.ads
15455 Remove references to s-mastop-x86.adb
15457 * system-vxworks-xscale.ads: Removed, no longer used.
15458 * s-vxwork-xscale.ads: Removed, no longer used.
15460 2005-09-01 Robert Dewar <dewar@adacore.com>
15462 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
15463 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
15464 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
15465 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
15466 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
15467 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
15468 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
15469 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
15470 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
15471 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
15472 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
15473 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
15474 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
15475 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
15476 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
15477 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
15478 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
15479 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
15480 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
15481 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
15482 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
15484 2005-08-29 Arnaud Charlet <charlet@adacore.com>
15488 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
15490 2005-08-29 Arnaud Charlet <charlet@adacore.com>
15491 Doug Rupp <rupp@adacore.com>
15493 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
15495 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
15496 this code in the GNAT run-time.
15498 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
15501 * init.c (__gnat_error_handler [many]): Mark "msg" as const
15502 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
15504 (__gnat_inside_elab_final_code): Moved here from
15505 Standard_Library and only defined for the compiler.
15506 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
15507 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
15508 using RTPs because directly vectored Interrupt routines are not
15509 supported on this configuration.
15510 (getpid): Do not redefine this function on VxWorks when using RTPs
15511 because this primitive is well supported by the RTP libraries.
15512 (copy_msg): Correct the code that checks for buffer overflow.
15513 Discovered during code reading.
15515 2005-08-29 Olivier Hainque <hainque@adacore.com>
15517 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
15518 a library level mutable variable with an initializer, tell
15519 build_allocator to ignore the initializer's size. It may not be large
15520 enough for all the values that might be assigned to the variable later
15523 2005-08-29 Arnaud Charlet <charlet@adacore.com>
15524 Eric Botcazou <ebotcazou@adacore.com>
15526 * trans.c: Protect < in error msg with quote
15527 Replace GCC_ZCX by Back_End_Exceptions.
15528 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
15529 has been sufficiently aligned in the record.
15531 2005-08-15 James E. Wilson <wilson@specifix.com>
15533 * system-linux-alpha.ads: Change ia64 to alpha.
15535 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
15537 * decl.c, utils.c: Fix comment typos.
15539 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
15541 * decl.c, init.c, initialize.c: Fix comment typos.
15543 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
15545 Make CONSTRUCTOR use VEC to store initializers.
15546 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
15548 * trans.c (extract_values): Likewise.
15549 * utils.c (convert, remove_conversions): Likewise.
15550 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
15551 gnat_build_constructor): Likewise.
15553 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
15555 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
15557 (compare_field_bitpos): Likewise.
15559 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
15561 * utils.c (create_var_decl): Only set DECL_COMMON on
15562 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
15563 VAR_OR_FUNCTION_DECL_P.
15565 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
15567 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
15570 2005-07-07 Pascal Obry <obry@adacore.com>
15572 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
15573 returned type on Windows.
15575 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
15578 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
15579 exception in this case.
15580 Simplify the code as "Image (Image'Range)" = "Image".
15582 2005-07-07 Vincent Celier <celier@adacore.com>
15584 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
15585 the destructor/constructor attributes for <lib>final/<lib>init.
15587 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
15589 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
15591 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
15592 type if the parameter is not passed by copy but reference by default.
15594 2005-07-07 Javier Miranda <miranda@adacore.com>
15596 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
15597 Reimplementation of the support for abstract interface types in order
15598 to leave the code more clear and easy to maintain.
15600 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
15601 abstract interface types in order to leave the code clearer and easier
15604 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
15605 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
15606 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
15607 appropriate entry of the secondary dispatch table.
15608 (Make_DT): Add code to inherit the secondary dispatch tables of
15611 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
15612 implementing both functionalities by means of a common routine, each
15613 routine has its own code.
15615 2005-07-07 Javier Miranda <miranda@adacore.com>
15617 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
15619 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
15622 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
15625 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
15626 use of tag incomplete types.
15628 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
15629 give support to tagged incomplete types.
15631 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
15632 expression is a discriminant reference and its type is private, as can
15633 happen within a stream operation for a mutable record, use the full
15634 view of the type to resolve the case alternatives.
15635 (Analyze_Assignment): Check wrong dereference of incomplete types.
15637 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
15640 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
15643 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
15644 N_Incomplete_Type_Declaration nodes.
15646 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
15647 Tag_Present to give support to tagged incomplete types:
15649 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
15652 2005-07-07 Olivier Hainque <hainque@adacore.com>
15655 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
15656 definitions for the Unwind wrappers in the compiler case.
15658 2005-07-07 Ed Schonberg <schonberg@adacore.com>
15659 Javier Miranda <miranda@adacore.com>
15661 * par-load.adb (Load): If a child unit is loaded through a limited_with
15662 clause, each parent must be loaded as a limited unit as well.
15664 * sem_ch10.adb (Previous_Withed_Unit): Better name for
15665 Check_Withed_Unit. Return true if there is a previous with_clause for
15666 this unit, whether limited or not.
15667 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
15669 (Is_Visible_Through_Renamings): New local subprogram of install_limited
15670 _withed_unit that checks if some package installed through normal with
15671 clauses has a renaming declaration of package whose limited-view is
15672 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
15673 of the current Draft document for Ada 2005.
15674 (Analyze_Context): Complete the list of compilation units that
15675 are allowed to contain limited-with clauses. It also contains
15676 checks that were previously done by Install_Limited_Context_Clauses.
15677 This makes the code more clear and easy to maintain.
15678 (Expand_Limited_With_Clause) It is now a local subprogram of
15679 Install_Limited_Context_Clauses, and contains the code that adds
15680 the implicit limited-with clauses for parents of child units.
15681 This functionality was prevously done by Analyze_Context.
15683 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
15686 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
15687 been erroneously named in a limited-with clause of its own context.
15688 In this case the error has been previously notified by Analyze_Context.
15690 2005-07-07 Ed Schonberg <schonberg@adacore.com>
15692 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
15693 generic package that contains local declarations with the same name.
15694 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
15696 2005-07-07 Bernard Banner <banner@adacore.com>
15698 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
15699 ia64 platform only on platforms that you the GCC unwind library
15700 rather than the system unwind library.
15702 2005-07-07 Thomas Quinot <quinot@adacore.com>
15704 * expect.c: Minor reformatting
15706 2005-07-07 Sergey Rybin <rybin@adacore.com>
15708 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
15711 * gnat_ugn.texi: Add description for new gnatpp option
15714 2005-07-04 Thomas Quinot <quinot@adacore.com>
15716 * g-expect-vms.adb, g-expect.ads, g-expect.adb
15717 (Get_Command_Output): New subprogram to launch a process and get its
15718 standard output as a string.
15720 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
15721 Olivier Hainque <hainque@adacore.com>
15723 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
15724 fetch a code-range descriptor associated with the machine state. On
15725 failure set the machine state's PC to 0; on success, pass the
15726 descriptor to exc_virtual_unwind.
15728 * init.c (Tru64 section): New function __gnat_set_code_loc.
15730 2005-07-04 Vincent Celier <celier@adacore.com>
15732 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15733 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
15734 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
15735 Remove all auto-initialization code, as this is now done through the
15736 constructor mechanism.
15738 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
15739 __gnat_sals_init_using_constructors): New functions.
15741 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
15742 Linker_Constructor and Linker_Destructor when switch -a is used.
15744 * bindusg.adb: Add line for new switch -a
15746 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
15747 (Gnatbind): When switch -a is used, check if it is allowed
15749 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
15751 2005-07-04 Joel Brobecker <brobecker@adacore.com>
15753 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
15754 This prevents us from hitting a limitation during the debug info
15755 generation when using stabs.
15756 (Prims_Ptr): Likewise.
15758 2005-07-04 Gary Dismukes <dismukes@adacore.com>
15759 Ed Schonberg <schonberg@adacore.com>
15760 Javier Miranda <miranda@adacore.com>
15762 * checks.adb (Null_Exclusion_Static_Checks): In the case of
15763 N_Object_Declaration, only perform the checks if the Object_Definition
15764 is not an Access_Definition.
15766 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
15767 where the parent of an the access definition is an N_Object_Declaration
15768 when determining the Associated_Node_For_Itype and scope of an
15769 anonymous access-to-subprogram type.
15771 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
15772 Corresponding_Spec on the body created for a null procedure. Add ???
15773 comment. Remove New_Copy_Tree call on body argument to
15774 Set_Body_To_Inline.
15776 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
15777 discriminants, use the type of the actual as well, because the
15778 discriminants may be read by the called subprogram.
15780 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
15781 access type we do not need to handle non-limited views.
15782 (Build_Derived_Record_Type): Additional check to check that in case of
15783 private types, interfaces are only allowed in private extensions.
15785 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
15787 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
15788 <Pragma_Linker_Destructor>: Likewise.
15790 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
15791 Pragma_Linker_Destructor.
15793 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
15794 ATTR_LINK_DESTRUCTOR.
15795 (static_ctors, static_dtors): New variables.
15797 * misc.c (gnat_expand_body): Output current function as constructor
15798 and destructor if requested.
15800 * par-prag.adb: Add processing for pragma Linker_Constructor and
15803 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
15804 extracted from Check_Interrupt_Or_Attach_Handler.
15805 (Check_Interrupt_Or_Attach_Handler): Invoke it.
15806 Implement pragma Linker_Constructor and Linker_Destructor with the
15807 help of Find_Unique_Parameterless_Procedure.
15808 Replace Name_Alias with Name_Target for pragma Linker_Alias.
15810 * snames.h, snames.ads, snames.adb:
15811 Add Name_Linker_Constructor and Name_Linker_Destructor.
15812 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
15813 * snames.adb: Remove Name_Alias.
15815 * trans.c: Include cgraph.h.
15816 (build_global_cdtor): New function.
15817 (Compilation_Unit_to_gnu): Build global constructor and destructor if
15819 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
15821 (addressable_p) <COMPONENT_REF>: Unconditionally test
15822 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
15824 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
15825 variable if it is external.
15827 (static_ctors, static_dtors): New global variables.
15828 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
15829 <ATTR_LINK_DESTRUCTOR>: Likewise.
15830 (end_subprog_body): Chain function as constructor and destructor
15833 * exp_util.adb (Force_Evaluation): Unconditionally invoke
15834 Remove_Side_Effects with Variable_Ref set to true.
15835 (Remove_Side_Effects): Handle scalar types first. Use a renaming
15836 for non-scalar types even if Variable_Ref is true and for class-wide
15839 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15841 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
15842 to prevent spurious warnings.
15844 2005-07-04 Thomas Quinot <quinot@adacore.com>
15846 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
15847 Itypes. Itypes are really unexpected there.
15848 (Build_TypeCode_Function): Generalise special processing for Itypes to
15849 handle the case of numeric implicit base types as well as enumerated
15852 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15854 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
15855 controlled, indicate the expected type of the dereference that is
15856 created for the call to Deep_Finalize, to prevent spurious errors when
15857 the designated type is private and completed with a derivation from
15858 another private type.
15860 2005-07-04 Vincent Celier <celier@adacore.com>
15862 * make.adb (Change_To_Object_Directory): When unable to change the
15863 current dir to the object directory, output the full path of the
15866 2005-07-04 Matthew Gingell <gingell@adacore.com>
15868 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
15870 * indepsw-linux.adb: Replace by...
15872 * indepsw-gnu.adb: ...this new file
15874 2005-07-04 Vincent Celier <celier@adacore.com>
15876 * mlib-prj.adb (Auto_Initialize): New constant String
15877 (SALs_Use_Constructors): New Boolean function
15878 (Build_Library): Call gnatbind with Auto_Initialize switch when
15879 SALs_Use_Constructors returns True.
15881 * mlib-tgt.ads: Minor reformatting
15883 * mlib-utl.ads: Minor reformatting
15885 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
15887 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15889 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
15890 single protected declarations can have an interface list.
15891 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
15892 with seriously malformed entry declarations, and lead to compilation
15893 abandoned messages.
15895 2005-07-04 Javier Miranda <miranda@adacore.com>
15897 * par-load.adb: Load the context items in two rounds.
15899 2005-07-04 Robert Dewar <dewar@adacore.com>
15901 * scng.adb: Do not consider Mod used as an attribute to be a keyword
15903 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15904 Javier Miranda <miranda@adacore.com>
15906 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
15907 type extension needs a limited view.
15908 Remove previous restriction on private types available through the
15909 limited-view (only tagged private types were previously allowed).
15910 (Install_Withed_Unit): In the code that implements the
15911 legality rule given in AI-377, exclude a child unit with the name
15912 Standard, because it is a homonym of the Standard environment package.
15914 2005-07-04 Thomas Quinot <quinot@adacore.com>
15916 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
15917 overloaded function call, carry interpretations from the original tree
15920 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15922 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
15923 types check whether some designated type is a limited view, and use
15924 the non-limited view if available.
15926 2005-07-04 Gary Dismukes <dismukes@adacore.com>
15928 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
15929 constraint of full view of a private view T1 if present, when T2 is a
15930 discriminated full view.
15932 2005-07-04 Thomas Quinot <quinot@adacore.com>
15934 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
15935 actual that is a view conversion of a bit packed array reference.
15937 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15939 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
15940 present before checking whether an interface type covers a synchronized
15943 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15945 * sem_util.adb (Is_Object_Reference): An indexed or selected component
15946 whose prefix is an implicit dereference is an object reference. Removes
15947 spurious errors when compiling with -gnatc.
15949 2005-07-04 Robert Dewar <dewar@adacore.com>
15952 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
15954 2005-07-04 Matthew Gingell <gingell@adacore.com>
15956 * tracebak.c: Enable tracebacks on ia64 platforms
15958 2005-07-04 Vincent Celier <celier@adacore.com>
15960 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
15961 the GNAT BIND command, as gnatbind accepts multiples ALI files with
15962 the -L or -n switches.
15964 2005-07-04 Vincent Celier <celier@adacore.com>
15966 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
15967 correctly computed and the main project data is not modified while
15969 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
15970 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
15971 c++linker as this does not work on some platforms.
15973 2005-07-04 Matthew Heaney <heaney@adacore.com>
15975 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
15977 * a-coinve.adb: Perform constraint checks explicitly.
15979 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15980 Thomas Quinot <quinot@adacore.com>
15982 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
15983 new target gen-soccon.
15985 2005-07-04 Robert Dewar <dewar@adacore.com>
15987 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
15989 2005-07-04 Thomas Quinot <quinot@adacore.com>
15991 * g-socket.ads (Check_Selector): Minor rewording of comment.
15993 2005-07-04 Vincent Celier <celier@adacore.com>
15995 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
15997 2005-07-04 Thomas Quinot <quinot@adacore.com>
15999 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
16001 2005-07-04 Sergey Rybin <rybin@adacore.com>
16003 * gnat_ugn.texi: Add description of --eol gnatpp option
16005 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
16006 Thomas Quinot <quinot@adacore.com>
16008 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
16009 if the user wants all calls of a subprogram to be flagged,
16010 independently of whether they are made from within the same unit or
16012 Mention restriction for pragma Linker_Alias on some platforms.
16013 Document pragma Linker_Constructor and Linker_Destructor.
16014 Rewrite documentation of Weak_External, Linker_Section and
16015 Linker_Alias pragmas.
16017 2005-07-04 Arnaud Charlet <charlet@adacore.com>
16019 * s-stausa.ads, s-stausa.adb: New files.
16021 2005-06-30 Kelley Cook
16023 * all files: Update FSF address in copyright headers.
16024 * gen-soccon.co (main): Output new FSF address in generated files.
16026 2005-06-28 Paul Brook <paul@codesourcery.com>
16028 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
16030 2005-06-14 Olivier Hainque <hainque@adacore.com>
16031 Eric Botcazou <ebotcazou@adacore.com>
16033 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
16034 exc_unwind, now that we are generating proper .debug_frame output for
16037 * tracebak.c: Remove the mips-irix section, as we are now using the
16038 s-mastop based unwinder again.
16039 Under SPARC/Solaris, take into account the stack bias to compute the
16040 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
16043 2005-06-14 Doug Rupp <rupp@adacore.com>
16045 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
16047 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
16049 2005-06-14 Pascal Obry <obry@adacore.com>
16051 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
16052 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
16053 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
16056 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
16057 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
16058 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
16059 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
16060 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
16061 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
16062 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
16063 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
16064 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
16065 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
16066 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
16067 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
16068 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
16069 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
16070 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
16071 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
16072 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
16073 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
16074 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
16075 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
16076 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
16077 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
16078 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
16079 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
16080 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
16081 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
16082 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
16083 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
16084 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
16085 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
16086 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
16087 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
16088 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
16089 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
16090 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
16091 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
16092 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
16093 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
16094 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
16095 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
16096 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
16097 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
16098 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
16099 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
16100 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
16101 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
16102 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
16103 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
16104 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
16105 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
16106 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
16107 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
16108 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
16109 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
16110 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
16111 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
16112 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
16113 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
16114 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
16115 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
16116 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
16117 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
16118 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
16119 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
16120 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
16121 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
16122 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
16123 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
16124 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
16125 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
16126 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
16127 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
16128 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
16129 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
16130 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
16131 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
16132 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
16133 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
16134 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
16135 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
16136 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
16137 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
16138 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
16139 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
16140 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
16141 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
16142 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
16143 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
16144 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
16145 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
16146 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
16147 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
16148 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
16149 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
16150 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
16151 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
16152 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
16153 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
16154 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
16155 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
16156 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
16157 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
16158 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
16159 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
16160 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
16161 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
16162 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
16163 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
16164 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
16165 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
16166 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
16167 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
16168 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
16169 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
16170 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
16171 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
16172 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
16173 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
16174 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
16175 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
16176 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
16177 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
16178 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
16179 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
16180 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
16181 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
16182 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
16183 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
16184 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
16185 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
16186 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
16187 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
16188 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
16190 2005-06-14 Jose Ruiz <ruiz@adacore.com>
16191 Arnaud Charlet <charlet@adacore.com>
16193 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
16194 longer protected objects. They have been replaced by lower-level
16195 suspension objects made up by a mutex and a condition variable (or
16196 their equivalent given a particular OS) plus some internal data to
16197 reflect the state of the suspension object.
16198 (Initialize, Finalize): Add this initialization procedure for
16199 Suspension_Object, which is a controlled type.
16200 (Finalize): Add the finalization procedure for Suspension_Object,
16201 which is a controlled type.
16203 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
16204 Ada.Synchronous_Task_Control because there is no longer a need for a
16205 VxWorks specific version of this package. Target dependencies
16206 has been moved to System.Task_Primitives.Operations.
16208 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
16210 (InitializeCriticalSection, EnterCriticalSection,
16211 LeaveCriticalSection, DeleteCriticalSection): Replace the type
16212 pCriticalSection by an anonymous access type so that we avoid problems
16213 of accessibility to local objects.
16215 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
16216 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
16217 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
16218 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
16219 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
16220 set the environment task mask here.
16221 (Current_State): Add this function that returns the state of the
16223 (Set_False): Add this procedure that sets the state of the suspension
16225 (Set_True): Add this procedure that sets the state of the suspension
16226 object to True, releasing the task that was suspended, if any.
16227 (Suspend_Until_True): Add this procedure that blocks the calling task
16228 until the state of the object is True. Program_Error is raised if
16229 another task is already waiting on that suspension object.
16230 (Initialize): Add this procedure for initializing the suspension
16231 object. It initializes the mutex and the condition variable which are
16232 used for synchronization and queuing, and it sets the internal state
16234 (Finalize): Add this procedure for finalizing the suspension object,
16235 destroying the mutex and the condition variable.
16237 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
16238 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
16239 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
16240 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
16241 which provides a low-level abstraction (using operating system
16242 primitives) for Ada.Synchronous_Task_Control.
16243 This object is made up by a mutex (for ensuring mutual exclusion), a
16244 condition variable (for queuing threads until the condition is
16245 signaled), a Boolean (State) indicating whether the object is open,
16246 and a Boolean (Waiting) reflecting whether there is a task already
16247 suspended on this object.
16249 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
16250 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
16251 s-intman-vms.ads, s-intman-mingw.adb,
16252 (Initialize_Interrupts): Removed, no longer used.
16254 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
16255 (Setup_Interrupt_Mask): New procedure.
16257 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
16259 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
16261 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
16262 this is no longer done in the body of s-taprop
16263 (Server_Task): Explicitely test for Pending_Action in case
16264 System.Parameters.No_Abort is True.
16266 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
16267 is no longer done in the body of s-taprop
16269 2005-06-14 Robert Dewar <dewar@adacore.com>
16271 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
16272 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
16273 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
16274 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
16275 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
16276 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
16277 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
16278 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
16279 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
16280 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
16281 system-linux-hppa.ads, system-vms_64.ads,
16282 system-vxworks-alpha.ads: Minor comment update for
16283 AI-362 (unit is Pure).
16285 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
16286 Add pragma Pure_05 for AI-362
16287 Make remaining conversion functions obsolescent in Ada 95
16289 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
16290 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
16291 Add entries for a-wichun and a-zchuni
16292 Add a-widcha a-zchara for AI-395
16293 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
16295 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
16296 Add entries for a-wichun.o and a-zchuni.o
16297 Entries for a-widcha.o and a-zchara.o
16298 Add entry for a-chacon.o
16300 * a-ztenau.adb: Add with of Ada.Characters.Conversions
16302 * a-chacon.ads, a-chacon.adb: New files.
16304 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
16305 categorization violations.
16307 * a-strmap.ads: Add pragma Pure_05 for AI-362
16308 * a-strmap.ads: Add note on implicit categorization for AI-362
16310 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
16312 * par-prag.adb: Dummy entry for pragma Persistent_BSS
16313 Set Ada_Version_Explicit, for implementation of AI-362
16314 Add processing for pragma Pure_05 and Preelaborate_05
16315 Add entry for Assertion_Policy pragma
16317 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
16318 when needed for proper processing of categorization stuff
16321 For several cases, make errors in preealborate units warnings,
16322 instead of errors, if GNAT_Mode is set. For AI-362.
16324 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
16325 preelaborate unit is now warning if in GNAT mode
16327 * s-stoele.ads: Document AI-362 for pragma preelaborate
16329 2005-06-14 Doug Rupp <rupp@adacore.com>
16331 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
16332 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
16333 Default_Exception_Msg_Max_Length: new parameter.
16335 * a-except.ads: (Exception_Msg_Max_Length): Set to
16336 System.Parameters.Default_Exception_Msg_Max_Length
16337 Add pragma Preelaborate_05 for AI-362
16338 Add warnings off to allow categorization violations for AI-362
16340 2005-06-14 Vincent Celier <celier@adacore.com>
16342 * gnatsym.adb: Adapt to modification of package Symbols: procedure
16343 Process is now in package Processing.
16345 * symbols.ads, symbols.adb:
16346 (Processing): New package, containing procedure Process
16348 * symbols-vms-alpha.adb:
16349 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
16351 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
16352 symbols-processing-vms-ia64.adb: New files.
16354 2005-06-14 Pascal Obry <obry@adacore.com>
16356 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
16357 implementation. This new version generates the proper DllMain routine
16358 to initialize the SAL. The DllMain is generated in Ada and compiled
16359 before being added as option to the library build command.
16361 2005-06-14 Doug Rupp <rupp@adacore.com>
16362 Pascal Obry <obry@adacore.com>
16364 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
16365 call to decc$translate_vms.
16366 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
16367 need to remove those quotes before catenating the filename.
16368 (__gnat_locate_exec_on_path): improvements to the Win32 section:
16369 * avoid allocating the memory twice for better efficiency;
16370 * allocate 32K buffer for environment expansion as suggested by MSDN;
16371 * prepend ".;" to the path so that current directory is searched too.
16373 2005-06-14 Robert Dewar <dewar@adacore.com>
16375 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
16376 instead of raising CE (AI-241)
16377 Add warnings off to allow categorization violations for AI-362
16379 2005-06-14 Robert Dewar <dewar@adacore.com>
16381 * ali-util.adb, gnatbind.adb: Remove references to
16382 Force_RM_Elaboration_Order.
16384 * switch-b.adb: Remove recognition of -f switch
16386 2005-06-14 Pascal Obry <obry@adacore.com>
16388 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
16389 implementation which is slightly more efficient.
16391 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16392 Javier Miranda <miranda@adacore.com>
16393 Ed Schonberg <schonberg@adacore.com>
16394 Hristian Kirtchev <kirtchev@adacore.com>
16396 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
16397 allocator's designated type is a class-wide type, and compiling for
16398 Ada 2005, emit a run-time check that the accessibility level of the
16399 type given in the allocator's expression is not deeper than the level
16400 of the allocator's access type.
16402 (Tagged_Membership): Modified to gives support to abstract interface
16405 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
16407 (Descendant_Tag): New predefined function
16408 (Is_Descendant_At_Same_Level): New predefined function
16409 (Get_Access_Level): New private function
16410 (Set_Access_Level): New private procedure
16411 (IW_Membership): New function. Given the tag of an object and the tag
16412 associated with an interface, evaluate if the object implements the
16414 (Register_Interface_Tag): New procedure used to initialize the table of
16415 interfaces used by the IW_Membership function.
16416 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
16417 of the dispatch table.
16418 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
16419 table of interfaces of the parent.
16420 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
16421 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
16422 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
16423 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
16424 Ada 2005 semantics for the new predefined function.
16426 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
16427 call to Descendant_Tag rather than Internal_Tag.
16428 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
16429 the accessibility level of the attribute's Item parameter is not deeper
16430 than the level of the attribute's prefix type. Tag_Error is raised if
16431 the check fails. The check is only emitted for Ada_05.
16432 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
16433 requested stream attribute, use it.
16434 (Expand_N_Attribute_Reference): If the designated type is an interface
16435 then rewrite the referenced object as a conversion to force the
16436 displacement of the pointer to the secondary dispatch table.
16437 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
16438 is a dereference of an object with a constrained partial view.
16440 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
16441 type is a class-wide type, emit a run-time check that the accessibility
16442 level of the returned object is not deeper than the level of the
16443 function's master (only when compiling for Ada 2005).
16445 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
16446 Action_Nb_Arg): Add entries for new Get_Access_Level and
16447 Set_Access_Level routines in these tables.
16448 (Make_DT): Generate a call to set the accessibility level of the
16449 tagged type in its TSD.
16450 (Make_DT): Code cleanup. The functionality of generating all the
16451 secondary dispatch tables has been moved to freeze_record_type.
16452 (Make_Abstract_Interface_DT): Minor code cleanup.
16453 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
16454 this subprogram implements a new algorithm that provides the
16455 same functionality and it is more clear in case of primitives
16456 associated with abstract interfaces.
16457 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
16458 clean up, the functionality of this subprogram is now provided
16459 by Set_All_DT_Position.
16460 (Write_DT): New subprogram: a debugging procedure designed to be called
16461 within gdb to display the dispatch tables associated with a tagged
16463 (Collect_All_Interfaces): New subprogram that collects the whole list
16464 of interfaces that are directly or indirectly implemented by a tagged
16466 (Default_Prim_Op_Position): New subprogram that returns the fixed
16467 position in the dispatch table of the default primitive operations.
16468 (Expand_Interface_Actuals): New subprogram to generate code that
16469 displaces all the actuals corresponding to class-wide interfaces to
16470 reference the interface tag of the actual object.
16471 (Expand_Interface_Conversion): New subprogram. Reference the base of
16472 the object to give access to the interface tag associated with the
16473 secondary dispatch table.
16474 (Expand_Interface_Thunk): New subprogram that generates the code of the
16475 thunk. This is required for compatibility with the C+ ABI.
16476 (Make_Abstract_Interface_DT): New subprogram that generate the
16477 declarations for the secondary dispatch tables associated with an
16478 abstract interface.
16479 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
16480 attribute for each primitive operation covering interface subprograms
16481 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
16482 These subprograms were upgraded to give support to abstract interfaces
16484 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
16485 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
16486 RE_Set_Access_Level.
16487 (RE_Unit_Table): Add entries for new Ada.Tags operations.
16488 Add support to call the followig new run-time subprograms:
16489 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
16491 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
16492 match its full declaration when both have an access definition with
16493 statically matching designated subtypes.
16494 (Analyze_Component_Declaration): Delete commented out code that was
16495 incorrectly setting the scope of an anonymous access component's type.
16496 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
16497 an access discriminant when the containing type is nonlimited.
16498 (Make_Incomplete_Type_Declaration): Create an incomplete type
16499 declaration for a record type that includes self-referential access
16501 (Check_Anonymous_Access_Types): Before full analysis of a record type
16502 declaration, create anonymous access types for each self-referential
16504 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
16505 an access component in this context is a Local_Anonymous_Access, for
16506 proper accessibility checks.
16507 (Access_Definition): Set properly the scope of the anonymous access type
16508 created for a stand-alone access object.
16509 (Find_Type_Of_Object): An object declaration may be given with an access
16511 (Complete_Subprograms_Derivation): New subprogram used to complete
16512 type derivation of private tagged types implementing interfaces.
16513 In this case some interface primitives may have been overriden
16514 with the partial-view and, instead of re-calculating them, they
16515 are included in the list of primitive operations of the full-view.
16516 (Build_Derived_Record_Type): Modified to give support to private
16517 types implemening interfaces.
16518 (Access_Definition): Reject ALL on anonymous access types.
16519 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
16520 type derivation to occur at a deeper accessibility level than the
16522 For the case of derivation within a generic body however, disallow the
16523 derivation if the derived type has an ancestor that is a formal type
16524 declared in the formal part of an enclosing generic.
16525 (Analyze_Object_Declaration): For protected objects, remove the check
16526 that they cannot contain interrupt handlers if not declared at library
16528 (Add_Interface_Tag_Components): New subprogram to add the tag components
16529 corresponding to all the abstract interface types implemented by a
16530 record type or a derived record type.
16531 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
16532 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
16533 Process_Full_View, Record_Type_Declaration): Modified to give
16534 support to abstract interface types
16535 (Collect_Interfaces): New subprogram that collects the list of
16536 interfaces that are not already implemented by the ancestors
16537 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
16538 when partial view has no discriminants and full view has defaults.
16539 (Constrain_Access): Reject a constraint on a general access type
16540 if the discriminants of the designated type have defaults.
16541 (Access_Subprogram_Declaration): Associate the Itype node with the inner
16542 full-type declaration or subprogram spec. This is required to handle
16543 nested anonymous declarations.
16544 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
16545 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
16546 Process_Full_View, Record_Type_Declaration): Modified to give
16547 support to abstract interface types
16548 (Derive_Subprograms): Addition of a new formal to indicate if
16549 we are in the case of an abstact-interface derivation
16550 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
16551 to the specification because it is requied to analyze all the
16552 identifiers found in a list of interfaces
16554 * debug.adb: Complete documentation of flag "-gnatdZ"
16556 * exp_ch3.adb: Implement config version of persistent_bss pragma
16557 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
16558 testing for TSS presence to properly enforce visibility rules.
16559 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
16560 Make_Abstract_Interfaces_DT to generate the secondary tables
16561 associated with abstract interfaces.
16562 (Build_Init_Procedure): Modified to initialize all the tags
16564 (Component_Needs_Simple_Initialization): Similar to other tags,
16565 interface tags do not need initialization.
16566 (Freeze_Record_Type): Modified to give support to abstract interface
16568 (Expand_N_Object_Declaration): Do not generate an initialization for
16569 a scalar temporary marked as internal.
16571 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
16572 in-out parameter that is a component in an initialization procedure,
16573 whose constraint might depend on discriminants, and that may be
16574 misaligned because of packing or representation clauses.
16575 (Is_Legal_Copy): New predicate to determine whether a possibly
16576 misaligned in-out actual can actually be passed by copy/return. This
16577 is an error in case the type is by_reference, and a warning if this is
16578 the consequence of a DEC import pragma on the subprogram.
16579 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
16581 (Expand_Inlined_Call): Mark temporary generated for the return value as
16582 internal, so that no useless scalar normalization is generated for it.
16583 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
16584 null procedure can always be inlined.
16585 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
16586 procedure, generate an explicit empty body for it.
16588 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
16589 Given a type implementing an interface, returns the corresponding
16590 access_disp_table value.
16591 (Find_Interface_Tag): New subprogram. Given a type implementing an
16592 interface, returns the record component containing the tag of the
16594 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
16595 previous ones that return the corresponding tag and access_disp_table
16597 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
16598 is a predefined primitive operation.
16599 (Expand_Subtype_From_Expr): If the expression is a selected component
16600 within an initialization procedure, compute its actual subtype, because
16601 the component may depend on the discriminants of the enclosing record.
16603 * i-cpp.ads, i-cpp.adb:
16604 This package has been left available for compatibility with previous
16605 versions of the frontend. As part of the new layout this is now a
16606 dummy package that uses declarations available at a-tags.ads
16608 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
16609 "constant access" and "aliased [constant] access" when not compiling
16611 Suppress Ada 2005 keyword warning if -gnatwY used
16612 (P_Identifier_Declarations): Add support for object declarations with
16613 access definitions.
16614 (Private_Extension_Declaration): Complete the documentation
16615 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
16616 attribute in case of private extension declaration
16617 (P_Type_Declaration): Mark as "abstract" the type declarations
16618 corresponding with protected, synchronized and task interfaces
16619 (P_Declarative_Items): "not" and "overriding" are overriding indicators
16620 for a subprogram or instance declaration.
16622 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
16623 instantiation that is a dispatching operation has controlling access
16624 parameters that are null excluding.
16625 Save and restore Ada_Version_Explicit, for implementation of AI-362
16626 (Validate_Derived_Type_Instance): Add check for abstract interface
16628 (Analyze_Formal_Package): Establish Instantiation source for the copy of
16629 the generic that is created to represent the formal package.
16630 (Analyze_Package_Instantiation): Instantiate body immediately if the
16631 package is a predefined unit that contains inlined subprograms, and
16632 we are compiling for a Configurable_Run_Time.
16633 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
16634 If the program has a null default, generate an empty body for it.
16636 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
16637 error message condition, null procedures are correctly detected now.
16638 (New_Overloaded_Entity): Bypass trivial overriding indicator check
16639 for subprograms in the context of protected types. Instead, the
16640 indicator is examined in Sem_Ch9 while analysing the subprogram
16642 (Check_Overriding_Indicator): Check consistency of overriding indicator
16643 on subprogram stubs as well.
16644 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
16646 (Analize_Subprogram_Specification): When analyzing a subprogram in which
16647 the type of the first formal is a concurrent type, replace this type
16648 by the corresponding record type.
16649 (Analyze_Subprogram_Body): Undo the previous work.
16650 (Analyze_Procedure_Call): If the call has the form Object.Op, the
16651 analysis of the prefix ends up analyzing the call itself, after which
16653 (Has_Interface_Formals): New subprogram subsidiary to analyze
16654 subprogram_specification that returns true if some non
16655 class-wide interface subprogram is found
16656 (New_Overloaded_Entity): Modified to give support to abstract
16658 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
16659 access to subprograms must be recursive.
16660 (Is_Unchecked_Conversion): Improve the test that recognizes
16661 instantiations of Unchecked_Conversion, and allows them in bodies that
16662 are to be inlined by the front-end. When the body comes from an
16663 instantiation, a reference to Unchecked_Conversion will be an
16664 Expanded_Name, even though the body has not been analyzed yet.
16665 Replace Is_Overriding and Not_Overriding in subprogram_indication with
16666 Must_Override and Must_Not_Override, to better express intent of AI.
16667 (Analyze_Subprogram_Body): If an overriding indicator is given, check
16668 that it is consistent with the overrinding status of the subprogram
16670 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
16672 If the subprogram is a null procedure, indicate that it does not need
16675 * sem_disp.adb (Check_Controlling_Type): Give support to entities
16676 available through limited-with clauses.
16677 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
16678 allowed as the last primitive of a tagged type if it has no previous
16680 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
16681 to give support to abstract interface types
16683 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
16684 in the case where the target type is an anonymous access type of an
16685 object or component (that is, when Is_Local_Anonymous_Access is true).
16686 Prevent the special checks for conversions of access discriminants in
16687 the case where the discriminant belongs to a nonlimited type, since
16688 such discriminants have their accessibility level defined in the same
16689 way as a normal component of an anonymous access type.
16690 (Resolve_Allocator): When an allocator's designated type is a class-wide
16691 type, check that the accessibility level of type given in the
16692 allocator's expression or subtype indication is not statically deeper
16693 than the level of the allocator's access type.
16694 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
16695 name in a discriminant constraint of a record component.
16696 (Resolve_Explicit_Dereference): Do not check whether the type is
16697 incomplete when the dereference is a use of an access discriminant in
16698 an initialization procedure.
16699 (Resolve_Type_Conversion): Handle conversions to abstract interface
16701 (Valid_Tagged_Conversion): The conversion of a tagged type to an
16702 abstract interface type is always valid.
16703 (Valid_Conversion): Modified to give support to abstract interface types
16704 (Resolve_Actuals): Enable full error reporting on view conversions
16705 between unrelated by_reference array types.
16706 The rule for view conversions of arrays with aliased components is
16707 weakened in Ada 2005.
16708 Call to obsolescent subprogram is now considered to be a violation of
16709 pragma Restrictions (No_Obsolescent_Features).
16710 (Check_Direct_Boolean_Operator): If the boolean operation has been
16711 constant-folded, there is nothing to check.
16712 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
16713 check on possible violation of restriction No_Direct_Boolean_Operators
16714 until after expansion of operands, to prevent spurious errors when
16715 operation is constant-folded.
16717 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
16718 Has_Compatible_Type): Modified to give support to abstract interface
16720 (Interface_Present_In_Ancestor): New function to theck if some ancestor
16721 of a given type implements a given interface
16723 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
16724 prefix is a parameterless function that returns an access_to_procedure.
16725 (Transform_Object_Operation): Handle properly function calls of the
16726 form Obj.Op (X), which prior to analysis appear as indexed components.
16727 (Analyze_One_Call): Complete the error notification to help new Ada
16729 (Analyze_Allocator): For an allocator without an initial value, where
16730 the designated type has a constrained partial view, a discriminant
16731 constraint is illegal.
16733 2005-06-14 Robert Dewar <dewar@adacore.com>
16735 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
16736 do with treatment of Set_Col when positioned at end of line character.
16738 2005-06-14 Robert Dewar <dewar@adacore.com>
16740 * atree.adb: (Elist*): Protect against uninitialized field
16742 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16744 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
16745 for an attribute reference that returns an access type.
16746 (Apply_Discriminant_Check): No need for check if (designated) type has
16747 constrained partial view.
16749 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
16750 both bound checks, rather than a conjunction.
16751 (Insert_Valid_Check): If the expression is an actual that is an indexed
16752 component of a bit-packed array, force expansion of the packed element
16753 reference, because it is specifically inhibited elsewhere.
16755 2005-06-14 Vincent Celier <celier@adacore.com>
16757 * clean.adb (Clean_Project): Correctly delete executable specified as
16758 absolute path names.
16760 * make.adb (Gnatmake): Allow relative executable path names with
16761 directory information even when project files are used.
16762 (Change_To_Object_Directory): Fail gracefully when unable to change
16763 current working directory to object directory of a project.
16764 (Gnatmake): Remove exception handler that could no longer be exercized
16765 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
16766 may be deallocated by Normalize_Arguments.
16767 (Collect_Arguments): Eliminate empty arguments
16769 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
16770 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
16771 (Check_Project): Return False when Project is No_Project. Return True
16772 when All_Projects is True.
16773 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
16774 All_Projects to True.
16777 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16778 Javier Miranda <miranda@adacore.com>
16779 Thomas Quinot <quinot@adacore.com>
16780 Robert Dewar <dewar@adacore.com>
16781 Hristian Kirtchev <kirtchev@adacore.com>
16782 Gary Dismukes <dismukes@adacore.com>
16784 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
16785 anonymous access types, to indicate that the accessibility level of
16786 the type is determined by that of the enclosing declaration.
16787 (Has_Persistent_BSS): New flag
16788 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
16789 of this attribute with functions.
16790 (Is_Primitive_Wrapper): Remove the barrier.
16791 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
16792 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
16794 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
16795 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
16797 (Is_Pure_Unit_Access_Type): New flag
16798 (Abstract_Interfaces): Complete the assertion to cover all usages.
16799 (Set_Is_Interface): Complete the assertion to cover all usages.
16800 (Is_Primitive_Wrapper): New attribute.
16801 (Is_Obsolescent): Now applies to all entities (though it is only set
16802 for subprograms currently)
16803 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
16804 which solves various problems concerning access subtypes.
16805 (Has_Persistent_BSS): New flag
16806 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
16807 Remove these subprograms because this attribute is currently
16810 Has_Specified_Stream_Input (Flag190)
16811 Has_Specified_Stream_Output (Flag191)
16812 Has_Specified_Stream_Read (Flag192)
16813 Has_Specified_Stream_Write (Flag193)
16814 Present in all type and subtype entities. Set for a given view if the
16815 corresponding stream-oriented attribute has been defined by an
16816 attribute definition clause. When such a clause occurs, a TSS is set
16817 on the underlying full view; the flags are used to track visibility of
16818 the attribute definition clause for partial or incomplete views.
16819 (Is_Pure_Unit_Access_Type): New flag
16820 Clarify use of Is_Internal.
16821 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
16822 internally generated to wrap the invocation of tasks and protected
16823 types that implement interfaces.
16824 (Implementation_Base_Type): Documentation correction
16825 (Is_Obsolescent): Now applies to all entities (though it is only set
16826 for subprograms currently)
16827 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
16828 which solves various problems concerning access subtypes.
16830 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
16831 for examined parameters. Identify unequal parameter list lengths as
16832 non-conformant parameters.
16833 (Overriding_Possible): Do not check for "All" qualifier in declaration
16834 of controlling access parameter, following prescription of AI-404.
16835 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
16836 that build the procedure body that wraps an entry invocation
16837 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
16838 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
16839 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
16840 give support to abstract interface types
16842 * freeze.adb (Freeze_Entity): Issue error message if
16843 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
16844 type has no storage pool (Ada 2005) AI-366.
16845 Also modified to give support to abstract interface types
16846 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
16847 Inline_Always pragma.
16849 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
16850 now begin an entry declaration.
16851 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
16852 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
16853 a subprogram declaration preceded by an overriding indicator.
16854 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
16855 declarations or subprogram declarations preceded by reserved words
16856 "not" or "overriding".
16857 (P_Entry_Declaration): Update comment. Parse and check overriding
16858 indicator, set semantic flags of entry declarations.
16859 (P_Task): New error message in case of private applied
16860 to a task type declaration.
16861 (P_Protected): New error message in case of private applied
16862 to a task type declaration.
16864 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
16865 in which the full view of a type implementing an interface is a
16867 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
16868 Declare_Inherited_Private_Subprograms): If an explicit operation
16869 overrides an operation that is inherited in the private part, mark the
16870 explicit one as overriding, to enable overriding indicator checks.
16871 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
16872 full view to partial view, to simplify handling in back-end.
16874 * sprint.adb: Print interface lists where needed: derived types,
16875 protected types, task types.
16876 output "is null" for null procedures. Part of implementation of
16878 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
16879 relaxation of rules for access types in pure, shared passive partitions.
16881 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
16882 first read discriminants into temporary objects, performing checks on
16883 the read values, then possibly performing discriminant checks on the
16884 actual (if it is constrained), and only finally reading the components
16885 into a constrained temporary object.
16886 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
16887 case of reading discriminants of a mutable record type to recognize
16888 the new form of the code generated by
16889 Build_Mutable_Record_Read_Procedure.
16891 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
16892 of a simple call to Make_TSS_Name.
16893 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
16894 buffer, in order for Is_TSS to work correctly on local TSS names.
16896 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
16897 Is_Local_Anonymous_Access to check legaliy of attributes in the
16898 context of access components and stand-alone access objects.
16899 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
16900 treated as available for a limited private type if there is an
16901 attribute_definition_clause that applies to its full view, but not in
16902 other cases where the attribute is available for the full view
16903 (specifically, the sole fact that the full view is non-limited does not
16904 make the attribute available for the partial view).
16905 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
16906 non-overloaded intrinsic subprogram.
16907 (Check_Stream_Attribute): Reject an attribute reference for an
16908 unavailable stream attribute even if the prefix is not a limited type
16909 (case of a 'Input attribute reference for an abstract, non-classwide
16911 (Stream_Attribute_Available): New function to determine whether a stream
16912 attribute is available at a place.
16913 (Check_Attribute): Use Stream_Attribute_Available instead of just
16914 testing for TSS presence on the implementation base type.
16915 (Analyze_Attribute): Modified to give support to task interfaces.
16916 (Analyze_Access_Attribute): Add error check for use of an Access (or
16917 Unrestricted_Access) attribute with a subprogram marked as
16919 (Analyze_Attribute, case Attribute_Address): Add error check for use of
16920 an Address attribute with a subprogram marked as Inline_Always.
16921 Update Eval_Attribute to handle new value of Width from AI-395
16923 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
16924 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
16925 Factor common code across the stream-oriented attribute circcuits into
16926 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
16927 processing is functionally identical to the previous duplicated one,
16928 except that an expression that denotes an abstract subprogram will now
16929 be rejected, as mandated by AI-195 item 5.
16931 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
16932 Is_Local_Anonymous_Access to apply accessibility checks to access
16933 components and stand-alone access objects.
16934 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
16936 (Is_Potentially_Persistent_Type): New function
16937 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
16938 a heap-object whose type has a constrained partial view, the object is
16939 unconstrained and the component may depend on a discriminant, making its
16942 * sinfo.ads, sinfo.adb
16943 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
16944 (Must_Override): Flag applicable to N_Entry_Declaration.
16945 Indicate that interface_list can appear in single task and single
16946 protected declarations.
16947 Replace Is_Overriding and Not_Overriding with Must_Override and
16948 Must_Not_Override, to better express intent of AI.
16949 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
16950 of an overriding indicator in a subprogram or instance.
16951 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
16952 Add the overriding indicator [[not] overriding] construct to the
16953 following grammar productions:
16955 GENERIC_INSTANTIATION
16956 SUBPROGRAM_SPECIFICATION
16958 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
16959 can start with an overriding indicator.
16961 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
16962 flags accordingly on subrogram specifications or instances.
16965 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
16966 overriding_indicator, if present, is consistent with status of spec.
16967 Improve error message for null-excluding checks on controlling access
16969 (Check_In_Previous_With_Clause): Protect the frontend against
16970 previously reported critical errors in the context clauses.
16971 Save and restore Ada_Version_Explicit, for implementation of AI-362
16972 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
16973 operation verify that controlling formals of the renamed entity that
16974 are access parameters are explicitly non-null.
16975 (Find_Expanded_Name): Improve error message when prefix is an illegal
16976 reference to a private child unit.
16978 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
16979 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
16980 Rewrite to correspond to new wide character names in AI-395
16982 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
16983 default procedures.
16985 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16986 Robert Dewar <dewar@adacore.com>
16988 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
16989 code, not on the bodies of predefined operations, to cut down on
16992 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16994 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
16995 be expanded in place. The size computation does not require a
16996 subtraction, which would raise an exception on a compiler built with
16997 assertions when the upper bound is Integer'first.
16998 (Flatten): For an array of composite components, take into account the
16999 size of the components to determine whether it is safe to expand the
17000 array into a purely positional representation.
17002 2005-06-14 Thomas Quinot <quinot@adacore.com>
17004 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
17005 denoting a formal parameter into account.
17007 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17009 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
17010 the entry_call alternative of a conditional entry call, wrap the
17011 conditional entry call itself.
17013 2005-06-14 Nicolas Setton <setton@adacore.com>
17014 Ed Schonberg <schonberg@adacore.com>
17016 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
17017 the "simple_choice" member in a variant record, in accordance with the
17018 description in the package spec: the information output for a constant
17019 should be "S number", not "SS number".
17020 (Get_Encoded_Name): Return at once if not generating code. Avoids name
17021 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
17023 2005-06-14 Thomas Quinot <quinot@adacore.com>
17025 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
17026 RACW without any primitives, do not generate the if statement for
17027 dispatching by name in the PolyORB/DSA case, as it would be malformed
17028 (it would have an Elsif_Parts list that is not No_List, but with a
17031 2005-06-14 Robert Dewar <dewar@adacore.com>
17033 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
17035 2005-06-14 Jose Ruiz <ruiz@adacore.com>
17037 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
17038 can determine whether pragma Suppress_Exception_Locations is in effect.
17040 * utils2.c (build_call_raise): Do not pass the file name to the
17041 exception handler if pragma Suppress_Exception_Locations is in effect.
17042 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
17044 2005-06-14 Emmanuel Briot <briot@adacore.com>
17046 * g-debpoo.adb (Deallocate, Dereference): Improve output.
17048 2005-06-14 Nicolas Roche <roche@adacore.com>
17050 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
17052 (Next_Level): Fix minor bug in handling of ../dir case
17053 (Read): Add dir separator to Directory name so that "" is understood as
17056 2005-06-14 Pascal Obry <obry@adacore.com>
17058 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
17059 releasing the items.
17061 2005-06-14 Vincent Celier <celier@adacore.com>
17062 Cyrille Comar <comar@adacore.com>
17064 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
17065 with output file descriptor and with output file name.
17066 (Dup, Dup2): Now global procedures as they are used by two subprograms
17067 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
17069 2005-06-14 Thomas Quinot <quinot@adacore.com>
17072 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
17074 (Create_Selector): Bind listening socket used to create the signalling
17075 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
17076 Set listen backlog to 1 to ensure that we detect socket theft by a
17077 failure of our own connect(2) call.
17078 (Check_Selector): Improve documentation of the selector mechanism.
17079 (Broadcast_Inet_Addr): New constant.
17081 2005-06-14 Gary Dismukes <dismukes@adacore.com>
17083 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
17084 type which turns out to be an incomplete and incorrect fix.
17085 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
17086 of the type is declared in a record (for determination of insertion
17088 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
17089 a private type and ensure that the primary entity is used for the type
17090 of the newly created function's V formal by taking the Etype of the
17093 2005-06-14 Javier Miranda <miranda@adacore.com>
17094 Jose Ruiz <ruiz@adacore.com>
17095 Robert Dewar <dewar@adacore.com>
17096 Ed Schonberg <schonberg@adacore.com>
17098 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
17099 that indicates if we are parsing a compilation unit found in a
17100 limited-with clause.
17101 It is use to avoid the circularity check.
17103 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
17104 we are parsing a compilation unit found in a limited-with clause. This
17105 is use to avoid the circularity check.
17107 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
17108 unit as a consequence of parsing a limited-with clause. This is used
17109 to avoid the circularity check.
17111 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
17112 (Analyze_Context): Limited-with clauses are now allowed
17113 in more compilation units.
17114 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
17115 againts previously reported critical errors in context clauses
17116 (Install_Limited_Withed_Unit): Code cleanup plus static detection
17117 of two further errors: renamed subprograms and renamed packages
17118 are not allowed in limited with clauses.
17119 (Install_Siblings): Do not install private_with_clauses on the package
17120 declaration for a non-private child unit.
17121 (Re_Install_Parents): When a parent of the subunit is reinstalled,
17122 reset visibility of child units properly.
17123 (Install_Withed_Unit): When a child unit appears in a with_clause of its
17124 parent, it is immediately visible.
17126 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17127 Emmanuel Briot <briot@adacore.com>
17129 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
17130 declared within an inlined body as referenced, to prevent spurious
17132 (Output_One_Ref): If an entity renames an array component, indicate in
17133 the ALI file that this aliases (renames) the array. Capture as well
17134 function renamings that rename predefined operations.
17135 Add information about generic parent for package and subprogram
17137 (Get_Type_Reference): For a subtype that is the renaming of an actual in
17138 an instantiation, use the first_subtype to ensure that we don't generate
17139 cross-reference information for internal types.
17140 For objects and parameters of a generic private type, retain the '*'
17141 indicator to distinguish such an entity from its type.
17143 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
17144 to store information about instantiated entities.
17146 * ali.adb (Scan_ALI): Add support for parsing the reference to the
17149 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
17150 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
17153 2005-06-10 Doug Rupp <rupp@adacore.com>
17154 Arnaud Charlet <charlet@adacore.com>
17155 Olivier Hainque <hainque@adacore.com>
17156 Jose Ruiz <ruiz@adacore.com>
17158 * Make-lang.in: Add initialize.o when needed.
17159 Remove obsolete references to RT_FLAGS.
17160 Add missing dependencies for sdefault.o
17162 * initialize.c: New file.
17164 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
17165 [VMS] cond_signal_table: Fix problem in declaration.
17166 [VMS] __gnat_error_handler: rewrite.
17167 Move all __gnat_initialize() routines to initialize.c
17168 Specialize the former "hpux" section to "hppa hpux", as this is what the
17169 section really is here for and we now have other hpux ports that need
17170 different contents.
17171 (__gnat_adjust_context_for_raise) i386-linux: First version of this
17172 function for this target. Adjust PC by one in the machine context. This
17173 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
17174 it is more reliable to do that in the signal handler itself.
17175 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
17176 flags, so that the handler is passed the context structure to adjust
17177 prior to the raise.
17178 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
17179 SA_SIGINFO sigaction should look like. Call
17180 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
17181 Machine_State_Operations stuff.
17182 Add conditional code so that the x86_64 is also supported.
17184 2005-06-14 Pascal Obry <obry@adacore.com>
17186 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
17189 2005-06-14 Robert Dewar <dewar@adacore.com>
17191 * opt.ads, opt.adb: New flags for persistent_bss mode
17192 Add Ada_Version_Explicit, for implementation of AI-362
17193 Add Assertions_Enabled_Config and associated handling
17194 Needed since setting can be changed with Assertion_Policy pragma
17195 Add new flag Warn_On_Ada_2005_Compatibility
17197 * switch-c.adb: Recognize -gnatwy/Y
17198 Set Ada_Version_Explicit, for implementation of AI-362
17199 The -gnatg switch now includes -gnatyu
17201 * usage.adb: Add -gnatwy/Y
17202 Remove wrong asterisk on -gnatwX line
17203 Add line for -gnatyu switch
17205 2005-06-14 Vincent Celier <celier@adacore.com>
17207 * osint.adb (Add_Default_Search_Dirs): Put source and object
17208 directories of project files before directories coming from
17209 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
17211 2005-06-14 Robert Dewar <dewar@adacore.com>
17214 * par-ch2.adb (Scan_Pragma_Argument): New procedure
17215 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
17217 2005-06-14 Vincent Celier <celier@adacore.com>
17219 * prep.adb (Preprocess): Ignore error when scanning the first token of
17222 2005-06-14 Vincent Celier <celier@adacore.com>
17224 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
17225 (Check_Stand_Alone_Library): If the specified reference symbol file does
17226 not exist, only issue a warning when the symbol policy is not
17227 Controlled. And, when symbol policy is Compliant, set the symbol
17228 policy to Autonomous.
17230 2005-06-14 Vincent Celier <celier@adacore.com>
17232 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
17233 when the project file in a with clause is not the last one, that is the
17234 project file name is followed by a comma.
17235 * prj-pp.adb: (First_With_In_List): New Boolean global variable
17236 (Print): Issue list of project files separated by commas in with clauses
17237 according to the values returned by Is_Not_Last_In_List.
17238 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
17239 (Set_Is_Not_Last_In_List): New procedure
17241 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
17243 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
17245 2005-06-14 Robert Dewar <dewar@adacore.com>
17247 * scng.adb: Add call to new Check_EOF routine
17248 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
17249 Add some comments regarding wide character handling
17251 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
17253 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
17255 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
17256 characters are now considered graphic characters and hence yield false
17259 * nmake.adt: Modify header so that xnmake does not generate output
17260 files with multiple blank lines.
17262 * treeprs.adt: Remove a blank line so that output from xtreeprs does
17263 not have an extra blank line
17265 2005-06-14 Gary Dismukes <dismukes@adacore.com>
17267 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
17268 expression when the component type is an anonymous access type to
17269 ensure that appropriate accessibility checks are done.
17271 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
17272 expression of an assignment when the target object is of an anonymous
17273 access type. This ensures that required accessibility checks are done.
17274 (One_Bound): Move the check for type Universal_Integer to
17276 (Process_Bounds): Check whether the type of the preanalyzed range is
17277 Universal_Integer, and in that case set Typ to Integer_Type prior
17278 to setting the type of the original range and the calls to One_Bound.
17280 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17282 * sem_case.adb (Expand_Others_Choice): Improve warning.
17284 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17286 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
17287 constraint of full view if present, when other type is discriminated.
17288 (Eval_Relational_Op): Recognize tests of pointer values against Null,
17289 when the pointer is known to be non-null, and emit appropriate warning.
17291 2005-06-14 Robert Dewar <dewar@adacore.com>
17292 Ed Schonberg <schonberg@adacore.com>
17295 * sem_prag.adb: Implement pragma Persistent_BSS
17296 Remove obsolete pragma Persistent_Data, Persistent_Object
17297 Set Ada_Version_Explicit, for implementation of AI-362
17298 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
17299 Add processing for pragma Pure_05 and Preelaborate_05
17300 Add processing for Assertion_Policy pragma
17301 Add pragma identifiers for Assert
17302 (Analyze_Pragma, case Assert): Check number of arguments
17303 (Process_Inline): Additional guard against an illegal program, where the
17304 argument of the pragma is undefined, and warnings on redundant
17305 constructs are enabled.
17306 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
17307 Ada_05 to this pragma, specifying that the pragma is only active in
17309 (Check_Arg_Order): New procedure
17310 Add appropriate calls to this procedure throughout
17311 Also throughout, check entity name before doing any other checks
17313 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
17314 Remove obsolete pragma Persistent_Data, Persistent_Object
17315 Add entries for pragma Pure_05 and Preelaborate_05
17316 Add entries for Assertion_Policy pragma and associated names
17317 Add some names for pragma argument processing
17319 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
17321 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17323 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
17324 appears within a negation (either from source or as a rewriting of
17325 inequality) adjust text of warning accordingly.
17327 2005-06-14 Thomas Quinot <quinot@adacore.com>
17329 * s-strxdr.adb: Follow AI95-00132
17331 2005-06-14 Arnaud Charlet <charlet@adacore.com>
17333 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
17335 2005-06-14 Arnaud Charlet <charlet@adacore.com>
17336 Jose Ruiz <ruiz@adacore.com>
17338 * s-tposen.adb, s-tpobop.adb
17339 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
17341 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
17342 there is no violation of the Max_Entry_Queue_Length restriction (if it
17343 has been set); Program_Error is raised otherwise.
17344 (Requeue_Call): Before requeuing the task on the target entry queue we
17345 check that there is no violation of the Max_Entry_Queue_Length
17346 restriction (if it has been set); Program_Error is raised otherwise.
17348 2005-06-14 Robert Dewar <dewar@adacore.com>
17350 * styleg.adb: Fix several remaining problems in -gnatyu switch
17351 Blank line count not reset at start
17352 Scanning outside source buffer in some cases
17353 Confusing message for blanks at end of file
17354 Non-empty blank lines not recognized
17356 * nmake.adt: Modify header so that xnmake does not generate output
17357 files with multiple blank lines.
17359 * treeprs.adt: Remove a blank line so that output from xtreeprs does
17360 not have an extra blank line
17362 2005-06-14 Sergey Rybin <rybin@adacore.com>
17364 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
17366 2005-06-14 Doug Rupp <rupp@adacore.com>
17367 Vincent Celier <celier@adacore.com>
17369 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
17372 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
17373 Remove "Library" command.
17374 Change keyword for style check -gnatyd from NOCRLF to
17376 Remove useless second style check keyword NONE
17377 Remove help documentation for inexistent style check keyword
17379 Add help documentation for style check keywords DOS_LINE_ENDINGS,
17380 UNNECESSARY_BLANK_LINES and XTRA_PARENS
17381 Add UNNECESSARY_BLANK_LINES for -gnatyu
17382 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
17384 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
17386 2005-06-14 Vincent Celier <celier@adacore.com>
17388 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
17389 gprmake was invoked with -d.
17390 (Compile_Sources): If -d was used, output the "completed ..." message
17391 for each compilation.
17392 (Scan_Arg): Recognize new switch -d
17393 When -c and at least one main is specified, set
17394 Unique_Compile to True to guarantee that no other sources will be
17397 2005-06-14 Matthew Heaney <heaney@adacore.com>
17399 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
17400 * a-swuwha.ads, a-swuwha.adb: New files
17402 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
17403 * a-szuzha.ads, a-szuzha.adb: New files.
17405 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
17406 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
17407 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
17408 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
17409 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
17410 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
17411 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
17412 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
17413 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
17414 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
17417 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
17418 Olivier Hainque <hainque@adacore.com>
17419 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17420 Pascal Obry <obry@adacore.com>
17422 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
17424 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
17425 making a temporary around a procedure call because of non-addressable
17427 (process_freeze_entity): If entity is a private type, capture size
17428 information that may have been computed for the full view.
17429 (tree_transform, case N_Allocator): If have initializing expression,
17430 check type for Has_Constrained_Partial_View and pass that to
17432 (tree_transform, case N_Return_Statement): Pass extra arg to
17435 * decl.c (annotate_value): Remove early return if -gnatR is not
17437 (gnat_to_gnu_field): Don't make a packable type for a component clause
17438 if the position is byte aligned, the field is aliased, and the clause
17439 size isn't a multiple of the packable alignment. It serves no useful
17440 purpose packing-wise and would be rejected later on.
17441 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
17444 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
17445 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
17447 (create_concat_name): Idem.
17449 2005-06-10 Robert Dewar <dewar@adacore.com>
17450 Eric Botcazou <ebotcazou@adacore.com>
17451 Ben Brosgol <brosgol@adacore.com>
17452 Cyrille Comar <comar@adacore.com>
17453 Sergey Rybin <rybin@adacore.com>
17454 Pascal Obry <obry@adacore.com>
17456 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
17457 Document second argument (Ada_05) of pragma Obsolescent
17458 Add note that call to subprogram marked with pragma Obsolescent
17459 is now considered to be a violation of program Restrictions
17460 (No_Obsolescent_Features).
17461 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
17462 that only machine-dependent attributes are supported.
17465 Commented out menu lines and empty section for gnatclean examples
17467 Fix some over long lines
17468 Clarify and enhance documentation of ADA_PROJECT_PATH.
17469 Rework section 2.11.2(3) about linking with a non-GNU compiler.
17470 Mention new switch -fcallgraph-info.
17471 Mention new switch -fstack-usage.
17472 For gnatpp, replace '-notab' with '-N' and add this option to Index
17473 Corrected VMS example.
17474 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
17476 Add documentation for -gnatyu switch (unnecessary blank lines)
17477 Document new switch -U for GNAT PRETTY and GNAT METRIC
17478 Add note about Stdcall being handled as C convention on non Windows OS.
17479 Remove some junk typo in description of gnatbind -S switch
17480 Remove reference to Extensions_Allowed pragma
17481 Document the new order of the directories to be searched (source and
17482 object directories of project files before directories in ADA_*_PATH
17483 environment variables.
17485 * g-trasym.ads: Document that IRIX is supported
17487 2005-06-10 Arnaud Charlet <charlet@adacore.com>
17489 * Makefile.in: Add initialize.o when needed.
17490 Adapt to new VMS package body Symbols and subunits
17491 No specialized version of a-sytaco is needed for VxWorks.
17493 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
17494 * a-zchara.ads, a-widcha.ads: New files.
17496 * system-hpux-ia64.ads: New file.
17498 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
17499 is imported from the VxWorks kernel.
17501 2005-06-14 Robert Dewar <dewar@adacore.com>
17503 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
17504 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
17505 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
17506 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
17507 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
17508 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
17509 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
17510 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
17511 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
17512 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
17513 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
17514 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
17516 2005-06-14 Thomas Quinot <quinot@adacore.com>
17518 * xeinfo.adb: Fix typo in comment
17520 2005-06-14 Javier Miranda <miranda@adacore.com>
17522 * repinfo.ads: Fix typo in comment
17524 2005-06-14 Gary Dismukes <dismukes@adacore.com>
17526 * s-finimp.adb (Parent_Tag): Delete this imported function (function
17527 Parent_Tag is now in the visible part of Ada.Tags).
17528 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
17529 using imported function.
17531 2005-06-14 Bernard Banner <banner@adacore.com>
17533 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
17534 also apply for handling support for VxSim 653.
17536 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
17538 * xsnames.adb: Add automatic generation of snames.h.
17540 2005-06-14 Thomas Quinot <quinot@adacore.com>
17542 * gen-soccon.c: Add IP_MULTICAST_IF constant
17543 Minor reformatting and adjustments to prevent warnings.
17545 2005-06-14 Pascal Obry <obry@adacore.com>
17547 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
17549 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
17551 * trans.c (gnat_gimplify_expr): Call
17552 recompute_tree_invarant_for_addr_expr when we change
17553 the operand of the ADDR_EXPR.
17555 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17557 * misc.c: Don't include errors.h.
17559 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17561 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
17563 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
17565 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
17567 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
17569 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
17572 * Makefile.in: Make TGT_LIB behave correctly.
17574 2005-04-23 DJ Delorie <dj@redhat.com>
17576 * misc.c: Adjust warning() callers.
17578 2005-04-16 Laurent GUERBY <laurent@guerby.net>
17581 * a-nudira.adb (Value): Check for valid string.
17582 * a-nuflra.adb (Value): Likewise.
17584 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
17586 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
17588 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
17590 * adaint.c, init.c, tracebak.c: Fix comment typos.
17591 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
17593 2005-04-07 Laurent GUERBY <laurent@guerby.net>
17594 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17596 * Makefile.in: Add make ifeq define for hppa linux tasking support.
17597 * system-hpux.ads: Define Signed_Zeros to be True.
17598 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
17600 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
17602 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
17603 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
17606 2005-03-30 Tom Tromey <tromey@redhat.com>
17608 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
17610 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17612 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
17614 2005-03-29 Robert Dewar <dewar@adacore.com>
17616 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
17617 fixed-point expression has value that is not a multiple of the Small
17620 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
17622 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
17625 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
17627 2005-03-29 Vincent Celier <celier@adacore.com>
17629 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
17630 (Build_Dynamic_Library.Version_String): Return the empty string when
17631 Lib_Version is empty or when the symbol policy is not Autonomous.
17633 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
17634 a symbol is not in the reference symbol file, increase the Major ID
17635 and set the Minor ID to 0.
17636 Use gsmatch=lequal instead of gsmatch=equal
17638 2005-03-29 Doug Rupp <rupp@adacore.com>
17640 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
17641 name and translate.
17643 2005-03-29 Javier Miranda <miranda@adacore.com>
17645 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
17646 (Inherit_DT): The first formal has been redefined as a Tag.
17647 This allows us the removal of the subprogram Get_TSD.
17648 (TSD): Replace the call to Get_TSD by the actual code.
17650 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
17651 (Make_DT): Upgrade the call to Inherit_TSD according to the
17652 new interface: the first formal is now a Tag.
17654 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
17655 redefined as a Tag.
17656 This change allows us to remove the subprogram Get_TSD.
17657 (CPP_Get_TSD): Subprogram removed.
17658 (TSD): Replace the call to CPP_Get_TSD by the actual code.
17660 * rtsfind.ads: Remove support to call the run-time
17663 2005-03-29 Robert Dewar <dewar@adacore.com>
17665 * errutil.adb, errout.adb:
17666 Minor comment updates on Line_Terminator references
17668 * par-ch10.adb: Add ??? comment about line terminator
17670 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
17671 (check dos line terminator).
17672 (Check_Line_Max_Length): New procedure, split off from the existing
17673 Check_Line_Terminator routine. Separating this out allows -gnatyf to
17674 be properly recognized.
17676 * styleg.adb: Add ??? comment for line terminator reference
17678 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
17679 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
17681 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
17682 (check dos line terminator).
17683 (Check_Line_Max_Length): New procedure, split off from the existing
17684 Check_Line_Terminator routine. Separating this out allows -gnatyf to
17685 be properly recognized.
17687 * stylesw.ads, stylesw.adb:
17688 Add handling for new -gnatyd switch (check dos line terminator)
17690 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
17691 Recognize -gnatwb/-gnatwB switches
17692 Include Warn_On_Bad_Fixed_Value for -gnatg
17695 Add line for new -gnatyd switch (check dos line terminator)
17697 * usage.adb: Add lines for -gnatwb/-gnatwB
17699 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
17701 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
17703 * gnat_ugn.texi: Fix overlong lines
17704 Document new -gnatyd switch
17705 Document new -gnatwb/-gnatwB switches
17707 2005-03-29 Ed Schonberg <schonberg@adacore.com>
17709 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
17710 order to retrieve the component list of the type, before examining
17711 individual components.
17713 * sem_type.adb (Covers): Types are compatible if one is the base type
17714 of the other, even though their base types might differ when private
17715 views are involved.
17717 2005-03-29 Thomas Quinot <quinot@adacore.com>
17719 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
17720 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
17721 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
17722 analyzed if expansion is disabled (which could otherwise cause spurious
17723 error messages if expansion has been disabled due to previous
17724 (unrelated) errors).
17726 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
17727 is disabled, the entity denoted by the argument is the access type
17728 itself, not an underlying record type, so there is no need to go back
17729 to the Corresponding_Remote_Type.
17731 2005-03-29 Gary Dismukes <dismukes@adacore.com>
17732 Robert Dewar <dewar@adacore.com>
17734 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
17735 expand a call to an instance of
17736 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
17737 Constructor actual of the instance. A class-wide membership
17738 check is also generated, to ensure that the tag passed to the instance
17739 denotes a type in the class.
17740 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
17741 of Name_Generic_Dispatching_Constructor.
17743 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
17744 05 unit for AI-260-02).
17746 * a-tgdico.ads: New file.
17748 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
17749 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
17751 * snames.ads, snames.adb (Preset_Names): Add entry for
17752 Generic_Dispatching_Constructor.
17755 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
17756 character type cases.
17757 (Analyze_Subprogram_Renaming): Add special handling for
17758 the case of renaming of stream attributes when the renaming denotes a
17759 generic formal subprogram association for an abstract formal subprogram.
17760 Check that the attribute is a primitive stream attribute (and not
17761 a class-wide stream attribute) and then rewrite the attribute name
17762 as the name of the appropriate compiler-generated stream primitive.
17764 2005-03-29 Robert Dewar <dewar@adacore.com>
17766 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
17768 (Is_Possibly_Unaligned_Object): Correct typo that
17769 resulted in inaccurate result for unaligned scalars within records.
17771 2005-03-29 Ed Schonberg <schonberg@adacore.com>
17773 * freeze.adb (Freeze_Record_Type): If the type of the component is an
17774 itype whose parent is controlled and not yet frozen, do not create a
17775 freeze node for the itype if expansion is disabled.
17777 2005-03-29 Vincent Celier <celier@adacore.com>
17779 * make.adb (Gnatmake): Don't fail if the main project file is declared
17780 as having no Ada sources. Do not display message "no sources to
17781 compile" in quiet output.
17783 2005-03-29 Doug Rupp <rupp@adacore.com>
17785 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
17788 2005-03-29 Robert Dewar <dewar@adacore.com>
17790 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
17793 2005-03-29 Robert Dewar <dewar@adacore.com>
17795 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
17796 missing TYPE Improve the error message generated when compiling a
17797 limited interface in Ada83 or Ada95 mode.
17799 2005-03-29 Robert Dewar <dewar@adacore.com>
17801 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
17802 rather than proceed ahead using a junk attribute name.
17804 2005-03-29 Vincent Celier <celier@adacore.com>
17806 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
17808 * prj-part.adb (Parse_Single_Project): Set the location of a project
17809 on its defining identifier, rather than on the reserved word "project".
17811 * prj-proc.adb (Expression): Adapt to the fact that default of external
17812 references may be string expressions, not always literal strings.
17813 (Recursive_Process): Set Display_Name equal to Name
17814 when Location is No_Location, that is when there is no actual file.
17815 Get the Display_Name of the project from the source, when it is not a
17817 (Process): Use the Display_Name in error messages
17819 * prj-strt.adb (External_Reference): Allow default to be string
17820 expressions, not only literal strings.
17822 2005-03-29 Vincent Celier <celier@adacore.com>
17824 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
17825 file and the reference symbol file to be the same file.
17827 2005-03-29 Thomas Quinot <quinot@adacore.com>
17829 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
17830 forbid conversion of a local access-to-subprogram type to a remote one.
17832 * sem_util.adb (Wrong_Type): For a record type that is the expanded
17833 equivalent type for a remote access-to-subprogram type, go back to the
17834 original RAS entity when displaying an error message, so the casing is
17835 the original source casing.
17837 2005-03-29 Robert Dewar <dewar@adacore.com>
17839 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
17842 2005-03-29 Ed Schonberg <schonberg@adacore.com>
17844 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
17845 subtype if code is being pre-analyzed, to prevent un-expanded
17846 references to protected formals, among others.
17847 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
17848 interpretation that can be a call, include the result of the call as a
17849 possible interpretation of the dereference.
17851 * sem_ch5.adb (Process_Bounds): Determine type of range by
17852 pre-analyzing a copy of the original range, and then analyze the range
17853 with the expected type.
17855 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
17856 with an overloaded prefix where not all interpretations yield an
17857 access to subprogram, do not rewrite node as a call.
17858 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
17859 the node as a call once the context identifies the interpretation of
17860 the prefix whose call yields the context type.
17861 (Valid_Conversion): For the case of a conversion between
17862 local access-to-subprogram types, check subtype conformance using
17863 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
17864 detailed error message.
17866 2005-03-29 Ed Schonberg <schonberg@adacore.com>
17868 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
17869 indicator, indicate that the formal can never be null.
17870 (Process_Formals): If a formal has a non_null indicator, insert the
17871 resulting subtype immediately before the enclosing subprogram decl,
17872 and not at the beginning of the corresponding declarative part, to
17873 prevent access before elaboration (Ada2005).
17875 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17878 * utils.c (finish_record_type): Use variable_size when setting sizes.
17880 2005-03-29 Robert Dewar <dewar@adacore.com>
17882 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
17883 guarantee Unix style line terminators for the output files, even when
17884 running on windows.
17886 2005-03-29 Robert Dewar <dewar@adacore.com>
17888 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
17889 buffer if an exception is raised.
17891 2005-03-29 Ed Falis <falis@adacore.com>
17893 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
17896 2005-03-29 Robert Dewar <dewar@adacore.com>
17898 * sem_util.ads: Minor reformatting
17899 * gnat_rm.texi: Minor editing.
17901 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
17903 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
17904 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
17906 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17908 * adaint.c (__gnat_portable_spawn): Adjust cast.
17910 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
17912 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
17914 2005-03-17 Pascal Obry <obry@adacore.com>
17916 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
17919 * expect.c (__gnat_waitpid): Moved here from adaint.c.
17920 Reimplement under Win32 using Win32 API.
17922 (__gnat_kill) [Win32]: Properly close the process handle before leaving
17925 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
17927 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
17928 (DECL_RENAMED_OBJECT): New accessor macro.
17929 (SET_DECL_RENAMED_OBJECT): New setter macro.
17931 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
17932 object in all cases. Attach the renamed object to the VAR_DECL.
17933 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
17934 field is not prescribed.
17936 * misc.c (gnat_handle_option): Handle -gnatO separately.
17937 (gnat_print_decl) <VAR_DECL>: New case.
17938 Print the DECL_RENAMED_OBJECT node.
17940 * lang.opt: Declare separate -gnatO option.
17942 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
17943 pointer, replace it with the renamed object.
17944 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
17945 pointer type if the source is not a fat pointer type whose underlying
17946 array has the same non-zero alias set as that of the destination array.
17948 2005-03-17 Javier Miranda <miranda@adacore.com>
17950 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
17951 (Get_Inheritance_Depth): Removed.
17952 (Set_Inheritance_Depth): Removed.
17954 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
17955 subprogram Get_Expanded_Name because it is not referenced by the
17958 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
17959 (CPP_Get_Inheritance_Depth): Removed.
17960 (CPP_Set_Inheritance_Depth): Removed.
17962 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
17964 2005-03-17 Robert Dewar <dewar@adacore.com>
17966 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
17967 3, since we now expect GCC 3 to do all the work.
17969 2005-03-17 Javier Miranda <miranda@adacore.com>
17971 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
17972 of one barrier to avoid wrong usage of this attribute.
17974 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
17975 First_Private_Entity.
17977 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
17978 the subprogram against wrong usage.
17979 Adapt the code to traverse the entities in the
17980 scope of a record_type because in addition to its usage regarding
17981 packages, this subprogram is also called by Expand_N_Freeze_Entity
17982 to install the visible declarations of the enclosing scope of a
17983 record_type_with_private to establish the proper visibility before
17984 freezing the entity and related subprograms.
17986 2005-03-17 Ed Schonberg <schonberg@adacore.com>
17988 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
17991 2005-03-17 Thomas Quinot <quinot@adacore.com>
17993 * exp_ch3.adb (Check_Attr): New subprogram.
17994 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
17995 into a new Check_Attr subprogram, in order to provide a more
17996 explanatory error message (including the name of the missing attribute).
17997 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
17998 subprogram determines whether a default implementation exists for a
17999 given stream attribute.
18000 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
18001 Determine whether to generate a default implementation for each stream
18002 attribute separately, as this depends on the specific attribute.
18004 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
18005 limited extension where a stream attribute is missing for a limited
18006 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
18007 generate a bogus reference to the missing attribute to prevent
18008 cascaded errors. Instead, generate a null statement.
18010 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
18011 available for a limited type if it has been specified for an ancestor
18014 2005-03-17 Ed Schonberg <schonberg@adacore.com>
18016 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
18017 entity is an operator.
18019 2005-03-17 Thomas Quinot <quinot@adacore.com>
18021 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
18022 spec, to make this predicate available to other units.
18024 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
18027 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
18028 when no distribution runtime library is available.
18030 * sem_res.adb, sem_dist.adb: Disable expansion of remote
18031 access-to-subprogram types when no distribution runtime library is
18033 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
18034 predicate available to other units.
18036 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
18037 spec, to make this predicate available to other units.
18039 2005-03-17 Vincent Celier <celier@adacore.com>
18041 * make.adb (Insert_Project_Sources): Make sure the Q is always
18044 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
18045 the default for the tree, not the global default naming.
18047 * prj-proc.adb (Recursive_Process): No need to put the default naming
18048 in the project data, it's already there.
18050 2005-03-17 Doug Rupp <rupp@adacore.com>
18052 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
18054 * 5xcrtl.ads: Renamed to...
18055 * s-crtl-vms64.ads: ...this new file
18057 2005-03-17 Robert Dewar <dewar@adacore.com>
18060 * namet.adb (Copy_One_Character): Set proper wide character encoding
18061 for upper half character if we have upper half encoding.
18063 2005-03-17 Robert Dewar <dewar@adacore.com>
18065 * par.adb (Par): Improved msg for attempt to recompile predefined unit
18067 2005-03-17 Thomas Quinot <quinot@adacore.com>
18069 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
18070 tagged limited type, the TSS is a newly built renaming declaration:
18071 insert it using Set_TSS, not Copy_TSS.
18073 2005-03-17 Javier Miranda <miranda@adacore.com>
18075 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
18076 Try_Object_Operation): Analyze the object that is accessible
18077 through the prefix of the subprogram call before we apply
18078 the transformation of the object-operation notation.
18080 2005-03-17 Jose Ruiz <ruiz@adacore.com>
18082 * s-taprob.adb (Initialize_Protection): Initialize the protected
18083 object's owner to Null_Task.
18084 (Lock): If pragma Detect_Blocking is in effect and the caller of this
18085 procedure is already the protected object's owner then Program_Error
18086 is raised. In addition the protected object's owner is updated.
18087 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
18088 of this procedure is already the protected object's owner then
18089 Program_Error is raised.
18090 In addition the protected object's owner is updated.
18091 (Unlock): Remove the ownership of the protected object.
18093 * s-taprob.ads (Protection): Add the field Owner, used to store the
18094 protected object's owner.
18095 This component is needed for detecting one type of potentially blocking
18096 operations (external calls on a protected subprogram with the same
18097 target object as that of the protected action). Document the rest of
18100 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
18101 Initialize the protected object's owner to Null_Task.
18102 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
18103 caller of this procedure is already the protected object's owner then
18104 Program_Error is raised.
18105 Do not raise Program_Error when this procedure is called from a
18107 (Unlock_Entries): Remove the ownership of the protected object.
18108 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
18109 of this procedure is already the protected object's owner then
18110 Program_Error is raised.
18111 Do not raise Program_Error when this procedure is called from
18112 a protected action.
18114 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
18115 used to store the protected object's owner.
18117 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
18118 effect and this procedure (a potentially blocking operation) is called
18119 from whithin a protected action, Program_Error is raised.
18120 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
18121 and this procedure (a potentially blocking operation) is called from
18122 whithin a protected action, Program_Error is raised.
18124 2005-03-17 Vincent Celier <celier@adacore.com>
18125 Nicolas Setton <setton@adacore.com>
18127 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
18128 switch, not supported by the linker on Darwin. Add '_' before
18129 <library>init, as this character is added unconditionally by the
18131 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
18132 correct one ".dylib". This fixes detection of the archive files when
18133 building library projects.
18135 2005-03-17 Vincent Celier <celier@adacore.com>
18137 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
18138 -gnat83, -gnat95 and -gnat05.
18140 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
18142 * gnat_ugn.texi: Document gnatmem restriction
18144 2005-03-17 Thomas Quinot <quinot@adacore.com>
18146 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
18149 2005-03-17 Robert Dewar <dewar@adacore.com>
18151 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
18152 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
18153 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
18155 * casing.adb: Comment improvements
18157 2005-03-17 Pascal Obry <obry@adacore.com>
18159 * g-expect.adb: Minor reformatting.
18161 2005-03-15 Zack Weinberg <zack@codesourcery.com>
18163 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
18164 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
18167 2005-03-15 Vincent Celier <celier@adacore.com>
18169 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
18170 Add new parameter In_Tree to specify the project tree: needed
18171 by the project manager. Adapt to changes in project manager
18172 using new parameter In_Tree.
18174 2005-03-15 Jakub Jelinek <jakub@redhat.com>
18176 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
18177 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
18178 ada/bldtools to avoid make -jN failures.
18180 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18182 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
18183 to NULL_TREE on entry.
18185 2005-03-15 Robert Dewar <dewar@adacore.com>
18187 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
18188 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
18189 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
18190 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
18191 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
18192 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
18193 system-interix.ads, system-solaris-sparc.ads,
18194 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
18195 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
18196 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
18197 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
18198 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
18199 Compiler_System_Version to be False.
18201 * opt.ads: Add new flag Opt.Address_Is_Private
18203 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
18204 Add new parameter Compiler_System_Version to avoid checking for
18205 completeness of parameters when compiler is compiling itself.
18206 Allows old versions of GNAT to be compiled with new compiler.
18208 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18210 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
18211 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
18213 (Stack_Base_Available): New flag.
18214 (Get_Page_Size): New overloaded functions imported from C.
18215 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
18216 PROT_ON, PROT_OFF): New constants.
18217 (mprotect): New function imported from C.
18218 (pthread_teb_t): New record type.
18220 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
18221 (Create_Task): Account for the Yellow Zone and the guard page.
18223 2005-03-15 Vincent Celier <celier@adacore.com>
18225 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
18226 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
18227 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
18228 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
18229 Library_File_Name_For): Add new parameter In_Tree
18230 to specify the project tree: needed by the project manager.
18231 Adapt to changes in project manager using new parameter In_Tree.
18232 Remove local imports, use functions in System.CRTL.
18234 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
18235 to use the project manager.
18237 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
18238 In_Tree to designate the project tree. Adapt to changes in the project
18239 manager, using In_Tree.
18241 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
18242 Copy_Interface_Sources): Add new parameter In_Tree to specify the
18243 project tree: needed by the project manager.
18244 (Build_Library): Check that Arg'Length >= 6 before checking if it
18245 contains "--RTS=...".
18247 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
18248 Library_File_Name_For): Add new parameter In_Tree to specify the
18249 project tree: needed by the project manager.
18251 * prj.ads, prj.adb: Major modifications to allow several project trees
18252 in memory at the same time.
18253 Change tables to dynamic tables and hash tables to dynamic hash
18254 tables. Move tables and hash tables from Prj.Com (in the visible part)
18255 and Prj.Env (in the private part). Move some constants from the visible
18256 part to the private part. Make other constants deferred.
18257 (Project_Empty): Make it a variable, not a function
18258 (Empty_Project): Add parameter Tree. Returns the data with the default
18259 naming data of the project tree Tree.
18260 (Initialize): After updating Std_Naming_Data, copy its value to the
18261 component Naming of Project Empty.
18262 (Register_Default_Naming_Scheme): Use and update the default naming
18263 component of the project tree, instead of the global variable
18265 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
18266 Tree is not defaulted, return the default naming data of the Tree.
18267 (Initial_Buffer_Size): Constant moved from private part
18268 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
18269 variables initialized in procedure Initialize.
18270 (Add_To_Buffer): Add two in out parameters to replace global variables
18271 Buffer and Buffer_Last.
18272 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
18274 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
18276 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
18277 for the project tree.
18278 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
18279 constant at the beginning of the package spec, so that they cane be used
18280 in subprograms before their full declarations.
18281 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
18282 (Empty_Project): Add parameter of type Project_Node_Ref
18283 (Private_Project_Tree_Data): Add component Default_Naming of type
18285 (Buffer, Buffer_Last): remove global variables
18286 (Add_To_Buffer): Add two in out parameters to replace global variables
18287 Buffer and Buffer_Last.
18288 (Current_Packages_To_Check): Remove global variable
18289 (Empty_Name): Move to private part
18290 (No-Symbols): Make it a constant
18291 (Private_Project_Tree_Data): New type for the private part of the
18293 (Project_Tree_Data): New type for the data of a project tree
18294 (Project_Tree_Ref): New type to designate a project tree
18295 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
18296 for the project tree.
18298 * prj-attr.ads: Add with Table; needed, as package Prj no longer
18299 imports package Table.
18301 * prj-com.adb: Remove empty, no longer needed body
18303 * prj-com.ads: Move most of the content of this package to package Prj.
18305 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
18306 designate the project node tree and Packages_To_Check to replace
18307 global variable Current_Packages_To_Check.
18308 Add new parameters In_Tree and Packages_To_Check to local subprograms,
18309 when needed. Adapt to changes in project manager with project node tree
18312 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
18313 project tree to most subprograms. Move tables and hash tables to
18314 private part of package Prj.
18315 Adapt to changes in project manager using project tree In_Tree.
18317 * prj-makr.adb (Tree): New constant to designate the project node tree
18318 Adapt to change in project manager using project node tree Tree
18320 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
18321 display the Library_Src_Dir and the Library_Dir.
18322 Add new parameter In_Tree to designate the project node tree to most
18323 subprograms. Adapt to changes in the project manager, using project tree
18325 (Check_Naming_Scheme): Do not alter the casing on platforms where
18326 the casing of file names is not significant.
18327 (Check): Add new parameter In_Tree to designate the
18329 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
18330 designate the project tree.
18331 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
18333 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
18334 to replace those that were in the private part of package Prj.
18335 Add new parameter In__Tree to designate the project node tree to most
18336 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
18337 (Post_Parse_Context_Clause): When specifying the project node of a with
18338 clause, indicate that it is a limited with only if there is "limited"
18339 in the with clause, not necessarily when In_Limited is True.
18340 (Parse): Add new parameter In_Tree to designate the project node tree
18342 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
18343 designate the project node tree. Adapt to change in Prj.Tree with
18344 project node tree In_Tree.
18346 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
18347 tree In_Tree in the call to function Empty_Process to give its initial
18348 value to the project data Processed_Data.
18349 Add new parameters In_Tree to designate the project tree and
18350 From_Project_Node_Tree to designate the project node tree to several
18351 subprograms. Adapt to change in project manager with project tree
18352 In_Tree and project node tree From_Project_Node_Tree.
18354 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
18355 to replace those that were in the private part of package Prj.
18356 Add new parameter In_Tree to designate the project node tree to most
18357 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
18359 * prj-tree.ads, prj-tree.adb: Add new parameter of type
18360 Project_Node_Tree_Ref to most subprograms.
18361 Use this new parameter to store project nodes in the designated project
18363 (Project_Node_Tree_Ref): New type to designate a project node tree
18364 (Tree_Private_Part): Change table to dynamic table and hash tables to
18365 dynamic hash tables.
18367 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
18368 the project tree to most subprograms. Adapt to changes in project
18369 manager using project tree In_Tree.
18371 * makegpr.adb (Project_Tree): New constant needed to use project
18374 2005-03-15 Olivier Hainque <hainque@adacore.com>
18376 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
18377 for sigactions with SA_SIGINFO set. Call
18378 __gnat_adjust_context_for_raise before raising, to perform the
18379 potentially required adjustments to the machine context for the GCC
18382 * raise.h (__gnat_adjust_context_for_raise): New prototype.
18384 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
18385 Adjust PC by one in the provided machine context.
18386 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
18387 so that the handler is passed the context structure to adjust prior to
18389 (__gnat_error_handler) HPUX: Adjust the signature to match what an
18390 SA_SIGINFO sigaction should look like. Call
18391 __gnat_adjust_context_for_raise before actually raising.
18392 (__gnat_adjust_context_for_raise): Default noop to help PC
18393 adjustments before raise from signal handlers.
18394 (__gnat_error_handler): Indirectly call a predicate function to
18395 determine if a condition should be resignaled or not.
18396 (__gnat_set_resignal_predicate): User interface to modify the predicate.
18397 (__gnat_default_resignal_p): Default GNAT predicate.
18399 2005-03-15 Doug Rupp <rupp@adacore.com>
18401 * adaint.c: Prefix #include of VMS system header files with vms/
18402 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
18403 Do not define a dummy function "convert_addresses" under Darwin,
18406 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
18409 2005-03-15 Nicolas Setton <setton@adacore.com>
18411 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
18414 2005-03-15 Robert Dewar <dewar@adacore.com>
18416 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
18419 * a-retide.ads: Minor comment changes
18421 2005-03-15 Robert Dewar <dewar@adacore.com>
18423 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
18424 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
18425 Realloc_For_Chunk to private part of package.
18426 New subprograms for AI-301
18428 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
18429 Get_Line procedure.
18430 Avoid unnecessary use of Get/Set_Wide_String
18432 2005-03-15 Robert Dewar <dewar@adacore.com>
18435 * a-stunau.ads, a-stunau.adb:
18436 Change interface to allow efficient (and correct) implementation
18437 The previous changes to allow extra space in unbounded strings had
18438 left this interface a bit broken.
18440 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
18442 * g-spipat.ads, g-spipat.adb: New interface for Get_String
18443 Minor reformatting (function specs)
18445 * g-spitbo.adb: New interface for Get_String
18447 * g-spitbo.ads: Minor reformatting
18449 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
18451 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
18453 2005-03-15 Javier Miranda <miranda@adacore.com>
18454 Robert Dewar <dewar@adacore.com>
18455 Thomas Quinot <quinot@adacore.com>
18456 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18458 * atree.ads, atree.adb: Add support for Elist24 field
18460 * atree.h: Fix wrong definition of Field27
18461 Add support for Elist16 field
18462 Add support for Elist24 field
18464 * einfo.ads, einfo.adb (Abstract_Interfaces,
18465 Set_Abstract_Interfaces): New subprograms.
18466 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
18468 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
18469 entities rather than a single node.
18470 (Is_Interface, Set_Is_Interface): New subprogram
18471 (First_Tag_Component): New syntesized attribute
18472 (Next_Tag_Component): New synthesized attribute
18473 (Write_Entity_Flags): Upgraded to write Is_Interface
18474 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
18475 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
18476 (Task_Body_Procedure): New subprogram to read this attribute.
18477 (Set_Task_Body_Procedure): New subprogram to set this attribute.
18478 (Has_Controlled_Component): Now applies to all entities.
18479 This is only a documentation change, since it always worked to apply
18480 this to other than composite types (yielding false), but now this is
18482 Update documentation on Must_Be_Byte_Aligned for new spec
18484 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
18485 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
18486 uses of the Access_Disp_Table attribute to reference the first dispatch
18487 table associated with a tagged type. As
18488 part of the implementation of abstract interface types,
18489 Access_Disp_Table has been redefined to contain a list of dispatch
18490 tables (rather than a single dispatch table).
18491 Similarly, upgrade all the references to Tag_Component by the
18492 new attribute First_Tag_Component.
18493 (Find_Inherited_TSS): Moved to exp_tss.
18494 Clean up test in Expand_N_Object_Declaration for cases
18495 where we need to do a separate assignment of the initial value.
18496 (Expand_N_Object_Declaration): If the expression in the
18497 declaration of a tagged type is an aggregate, no need to generate an
18498 additional tag assignment.
18499 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
18501 Bit packed array ops are only called if operands are known to be
18503 (Component_Equality): When returning an N_Raise_Program_Error statement,
18504 ensure that its Etype is set to Empty to avoid confusing GIGI (which
18505 expects that only expressions have a bona fide type).
18506 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
18507 determine the amount of data to be copied.
18509 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
18510 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
18511 INTERFACE_TYPE_DEFINITION ::=
18512 [limited | task | protected | synchronized] interface
18513 [AND interface_list]
18515 * par-ch3.adb (P_Type_Declaration): Modified to give support to
18517 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
18519 (P_Interface_Type_Definition): New subprogram that parses the new
18520 syntax rule of Ada 2005 interfaces
18521 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
18522 messages by the correct RENAMES (quotes removed).
18524 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
18525 attribute First_Tag_Component.
18527 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
18528 (Interface_List, Set_Interface_List): New subprograms.
18529 (Interface_Present, Set_Interface_Present): New subprograms.
18530 (Limited_Present, Set_Limited_Present): Available also in derived
18531 type definition nodes.
18532 (Protected_Present, Set_Protected_Present): Available also in
18533 record type definition and
18534 derived type definition nodes.
18535 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
18536 (Task_Present, Set_Task_Present): New subprogram.
18537 (Task_Body_Procedure): Removed.
18538 (Set_Task_Body_Procedure): Removed.
18539 These subprogram have been removed because the attribute
18540 Task_Body_Procedure has been moved to the corresponding task type
18541 or task subtype entity to leave a field free to store the list
18542 of interfaces implemented by a task (for AI-345)
18543 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
18544 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
18545 expression flag Do_Range_Check
18546 (Exception_Junk): Change to Flag7 to accomodate above change
18547 (Box_Present, Default_Name, Specification, Set_Box_Present,
18548 Set_Default_Name, Set_Specification): Expand the expression
18549 "X in N_Formal_Subprogram_Declaration" into the corresponding
18550 two comparisons. Required to use the csinfo tool.
18552 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
18553 "with string" given.
18555 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
18558 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
18561 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
18562 attribute Task_Body_Procedure rather than the old semantic field that
18563 was available in the task_type_declaration node.
18565 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
18566 interface type definitions.
18567 (P_Formal_Derived_Type_Definition): Modified to handle the list of
18570 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
18571 task type declaration.
18572 (P_Protected): Modified to handle the list of interfaces in a
18573 protected type declaration.
18575 2005-03-15 Doug Rupp <rupp@adacore.com>
18576 Vincent Celier <celier@adacore.com>
18578 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
18579 (Gen_Output_File_C): Likewise.
18580 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
18582 2005-03-15 Thomas Quinot <quinot@adacore.com>
18584 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
18585 is an N_Raise_Constraint_Error node, create a new copy of it without
18586 going through a call to Duplicate_Subexpr.
18588 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18589 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18590 Nicolas Setton <setton@adacore.com>
18591 Ed Schonberg <schonberg@adacore.com>
18597 * decl.c (gnat_to_gnu_field): Reject aliased components with a
18598 representation clause that prescribes a size not equal to the rounded
18599 size of their types.
18600 (gnat_to_gnu_entity, case E_Component): Always look at
18601 Original_Record_Component if Present and not the entity.
18602 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
18603 of tagged extension types by not making field for components that are
18605 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
18606 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
18607 expression to the type of the object when the object is constant.
18608 Reverse defer_debug_incomplete_list before traversing it, so that trees
18609 are processed in the order at which they were added to the list. This
18610 order is important when using the stabs debug format.
18611 If we are deferring the output of debug information, also defer this
18612 output for a function return type.
18613 When adding fields to a record, prevent emitting debug information
18614 for incomplete records, emit the information only when the record is
18616 (components_to_record): New parameter defer_debug.
18617 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
18618 (gnat_to_gnu_field_decl): New function.
18619 (substitution_list, annotate_rep): Call it.
18620 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
18621 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
18622 No longer update discriminants to not be a COMPONENT_REF.
18623 (copy_alias_set): Strip padding from input type; also handle
18624 unconstrained arrays properly.
18626 * gigi.h (write_record_type_debug_info): New function.
18627 Convert to use ANSI-style prototypes. Remove unused
18628 declarations for emit_stack_check, elab_all_gnat and
18629 set_second_error_entity.
18630 (gnat_to_gnu_field_decl): New decl.
18632 * utils.c (write_record_type_debug_info): New function.
18633 (finish_record_type): Delegate generation of debug information to
18634 write_record_type_debug_info.
18635 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
18636 (update_pointer_to): Fix pasto.
18637 (convert) <UNION_TYPE>: Accept slight type variations when
18638 converting to an unchecked union type.
18640 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
18641 replace the N_Freeze_Entity with a null statement.
18643 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
18644 within a constrained subcomponent of an enclosing record, place the
18645 freeze nodes in the scope stack entry for the enclosing record.
18646 (Undelay_Type): New Subprogram.
18647 (Set_Small_Size): Pass T, the type to modify; all callers changed.
18648 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
18649 within records; allow them to have freeze nodes if their base types
18652 * exp_util.adb (Remove_Side_Effects): Properly test for
18653 Expansion_Delayed and handle case when it's inside an
18654 N_Qualified_Expression.
18656 * sem_ch3.adb (Derived_Type_Declaration): New predicate
18657 Comes_From_Generic, to recognize accurately that the parent type in a
18658 derived type declaration can be traced back to a formal type, because
18659 it is one or is derived from one, or because its completion is derived
18661 (Constrain_Component_Type): If component comes from source and has no
18662 explicit constraint, no need to constrain in in a subtype of the
18664 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
18665 Minor change to propagate Is_Ada_2005 flag
18667 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
18668 Expansion_Delayed is False.
18669 (assoc_to_constructor): Ignore fields that have a
18670 Corresponding_Discriminant.
18671 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
18672 function returns "by target", dereference the target pointer using the
18673 type of the actual return value.
18674 <all>: Be prepared for a null gnu_result.
18675 (processed_inline_subprograms): Check flag_really_no_inline
18676 instead of flag_no_inline.
18677 (set_second_error_entity): Remove unused function.
18678 (gnat_to_gnu, case N_Selected_Component): Call
18679 gnat_to_gnu_field_decl.
18680 (assoc_to_constructor): Likewise.
18682 2005-03-15 Robert Dewar <dewar@adacore.com>
18683 Ed Schonberg <schonberg@adacore.com>
18684 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18686 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
18687 Must_Be_Byte_Aligned for cases where we do not need to use a
18688 System.Pack_nn unit.
18690 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
18692 Needed now that we do some processing for IN parameters as well. This
18693 may well fix some unrelated errors.
18694 (Expand_Call): Handle case of unaligned objects (in particular those
18695 that come from packed arrays).
18696 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
18697 renamed entity is an inherited operation, re-expand the call using the
18698 original operation, which is the one to call.
18699 Detect attempt to inline parameterless recursive subprogram.
18700 (Represented_As_Scalar): Fix to work properly with private types
18701 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
18702 accurate estimate. Yields True in far fewer cases than before,
18703 improving the quality of code that depends on this test.
18705 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
18706 over both visible and private declarations to remove them from tree,
18707 and mark subprograms declared in package as eliminated, to prevent
18708 spurious use in subsequent compilation of generic units in the context.
18710 * exp_util.ads: Minor cleanup in variable names
18712 * sem_eval.ads, sem_eval.adb: Minor reformatting
18713 (Compile_Time_Known_Bounds): New function
18715 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18717 * exp_ch7.adb (Convert_View): Use base types of underlying types when
18718 determining whether an unchecked conversion is needed for the argument
18719 of an initialization call.
18721 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18723 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
18724 that appears in the instantiation rather than the internal subtype
18725 generated in the wrapper package, to avoid anomalies in gigi when the
18726 target is derived from a private type whose full view is an access type.
18728 2005-03-15 Robert Dewar <dewar@adacore.com>
18730 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
18732 Add documentation to replace the use of this flag
18733 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
18736 2005-03-15 Thomas Quinot <quinot@adacore.com>
18738 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
18739 here from exp_attr so it can be shared between exp_attr and exp_dist.
18740 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
18741 all TSS names, not a subset thereof, and the previous name introduced
18742 an unnecessarily confusion that a distinction might exist between
18743 "OK" TSS names and some "not OK" TSS names.
18745 2005-03-15 Doug Rupp <rupp@adacore.com>
18747 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
18750 2005-03-15 Pascal Obry <obry@adacore.com>
18751 Eric Botcazou <ebotcazou@adacore.com>
18755 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
18756 when IN_RTS. This is to work around a bootstrap path problem.
18758 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
18759 table and pass it to __gnat_install_SEH_handler().
18760 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
18762 * lang.opt: Fix specification of -fRTS=.
18764 2005-03-15 Doug Rupp <rupp@adacore.com>
18765 Bernard Banner <banner@adacore.com>
18766 Vincent Celier <celier@adacore.com>
18767 Arnaud Charlet <charlet@adacore.com>
18770 This change works fine when gnatlib is built from the gcc directory,
18771 but does not work when using the libada Makefile, since GCC_FOR_TARGET
18772 is not passed to ada/Makefile.in, so more work is needed by a
18773 Makefile/configure expert.
18775 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
18776 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
18777 Setup gnatlink switch -M for x86_64 linux, as it is already setup
18779 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
18780 Run ranlib on libgccprefix.a
18781 Define PREFIX_OBJS for Darwin, to build libgccprefix.
18782 (ADA_INCLUDE_SRCS): Split Ada packages.
18784 2005-03-15 Robert Dewar <dewar@adacore.com>
18786 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
18788 * impunit.adb: Add GNAT.UTF_32
18790 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
18792 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
18793 now uses GNAT.UTF_32).
18795 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
18796 capabilities for categorizing characters using Unicode categories
18798 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18800 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
18801 instantiation that has been rewritten as a package body, retrieve spec
18802 to generate proper name for implicit_with_clause.
18803 (Install_Parents): Recognize a parent that is an instantiation but has
18804 been rewritten as a package declaration during analysis.
18806 2005-03-15 Javier Miranda <miranda@adacore.com>
18807 Ed Schonberg <schonberg@adacore.com>
18809 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
18810 parameter reported some error we immediately return. This improves the
18811 behaviour of the frontend in case of errors.
18812 (Install_Parent, Remove_Parent): Introduce new flag
18813 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
18814 ancestor of a generic child unit, when the child is being instantiated.
18815 (Inline_Instance_Body): If we are compiling the private
18816 part or the body of a child unit, restore the proper visibility of the
18817 parents after compiling the instance body.
18819 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18820 Javier Miranda <miranda@adacore.com>
18823 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
18824 of a private type, in which case it is underlying_type that denotes
18825 the proper task. Also modified to use the new entity attribute
18826 that is directly available in the task type and task subtype entities
18827 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
18828 arrays when other dimensions than the first are constrained by
18829 discriminants of an enclosing record.
18830 (Insert_Explicit_Dereference): If the prefix is an indexed component or
18831 a combination of indexed and selected components, find ultimate entity
18832 and generate the appropriate reference for it, to suppress spurious
18834 (Note_Possible_Modification): If an entity name has no entity, return.
18835 (Is_Variable): A function call never denotes a variable.
18836 (Requires_Transient_Scope): For record types, recurse only on
18837 components, not on internal subtypes that may have been generated for
18838 constrained components.
18840 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18842 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
18843 Eliminated as candidates for resolution. Both efficient, and avoids
18844 anomalies with operators declared in deleted code.
18845 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
18846 expansion is disabled (as when compiling a generic) to prevent spurious
18847 warnings on prefixes of selected components.
18849 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18851 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
18852 attached to a list before checking whether it appears in the private
18853 declarations of the current package.
18854 (Make_Inequality_Operator): Insert declaration in proper declarative
18855 list rather than just setting the Parent field, so that
18856 Is_Private_Declaration can handle it properly.
18858 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18860 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
18861 a renaming a body, check that the renamed subprogram in not intrinsic.
18862 (Find_Direct_Name): If several use_visible entities hide
18863 each other, and the context is a predefined file compiled through
18864 rtsfind, keep only the entity that comes from a predefined file.
18866 2005-03-15 Geert Bosch <bosch@adacore.com>
18868 * s-fatgen.adb (Valid): Extend special exceptions to account for long
18869 long float padding to also cover AMD64 and IA64.
18871 2005-03-15 Gary Dismukes <dismukes@adacore.com>
18873 * s-imgwch.adb: Add with and use of Interfaces.
18874 (Img_Wide_Character): Change type of Val to Unsigned_16.
18875 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
18877 2005-03-15 Matthew Gingell <gingell@adacore.com>
18879 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
18881 2005-03-15 Robert Dewar <dewar@adacore.com>
18883 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
18885 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
18887 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
18889 2005-03-15 Robert Dewar <dewar@adacore.com>
18891 * s-bitops.adb, s-bitops.ads,
18892 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
18893 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
18894 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
18895 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
18896 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
18897 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
18898 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
18899 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
18902 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18904 * utils2.c (build_binary_op): Fix typo.
18906 2005-03-15 Doug Rupp <rupp@adacore.com>
18908 * s-crtl.ads (popen,pclose): New imports.
18910 2005-03-15 Cyrille Comar <comar@adacore.com>
18912 * comperr.adb (Compiler_Abort): remove references to obsolete
18913 procedures in the bug boxes for various GNAT builds.
18915 2005-03-15 Vincent Celier <celier@adacore.com>
18917 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
18919 2005-03-15 Geert Bosch <bosch@adacore.com>
18920 Arnaud Charlet <charlet@adacore.com>
18921 Robert Dewar <dewar@adacore.com>
18922 Cyrille Comar <comar@adacore.com>
18923 Sergey Rybin <rybin@adacore.com>
18925 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
18926 too specific and long-winded to be appropriate for the GNAT User's
18928 Warn about use of GCC switches not documented in the GNAT User's Guide,
18929 as these may cause generated code to not conform to Ada semantics.
18930 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
18931 Add documentation for -gnat95 and -gnat05 switches
18932 Remove paragraph documenting obsolete way to refer to third party
18934 Add a few references to Ada_05 that were missing.
18935 Update documentation on -gnatZ/-gnatL.
18936 Document limitation when using -m64 under Solaris.
18937 Change the "Name Casing" subsection of the pretty-printer section
18938 according to the changes in the dictionary processing.
18940 * gnat_rm.texi: Document the Ada_05 pragma.
18941 Section on record representation clauses describes the new more
18942 relaxed rules about placement of large packed bit array components.
18943 Add documentation of GNAT.UTF_32
18945 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
18947 * misc.c (gnat_post_options): Turn off structural
18950 2005-03-08 Laurent Guerby <laurent@guerby.net>
18952 * system-linux-sparc.ads: Fix typo in previous commit.
18954 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
18955 Laurent Guerby <laurent@guerby.net>
18958 * system-linux-sparc.ads: New.
18959 * Makefile.in: Add sparc linux entry.
18961 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
18963 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
18964 parameters as unused.
18966 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
18967 Partial merge from libada-gnattools-branch:
18969 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
18970 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
18971 into code in gnattools/Makefile.in. Remove direct dependencies on
18972 stamp-tools by tools clauses.
18973 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
18974 * config-lang.in: Add gnattools to $lang_dirs.
18976 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
18979 * utils.c (gnat_type_for_mode): Return null instead of ICE because
18980 we asked for an unknown mode.
18982 2005-02-12 Richard Henderson <rth@redhat.com>
18984 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
18985 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
18987 2005-02-10 Andreas Jaeger <aj@suse.de>
18989 * init.c (__gnat_initialize): Mark parameter as unused.
18991 2005-02-09 Doug Rupp <rupp@adacore.com>
18993 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
18994 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
18996 2005-02-09 Doug Rupp <rupp@adacore.com>
18998 * gnatchop.adb (dup, dup2),
18999 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
19001 * gnatlbr.adb (mkdir),
19002 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
19004 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
19006 2005-02-09 Doug Rupp <rupp@adacore.com>
19008 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
19010 2005-02-09 Robert Dewar <dewar@adacore.com>
19011 Thomas Quinot <quinot@adacore.com>
19012 Javier Miranda <miranda@adacore.com>
19013 Pascal Obry <obry@adacore.com>
19014 Ed Schonberg <schonberg@adacore.com>
19015 Doug Rupp <rupp@adacore.com>
19016 Gary Dismukes <dismukes@adacore.com>
19017 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19019 * g-zstspl.ads: New file.
19021 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
19023 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
19025 Add definition of Wide_Wide_Space for AI-285
19027 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
19028 interface (to support Ada 95 and Ada 2005 units).
19029 Add Unbounded_IO files
19030 Add entries for Wide_Wide packages for AI-285
19031 Add list of containers packages to Ada 2005 unit list
19033 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
19034 support new Unbounded_IO package cleanly.
19036 * g-utf_32.ads, g-utf_32.adb: New files.
19038 * Makefile.rtl: Add entry for g-utf_32
19039 Add new files for Unbounded_IO
19040 Adjust make file for new AI-285 wide wide packages
19041 Add AI-302 containers to the run time.
19043 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
19044 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
19045 subprograms for AI-301.
19047 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
19049 * a-stunau.ads: Minor comment correction
19051 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
19053 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
19054 (Check_RPC): Update to match changes in expanded code.
19055 Clean up unused entity.
19057 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
19058 was not taken into account.
19059 This includes proper initialization with Normalize_Scalars.
19060 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
19061 normalize scalars cases (particularly the latter) to do a better job
19062 of finding invalid representations.
19064 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
19066 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
19069 * exp_dist.adb: Add support for wide wide character type
19070 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
19071 private part, generate stub bodies at the end of the private part,
19072 not the visible part.
19073 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
19075 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
19076 generic wrapper to execute final processing after completing the
19077 expansion of the RPC receiver for an RACW.
19079 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
19080 packages and attributes.
19081 (Preset_Names): Addition of the new reserved words of Ada 2005,
19082 that is interface, overriding and synchronized.
19083 (Get_Pragma_Id): Give support to the use of the new reserved word
19084 "interface" as a pragma name.
19085 (Is_Pragma_Name): Give support to the use of the new reserved word
19086 "interface" as a pragma name.
19087 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
19088 attribute implementation.
19090 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
19091 checks to entities that are output parameters of Asm operations.
19092 Handle the Stream_Size attribute.
19093 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
19095 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
19097 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
19098 for second parameter being 0.0.
19099 Add support for wide wide character type.
19100 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
19102 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
19103 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
19104 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
19105 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
19106 for wide wide character cases.
19108 * cstand.adb: Create entities for Wide_Wide_Character and
19111 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
19112 accordance with AI-258.
19113 Add new declarations for 16/32 bit C character types (Part of AI285)
19115 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
19116 (Obsolescent_Warning): New field
19117 (Rep_Clause): New local subprogram used to share code. Returns the rep
19118 clause for which the name is given in parameter.
19119 (Has_Stream_Size_Clause): New routine.
19120 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
19121 (Address_Clause): Implementation is now using Rep_Clause.
19122 (Alignment_Clause): Idem.
19123 (Size_Clause): Idem.
19125 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
19126 entity in non-Ada 2005 mode and generate warning.
19128 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
19129 (Prag): Code cleanup. Remove old gnat pragma "overriding"
19131 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
19132 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
19133 on the named unit if the pragma is not in the current compilation unit,
19134 so that elaboration calls in the current unit can set up an elaboration
19135 dependency on the named unit, as needed.
19136 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
19137 subprogram as well as for subprograms declared within a package.
19138 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
19141 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
19142 to z) to avoid some instances of duplication for Wide_Wide packages.
19144 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
19147 * scn.adb: Char_Literal_Value field is now a Uint
19149 * scng.adb: Significant rewrite to handle new Ada 2005 features
19150 allowing wide and wide wide characters in program text, e.g. for
19151 identifiers, as described in AI-285.
19152 (Set_Reserved): New procedure, makes setting up keywords cleaner.
19153 (Initialize_Scanner): Register the new reserved words of Ada 2005.
19154 (Scan): Give support to the new reserved words.
19156 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
19157 warning notifying that interface, overriding, and synchronized are
19158 new reserved words.
19159 (P_Pragma): Allow the use of the new reserved word "interface" as
19162 * gnatls.adb, gnatbind.adb,
19163 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
19164 identifiers named "interface" to "SAL_Interface".
19166 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
19167 (Structured Exception handling).
19168 (Gen_Main_C): Idem.
19171 (Gen_Main_Ada): Set the default exit code if specified.
19172 (Gen_Main_C): Likewise.
19174 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
19175 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
19177 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
19180 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
19181 has a collision with the new Ada 2005 "interface" reserved word.
19183 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
19184 generate a warning notifying that interface, overriding, and
19185 synchronized are new reserved words.
19187 * scans.ads (Token_Type): Addition of the tokens corresponding to the
19188 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
19189 and Tok_Synchronized.
19191 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
19192 "dispatching" rather than "primitive" operations, since dispatching
19193 calls are now allowed to abstract formal subprograms (which are not
19195 Char_Literal_Value field is now a Uint
19196 (Resolve_Slice): If the prefix is an access to an unconstrained array,
19197 compute the actual subtype of the designated object to impose the proper
19199 (Resolve_Selected_Component): Do not insert an access check if the
19200 prefix is an access type: such a node is expanded into an explicit
19201 dereference, on which the access check is performed anyway. Removes
19202 expensive duplicate checks.
19203 (Resolve_Call): Use new flag Is_Obsolescent and field
19204 Obsolescent_Warning so that pragma Obsolescent works on library
19206 Add support for wide wide character type
19207 (Resolve_Allocator): Replace the error message on wrong null-exclusion
19208 value by a warning message.
19209 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
19210 as fixed-point, and one of the operands is non-static and universal, it
19211 can only be an illegal exponentiation operation, in which case there is
19212 no real value to retrieve.
19214 * exp_strm.adb: Add support for wide wide character type
19215 (Build_Elementary_Input_Call): Compute the size of the stream element by
19216 querying the rep chain to find the Stream_Attribute attribute value.
19217 (Build_Elementary_Write_Call): Ditto.
19219 * sem_aggr.adb: Char_Literal_Value field is now a Uint
19220 Add support for wide wide character type
19221 Replace the error messages on wrong null-exclusion value by warnings
19222 as described in Ada 2005.
19223 (Resolve_Extension_Aggregate): Document the fact that the error
19224 message on class-wide expressions in extensions aggregates.
19226 * sem_case.adb: Add support for wide wide character type
19228 * sem_ch13.adb: Add support for wide wide character type
19229 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
19231 * sem_ch3.adb: Add support for wide wide character type
19232 (Process_Subtype): If constraint is illegal for the type, set Ekind of
19233 now-useless Itype, to prevent cascaded errors on a compiler built
19236 * sem_ch8.adb: Add with and use of Sem_Disp.
19237 (Analyze_Subprogram_Renaming): Replace unclean uses of
19238 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
19239 of Corresponding_Spec to Empty).
19240 (Attribute_Renaming): Replace use of Corresponding_Spec with
19241 Corresponding_ Formal_Spec and simplify condition.
19242 (Use_One_Package): Check that scope of homonym of identifier is defined,
19243 before checking whether it is a wrapper package.
19244 Add support for wide wide character type
19246 * sem_eval.adb: Add support for wide wide character type.
19247 (Eval_Arithmetic_Op): Check for compile time known signed integer
19248 overflow in the non-static case.
19249 (Subtypes_Statically_Match): A formal scalar type and its base type do
19250 not statically match.
19252 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
19253 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
19255 (Unit_Declaration_Node): Ditto.
19256 (Is_Variable_Prefix): For the case of an indexed component whose prefix
19257 has a packed array type, the prefix has been rewritten into a type
19258 conversion. Determine variable-ness from the converted expression.
19259 Handle wide wide character cases.
19261 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
19263 * stringt.ads, stringt.adb: Handle full UTF-32 range.
19264 Remove ["0A"] from comment, since it can look like a line terminator.
19265 Currently we don't permit this, but this is under discussion by the
19266 ARG, and it is easy enough to use a different example.
19268 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
19269 handling UTF-32 encoding for wide wide character.
19270 Implement new brackets coding ["hhhhhhhh"]
19271 Add UTF-8 encodings for full UTF-32 range
19273 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
19275 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
19276 bit range Add full UTF-32 support.
19277 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
19278 notify that constraint error will be raised at run-time
19279 because a null value is assigned to a null-excluding object.
19280 Remove some obsolete declarations and make Char_Code
19283 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
19284 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
19285 Rcheck subprograms.
19287 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
19288 wrong null-exclusion value by a warning message.
19289 (Enable_Range_Check): Do range check if the prefix is an
19290 explicit dereference whose designated object is an unconstrained array.
19291 Current algorithm for removing duplicate checks is over-eager in this
19294 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
19295 null-exclusion value by a warning message
19297 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
19298 completely. Add support for Uint2 field
19300 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
19301 exp_prag.adb: Char_Literal_Value field is now a Uint.
19303 * exp_util.adb (Insert_Actions): Replace
19304 N_Formal_Subprogram_Declaration by
19305 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
19306 Char_Literal_Value field is now a Uint.
19308 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
19309 defined for subprogram renaming declarations. When set, the field
19310 indicates the defining entity of a corresponding formal subprogram
19311 when the renaming corresponds to a formal subprogram association in an
19313 (Set_Corresponding_Formal_Spec): New procedure to return
19314 Corresponding_Formal_Spec field.
19315 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
19316 (which is now a subtype).
19317 Char_Literal_Value field is now a Uint
19319 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
19320 pointer to the base of the dispatch table.
19321 Minor changes to comments.
19322 (Controlling_Type): New function for determining the tagged type
19323 associated with a tagged primitive subprogram.
19324 (Expand_Dispatching_Call): Add support for a controlling actual that is
19325 directly a value of type Ada.Tag rather than a tagged object.
19327 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
19328 describing the new layout.
19329 (Dispatch_Table): The expander computes the actual array size, allocates
19330 the Dispatch_Table record accordingly, and generates code that displaces
19331 the base of the record after the Typeinfo_Ptr component. The access to
19332 these components is done by means of local functions.
19333 (Offset_To_Top): New function.
19334 (Typeinfo_Ptr): New function.
19335 (Get_TSD): Modified to access the new position of the TSD.
19336 (Set_TSD): Modified to save the TSD in its new position.
19338 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
19339 case of formal abstract subprograms. Add check and message for -gnat05.
19342 * sem_ch12.adb: Add with and use for Sem_Disp.
19343 (Analyze_Associations): Minor change from "=" to "in" for use of
19344 N_Formal_Subtype_Declaration (which is now a subtype).
19345 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
19346 N_Formal_Subtype_Declaration (which is now a subtype).
19347 (Analyze_Formal_Subprogram): Add handling for
19348 N_Formal_Abstract_Subprogram, marking the formal as abstract and
19349 dispatching, setting the controlling status of the formal parameters
19350 and result, and issuing an error if there is no controlling type for
19351 the formal subprogram.
19352 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
19353 which is an unclean use of that field, we set the new field
19354 Corresponding_Formal_Spec to make the formal subprogram available to
19355 processing in Analyze_Subprogram_Declaration.
19356 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
19357 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
19358 Constrained, so that it is is does not statically match its anonymous
19361 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
19362 abstract formal subprograms in error check for functions returning
19363 abstract types. Set scope of new designator for
19364 a parameterless subprogram, so that it is available when checking the
19365 body for nested subprograms, before full analysis of said body.
19366 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
19367 subprogram only if inner one comes from source.
19368 (Analyze_Function_Call): If the call is given in object notation, the
19369 analysis of the name rewrites the node and analyzes it with the proper
19370 argument list. After analyzing the name, if the call has been rewritten
19371 and the result type is set, no further analysis is needed.
19372 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
19373 mark in function specification, in a context where the formals are
19374 visible and hide outer homographs.
19376 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
19377 as the tagged type for the cases of abstract formal subprograms and
19378 renamings of those. Clean up spec comments.
19379 (Check_Dispatching_Context): Add error message to indicate "abstract
19380 procedure", covering the case of a call to a formal abstract procedure
19381 that has statically tagged operands.
19382 (Check_Dispatching_Call): Check for the case of an actual given by
19383 a tag-indeterminate function call whose type is an ancestor of the
19384 containing call's associated tagged type. This situation can occur
19385 for inherited primitives with function defaults. In this case we
19386 use the tagged type's tag directly as the controlling argument for
19388 (Expand_Call): Name change on call to Expand_Dispatch_Call.
19390 * sprint.adb (Sprint_Node_Actual): Split
19391 N_Formal_Subprogram_Declaration into two alternatives for the new
19392 cases N_Formal_Abstract_Subprogram_Declaration and
19393 N_Formal_Concrete_Subprogram_Declaration.
19394 Char_Literal_Value field is now a Uint.
19396 * trans.c: Get rid of junk Uint2 reference.
19397 Char_Literal_Value field is now a Uint.
19398 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
19399 (gigi): Correct third arg to gimplify_body.
19401 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
19402 (TYPE_LANG_FLAG_0): Check for record or union.
19404 * treepr.adb: Char_Literal_Value field is now a Uint
19406 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
19409 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
19410 Add full UTF-32 support
19411 Char_Code is now 32 bits
19413 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
19414 wide character UTF_32 line terminators.
19415 Initialize Main_Source_File to avoid error when no main
19418 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
19419 (Main_Source_File) when no main source has been loaded, to avoid
19422 2005-02-09 Robert Dewar <dewar@adacore.com>
19424 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
19425 Fix name of Set routine
19427 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
19430 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
19431 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
19434 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
19435 forms of Get_Line subprograms for AI-301.
19437 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
19438 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
19439 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
19440 a-stwima.ads: Minor reformatting.
19442 2005-02-09 Doug Rupp <rupp@adacore.com>
19443 Thomas Quinot <quinot@adacore.com>
19445 * adaint.c, adaint.h
19446 [VMS] (to_ptr32): New function.
19447 (MAYBE_TO_PTR32): New macro.
19448 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
19450 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
19451 [VMS] (#define fork()): Remove since unneccessary.
19452 (__gnat_set_close_on_exec): New routine to support
19453 GNAT.OS_Lib.Set_Close_On_Exec.
19455 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
19456 the parent side as close-on-exec so that they are not inherited by the
19459 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
19460 set or clear the FD_CLOEXEC flag on a file descriptor.
19462 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
19463 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19467 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
19468 on the field if Pragma Component_Alignment (Storage_Unit).
19469 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
19470 side-effects as if it were a constant; also make SAVE_EXPR to protect
19472 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
19474 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
19475 (components_to_record): Test it.
19476 Fix improper usage of REFERENCE_CLASS_P.
19478 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
19481 * utils2.c: Minor reformatting.
19483 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
19484 handle other cases like RECORD_TYPE.
19486 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
19488 2005-02-09 Ed Schonberg <schonberg@adacore.com>
19490 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
19491 component of an array of arrays in an assignment context, and the
19492 aggregate has component associations that require sliding on
19493 assignment, force reanalysis of the aggregate to generate a temporary
19494 before the assignment.
19495 (Must_Slide): Make global to the package, for use in Gen_Assign.
19497 2005-02-09 Ed Schonberg <schonberg@adacore.com>
19499 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
19500 unchecked union with no inferable discriminants, return a
19501 Raise_Program_Error node, rather than inserting it at the point the
19503 (Expand_Record_Equality, Component_Equality): Handle properly the case
19504 where some subcomponent is an unchecked union whose generated equality
19505 code raises program error.
19507 2005-02-09 Doug Rupp <rupp@adacore.com>
19509 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
19510 [VMS] (#define exit hack): Remove.
19512 2005-02-09 Pascal Obry <obry@adacore.com>
19513 Arnaud Charlet <charlet@adacore.com>
19515 * init.c (__gnat_initialize): Add a new parameter eh which contains the
19516 address of the exception registration. The Win32 version of this
19517 routine calls __gnat_install_SEH_handler() to initialize the SEH
19518 (Structured Exception Handling) handler.
19519 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
19520 SEH (Structured Exception Handling) now.
19521 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
19522 (__gnat_initialize for ppc-vxworks): Adjust comments and the
19523 preprocessor condition protecting the call to the extra eh setup
19524 subprogram, which is only available for the ppc target.
19525 (__gnat_clear_exception_count): replaced reference to
19526 variable taskIdCurrent by call to taskIdSelf(), cleaner.
19528 * seh_init.c: New file.
19530 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
19531 (GNATBIND_OBJS): Idem.
19533 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
19534 routine takes a new parameter (a pointer to the exception registration
19535 for the SEH (Structured Exception Handling) support.
19537 * raise.h: (__gnat_install_SEH_handler): New prototype.
19538 Update copyright notice.
19540 * s-tassta.adb (Task_Wrapper): Declare the exception registration
19541 record and initialize it by calling __gnat_install_SEH_handler.
19543 2005-02-09 Vincent Celier <celier@adacore.com>
19545 * make.adb (Gnatmake): Do not fail when the main project has no object
19548 2005-02-09 Doug Rupp <rupp@adacore.com>
19550 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
19551 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
19552 [VMS]: Add translations for g-enblsp.adb.
19554 * s-asthan-vms.adb: Removed.
19555 * s-asthan-vms-alpha.adb: Added.
19557 2005-02-09 Pascal Obry <obry@adacore.com>
19559 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
19560 (LIBGNAT_OBJS): Add seh_init.o.
19562 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19565 * Makefile.in: Link all gnat tools with -static-libgcc, since
19566 -shared-libgcc is now used by default on some systems (e.g. linux with
19568 Remove references to Makefile.prolog/generic, no longer used.
19570 2005-02-09 Vincent Celier <celier@adacore.com>
19572 * prj-makr.adb (Process_Directory): Put file name in canonical case
19573 before matching against the patterns.
19574 If gnatname has been invoked as <prefix>-gnatname
19575 then invoke the compiler as <prefix>-gcc, not just "gcc".
19577 2005-02-09 Ed Schonberg <schonberg@adacore.com>
19579 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
19580 with expansion disabled. The actual subtype is needed among other
19581 places when the selected component appears in the context of a loop
19582 bound, and denotes a packed array.
19583 (Operator_Check): Always use the first subtype in the
19584 error message, to avoid the appearance of internal base types.
19585 (Transform_Object_Operation): Copy each actual in full
19586 to the parameter associations of the constructed call, rather than
19587 using the shallow copy mechanism of New_Copy_List. This ensures that
19588 the chaining of named associations is done properly.
19589 (Complete_Object_Operation): Rewrite node, rather than
19590 replacing it, so that we can trace back to the original selected
19593 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
19594 and calls that use object notation, if the called function is not
19595 declared in a withed unit, place the elaboration constraint on the
19596 unit in the context that makes the function accessible.
19597 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
19598 imposes an elaboration constraint between two packages.
19600 2005-02-09 Ed Schonberg <schonberg@adacore.com>
19602 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
19603 views of a private type after handling its private dependents, to
19604 maintain proper stack discipline between entry and exit from the
19607 2005-02-09 Cyrille Comar <comar@adacore.com>
19609 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
19610 Minor reformatting.
19612 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19614 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
19615 fields for foreign threads.
19617 2005-02-09 Doug Rupp <rupp@adacore.com>
19619 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
19620 recursion warnings when compiled with -gnatdm.
19622 2005-02-09 Robert Dewar <dewar@adacore.com>
19624 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
19625 Slight fix to documentation of -gnaty with no parameters
19627 * xr_tabls.ads: Add ??? comment for missing overall comment
19629 * xsinfo.adb: Make default file name be sinfo.h, since this is what
19630 we now use by default.
19632 * xsnames.adb: Adjust end of file test to look for five space followed
19633 by '#' instead of six spaces. The format of xsnames.adb was modified
19634 in the last update.
19636 * a-numeri.ads: Add reference to AI-388 for greek letter pi
19639 * clean.adb: Minor reformatting.
19641 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
19642 gnatname.adb: Minor reformatting
19643 Add 2005 to copyright output when utility is run
19645 * csets.adb: Eliminate obsolete comment
19647 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
19650 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
19652 2005-02-09 Sergey Rybin <rybin@adacore.com>
19654 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
19655 the difference between compact and incompact layout and add the record
19656 representation clause to the example illustrating different layouts.
19657 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
19658 component clauses").
19660 2005-02-09 Florian Villoing <villoing@adacore.com>
19662 * gnat_ugn.texi: Fix typos.
19663 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
19665 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
19666 in the generated documentation.
19668 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19670 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
19672 Update linker wrapper when linking with non GNU C++.
19674 2005-02-09 Pascal Obry <obry@adacore.com>
19677 Document the procedure to debug the DllMain routine on Windows.
19678 Add note about -funwind-tables and mixed Ada and C/C++ programming in
19680 Document new BIND qualifer /RETURN_CODES=VMS.
19682 2005-02-09 Ben Brosgol <brosgol@adacore.com>
19684 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
19685 Edited gnatmetric chapter
19687 2005-02-09 Robert Dewar <dewar@adacore.com>
19690 Changes to document new wide wide character support
19692 Update documentation on Normalize_Scalars and Initialize_Scalars
19694 2005-02-09 Pascal Obry <obry@adacore.com>
19696 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
19698 2005-02-09 Jose Ruiz <ruiz@adacore.com>
19700 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
19701 from the VxWorks kernel) that is needed for getting the active
19702 priority of the different tasks.
19704 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
19705 Use a pragma Elaborate_Body in the spec file instead.
19706 Noticed by code reading.
19708 2005-02-09 Thomas Quinot <quinot@adacore.com>
19710 * exp_util.ads: Minor correction in comment.
19712 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19714 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
19715 since this procedure is now too complex to be worth inlining.
19717 2005-02-09 Richard Henderson <rth@redhat.com>
19719 * utils.c (gnat_define_builtin): Remove.
19720 (gnat_install_builtins): Use build_common_builtin_nodes.
19722 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19724 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
19725 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
19726 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
19727 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
19728 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
19729 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
19730 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
19731 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
19732 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
19733 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
19734 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
19735 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
19736 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
19737 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
19738 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
19739 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
19740 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
19741 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
19742 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
19743 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
19744 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
19745 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
19746 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
19747 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
19748 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
19749 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
19750 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
19751 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
19752 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
19753 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
19754 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
19755 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
19756 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
19757 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
19760 2005-01-27 Laurent GUERBY <laurent@guerby.net>
19762 * Makefile.in: Fix a-intnam.ads from previous commit,
19763 add 2005 to copyright.
19764 * a-intman-rtems.ads: Renamed to...
19765 * a-intnam-rtems.ads:
19767 2005-01-27 Laurent GUERBY <laurent@guerby.net>
19769 * Makefile.in: Rename GNAT RTEMS specific files.
19770 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
19771 5rosinte.ads, 5rparame.adb: Replaced by files below.
19772 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
19773 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
19775 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
19776 Laurent GUERBY <laurent@guerby.net>
19779 * 5rosinte.ads: Add No_Key constant.
19780 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
19781 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
19783 2005-01-26 Laurent GUERBY <laurent@guerby.net>
19786 * i-cobol.adb (Valid_Numeric): Handle zero length case.
19788 2005-01-20 Richard Henderson <rth@redhat.com>
19790 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
19791 a-intnam-linux.ads and system-linux-alpha.ads.
19792 * a-intnam-linux-alpha.ads: Remove file.
19793 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
19794 * system-linux-alpha.ads: New file.
19796 2005-01-18 Jakub Jelinek <jakub@redhat.com>
19799 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
19800 set to the new string.
19802 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
19804 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
19807 2005-01-18 Richard Henderson <rth@redhat.com>
19809 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
19810 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
19812 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
19814 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
19816 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
19817 (GCC_ZCX_Support): Likewise.
19819 2005-01-11 Bastian Blank <waldi@debian.org>
19821 * system-linux-s390.ads: Define Preallocated_Stacks.
19822 * system-linux-s390x.ads: Likewise.
19824 2005-01-04 Arnaud Charlet <charlet@adacore.com>
19826 * gnat_ugn.texi: Fix texi errors with null variables.
19828 2005-01-03 Thomas Quinot <quinot@adacore.com>
19830 * gen-soccon.c: New utility program to generate g-soccon.ads
19833 * socket.c, gsocket.h: Split inclusion of system header files into a
19834 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
19836 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
19837 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
19838 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
19839 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
19840 should not be edited by hand anymore, but should be regenerated using
19843 2005-01-03 Robert Dewar <dewar@adacore.com>
19844 Ed Schonberg <schonberg@adacore.com>
19845 Vincent Celier <celier@adacore.com>
19847 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
19848 on/off, since this is an obsolescent feature, for which we now generate
19851 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
19852 warning mode is set and obsolescent usage of this attribute occurs.
19853 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
19854 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
19855 predates, and partly motivates, the adoption of the AI.
19856 Implement new Ada 2005 attribute Mod
19858 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
19861 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
19863 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
19864 pragma restrictions.
19865 New entry for Ada 2005 attribute Mod.
19868 Add recognition of new pragma Restrictions No_Dependence
19869 Recognize restriction No_Obsolescent_Features at parse time
19871 * bcheck.adb: Add circuitry for checking for consistency of
19872 No_Dependence restrictions.
19874 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
19877 * restrict.ads, restrict.adb: Add subprograms to deal with
19878 No_Dependence restrictions.
19880 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
19883 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
19884 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
19886 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
19887 dummy parameter to scng instantiation.
19888 Needed for new restriction No_Obsolescent_Features
19890 * scn.adb: (Obsolescent_Check): New procedure
19891 Needed for new restriction No_Obsolescent_Features
19893 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
19894 specified by AI-285, needed for implementation of AI-388 (adding greek
19895 pi to Ada.Numerics).
19896 Add new generic formal to scng, needed for new restriction
19897 No_Obsolescent_Features.
19899 * s-rident.ads: Add new restriction No_Obsolescent_Features.
19901 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
19902 restrictions lines.
19903 (Scan_ALI): When finding an unexpected character on an R line, raise
19904 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
19905 Ignore_Errors is True, default restrictions are set and scanning of the
19906 ALI file continues with the next line. Also, when Bad_R_Line is raised
19907 and Ignore_Errors is True, skip to the end of le line.
19909 * sem_ch10.adb: Check that explicit with's do not violate
19910 No_Dependence restrictions.
19911 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
19912 illegal context clauses containing child units of instance.
19914 * sem_prag.adb: Processing and checking for new No_Dependence
19916 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
19917 analyze and check the External argument.
19919 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
19921 2005-01-03 Robert Dewar <dewar@adacore.com>
19923 * atree.adb: Add a fifth component to entities
19924 This allows us to add 32 flags and four new fields
19926 * atree.ads: Add a fifth component to entities
19927 This allows us to add 32 flags and four new fields
19929 * einfo.ads, einfo.adb: Document new fields and new flags now available
19930 Add routines for printing new fields
19932 * treepr.adb: Call routines to print out additional fields if present
19934 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19936 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
19937 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
19939 * Makefile.in: Add support to build shared Ada libraries on solaris x86
19940 Remove gpr2make, replaced by gprmake.
19941 Remove references to gnatmem and libaddr2line.
19942 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
19943 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
19944 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
19945 a-numaux-darwin.ads and a-numaux-darwin.adb
19946 Enable mlib-tgt-lynxos.adb on lynxos.
19948 * Make-lang.in: Remove rules for gpr2make.
19949 When generating sdefault.adb, do not call Relocate_Path
19950 on S3 for function Target_Name, as it is not a path.
19951 Remove references to gnatmem and libaddr2line.
19953 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
19956 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
19958 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
19959 address is incompatible with its base type alignment constraints when
19960 this can be decided statically.
19962 2005-01-03 Olivier Hainque <hainque@adacore.com>
19964 * decl.c (compatible_signatures_p): New function. The intended purpose
19965 is to check if two function signatures for a call-site and a callee are
19966 compatible enough for the call to be valid. The underlying purpose is
19967 to check if a call to a mapped builtin is using the right interface.
19968 The current code actually does not check antyhing - this a placeholder
19969 for future refinements.
19970 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
19971 builtin calls for convention Intrinsic.
19973 * gigi.h (builtin_decl_for): Declare (new function).
19975 * utils.c (gnat_install_builtins): Install the target specific builtins.
19976 (builtin_decl_for): New function, provide a dummy body for now.
19978 2005-01-03 Geert Bosch <bosch@adacore.com>
19980 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
19981 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
19982 (Pred): Implement in terms of Succ.
19984 * trans.c (convert_with_check): Reimplement conversion of float to
19987 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19988 Vincent Celier <celier@adacore.com>
19990 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
19991 bounds can be negative, and must be declared Int, not Nat.
19993 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
19994 array is checked after using the index in the array.
19996 * makegpr.adb (Add_Switches): Check if there is a package for the
19997 processor. If there is no package, do not look for switches.
19999 2005-01-03 Ed Schonberg <schonberg@adacore.com>
20001 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
20002 generation of predefined stream operations (specs and bodies) should
20003 proceed. Under various restrictions these subprograms must not be
20006 2005-01-03 Thomas Quinot <quinot@adacore.com>
20009 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
20010 amount of PCS-specific code in RACW stubs generation.
20011 (Copy_Specification): Set Etype on copied formal parameter entities, as
20012 this information is needed for PolyORB stubs generation.
20013 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
20014 variable Dynamic_Async.
20015 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
20016 (Build_RPC_Receiver_Specification): Make generic again, as recent
20017 changes have allowed RPC receivers to have the same profile for both
20018 variants of the PCS.
20019 Reorganise RPC receiver generation to reduce differences between the
20020 structure of GARLIC and PolyORB RPC receivers.
20021 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
20023 Simplify elaboration code for RCI packages.
20025 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
20026 generation to reduce differences between the structure of GARLIC and
20027 PolyORB RPC receivers.
20029 * s-stratt.adb: Fix typo in comment.
20031 2005-01-03 Thomas Quinot <quinot@adacore.com>
20033 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
20034 copied from Make_Init_Call).
20036 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
20037 reads and assignments on a temporary variable declared with appropriate
20040 2005-01-03 Robert Dewar <dewar@adacore.com>
20042 * i-c.adb (To_C): Raise CE if string is null and Append_Null
20044 2005-01-03 Robert Dewar <dewar@adacore.com>
20046 * i-cstrin.adb (Update): Do not append a null in form called with a
20047 String. This avoids unintended behavior.
20049 2005-01-03 Arnaud Charlet <charlet@adacore.com>
20052 * init.c: Fix warnings on Free BSD section.
20054 2005-01-03 Arnaud Charlet <charlet@adacore.com>
20057 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
20060 2005-01-03 Vincent Celier <celier@adacore.com>
20062 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
20063 libraries when Unique_Compile is True (-u switch).
20066 2005-01-03 Robert Dewar <dewar@adacore.com>
20068 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
20069 upper case letter or underscore after W, as allowed by spec.
20071 2005-01-03 Arnaud Charlet <charlet@adacore.com>
20073 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
20074 darwin port by using proper type definitions from header files.
20075 Use SIGTERM instead of SIGABRT for SIGADAABORT.
20077 2005-01-03 Robert Dewar <dewar@adacore.com>
20079 * par.adb: Enhance error message handling for configuration file
20082 2005-01-03 Robert Dewar <dewar@adacore.com>
20084 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
20085 removed during the previous update (test properly for case of dividing
20086 largest negative number by -1, which generates overflow).
20088 2005-01-03 Ed Schonberg <schonberg@adacore.com>
20089 Sergey Rybin <rybin@adacore.com>
20091 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
20092 to use as the defining identifier for a formal package.
20093 (Remove_Parent): If the instance takes place within (an instance of)
20094 a sibling, preserve private declarations of common parent.
20096 2005-01-03 Ed Schonberg <schonberg@adacore.com>
20098 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
20099 to determine whether one of the operands is a fixed-point type for
20100 which a user-defined multiplication or division operation might be
20103 * sem_res.adb (Valid_Conversion): The legality rules for conversions
20104 of access types are symmetric in Ada 2005: either designated type can
20107 2005-01-03 Vincent Celier <celier@adacore.com>
20109 * s-fileio.adb (Temp_File_Record): Change length of string component
20110 Name from L_tmpnam + 1 to max_path_len + 1.
20112 2005-01-03 Arnaud Charlet <charlet@adacore.com>
20114 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
20115 Self_Id.Deferral_Level = 0.
20116 (Do_Pending_Action): Move this function to the spec.
20118 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
20119 Do_Pending_Action explicitely when needed, in case we're using
20120 No_Abort restrictions.
20122 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
20123 deferral level since it will not get changed by the generated code.
20124 Keeping a default value of 1 would prevent some operations (e.g.
20125 select or delay) to proceed successfully.
20127 2005-01-03 Ben Brosgol <brosgol@adacore.com>
20128 Robert Dewar <dewar@adacore.com>
20129 Cyrille Comar <comar@adacore.com>
20131 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
20132 porting guide chapter (vms version).
20133 Revised doc title (removed "for native platforms") and subtitle.
20134 Add discussion on warning flag for obsolescent features. First we
20135 note that it applies to obsolete GNAT features, which was previously
20136 omitted. Second we contrast the behavior with that of the new
20137 Ada 2005 AI-368 restriction No_Obsolescent_Features.
20138 Preliminary rewriting of GNAT & libraries chapter in order to take
20139 into account default project locations & new project manager
20142 2005-01-03 Robert Dewar <dewar@adacore.com>
20144 * cstand.adb (Create_Operators): Clean up format and documentation of
20145 unary and binary operator result tables. No change in code, just
20146 reformatting and addition of comments.
20148 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
20149 sem_ch2.adb: Minor reformatting
20151 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
20152 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
20153 comments for Tree_Read and Tree_Write.
20155 2005-01-03 Pascal Obry <obry@adacore.com>
20157 * exp_attr.ads: Minor reformatting.
20159 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
20161 * comperr.adb (Compiler_Abort): Add specialized message for GAP
20164 2005-01-03 Ed Schonberg <schonberg@adacore.com>
20166 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
20167 whether the ancestor type is private, as may be the case with nested
20170 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
20173 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
20175 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
20177 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
20178 * utils2.c (build_unary_op): Likewise.
20180 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20182 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
20184 2004-12-19 Richard Henderson <rth@redhat.com>
20186 * trans.c (gigi): Update gimplify_body call.
20188 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
20190 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
20192 2004-12-07 Ed Falis <falis@adacore.com>
20194 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
20195 current task being suspended.
20197 * init.c (__gnat_clear_exception): added to reset VxWorks exception
20199 (__gnat_map_signal): removed test for current task being suspended.
20201 2004-12-07 Gary Dismukes <dismukes@adacore.com>
20203 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
20204 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
20205 targets (such as AAMP).
20207 2004-12-07 Ed Schonberg <schonberg@adacore.com>
20209 * atree.adb (Visit_Itype): Create a new name for the generated itype,
20210 because the back-end may otherwise treat it as a redefinition of the
20213 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
20215 * back_end.adb (Scan_Back_End_Switches): Accept --param.
20217 * lang-specs.h: Accept --param.
20219 2004-12-07 Vincent Celier <celier@adacore.com>
20221 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
20222 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
20223 Current_Body_Suffix => Ada_Body_Suffix).
20224 Take into account Externally_Built attribute.
20226 * clean.adb (In_Extension_Chain): Always return False when one of the
20227 parameter is No_Project.
20228 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
20229 Ada_Language_Index).
20230 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
20231 Process_Languages for procedure Parse).
20233 * gnatcmd.adb (Carg_Switches): New table.
20234 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
20235 Adapt to name changes in package Prj (Current_Spec_Suffix =>
20236 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
20238 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
20239 Header_Num and function Hash are now declared in package Prj,
20242 * prj.adb (Suffix_Of): New function.
20243 (Set (Suffix)): New procedure.
20244 (Hash): One function moved from Prj.Com
20245 (Is_Present, Language_Processing_Data_Of): New functions
20246 (Set): Two new procedures
20247 (Add_Language_Name, Display_Language_Name): New procedures
20249 * prj.ads: (Suffix_Of): New function
20250 (Set (Suffix)): New procedure
20251 Add several types and tables for multi-language support.
20252 (Header_Num): Type moved from Prj.Com
20253 (Hash): Two functions moved from Prj.Com
20254 (Is_Present, Language_Processing_Data_Of): New functions
20255 (Set): Two new procedures
20256 (Add_Language_Name, Display_Language_Name): New procedures
20257 (Naming): Component name changes:
20258 Current_Spec_Suffix => Ada_Spec_Suffix,
20259 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
20260 Impl_Suffixes, Supp_Suffixes.
20261 (Project_Data): New components: Externally_Built, Supp_Languages,
20262 First_Language_Processing, Supp_Language_Processing, Default_Linker,
20263 Default_Linker_Path.
20265 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
20266 new package Language_Processing with its attributes (Compiler_Driver,
20267 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
20268 Binder_Driver, Default_Linker).
20270 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
20271 (Header_Num): Type moved to package Prj
20273 * prj-env.adb: Adapt to name changes in package Prj
20274 (Current_Spec_Suffix => Ada_Spec_Suffix,
20275 Current_Body_Suffix => Ada_Body_Suffix).
20277 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
20278 default to the project path, except the "-" is one of the directories
20279 in env var ADA_PROJECT_PATH.
20280 (Current_Project_Path): Global variable, replacing Project_Path
20281 that was in the body of Prj.Part.
20282 (Project_Path): New function
20283 (Set_Project_Path): New procedure
20284 Initialize Current_Project_Path during elaboration of the package
20285 Remove dependency on Prj.Com, no longer needed
20287 * prj-ext.ads (Project_Path): New function
20288 (Set_Project_Path): New procedure
20290 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
20291 suffix is defined for language <lang>.
20292 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
20293 accessing directly the components of Naming.
20294 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
20295 Reorganise of this package.
20296 Break procedure Check in several procedures.
20298 * prj-nmsc.ads: Replace all procedures (Ada_Check,
20299 Other_Languages_Check and Language_Independent_Check) with a single
20302 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
20303 Process_Languages, no longer needed.
20305 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
20306 Current_Project_Path.
20307 Remove elaboration code, moved to the body of Prj.Ext
20308 Use new function Prj.Ext.Project_Path instead of old variable
20310 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
20311 When comparing with project paths on the stack, first put the resolved
20312 path in canonical case.
20313 (Parse_Single_Project): Set the path name of the project file in the
20314 tree to the normalized path.
20316 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
20317 parameter Process_Languages, no longer needed.
20318 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
20319 Other_Languages_Check.
20321 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
20322 to store the resolved canonical path of the project file.
20323 Remove dependency to Prj.Com, no longer needed
20325 * prj-util.adb: Adapt to name changes in package Prj
20326 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
20329 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
20330 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
20331 Externally_Built, Include_Option, Language_Processing.
20333 * makegpr.adb: Numerous changes due to changes in packages
20336 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
20337 default to the project path, except whe "-" is one of the directories
20338 in env var ADA_PROJECT_PATH.
20339 (Gnatls): In verbose mode, add the new section "Project Search Path:"
20341 2004-12-07 Robert Dewar <dewar@adacore.com>
20343 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
20345 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
20348 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
20349 flag. No longer needed now that we handle this in gnat1drv.adb.
20351 * repinfo.ads: Minor reformatting
20353 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20354 Olivier Hainque <hainque@adacore.com>
20355 Eric Botcazou <ebotcazou@adacore.com>
20357 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
20358 TYPE_SIZE_UNIT of result type if SIZE is not specified.
20359 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
20360 of a bitfield, which we know is useless and causes trouble because of
20361 alignment implications.
20363 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
20365 (process_attributes): Clear DECL_COMMON again when a section attribute
20367 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
20368 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
20369 (create_field_decl): Special case ADDRESSABLE negative to mean
20370 "no bitfield creation", to be used by make_aligning_type. Don't
20371 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
20372 fields claimed addressable still have to be bitfields. Use
20373 value_factor_p instead of a raw binop construction to check for the
20374 position's alignment.
20376 2004-12-07 Geert Bosch <bosch@adacore.com>
20378 * eval_fat.adb: Revert previous change.
20380 2004-12-07 Thomas Quinot <quinot@adacore.com>
20381 Ed Schonberg <schonberg@adacore.com>
20383 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
20384 with an implicit dereference as its prefix, use
20385 Insert_Explicit_Dereference instead of merely rewriting the prefix into
20386 an explicit dereference. This ensures that a reference to the original
20387 prefix is generated, if appropriate.
20389 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
20390 dereference is rewritten to an explicit one, generate a reference to
20391 the entity denoted by its prefix using the original prefix node, so
20392 the dereference can be properly recorded as a read of the denoted
20393 access value, if appropriate.
20395 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
20396 emitting 'assigned but never read' warning on a variable on the basis
20397 that it has an access type.
20398 (Check_References): Emit unreferenced warning when the scope is a
20401 2004-12-07 Robert Dewar <dewar@adacore.com>
20402 Ed Schonberg <schonberg@adacore.com>
20404 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
20407 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
20408 leaving call unchanged.
20409 This deals with the case where the pragma Import specified
20410 an external name, to be handled by the back end.
20412 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
20413 subprogram which is Imported with convention Intrinsic if an
20414 External_Name argument is specified.
20415 (Process_Import_Or_Interface): Properly diagnose link name argument.
20416 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
20417 with Sem_Ch6.Cannot_Inline.
20418 (Process_Inline): Provide separate warning for inapplicable inline
20420 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
20421 treatment is uniform on different targets.
20423 2004-12-07 Ed Schonberg <schonberg@adacore.com>
20425 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
20426 construct is rewritten, preserve end label to permit source navigation.
20428 2004-12-07 Thomas Quinot <quinot@adacore.com>
20430 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
20431 Specific_Build_Stub_Target): New subprograms.
20432 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
20433 the PCS implementation used, using the above PCS-customized subprograms.
20434 Minor reformatting.
20435 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
20436 for generation of DSA code targeted to the PolyORB PCS.
20437 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
20438 implementation of the partition communication subsystem in ancillary
20440 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
20441 PolyORB_Support.Build_Stub_Type): New subrograms containing the
20442 PCS-specific part of Add_Stub_Type.
20443 (Insert_Partition_Check): Use runtime library function to perform
20446 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
20447 (RE_Same_Partition): New entity, from s-parint.
20449 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
20451 2004-12-07 Gary Dismukes <dismukes@adacore.com>
20453 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
20454 Output the copyright message on a separate line from the version
20457 2004-12-07 Joel Brobecker <brobecker@adacore.com>
20459 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
20460 compile-time warning.
20462 2004-12-07 Robert Dewar <dewar@adacore.com>
20464 * g-regpat.adb: (Match): Change a misuse of or to or else
20466 2004-12-07 Ed Schonberg <schonberg@adacore.com>
20469 (Generate_Reference): Handle properly a reference to an entry formal,
20470 when an accept statement has a pragma Unreferenced for it.
20472 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
20473 and the Has_Pragma_Unreferenced flag for each formal before analyzing
20474 the body, to ensure that warnings are properly emitted for each accept
20475 statement of a given task entry.
20477 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
20479 * Makefile.in: Add support for foreign threads on VMS.
20481 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20483 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
20485 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
20487 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
20489 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
20491 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
20493 2004-12-07 Robert Dewar <dewar@adacore.com>
20495 * nlists.adb (Prepend_Debug): Remove parameters and nest within
20497 (Remove_Next_Debug): Same fix
20499 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
20500 maintain back pointers now, though we did not used to, and comments
20502 (Prepend): Remove pragma Inline.
20503 (Remove_Next): Same cleanup
20505 2004-12-07 Thomas Quinot <quinot@adacore.com>
20507 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
20508 used to record an implicit dereference as a read operation on its
20509 prefix when operating under -gnatc. Necessary to avoid spurious
20510 'variable assigned but never read' warnings in that mode.
20511 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
20512 is a non-overloaded implicit dereference, call the above subprogram to
20513 ensure proper recording of references.
20515 2004-12-07 Gary Dismukes <dismukes@adacore.com>
20517 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
20518 to be resolved later as part of Analyze_Iteration_Scheme's call to
20521 2004-12-07 Ed Schonberg <schonberg@adacore.com>
20523 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
20524 prefix is not a scalar type, place error message on prefix, not on
20527 2004-12-07 Bernard Banner <banner@adacore.com>
20529 * vxaddr2line.adb: Add support for x86 vxworks
20531 2004-12-07 Thomas Quinot <quinot@adacore.com>
20533 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
20534 documentation of the behaviour of these functions when passed an IP
20535 address that has no record in the system hosts database and no reverse
20538 * cstand.adb, a-tags.ads: Fix typos in comment.
20540 2004-12-07 Robert Dewar <dewar@adacore.com>
20542 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
20543 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
20544 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
20545 s-poosiz.ads: Minor reformatting
20547 * make.adb: Minor reformatting
20548 Add some ??? comments asking for more comments
20550 * s-poosiz.adb: Minor reformatting
20551 Add comments on alignment requirement
20553 * sinfo.ads: Remove obsolete comment and fix typo.
20555 2004-12-07 Vincent Celier <celier@adacore.com>
20556 Sergey Rybin <rybin@adacore.com>
20558 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
20559 Files" with the new tool and package names.
20560 Reformatting to suppress most of the warnings for line too long
20561 Document the new section "Project Search Path:" in the output of
20563 Add gnatmetric section
20565 2004-12-07 Vincent Celier <celier@adacore.com>
20567 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
20568 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
20569 and -eit to -ept. Added qualifier
20570 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
20572 2004-11-27 Andreas Schwab <schwab@suse.de>
20574 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
20576 2004-11-25 Arnaud Charlet <charlet@adacore.com>
20578 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
20579 internal implementation unit GNAT.Sockets.Thin,
20580 as their usage for sockets is non-portable (using the read and write
20581 functions from the system runtime library is fine on UNIX but won't
20582 work under Windows).
20584 * mingw32.h: Update copyright notice.
20586 2004-11-25 Arnaud Charlet <charlet@adacore.com>
20588 * ada-tree.h: Minor reformatting of previous change to avoid lines
20589 longer than 79 characters.
20591 2004-11-25 Olivier Hainque <hainque@adacore.com>
20593 * tb-gcc.c: GCC infrastructure based implementation of
20596 2004-11-24 Steven Bosscher <stevenb@suse.de>
20598 * misc.c (gnat_post_options): Don't clear
20599 flag_inline_functions.
20601 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
20604 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
20607 2004-11-21 Andreas Jaeger <aj@suse.de>
20609 * stylesw.adb: Change Style_Check_Subprogram_Order to
20610 Style_Check_Order_Subprograms.
20612 2004-11-18 Arnaud Charlet <charlet@adacore.com>
20614 * adaint.h, adaint.c
20615 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
20617 Add also a cast to kill another warning.
20618 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
20619 parameter with the priority class of the parent process instead of
20620 always using the NORMAL_PRIORITY_CLASS.
20621 (__gnat_dup): New function.
20622 (__gnat_dup2): New function.
20623 (__gnat_is_symbolic_link): Enable the effective body of this
20624 function when __APPLE__ is defined.
20626 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
20629 2004-11-18 Olivier Hainque <hainque@adacore.com>
20631 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
20632 address of which may be used to represent "others" and "all others"
20633 choices in exception tables, instead of the current harcoded
20634 (void *)0 and (void *)1.
20635 (Setup_Exception): Do nothing in the GNAT SJLJ case.
20637 * gigi.h (others_decl, all_others_decl): New decls representing the
20638 new Others_Value and All_Others_Value objects.
20639 (struct attrib): Rename "arg" component as "args", since GCC expects a
20640 list of arguments in there.
20642 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
20643 corresponding objects exported by a-exexpr, instead of hardcoded dummy
20646 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
20647 others_decl and all_others_decl instead of hardcoded dummy addresses
20648 to represent "others" and "all others" choices, which is cleaner and
20649 more flexible with respect to the possible eh pointer encoding policies.
20651 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
20652 (process_attributes): Account for the naming change of the "args"
20653 attribute list entry component.
20655 * decl.c (build_attr_list): Rename into prepend_attributes to allow
20656 cumulating attributes for different entities into a single list.
20657 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
20658 attributes for the current entity and propagate first subtype
20659 attributes to other subtypes.
20660 <E_Procedure>: Attribute arguments are attr->args and not
20661 attr->arg any more.
20662 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
20663 argument provided, as this is what GCC expects. Use NULL_TREE instead
20666 2004-11-18 Robert Dewar <dewar@adacore.com>
20668 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
20669 Minor reformatting througout (including new function specs)
20670 Add ??? comments asking for clarification.
20672 2004-11-18 Thomas Quinot <quinot@adacore.com>
20674 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
20675 incomplete duplicate implementation of this subprogram from butil.
20677 2004-11-18 Thomas Quinot <quinot@adacore.com>
20679 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
20680 procedures factors the common processing for building an RPC receiver
20681 for an RCI package or an RACW type.
20682 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
20683 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
20684 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
20686 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
20688 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
20690 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
20691 distribution subprogram identifiers that are either subprogram numbers
20693 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
20694 string distribution identifiers assigned to a given subprogram.
20695 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
20696 (Add_RAS_Dereference_TSS): Add comments.
20697 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
20698 is not referenced yet because it will be used by the PolyORB DSA
20700 (Insert_Partition_Check): Remove fossile code.
20701 (First_RCI_Subprogram_Id): Document this constant.
20702 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
20704 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
20705 replaced with calls to Get_Library_Unit_Name_String. Previously there
20706 were several instances of the same code in different locations in the
20707 compiler; this checkin completes the replacement of all of these
20708 instances with calls to a common subprogram.
20709 Minor reformatting.
20711 * sem_dist.adb: Remove comment noting that RPC receiver generation
20712 should be disabled for RACWs that implement RASs.
20713 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
20715 * sem_util.ads, sem_util.adb (Has_Stream): New function
20716 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
20717 qualified name of a library unit into the name buffer.
20718 (Note_Possible_Modification): Generate a reference only
20719 if the context comes from source.
20721 * snames.ads (PCS_Names): New subtype corresponding to names of
20722 supported implementations of the Partition Communication Subsystem
20723 (PCS) (i.e. the runtime library support modules for the distributed
20726 2004-11-18 Robert Dewar <dewar@adacore.com>
20727 Ed Schonberg <schonberg@adacore.com>
20729 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
20730 (Has_Rep_Pragma): New function
20731 (Has_Attribute_Definition_Clause): New function
20732 (Record_Rep_Pragma): Moved here from sem_ch13.adb
20733 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
20735 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
20737 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
20738 (Expand_Pragma_Psect_Object): New procedure
20739 These procedures contain the revised and cleaned up processing for
20740 these two pragmas. This processing was formerly in Sem_Prag, but
20741 is more appropriately moved here. The cleanup involves making sure
20742 that the pragmas are properly attached to the tree, and that no
20743 nodes are improperly shared.
20745 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
20746 pragmas to Exp_Prag, which is more appropriate.
20747 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
20748 check for duplicates Remove use of Is_Psected flag, no longer needed.
20749 Use new Make_String_Literal function with string.
20751 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
20752 that are functions return universal values, that have to be converted
20753 to the context type.
20754 Use new Make_String_Literal function with string.
20755 (Get_Stream_Convert_Pragma): New function, replaces the use of
20756 Get_Rep_Pragma, which had to be kludged to work in this case.
20758 * freeze.adb: Use new Has_Rep_Pragma function
20760 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
20761 function with string.
20762 Use new Has_Rep_Pragma function.
20764 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
20767 2004-11-18 Robert Dewar <dewar@adacore.com>
20769 * errout.ads, errout.adb: (First_Sloc): New function
20771 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
20772 check (-gnatyx) instead of being included as a redundant construct
20775 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
20776 Style_Check_Order_Subprograms.
20778 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
20779 stylesw.adb: Add Style_Check_Xtra_Parens
20781 * usage.adb: Add line for -gnatyx (check extra parens)
20783 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
20785 2004-11-18 Ed Schonberg <schonberg@adacore.com>
20786 Robert Dewar <dewar@adacore.com>
20788 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
20789 discriminant of a constrained subtype, analyze the copy of the
20790 corresponding constraint, because in some cases it may be only
20791 partially analyzed.
20792 Removes long-lived ??? comments.
20794 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
20795 handled controlled or secondary-stack expressions within the
20796 iteration_scheme of a loop.
20798 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
20799 bounds that may contain functions calls, to prevent memory leaks when
20800 the bound contains a call to a function that uses the secondary stack.
20801 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
20802 generate temporaries for loop bounds that might contain function calls
20803 that require secondary stack and/or finalization actions.
20805 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
20806 selected component and the selector is overloadable (not just a
20807 function) treat as function call, Analyze_Call will disambiguate if
20809 (Analyze_Selected_Component): Do not generate an actual subtype for the
20810 selected component if expansion is disabled. The actual subtype is only
20811 needed for constraint checks.
20812 (Analyze_Allocator): If restriction No_Streams is set, then do
20813 not permit objects to be declared of a stream type, or of a
20814 composite type containing a stream.
20816 * restrict.ads: Remove the a-stream entry from Unit_Array, since
20817 No_Streams no longer prohibits with'ing this package.
20819 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
20820 discriminants, but the parent base has unknown discriminants, there is
20821 no discriminant constraint to inherit. Such a discrepancy can arise
20822 when the actual for a formal type with unknown discriminants is a
20823 similar private type whose full view has discriminants.
20824 (Analyze_Object_Declaration): If restriction No_Streams is set, then
20825 do not permit objects to be declared of a stream type, or of a
20826 composite type containing a stream.
20828 2004-11-18 Ed Schonberg <schonberg@adacore.com>
20830 * exp_dbug.ads: Update documentation to reflect simpler encoding for
20831 protected operations.
20833 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
20834 generated name, it complicates decoding in gdb and hinders debugging
20835 of protected operations.
20836 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
20837 flag for the protected entry barrier function.
20838 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
20839 flag for the protected entry function.
20841 2004-11-18 Nicolas Setton <setton@adacore.com>
20843 * expect.c: Define __unix__ when __APPLE__ is defined.
20845 * Makefile.in: Inform the value of the variable GMEM_LIB in the
20846 Darwin-specific section.
20848 * lang-specs.h: Change the placement of the %1 marker.
20849 Works around the fact that gcc adds -fPIC by default under Darwin.
20851 2004-11-18 Ed Schonberg <schonberg@adacore.com>
20853 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
20854 type of the object with the packed array type, set the Analyzed flag
20855 on the object if it is an entity or simple indexed component, to avoid
20856 spurious type errors.
20858 2004-11-18 Gary Dismukes <dismukes@adacore.com>
20860 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
20861 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
20862 separate line from the version message.
20864 2004-11-18 Ed Falis <falis@adacore.com>
20866 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
20868 (init_float): Eliminate initialization of floating point status for
20869 AE653. The instructions have no effect for vThreads.
20871 2004-11-18 Vincent Celier <celier@adacore.com>
20873 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
20874 gnatbind is invoked with -shared.
20876 2004-11-18 Jose Ruiz <ruiz@adacore.com>
20878 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
20879 for Detect_Blocking which is redundant with the check done within the
20880 procedure Protected_Single_Entry_Call.
20881 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
20882 Detect_Blocking which is redundant with the check done within the
20883 procedure Protected_Single_Entry_Call.
20885 2004-11-18 Vincent Celier <celier@adacore.com>
20887 * makegpr.adb (Compile): Put the compiling switches (in package
20888 Compiler and on the command line) immediately after "-c", instead of
20889 at the end of the command line invocation of the compiler, when
20890 compiling a non-Ada file.
20891 (Build_Global_Archive): When there is no need to rebuild the archive,
20892 set Global_Archive_Exists, so that the archive is passed to the linker
20895 2004-11-18 Robert Dewar <dewar@adacore.com>
20896 Sergey Rybin <rybin@adacore.com>
20899 Remove extra paren check from list of checks for redundant constructs
20900 Add documentation of new -gnatyx style check (check extra parens)
20901 Remove paragraph about gnatelim debug options.
20903 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
20904 objects rather than forbidding dependencies on the package Ada.Streams.
20906 * sinfo.ads: Add ??? note that we should document pragmas passed to
20909 * g-expect.ads: Fix a few typos in the comments.
20911 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
20913 * misc.c (gnat_handle_option): Use %< and %> for quoting in
20916 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20918 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
20920 2004-11-07 Andreas Schwab <schwab@suse.de>
20922 * Makefile.in (install-gnatlib): Remove spurious hyphen.
20924 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
20927 * Makefile.in (darwin): Set soext to .dylib.
20929 2004-10-26 Vincent Celier <celier@gnat.com>
20930 Thomas Quinot <quinot@act-europe.fr>
20932 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
20933 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
20934 there is no use of GNAT.Sockets.Constants.
20935 Remove remaining pragma Import for C_Write
20936 Remove C_Read and C_Write from internal implementation unit
20937 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
20938 the read and write functions from the system runtime library is fine
20939 on UNIX but won't work under Windows).
20941 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
20942 (Check_Selector): Use C_Recv instead of C_Read.
20943 Selectors are the GNAT.Sockets abstraction to perform a select()
20944 call on a set of descriptors. To allow abortion of an ongoing
20945 select operation, some data is written to a dedicated socket that
20946 is always monitored.
20947 Under Windows, the write and read library functions cannot operate
20948 on sockets, so we need to use send and recv instead, which is portable
20949 across all supported platforms.
20951 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
20952 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
20953 (using the read and write functions from the system runtime library is
20954 fine on UNIX but won't work under Windows).
20956 2004-10-26 Nicolas Setton <setton@act-europe.fr>
20958 * mlib-tgt-darwin.adb: New file.
20960 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20961 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20962 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
20963 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
20966 * Makefile.in: Add support for building shared libraries under Darwin.
20967 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
20968 the low level EH init subprogram to be called from __gnat_initialize.
20970 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
20971 indicates which options to pass to the archive indexer.
20973 * mlib-utl.adb: Add support for calling ranlib with additional
20974 options. This is needed for instance under Mac OS X.
20975 (Ranlib_Options): New global variable, used to store the potential
20976 options to pass to ranlib.
20977 (Ar): Use Ranlib_Options when spawning ranlib.
20978 (Initialize): Set the value of ranlib option.
20980 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
20982 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
20983 instead of 8K, to reflect the real potential needs for stack-checking
20986 2004-10-26 Pascal Obry <obry@gnat.com>
20988 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
20990 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
20991 Windows only the initial thread stack size can be set so it is good to
20992 start we a low stack size.
20993 The OS will adjust the size as needed.
20995 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
20996 Nicolas Setton <setton@act-europe.fr>
20998 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
20999 "__unix__" instead of "unix".
21000 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
21001 sections were just mistakenly ignored. The former is
21002 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
21003 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
21004 of hpux. This prevents an unwanted definition of the symbol
21005 convert_addresses in adaint.o.
21007 2004-10-26 Gary Dismukes <dismukes@gnat.com>
21009 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
21010 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
21012 2004-10-26 Cyrille Comar <comar@act-europe.fr>
21014 * a-filico.ads, a-filico.adb: fix incorrect header.
21016 2004-10-26 Javier Miranda <miranda@gnat.com>
21018 * a-ststio.ads: Fix typo in identifier
21020 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
21022 * sem_ch4.adb: Minor reformatting.
21024 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21026 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
21027 enabled, check the result of unary and binary operations when the
21028 expression is the right-hand side of an assignment.
21030 2004-10-26 Vincent Celier <celier@gnat.com>
21032 * clean.adb (Delete): Do not output warnings when in quiet output and
21033 not in verbose mode.
21034 (Force_Deletions): New Boolean flag, defaulted to False
21035 (Delete): Only delete a file if it is writable, and when
21036 Force_Deletions is True.
21037 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
21038 (Usage): Line for new switch -f
21039 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
21042 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
21044 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
21045 JM type only if its size matches that of the wrapper. When a size is
21046 prescribed and the field is not aliased, remove the wrapper of a JM
21047 type only if the size is not greater than that of the packed array.
21048 (gnat_to_gnu_entity): Change the extension of packed array wrappers
21051 2004-10-26 Geert Bosch <bosch@gnat.com>
21053 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
21054 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
21055 (Pred): Implement in terms of Succ.
21057 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21059 * exp_aggr.adb (Safe_Component): An aggregate component that is an
21060 unchecked conversion is safe for in-place use if the expression of the
21061 conversion is safe.
21062 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
21063 be expandable in place even if the aggregate does not come from source.
21064 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
21065 designated object of an allocator in place, rather than building it
21066 first on the stack. The previous scheme forces a full copy of the array,
21067 and may be altogether unsusable if the size of the array is too large
21068 for stack allocation.
21070 2004-10-26 Robert Dewar <dewar@gnat.com>
21072 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
21073 compares if the component is atomic.
21075 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
21076 array assignment if the component type is atomic.
21078 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21079 Eric Botcazou <ebotcazou@act-europe.fr>
21081 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
21082 is aliased and is a by_reference type, do not pass by copy.
21083 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
21084 detect whether the call is in the right side of an assignment or
21085 the expression of an object declaration. Recurse on component
21086 association within aggregates.
21087 Call it in the condition that determines whether the temporary is
21088 necessary for correct stack-checking.
21090 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
21092 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
21093 RACW_Type, used in the PolyORB version.
21094 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
21095 version and the GARLIC version.
21097 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
21098 Rename RCI_Info to RCI_Locator for better consistency between the
21099 GARLIC and PolyORB versions of the distributed systems annex.
21100 (DSA_Implementation_Name): This enumeration lists the possible
21101 implementations of the Partition Communication Subsystem for the
21102 Distributed Systems Annex (DSA). The three available implementations
21103 are the dummy stub implementation (No_DSA), and two versions based on
21104 two different distribution runtime libraries: GARLIC and PolyORB. Both
21105 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
21107 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
21110 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
21111 between the GARLIC and PolyORB versions of the distributed systems
21113 Remove RE_Unbounded_Reclaim_Pool since it is unused.
21115 2004-10-26 Gary Dismukes <dismukes@gnat.com>
21117 * gnat1drv.adb: Suppress calling the back end when
21118 Frontend_Layout_On_Target is true.
21120 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
21122 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
21123 Set_Read_Only): New subprograms.
21124 These new routines allow the user to set or unset the Owner execute
21125 and Owner write permission flags on a file.
21127 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
21128 GNAT.OS_Lib.Set_Executable instead of rolling our own.
21130 2004-10-26 Matthew Gingell <gingell@gnat.com>
21132 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
21134 2004-10-26 Pascal Obry <obry@gnat.com>
21136 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
21137 memory before the faulting page we properly test the process read
21138 access for this address using appropriate Win32 routine.
21139 (HPUX sections): guard with "__hpux__" instead of "hpux".
21141 2004-10-26 Robert Dewar <dewar@gnat.com>
21143 * lib-xref.adb (Generate_Reference): Don't complain about reference to
21144 entry parameter if pragma Unreferenced set, since we do not properly
21145 handle the case of multiple parameters.
21147 2004-10-26 Vincent Celier <celier@gnat.com>
21149 * prj-env.adb: (Contains_ALI_Files): New Boolean function
21150 (Ada_Objects_Path.Add): For a library project, add to the object path
21151 the library directory only if there is no object directory or if the
21152 library directory contains ALI files.
21153 (Set_Ada_Paths.Add.Recursive_Add): Ditto
21155 2004-10-26 Vincent Celier <celier@gnat.com>
21157 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
21158 extension of library projects.
21160 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
21161 path defaults to ".:<prefix>/lib/gnat".
21162 (Parse): For an extending all project, allow direct import of a project
21163 that is virtually extended.
21165 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
21166 the specified name is directly imported, return its ID. Otherwise, if
21167 an extension of this project is imported, return the ID of the
21170 2004-10-26 Robert Dewar <dewar@gnat.com>
21172 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
21173 (Sub3): New procedure, used by Scaled_Divide
21174 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
21175 correct more than one instance of failure to propagate carries
21177 (Double_Divide): Handle overflow case of largest negative number
21178 divided by minus one.
21180 * s-arit64.ads (Double_Divide): Document that overflow can occur in
21181 the case of a quotient value out of range.
21184 2004-10-26 Robert Dewar <dewar@gnat.com>
21186 * s-bitops.adb (Bit_Eq): Remove redundant check.
21188 * s-bitops.ads: Minor comment updates
21189 Change some occurrences of Address to System.Address
21191 * s-carsi8.ads: Fix minor cut-and-paste error in comments
21193 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21195 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
21196 accessibility check to prefix that is a protected operation.
21198 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21200 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
21201 empty, post message on stub.
21203 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21204 Javier Miranda <miranda@gnat.com>
21206 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
21207 current instance appears within a unit that is directly in the context
21209 Used to determine whether the body of the instance should be analyzed
21210 immediately after its spec, to make its subprogram bodies available
21211 for front-end inlining.
21212 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
21213 constraint is not allowed on the component type (AARM 12.5.3(3))
21215 2004-10-26 Cyrille Comar <comar@act-europe.fr>
21217 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
21218 'Storage_Pool): enhance, document & limit detection of non-sharable
21221 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
21223 * s-pooglo.ads: Add more documentation now that this pool is properly
21226 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21228 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
21229 or protected type with discriminants, do not constrain the
21230 corresponding record type if the subtype declaration has no
21231 discriminant constraints. This can be the case in source code, or in
21232 the subtype declaration created to rename an actual type within an
21235 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21237 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
21238 different kind of stub (possibly wrong name for file), do not check
21240 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
21241 includes call to some function that returns an unconstrained type, do
21244 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21246 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
21247 appear in the code for the main unit. Dependencies among units in the
21248 context of the main unit are established when those other units are
21249 compiled. Otherwise spurious elaboration constraints can generate
21250 incorrect elaboration circularities.
21252 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
21253 Ed Schonberg <schonberg@gnat.com>
21255 * sem_util.adb (Is_Aliased_View): Defend against the case where this
21256 subprogram is called with a parameter that is not an object name. This
21257 situation arises for some cases of illegal code, which is diagnosed
21258 later, and in this case it is wrong to call Is_Aliased, as that might
21259 cause a compiler crash.
21260 (Explain_Limited_Type): Refine previous fix to include
21261 inherited components of derived types, to provide complete information.
21263 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
21264 is the prival for a protected object.
21265 It is necessary to mark this entity as a variable, in addition to
21266 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
21267 modified to avoid checking the Aliased flag on entities that are not
21268 objects. (Checking that flag for non-objects is erroneous and could
21269 lead to a compiler crash).
21271 2004-10-26 Robert Dewar <dewar@gnat.com>
21273 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
21274 X_Frac = 0.5, then we know that the number X must be positive.
21275 (Succ): Remove the same redundant test, and also fix the primary test
21276 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
21278 (Decompose): Add fuller comments to spec
21280 2004-10-26 Pascal Obry <obry@gnat.com>
21282 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
21283 validity (process must have read access). Set to 0 in all other cases.
21284 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
21285 violation on Win32.
21286 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
21287 segmentation violation.
21289 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
21291 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
21292 whose type is a constructed subtype of an aliased object with an
21293 unconstrained nominal subtype, convert the actual to the constructed
21294 subtype before taking its address.
21296 2004-10-26 Vincent Celier <celier@gnat.com>
21298 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
21299 (Is_Path_Name_Case_Sensitive): New function
21301 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
21302 (Base_Name, Simple_Name, Current_Directory, Compose,
21303 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
21306 2004-10-26 Cyrille Comar <comar@act-europe.fr>
21307 Vasiliy Fofanov <fofanov@act-europe.fr>
21308 Vincent Celier <celier@gnat.com>
21310 * gnat_ugn.texi: Generalize "finding memory problems" section into a
21311 "memory management issues" section and document some of the useful
21312 memory pools provided as part of the GNAT library.
21313 Remove "virtual" from declaration of A::method2 in
21314 the simple example of Ada/C++ mixed system.
21315 Library Projects may be virtually extended: their virtual extensions
21316 are not Library Projects.
21317 Added section on extending project hierarchies.
21319 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
21321 * adaint.c (__gnat_get_libraries_from_registry): Cast value
21323 (__gnat_portable_spawn): Remove const.
21325 * mingw32.h (MAXPATHLEN): Check for previous definition.
21327 2004-10-17 Matthias Klose <doko@debian.org>
21329 * gnatvsn.ads: Set gnat library version to 4.0.
21331 2004-10-05 Vincent Celier <celier@gnat.com>
21333 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
21335 2004-10-04 Laurent GUERBY <laurent@guerby.net>
21338 * Makefile.in: Define and use RANLIB_FLAGS.
21340 2004-10-04 Pascal Obry <obry@gnat.com>
21342 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
21343 other x86 platforms).
21345 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
21347 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
21348 in general and triggers stack alignment adjustment for thread entry
21349 points on targets where this is necessary.
21351 2004-10-04 Bernard Banner <banner@gnat.com>
21354 * Makefile.in: Add section for powerpc linux
21355 Add variant i-vxwork-x86.ads
21357 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
21359 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
21361 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
21362 table registration calls when need be. Ensures no reference to the crt
21363 ctors symbol are issued in the SJLJ case, which avoids possible
21364 undefined symbol errors in the case of modules to be statically linked
21367 2004-10-04 Javier Miranda <miranda@gnat.com>
21369 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
21370 in-line the code corresponding to subprogram Analyze_Actuals. In
21371 addition, analyze the actuals only in case of subprogram call.
21373 2004-10-04 Ed Falis <falis@gnat.com>
21375 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
21377 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
21379 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
21380 in the documentation.
21382 2004-10-04 Robert Dewar <dewar@gnat.com>
21384 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
21386 (Analyze_Block_Statement): Add circuitry to detect following dead code
21387 (Check_Unreachable_Code): Handle case of block exit
21389 2004-10-04 Robert Dewar <dewar@gnat.com>
21391 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
21392 (XMatchD): Avoid warning for Logic_Error call
21394 2004-10-04 Robert Dewar <dewar@gnat.com>
21396 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
21397 consider expressions buried within a procedure actual to be an actual.
21398 This caused some blowups with uses of packed slices within a procedure
21401 2004-10-04 Robert Dewar <dewar@gnat.com>
21403 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
21404 longer need to be initialized to zero.
21405 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
21406 initialized to zero.
21408 * checks.adb (Expr_Known_Valid): Packed arrays are now always
21409 considered valid, even if the representation is modular. That's correct
21410 now that we no longer initialize packed modular arrays to zero.
21412 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
21413 suffixes. These are now documented as the only cases in which the
21414 debugger ignores outer records.
21415 Previously, the spec allowed arbitrary suffixes for this purpose.
21416 Change name of LJM to JM for packed array pad records
21417 Create separate section on packed array handling, and add a whole new
21418 set of comments to this section describing the situation with packed
21419 modular types and justification requirements depending on endianness.
21421 2004-10-04 Robert Dewar <dewar@gnat.com>
21423 * a-except.adb: Add a comment for last change
21425 * einfo.ads: Minor spelling correction in comment
21427 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
21429 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
21432 * sem_util.ads: Minor comment update
21434 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21436 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
21437 Inline_Always when in Configurable_Run_Time mode.
21439 * sem_prag.adb (Process_Convention): If entity is an inherited
21440 subprogram, apply convention to parent subprogram if in same scope.
21441 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
21442 when in Configurable_Run_Time mode.
21444 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21446 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
21447 class_wide type after component list has been inherited.
21449 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21451 * sem_ch12.adb (Check_Generic_Actuals): New predicate
21452 Denotes_Previous_Actual, to handle properly the case of a private
21453 actual that is also the component type of a subsequent array actual.
21454 The visibility status of the first actual is not affected when the
21455 second is installed.
21456 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
21457 make fully recursive the treatment of formals of packages declared
21459 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
21460 the above on exit from an instantiation.
21461 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
21462 current instantiation which is now complete.
21463 (Analyze_Package_Instantiation): No instantiated body is needed if the
21464 main unit is generic. Efficient, and avoid anomalies when a instance
21465 appears in a package accessed through rtsfind.
21467 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21469 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
21470 do not generate a declaration for a temporary if the call is part of a
21471 library-level instantiation.
21473 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21475 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
21476 searching for a limited component to flag.
21478 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
21479 expansion of Input, to account for the fact that the implicit call
21480 generated by the attribute reference must freeze the user-defined
21481 stream subprogram. This is only relevant to 'Input, because it can
21482 appear in an object declaration, prior to the body of the subprogram.
21484 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
21485 expansion can proceed and further errors uncovered.
21486 (Minor clean up): Fix cases of using | instead of \ for continuation
21489 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21491 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
21493 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
21494 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
21495 Use gcc_assert and gcc_unreachable.
21497 * decl.c (gnat_to_gnu_entity, case object): Check and process a
21498 specified alignment before validating size.
21499 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
21500 stripped-down declaration for the type of the inner field when making
21503 * utils.c (finish_record_type): Do not compute the size in units
21504 incrementally. Instead compute it once for the rep clause case.
21505 Use gcc_assert and gcc_unreachable.
21507 2004-10-04 Vincent Celier <celier@gnat.com>
21509 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
21511 (Is_Valid_Path_Name): Take '/' as a directory separator.
21513 2004-10-04 Vincent Celier <celier@gnat.com>
21515 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
21516 (Extended_Project) only if Extended_Project is defined, to avoid
21518 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
21520 (Parse_Single_Project): Ditto.
21522 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
21523 Add_To_Project_Path for virtual projects.
21525 2004-10-04 Vincent Celier <celier@gnat.com>
21527 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21528 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
21529 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
21530 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
21531 parameter Options_2.
21533 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
21534 Build_Dynamic_Library with an empty Options_2.
21536 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
21539 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
21540 directory separator, if any.
21541 (Gprmake): Do not allow mains on the command line for library projects.
21542 Do not attempt to link when the project is a library project.
21543 (Library_Opts): New table to store Library_Options.
21544 (Build_Library): If Library_Options is specified, pass these options
21545 when building a shared library.
21547 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
21549 * s-tposen.adb (Service_Entry): The object must be always unlocked at
21550 the end of this procedure now that the unlock operation was inserted
21553 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
21555 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
21556 corresponding to the Preallocated_Stacks flags in System.
21557 (Get_Target_Parameters): Including the processing for
21558 Preallocated_Stacks.
21560 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
21561 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
21562 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
21563 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
21564 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
21565 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
21566 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
21567 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
21568 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
21569 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
21570 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
21571 used to signal whether the compiler creates the required stacks and
21572 descriptors for the different tasks (when True) or it is done by the
21573 underlying operating system at run time (when False).
21574 It is initially set to False in all targets.
21576 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
21577 if it is supported by the target.
21578 (Make_Task_Create_Call): Pass the stack address if it has been
21579 previously created. Otherwise pass a Null_Address.
21581 * snames.adb: Add _stack.
21583 * snames.ads: Add Name_uStack. Required to allow the expander to
21584 statically allocated task stacks.
21586 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
21587 Stack_Address argument.
21588 Check that its value is equal to Null_Address because this target does
21589 not support the static stack allocation.
21591 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
21593 * usage.adb: Change "pragma inline" to "pragma Inline" in information
21596 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
21598 * exp_dist.adb: Split declaration of asynchronous flag out of
21599 Add_RACW_Read_Attribute.
21600 Minor reformatting for better alignment with PolyORB version.
21601 Store the entity for the asynchronous flag of an RACW, rather than the
21602 expression, in the asynchronous flags table. This will allow this flag
21603 to be used in other subprograms beside Add_RACW_Read_Attribute.
21605 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
21607 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
21608 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21609 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
21610 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
21611 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
21612 sockets constant MSG_NOSIGNAL (Linux-specific).
21613 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
21614 all Send operations.
21615 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
21616 from trigerring SIGPIPE.
21617 Rename components to avoid clash with Ada 2005 possible reserved
21619 (Check_Selector): When the select system call returns with an error
21620 condition, propagate Socket_Error to the caller.
21622 2004-10-01 Jan Hubicka <jh@suse.cz>
21624 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
21626 2004-09-23 Robert Dewar <dewar@gnat.com>
21629 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
21630 instead do this at freeze time (we won't do it if there is an address
21632 Change "pragma inline" to "pragma Inline" in information and error
21634 Minor reformatting.
21636 * freeze.adb (Check_Address_Clause): Remove previous change, not the
21637 right way of doing things after all.
21638 (Freeze_Entity): For object, set Is_Public for imported entities
21639 unless there is an address clause present.
21641 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
21643 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
21644 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
21645 ensures proper handling of types with rep clauses, which might have
21646 their TYPE_SIZE set already.
21648 2004-09-21 Robert Dewar <dewar@gnat.com>
21650 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
21651 packed array types in both little- and big-endian cases. This change
21652 ensures that we no longer count on the unused bits being initialized
21653 for such types (and in particular ensures that equality testing will
21654 only read the relevant bits).
21655 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
21656 These changes mean that we no longer need to initialize small packed
21658 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
21659 optimization to an LJM field as to its parent field.
21661 * ada-tree.h, trans.c, utils.c, utils2.c:
21662 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
21664 2004-09-20 Jan Hubicka <jh@suse.cz>
21666 * utils.c (gnat_finalize): Remove.
21667 (end_subprog_body): Directly call cgraph_finalize_function;
21668 do not lower the nested functions.
21670 2004-09-20 Robert Dewar <dewar@gnat.com>
21673 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
21674 if an address clause is present, since that means that the Import
21677 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
21679 * 5tsystem.ads: Removed, no longer used.
21681 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
21682 Zack Weinberg <zack@codesourcery.com>
21684 * ada-tree.def: Use tree_code_class enumeration constants
21685 instead of code letters.
21686 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
21687 Update for new tree-class enumeration constants.
21689 2004-09-17 Vincent Celier <celier@gnat.com>
21691 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
21692 capabilities of the general project manager.
21694 2004-09-09 Vincent Celier <celier@gnat.com>
21696 * a-direct.ads: Add pragma Ada_05
21697 (Directory_Entry_Type): Give default value to component Kind to avoid
21698 not initialized warnings.
21700 * a-direct.adb (Current_Directory): Remove directory separator at the
21702 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
21703 an existing directory.
21704 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
21705 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
21706 Convert the result to File_Size.
21708 * prj.ads: (Project_Error): New exception
21710 * prj-attr.adb: Except in procedure Initialize, Fail comes from
21711 Prj.Com, not from Osint.
21712 (Attrs, Package_Attributes): Tables moved to private part of spec
21713 (Add_Attribute, Add_Unknown_Package): Moved to new child package
21715 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
21716 Prj.Project_Error after call to Fail.
21717 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
21718 Fail. Check that package name is not already in use.
21720 * prj-attr.ads: Comment updates to indicate that all subprograms may be
21721 used by tools, not only by the project manager, and to indicate that
21722 exception Prj.Prj_Error may be raised in case of problem.
21723 (Add_Unknown_Package, Add_Attribute): Moved to new child package
21725 (Attrs, Package_Attributes): Table instantiations moved from the body to
21726 the private part to be accessible from Prj.Attr.PM body.
21728 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
21729 from new package Prj.Attr.PM.
21730 (Parse_Attribute_Declaration): Call Add_Attribute from new package
21733 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
21735 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
21736 instead of Elaboration_Checks).
21738 * a-calend.adb: Minor reformatting
21740 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21742 * gigi.h (maybe_pad_type): New declaration.
21743 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
21745 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
21747 * cuintp.c: Convert to use buildN.
21749 * decl.c (maybe_pad_type): No longer static.
21750 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
21752 Convert to use buildN.
21754 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
21755 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
21756 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
21758 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
21759 (gnat_gimplify_expr, case ADDR_EXPR): New case.
21760 Convert to use buildN.
21762 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
21763 TREE_READONLY for const.
21764 Convert to use buildN.
21766 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
21767 (create_var_decl): Refine when TREE_STATIC is set.
21768 Convert to use buildN.
21770 2004-09-09 Gary Dismukes <dismukes@gnat.com>
21772 * gnat_ugn.texi: Delete text relating to checking of ali and object
21775 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
21778 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
21780 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
21781 pragmas recognized by GNAT.
21783 * gnat_rm.texi: Document pragma Detect_Blocking.
21785 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
21786 raise Program_Error if called from a protected operation.
21788 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
21789 the protected action nesting level.
21790 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
21791 protected action nesting level.
21792 (Unlock): When pragma Detect_Blocking is active decrease the protected
21793 action nesting level.
21795 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
21796 Protected_Action_Nesting.
21798 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
21799 Common_ATCB record. It contains the dynamic level of protected action
21800 nesting for each task. It is needed for checking whether potentially
21801 blocking operations are called from protected operations.
21802 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
21803 Detect_Blocking is active or not in the partition.
21805 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
21806 raise Program_Error if called from a protected operation.
21807 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
21808 Program_Error if called from a protected operation.
21809 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
21810 Program_Error if called from a protected operation.
21812 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
21813 raise Program_Error if called from a protected operation.
21815 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
21816 raise Program_Error if called from a protected operation, and increase
21817 the protected action nesting level.
21818 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
21819 Program_Error if called from a protected operation, and increase the
21820 protected action nesting level.
21821 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
21822 protected action nesting level.
21824 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
21825 raise Program_Error if called from a protected operation, and increase
21826 the protected action nesting level.
21827 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
21828 Program_Error if called from a protected operation, and increase the
21829 protected action nesting level.
21830 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
21831 raise Program_Error if called from a protected operation.
21832 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
21833 active, raise Program_Error if called from a protected operation.
21834 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
21835 protected action nesting level.
21837 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
21838 insertion of the statement raising Program_Error. The run time
21839 contains the required machinery for handling that.
21841 * sem_util.ads: Change comment associated to procedure
21842 Check_Potentially_Blocking_Operation.
21843 This procedure does not insert a call for raising the exception because
21844 that is currently done by the run time.
21846 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
21848 * init.c: Add the global variable __gl_detect_blocking that indicates
21849 whether pragma Detect_Blocking is active (1) or not (0). Needed for
21850 making the pragma available at run time.
21851 (__gnat_set_globals): Pass and update the detect_blocking parameter.
21853 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
21854 pragma Detect_Blocking is active.
21856 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
21858 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
21859 DB is found in the ali file. Any unit compiled with pragma
21860 Detect_Blocking active forces its effect in the whole partition.
21862 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
21863 Detect_Blocking is active and delay is called from a protected
21866 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
21867 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
21868 Detect_Blocking is active (0 otherwise).
21869 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
21870 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
21873 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
21875 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
21876 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
21879 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
21880 (Register_Receiving_Stub): Add Subp_Info formal parameter.
21881 Update API in placeholder implemetation of s-parint to reflect changes
21882 in distribution runtime library.
21884 * sem_ch3.adb (Expand_Derived_Record): Rename to
21885 Expand_Record_Extension.
21887 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
21888 primitive operations of potentially distributed object types that have
21889 non-controlling anonymous access formals.
21891 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
21893 New implementation of expansion for remote access-to-subprogram types,
21894 based on the RACW infrastructure.
21895 This version of sem_dist is compatible with PolyORB/DSA as well as
21898 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
21899 Asynchrronous that applies to a remote access-to-subprogram type, mark
21900 the underlying RACW type as asynchronous.
21902 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
21903 __gnat_using_gnu_linker to 1.
21905 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
21906 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
21907 GNAT.Perfect_Hash_Generators, and remove the empty
21908 GNAT.Perfect_Hash package.
21910 * atree.adb: Minor reformatting
21912 * exp_ch3.adb (Expand_Derived_Record): Rename to
21913 Expand_Record_Extension.
21914 (Build_Record_Init_Proc.Build_Assignment): The default expression in
21915 a component declaration must remain attached at that point in the
21916 tree so New_Copy_Tree copies it if the enclosing record type is derived.
21917 It is therefore necessary to take a copy of the expression when building
21918 the corresponding assignment statement in the init proc.
21919 As a side effect, in the case of a derived record type, we now see the
21920 original expression, without any rewriting that could have occurred
21921 during expansion of the ancestor type's init proc, and we do not need
21922 to go back to Original_Node.
21924 * exp_ch3.ads (Expand_Derived_Record): Rename to
21925 Expand_Record_Extension.
21927 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
21928 Returns the RACW type used to implement a remote access-to-subprogram
21930 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
21931 New subprograms. Used to create a proxy tagged object for a remote
21932 subprogram. The proxy object is used as the designated object
21933 for RAS values on the same partition (unless All_Calls_Remote applies).
21934 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
21935 System.Partition_Interface.Get_Unique_Remote_Pointer.
21936 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
21937 Renamed from Add_RAS_*_Attribute.
21938 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
21940 New implementation of expansion for remote access-to-subprogram types,
21941 based on the RACW infrastructure.
21943 * exp_dist.ads (Copy_Specification): Update comment to note that this
21944 function can copy the specification from either a subprogram
21945 specification or an access-to-subprogram type definition.
21947 2004-09-09 Ed Schonberg <schonberg@gnat.com>
21949 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
21950 in an instance, between an explicit subprogram an one inherited from a
21951 type derived from an actual.
21953 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
21954 add a polling call if the subprogram is to be inlined by the back-end,
21955 to avoid repeated calls with multiple inlinings.
21957 * checks.adb (Apply_Alignment_Check): If the expression in the address
21958 clause is a call whose name is not a static entity (e.g. a dispatching
21959 call), treat as dynamic.
21961 2004-09-09 Robert Dewar <dewar@gnat.com>
21963 * g-trasym.ads: Minor reformatting
21965 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
21966 packed arrays, since unused bits are expected to be zero for a
21969 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
21971 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
21974 2004-09-09 Pascal Obry <obry@gnat.com>
21976 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
21977 enable map file generation. Add the right option to generate the map
21978 file if Map_File is set to True.
21980 * gnatdll.adb (Gen_Map_File): New variable.
21981 (Syntax): Add info about new -m (Map_File) option.
21982 (Parse_Command_Line): Add support for -m option.
21983 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
21984 Minor reformatting.
21986 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
21988 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
21989 new gnatdist implementation.
21990 Define a subpackage isolating the output routines specific to this
21993 2004-09-09 Joel Brobecker <brobecker@gnat.com>
21995 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
21997 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
21999 2004-09-09 Cyrille Comar <comar@act-europe.fr>
22001 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
22004 * opt.ads: Add Ada_Version_Runtime constant used to decide which
22005 version of the language is used to compile the run time.
22007 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
22009 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
22010 of variable length temporaries for function return now that the
22011 back-end and gigi support it.
22013 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22015 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
22017 * trans.c (struct stmt_group): Delete field GLOBAL.
22018 (gnat_init_stmt_group): Do not initialize it.
22019 (call_to_gnu): Use save_expr, not protect_multiple_eval.
22020 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
22021 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
22022 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
22023 (start_stmt_group): Likewise.
22024 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
22026 * utils2.c (ggc.h): Include.
22027 (build_call_raise): Call build_int_cst, not build_int_2.
22029 * utils.c (gnat_init_decl_processing): Fix arg to
22030 build_common_tree_nodes.
22031 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
22032 (gnat_define_builtin): Set built_in_decls.
22033 (init_gigi_decls): Call build_int_cst, not build_int_2.
22035 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
22036 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
22037 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
22038 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
22039 SET_TYPE_MODULE): Use them.
22040 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
22041 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
22042 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
22043 SET_TYPE_ADA_SIZE): Likewise.
22044 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
22045 (DECL_CONST_CORRESPONDING_VAR,
22046 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
22047 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
22048 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
22049 (TYPE_RM_SIZE_NUM): New macro.
22050 (TYPE_RM_SIZE): Modified to use above.
22052 * cuintp.c: (build_cst_from_int): New function.
22053 (UI_To_gnu): Use it.
22055 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
22056 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
22057 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
22058 MIN_EXPR for the size, copy it into new.
22060 2004-09-01 Robert Dewar <dewar@gnat.com>
22062 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
22063 packed indexed component where array is an IN OUT formal. This
22064 generated garbage code previously.
22066 * gnat_ugn.texi: Document -fverbose-asm
22068 * gnat-style.texi: Minor updates (note that boolean constants and
22069 variables are joined with AND/OR rather than short circuit forms).
22071 2004-09-01 Ed Schonberg <schonberg@gnat.com>
22073 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
22074 it is an upward conversion of an untagged type with no representation
22077 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
22079 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
22080 System.Partition_Interface.
22082 * checks.adb (Apply_Access_Checks): Do not generate checks when
22083 expander is not active (but check for unset reference to prefix of
22086 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
22087 pragma Debug as an if statement with a constant condition, for
22088 consistent treatment of entity references contained within the
22089 enclosed procedure call.
22091 2004-09-01 Vincent Celier <celier@gnat.com>
22093 * bindgen.adb: (Set_EA_Last): New procedure
22094 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
22096 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
22097 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
22098 linked without errors.
22099 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
22101 (Gen_Exception_Table_C): Correct same bugs
22103 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
22105 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
22106 on Windows, make sure that the drive letter is in upper case.
22108 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
22109 Windows, when the drive letter is added and Case_Sensitive is True, the
22110 drive letter is forced to upper case.
22112 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
22113 to Options_2 for the call to MLib.Utl.Gcc.
22115 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
22116 directory separator when defining BASE_DIR.
22118 2004-09-01 Pascal Obry <obry@gnat.com>
22120 * gprcmd.adb (Extend): Do not output trailing directory separator. This
22121 is not needed and it confuses Windows GNU/make which does not report
22122 directory terminated by a slash as a directory.
22123 (gprcmd): Idem for "pwd" internal command.
22125 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
22126 target names rewrite to fix regressions with recent version of
22127 GNU/make. Starting with GNU/make 3.80 the pipe character was not
22128 handled properly anymore.
22130 2004-09-01 Andreas Schwab <schwab@suse.de>
22132 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
22133 * raise.c [!IN_RTS]: Undef abort.
22135 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
22137 * utils2.c (build_allocator): Use ssize_int.
22139 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
22141 2004-08-27 Andreas Schwab <schwab@suse.de>
22143 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
22145 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
22146 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22148 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
22150 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
22152 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
22153 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
22154 * utils.c (init_gigi_decls): Likewise.
22155 * utils2.c (build_call_raise, build_allocator): Likewise.
22157 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
22159 * utils.c (gnat_init_decl_processing): Adjust
22160 build_common_tree_nodes call.
22162 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
22164 * utils2.c (build_allocator): Use build_int_cst for negative
22167 2004-08-18 Richard Henderson <rth@redhat.com>
22169 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
22171 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
22173 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
22175 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
22176 (gnat_to_gnu): Likewise.
22178 2004-08-16 Pascal Obry <obry@gnat.com>
22180 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
22181 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
22182 option and not mdll anymore. Update comment.
22184 2004-08-16 Pascal Obry <obry@gnat.com>
22186 * bld.adb (Put_Include_Project): Properly handle directory separators
22189 2004-08-16 Ed Schonberg <schonberg@gnat.com>
22191 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
22192 decreasing the number of allocated junk nodes while searching for the
22193 appropriate subprogram.
22195 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
22197 * cuintp.c (UI_To_gnu): Use build_int_cst..
22198 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
22199 * utils.c (init_gigi_decls): Likewise.
22200 * utils2.c (build_call_raise): Likewise.
22202 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
22204 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
22205 for a global aliased object with a variable size and an unconstrained
22206 nominal subtype, pretend there is no initializer if the one we have is
22207 incomplete, and avoid referencing an inexistant component in there. The
22208 part we have will be rebuilt anyway and the reference may confuse
22209 further operations.
22211 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
22213 * einfo.ads: Minor reformatting
22215 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
22216 restrictions in the ALI if we only want to warn about violations.
22218 2004-08-13 Vincent Celier <celier@gnat.com>
22220 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
22221 when creating a new Unit_Record in table Units.
22223 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
22224 that are violated, if any.
22226 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
22227 add directory separator if path already ends with a directory separator.
22229 2004-08-13 Ed Schonberg <schonberg@gnat.com>
22231 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
22232 unit, this is an attempt to inline a construct that is not available in
22233 the current restricted mode, so abort rather than trying to continue.
22235 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
22236 discriminants that rename those of the parent, recover names of
22237 original discriminants for the constraint on the full view of the
22239 (Complete_Private_Subtype): Do not create a subtype declaration if the
22240 subtype is an itype.
22242 * gnat_rm.texi: Added section on implementation of discriminated
22243 records with default values for discriminants.
22245 2004-08-13 Ed Schonberg <schonberg@gnat.com>
22248 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
22249 the second operand is overloaded.
22251 2004-08-10 Richard Henderson <rth@redhat.com>
22253 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
22254 add __builtin_alloca.
22256 2004-08-10 Richard Henderson <rth@redhat.com>
22258 * config-lang.in (boot_language): Yes.
22260 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
22262 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
22263 from complaining on potential uninitialized reference.
22264 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
22265 new specification and test explicitly for non-zero return value.
22267 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
22268 returning C.int, to avoid using a derived boolean type.
22270 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
22271 Duplicate_Subexpr_No_Checks in preference to direct use of
22272 Remove_Side_Effects and New_Copy_Tree.
22273 Clear Comes_From_Source on prefix of 'Size attribute reference.
22275 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
22276 g-socthi-vxworks.adb: Change calls to
22277 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
22278 and test explicitly for non-zero return value.
22280 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
22281 (Is_Socket_In_Set): Declare imported function as returning C.int, to
22282 avoid using a derived boolean type.
22284 2004-08-09 Albert Lee <lee@gnat.com>
22286 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
22288 2004-08-09 Pascal Obry <obry@gnat.com>
22290 * gnat_ugn.texi: Document new way to build DLLs on Windows using
22291 GCC's -shared option.
22293 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
22294 Options_2 parameter (options put after object files).
22296 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
22298 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
22299 ignore overflows on low and high bounds of an index to also account for
22300 differences in signedness between sizetype and gnu_index_subtype.
22301 These are as legitimate as the ones caused by a lower TYPE_PRECISION
22304 2004-08-09 Robert Dewar <dewar@gnat.com>
22306 * s-solita.ads, s-solita.adb: Minor reformatting
22308 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
22309 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
22310 obsolescent section
22311 Add note that No_Implicit_Conditionals does not suppress
22312 run time constraint checks.
22314 * vms_conv.ads: Minor reformatting
22316 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
22317 and necessary for following change).
22318 (Mark): Return new format Mark_Id containing sec stack address
22319 (Release): Use sec stack address from Mark_Id avoiding Self call
22321 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
22322 pointer (cleanup and necessary for following change).
22323 Define Mark_Id as record containing address of secondary stack, that way
22324 Release does not need to find the stack again, decreasing the number of
22325 calls to Self and improving efficiency.
22327 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
22329 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
22330 case variable into the individual case branches when possible.
22332 * sem_ch11.adb: Minor reformatting
22334 * prj.ads: Correct spelling of suffixs
22336 * prj-nmsc.adb: Minor reformatting
22337 Correct spelling suffixs throughout (also in identifiers)
22339 * freeze.adb: Minor spelling correction
22341 * exp_ch2.adb: Cleanups to handling of Current_Value
22342 (no functional effect).
22344 * bld.adb: Correct spelling of suffixs
22346 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
22348 2004-08-09 Ed Schonberg <schonberg@gnat.com>
22351 * sem_ch7.adb (Install_Private_Declarations): In the body of the
22352 package or of a child, private entities are both immediately_visible
22355 2004-08-09 Ed Schonberg <schonberg@gnat.com>
22357 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
22358 there are no range checks on the value of the literal.
22360 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
22361 wrapped is the triggering alternative of an asynchronous select, action
22362 statements mustbe inserted before the select itself.
22364 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
22365 case where the prefix is a protected function call.
22366 (Resolve_Attribute, case 'Access): The attribute reference on a
22367 subprogram is legal in a generic body if the subprogram is declared
22370 2004-08-09 Vincent Celier <celier@gnat.com>
22372 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
22373 languages, otherwise building the library may fail with unresolved
22375 (Compile_Sources): Do not build libraries if -c switch is used
22377 * gnatlink.adb (Process_Args): New switches -M and -Mmap
22378 (Write_Usage): If map file creation is supported, output new switches
22380 (Gnatlink): When -M is specified, add the necessary switch(es) to the
22381 gcc call, when supported.
22383 * Makefile.in: Added indepsw.o to the object list for gnatlink
22384 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
22386 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
22387 indepsw.adb, indepsw.ads: New files.
22389 2004-08-09 Bernard Banner <banner@gnat.com>
22391 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
22393 * Makefile.in: add section for vxworks x86
22395 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
22397 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
22398 per-object constrained components where the discriminant is of an
22400 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
22401 the parent initialization procedure for derived Unchecked_Unions.
22402 Instead, derived Unchecked_Unions build their own initialization
22404 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
22405 Check the body of the subprogram for details.
22406 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
22407 functions for derived Unchecked_Union types by introducing a condition.
22408 Allow the creation of TSS equality functions for Unchecked_Unions.
22409 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
22410 Add formal parameter Discr to function signature. Discr is used to
22411 control the generated case statement for Unchecked_Union types.
22412 (Make_Eq_If): Rename formal parameter Node to E in function signature.
22414 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
22416 Check the body of the subprogram for details.
22417 (Expand_Composite_Equality): Augment composite type equality to include
22418 correct handling of Unchecked_Union components.
22419 (Expand_N_In): Add condition to detect illegal membership tests when the
22420 subtype mark is a constrained Unchecked_Union and the expression lacks
22421 inferable discriminants, and build a Raise_Program_Error node.
22422 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
22423 to detect types that contain components of unconstrained Unchecked_Union
22424 subtype. Add condition to detect equality between types that have an
22425 unconstrained Unchecked_Union component, and build a Raise_Program_Error
22426 node. Add condition to detect equality between Unchecked_Union types
22427 that lack inferable discriminants, and build a Raise_Program_Error node.
22428 Otherwise build a TSS equality function call.
22429 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
22430 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
22431 with the operand lacking inferable discriminants, and build a Raise_
22432 Program_Error node.
22433 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
22434 composite equality.
22435 (Has_Inferable_Discriminants): Implement new predicate for objects and
22436 expressions of Unchecked_Union type. Check the body of subprogram for
22438 (Has_Unconstrained_UU_Components): Add function
22439 Component_Is_Unconstrained_UU. It is used to detect whether a single
22440 component is of an unconstrained Unchecked_Union subtype. Add function
22441 Variant_Is_Unconstrained_UU. It is used to detect whether a single
22442 component inside a variant is of an unconstrained Unchecked_Union type.
22444 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
22445 inferred discriminant values. Add condition to generate a case
22446 statement with an inferred discriminant as the switch.
22447 (Make_Component_List_Assign): Introduce a Boolean flag that determines
22448 the behaviour of the subprogram in the presence of an Unchecked_Union.
22449 Add condition to trigger the usage of the inferred discriminant value
22450 as the generated case statement switch.
22451 (Make_Field_Assign): Introduce a Boolean flag that determines the
22452 behaviour of the subprogram in the presence of an Unchecked_Union. Add
22453 condition to trigger the usage of the inferred discriminant value as
22454 the right-hand side of the generated assignment.
22456 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
22457 parameter generation when dealing with Unchecked_Unions.
22459 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
22460 checks for Unchecked_Unions.
22462 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
22464 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
22465 Raise_Program_Error nodes for the execution of Read and Write
22466 attributes of Unchecked_Union types and the execution of Input and
22467 Output attributes of Unchecked_Union types that lack default
22468 discriminant values.
22470 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
22471 Unchecked_Union. Add procedure Check_Component. It is used to inspect
22472 per-object constrained components of Unchecked_Unions for being
22473 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
22474 check individual components withing a variant.
22476 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
22477 comparison of Unchecked_Unions.
22478 (Resolve_Equality_OP): Remove guard that prevents equality between
22481 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
22482 of component subtypes for Unchecked_Union components.
22483 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
22484 since it is the actual subtype.
22486 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
22487 pass of Unchecked_Union subtypes as generic actuals to formal types
22488 that lack known_discriminant_parts or that are derived Unchecked_Union
22489 types, and do nothing. In any other case, produce an error message.
22491 * sem_ch3.adb (Analyze_Component_Declaration): Add function
22492 Contains_POC. It determines whether a constraint uses the discriminant
22493 of an enclosing record type.
22494 Add condition to detect per-object constrained component and set the
22496 (Derived_Type_Declaration): Remove guard that prevents derivation from
22497 Unchecked_Union types.
22498 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
22501 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
22502 references to Unchecked_Union discriminants.
22504 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
22505 formal generation when dealing with Unchecked_Unions.
22506 (Set_Actual_Subtypes): Add condition to prevent generation of actual
22507 subtypes for Unchecked_Unions.
22509 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
22510 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
22511 completions of discriminated partial views by Unchecked_Unions and
22512 produce an error message.
22514 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22516 * trans.c (struct stmt_group): New field, GLOBAL.
22517 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
22518 (struct elab_info): New struct.
22519 (elab_info_list, gnu_elab_proc_stack): New variables.
22520 (Compilation_Unit_to_gnu): New procedure.
22521 (gigi): Call it and also handle elaboration procs we've saved.
22522 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
22523 global field from parent.
22524 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
22525 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
22526 (start_stmt_group): Initialize global field from parent.
22527 (add_decl_expr): Set to global for current statement group.
22528 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
22531 * utils.c (global_bindings_p): True when no current_function_decl; no
22532 longer check current_binding_level.
22534 2004-08-09 Ben Brosgol <brosgol@gnat.com>
22536 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
22539 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
22541 2004-08-06 Andreas Schwab <schwab@suse.de>
22543 * utils.c (gnat_define_builtin): Remove second parameter of
22545 (begin_subprog_body): Likewise.
22547 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
22549 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
22550 optimization, not supported by the tree-ssa back-end.
22552 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
22554 * s-mastop-irix.adb: Update comments.
22556 * a-except.adb (Exception_Information): Raise Constraint_Error if
22557 exception Id is Null_Id.
22558 This is required behavior, which is more reliably and clearly checked
22559 at the top level interface level.
22561 2004-07-26 Javier Miranda <miranda@gnat.com>
22563 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
22564 call if a component has no default_expression and the box is used.
22566 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
22567 default_expression and you use box, it behaves as if you had declared a
22568 stand-alone object.
22569 (Resolve_Record_Aggregate): If a component has no default_expression and
22570 you use box, it behaves as if you had declared a stand-alone object.
22572 * sem_ch10.adb (Install_Siblings): Do not make visible the private
22573 entities of private-with siblings.
22575 2004-07-26 Ed Schonberg <schonberg@gnat.com>
22577 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
22578 for a component of an itype, set the parent pointer for analysis,
22579 there is no list in which to insert it.
22581 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
22582 bona-fide renamings, not for inherited operations.
22584 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
22585 actual for a formal that is an access parameter, create local
22586 finalization list even if the expression is not an aggregate.
22588 2004-07-26 Ed Schonberg <schonberg@gnat.com>
22591 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
22592 Diagnose properly illegal subprogram renamings that are library units.
22594 2004-07-26 Ed Schonberg <schonberg@gnat.com>
22597 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
22598 conversion rewritten as an unchecked conversion, check that original
22599 expression is a variable.
22601 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
22602 unchecked_conversion, create new node rather than rewriting in place,
22603 to preserve original construct.
22605 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22607 * gigi.h (gnat_expand_body): Deleted.
22609 * Make-lang.in: (trans.o): Depends on function.h.
22611 * misc.c: (gnat_expand_body): Moved to here.
22613 * trans.c (gnat_expand_body_1): Deleted.
22614 (gnat_expand_body): Moved from here.
22615 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
22616 (add_stmt): Check for marked visited with global_bindings_p.
22617 (gnat_gimplify_expr, case COMPONENT_REF): New case.
22618 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
22620 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
22621 VIEW_CONVERT_EXPR if not operation type.
22623 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
22626 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
22627 changes: reformatting of negation operators, removing unneeded
22628 inequality comparison with zero, converting equality comparisons with
22629 zero to negations, changing int/0/1 to bool/false/true, replace calls
22630 to gigi_abort with abort, and various other similar changes.
22632 2004-07-26 Vincent Celier <celier@gnat.com>
22634 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
22637 * make.adb (Gnatmake): Fail when a library is not present and there is
22638 no object directory.
22640 * mlib-prj.adb (Check_Library): No need to check if the library needs
22641 to be rebuilt if there is no object directory, hence no object files
22642 to build the library.
22644 * opt.ads (Setup_Projects): New Boolean flag.
22646 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
22648 Create directory when Kind /= "" and in "gnat setup". Report error if
22649 directory cannot be created.
22650 (Ada_Check): Create library interface copy dir if it does not exist
22651 and we are in "gnat setup".
22652 (Find_Sources): No error if in "gnat setup" and no Ada sources were
22654 (Language_Independent_Check): Create object directory, exec directory
22655 and/or library directory if they do not exist and we are in
22658 * vms_conv.ads: (Command_Type): New command Setup.
22660 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
22662 * vms_data.ads: Add qualifiers/switches for new built-in command
22665 2004-07-25 Richard Henderson <rth@redhat.com>
22667 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
22668 DECL_IGNORED_P on RESULT_DECL.
22670 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
22672 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
22673 allocation and potentially overflowing update with
22674 Tailored_Exception_Information. Use the sec-stack free procedural
22675 interface to output Exception_Information instead.
22677 * a-except.adb (To_Stderr): New subprogram for character, and string
22678 version moved from a-exextr to be visible from other separate units.
22679 (Tailored_Exception_Information): Remove the procedural version,
22680 previously used by the default Last_Chance_Handler and not any more.
22681 Adjust various comments.
22683 * a-exexda.adb: Generalize the exception information procedural
22684 interface, to minimize the use of secondary stack and the need for
22685 local buffers when the info is to be output to stderr:
22686 (Address_Image): Removed.
22687 (Append_Info_Character): New subprogram, checking for overflows and
22688 outputing to stderr if buffer to fill is of length 0.
22689 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
22690 (Append_Info_Address, Append_Info_Exception_Name,
22691 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
22692 Append_Info_Basic_Exception_Traceback,
22693 Append_Info_Exception_Information): New subprograms.
22694 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
22695 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
22696 Exception_Info_Maxlength, Exception_Name_Length,
22697 Exception_Message_Length): New subprograms.
22698 (Exception_Information): Use Append_Info_Exception_Information.
22699 (Tailored_Exception_Information): Use
22700 Append_Info_Basic_Exception_Information.
22701 Export services for the default Last_Chance_Handler.
22703 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
22704 other separate units.
22706 2004-07-20 Vincent Celier <celier@gnat.com>
22708 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
22710 2004-07-20 Ed Schonberg <schonberg@gnat.com>
22712 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
22713 emit itype references for the designated types of component types that
22714 are declared outside of the full record declaration, and that may
22715 denote a partial view of that record type.
22717 2004-07-20 Ed Schonberg <schonberg@gnat.com>
22720 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
22721 which is the designated type in an access component declaration, to the
22722 list of incomplete dependents of the parent type, to avoid elaboration
22723 issues with out-of-scope subtypes.
22724 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
22725 full view of the parent.
22727 2004-07-20 Ed Schonberg <schonberg@gnat.com>
22730 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
22731 entities that are hidden, such as references to generic actuals
22732 outside an instance.
22734 2004-07-20 Javier Miranda <miranda@gnat.com>
22736 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
22737 support to the new notation.
22738 (Analyze_Selected_Component): Add call to Try_Object_Operation.
22740 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
22742 * s-taprob.adb: Adding the elaboration code required for initializing
22743 the tasking soft links that are common to the full and the restricted
22746 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
22747 restricted run time has been moved to the package
22748 System.Soft_Links.Tasking.
22750 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
22751 restricted run time has been moved to the package
22752 System.Soft_Links.Tasking.
22754 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
22756 * s-solita.ads, s-solita.adb: New files.
22758 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22760 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
22761 Case_Statement_to_gnu): Split off from gnat_to_gnu.
22762 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
22763 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
22764 Exception_Handler_to_gnu_zcx): Likewise.
22766 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
22768 * gigi.h (builtin_function): Declare.
22770 2004-07-15 Robert Dewar <dewar@gnat.com>
22772 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
22775 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
22776 access values as an example of a warning.
22778 * gnat_rm.texi: Document new attribute Has_Access_Values
22780 * gnat-style.texi: Document that box comments belong on nested
22783 * sem_util.ads (Has_Access_Values): Improved documentation
22785 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
22787 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
22788 (Process_Interface_Name): Call to this new procedure
22789 (Set_Extended_Import_Export_External_Name): Call to this new procedure
22791 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
22793 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
22795 * einfo.ads: Minor comment typo fixed
22797 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
22799 * snames.adb: Add _atcb.
22801 * snames.ads: Add Name_uATCB.
22803 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
22804 (in the expanded code) when using the restricted run time.
22806 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
22807 a in parameter in order to allow ATCBs to be preallocated (in the
22810 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
22811 order to allow ATCBs to be preallocated. In case of error, the ATCB is
22812 deallocated in System.Tasking.Stages.
22814 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
22815 order to allow ATCBs to be preallocated.
22817 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
22818 here. It was previously done in Initialize_ATCB.
22820 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
22822 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
22823 Restricted run time.
22825 * exp_ch3.adb: When using the Restricted run time, pass the
22826 preallocated Ada_Task_Control_Block when creating a task.
22828 2004-07-15 Ed Schonberg <schonberg@gnat.com>
22830 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
22831 function call that is itself an actual in an enclosing call, diagnose
22832 problem here rather than assuming that resolution will catch it.
22834 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
22835 the local copy of a generic unit for a formal package, and the generic
22836 is a child unit, install private part of ancestors before compiling
22837 private part of spec.
22839 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
22840 use scope entities rather than tree structures, to handle properly
22841 parent units that are instances rewritten as bodies for inlining
22844 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
22845 Remove_Parents): Handle properly a parent unit that is an
22846 instantiation, when the unit has been rewritten as a body for inlining
22849 * par.adb (Goto_List): Global variable to collect goto statements in a
22850 given unit, for use in detecting natural loops.
22852 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
22853 use in detecting natural loops.
22855 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
22856 backwards goto's, and rewrite as a infinite loop, to improve locality
22859 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
22860 subcomponent that includes an indexed reference, to prevent the
22861 generation of copies that would miscompile the desired assignment
22863 (Build_Task_Image_Decls): Add a numeric suffix to
22864 generated name for string variable, to avoid spurious conflicts with
22865 the name of the type of a single protected object.
22867 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
22868 loop with an explicit exit statement, to avoid generating an
22869 out-of-range value with 'Succ leading to spurious constraint_errors
22870 when compiling with -gnatVo.
22872 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
22874 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
22875 might not be analyzed yet, even if its Etype is already set (case of an
22876 unchecked conversion built using Unchecked_Convert_To, for example).
22877 If the prefix has already been analyzed, this will be a nop anyway.
22879 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
22880 controller type, or an assignment of a record type with controlled
22881 components, copy only user data, and leave the finalization chain
22882 pointers untouched.
22884 2004-07-15 Vincent Celier <celier@gnat.com>
22886 * make.adb (Collect_Arguments): Improve error message when attempting
22887 to compile a source not part of any project, when -x is not used.
22889 * prj.ads: (Defined_Variable_Kind): New subtype
22891 * prj-attr.adb (Register_New_Package): Two new procedures to register
22892 a package with or without its attributes.
22893 (Register_New_Attribute): Mew procedure to register a new attribute in a
22895 New attribute oriented subprograms: Attribute_Node_Id_Of,
22896 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
22897 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
22899 New package oriented subprograms: Package_Node_Id_Of,
22900 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
22902 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
22904 (Package_Node_Id): Now a private, self initialized type
22905 (Register_New_Package): New procedure to register a package with its
22907 New attribute oriented subprograms: Attribute_Node_Id_Of,
22908 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
22909 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
22911 New package oriented subprograms: Package_Node_Id_Of,
22912 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
22914 * prj-dect.adb (Parse_Attribute_Declaration,
22915 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
22917 * prj-makr.adb (Make): Parse existing project file before creating
22918 other files. Fail if there was an error during parsing.
22920 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
22921 new spec of Prj.Attr.
22923 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
22924 to new spec of Prj.Attr.
22926 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22928 * utils2.c: Fix typo in comment.
22930 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22932 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
22933 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
22935 2004-07-14 Andreas Schwab <schwab@suse.de>
22937 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
22939 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22941 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
22943 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
22946 * misc.c (gnat_types_compatible_p): New function.
22947 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
22948 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
22950 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
22951 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
22952 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
22953 (mark_visited): Don't mark dummy type.
22954 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
22955 parameter, we must remove any LJM building from GNU_NAME.
22956 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
22957 (pos_to_constructor): Use int_const_binop.
22958 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
22961 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
22962 (gnat_pushlevel): Set TREE_USE on BLOCK node.
22963 (gnat_install_builtins): Add __builtin_memset.
22965 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
22967 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
22968 for a renaming, stabilize the initialization expression if we are at a
22969 local level. At the local level, uses of the renaming may be performed
22970 by a direct dereference of the initializing expression, and we don't
22971 want possible variables there to be evaluated for every use.
22973 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
22974 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
22975 them on the way. Account for the fact that we may introduce side
22976 effects in the process.
22978 2004-07-13 Richard Henderson <rth@redhat.com>
22980 * misc.c (default_pass_by_ref): Use pass_by_reference.
22982 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
22984 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
22985 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22987 2004-07-08 Richard Henderson <rth@redhat.com>
22989 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
22992 2004-07-06 Vincent Celier <celier@gnat.com>
22994 * vms_conv.ads: Minor reformatting.
22995 Alphabetical order for enumerated values of type Command_Type, to have
22996 the command in alphabetical order for the usage.
22998 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
22999 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
23001 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
23003 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
23004 (Add_Archive_Path): Only add the global archive if there is one.
23005 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
23006 or not any object file to put in the global archive, and don't build
23007 a global archive if there is none.
23008 (X_Switches): New table
23009 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
23010 in the X_Switches table, if any.
23011 (Initialize): Make sure the X_Switches table is empty
23012 (Scan_Arg): Record -X switches in table X_Switches
23014 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
23016 * make.adb: Minor comment fix
23018 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
23019 invoked with directory information, add the directory in front of the
23022 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
23023 invoked with directory information, add the directory in front of the
23026 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
23027 when Keep_Temporary_Files is False.
23028 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
23029 directory information, add the directory in front of the path.
23030 When not on VMS, handle new switch -dn before the command to set
23031 Keep_Temporary_Files to True.
23032 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
23035 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
23036 invoked with directory information, add the directory in front of the
23039 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
23041 * snames.ads, snames.adb (Name_Stub): New name for the distributed
23044 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
23045 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
23047 * g-socket.adb (To_Timeval): Fix incorrect conversion of
23048 Selector_Duration to Timeval for the case of 0.0.
23050 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
23051 documentation from Evolve_And_Then.
23053 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
23055 * s-taprop-tru64.adb, s-taprop-os2.adb,
23056 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
23058 2004-07-06 Robert Dewar <dewar@gnat.com>
23060 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
23061 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
23062 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
23063 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
23064 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
23065 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
23066 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
23067 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
23068 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
23069 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
23070 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
23071 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
23072 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
23073 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
23074 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
23075 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
23076 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
23077 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
23078 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
23079 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
23080 vms_data.ads: Minor reformatting,
23081 Fix bad box comment format.
23083 * gnat_rm.texi: Fix minor grammatical error
23085 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
23087 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
23088 more cases of discriminated records to be recognized as not needing a
23090 (Has_Access_Values): New function.
23092 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
23094 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
23095 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
23096 with LRM terminology).
23097 Change terminology in comments primitive type => elementary type.
23099 2004-07-06 Ed Schonberg <schonberg@gnat.com>
23102 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
23103 parameters do not impose any requirements on the presence of a body.
23105 2004-07-06 Ed Schonberg <schonberg@gnat.com>
23108 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
23109 compilation unit and is in an open scope at the point of instantiation,
23110 assume that a body may be present later.
23112 2004-07-06 Ed Schonberg <schonberg@gnat.com>
23114 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
23115 Improve error message when specified size is not supported.
23117 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
23118 is never a primitive operation.
23120 2004-07-05 Andreas Schwab <schwab@suse.de>
23122 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
23123 RECORD_OR_UNION_CHECK.
23124 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
23126 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
23128 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
23129 dependency on xgnatugn, instead build it via a submake.
23130 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
23132 2004-07-04 Richard Henderson <rth@redhat.com>
23134 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
23136 2004-07-01 Richard Henderson <rth@redhat.com>
23138 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
23139 * utils.c (max_size): Likewise.
23141 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23143 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
23144 and rest_of_type_compilation; add arg to create_*_decl.
23145 (annotate_decl_with_node): Deleted.
23146 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
23147 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
23148 (get_current_block_context, gnat_pushdecl): New declarations.
23149 (gnat_init_stmt_group): Likewise.
23150 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
23151 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
23152 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
23153 (gnat_init): Call gnat_init_stmt_group.
23154 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
23155 (gnu_pending_elaboration_list): Deleted.
23156 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
23157 (gigi): Rearrange initialization calls and move some to last above.
23158 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
23159 Delete calls to add_decl_expr; add arg to create_*_decl.
23160 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
23161 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
23162 begin_subprog_body and call it.
23163 Don't push and pop ggc context.
23164 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
23165 (add_stmt): Remove handling of DECL_EXPR from here.
23166 If not in function, mark visited.
23167 (add_decl_expr): Put global at top level.
23168 Check for cases of DECL_INITIAL we have to handle here.
23169 (process_type): Add extra arg to create_type_decl.
23170 (build_unit_elab): Rework to just gimplify.
23171 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
23172 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
23173 (get_pending_elaborations, pending_elaborations_p): Likewise.
23174 (push_pending_elaborations, pop_pending_elaborations): Likewise.
23175 (get_elaboration_location, insert_elaboration_list): Likewise.
23176 (gnat_binding_level): Renamed from ada_binding_level.
23177 (init_gnat_to_gnu): Don't clear pending_elaborations.
23178 (global_bindings_p): Treat as global if no current_binding_level.
23179 (set_current_block_context): New function.
23180 (gnat_pushdecl): Renamed from pushdecl; major rework.
23181 All callers changed.
23182 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
23183 (finish_record_type): Call call pushdecl for stub decl.
23184 (function_nesting_depth): Deleted.
23185 (begin_subprog_body): Delete obsolete code.
23186 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
23188 2004-06-28 Robert Dewar <dewar@gnat.com>
23190 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23191 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
23192 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
23193 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
23194 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
23196 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
23197 deal with problem of inefficient slices on machines with strict
23198 alignment, when the slice is a component of a composite.
23200 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
23201 machines, we need the check there as well.
23203 2004-06-28 Ed Schonberg <schonberg@gnat.com>
23205 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
23206 determine safe copying direction for overlapping slice assignments
23207 when component is controlled.
23209 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
23210 formal derived type in the actual for a formal package are visible in
23211 the enclosing instance.
23213 2004-06-28 Ed Schonberg <schonberg@gnat.com>
23216 * sem_util.adb (Trace_Components): Diagnose properly an illegal
23217 circularity involving a private type whose completion includes a
23218 self-referential component.
23219 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
23220 renaming or an instantiation from an implicit derived operation.
23222 2004-06-28 Pascal Obry <obry@gnat.com>
23224 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
23226 (Library_File_Name_For): Idem.
23228 2004-06-28 Matthew Gingell <gingell@gnat.com>
23230 * g-traceb.ads: Add explanatory note on the format of addresses
23231 expected by addr2line.
23233 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
23235 * Makefile.in: Force debugging information on s-tasdeb.adb,
23236 a-except.adb and s-assert.adb needed by the debugger.
23238 2004-06-28 Vincent Celier <celier@gnat.com>
23240 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
23244 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
23246 * prj.adb: Minor reformatting
23247 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
23249 * prj.ads: Comment updates
23251 (Project_Data): Change Flag1 to Need_To_Build_Lib.
23252 Remove Flag2: not used.
23254 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
23257 * gnat_ugn.texi: Put a "null;" declaration in one project file example
23259 * gnat_rm.texi: Document Empty declarations "null;".
23261 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
23262 front of the linker options.
23263 (Link_Foreign): Put the global archives and the libraries in front of
23264 the linker options.
23266 2004-06-28 Javier Miranda <miranda@gnat.com>
23268 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
23269 (RTU_Loaded): Code cleanup
23270 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
23271 withed predefined units.
23273 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
23274 explicitly withed predefined units.
23275 Fix typo in comment
23277 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
23278 explicitly withed predefined units.
23280 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23282 * ada-tree.def (DECL_STMT): Deleted.
23283 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
23284 (DECL_STMT_VAR): Deleted.
23285 * decl.c: add_decl_stmt now add_decl_expr.
23286 * gigi.h: Likewise.
23287 * trans.c: Likewise.
23288 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
23289 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
23290 (add_stmt): Only handle padded type here.
23291 (add_stmt_with_node): Allow gnat_node to not be present.
23292 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
23293 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
23294 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
23295 make a SAVE_EXPR for the entire fat pointer.
23296 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
23297 (create_index_type): Make a DECL_EXPR.
23298 (end_subprog_body): Don't call allocate_struct_function here but
23301 2004-06-25 Pascal Obry <obry@gnat.com>
23303 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
23304 Relocatable from Build_Dynamic_Library call.
23306 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
23307 Relocatable are now synonym.
23309 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
23311 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
23312 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
23315 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
23316 Lib_Address and Relocatable.
23317 (Default_DLL_Address): Removed.
23319 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23320 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23321 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
23322 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
23323 (Default_DLL_Address): Removed.
23325 * mlib-tgt-mingw.adb: Ditto.
23326 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
23328 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
23329 the initial thread stack size.
23331 * a-strmap.ads: Move package L to private part as it is not used in
23332 the spec. Found while reading code.
23334 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
23336 * tracebak.c: Introduce support for a GCC infrastructure based
23337 implementation of __gnat_backtrace.
23339 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
23340 any more. Use accessors instead. This eases maintenance and relaxes
23341 some alignment constraints.
23342 (_GNAT_Exception structure): Remove the Ada specific fields
23343 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
23345 (is_handled_by, __gnat_eh_personality): Replace component references to
23346 exception structure by use of the new accessors.
23348 * init.c (__gnat_initialize): Adjust comments to match the just
23349 reverted meaning of the -static link-time option.
23351 * adaint.c (convert_addresses): Arrange not to define a stub for
23352 mips-irix any more, as we now want to rely on a real version from a
23353 recent libaddr2line.
23355 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
23356 the personality routine can use them and not have to rely on a C
23357 counterpart of the record anymore. This simplifies maintenance and
23358 relaxes the constraint of having Standard'Maximum_Alignment match
23360 Update comments, and add a section on the common header alignment issue.
23362 2004-06-25 Geert Bosch <bosch@gnat.com>
23364 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
23365 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
23367 2004-06-25 Robert Dewar <dewar@gnat.com>
23369 * gnat_rm.texi: Fix section on component clauses to indicate that the
23370 restriction on byte boundary placement still applies for bit packed
23372 Add comment on stack usage from Initialize_Scalars
23374 * gnat_ugn.texi: Add documentation for -gnatyLnnn
23376 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
23377 limiting nesting level.
23379 * usage.adb: Add line for -gnatyLnnn switch
23381 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
23382 sem_ch13.adb, exp_aggr.adb: Minor reformatting
23384 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
23385 type as well as on the subtype. This corrects a problem in freeze in
23386 setting alignments of atomic types.
23388 * sem_eval.ads: Minor comment typo fixed
23390 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
23391 level. Minor reformatting.
23393 * fname.adb (Is_Predefined_File_Name): Require a letter after the
23394 minus sign. This means that file names like a--b.adb will not be
23395 considered predefined.
23397 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
23398 record Test new flag and give diagnostic for bad component clause.
23399 (Freeze_Entity): Set alignment of array from component alignment in
23400 cases where this is safe to do.
23402 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
23405 * cstand.adb: (Create_Standard): Set alignment of String to 1
23407 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
23409 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
23410 code in the common constrained array cases.
23412 * a-storio.adb: Change implementation to avoid possible alignment
23413 problems on machines requiring strict alignment (data should be moved
23414 as type Buffer, not type Elmt).
23416 * checks.adb (Apply_Array_Size_Check): Improve these checks by
23417 killing the overflow checks which we really do not need (64-bits is
23420 2004-06-25 Vincent Celier <celier@gnat.com>
23422 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
23423 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
23424 inconditionally for the main project.
23425 (Recursive_Add_Archives.Add_Archive_Path): New procedure
23426 (Link_Executables.Check_Time_Stamps): New procedure
23427 (Link_Executables.Link_Foreign): New procedure
23428 Changes made to reduce nesting level of this package
23429 (Check): New procedure
23430 (Add_Switches): When not in quiet output, check that a switch is not
23431 the concatenation of several valid switches. If it is, issue a warning.
23432 (Build_Global_Archive): If the global archive is rebuilt, linking need
23434 (Compile_Sources): Rebuilding a library archive does not imply
23435 rebuilding the global archive.
23436 (Build_Global_Archive): New procedure
23437 (Build_Library): New name for Build_Archive, now only for library
23439 (Check_Archive_Builder): New procedure
23440 (Create_Global_Archive_Dependency_File): New procedure
23441 (Gprmake): Call Build_Global_Archive before linking
23442 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
23444 (Scan_Arg): Display the Copyright notice when -v is used
23446 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
23449 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
23451 Add new GNAT LIST qualifier /FILES=
23452 Added qualifier /DIRECTORY= to GNAT METRIC
23453 Added qualifier /FILES= to GNAT METRIC
23454 Added qualifier /FILES to GNAT PRETTY
23456 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
23457 to take into account both versions of the switch.
23459 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
23460 always be the last switch to the gcc driver. Disable switch storing so
23461 that switches automatically added by the gcc driver are not put in the
23464 * prj.adb (Project_Empty): Take into account changes in components of
23467 * prj.ads (Languages_Processed): New enumaration value All_Languages.
23469 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
23470 used. Split Boolean component Ada_Sources_Present in two Boolean
23471 components Ada_Sources_Present and Other_Sources_Present.
23474 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
23475 instead of Sources_Present.
23476 (Set_Ada_Paths.Add.Recursive_Add): Ditto
23478 * prj-nmsc.adb: Minor reformatting
23479 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
23480 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
23481 Check_Ada_Naming_Scheme.
23482 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
23485 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
23487 Make sure that all cycles where there is at least one "limited with"
23489 (Parse_Single_Project): New Boolean parameter In_Limited
23491 * prj-proc.adb (Recursive_Check): When Process_Languages is
23492 All_Languages, call first Prj.Nmsc.Ada_Check, then
23493 Prj.Nmsc.Other_Languages_Check.
23495 * prj-proc.adb (Process): Use Ada_Sources_Present or
23496 Other_Sources_Present (instead of Sources_Present) depending on
23499 * lang-specs.h: Keep -g and -m switches in the same order, and as the
23502 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
23503 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
23505 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
23508 * lib.ads (Disable_Switch_Storing): New procedure.
23510 * make.adb: Modifications to reduce nesting level of this package.
23511 (Check_Standard_Library): New procedure
23512 (Gnatmake.Check_Mains): New procedure
23513 (Gnatmake.Create_Binder_Mapping_File): New procedure
23514 (Compile_Sources.Compile): Add switch -gnatez as the last option
23515 (Display): Never display -gnatez
23517 * Makefile.generic:
23518 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
23520 * gnatcmd.adb (Check_Project): New function
23521 (Process_Link): New procedure to reduce nesting depth
23522 (Check_Files): New procedure to reduce the nesting depth.
23523 For GNAT METRIC, include the inherited sources in extending projects.
23524 (GNATCmd): When GNAT LS is invoked with a project file and no files,
23525 add the list of files from the sources of the project file. If this list
23526 is too long, put it in a temp text files and use switch -files=
23527 (Delete_Temp_Config_Files): Delete the temp text file that contains
23528 a list of source for gnatpp or gnatmetric, if one has been created.
23529 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
23530 in the project file is too large, create a temporary text file that
23531 list them and pass it to the tool with "-files=<temp text file>".
23532 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
23534 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
23535 generated file is in not in Ada.
23537 * gnatls.adb: Remove all parameters And_Save that are no longer used.
23538 (Scan_Ls_Arg): Add processing for -files=
23539 (Usage): Add line for -files=
23541 * g-os_lib.adb (On_Windows): New global constant Boolean flag
23542 (Normalize_Pathname): When on Windows and the path starts with a
23543 directory separator, make sure that the resulting path will start with
23546 * clean.adb (Clean_Archive): New procedure
23547 (Clean_Project): When there is non-Ada code, delete the global archive,
23548 the archive dependency files, the object files and their dependency
23549 files, if they exist.
23550 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
23552 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
23554 * sinfo.ads: Fix typo in comment.
23556 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
23557 the TSS for remote access-to-subprogram types, since these TSS are
23558 always present once the type has been analyzed.
23559 (RAS_E_Dereference): Same.
23561 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
23562 reference raises Bad_Attribute, mark the reference as analyzed so the
23563 node (and any children resulting from rewrites that could have occurred
23564 during the analysis that ultimately failed) is not analyzed again.
23566 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
23568 * exp_dist.adb: Minor comment fix.
23570 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
23571 type is an anonymous access type, no unchecked deallocation of the
23572 allocated object can occur. If the object is controlled, attach it with
23573 a count of 1. This allows attachment to the Global_Final_List, if
23574 no other relevant list is available.
23575 (Get_Allocator_Final_List): For an anonymous access type that is
23576 the type of a discriminant or record component, the corresponding
23577 finalisation list is the one of the scope of the type.
23579 2004-06-25 Ed Schonberg <schonberg@gnat.com>
23581 * sem_ch3.adb (Replace_Type): When computing the signature of an
23582 inherited subprogram, use the first subtype if the derived type
23583 declaration has no constraint.
23585 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
23586 before applying previous optimization. Minor code cleanup.
23588 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
23589 placed at the beginning of an unpacked record without explicit
23590 alignment, a slice of it will be aligned and does not need a copy when
23593 2004-06-25 Ed Schonberg <schonberg@gnat.com>
23597 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
23598 reference is written with expressions mimicking parameters.
23600 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
23603 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
23604 STEP 2a. The constraints of a full type declaration of a derived record
23605 type are checked for conformance with those declared in the
23606 corresponding private extension declaration. The message
23607 "not conformant with previous declaration" is emitted if an error is
23610 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
23612 * g-traceb.ads: Document the need for -E binder switch in the spec.
23614 * g-trasym.ads: Document the need for -E binder switch in the spec.
23616 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
23618 * sem_prag.adb: Add handling of pragma Detect_Blocking.
23620 * snames.h, snames.ads, snames.adb: Add entry for pragma
23623 * s-rident.ads: Change reference to pragma Detect_Blocking.
23625 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
23628 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
23629 to indicate whether pragma Detect_Blocking is active.
23631 * par-prag.adb: Add entry for pragma Detect_Blocking.
23633 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
23634 of not handling WITH.
23635 Note that this replaces the previous update which was incorrect.
23637 2004-06-25 Javier Miranda <miranda@gnat.com>
23639 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
23640 use-clauses to have a clean environment.
23642 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
23643 the installation of the use-clauses to stablish a clean environment in
23644 case of compilation of a separate unit; otherwise the call to
23645 use_one_package is protected by the barrier Applicable_Use.
23647 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
23648 the installation of the use-clauses to stablish a clean environment in
23649 case of compilation of a separate unit.
23650 (End_Use_Clauses): Minor comment cleanup.
23652 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
23654 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
23656 2004-06-23 Richard Henderson <rth@redhat.com>
23658 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
23660 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23662 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
23663 now bool instead of int.
23664 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
23665 * trans.c (gnu_switch_label_stack): New function.
23666 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
23667 elaboration of renamed entity returns.
23668 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
23669 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
23670 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
23671 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
23672 DECL_SIZE_UNIT and simplify variable-sized case.
23673 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
23674 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
23675 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
23676 (build_unit_elab): Disable for now.
23677 * utils.c (mark_visited): New function.
23678 (pushdecl): Walk tree to call it for global decl.
23679 (update_pointer_to): Update all variants of pointer and ref types.
23680 Add arg to COMPONENT_REF.
23681 (convert): Likewise.
23682 Move check for converting between variants lower down.
23683 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
23684 (build_allocator): Don't force type of MODIFY_EXPR.
23685 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
23686 put_var_into_stack.
23688 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23690 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
23691 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
23692 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
23694 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
23695 all callers changed.
23696 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
23697 the way that EXIT_STMT finds the loop label.
23698 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
23699 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
23700 (add_stmt): Use annotate_with_locus insted of setting directly.
23701 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
23702 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
23703 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
23704 (build_vms_descriptor): Add extra args to ARRAY_REF.
23705 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
23706 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
23708 (build_binary_op): Don't make explicit CONVERT_EXPR.
23709 Add extra rgs to ARRAY_REF.
23711 2004-06-14 Pascal Obry <obry@gnat.com>
23713 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
23714 Windows. Fix minor typo.
23716 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
23717 which is now supported on Windows. With this implementation using the
23718 Library Project feature is no different on Windows than on UNIX.
23720 2004-06-14 Vincent Celier <celier@gnat.com>
23722 * makegpr.adb (Compile_Sources): Nothing to do when there are no
23725 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
23727 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
23728 found, show the project name and the path of the previously parsed
23731 2004-06-14 Ed Schonberg <schonberg@gnat.com>
23733 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
23734 array, avoid copying the actual before the call.
23736 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
23738 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
23739 Instead, allocate memory on worst-case alignment assumptions, and then
23740 return an aligned address within the allocated zone.
23742 2004-06-14 Robert Dewar <dewar@gnat.com>
23744 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
23745 elab entities in predefined units in No_Run_Time_Mode.
23746 (Gen_Adainit_C): Same fix
23747 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
23748 units in No_Run_Time_Mode
23749 (Gen_Elab_Calls_C): Same fix
23751 * symbols-vms-alpha.adb: Minor reformatting
23753 * g-debpoo.ads: Minor reformatting
23755 * lib.adb (In_Same_Extended_Unit): Version working on node id's
23757 * lib.ads (In_Same_Extended_Unit): Version working on node id's
23759 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
23762 * make.adb: Minor reformatting
23764 * par-ch12.adb: Minor reformatting
23766 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
23768 * prj-strt.adb: Minor reformatting
23770 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
23773 * sem_attr.adb: Minor reformatting
23775 * sem_ch7.adb: Minor reformatting
23777 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
23778 for type in the same unit as the object declaration.
23780 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
23781 static string expressions and not just string literals.
23783 (Set_Warning): Reset restriction warning flag for restriction pragma
23784 Implement pragma Profile_Warnings
23785 Implement pragma Profile (Restricted)
23786 Give obolescent messages for old restrictions and pragmas
23788 * snames.h, snames.ads, snames.adb: Add new entry for pragma
23791 * s-rident.ads: Add declarations for restrictions required by profile
23792 Restricted and profile Ravenscar.
23794 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
23796 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
23797 configuration pragmas.
23799 2004-06-11 Vincent Celier <celier@gnat.com>
23801 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
23802 gnatsym, when symbol policy is Restricted.
23804 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
23805 gnatsym, when symbol policy is Restricted.
23807 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
23808 read the symbol file.
23809 (Finalize): Fail in symbol policy Restricted if a symbol in the original
23810 symbol file is not in the object files. Do not create a new symbol file
23811 when symbol policy is Restricted.
23813 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
23816 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
23818 (Usage): Line for new switch -R
23820 * make.adb (Initialize): When the platform is not VMS, add the
23821 directory where gnatmake is invoked in the front of the path, if
23822 gnatmake is invoked with directory information. Change the Scan_Args
23823 while loop to a for loop.
23824 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
23825 if Depth is equal or greater than the proposed depth, there is nothing
23827 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
23830 * prj.ads: Add new symbol policy Restricted.
23832 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
23833 with the new parameters Check_All_Labels and Case_Location.
23835 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
23836 (Library_Symbol_File needs to be defined).
23838 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
23839 and Case_Location If Check_All_Labels is True, check that all values of
23840 the string type are used, and output warning(s) if they are not.
23842 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
23845 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
23847 * gnat_ugn.texi: Update documentation about the library directory in
23850 * makegpr.adb (Display_Command): In verbose mode, also display the
23851 value of the CPATH env var, when the compiler is gcc.
23852 (Initialize): Change the Scan_Args while loop to a for loop
23853 (Compile_Individual_Sources): Change directory to object directory
23854 before compilations.
23856 * symbols.ads: New symbol policy Restricted.
23858 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
23860 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
23861 is now taken care of internally in the Exception_Propagation package
23862 and does not require clients assistance any more.
23864 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
23865 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
23866 functions. Helpers to maintain a predicate required in the handling of
23867 occurrence transfer between tasks.
23868 This is now handled internally and does not require clients assistance
23869 for the setup/propagate separation anymore.
23870 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
23871 allocation strategy, handle the Setup_And_Not_Propagated predicate and
23874 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
23875 raise_after_setup, now that everything is handled internally within the
23876 setup/propagation engine.
23878 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
23880 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
23881 Add additional conditions for the case of an actual being a simple
23882 name or literal. Improve inlining by preventing the generation
23883 of temporaries with a short lifetime (one use).
23885 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
23888 * einfo.ads: Minor comment updates for Has_Completion and
23889 E_Constant list of flags.
23891 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
23892 and constant redeclarations now set the Has_Completion flag of their
23893 defining identifiers.
23895 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
23896 Inspect_Deferred_Constant_Completion.
23897 Used to detect private deferred constants that have not been completed
23898 either by a constant redeclaration or pragma Import. Emits error message
23899 "constant declaration requires initialization expression".
23901 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
23902 completes a deferred constant.
23904 2004-06-11 Geert Bosch <bosch@gnat.com>
23906 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
23908 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
23909 calculating exponent for scaling denormal numbers.
23910 (Leading_Part): Properly raise Constraint_Error for zero or negative
23912 (Remainder): Properly raise Constraint_Error for zero divisor.
23914 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
23916 * sem_util.adb: Minor reformatting.
23918 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
23919 dereference when accessing the entry parameter record.
23920 (Check_Array_Type): Always check for possible implicit dereference.
23921 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
23922 Abort if a pointer is still present (denoting that an implicit
23923 dereference was left in the tree by the front-end).
23925 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
23926 dereference when accessing the entry parameter record.
23927 (Check_Array_Type): Always check for possible implicit dereference.
23928 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
23929 Abort if a pointer is still present (denoting that an implicit
23930 dereference was left in the tree by the front-end).
23932 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
23934 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
23935 message, like the compiler itself does. Easier to parse the output.
23937 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
23939 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
23940 be base names, and not includes directories.
23942 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
23944 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
23945 so that dependencies are properly taken into account by make.
23947 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
23950 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
23951 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
23953 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
23955 * Makefile.in (install-gnatlib): install target-specific run-time files.
23957 * Make-lang.in: Remove obsolete targets.
23959 2004-06-11 Ed Schonberg <schonberg@gnat.com>
23961 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
23962 specification, to catch misuses of program unit names.
23964 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
23965 superfluous conversions in an instance.
23967 2004-06-11 Ed Schonberg <schonberg@gnat.com>
23970 * sem_ch12.adb (Save_References): If operator node has been folded to
23971 enumeration literal, associated_node must be discarded.
23973 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
23975 * s-stchop-vxworks.adb: Add required pragma Convention to
23976 Task_Descriptor because it is updated by a C function.
23978 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
23981 * Makefile.in: Remove target specific SO_OPT on IRIX
23983 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23985 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
23986 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
23987 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
23988 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
23989 (STMT_STMT, USE_STMT): New statement codes.
23990 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
23991 * ada-tree.h: Reflect above changes.
23992 (struct tree_loop_id): Deleted.
23993 (union lang_tree_node, struct lang_decl, struct lang_type):
23994 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
23995 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
23996 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
23997 (IS_ADA_STMT): New macro.
23998 * decl.c (annotate_decl_with_node): New function.
23999 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
24000 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
24001 Call add_stmt_with_node to do needed assignments.
24002 Add call to update setjmp buffer directly, not via EXPR_STMT.
24003 (maybe_variable): Argment GNAT_NODE deleted.
24004 * gigi.h (maybe_variable): Likewise.
24005 (make_transform, add_stmt_with_node, set_block_for_group): New.
24006 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
24007 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
24008 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
24009 (set_lineno, set_lineno_from_sloc): Likewise.
24010 (record_code_position, insert_code_for): Likewise.
24011 (gnat_poplevel): Now returns void.
24012 (end_subprog_body): Now takes argument.
24013 * misc.c (cgraph.h, tree-inline.h): New includes.
24014 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
24015 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
24016 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
24017 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
24018 (gnat_parse_file): Don't set immediate_size_expand.
24019 Call cgraph functions.
24020 (gnat_expand_expr): Remove most cases.
24021 (record_code_position, insert_code_for): Remove from here.
24022 * trans.c (toplev.h, tree-gimple.h): Now included.
24023 (discard_file_names): Deleted.
24024 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
24025 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
24026 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
24027 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
24028 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
24029 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
24030 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
24031 (set_block_for_group, add_stmt_list): Likewise.
24032 (start_stmt_group): Renamed from start_block_stmt.
24033 (end_stmt_group): Likewise, from end_block_stmt.
24034 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
24035 (gigi): Don't set discard_file_names or call set_lineno.
24036 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
24037 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
24038 Numerous changes throughout to reflect new names and complete
24039 function-at-a-time implementation.
24040 (gnat_expand_stmt): Delete or comment out all cases.
24041 (process_inlined_subprograms): Use add_stmt.
24042 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
24043 call set_lineno; also remove unneeded block handling.
24044 (process_type): Remove unneeded block handling.
24045 (build_unit_elab): Remove calls to deleted functions.
24046 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
24047 (tree-dump.h): Likewise.
24048 (struct ada_binding_level): Add field jmpbuf_decl.
24049 (gnat_define_builtin, gnat_install_builtins): New.
24050 (gnat_gimplify_function, gnat_finalize): Likewise.
24051 (gnat_poplevel): No longer return BLOCK, set it instead.
24052 Remove code dealing with nested functions.
24053 (gnat_init_decl_processing): Also set size_type_node.
24054 Call gnat_install_builtins.
24055 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
24056 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
24057 Remove special-case for "main".
24058 (end_subprog_body): Add arg and rework for tree-ssa.
24059 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
24060 Add case for BOOLEAN_TYPE.
24061 * utils2.c (rtl.h): Now include.
24062 (build_call_raise): Test Debug_Flag_NN directly.
24063 (build_call_alloc_dealloc): Don't use local stack allocation for now.
24064 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
24065 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
24067 2004-06-07 Robert Dewar <dewar@gnat.com>
24069 * a-direct.ads, einfo.ads: Minor comment updates
24071 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
24072 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
24073 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
24074 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
24075 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
24077 * s-interr-sigaction.adb: Remove unreferenced variable
24078 (Attached_Interrupts). Minor reformatting.
24079 Avoid use of variable I (replace by J).
24081 * par-ch10.adb: Fix text of one error message
24083 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
24084 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
24085 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
24086 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
24087 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
24088 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
24089 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
24090 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
24091 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
24092 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
24093 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
24096 2004-06-07 Doug Rupp <rupp@gnat.com>
24098 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
24100 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
24102 * mlib-tgt-vms-ia64.adb: New file.
24104 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
24105 Add mlib-tgt-vms-ia64.adb
24106 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
24107 Move to alpha specific ifeq section.
24108 Add VMS specific versions of symbols.adb
24109 Renaming of 5q vms files.
24111 * 5qsystem.ads renamed to system-vms_64.ads.
24113 2004-06-07 Vincent Celier <celier@gnat.com>
24115 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
24116 explain that when a time of day corresponding to the non existing hour
24117 on the day switching to DST is specified, Split may return a different
24120 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
24123 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
24124 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
24126 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
24128 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
24129 the linking options.
24130 (Build_Library.Check_Libs): On VMS, if there is a dependency on
24131 g-trasym.ads, set Gtrasymobj_Needed to True.
24133 * prj-attr.adb: Add new package Metrics for gnatmetric
24135 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
24136 canonical case to take into account files with upper case characters on
24138 (Ada_Check): Load the reference symbol file name in the name buffer to
24139 check it, not the symbol file name.
24141 * snames.ads, snames.adb: Add standard name Metrics (name of project
24142 file package for gnatmetric).
24144 * vms_conv.ads: Add Metric to Comment_Type
24146 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
24148 * vms_data.ads: Add qualifiers for GNAT METRIC
24150 * makegpr.adb (Link_Executables): Take into account the switches
24151 specified in package Linker of the main project.
24153 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
24155 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
24156 the index of the last element is Units.Last, not Units.Table'Last
24157 (which is usually not a valid index within the actually allocated
24158 storage for the table).
24160 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
24161 determines whether to generate a call to a checked storage pool
24162 Dereference action.
24163 Generate such a call only for a dereference that either comes from
24164 source, or is the result of rewriting a dereference that comes from
24167 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
24169 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
24171 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
24173 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
24174 file level, elaborate the stride for inner dimensions in alignment
24177 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
24180 2004-06-07 Javier Miranda <miranda@gnat.com>
24182 * exp_ch6.adb: Correct wrong modification in previous patch
24184 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
24186 * g-trasym.ads: Corrected comment to properly reflect level of support
24189 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
24191 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
24192 includes case of a variable referenced on the left hand side of an
24193 assignment, therefore remove redundant code. Variables and prefixes of
24194 indexed or selected components are now marked as referenced on left
24195 hand side. Warnings are now properly emitted when variables or prefixes
24196 are assigned but not read.
24198 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
24199 left hand side referenced variables. Private access types do not
24200 produce the warning "variable ... is assigned but never read".
24201 Add also additional checks to left hand side referenced variables.
24202 Aliased, renamed objects and access types do not produce the warning
24203 "variable ... is assigned but never read" since other entities may read
24204 the memory location.
24206 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
24208 * Makefile.in: In the powerpc/vxworks-specific section, restore
24209 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
24212 2004-06-07 Ed Schonberg <schonberg@gnat.com>
24214 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
24215 predefined operators.
24216 Removes spurious type errors from g-trasym-vms.adb.
24218 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
24219 distinct from the operator appearing in the source, call appropriate
24220 routine to insert conversions when needed, and complete resolution of
24222 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
24223 interpretations for rewritten right operand.
24224 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
24225 the other operand is overloaded and the context is a type conversion.
24227 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24229 * ada-tree.def (BLOCK_STMT): Now has two operands.
24232 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
24234 * gigi.h: (gnat_poplevel): Now returns a tree.
24236 * trans.c (end_block_stmt): Add arg; all callers changed.
24237 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
24238 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
24239 (add_stmt): Set TREE_TYPE.
24240 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
24241 (gnat_expand_stmt, case BREAK_STMT): New case.
24243 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
24245 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
24247 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
24248 procedure Set_Stack_Size that is not needed.
24250 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
24252 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
24253 used for gnatpp input file and for the files upon which it depends
24255 2004-06-07 Ben Brosgol <brosgol@gnat.com>
24257 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
24259 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
24261 * gnatvsn.ads: Bump version numbers appropriately.
24262 Add new build type.
24264 2004-06-07 Pascal Obry <obry@gnat.com>
24266 * gnat_ugn.texi: Improve comments about imported names and link names
24267 on Windows. Add a note about the requirement to use -k gnatdll's option
24268 when working with a DLL which has stripped stdcall symbols (no @nn
24271 2004-05-27 Vincent Celier <celier@gnat.com>
24273 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
24274 COMMENTS_LAYOUT=UNTOUCHED
24276 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
24277 symbols-vms-alpha.adb
24279 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
24281 * sem.ads: Clarify documentation on checks suppression.
24283 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
24285 2004-05-27 Ed Schonberg <schonberg@gnat.com>
24287 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
24288 the case of multiple derivations.
24289 (Is_Object_Reference): For a selected component, verify that the prefix
24290 is itself an object and not a value.
24292 * sem_ch12.adb (Same_Instantiated_Constant): New name for
24293 Same_Instantiated_Entity.
24294 (Same_Instantiated_Variable): Subsidiary to
24295 Check_Formal_Package_Instance, to recognize actuals for in-out generic
24296 formals that are obtained from a previous formal package.
24297 (Instantiate_Subprogram_Body): Emit proper error when
24298 generating code and the proper body of a stub is missing.
24300 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
24301 has a universal interpretation, do the disambiguation here.
24303 * exp_ch4.adb (Expand_N_Type_Conversion,
24304 Expand_N_Unchecked_Type_Conversion): Special handling when target type
24305 is Address, to avoid typing anomalies when Address is a visible integer
24308 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
24309 to determine whether a subprogram should not be marked Pure, even when
24310 declared in a pure package.
24312 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
24314 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
24316 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
24317 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
24318 Update the documentation about the Ravenscar profile, following the
24319 definition found in AI-249.
24321 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
24322 setting the Profile (Ravenscar). This must be done in addition to
24323 setting the required restrictions.
24325 * rtsfind.ads: Add the set of operations defined in package
24328 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
24331 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
24333 lang-specs.h: Always require -c or -S and always redirect to /dev/null
24334 if -gnatc or -gnats is passed.
24336 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
24338 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
24339 a significant reference. Warnings are now properly emitted when a
24340 discriminated type is not referenced.
24342 * lib-xref.adb (Generate_Reference): A deferred constant completion,
24343 record representation clause or record type discriminant does not
24344 produce a reference to its corresponding entity. Warnings are now
24345 properly emitted when deferred constants and record types are not
24348 2004-05-27 Geert Bosch <bosch@gnat.com>
24350 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
24351 Fixes ACATS Annex G tests.
24353 2004-05-27 Robert Dewar <dewar@gnat.com>
24355 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
24358 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
24360 * s-interr.adb (Server_Task): Take into account case of early return
24361 from sigwait under e.g. linux.
24363 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
24365 * gnat_ugn.texi: Add description for the new gnatpp options:
24366 -rnb - replace the original source without creating its backup copy
24367 -c0 - do not format comments
24369 2004-05-24 Geert Bosch <bosch@gnat.com>
24371 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
24372 with 192 bits of precision, sufficient to reduce a double-extended
24373 arguments X with a maximum relative error of T'Machine_Epsilon, for X
24374 in -2.0**32 .. 2.0**32.
24375 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
24376 reduction by the processor, which only uses a 68-bit approximation of
24378 (Tan): Always reduce arguments and compute function either using
24379 the processor's fptan instruction, or by dividing sin and cos as needed.
24381 2004-05-24 Doug Rupp <rupp@gnat.com>
24383 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
24384 gcc error on 32/64 bit VMS.
24386 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
24388 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
24389 since this is what we get for stack overflows although not documented
24391 Document the issues which may require adjustments to our signal
24394 2004-05-24 Ed Schonberg <schonberg@gnat.com>
24396 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
24397 enclosing dynamic scope if the instantiation is within a generic unit.
24399 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
24401 * exp_dbug.ads: Fix typo.
24403 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
24404 Rename it to its proper name: system-linux-ia64.ads
24405 (stamp-gnatlib1): Remove extra target specific run time files when
24406 setting up the rts directory.
24408 2004-05-24 Javier Miranda <miranda@gnat.com>
24410 * einfo.ads, einfo.adb (Limited_Views): Removed.
24411 (Limited_View): New attribute that replaces the previous one. It is
24412 now a bona fide package with the limited-view list through the
24413 first_entity and first_private attributes.
24415 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
24416 limited-private-with clause.
24417 (Install_Limited_Withed_Unit): Install the private declarations of a
24418 limited-private-withed package. Update the installation of the shadow
24419 entities according to the new structure (see Build_Limited_Views)
24420 (Build_Limited_Views): Replace the previous implementation of the
24421 limited view by a package entity that references the first shadow
24422 entity plus the first shadow private entity (required for limited-
24423 private-with clause)
24424 (New_Internal_Shadow_Entity): Code cleanup.
24425 (Remove_Limited_With_Clause): Update the implementation to undo the
24426 new work carried out by Build_Limited_Views.
24427 (Build_Chain): Complete documentation.
24428 Replace Ada0Y by Ada 0Y in comments
24431 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
24432 types the level of accessibility depends on the enclosing type
24435 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
24436 entities. Complete documentation of previous change.
24438 2004-05-24 Robert Dewar <dewar@gnat.com>
24440 * namet.adb: Minor reformatting
24441 Avoid use of name I (replace by J)
24442 Minor code restructuring
24444 * sem_ch6.adb: Minor reformatting
24446 * lib-writ.adb: Do not set restriction as active if this is a
24447 Restriction_Warning case.
24449 * sem_prag.adb: Reset restriction warning flag if real pragma
24450 restriction encountered.
24452 * s-htable.adb: Minor reformatting
24453 Change rotate count to 3 in Hash (improves hash for small strings)
24455 * 5qsystem.ads: Add comments for type Address (no literals allowed).
24457 * gnat_ugn.texi: Add new section of documentation "Code Generation
24458 Control", which describes the use of -m switches.
24460 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
24462 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
24463 through the DECL_INITIAL for renamed variables.
24465 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
24467 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
24469 2004-05-19 Joel Brobecker <brobecker@gnat.com>
24471 * exp_dbug.ads: Correct comments concerning handling of overloading,
24472 since we no longer use $ anymore.
24474 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
24476 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
24477 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
24478 with illegal subunits.
24480 2004-05-19 Ed Schonberg <schonberg@gnat.com>
24482 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
24483 body with front-end inlining enabled, check whether an inline pragma
24484 appears immediately after the body and applies to it.
24486 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
24487 enabled and the pragma appears after the body of the subprogram.
24489 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24491 Part of function-at-a-time conversion
24493 * misc.c (adjust_decl_rtl): Deleted.
24494 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
24497 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
24498 (add_decl_stmt, add_stmt, block_has_vars): New functions.
24499 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
24501 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
24502 when making a decl.
24503 (gnat_to_gnu_entity): Likewise.
24504 Use add_stmt to update setjmp buffer.
24505 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
24507 No longer call adjust_decl_rtl.
24508 (DECL_INIT_BY_ASSIGN_P): New macro.
24509 (DECL_STMT_VAR): Likewise.
24511 * trans.c (gigi): Call start_block_stmt to make the outermost
24513 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
24514 Call start_block_stmt and end_block_stmt temporarily.
24515 Use gnat_expand_stmt instead of expand_expr_stmt.
24516 (add_decl_stmt): New function.
24517 (tree_transform): Call it.
24518 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
24519 (end_block_stmt): Set type and NULL_STMT.
24520 (gnat_expand_stmt): Make recursize call instead of calling
24522 (gnat_expand_stmt, case DECL_STMT): New case.
24523 (set_lineno_from_sloc): Do nothing if global.
24524 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
24525 (start_block_stmt, add_stmt, end_block_stmt): New functions.
24526 (build_block_stmt): Call them.
24527 (gnat_to_code): Don't expand NULL_STMT.
24528 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
24530 (tree_transform): Likewise.
24531 (tree_transform, case N_Null_Statement): Return NULL_STMT.
24532 (gnat_expand_stmt, case NULL_STMT): New case.
24533 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
24536 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
24539 * utils.c (create_var_decl): Do not call expand_decl or
24541 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
24542 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
24544 (struct e_stack): Add chain_next to GTY.
24545 (struct binding_level): Deleted.
24546 (struct ada_binding_level): New struct.
24547 (free_block_chain): New.
24548 (global_binding_level, clear_binding_level): Deleted.
24549 (global_bindings_p): Rework to see if no chain.
24550 (kept_level_p, set_block): Deleted.
24551 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
24552 new data structure and work directly on BLOCK node.
24553 (gnat_poplevel): Similarly.
24554 (get_decls): Look at BLOCK_VARS.
24555 (insert_block): Work directly on BLOCK node.
24556 (block_has_var): New function.
24557 (pushdecl): Rework for new binding structures.
24558 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
24560 (build_subprog_body): Likewise.
24561 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
24563 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
24565 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
24566 (DECL_STMT_VAR): Likewise.
24568 2004-05-17 Robert Dewar <dewar@gnat.com>
24570 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
24573 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
24574 of restriction synonyums by using
24575 Restrict.Process_Restriction_Synonyms.
24577 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
24579 * s-restri.ads (Tasking_Allowed): Correct missing comment
24581 * s-rident.ads: Add entries for restriction synonyms
24583 * ali.adb: Fix some problems with badly formatted ALI files that can
24584 result in infinite loops.
24586 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
24587 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
24588 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
24589 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
24590 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
24591 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
24592 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
24593 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
24594 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
24595 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
24596 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
24597 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
24598 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
24599 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
24600 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
24601 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
24602 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
24603 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
24604 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
24605 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
24606 to Task_Id (minor cleanup).
24608 2004-05-17 Vincent Celier <celier@gnat.com>
24610 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
24611 directory separator.
24613 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
24614 project being extended, if Languages is not declared in extending
24617 2004-05-17 Javier Miranda <miranda@gnat.com>
24619 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
24620 limited view of a visible sibling.
24622 2004-05-14 Robert Dewar <dewar@gnat.com>
24624 * gnat_ugn.texi: Minor change to -gnatS documentation
24626 * sprint.adb: Remove some instances of Assert (False) and for this
24627 purpose replace them by output of a ??? string.
24629 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
24632 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
24633 flag processing. This was suppressing required dependencies in
24634 No_Run_Time mode and is not needed since the binder does not generate
24635 references for things in libgnat anyway.
24637 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
24640 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
24642 * gnat_ugn.texi: Document AIX-specific issue with initialization of
24645 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
24646 action for the case of an actual parameter in an init proc call.
24648 2004-05-14 Ed Schonberg <schonberg@gnat.com>
24650 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
24651 subtype, check visible entities in base type.
24653 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
24654 actions if the object is a renaming.
24656 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
24657 Check_Formal_Package_Instance, to determine more precisely when the
24658 formal and the actual denote the same entity.
24660 2004-05-14 Javier Miranda <miranda@gnat.com>
24662 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
24664 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
24665 corresponding to a private_with must be removed from visibility; it
24666 will be made visible later, just before we analyze the private part of
24668 (Check_Private_Child_Unit): Allow private_with clauses in public
24670 (Install_Siblings): Make visible the private entities of private-withed
24672 (Install_Withed_Unit): Do not install the private withed unit if we
24673 are compiling a package declaration and the Private_With_OK flag was
24674 not set by the caller. These declarations will be installed later,
24675 just before we analyze the private part of the package.
24677 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
24678 during the evaluation of the expression that initializes the object,
24679 decorate it with the expected type to avoid cascade errors.
24682 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
24683 subprogram we have to install the private_with clauses after its
24684 specification has been analyzed (as documented in AI-262.TXT).
24686 * sem_ch8.adb (Has_Private_With): New function. Determines if the
24687 current compilation unit has a private with on a given entity.
24688 (Find_Direct_Name): Detect the Beaujolais problem described in
24691 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
24692 provides the functionality of the function Is_Ancestor that was
24693 previously available in sem_ch10. It has been renamed to avoid
24696 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
24698 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24700 * utils.c (build_vms_descriptor): Use SImode pointers.
24702 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
24704 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
24706 2004-05-14 GNAT Script <nobody@gnat.com>
24708 * Make-lang.in: Makefile automatically updated
24710 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
24712 Renaming of target specific files for clarity
24714 * Makefile.in: Rename GNAT target specific files.
24716 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
24717 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
24718 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
24719 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
24720 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
24721 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
24722 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
24723 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
24724 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
24725 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
24726 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
24727 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
24728 51osinte.adb, 51osinte.ads, 51system.ads,
24729 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
24730 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
24731 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
24732 56tpopsp.adb, 57system.ads, 58system.ads,
24733 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
24734 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
24735 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
24736 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
24737 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
24738 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
24739 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
24740 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
24741 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
24742 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
24743 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
24744 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
24745 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
24746 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
24747 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
24748 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
24749 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
24750 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
24751 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
24752 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
24753 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
24754 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
24755 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
24756 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
24757 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
24758 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
24759 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
24760 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
24761 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
24762 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
24763 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
24764 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
24765 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
24766 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
24767 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
24768 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
24769 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
24770 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
24771 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
24772 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
24774 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
24775 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
24776 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
24777 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
24778 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
24779 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
24780 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
24781 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
24782 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
24783 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
24784 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
24785 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
24786 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
24787 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
24788 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
24789 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
24790 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
24791 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
24792 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
24793 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
24794 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
24795 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
24796 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
24797 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
24798 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
24799 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
24800 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
24801 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
24802 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
24803 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
24804 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
24805 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
24806 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
24807 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
24808 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
24809 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
24810 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
24811 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
24812 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
24813 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
24814 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
24815 s-osinte-vms.ads, s-osinte-vxworks.adb,
24816 s-osinte-vxworks.ads, s-osprim-mingw.adb,
24817 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
24818 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
24819 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
24820 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
24821 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
24822 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
24823 s-stchop-vxworks.adb, s-taprop-dummy.adb,
24824 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
24825 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
24826 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
24827 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
24828 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
24829 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
24830 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
24831 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
24832 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
24833 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
24834 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
24835 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
24836 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
24837 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
24838 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
24839 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
24840 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
24841 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
24842 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
24843 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
24844 system-irix-o32.ads, system-linux-x86_64.ads,
24845 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
24846 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
24847 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
24848 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
24849 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
24850 system-vxworks-mips.ads, system-vxworks-ppc.ads,
24851 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
24854 2004-05-13 Zack Weinberg <zack@codesourcery.com>
24856 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
24858 2004-05-13 Diego Novillo <dnovillo@redhat.com>
24860 Merge from tree-ssa-20020619-branch.
24862 * config-lang.in (boot_language, build_by_default): Set
24864 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
24865 (max_size): Add static chain op for call_expr.
24867 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
24870 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
24872 2004-05-11 Roger Sayle <roger@eyesopen.com>
24874 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
24877 2004-05-10 Doug Rupp <rupp@gnat.com>
24879 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
24882 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
24884 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
24886 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
24887 Fixes undefined symbols in IA64 gnatlib.
24889 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
24891 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
24892 Short_Address). This will be moved to system.auxdec.
24894 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
24896 * sem_util.adb: Replace test for presence of a node that is always
24897 present with a call to Discard_Node.
24899 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
24900 Analyze on the library unit node after generation of distribution stub
24901 constructs. The call was a no-op because Unit_Node has already been
24902 Analyzed, and the tree fragments for the distribution stubs are
24903 analyzed as they are inserted in Exp_Dist.
24904 Update comment regarding to distribution stubs to reflect that we
24905 do not generate stub in separate files anymore.
24907 * einfo.ads: Clarify the fact that a tagged private type has the
24908 E_Record_Type_With_Private Ekind.
24910 * erroutc.adb: Minor reformatting
24912 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
24913 values if line length is increased using -gnatyM (noticed during code
24916 * eval_fat.adb: Minor reformatting
24917 Put spaces around exponentiation operator
24919 2004-05-10 Ed Schonberg <schonberg@gnat.com>
24922 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
24923 has been rewritten as an explicit dereference, retrieve type of
24924 original node to check for possibly unconstrained record type.
24926 2004-05-10 Ed Schonberg <schonberg@gnat.com>
24928 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
24929 overriding, use the operation of the parent unconditionally.
24931 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
24932 operation when either operand is a literal, to avoid further
24935 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
24936 overridden by a previous explicit declaration, mark the previous entity
24939 * sem_disp.adb (Check_Dispatching_Operation): New predicate
24940 Is_Visibly_Controlled, to determine whether a declaration of a
24941 primitive control operation for a derived type overrides an inherited
24942 one. Add warning if the explicit declaration does not override.
24944 2004-05-10 Vincent Celier <celier@gnat.com>
24946 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
24947 some cases when the sources are no longer present.
24949 * make.adb (Collect_Arguments): Fail if an external source, not part
24950 of any project need to be compiled, when switch -x has not been
24953 * makeusg.adb: Document new switch -x
24955 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
24956 defaulted to False.
24958 * switch-m.adb (Scan_Make_Switches): New switch -x
24960 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
24961 gnatmake switch -x.
24963 * gnat_ugn.texi: Document new gnatmake switch -x
24965 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
24967 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
24969 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
24970 (process_attributes): Likewise.
24972 2004-05-10 Joel Brobecker <brobecker@gnat.com>
24974 * s-inmaop.ads: Fix spelling mistake in one of the comments.
24976 2004-05-10 Robert Dewar <dewar@gnat.com>
24978 * gnat_ugn.texi: Document that for config pragma files, the maximum
24979 line length is always 32767.
24981 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
24982 literals is now allowed.
24984 * gnat-style.texi: Remove statement about splitting long lines before
24985 an operator rather than after, since we do not follow this rule at all.
24986 Clarify rule (really lack of rule) for spaces around exponentiation
24988 * sem_elim.adb: Allow concatenation of string literals as well as a
24989 single string literal for pragma arguments.
24991 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
24993 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
24994 written for append case.
24996 * frontend.adb: Changes to avoid checking max line length in config
24999 * g-os_lib.ads: Minor reformatting
25001 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
25002 wrong in any case. Instead use standard value. Noticed during code
25005 * opt.ads (Max_Line_Length): New field, used to implement removal of
25006 limitation on length of lines when scanning config pragma files.
25008 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
25009 makeutl.ads, makeutl.adb: Minor reformatting
25011 * scn.adb: Do not check line length while scanning config pragma files
25012 Do not check line length while scanning out license information
25014 * scng.adb: Changes to avoid line length checks while parsing config
25017 2004-05-10 GNAT Script <nobody@gnat.com>
25019 * Make-lang.in: Makefile automatically updated
25021 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
25023 * osint.adb (Find_Program_Name): Fix handling of VMS version
25026 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
25028 * g-os_lib.ads (Invalid_Time): New constant
25030 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
25031 return OS_Time instead of time_t to match what is imported by Ada.
25032 Now return -1 if the file doesn't exist, instead of a random value
25034 2004-05-05 Robert Dewar <dewar@gnat.com>
25036 * usage.adb: Add line for -gnatR?s switch
25038 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
25040 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
25041 and for Match (Data_First, Data_last)
25043 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
25044 written when we are dealing with multi-unit files.
25046 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
25048 * Makefile.in: Remove unused targets and variables.
25050 2004-05-05 Vincent Celier <celier@gnat.com>
25052 * switch-m.adb: New gnatmake switch -eI
25054 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
25055 of new gnatmake switch -eInnn.
25057 * makegpr.adb: Take into account new parameters Index and Src_Index in
25060 * clean.adb: Implement support for multi-unit sources, including new
25063 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
25066 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
25067 (Extract_From_Q): New out parameter Index
25068 (Mark, Is_Marked): Subprograms moved to Makeutl
25069 (Switches_Of): New parameter Source_Index
25070 (Add_Switch): New parameter Index
25071 (Check): New parameter Source_Index
25072 (Collect_Arguments): New parameter Source_Index
25073 (Collect_Arguments_And_Compile): New parameter Source_Index
25074 (Compile): New parameter Source_Index
25075 Put subprograms in alphabetical order
25076 Add support for multi-source sources, including in project files.
25078 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
25079 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
25082 * makeusg.adb: New gnatmake switch -eInnn
25084 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
25087 * opt.ads (Main_Index): New variable, defaulted to 0.
25089 * osint.ads, osinte.adb (Add_File): New parameter Index
25090 (Current_Source_Index): New function
25092 * prj.adb: Take into account new components Index and Src_Index
25094 * prj.ads (String_Element): New component Index
25095 (Variable_Value): New component Index
25096 (Array_Element): New component Src_Index
25098 * prj-attr.adb: Indicate that optional index may be specified for
25099 attributes Main, Executable, Spec, Body and some of Switches.
25101 * prj-attr.ads (Attribute_Kind): New values for optional indexes
25102 (Attribute_Record): New component Optional_Index
25104 * prj-com.ads (File_Name_Data): New component Index
25106 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
25108 * prj-env.adb (Put): Output optional index
25110 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
25111 attributes Spec and Body.
25113 * prj-nmsc.adb: Process optional indexes
25115 * prj-pp.adb: Ouput "at" for optional indexes
25117 * prj-proc.adb: Take into account optional indexes
25119 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
25120 Optional_Index. For string literal,
25121 process optional index when Optional_Index is True.
25122 (Parse_Expresion): New Boolean parameter Optional_Index
25124 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
25125 (Set_Source_Index_Of): New procedure
25127 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
25130 * prj-util.ads (Executable_Of): New parameter Index
25131 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
25132 New parameter Src_Index, defaulted to 0.
25134 2004-05-05 Ed Schonberg <schonberg@gnat.com>
25137 * sem_ch3.adb (Access_Definition): If this is an access parameter
25138 whose designated type is imported through a limited_with clause, do
25139 not add the enclosing subprogram to the list of private dependents of
25142 2004-05-05 Ed Schonberg <schonberg@gnat.com>
25145 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
25146 a limited_with clause, and the other is its non-limited view.
25148 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
25150 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
25152 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
25153 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
25154 Stand.Boolean_Literals to produce references to entities
25155 Standard_False and Standard_True from compile-time computed boolean
25158 * stand.ads (Boolean_Literals): New variable, provides the entity
25159 values for False and True, for use by the expander.
25161 2004-05-05 Doug Rupp <rupp@gnat.com>
25163 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
25164 5vinmaop.adb: Unchecked convert Short_Address vice Address
25166 * adaint.c, raise.c: Caste CRTL function return value
25167 to avoid gcc error on 32/64 bit IVMS.
25169 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
25172 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
25174 * 5qsystem.ads (Address): Declare as Long_Integer
25175 (Short_Address): Declare as 32 bit subtype of Address
25176 Declare abstract address operations to avoid gratuitous ambiguities.
25178 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
25180 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
25181 instead of the old Boolean_Entry_Barriers.
25182 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
25184 2004-05-05 GNAT Script <nobody@gnat.com>
25186 * Make-lang.in: Makefile automatically updated
25188 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
25190 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
25192 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
25195 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
25196 alone. Replacing object references by literals is inappropriate in a
25197 so low level context.
25199 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
25201 * a-exexpr.adb: Add comments
25203 2004-05-03 Joel Brobecker <brobecker@gnat.com>
25205 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
25206 declare the Ancestor_Tags array in Type_Specific_Data with a small size
25207 without risking a bounds check error when accessing one of its
25209 (Type_Specific_Data): Define Ancestor_Tags as a small array.
25210 This prevents us from hitting a limitation during the debug info
25211 generation when using stabs.
25213 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
25215 This prevents us from hitting a limitation during the debug info
25216 generation when using stabs.
25218 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
25220 lang-specs.h: Remove -gnatz* from specs.
25222 2004-05-03 Vincent Celier <celier@gnat.com>
25224 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
25226 * Make-lang.in, Makefile.in: Add gprmake
25228 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
25230 * sem_aggr.adb: Fix typo in comment.
25232 2004-05-03 Robert Dewar <dewar@gnat.com>
25234 * make.adb: Minor reformatting
25236 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
25238 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
25239 so that it works when address is not a private type.
25241 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
25242 properly with rewritten unchecked conversions. This prevents
25243 order-of-elaboration issues that can otherwise arise.
25244 (Minimum_Size): Don't check size of access types under VMS
25246 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
25247 interpretations of integer literals as type System.Address.
25249 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
25250 (Is_Descendent_Of): New function
25252 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
25254 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
25255 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
25256 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
25258 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
25259 of the old Max_Entry_Queue_Depth.
25261 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
25262 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
25263 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
25265 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
25266 New entry for proper handling of Max_Entry_Queue_Depth.
25267 New entry for proper handling of No_Dynamic_Interrupts.
25269 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
25270 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
25271 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
25272 the GNAT specific restriction Max_Entry_Queue_Depth.
25273 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
25274 the GNAT specific restriction No_Dynamic_Interrupts.
25276 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
25277 instead of the old Boolean_Entry_Barriers.
25278 Use the new restriction No_Dynamic_Attachment instead of the old
25279 No_Dynamic_Interrupts.
25281 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
25282 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
25284 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
25285 of the old Max_Entry_Queue_Depth.
25287 2004-05-03 GNAT Script <nobody@gnat.com>
25289 * Make-lang.in: Makefile automatically updated
25291 2004-04-29 Ed Schonberg <schonberg@gnat.com>
25293 * checks.adb (Enable_Range_Check): If the prefix of an index component
25294 is an access to an unconstrained array, perform check unconditionally.
25296 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25298 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
25301 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
25303 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
25304 alternate stack setting. There was no support for the tasking cases
25305 and the changes eventually caused a number of side-effect failures in
25306 the non-tasking case too.
25308 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
25310 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
25313 2004-04-29 Vincent Celier <celier@gnat.com>
25315 * make.adb (Gnatmake): Increase max size of argument array for
25316 gnatbind for the potential addition of -F.
25317 If there are Stand-Alone Library projects, invoke gnatbind with -F to
25318 be sure that elaboration flags will be checked.
25320 * switch-c.adb: Correct call to Scan_Pos for -gnateI
25322 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
25324 * sem_warn.adb (Check_References): Move '<access-variable> may be
25325 null' warning out of under Warn_On_No_Value_Assigned.
25327 2004-04-29 Ed Falis <falis@gnat.com>
25329 * gnat_ugn.texi: Fixed texi error
25331 2004-04-29 Robert Dewar <dewar@gnat.com>
25333 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
25334 abstract operations if they come from predefined files.
25336 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
25339 * s-addope.adb: Correct obvious error in mod function
25341 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
25343 * Makefile.in: Add target pairs for powerpc darwin*
25346 * a-intnam-darwin.ads, s-osinte-darwin.adb,
25347 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
25349 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
25351 * Makefile.in: Add target macro definitions for s390*-linux*.
25352 * system-linux-s390.ads: New file.
25353 * system-linux-s390x.ads: New file.
25355 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
25357 * gnat_ugn.texi: Correct argument to @setfilename.
25359 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
25361 * a-exexpr.adb (Unwind_Word): New data type.
25362 (Unwind_Exception): Use it as type of Private1 and Private2.
25364 * raise.c (db_action_for): Fix debug printf.
25366 2004-04-27 Ed Schonberg <schonberg@gnat.com>
25368 * a-wtmoio.ads: Formal type must be a modular type, not a signed
25371 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25373 * decl.c (gnat_to_gnu_entity, case object): Call
25374 __builtin_update_setjmp_buf.
25376 * gigi.h (update_setjmp_buf): Deleted.
25377 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
25379 * misc.c: (update_setjmp_buf): Deleted.
25381 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
25382 around block of RTL.
25384 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
25386 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
25388 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
25389 subprogram for which no pragma All_Calls_Remote applies, store the
25390 address of the real subprogram in the underlying record type, so local
25391 dereferences do not go through the PCS.
25393 2004-04-26 Robert Dewar <dewar@gnat.com>
25395 * i-c.ads: Add some type qualifications to avoid ambiguities when
25396 compiling with s-auxdec.ads and a non-private address type.
25398 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
25400 * Makefile.rtl: Fix error in previous check-in:
25401 Add s-addope.o to non tasking object list (rather than tasking object
25404 2004-04-26 Javier Miranda <miranda@gnat.com>
25406 * sem_aggr.adb: Fix typo in comments
25407 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
25408 Required to check the null-exclusion attribute.
25410 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
25411 case of anonymous access types in record and array components. For a
25412 component definition the level is the same of the enclosing composite
25415 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
25416 that are anonymous access types the level of accessibility depends on
25417 the enclosing type declaration. In order to have this information, set
25418 the scope of the anonymous access type to the enclosing record type
25420 (Array_Type_Declaration): In case of components that are anonymous
25421 access types the level of accessibility depends on the enclosing type
25422 declaration. In order to have this information, set the scope of the
25423 anonymous access type to the enclosing array type declaration.
25425 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
25428 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
25429 renaming of anonymous access-to-constant types allowed if and only if
25430 the renamed object is access-to-constant.
25432 * sem_util.adb (Type_Access_Level): In case of anonymous access types
25433 that are component_definition or discriminants of a nonlimited type,
25434 the level is the same as that of the enclosing component type.
25436 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
25438 * sem_elim.adb: Some minor code reorganization from code reading. Fix
25439 misprint in the function name (File_Name_Match).
25441 2004-04-23 Laurent GUERBY <laurent@guerby.net>
25443 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
25446 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25448 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
25450 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
25452 * adaint.c (__gnat_try_lock): No longer requires that the parent
25453 directory be writable, the directory itself is enough.
25454 (gnat_is_absolute_path): Change profile, so that the call from
25455 GNAT.OS_Lib can be made more efficient.
25457 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
25458 from GNAT.OS_Lib can be made more efficient.
25460 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
25461 one copy of the file name. Found by code reading.
25463 2004-04-23 Vincent Celier <celier@gnat.com>
25465 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
25466 Correct documentation on gnatmake switches transmitted to the compiler
25468 * ali.ads: Minor comment fix
25470 2004-04-23 Javier Miranda <miranda@gnat.com>
25472 * sem_ch6.adb: (Confirming Types): Code cleanup
25474 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
25475 subprogram types: E_Anonymous_Access_Subprogram_Type and
25476 E_Anonymous_Access_Protected_Subprogram_Type.
25478 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
25480 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
25481 whether a pragma All_Calls_Remote applies to the subprogram on which
25483 No functional change is introduced by this revision; the new parameter
25484 will be used to allow calls to local RCI subprograms to be optimized
25485 to not use the PCS in the case where no pragma All_Calls_Remote applies,
25486 as is already done in the PolyORB implementation of the DSA.
25488 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
25489 whether a pragma All_Calls_Remote applies to the subprogram on which
25491 No functional change is introduced by this revision; the new parameter
25492 will be used to allow calls to local RCI subprograms to be optimized
25493 to not use the PCS in the case where no pragma All_Calls_Remote applies,
25494 as is already done in the PolyORB implementation of the DSA.
25496 2004-04-23 Robert Dewar <dewar@gnat.com>
25498 * Makefile.rtl: Add entry for s-addope.o in run time library list
25499 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
25500 * s-addope.ads, s-addope.adb: New files.
25502 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
25503 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
25504 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
25505 System.Address to be non-private and signed.
25507 * sem_elim.adb: Minor reformatting (fairly extensive)
25508 Some minor code reorganization from code reading
25509 Add a couple of ??? comments
25511 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25513 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
25514 (tree_transform, case N_If_Statement): Remove non-determinism.
25516 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
25518 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
25520 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
25521 Eliminate' section.
25523 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
25524 no longer used as a parameter name for Eliminate pragma).
25526 2004-04-22 Laurent GUERBY <laurent@guerby.net>
25528 PR optimization/14984
25529 PR optimization/14985
25530 * trans.c (gigi): Fix non determinism leading to bootstrap
25531 comparison failures.
25533 2004-04-21 Pascal Obry <obry@gnat.com>
25535 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
25536 passed to spawnvp() to properly handle program pathname with spaces on
25539 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
25541 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
25542 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
25543 unlocked in case of exceptions.
25545 2004-04-21 Joel Brobecker <brobecker@gnat.com>
25547 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
25548 This function does not exist anymore.
25550 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
25552 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
25554 * link.c: Move variables to the __gnat name space.
25556 * Makefile.in: list link.o explicitly when needed.
25558 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
25560 2004-04-21 Javier Miranda <miranda@gnat.com>
25562 * einfo.adb (Original_Access_Type): New subprogram
25563 (Set_Original_Access_Type): New subprogram
25564 (Write_Field21_Name): Write the name of the new field
25566 * einfo.ads (Original_Access_Type): New field present in access to
25568 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
25569 E_Anonymous_Access_Protected_Subprogram_Type.
25571 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
25574 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
25575 to anonymous access to subprogram types.
25577 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
25578 to subprogram types.
25580 * sem_ch3.adb (Access_Definition): Complete decoration of entities
25581 corresponding to anonymous access to subprogram types.
25582 (Analyze_Component_Declaration): Add new actual to the call to
25583 subprogram replace_anonymous_access_to_protected_subprogram.
25584 (Array_Type_Declaration): Add new actual to the call to subprogram
25585 replace_anonymous_access_to_protected_subprogram.
25586 (Process_Discriminants): Add new actual to the call to subprogram
25587 replace_anonymous_access_to_protected_subprogram.
25588 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
25590 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
25593 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
25594 access to subprogram types.
25596 * sem_util.adb (Has_Declarations): Addition of package_specification
25599 2004-04-21 Ed Schonberg <schonberg@gnat.com>
25601 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
25602 inlined flags to renamed entity only if in current unit.
25604 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
25606 * s-parint.ads: Add DSA implementation marker.
25608 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
25609 value of System.Partition_Interface.DSA_Implementation to determine
25610 what version of the distributed systems annex is available (no
25611 implementation, GLADE, or PolyORB).
25613 2004-04-21 Joel Brobecker <brobecker@gnat.com>
25615 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
25617 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25619 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
25620 with new type if alias sets differ.
25621 Fixes ACATS c41103b.
25623 2004-04-21 Vincent Celier <celier@gnat.com>
25625 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
25626 Add array Lang_Args for the language specific compiling argument
25629 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
25631 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
25633 * gnat_rm.texi: Update the descripton of the Eliminate pragma
25634 according to the recent changes in the format of the parameters of the
25635 pragma (replacing Homonym_Number with Source_Location).
25637 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
25639 * 5isystem.ads: Removed, unused.
25641 * gnat_rm.texi: Redo 1.13 change.
25643 2004-04-19 Robert Dewar <dewar@gnat.com>
25645 * s-stoele.ads: Clean up definition of Storage_Offset (the new
25646 definition is cleaner, avoids the kludge of explicit Standard operator
25647 references, and also is consistent with a visible System.Address with
25648 no visible operations.
25650 * s-geveop.adb: Add declarations to avoid assumption of visible
25651 operations on type System.Address (since these might not be available
25652 if Address is a non-private type for which the operations
25653 are made abstract).
25655 * sem_eval.adb: Minor reformatting
25657 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
25658 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
25659 reformatting (new function spec format).
25661 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
25662 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
25663 s-caun64.adb: Add declarations to avoid assumption of visible
25664 operations on type System.Address (since these might not be available
25665 if Address is a non-private type for which the operations are made
25668 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
25670 * exp_intr.adb: Minor comment update
25672 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
25674 * 5omastop.adb: Add declarations to avoid assumption of visible
25675 operations on type System.Address (since these might not be available
25676 if Address is a non-private type for which the operations
25677 are made abstract).
25679 2004-04-19 Vincent Celier <celier@gnat.com>
25681 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
25683 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
25686 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
25688 Call Check with Process_Languages.
25689 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
25690 with Process_Languages.
25691 (Recursive_Check): New Boolean parameter Process_Languages. Call
25692 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
25695 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
25697 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
25698 parameter Ada_Main, defaulted to True.
25699 Check for Ada specific characteristics only when Ada_Main is True.
25701 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
25703 * prj.adb: (Project_Empty): Add new Project_Data components.
25705 * prj.ads: New types and tables for non Ada languages.
25706 (Project_Data): New components Languages, Impl_Suffixes,
25707 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
25708 Include_Path, Include_Data_Set.
25710 * prj-env.ads, prj-env.adb: Minor reformatting
25712 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
25713 Put subprograms in alphabetical order
25715 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
25716 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
25719 * mlib-prj.adb: Back out modification in last version, as they are
25721 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
25723 * make.adb: (Mains): Moved to package Makeutl
25724 (Linker_Opts): Moved to package Makeutl
25725 (Is_External_Assignment): Moved to package Makeutl
25726 (Test_If_Relative_Path): Moved to package Makeutl
25727 (Gnatmake): Move sorting of linker options to function
25728 Makeutl.Linker_Options_Switches.
25730 * makeutl.ads, makeutl.adb: New files.
25732 * Makefile.in: Add makeutl.o to the object files for gnatmake
25734 * makeusg.adb: Add line for new switch -eL.
25736 * gnatls.adb (Image): New function.
25737 (Output_Unit): If in verbose mode, output the list of restrictions
25738 specified by pragmas Restrictions.
25740 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
25743 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
25744 needed, to put it in the range 1970 (included) - 2026 (excluded).
25745 (Time_Of): Do not shift Unix_Min_Year (1970).
25746 Shift the date by multiple of 56 years, if needed, to put it in the
25747 range 1970 (included) - 2026 (excluded).
25749 * adaint.h, adaint.c (__gnat_set_executable): New function.
25751 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25753 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
25754 and pop GC context.
25755 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
25756 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
25757 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
25758 (tree_transform, case N_Code_Statement): Likewise.
25759 (gnat_expand_stmt, case LABEL_STMT): Don't look at
25760 LABEL_STMT_FIRST_IN_EH.
25761 (gnat_expand_stmt, case ASM_STMT): New case.
25763 * utils2.c (build_unary_op): Properly set TREE_READONLY of
25764 UNCONSTRAINED_ARRAY_REF.
25766 * utils.c (poplevel): Temporarily push/pop GC context around inline
25767 function expansion.
25769 * decl.c (maybe_variable): Properly set TREE_READONLY of
25770 UNCONSTRAINED_ARRAY_REF.
25771 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
25773 * ada-tree.def: (ASM_STMT): New.
25775 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
25776 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
25777 ASM_STMT_INPUT): New.
25778 (ASM_STMT_CLOBBER): Likewise.
25780 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
25782 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
25783 general rcheck mechanism to raise Program_Error for E.4(18), instead
25784 of a custom raiser in System.Partition_Interface.
25785 Part of general cleanup work before PolyORB integration.
25787 * snames.ads, snames.adb: Add new runtime library entities and names
25790 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
25792 (Build_Subprogram_Id): New subprogram provided by exp_dist
25793 Code reorganisation in preparation for PolyORB integration.
25795 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
25797 (Build_Subprogram_Id): New subprogram provided by exp_dist
25799 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
25800 actual parameter types for call to dereference of an
25801 access-to-subprogram type.
25803 * rtsfind.ads: Add new runtime library entities and names for PolyORB
25806 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
25807 instead, which has the same behaviour here since we never pass it a
25810 * link.c (run_path_option, Solaris case): Use -Wl, as for other
25813 * Makefile.in: adjust object file lists for gnatlink and gnatmake
25814 to account for new dependency upon Interfaces.C.Strings + link.o
25815 For x86 FreeBSD, use 86numaux.
25817 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
25818 from Mlib.Tgt to Mlib.
25820 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
25821 target-independent.
25823 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
25824 target-specific versions of this subprogram, now implemented as a
25825 target-independent function in Mlib.
25827 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
25828 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
25829 (Linker_Library_Path_Option): Remove target-specific versions of this
25830 subprogram, now implemented as a target-independent function in Mlib.
25832 * atree.adb: (Allocate_Initialize_Node): New subprogram.
25833 Factors out node table slots allocation.
25834 (Fix_Parents): New subprogram.
25835 Encapsulate the pattern of fixing up parent pointers for syntactic
25836 children of a rewritten node.
25837 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
25838 (Rewrite): Use New_Copy when creating saved copy of original node.
25839 (Replace): Use Copy_Node to copy nodes.
25841 2004-04-19 Javier Miranda <miranda@gnat.com>
25843 * sprint.adb (Sprint_Node_Actual): Give support to the new
25844 Access_To_Subprogram node available in Access_Definition nodes. In
25845 addition, give support to the AI-231 node fields: null-exclusion,
25846 all-present, constant-present.
25848 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
25850 * sinfo.ads, sinfo.adb:
25851 New field Access_To_Subprogram_Definition in Access_Definition nodes
25853 * sem_ch6.adb (Process_Formals): Move here the code that creates and
25854 decorates internal subtype declaration corresponding to the
25855 null-excluding formal. This code was previously in Set_Actual_Subtypes.
25856 In addition, carry out some code cleanup on this code. In case of
25857 access to protected subprogram call
25858 Replace_Anonymous_Access_To_Protected_Subprogram.
25859 (Set_Actual_Subtypes): Code cleanup.
25861 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
25862 Find_Type in case of anonymous access renamings. Add warning in case of
25863 null-excluding attribute used in anonymous access renaming.
25865 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
25868 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
25870 (Access_Definition): In case of anonymous access to subprograms call
25871 the corresponding semantic routine to decorate the node.
25872 (Access_Subprogram_Declaration): Addition of some comments indicating
25873 some code that probably should be added here. Detected by comparison
25874 with the access_definition subprogram.
25875 (Analyze_Component_Declaration): In case of access to protected
25876 subprogram call Replace_Anonymous_Access_To_Protected.
25877 (Array_Type_Declaration): In case of access to protected subprogram call
25878 Replace_Anonymous_Access_To_Protected_Subprogram.
25879 (Process_Discriminants): In case of access to protected subprogram call
25880 Replace_Anonymous_Access_To_Protected_Subprogram.
25882 * par.adb (P_Access_Definition): New formal that indicates if the
25883 null-exclusion part was present.
25884 (P_Access_Type_Definition): New formal that indicates if the caller has
25885 already parsed the null-excluding part.
25887 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
25888 (P_Identifier_Declarations): Code cleanup and give support to renamings
25889 of anonymous access to subprogram types.
25890 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
25891 (P_Array_Type_Definition): Give support to AI-254.
25892 (P_Component_Items): Give support to AI-254.
25893 (P_Access_Definition): New formal that indicates if the header was
25894 already parsed by the caller.
25895 (P_Access_Type_Definition): New formal that indicates if the caller has
25896 already parsed the null-excluding part.
25898 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
25899 call to P_Access_Definition.
25901 2004-04-19 Geert Bosch <bosch@gnat.com>
25903 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
25904 the delicate semantics of floating-point to integer conversion.
25905 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
25907 * eval_fat.adb (Machine_Mantissa): Moved to spec.
25908 (Machine_Radix): New function.
25910 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
25912 (Machine_Radix): New function also for use in conversion checks.
25914 2004-04-19 Ed Schonberg <schonberg@gnat.com>
25916 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
25918 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
25919 to decorate the access-to-protected subprogram and the equivalent type.
25921 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
25922 to anonymous access to subprogram types.
25924 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
25925 constant-folding, for legality checks in contexts that require an RM
25928 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
25929 temporary but stack checking is not enabled, increment serial number
25930 to so that symbol generation is consistent with and without stack
25933 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
25934 independent on whether stack checking is enabled, caller must check
25935 the corresponding flag.
25937 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
25939 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
25940 parent if it has discriminants.
25941 (Build_Derived_Private_Type): Constructed full view does
25942 not come from source.
25943 (Process_Discriminants): Default discriminants on a tagged type are
25944 legal if this is the internal completion of a private untagged
25947 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
25948 no constraint checks, because it corresponds to an existing object.
25950 * sem_prag.adb (Process_Convention): Pragma applies
25951 only to subprograms in the same declarative part, i.e. the same unit,
25952 not the same scope.
25954 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
25955 ignore type mismatch on a numeric conversion if expression comes from
25958 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
25960 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
25961 Homonym_Number parameter, add processing for Source_Location parameter
25963 (Check_Eliminated): Remove the check for homonym numbers, add the check
25964 for source location traces.
25966 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
25967 with Arg_Source_Location corresponding to the changes in the format of
25970 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
25971 Eliminate pragma corresponding to the changes in the format of the
25972 pragma: Homonym_Number is replaced with Source_Location, two ways of
25973 distinguishing homonyms are mutially-exclusive.
25975 2004-04-19 Joel Brobecker <brobecker@gnat.com>
25977 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
25979 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
25980 No_Dollar_In_Label, no longer necessary, as it is always True.
25981 (Strip_Suffixes): Likewise.
25983 2004-04-19 Gary Dismukes <dismukes@gnat.com>
25985 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
25986 modulus for compatibility with size clause on targets with 16-bit
25989 * layout.adb (Discrimify): In the case of private types, set Vtyp to
25990 full type to fix type mismatches on calls to size functions for
25991 discriminant-dependent array components.
25993 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
25995 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
25998 2004-04-19 Pascal Obry <obry@gnat.com>
26000 * mdll-utl.adb (Locate): New version is idempotent.
26002 2004-04-17 Laurent Guerby <laurent@guerby.net>
26004 PR ada/14988 (partial)
26005 * impunit.adb: Fix typo.
26007 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
26009 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
26010 and install-rts-cert targets. Remove all gnatlib and gnattools
26011 targets and all other rts-* targets (moved to libada). Remove (now)
26012 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
26013 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
26015 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26017 * trans.c (tree_transform): Shortcut returning error_mark_node for
26018 statements in annotate_only_mode.
26019 (tree_transform, case N_Label, case N_Return_Statement,
26020 N_Goto_Statement): Make statement tree instead of generating code.
26021 (tree_transform, case N_Assignment_Statement): No longer check
26022 type_annotate_only.
26023 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
26025 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
26027 (gnat_to_gnu): Collect any RTL generated and deal with it.
26028 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
26029 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
26030 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
26032 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
26034 * ada-tree.def (EXPR_STMT): Fix typo in name.
26035 (BLOCK_STMT, IF_STMT): New nodes.
26037 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
26038 LABEL_STMT_FIRST_IN_EH): New macros.
26039 (RETURN_STMT_EXPR): Likewise.
26041 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
26042 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
26044 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
26046 * atree.ads: Correct documentation on extended nodes.
26048 * link.c: Set run_path_option for FreeBSD.
26050 2004-04-08 Vincent Celier <celier@gnat.com>
26052 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
26053 one of the ALI file, do not link with DEC lib.
26055 * par.adb Remove the last two characters ("%s" or "%b") when checking
26056 if a language defined unit may be recompiled.
26058 2004-04-08 Ed Schonberg <schonberg@gnat.com>
26060 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
26061 removal of abstract operation leaves no possible interpretation for
26064 * sem_eval.adb (Eval_Qualified_Expression): Use
26065 Set_Raises_Constraint_Error on node when needed, so that it does not
26066 get optimized away by subsequent optimizations.
26068 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
26069 operands even when they are not wrapped in a type conversion.
26071 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
26073 * sem_prag.adb (Set_Exported): Warn about making static as result of
26074 export only when the export is coming from source. This may be not
26075 be true e.g. on VMS where we expand export pragmas for exception codes
26076 together with imported or exported exceptions, and we don't want the
26077 user to be warned about something he didn't write.
26079 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
26081 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
26082 duplication between normal entities and those declared as renamings.
26083 No functional change.
26085 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
26086 inline functions returning an unconstrained result.
26088 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
26090 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
26091 conform to what other front-ends do.
26093 2004-04-08 Doug Rupp <rupp@gnat.com>
26095 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
26098 2004-04-06 Pascal Obry <obry@gnat.com>
26100 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
26102 * osint.adb (Program_Name): Do not look past a directory separator.
26104 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
26106 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
26108 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
26109 requirement for preserving a copy of the original assignment node.
26111 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
26113 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
26115 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
26118 2004-04-06 Ed Schonberg <schonberg@gnat.com>
26120 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
26121 operator calls in functional notation, and apply
26122 Universal_Interpretation to operands, not to their type.
26124 2004-04-06 Robert Dewar <dewar@gnat.com>
26126 * 5wdirval.adb: Minor reformatting
26128 2004-04-06 Ed Falis <falis@gnat.com>
26130 * gnat_rm.texi: Improve a reference to the GCC manual
26132 2004-04-05 Vincent Celier <celier@gnat.com>
26134 * adaint.h, adaint.c: Add function __gnat_named_file_length
26136 * impunit.adb: Add Ada.Directories to the list
26138 * Makefile.in: Add VMS and Windows versions of
26139 Ada.Directories.Validity package body.
26141 * Makefile.rtl: Add a-direct and a-dirval
26143 * mlib-tgt.ads: Minor comment update.
26145 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
26146 a-direct.ads, a-direct.adb: New files.
26148 2004-04-05 Vincent Celier <celier@gnat.com>
26151 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
26152 just to the compiler.
26154 2004-04-05 Robert Dewar <dewar@gnat.com>
26156 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
26157 returned string is 1.
26159 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
26161 * eval_fat.ads: Minor reformatting
26163 * g-curexc.ads: Document that lower bound of returned string values
26166 * gnatlink.adb: Add ??? comment for previous change
26167 (need to document why this is VMS specific)
26169 * s-stoele.ads: Minor reformatting
26171 * tbuild.ads: Minor reformatting throughout (new function specs)
26173 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
26176 * scng.adb: Minor reformatting
26178 2004-04-05 Geert Bosch <bosch@gnat.com>
26180 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
26181 (Leading_Part): Still perform truncation to machine number if the
26182 specified radix_digits is greater or equal to machine_mantissa.
26184 2004-04-05 Javier Miranda <miranda@gnat.com>
26186 * par-ch3.adb: Complete documentation of previous change
26187 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
26188 (aliased must appear before constant).
26190 * par-ch4.adb: Complete documentation of previous change.
26192 * par-ch6.adb: Complete documentation of previous change.
26194 * sinfo.ads: Fix typo in commment.
26196 2004-04-05 Ed Schonberg <schonberg@gnat.com>
26198 * sem_ch3.adb (Inherit_Components): If derived type is private and has
26199 stored discriminants, use its discriminants to constrain parent type,
26200 as is done for non-private derived record types.
26202 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
26203 Ada 2005 AI-310: an abstract non-dispatching operation is not a
26204 candidate interpretation in an overloaded call.
26206 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
26207 expression is Null and target type is not an access type (e.g. a
26208 non-private address type).
26210 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
26212 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
26213 statement whose right-hand side is an inlined call, save a copy of the
26214 original assignment subtree to preserve enough consistency for
26215 Analyze_Assignment to proceed.
26217 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
26218 complete assignment subtree which is now unnecessary, as the expansion
26219 of inlined call has been improved to preserve a consistent assignment
26220 tree. Note_Possible_Modification must be called only
26221 after checks have been applied, or else unnecessary checks will
26224 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
26225 of explicit dereferences that do not Come_From_Source:
26226 - be selective on cases where we must go back to the dereferenced
26227 pointer (an assignment to an implicit dereference must not be
26228 recorded as modifying the pointer);
26229 - do not rely on Original_Node being present (Analyze_Assignment
26230 calls Note_Possible_Modification on a copied tree).
26232 * sem_warn.adb (Check_References): When an unset reference to a pointer
26233 that is never assigned is encountered, prefer '<pointer> may be null'
26234 warning over '<pointer> is never assigned a value'.
26236 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
26238 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
26241 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
26243 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
26244 libexc. We currently don't reference anything in this library and
26245 linking it in triggers linker warnings we don't want to see.
26247 * init.c: Update comments.
26249 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26251 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
26252 * utils.c (create_field_decl): Likewise.
26253 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
26255 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
26257 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
26258 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
26259 Add info directory entry and category.
26261 2004-04-02 Jan Hubicka <jh@suse.cz>
26263 * utils.c: Include function.h
26264 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
26266 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
26269 * Make-lang.in: Clean up generation of documentation
26271 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
26273 * xgnatug.adb: Removed, replaced by xgnatugn.adb
26275 * xgnatugn.adb: Replaces xgnatug.adb
26277 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
26279 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
26281 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
26282 gnat_ug_wnt.texi: Removed.
26284 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
26286 * utils2.c: Update copyright notice.
26288 2004-04-01 Robert Dewar <dewar@gnat.com>
26290 * checks.adb: Minor reformatting throughout
26291 Note that prev checkin added RM reference to alignment warning
26293 2004-04-01 Ed Schonberg <schonberg@gnat.com>
26295 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
26296 non-static when building aggregate for bit-packed array.
26298 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
26299 function call that is itself the actual in a procedure call, build
26302 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
26303 a string literal, create a temporary for it, constant folding only
26304 handles scalars here.
26306 2004-04-01 Vincent Celier <celier@gnat.com>
26308 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
26309 Error_Msg_SP): New empty procedures to instantiate the Scanner.
26310 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
26312 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
26313 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
26314 and get the checksum.
26316 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
26318 Increase the Marking_Label at the end of the Multiple_Main_Loop,
26319 instead of at the beginning.
26321 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
26323 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
26326 * osint.ads (Multi_Unit_Index_Character): New Character global variable
26328 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
26331 * par.adb: Remove test on file name to detect language defined units.
26332 Add test on unit name, after parsing, to detect language defined units
26333 that are not compiled with -gnatg (except System.RPC and its children)
26335 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
26336 following units without style checking.
26338 * switch-c.adb: Change -gnatC to -gnateI
26340 * usage.adb: Document new switch -gnateInnn
26342 * scng.adb (Accumulate_Token_Checksum): New procedure
26343 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
26344 word or literal number.
26345 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
26348 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
26351 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
26352 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
26353 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
26354 5vtpopde.adb: Add missing 'constant' keywords.
26356 2004-04-01 Javier Miranda <miranda@gnat.com>
26358 * par-ch4.adb: (P_Allocator): Code cleanup
26360 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
26363 * sinfo.ads: Complete documentation of previous change
26365 2004-04-01 Pascal Obry <obry@gnat.com>
26367 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
26368 only on VMS. This special handling was done because an old GNU/ld bug
26369 on Windows which has been fixed.
26371 2004-04-01 GNAT Script <nobody@gnat.com>
26373 * Make-lang.in: Makefile automatically updated
26375 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26377 * decl.c (gnat_to_gnu_entity, make_type_from_size):
26378 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
26379 * trans.c (tree_transform, convert_with_check): Likewise.
26380 * utils.c (gnat_signed_or_unsigned_type): Likewise.
26381 (build_vms_descriptor, unchecked_convert): Likewise.
26382 * utils2.c (nonbinary_modular_operation): Likewise.
26384 2004-03-29 Javier Miranda <miranda@gnat.com>
26386 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
26387 (Install_Null_Excluding_Check): Local subprogram that determines whether
26388 an access node requires a runtime access check and if so inserts the
26389 appropriate run-time check.
26390 (Apply_Access_Check): Call Install_Null_Excluding check if required
26391 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
26393 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
26395 * einfo.ads: Fix typo in comment
26397 * exp_ch3.adb (Build_Assignment): Generate conversion to the
26398 null-excluding type to force the corresponding run-time check.
26399 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
26400 type to force the corresponding run-time check.
26402 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
26403 the null-excluding type to force the corresponding run-time check.
26405 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
26406 case of access types unless they have the null-excluding attribute.
26408 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
26411 * exp_util.ads: Fix typo in comment
26413 * par.adb (P_Null_Exclusion): New subprogram
26414 (P_Subtype_Indication): New formal that indicates if the null-excluding
26415 part has been scanned-out and it was present
26417 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
26419 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
26420 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
26421 type to force the corresponding run-time check
26422 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
26424 (Resolve_Array_Aggregate): Carry out some static checks
26425 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
26427 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
26428 attribute must be set only if specified by means of the null-excluding
26429 part. In addition, we must also propagate the access-constant attribute
26431 (Access_Subprogram_Declaration, Access_Type_Declaration,
26432 Analyze_Component_Declaration, Analyze_Object_Declaration,
26433 Array_Type_Declaration, Process_Discriminants,
26434 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
26435 and carry out some static checks.
26436 (Build_Derived_Access_Type): Set the null-excluding attribute
26437 (Derived_Type_Declaration, Process_Subtype): Carry out some static
26440 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
26442 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
26444 * sem_ch6.adb (Process_Formals): Carry out some static checks.
26445 (Set_Actual_Subtypes): Generate null-excluding subtype if the
26446 null-excluding part was present; it is not required to be done here in
26447 case of anonymous access types.
26448 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
26451 * sem_res.adb (Resolve_Actuals): Carry out some static check
26452 (Resolve_Null): Allow null in anonymous access
26454 * sinfo.adb: New subprogram Null_Exclusion_Present
26455 All_Present and Constant_Present available on access_definition nodes
26457 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
26458 object_declaration, derived_type_definition, component_definition,
26459 discriminant_specification, access_to_object_definition,
26460 access_function_definition, allocator, access_procedure_definition,
26461 access_definition, parameter_specification, All_Present and
26462 Constant_Present flags available on access_definition nodes.
26464 2004-03-29 Robert Dewar <dewar@gnat.com>
26466 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
26467 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
26468 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
26469 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
26470 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
26471 sem_prag.adb: Updates to handle multiple units/file
26473 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
26475 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
26476 sem_util.adb: Minor reformatting
26478 * sem_ch12.adb: Add comment for previous change
26480 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
26482 * osint.adb (Executable_Prefix): Set Exec_Name to the current
26483 executable name when not initialized. Otherwise, use its current value.
26485 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
26486 initialize it to another executable name than the current one. This
26487 allows to configure paths for an executable name (gnatmake) different
26488 from the current one (gnatdist).
26490 2004-03-29 Ed Schonberg <schonberg@gnat.com>
26492 * exp_ch6.adb (Expand_Call): A call to a function declared in the
26493 current unit cannot be inlined if it appears in the body of a withed
26494 unit, to avoid order of elaboration problems in gigi.
26496 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
26497 information for protected (wrapper) operation as well, to simplify gdb
26500 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
26501 protected body, indicate that the entity for the generated spec comes
26502 from source, to ensure that references are properly generated for it.
26503 (Build_Body_To_Inline): Do not inline a function that returns a
26506 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
26507 apply convention to homonyms that are declared explicitly.
26509 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
26510 that renames an equality operator and the operands are overloaded,
26511 resolve them with the declared formal types, before rewriting as an
26514 2004-03-29 GNAT Script <nobody@gnat.com>
26516 * Make-lang.in: Makefile automatically updated
26518 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
26520 * memtrack.adb: Log realloc calls, which are treated as free followed
26523 2004-03-25 Vincent Celier <celier@gnat.com>
26525 * prj-makr.adb (Process_Directories): Detect when a file contains
26526 several units. Do not include such files in the config pragmas or
26527 in the naming scheme.
26529 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
26530 Resolve links only when not in Trusted_Mode.
26531 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
26532 Do not resolve links for the display names.
26534 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
26535 resolve links when computing the display names.
26537 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
26539 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
26540 attribute reference does not denote a subtype, it can be any
26541 expression that has a classwide type, potentially after an implicit
26542 dereference. In particular, the prefix can be a view conversion for
26543 a classwide type (for which Is_Object_Reference holds), but it can
26544 also be a value conversion for an access-to-classwide type. In the
26545 latter case, there is an implicit dereference, and the original node
26546 for the prefix does not verify Is_Object_Reference.
26548 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
26549 conversion of a discriminant-dependent component of a mutable object
26552 2004-03-25 Ed Schonberg <schonberg@gnat.com>
26554 * freeze.adb (Freeze_Entity): When an inherited subprogram is
26555 inherited, has convention C, and has unconstrained array parameters,
26556 place the corresponding warning on the derived type declaration rather
26557 than the original subprogram.
26559 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
26560 indication on renaming declaration, if formal has a box and actual
26563 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
26564 determine whether to generate an implicit or explicit reference to
26565 the renamed entity.
26567 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
26568 subprogram renaming comes from a defaulted formal subprogram in an
26571 2004-03-25 Gary Dismukes <dismukes@gnat.com>
26573 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
26574 value expressions to ensure that calls within a component definition
26575 will be checked (since those are evaluated during the record type's
26578 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
26580 * s-tpobop.adb: Code clean up:
26581 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
26583 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
26585 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
26587 * Makefile.in: Clean up in the ravenscar run time.
26589 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26591 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
26592 of No_Strict_Aliasing to build_pointer_type_for_mode.
26593 * utils.c (update_pointer_to): Walk pointer and ref chains.
26595 2004-03-22 Cyrille Comar <comar@act-europe.fr>
26597 * ali.ads: Fix Comment about Dynamic_Elab.
26599 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
26600 Has_RACW, Is_Generic, etc.)
26601 (Output_Object, Gnatls): Take into account ALI files not attached to
26604 2004-03-22 Vincent Celier <celier@gnat.com>
26606 * gprep.adb: Change all String_Access to Name_Id
26607 (Is_ASCII_Letter): new function
26608 (Double_File_Name_Buffer): New procedure
26609 (Preprocess_Infile_Name): New procedure
26610 (Process_Files): New procedure
26611 (Gnatprep): Check if output and input are existing directories.
26612 Call Process_Files to do the real job.
26614 2004-03-22 Robert Dewar <dewar@gnat.com>
26616 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
26617 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
26619 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
26621 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
26622 case when the source contains only comments.
26624 2004-03-22 Ed Schonberg <schonberg@gnat.com>
26626 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
26627 declaration for a child subprogram body that acts as a spec, indicate
26628 that the entity in the declaration needs debugging information.
26630 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
26631 full view if the subtype is created for a constrained record component;
26632 gigi has enough information to construct the record, and there is no
26633 place in the tree for the declaration.
26635 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
26636 serial number for the dummy body that is built for analysis, to avoid
26637 inconsistencies in the generation of internal names when compiling
26640 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
26642 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
26645 2004-03-22 GNAT Script <nobody@gnat.com>
26647 * Make-lang.in: Makefile automatically updated
26649 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26651 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
26652 * trans.c (tree_transform, emit_index_check): Likewise.
26653 * utils.c (build_template): Likewise.
26654 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
26655 (maybe_unconstrained_array, unchecked_convert): Likewise.
26656 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
26657 (build_unary_op): Likewise.
26658 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
26659 (fill_vms_descriptor): Likewise.
26660 (build_call_alloc_dealloc): Likewise.
26662 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
26664 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
26667 * gnat_ug.texi: Add info directory category and entry.
26668 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
26669 gnat_ug_wnt.texi: Regenerate.
26671 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
26673 * ada-tree.h: Update copyright notice.
26674 Minor reformatting.
26676 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
26678 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
26679 as regular exception objects and not as mere integers representing the
26680 condition code. The latter approach required some dynamics to mask off
26681 severity bits, which did not fit well into the GCC table based model.
26682 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
26683 exception data objects. We don't it and it would conflict with the other
26684 external symbol we have to generate for such exceptions.
26686 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
26687 the special code for VMS exceptions, since these are now represented
26688 as regular exceptions objects.
26690 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26692 * decl.c (debug_no_type_hash): Remove.
26693 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
26694 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
26696 2004-03-19 Laurent Guerby <laurent@guerby.net>
26698 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
26699 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
26701 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26703 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
26704 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
26705 (TYPE_RM_SIZE_INT): Directly use type.values.
26706 (TREE_LOOP_ID): Clean up check.
26707 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
26708 TYPE_VALUES, not TYPE_FIELDS.
26709 * trans.c (convert_with_check): Delay access of bounds of basetype
26710 until sure is numeric.
26712 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
26714 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
26717 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
26718 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
26719 Specific.Set instead of direct call to e.g pthread_setspecific.
26721 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
26723 * adaint.c: Update comments.
26725 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
26726 GNATLIB_SHARED for FreeBSD.
26728 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
26730 * init.c [VxWorks]: Do not fix the stack size for the environment task.
26731 When needed (stack checking) the stack size is retrieved
26732 from the VxWorks kernel.
26734 * Makefile.in: Flag -nostdinc is required when building the run time
26735 for avoiding looking for files in the base compiler.
26736 Add the VxWorks specific version of the package body for
26737 System.Stack_checking.Operations (5zstchop.adb).
26739 * Make-lang.in: Add the object file for
26740 System.Stack_Checking.Operations.
26742 * Makefile.rtl: Add object file for the package
26743 System.Stack_Checking.Operations.
26745 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
26747 * s-stache.ads, s-stache.adb: Move the operations related to stack
26748 checking from this package to package System.Stack_Checking.Operations.
26749 This way, stack checking operations are only linked in the final
26750 executable when using the -fstack-check flag.
26752 2004-03-18 Doug Rupp <rupp@gnat.com>
26754 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
26757 * 5qsystem.ads, 5xcrtl.ads: New files.
26759 2004-03-18 Vincent Celier <celier@gnat.com>
26761 * prj.adb (Reset): Reset hash table Files_Htable
26763 * prj-env.adb (Source_Paths, Object_Paths): New tables.
26764 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
26765 the procedures Add_To_Path_File.
26766 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
26767 making sure that each directory is present only once and, for object
26768 dirs, when a directory already present is added, the duplicate is
26769 removed and the directory is always put as the last in the table.
26770 Write the path files at the end of these accumulations.
26772 * prj-nmsc.adb (Record_Source): Add source file name in hash table
26773 Files_Htable for all sources.
26775 * prj-proc.adb (Process): Remove restrictions between not directly
26776 related extending projects.
26778 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
26780 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
26781 (Find_Sources): Minor speed optimization.
26783 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
26784 parameter Trusted_Mode.
26786 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
26788 * scn.adb (Determine_License): Take into account a degenerated case
26789 when the source contains only comments.
26791 2004-03-18 Ed Schonberg <schonberg@gnat.com>
26793 * sem_warn.adb (Check_References): For a warning on a selected
26794 component that does not come from source, locate an uninitialized
26795 component of the record type to produce a more precise error message.
26797 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
26799 * 3zsoccon.ads: Fix multicast options.
26801 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
26804 2004-03-15 Robert Dewar <dewar@gnat.com>
26806 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
26807 pragma used for a private type.
26809 * lib-xref.adb (Generate_Reference): Do not generate warning if
26810 reference is in a different unit from the pragma Unreferenced.
26812 * 5vtpopde.adb: Minor reformatting
26813 Fix casing of To_Task_ID
26815 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
26816 flag if we have an unchecked conversion to an access type in the same
26819 2004-03-15 Geert Bosch <bosch@gnat.com>
26821 * a-ngcoty.adb (Modulus): In alternate formula for large real or
26822 imaginary parts, use Double precision throughout.
26824 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
26825 we want to be able to compile run-time with -gnata for testing, but
26826 this may also be instantiated in user code that is compiled with -gnata.
26828 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
26830 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
26831 codes. Having a separate type for this is useful to enforce consistency
26832 throughout the various run-time units.
26833 (Exception_Data): Use Exception_Code for Import_Code.
26835 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
26836 Natural and Integer in various places.
26837 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
26838 with the severity bits masked off.
26839 (Register_VMS_Exception): Handle the additional exception data pointer
26842 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
26843 component, now reflected by an exported accessor.
26844 (is_handled_by): New routine to compute whether the propagated
26845 occurrence matches some handler choice specification. Extracted out of
26846 get_action_description_for, and expanded to take care of the VMS
26848 (get_action_description_for): Use is_handled_by instead of an explicit
26849 complex condition to decide if the current choice at hand catches the
26850 propagated occurrence.
26852 * raise.h (Exception_Code): New type for C.
26854 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
26855 System.Standard_Library.Exception_Code, to allow references from the
26856 pragma import/export expander.
26858 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
26859 New accessors to allow easy access to GNAT exception data
26861 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
26862 redundant Handled_By_Others component, helper for the personality
26863 routine which will now be able to call the appropriate exception data
26866 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
26867 component of Standard_Exception_Type to be the closest possible to
26868 Exception_Code in System.Standard_Library, that we cannot get at this
26869 point. Expand a ??? comment to notify that this type node should
26870 probably be rewritten later on.
26872 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
26873 registration call to include a pointer to the exception object in the
26876 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
26877 instead of int and explicit bitmasks.
26879 2004-03-15 Vincent Celier <celier@gnat.com>
26881 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
26882 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
26884 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
26885 longer needed now that it is in the spec of
26886 System.Tasking.Task_Attributes.
26888 * adaint.h, adaint.c: (__gnat_create_output_file): New function
26890 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
26892 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
26894 * make.adb (Gnatmake): Do not check the executable suffix; it is being
26895 taken care of in Scan_Make_Arg.
26896 (Scan_Make_Arg): Add the executable suffix only if the argument
26897 following -o, in canonical case, does not end with the executable
26898 suffix. When in verbose mode and executable file name does not end
26899 with executable suffix, output the executable name, in canonical case.
26901 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
26902 to avoid warnings when instantiating Ada.Task_Attributes.
26905 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
26906 in the correct order.
26908 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
26909 redirect standard output and error to a file for the invocation of the
26910 compiler, then read the file.
26912 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
26913 directory, instead of the Value.
26914 (Find_Source_Dirs): Remove useless code & comments.
26916 2004-03-15 Ed Schonberg <schonberg@gnat.com>
26918 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
26919 tagged type is inherited, and the parent operation is not frozen yet,
26920 force generation of a freeze node for the inherited operation, so the
26921 corresponding dispatch entry is properly initialized.
26922 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
26923 when looking for user-defined equality operation.
26925 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
26926 boolean when locating primitive equality of tagged component.
26928 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
26929 bit-aligned field and the right-hand side a string literal, introduce
26930 a temporary before expanding assignment into a loop.
26932 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
26933 priority in full, to ensure that any expanded subepxressions of it are
26934 elaborated in the scope of the init_proc.
26936 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
26937 after object declaration, skipping over code that may have been
26938 generated for validity checks.
26940 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
26941 discriminants, ignore the known discriminants of its full view, if
26942 any, to check legality.
26944 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
26945 component if type has unknown discriminants.
26946 (Analyze_Private_Extension_Declaration): Discriminant constraint is
26947 null if type has unknown discriminants.
26949 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
26950 for end label when present.
26952 * s-fileio.adb (Open): When called with a C_Stream, use given name for
26953 temporary file, rather than an empty string.
26955 2004-03-15 Ed Falis <falis@gnat.com>
26957 * s-thread.adb: Removed, no longer used.
26959 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26961 * decl.c (target.h): Now include.
26962 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
26963 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
26964 (validate_size): For POINTER_TYPE, get smallest size permitted on
26967 * fe.h: Sort Einfo decls and add Set_Mechanism.
26969 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
26970 (ada/decl.o): Depends on target.h.
26972 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
26973 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
26975 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
26977 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
26979 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
26980 Insert_Dereference_Action when rewriting an implicit dereference into
26981 an explicit one, this will be taken care of during expansion of the
26982 explicit dereference.
26983 (Expand_N_Slice): Same. Always do the rewriting, even for the case
26984 of non-packed slices, since the dereference action generated by
26985 expansion of the explicit dereference is needed in any case.
26986 (Expand_N_Selected_Component): When rewriting an implicit dereference,
26987 analyze and resolve the rewritten explicit dereference so it is seen
26989 (Insert_Dereference_Action): This procedure is now called only for the
26990 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
26991 dereferences that do not come from source (including explicit
26992 dereferences resulting from rewriting implicit ones), but do not
26993 recursively insert a check for the dereference nodes contained within
26995 (Insert_Dereference_Action): Clarify and correct comment.
26997 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
27000 Move language detection to the top level.
27001 * config-lang.in: Build by default.
27003 2004-03-05 Robert Dewar <dewar@gnat.com>
27005 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
27007 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
27008 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
27009 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
27010 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
27011 unchecked conversion to spec to avoid warnings.
27013 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
27016 * 7stpopsp.adb: Correct casing in To_Task_ID call
27018 * a-strsea.ads, a-strsea.adb: Minor reformatting
27020 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
27022 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
27023 Adjust Max_Msg_Length to be clearly large enough.
27025 * fe.h: Define In_Same_Source_Unit
27027 * osint.adb: Add pragma Warnings Off to suppress warnings
27028 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
27031 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
27033 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
27035 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
27037 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
27039 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
27041 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
27042 node. We now do generate them for gcc back end.
27044 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
27047 * sinput-c.adb: Fix bad name in header.
27048 Add pragma Warnings Off to suppress aliasing warning.
27050 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
27052 * snames.h, snames.ads, snames.adb: Add entry for pragma
27053 No_Strict_Aliasing.
27055 2004-03-05 Vincent Celier <celier@gnat.com>
27057 * prj-com.ads: Add hash table Files_Htable to check when a file name
27058 is already a source of another project.
27060 * prj-nmsc.adb (Record_Source): Before recording a new source, check
27061 if its file name is not already a source of another project. Report an
27064 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
27065 source file name, call gnatpp with all the sources of the main project.
27067 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
27070 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
27071 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
27072 /RUNTIME_SYSTEM=, converted to --RTS=
27073 /NOTABS, converted to -notabs
27075 2004-03-05 Pascal Obry <obry@gnat.com>
27077 * make.adb: Minor reformatting.
27079 2004-03-05 Ed Schonberg <schonberg@gnat.com>
27081 Part of implemention of AI-262.
27082 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
27084 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
27087 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
27088 when component type is a partially constrained class-wide subtype.
27089 (Constrain_Discriminated_Type): If parent type has unknown
27090 discriminants, a constraint is illegal, even if full view has
27092 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
27093 with unknown discriminants whose full view is a discriminated record.
27095 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
27096 flag, to handle properly derivations of tagged types with unknown
27098 (Analyze_Package_Spec, Analyze_Package_Body): Install
27099 Private_With_Clauses before analyzing private part or body.
27101 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
27102 Has_Discriminants can be true for a given type (documentation).
27104 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
27106 * s-restri.ads: Fix license (GPL->GMGPL).
27108 * s-tassta.adb: Minor reformatting.
27110 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
27111 by calls to Exit_One_ATC_Level, since additional clean up is performed
27114 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
27115 by calls to Exit_One_ATC_Level, since additional clean up is performed
27118 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27120 * trans.c: Reflect GCC changes to fix bootstrap problem.
27121 Add warning for suspicious aliasing unchecked conversion.
27123 2004-03-05 GNAT Script <nobody@gnat.com>
27125 * Make-lang.in: Makefile automatically updated
27127 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
27129 * ali.adb (Read_Instantiation_Instance): Do not modify the
27130 current_file_num when reading information about instantiations, since
27131 this corrupts files in later references.
27133 2004-03-02 Vincent Celier <celier@gnat.com>
27135 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
27136 before checking if it is read-only.
27138 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
27139 of SRC_DIRS and eliminate duplicates.
27141 * gprcmd.adb: Replace command "path" with command "path_sep" to return
27142 the path separator.
27143 (Usage): Document path_sep
27145 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
27146 C++ compiler. No need for a script.
27147 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
27148 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
27151 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
27152 where there are Ada sources.
27153 (Set_Ada_Paths): Only add to the include path the source dirs of project
27155 (Add_To_Path): Add the Display_Values of the directories, not their
27158 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
27161 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
27163 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
27164 Value is canonicalized.
27165 (Language_Independent_Check): Do not copy Value to Display_Value when
27166 canonicalizing Value.
27168 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
27169 path to find limited with cycles.
27170 (Parse_Single_Project): Use canonical cased path to find the end of a
27173 2004-03-02 Ed Schonberg <schonberg@gnat.com>
27175 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
27176 and not a child unit.
27178 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
27179 appear in a with_clause.
27181 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
27182 only happen in type_annotate mode, do not try to elaborate it.
27184 * exp_util.adb (Force_Evaluation): If expression is a selected
27185 component on the left of an assignment, use a renaming rather than a
27186 temporary to remove side effects.
27188 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
27189 inlined instance body, which is analyzed before the end of the
27192 2004-03-02 Robert Dewar <dewar@gnat.com>
27194 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
27195 sem_ch4.adb: Use new feature for substitution of keywords in VMS
27197 * errout.ads, errout.adb: Implement new circuit for substitution of
27200 * sem_case.adb (Analyze_Choices): Place message properly when case is
27201 a subtype reference rather than an explicit range.
27203 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
27205 2004-03-02 Doug Rupp <rupp@gnat.com>
27207 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
27209 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
27211 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
27213 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27215 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
27218 2004-02-25 Robert Dewar <dewar@gnat.com>
27220 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
27221 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
27222 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
27223 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
27224 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
27225 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
27226 the defining instance of the type to avoid aliasing problems.
27227 Fix copyright header. Fix bad comments in package header.
27229 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
27231 2004-02-25 Ed Schonberg <schonberg@gnat.com>
27233 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
27234 rewritten as references when aliased through an address clause.
27236 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
27237 whether call can be interpreted as an indirect call to the result of a
27238 parameterless function call returning an access subprogram.
27240 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
27243 * exp_ch7.adb (Make_Clean): Remove generation of calls to
27244 Unlock[_Entries], since this is now done by Service_Entries directly.
27246 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
27248 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
27249 Requeue_Call for better code readability. Change spec and update calls:
27250 PO_Service_Entries now unlock the PO on exit.
27251 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
27252 PO_Service_Entries.
27254 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
27256 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
27258 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
27260 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
27261 protected subprogram call and analyzing the result of such expanding
27262 in case when the called protected subprogram is eliminated.
27264 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
27267 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
27269 * Makefile.in: Clean ups.
27271 2004-02-23 Ed Schonberg <schonberg@gnat.com>
27273 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
27274 protected operations if original subprogram is flagged as eliminated.
27275 (Expand_N_Subprogram_Body): For a protected operation, create
27276 discriminals for next operation before checking whether the operation
27279 * exp_ch9.adb (Expand_N_Protected_Body,
27280 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
27281 for internal protected operations if the original subprogram is
27284 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
27285 declared in a single protected object.
27287 2004-02-23 Vincent Celier <celier@gnat.com>
27289 * prj-attr.adb: Make attribute Builder'Executable an associative array,
27290 case insensitive if file names are case insensitive, instead of a
27291 standard associative array.
27293 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
27294 them as case insensitive on platforms where the file names are case
27297 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
27298 project file has already been parsed that canonical path are compared.
27300 2004-02-23 Robert Dewar <dewar@gnat.com>
27302 * sinput-c.ads: Correct bad unit title in header
27304 * freeze.adb: Minor reformatting
27306 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27308 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
27309 nonaddressable COMPONENT_REF that is removing padding that we are
27310 taking the address of, take the address of the padded record instead
27311 if item is variable size.
27313 2004-02-20 Robert Dewar <dewar@gnat.com>
27315 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
27317 2004-02-20 Ed Schonberg <schonberg@gnat.com>
27319 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
27320 itype references for the constrained designated type of a component
27321 whose base type is already frozen.
27323 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
27325 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
27326 avoid GCC warnings.
27328 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
27330 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
27331 identifier for a phantom package that rewrites the formal package
27332 declaration with a box. The Add semantic decorations for the defining
27333 identifier from the original node (that represents the formal package).
27335 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
27337 * Make-lang.in (ada/stamp-sdefault): Use the top level
27340 2004-02-19 Richard Henderson <rth@redhat.com>
27342 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
27344 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
27346 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
27347 Scan_ALI can be used for multiple ALI files without reinitializing
27350 2004-02-18 Robert Dewar <dewar@gnat.com>
27352 * debug.adb: Minor reformatting.
27354 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27356 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
27357 to zero if there is an address clause.
27359 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
27361 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
27363 2004-02-18 Gary Dismukes <dismukes@gnat.com>
27365 * layout.adb (Layout_Component_List): Revise generation of call to
27366 discriminant-checking function to pass selections of all of the type's
27367 discriminants rather than just the variant-controlling discriminant.
27369 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
27371 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
27372 fail in the current setup and triggers spurious system error messages.
27373 Pretend it occurred and failed instead.
27375 2004-02-18 Vincent Celier <celier@gnat.com>
27377 * bld.adb: Mark FLDFLAGS as saved
27378 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
27379 it is not the root project. Put each directory to be
27380 extended between double quotes to prevent it to be expanded on Windows.
27381 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
27382 the project file. Set them back to their initial values if they have not
27383 been set in the project file.
27385 * gprcmd.adb: (Gprdebug, Debug): New global variables
27386 (Display_Command): New procedure
27387 (Usage): Document new command "linkopts"
27388 Call Display_Command when env var GPRDEBUG has the value "TRUE"
27389 Implement new command "linkopts"
27390 Remove quotes that may be around arguments for "extend"
27391 Always call Normalize_Pathname with arguments formatted for the platform
27393 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
27394 Change @echo to @$(display) in target clean to be able to clean silently
27396 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
27398 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
27401 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
27402 = Extending_All when current project is an extending all project.
27404 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
27405 set to True only for LINK command, after Unix switch -o.
27406 (Process_Arguments): Set Output_File_Expected to True for LINK command
27407 after Unix switch -o. When Output_File_Expected is True, never add an
27408 extension to a file name.
27410 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
27411 option file name, only to the --for-linker= switch.
27412 (Option_File_Name): If option file name do not end with ".opt", append
27415 2004-02-18 GNAT Script <nobody@gnat.com>
27417 * Make-lang.in: Makefile automatically updated
27419 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
27421 * Make-lang.in (stamp-sdefault): Do not depend on
27424 2004-02-12 Zack Weinberg <zack@codesourcery.com>
27426 * config-lang.in: Disable Ada by default until probe logic for
27427 a bootstrap Ada compiler can be moved to the top level configure
27430 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
27432 * decl.c (components_to_record): Don't claim that the internal fields
27433 we make to hold the variant parts are semantically addressable, because
27436 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
27437 adjust the comment describing the modular type form when we can use it.
27438 (Install_PAT): Account for the Esiz renaming.
27440 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
27441 sc_onstack context indication before raising the exception to which
27442 the signal is mapped. Allows better handling of later signals possibly
27443 triggered by the resumed user code if the exception is handled.
27445 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
27447 * 5zinit.adb: Removed, no longer used.
27449 2004-02-12 Robert Dewar <dewar@gnat.com>
27451 * ali.adb: Remove separating space between parameters on R line. Makes
27452 format consistent with format used by the binder for Set_Globals call.
27454 * atree.ads, atree.adb: Minor reformatting (new function header format)
27456 * bindgen.adb: Add Run-Time Globals documentation section containing
27457 detailed documentation of the globals passed from the binder file to
27460 * gnatls.adb: Minor reformatting
27462 * init.c (__gnat_set_globals): Add note pointing to documentation in
27465 * lib-writ.ads, lib-writ.adb: Remove separating space between
27466 parameters on R line.
27467 Makes format consistent with format used by the binder for Set_Globals
27470 * osint.ads: Add 2004 to copyright notice
27473 * snames.ads: Correct capitalization of FIFO_Within_Priorities
27474 Noticed during code reading, documentation issue only
27476 * usage.adb: Remove junk line for obsolete C switch
27477 Noticed during code reading
27479 2004-02-12 Vincent Celier <celier@gnat.com>
27481 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
27482 extend for each directory, so that multiple /** directories are
27483 extended individually.
27484 (Recursive_Process): Set the default for LANGUAGES to ada
27486 * gprcmd.adb: Define new command "ignore", to do nothing.
27487 Implement new comment "path".
27489 * Makefile.generic: Suppress output when SILENT is set
27490 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
27491 used, so that the correct compiler is invoked.
27492 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
27493 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
27495 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
27497 * Makefile.in: Clean ups and remove obsolete targets.
27499 2004-02-12 Ed Schonberg <schonberg@gnat.com>
27501 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
27502 predicate declared in exp_util.
27504 * exp_util.adb: Add comments.
27506 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
27507 visibility before compiling context of the subunit.
27509 * sem_res.adb (Check_Parameterless_Call): If the context expects a
27510 value but the name is a procedure, do not attempt to analyze as a call,
27511 in order to obtain more telling diagnostics.
27513 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
27514 'Access on parameterless function calls.
27515 (Normalize_Actuals): For a parameterless function call with missing
27516 actuals, defer diagnostic until resolution of enclosing call.
27518 * sem_util.adb (Wrong_Type): If the context type is an access to
27519 subprogram and the expression is a procedure name, suggest a missing
27522 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
27523 Nathanael Nerode <neroden@gcc.gnu.org>
27527 Merge with libada-branch:
27528 * config-lang.in: Build libada only when ada is built.
27530 2004-02-09 Ed Schonberg <schonberg@gnat.com>
27532 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
27533 for a tagged type, verify that both formals have the same type.
27535 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
27536 temporary when the formal is an in-parameter and the actual a possibly
27539 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
27540 when expansion is disabled, to ensure proper name capture with
27541 overloaded literals. Condition can be of any boolean type, resolve
27544 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
27545 renaming is for a formal subprogram with a default operator name, and
27546 there is a usable operator that is visible at the point of
27549 2004-02-09 Robert Dewar <dewar@gnat.com>
27551 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
27552 rewrite to ignore errors in ali files, intended to allow tools downward
27553 compatibility with new versions of ali files.
27555 * ali.ads: Add new parameter Ignore_Errors
27557 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
27558 duplicating the error message giving the file with restrictions.
27560 * debug.adb: Add debug flag I for gnatbind
27562 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
27563 operators for the case where the operator is a defining operator.
27565 * exp_ch3.adb: Minor reformatting (new function spec format).
27567 * exp_ch4.adb: Add comment for previous change, and make minor
27568 adjustment to loop to always check for improper loop termination.
27569 Minor reformatting throughout (new function spec format).
27571 * gnatbind.adb: Implement -di debug flag for gnatbind
27573 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
27575 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
27577 * lib-load.adb: Fix bad assertion.
27578 Found by testing and code reading.
27579 Minor reformatting.
27581 * lib-load.ads: Minor reformatting.
27583 * lib-writ.adb: There is only one R line now.
27585 * lib-writ.ads: Add documentation on making downward compatible changes
27586 to ali files so old tools work with new ali files.
27587 There is only one R line now.
27588 Add documentation on format incompatibilities (with special GPS note)
27590 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
27592 * par-load.adb: Minor reformatting
27594 * sem_ch8.adb: Fix to error message from last update
27595 Minor reformatting and restructuring of code from last update
27597 * par-prag.adb, snames.adb, snames.ads, snames.h,
27598 sem_prag.adb: Implement pragma Profile.
27600 * stylesw.adb: Implement -gnatyN switch to turn off all style check
27603 * usage.adb: Add line for -gnatyN switch
27605 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
27607 2004-02-09 Albert Lee <lee@gnat.com>
27609 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
27611 2004-02-09 Ed Schonberg <schonberg@gnat.com>
27613 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
27616 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
27617 is nested in an instance that is not frozen yet, to avoid
27618 order-of-elaboration problems in gigi.
27620 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
27621 body the attribute is legal.
27623 2004-02-09 Robert Dewar <dewar@gnat.com>
27625 * s-rident.ads: Minor comment correction
27627 * targparm.adb: Remove dependence on uintp completely. There was
27628 always a bug in Make in that it called Targparm before initializing
27629 the Uint package. The old code appeared to get away with this, but
27630 the new code did not! This caused an assertion error in gnatmake.
27632 * targparm.ads: Fix bad comment, restriction pragmas with parameters
27633 are indeed fully supported.
27635 2004-02-06 Alan Modra <amodra@bigpond.net.au>
27637 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
27639 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
27641 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
27642 with targetm.calls.promote_prototypes.
27644 2004-02-04 Robert Dewar <dewar@gnat.com>
27646 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
27647 ali.ads, gprcmd.adb: Minor reformatting
27649 * bindgen.adb: Output restrictions string for new style restrictions
27652 * impunit.adb: Add s-rident.ads (System.Rident) and
27653 s-restri (System.Restrictions)
27655 * lib-writ.adb: Fix bug in writing restrictions string (last few
27658 * s-restri.ads, s-restri.adb: Change name Restrictions to
27659 Run_Time_Restrictions to avoid conflict with package name.
27660 Add circuit to read and acquire run time restrictions.
27662 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
27664 * restrict.ads, restrict.adb: Use the new restriction
27665 No_Task_Attributes_Package instead of the old No_Task_Attributes.
27667 * sem_prag.adb: No_Task_Attributes is a synonym of
27668 No_Task_Attributes_Package.
27670 * snames.ads, snames.adb: New entry for proper handling of
27671 No_Task_Attributes.
27673 * s-rident.ads: Adding restriction No_Task_Attributes_Package
27674 (AI-00249) that supersedes the GNAT specific restriction
27675 No_Task_Attributes.
27677 2004-02-04 Ed Schonberg <schonberg@gnat.com>
27680 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
27681 body, an identifier may be wrapped in an unchecked conversion.
27683 2004-02-04 Vincent Celier <celier@gnat.com>
27685 * lib-writ.ads: Comment update for the W lines
27687 * bld.adb: (Expression): An empty string list is static
27689 * fname-uf.adb: Minor comment update
27691 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
27693 * gnatbind.adb: Initialize Cumulative_Restrictions with the
27694 restrictions on the target.
27696 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
27698 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
27701 2004-02-02 Arnaud Charlet <charlet@gnat.com>
27703 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
27705 2004-02-02 Vincent Celier <celier@gnat.com>
27707 * gprcmd.adb (Check_Args): If condition is false, print the invoked
27708 comment before the usage.
27709 Gprcmd: Fail when command is not recognized.
27710 (Usage): Document command "prefix"
27712 * g-md5.adb (Digest): Process last block.
27713 (Update): Do not process last block. Store remaining characters and
27716 * g-md5.ads (Update): Document that several call to update are
27717 equivalent to one call with the concatenated string.
27718 (Context): Add fields to allow new Update behaviour.
27720 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
27721 defaulted to False.
27722 When May_Fail is True and no existing file can be found, return No_File.
27724 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
27727 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
27728 spec file name instead on the W line.
27730 2004-02-02 Robert Dewar <dewar@gnat.com>
27732 * ali.adb: Read and acquire info from new format restrictions lines
27734 * bcheck.adb: Add circuits for checking restrictions with parameters
27736 * bindgen.adb: Output dummy restrictions data
27737 To be changed later
27739 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
27740 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
27741 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
27742 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
27743 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
27745 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
27746 the warning message on access to possibly uninitialized variable S)
27747 Minor changes for new restrictions handling.
27749 * gnatbind.adb: Minor reformatting
27750 Minor changes for new restrictions handling
27751 Move circuit for -r processing here from bcheck (cleaner)
27753 * gnatcmd.adb, gnatlink.adb: Minor reformatting
27755 * lib-writ.adb: Output new format restrictions lines
27757 * lib-writ.ads: Document new R format lines for new restrictions
27760 * s-restri.ads/adb: New files
27762 * Makefile.rtl: Add entry for s-restri.ads/adb
27764 * par-ch3.adb: Fix bad error messages starting with upper case letter
27767 * restrict.adb: Major rewrite throughout for new restrictions handling
27768 Major point is to handle restrictions with parameters
27770 * restrict.ads: Major changes in interface to handle restrictions with
27771 parameters. Also generally simplifies setting of restrictions.
27773 * snames.ads/adb: New entry for proper handling of No_Requeue
27775 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
27776 restriction counting.
27777 Other minor changes for new restrictions handling
27779 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
27780 Restriction_Warnings now allows full parameter notation
27781 Major rewrite of Restrictions for new restrictions handling
27783 2004-02-02 Javier Miranda <miranda@gnat.com>
27785 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
27786 syntax rule for object renaming declarations.
27787 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
27788 component definitions.
27790 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
27792 (Array_Type_Declaration): Give support to access components. In addition
27793 it was also modified to reflect the name of the object in anonymous
27794 array types. The old code did not take into account that it is possible
27795 to have an unconstrained anonymous array with an initial value.
27796 (Check_Or_Process_Discriminants): Allow access discriminant in
27798 (Process_Discriminants): Allow access discriminant in non-limited types
27799 Initialize the new Access_Definition field in N_Object_Renaming_Decl
27800 node. Change Ada0Y to Ada 0Y in comments
27802 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
27803 equality operators.
27804 Change Ada0Y to Ada 0Y in comments
27806 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
27807 renamings Change Ada0Y to Ada 0Y in comments
27809 * sem_type.adb (Find_Unique_Type): Give support to the equality
27810 operators for universal access types
27811 Change Ada0Y to Ada 0Y in comments
27813 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
27815 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
27817 (N_Object_Renaming_Declaration): Addition of Access_Definition field
27818 Change Ada0Y to Ada 0Y in comments
27820 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
27821 component definition and object renaming nodes
27822 Change Ada0Y to Ada 0Y in comments
27824 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
27826 * restrict.adb: Use the new restriction identifier
27827 No_Requeue_Statements instead of the old No_Requeue for defining the
27828 restricted profile.
27830 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
27831 No_Requeue_Statements.
27833 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
27834 that supersedes the GNAT specific restriction No_Requeue. The later is
27835 kept for backward compatibility.
27837 2004-02-02 Ed Schonberg <schonberg@gnat.com>
27839 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
27840 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
27841 pragma and fix incorrect ones.
27843 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
27844 warning if the pragma is redundant.
27846 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
27848 * 5staprop.adb: Add missing 'constant' keywords.
27850 * Makefile.in: use consistent value for SYMLIB on
27851 platforms where libaddr2line is supported.
27853 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27855 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
27858 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
27860 * init.c (__gnat_install_handler): Setup an alternate stack for signal
27861 handlers in the environment thread. This allows proper propagation of
27862 an exception on stack overflows in this thread even when the builtin
27863 ABI stack-checking scheme is used without support for a stack reserve
27866 * utils.c (create_field_decl): Augment the head comment about bitfield
27867 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
27868 here, because the former is not accurate enough at this point.
27869 Let finish_record_type decide instead.
27870 Don't make a bitfield if the field is to be addressable.
27871 Always set a size for the field if the record is packed, to ensure the
27872 checks for bitfield creation are triggered.
27873 (finish_record_type): During last pass over the fields, clear
27874 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
27875 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
27876 from DECL_BIT_FIELD.
27878 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
27880 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
27881 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
27882 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
27884 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27886 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
27888 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
27889 (ZCX_By_Default): Likewise.
27890 (Front_End_ZCX_Support): Likewise.
27892 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
27893 (Initialize_Lock): Mark Level unreferenced.
27894 (Sleep): Mark Reason unreferenced.
27895 (Timed_Sleep): Likewise.
27896 (Wakeup): Likewise.
27897 (Exit_Task): Use Result.
27898 (Check_No_Locks): Mark Self_ID unreferenced.
27900 * 5gtasinf.adb (New_Sproc): Make Attr constant.
27901 (Bound_Thread_Attributes): Make Sproc constant.
27902 (New_Bound_Thread_Attributes): Likewise.
27904 2004-01-26 Ed Schonberg <schonberg@gnat.com>
27906 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
27907 one-dimensional array an slice assignments, when component type is
27910 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
27911 component type is controlled, and control_actions are in effect, use
27912 TSS procedure rather than generating inline code.
27914 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
27915 arrays with controlled components.
27917 2004-01-26 Vincent Celier <celier@gnat.com>
27919 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
27920 command line for the non VMS case.
27922 * gnatlink.adb (Process_Binder_File): When building object file, if
27923 GNU linker is used, put all object paths between quotes, to prevent ld
27924 error when there are unusual characters (such as '!') in the paths.
27926 * Makefile.generic: When there are sources in Ada and the main is in
27927 C/C++, invoke gnatmake with -B, instead of -z.
27929 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
27930 from VMS_Conversion.
27931 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
27932 specification of argument file on the command line.
27934 2004-01-26 Bernard Banner <banner@gnat.com>
27936 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
27938 2004-01-26 Ed Schonberg <schonberg@gnat.com>
27940 * snames.adb: Update copyright notice.
27941 Add info on slice assignment for controlled arrays.
27943 2004-01-23 Robert Dewar <dewar@gnat.com>
27945 * exp_aggr.adb: Minor reformatting
27947 * exp_ch9.adb: Minor code clean up
27949 Fix bad character in comment
27952 * targparm.adb (Get_Target_Parameters): Give clean abort error on
27953 unexpected end of file, along with more detailed message.
27955 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27957 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
27960 * decl.c (copy_alias_set): New function.
27961 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
27963 2004-01-23 Doug Rupp <rupp@gnat.com>
27965 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
27966 lib$${file} in case subsequent character is not a separator.
27968 2004-01-23 Vincent Celier <celier@gnat.com>
27970 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
27971 when the GCC version is at least 3.
27973 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
27974 Remove all "Opt.", to prepare for opt split
27976 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
27977 Extends_All. Set to True when the project parsed is an extending all
27978 project. Fails for importing an extending all project only when the
27979 imported project is an extending all project.
27980 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
27981 depending on the value of Extends_All returned.
27983 * prj-proc.adb (Process): Check that no project shares its object
27984 directory with a project that extends it, directly or indirectly,
27985 including a virtual project.
27986 Check that no project extended by another project shares its object
27987 directory with another also extended project.
27989 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
27990 Kind = N_With_Clause
27992 * prj-tree.ads: Minor reformatting
27993 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
27995 2004-01-23 Ed Schonberg <schonberg@gnat.com>
27997 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
27998 applies to a type with an incomplete view, use full view in Name of
27999 clause, for consistency with uses of Get_Attribute_Definition_Clause.
28001 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
28003 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
28004 SCHED_RR, since other values are not supported by this policy.
28005 (Initialize): Move initialization of mutex attribute to package
28006 elaboration, to prevent early access to this variable.
28008 * Makefile.in: Remove mention of Makefile.adalib, unused.
28010 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
28011 1ssecsta.ads: Removed, unused.
28013 2004-01-21 Javier Miranda <miranda@gnat.com>
28015 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
28016 entity if already built in the current scope.
28018 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
28019 reminder in internal scopes. Required for nested limited aggregates.
28021 2004-01-21 Doug Rupp <rupp@gnat.com>
28023 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
28024 VMS. Replace all occurences of libgnat- and libgnarl- with
28025 libgnat$(hyphen) and libgnarl$(hyphen).
28026 Fixed shared library build problem on VMS.
28028 2004-01-21 Robert Dewar <dewar@gnat.com>
28030 * mlib-prj.adb: Minor reformatting
28032 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
28034 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
28035 'constant' keywords for declaration of pointers that are not modified.
28037 * exp_pakd.adb: Fix English in comment.
28039 2004-01-21 Ed Schonberg <schonberg@gnat.com>
28042 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
28043 copy all attributes of the parent, including the foreign language
28046 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
28049 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
28050 for 'delay until' statement.
28052 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
28054 * Make-lang.in: Replace $(docdir) with doc.
28055 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
28056 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
28057 to use consistent MAKEINFO rule.
28058 (ada.man, ada.srcman): Dummy entry.
28059 (ADA_INFOFILES): Define.
28060 (ada.info, ada.srcinfo): New rules.
28062 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
28064 * utils.c: Update copyright notice, missed in previous change.
28066 2004-01-19 Vincent Celier <celier@gnat.com>
28068 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
28069 args if Bind is True. Set First_ALI, if not already done.
28070 (Build_Library): For Stand Alone Libraries, extract from one ALI file
28071 an eventual --RTS switch, for gnatbind, and all backend switches +
28072 --RTS, for linking.
28074 2004-01-19 Robert Dewar <dewar@gnat.com>
28076 * sem_attr.adb, memtrack.adb: Minor reformatting
28078 2004-01-19 Ed Schonberg <schonberg@gnat.com>
28080 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
28081 that rename enumeration literals. This is properly done in sem_eval.
28083 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
28084 to functions that rename enumeration literals.
28086 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
28087 functions that rename enumeration literals.
28089 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
28091 * Make-lang.in (utils.o): Depend on target.h.
28092 * utils.c: Include target.h.
28093 (process_attributes): Use targetm.have_named_sections instead
28094 of ASM_OUTPUT_SECTION_NAME.
28096 2004-01-16 Andreas Jaeger <aj@suse.de>
28098 * Makefile.in: Add $(DESTDIR).
28100 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
28102 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
28103 also when not defining if a Size clause applies. That information is
28106 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
28108 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
28109 symbolic links for the shared gnat run time when needed.
28111 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
28113 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
28114 for writing, and terminate with an error message if not.
28116 2004-01-15 Ed Schonberg <schonberg@gnat.com>
28118 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
28119 warning on an access to subprogram in an instance, when the target
28120 type is declared in the same generic unit.
28121 (Eval_Attribute): If 'access is known to fail accessibility check,
28122 rewrite as a raise statement.
28124 2004-01-15 GNAT Script <nobody@gnat.com>
28126 * Make-lang.in: Makefile automatically updated
28128 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
28130 * Make-lang.in (ada.srcextra): Dummy entry.
28132 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
28134 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
28136 2004-01-13 Ed Schonberg <schonberg@gnat.com>
28138 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
28139 components that are initialized with aggregates.
28141 2004-01-13 Vincent Celier <celier@gnat.com>
28143 * gnatlink.adb (Process_Binder_File): To find directory of shared
28144 libgcc, if "gcc-lib" is not a subdirectory, look for the last
28145 subdirectory "lib" in the path of the shared libgnat or libgnarl.
28147 * make.adb (Gnatmake): If GCC version is at least 3, link with
28148 -shared-libgcc, when there is at least one shared library project.
28150 * opt.ads (GCC_Version): New integer constant.
28152 * adaint.c (get_gcc_version): New function.
28154 2004-01-13 Robert Dewar <dewar@gnat.com>
28156 * sem_dist.adb, sem_res.adb, sem_util.adb,
28157 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
28158 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
28160 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
28162 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
28163 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
28166 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
28168 * misc.c: Remove trailing spaces.
28169 Update copyright notice missed in previous change.
28172 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
28175 * Makefile.generic: Update copyright.
28176 Add license notice.
28178 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
28179 of prefix/share/make.
28181 * Makefile.prolog: Update copyright.
28182 Add license notice.
28184 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
28186 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
28187 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
28188 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
28191 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
28194 2004-01-12 Javier Miranda <miranda@gnat.com>
28196 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
28197 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
28198 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
28199 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
28200 Component_Definition node.
28202 2004-01-12 Ed Falis <falis@gnat.com>
28204 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
28206 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
28208 * link.c: Change default libgnat kind to STATIC for FreeBSD.
28210 2004-01-12 Bernard Banner <banner@gnat.com>
28212 * Makefile.in: map 86numaux to a-numaux for x86_64
28214 2004-01-12 Ed Schonberg <schonberg@gnat.com>
28216 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
28217 generated to rename a generic actual, go to the actual itself, the
28218 subtype is not a user-visible entity.
28220 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
28221 part is a private subtype, reset the visibility of its full view, if
28222 any, to be consistent.
28225 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
28226 to use a generic package G as a formal package for another generic
28229 2004-01-12 Robert Dewar <dewar@gnat.com>
28231 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
28233 * usage.adb: Remove mention of obsolete -gnatwb switch
28234 Noticed during code reading
28236 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
28238 * 1ssecsta.adb: Minor changes for -gnatwa warnings
28240 2004-01-12 GNAT Script <nobody@gnat.com>
28242 * Make-lang.in: Makefile automatically updated
28244 2004-01-09 Mark Mitchell <mark@codesourcery.com>
28246 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
28248 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28250 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
28252 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
28254 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
28255 Update comment and copyright date.
28256 * stamp-xgnatug: Delete.
28258 2004-01-05 Robert Dewar <dewar@gnat.com>
28260 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
28261 be modified by the binder generated main program if the -D switch is
28264 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
28265 imported functions (since now we expect this to be done for imported
28268 * 5vtaprop.adb: Add several ??? for sections requiring more comments
28269 Minor reformatting throughout
28271 * 5zinit.adb: Minor reformatting
28272 Add 2004 to copyright date
28273 Minor changes to avoid -gnatwa warnings
28274 Correct some instances of using OR instead of OR ELSE (noted while
28275 doing reformatting)
28277 * sprint.adb: Minor updates to avoid -gnatwa warnings
28279 * s-secsta.ads, s-secsta.adb:
28280 (SS_Get_Max): New function to obtain high water mark for ss stack
28281 Default_Secondary_Stack is not a constant since it may be modified by
28282 the binder generated main program if the -D switch is used.
28284 * switch-b.adb: New -Dnnn switch for binder
28287 Make -gnatg imply all warnings currently in -gnatwa
28289 * vms_conv.adb: Minor reformatting
28290 Add 2004 to copyright notice
28291 Add 2004 to printed copyright notice
28293 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
28294 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
28295 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
28296 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
28297 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
28298 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
28299 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
28300 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
28301 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
28302 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
28303 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
28304 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
28305 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
28306 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
28307 checks.adb, clean.adb, cstand.adb, einfo.ads,
28308 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
28309 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
28310 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
28311 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
28312 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
28313 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
28314 Minor reformatting and code clean ups.
28315 Minor changes to prevent -gnatwa warnings
28317 * ali.adb: Minor reformatting and cleanup of code
28318 Acquire new SS indication of secondary stack use from ali files
28320 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
28321 (since now we expect this to be done for imported functions)
28323 * bindgen.adb: Generate call to modify default secondary stack size if
28326 * bindusg.adb: Add line for new -D switch
28328 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
28329 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
28330 Add circuitry for both records and arrays to avoid gigi
28331 processing if the type involved has non-bit-aligned components
28333 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
28334 N_String_Literal node always references an E_String_Literal_Subtype
28335 entity. This may not be true in the future.
28336 (Possible_Bit_Aligned_Component): Move processing of
28337 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
28339 * exp_ch6.adb (Expand_Thread_Body): Pick up
28340 Default_Secondary_Stack_Size as variable so that we get value modified
28341 by possible -Dnnn binder parameter.
28343 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
28344 (Type_May_Have_Bit_Aligned_Components): New function.
28346 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
28347 (Type_May_Have_Bit_Aligned_Components): New function.
28349 * fe.h: (Set_Identifier_Casing): Fix prototype.
28350 Add declaration for Sem_Elim.Eliminate_Error_Msg.
28351 Minor reformatting.
28353 * freeze.adb (Freeze_Entity): Add RM reference to error message about
28354 importing constant atomic/volatile objects.
28355 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
28356 unless explicit Pure_Function pragma given, to avoid insidious bug of
28357 call to non-pure imported function getting eliminated.
28359 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
28360 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
28361 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
28362 Add 2004 to printed copyright notice
28364 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
28367 * Makefile.rtl: Add entry for g-sestin.o
28368 g-sestin.ads: New file.
28370 * mdll.adb: Minor changes to avoid -gnatwa warnings
28372 * mlib-tgt.adb: Minor reformatting
28374 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
28375 New switch Sec_Stack_Used (GNAT, GNATBIND)
28376 Make Default_Secondary_Stack_Size a variable instead of a constant,
28377 so that it can be modified by the new -Dnnn bind switch.
28379 * rtsfind.adb (Load_Fail): Give full error message in configurable
28380 run-time mode if all_errors mode is set. This was not done in the case
28381 of a file not found, which was an oversight.
28382 Note if secondary stack unit is used by compiler.
28384 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
28385 ineffective elaborate all pragmas on non-visible packages (this
28386 happened when a renamed subprogram was called). Now the elaborate all
28387 always goes on the package containing the renaming rather than the one
28388 containing the renamed subprogram.
28390 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
28391 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
28393 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
28394 has an Etype that references an E_String_Literal.
28395 (Eval_String_Literal): Avoid assumption that N_String_Literal node
28396 always references an E_String_Literal_Subtype entity. This may not
28397 be true in the future.
28399 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
28402 * sem_res.adb (Resolve): Specialize msg for function name used in proc
28405 2004-01-05 Ed Falis <falis@gnat.com>
28407 * g-debuti.adb: Replaced direct boolean operator with short-circuit
28410 2004-01-05 Vincent Celier <celier@gnat.com>
28412 * bld.adb: Minor comment updates
28413 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
28416 * make.adb (Gnatmake): Special process for files to compile/check when
28417 -B is specified. Fail when there are only foreign mains in attribute
28418 Main of the project file and -B is not specified. Do not skip bind/link
28419 steps when -B is specified.
28421 * makeusg.adb: Document new switch -B
28423 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
28425 * switch-m.adb: (Scan_Make_Switches): Process -B switch
28427 * vms_data.ads: Add new GNAT PRETTY qualifier
28428 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
28430 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28432 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
28435 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
28436 Set_Identifier_Casing.
28438 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
28439 has size that overflows.
28441 2004-01-05 Gary Dismukes <dismukes@gnat.com>
28443 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
28444 -gnatwa warning on static condition.
28446 2004-01-05 Doug Rupp <rupp@gnat.com>
28448 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
28450 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
28452 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
28453 all attributes, including read-only attribute.
28455 2004-01-05 Pascal Obry <obry@gnat.com>
28457 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
28458 library naming scheme.
28460 * mlib-prj.adb (Build_Library): Generate different names for the static
28461 or dynamic version of the GNAT runtime. This is needed to support the
28462 new shared library naming scheme.
28463 (Process_Binder_File): Add detection of shared library in binder file
28464 based on the new naming scheme.
28466 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
28467 scheme for the shared runtime libraries.
28470 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
28472 (install-gnatlib): Do not create symlinks for shared libraries.
28473 (gnatlib-shared-default): Idem.
28474 (gnatlib-shared-dual-win32): New target. Not used for now as the
28475 auto-import feature does not support arrays/records.
28476 (gnatlib-shared-win32): Do not create copy for the shared libraries.
28477 (gnatlib-shared-vms): Fix shared runtime libraries names.
28479 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
28480 dependent runtime shared library name.
28482 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
28484 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
28487 2004-01-05 Ed Schonberg <schonberg@gnat.com>
28489 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
28490 protected objects when allocator has a subtype indication, not a
28491 qualified expression. Note that qualified expressions may have to be
28492 checked when limited aggregates are implemented.
28494 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
28495 pure, emit warning.
28496 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
28497 subprogram is imported, remove warning.
28499 2004-01-05 Geert Bosch <bosch@gnat.com>
28501 * s-poosiz.adb: Update copyright notice.
28502 (Allocate): Use Task_Lock to protect against concurrent access.
28503 (Deallocate): Likewise.
28505 2004-01-05 Joel Brobecker <brobecker@gnat.com>
28507 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
28510 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
28512 * gnat_ug.texi: Force a CVS commit by updating copyright.
28513 * gnat_ug_vxw.texi: Regenerate.
28514 * gnat_ug_wnt.texi: Regenerate.
28515 * gnat_ug_vms.texi: Regenerate.
28516 * gnat_ug_unx.texi: Regenerate.
28518 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
28520 * trans.c: Remove uses of "register" specifier in
28521 declarations of local variables.
28523 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
28525 * stamp-xgnatug: New stamp file.
28526 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
28527 (ada/doctools/xgnatug): Add $(build_exeext).
28528 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
28529 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
28531 2003-12-17 Ed Falis <falis@gnat.com>
28533 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
28536 * a-exextr.adb: Add context clause for
28537 Ada.Exceptions.Last_Chance_Handler.
28539 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
28541 * cstand.adb (Create_Standard): Change the way how the declaration of
28542 the Duration type is created (making it the same way as it is for all
28543 the other standard types).
28545 2003-12-17 Robert Dewar <dewar@gnat.com>
28547 * s-crtl.ads: Fix header format
28548 Change Pure to Preelaborate
28550 2003-12-17 Ed Schonberg <schonberg@gnat.com>
28552 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
28553 the expression type only if it is declared in the current unit.
28555 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
28556 are universal and already analyzed, as can occur in constrained
28557 subcomponents that depend on discriminants, when one constraint is a
28560 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
28561 type Any_Fixed is legal as the argument of a conversion, if only one
28562 fixed-point type is in context.
28564 2003-12-17 GNAT Script <nobody@gnat.com>
28566 * Make-lang.in: Makefile automatically updated
28568 2003-12-15 Robert Dewar <dewar@gnat.com>
28570 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
28573 2003-12-15 Vincent Celier <celier@gnat.com>
28575 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
28576 (Gnatchop): Do not set failure status when reporting the number of
28579 2003-12-15 Doug Rupp <rupp@gnat.com>
28581 * s-ctrl.ads: New file.
28583 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
28585 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
28586 (GNATBIND_OBJS): Add ada/s-crtl.o.
28588 * Makefile.in [VMS]: Clean up ifeq rules.
28590 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
28591 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
28592 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
28593 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
28594 s-tasdeb.adb: Update copyright.
28595 Import System.CRTL.
28596 Make minor modifications to use System.CRTL declared functions instead
28597 of importing locally.
28599 2003-12-15 GNAT Script <nobody@gnat.com>
28601 * Make-lang.in: Makefile automatically updated
28603 2003-12-11 Ed Falis <falis@gnat.com>
28605 * 5zinit.adb: Clean up.
28607 * 5zintman.adb (Notify_Exception): replaced case statement with a call
28608 to __gnat_map_signal, imported from init.c to support
28609 signal -> exception mappings that depend on the vxWorks version.
28612 Created and exported __gnat_map_signal to support signal -> exception
28613 mapping that is dependent on the VxWorks version.
28614 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
28616 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
28618 * 5wosinte.ads: Link with -mthreads switch.
28620 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
28622 * init.c (__gnat_install_handler [NetBSD]): Set
28623 __gnat_handler_installed, as done on all other platforms.
28624 Remove duplicated code.
28626 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
28628 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
28630 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
28632 * sinfo.ads: Fix inconsistent example code in comment.
28634 2003-12-11 Robert Dewar <dewar@gnat.com>
28636 * a-tiinau.adb: Add a couple of comments
28638 * sem_ch3.adb: Minor reformatting
28641 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
28642 Minor reformatting throughout
28644 2003-12-11 Ed Schonberg <schonberg@gnat.com>
28646 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
28647 bounds of a loop, create a separate block in order to generate proper
28648 cleanup actions to prevent memory leaks.
28650 * sem_res.adb (Resolve_Call): After a call to
28651 Establish_Transient_Scope, the call may be rewritten and relocated, in
28652 which case no further processing is needed.
28654 * sem_util.adb: (Wrong_Type): Refine previous fix.
28655 Fixes ACATS regressions.
28658 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
28661 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
28663 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
28664 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
28667 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
28670 2003-12-08 Robert Dewar <dewar@gnat.com>
28672 * 7sintman.adb: Minor reformatting
28674 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
28675 standard linker options to get standard libraries linked. We now plan
28676 to provide dummy versions of these libraries to match the appropriate
28677 configurable run-time (e.g. if a library is not needed at all, provide
28678 a dummy empty library).
28680 * targparm.ads: Configurable_Run_Time mode no longer affects linker
28681 options (-L parameters and standard libraries). What we plan to do is
28682 to provide dummy libraries where the libraries are not required.
28684 * gnatbind.adb: Minor comment improvement
28686 2003-12-08 Javier Miranda <miranda@gnat.com>
28688 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
28689 aggregate in the parent. Otherwise constants with limited aggregates
28690 are not supported. Add new formal to pass the component type (Ctype).
28691 It is required to call the corresponding IP subprogram in case of
28692 default initialized components.
28693 (Gen_Assign): In case of default-initialized component, generate a
28694 call to the IP subprogram associated with the component.
28695 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
28696 of aggregate with default initialized components.
28697 (Has_Default_Init_Comps): Improve implementation to recursively check
28698 all the present expressions.
28700 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
28701 to indicate that the initialization call corresponds to a
28702 default-initialized component of an aggregate.
28703 In case of default initialized aggregate with tasks this parameter is
28704 used to generate a null string (this is just a workaround that must be
28705 improved later). In case of discriminants, this parameter is used to
28706 generate a selected component node that gives access to the discriminant
28709 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
28710 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
28711 allocated aggregates with default-initialized components.
28713 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
28714 the box notation is used in positional aggregates.
28716 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
28718 * lib.ads: Fix typo in comment
28720 2003-12-08 Vincent Celier <celier@gnat.com>
28722 * prj.adb (Project_Empty): New component Unkept_Comments
28723 (Scan): Remove procedure; moved to Prj.Err.
28725 * prj.ads (Project_Data): New Boolean component Unkept_Comments
28726 (Scan): Remove procedure; moved to Prj.Err.
28728 * prj-dect.adb: Manage comments for the different declarations.
28730 * prj-part.adb (With_Record): New component Node
28731 (Parse): New Boolean parameter Store_Comments, defaulted to False.
28732 Set the scanner to return ends of line and comments as tokens, if
28733 Store_Comments is True.
28734 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
28735 comments are associated with these nodes. Store the node IDs in the
28737 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
28739 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
28740 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
28741 current project. Call Tree.Restore afterwards. Set the various nodes
28742 for comment storage (Next_End, End_Of_Line, Previous_Line,
28745 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
28746 defaulted to False.
28748 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
28749 to False. When Truncated is True, truncate the string, never go to the
28751 (Write_End_Of_Line_Comment): New procedure
28752 (Print): Process comments for nodes N_With_Clause,
28753 N_Package_Declaration, N_String_Type_Declaration,
28754 N_Attribute_Declaration, N_Typed_Variable_Declaration,
28755 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
28756 Process nodes N_Comment.
28758 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
28759 without comments and there are some comments, set the flag
28760 Unkept_Comments to True.
28761 (Scan): If there are comments, set the flag Unkept_Comments to True and
28762 clear the comments.
28763 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
28764 (Next_End_Nodes: New table
28765 (Comment_Zones_Of): New function
28766 (Scan): New procedure; moved from Prj. Accumulate comments in the
28767 Comments table and set end of line comments, comments after, after end
28769 (Add_Comments): New procedure
28770 (Save, Restore, Seset_State): New procedures
28771 (There_Are_Unkept_Comments): New function
28772 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
28773 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
28775 (First_Comment_After, First_Comment_After_End): New functions
28776 (First_Comment_Before, First_Comment_Before_End): New functions
28777 (Next_Comment): New function
28778 (End_Of_Line_Comment, Follows_Empty_Line,
28779 Is_Followed_By_Empty_Line): New functions
28780 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
28781 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
28782 (Set_Next_Comment): New procedure
28783 (Default_Project_Node): Associate comment before if the node can store
28786 * scans.ads (Token_Type): New enumeration value Tok_Comment
28787 (Comment_Id): New global variable
28789 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
28790 defaulted to False.
28791 (Scan): Store position of start of comment. If comments are tokens, set
28792 Comment_Id and set Token to Tok_Comment when scanning a comment.
28793 (Set_Comment_As_Token): New procedure
28795 * sinput-p.adb: Update Copyright notice
28796 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
28797 that no longer exists.
28799 2003-12-08 Javier Miranda <miranda@gnat.com>
28801 * sem_aggr.adb: Add dependence on Exp_Tss package
28802 Correct typo in comment
28803 (Resolve_Aggregate): In case of array aggregates set the estimated
28804 type of the aggregate before calling resolve. This is needed to know
28805 the name of the corresponding IP in case of limited array aggregates.
28806 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
28807 in case of default initialized array components.
28809 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
28810 types. Required to give support to limited aggregates in generic
28813 2003-12-08 Ed Schonberg <schonberg@gnat.com>
28815 * sem_ch3.adb (Check_Initialization): For legality purposes, an
28816 inlined body functions like an instantiation.
28817 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
28818 until bounds are analyzed, to diagnose premature use of type.
28820 * sem_util.adb (Wrong_Type): Improve error message when the type of
28821 the expression is used prematurely.
28823 2003-12-08 GNAT Script <nobody@gnat.com>
28825 * Make-lang.in: Makefile automatically updated
28827 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
28829 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
28830 they are automatically generated by Make-lang.in and cause nothing but
28831 maintenance troubles.
28833 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
28835 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
28836 version of this unit).
28838 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
28840 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
28841 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
28842 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
28843 the body of System.Interrupt_Management common to several targets.
28844 Update copyright notice when appropriate.
28846 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
28849 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
28850 to ensure that the kernel fills in the interrupted context structure
28851 before calling a signal handler, which is necessary to be able to
28852 unwind past it. Update the copyright notice.
28854 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
28856 * a-elchha.ads: New file.
28858 * a-elchha.adb: New default last chance handler. Contents taken from
28859 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
28861 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
28862 is moved to a-elchha.adb to provide a target-independent default last
28865 * Makefile.rtl: Add a-elchha.o
28867 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
28869 2003-12-05 Ed Schonberg <schonberg@gnat.com>
28871 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
28872 declared in an instance, do not inline the call if the instance is not
28873 frozen yet, to prevent order of elaboration problems.
28875 * sem_prag.adb: Add comments for previous fix.
28877 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
28879 * g-table.adb: Use the right variable in Set_Item.
28880 Update copyright notice.
28882 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
28884 * Makefile.in: Remove unused rules.
28886 2003-12-05 Vincent Celier <celier@gnat.com>
28888 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
28889 -nostdlib. Not needed here after all.
28891 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
28894 * adaint.h, adaint.c, g-os_lib.ads:
28895 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
28896 on some platforms (including FreeBSD), it is a 64 bit value.
28897 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
28899 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
28901 * gnatvsn.ads (Library_Version): Now contain only the relevant
28903 (Verbose_Library_Version): New constant.
28905 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
28906 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
28907 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
28909 * gnatlbr.adb: Clean up: replace Library_Version by
28910 Verbose_Library_Version.
28912 * make.adb, lib-writ.adb, exp_attr.adb:
28913 Clean up: replace Library_Version by Verbose_Library_Version.
28915 * 5lintman.adb: Removed.
28918 Update and simplify computation of LIBRARY_VERSION.
28919 Fix computation of GSMATCH_VERSION.
28920 5lintman.adb is no longer used: replaced by 7sintman.adb.
28922 2003-12-03 Robert Dewar <dewar@gnat.com>
28925 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
28926 name. Modified to consider small non-bit-packed arrays as troublesome
28927 and in need of component-by-component assigment expansion.
28929 2003-12-03 Vincent Celier <celier@gnat.com>
28931 * lang-specs.h: Process nostdlib as nostdinc
28933 * back_end.adb: Update Copyright notice
28934 (Scan_Compiler_Arguments): Process -nostdlib directly.
28936 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
28939 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
28940 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
28941 included in HIE_NONE_TARGET_PAIRS.
28943 2003-12-03 Ed Schonberg <schonberg@gnat.com>
28946 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
28947 is legal in an instance, because legality is cheched in the template.
28950 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
28951 appplied to an unchecked conversion of a formal parameter.
28954 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
28957 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
28959 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
28960 routines. The second one is new functionality to deal with backtracing
28961 through signal handlers.
28962 (unwind): Split into the two separate subroutines above.
28963 Update the documentation, and deal properly with sizeof (REG) different
28964 from sizeof (void*).
28966 2003-12-01 Nicolas Setton <setton@act-europe.fr>
28968 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
28969 so that the debugger can reliably access the value of the parameter,
28970 and therefore is able to display the exception name when an exception
28971 breakpoint is reached.
28973 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
28975 * fmap.adb: Fix typo in warning message.
28977 * g-socket.ads, g-socket.adb: Make Free a visible instance of
28978 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
28980 2003-12-01 Vincent Celier <celier@gnat.com>
28982 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
28984 (Build_Library): Get the switches only if Default_Switches is declared
28987 2003-12-01 Ed Schonberg <schonberg@gnat.com>
28989 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
28990 actuals that are indexed components, reanalyze actual to ensure that
28991 packed array references are properly expanded.
28993 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
28994 attempted assignment to a discriminant.
28996 2003-12-01 Robert Dewar <dewar@gnat.com>
28998 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
29001 * switch-c.adb: Minor reformatting of comments
29003 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
29005 * Makefile.in: Clean ups.
29007 2003-12-01 GNAT Script <nobody@gnat.com>
29009 * Make-lang.in: Makefile automatically updated
29011 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
29013 * 5wsystem.ads: Disable zero cost exception, not ready yet.
29015 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
29017 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
29018 to force serialization.
29020 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
29022 * g-socket.ads, g-socket.adb:
29023 Clarify documentation of function Stream. Introduce a Free procedure
29024 to release the returned Stream once it becomes unused.
29026 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
29028 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
29030 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
29031 since NT 4 cannot handle timeout values that are too large,
29032 e.g. DWORD'Last - 1.
29034 2003-11-26 Ed Schonberg <schonberg@gnat.com>
29037 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
29038 in procedure calls and whose expansion must be deferred.
29040 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
29044 (Build_Derived_Array_Type): Create operator for unconstrained type
29045 if ancestor is unconstrained.
29047 2003-11-26 Vincent Celier <celier@gnat.com>
29049 * make.adb (Project_Object_Directory): New global variable
29050 (Change_To_Object_Directory): New procedure
29051 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
29052 of Change_Dir directly. Do not change working directory to object
29053 directory of main project after each compilation.
29054 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
29056 Change to object directory of main project before binding step.
29057 (Initialize): Initialize Project_Object_Directory to No_Project
29060 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
29061 binding a Stand-Alone Library.
29063 * output.adb: Update Copyright notice
29064 (Write_Char): Output buffer when full
29066 2003-11-26 Robert Dewar <dewar@gnat.com>
29068 * sem_ch13.adb: (Check_Size): Reset size if size is too small
29071 (Check_Size): Fix documentation to include bit-packed array case
29073 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
29075 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
29077 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
29079 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
29082 * utils.c (init_gigi_decls): Change name of built-in setjmp to
29083 __builtin_setjmp, since this is apparently needed by recent
29086 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29088 * adadecode.c: Only include ctype.h if not IN_GCC.
29089 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
29091 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
29094 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
29095 signals and interrupts.
29097 * 5zintman.ads: New File.
29099 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
29100 add exception signals to the set of unmasked signals.
29103 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
29104 between signals and interrupts.
29105 Add to Unblocked_Signal_Mask the set of signals that are in
29109 Adding a check to see whether the Interrupt_ID we want to unmask is in
29110 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
29111 reason is that the index type of the Keep_Unmasked array is not always
29112 Interrupt_ID; it may be a subtype of Interrupt_ID.
29114 2003-11-24 Gary Dismukes <dismukes@gnat.com>
29117 (Remove_Side_Effects): Condition constantness of object created for a
29118 an unchecked type conversion on the constantness of the expression
29119 to ensure the correct value for 'Constrained when passing components
29120 of view-converted class-wide objects.
29122 2003-11-24 Robert Dewar <dewar@gnat.com>
29124 * par-load.adb (Load): Improve handling of misspelled and missing units
29125 Removes several cases of compilation abandoned messages
29127 * lib.adb: (Remove_Unit): New procedure
29129 * lib.ads: (Remove_Unit): New procedure
29131 * lib-load.adb: Minor reformatting
29133 2003-11-24 Vincent Celier <celier@gnat.com>
29136 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
29137 (Marking_Label): Label to mark processed source files. Incremented for
29139 (Gnatmake): Increase Marking_Labet for each executable
29140 (Is_Marked): Compare against marking label
29141 (Mark): Mark with marking label
29143 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
29146 Move the declaration of the TSD for System.Threads to System.Soft_Links.
29149 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
29150 (rts-cert): build a single relocatable object for the run-time lib.
29153 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
29156 Use gnatls rather than gcc to obtain the location of GNAT RTL for
29159 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
29161 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
29162 can not use it as before (that is, as a variable) when dumping it into
29163 the tree file. Add a local variable to store the result of this
29164 function and to be used as the string to be written into the tree.
29166 * scn.adb (Initialize_Scanner): Add comments explaining the recent
29169 * sinput.adb (Source_First, Source_Last): In case of
29170 Internal_Source_File, replace returning attributes of
29171 Internal_Source_Ptr (which is wrong) with returning attributes of
29174 2003-11-24 Ed Schonberg <schonberg@gnat.com>
29177 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
29178 used for implicit concatenation operators.
29182 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
29183 task bodies that are in the scope of a Suppress pragma.
29184 (Check_A Call): Use the flag to prevent spurious elaboration checks.
29186 * sinfo.ads, sinfo.adb:
29187 New flag No_Elaboration_Check on function/procedure calls, to properly
29188 suppress checks on calls in task bodies that are within a local suppress
29192 (Expand_Concatenate_Other): Use the proper integer type for the
29193 expression for the upper bound, to avoid universal_integer computations
29196 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
29198 * .cvsignore: Delete.
29200 2003-11-21 Andreas Schwab <schwab@suse.de>
29202 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
29204 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
29206 * 5wsystem.ads: Enable zero cost exception.
29208 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
29210 * 5ztiitho.adb: Remove an unreferenced variable.
29212 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
29214 * adaint.c: For FreeBSD, use mkstemp.
29216 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
29218 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
29220 2003-11-21 Robert Dewar <dewar@gnat.com>
29222 * bld.adb: Remove useless USE of gnatvsn
29224 * gnatchop.adb: Minor reformatting
29225 Clean up version handling to be more consistent
29227 * gnatxref.adb: Minor reformatting
29229 * gprcmd.adb: Minor reformatting
29230 Fix output of copyright to be more consistent with other tools
29232 2003-11-21 Vincent Celier <celier@gnat.com>
29234 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
29236 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
29238 * atree.adb (Initialize): Add initializations for global variables
29239 used in New_Copy_Tree.
29241 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
29242 Internal_Source_File as the actual).
29243 Put the set of statements creating Any_Character before the set of
29244 statements creating Any_Array to have Any_Character fully initialized
29245 when it is used in creating Any_Array.
29247 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
29248 not call Scan in case if the actual is Internal_Source_File
29249 Add 2003 to copyright note.
29251 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
29252 processing Internal_Source_File.
29254 * types.ads: Add the constant Internal_Source_File representing the
29255 source buffer for artificial source-code-like strings created within
29256 the compiler (the definition of Source_File_Index is changed).
29258 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
29260 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
29261 56system.ads: New file, FreeBSD version.
29263 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
29265 * Make-lang.in (ada.extraclean): Delete.
29267 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
29269 * gnatmem.adb: Clean up verbose output.
29271 * gprcmd.adb: Change copyright to FSF.
29273 2003-11-19 Vincent Celier <celier@gnat.com>
29275 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
29276 and Version (ignored).
29278 * symbols.ads: (Policy): New type
29279 (Initialize): New parameter Reference, Symbol_Policy and
29281 Remove parameter Force.
29282 Minor reformatting.
29284 * snames.ads, snames.adbadb: New standard names
29285 Library_Reference_Symbol_File and Library_Symbol_Policy
29288 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
29292 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
29294 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
29296 * prj.adb: (Project_Empty): New component Symbol_Data
29298 * prj.ads: (Policy, Symbol_Record): New types
29299 (Project_Data): New component Symbol_Data
29302 New attributes Library_Symbol_File, Library_Symbol_Policy and
29303 Library_Reference_Symbol_File.
29306 (Ada_Check): When project is a Stand-Alone library project, process
29307 attribute Library_Symbol_File, Library_Symbol_Policy and
29308 Library_Reference_Symbol_File.
29310 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
29311 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
29312 5sml-tgt.adb (Build_Dynamic_Library): New parameter
29313 Symbol_Data (ignored).
29315 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
29316 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
29317 functions Option_File_Name and Version_String. Set new options of
29318 gnatsym related to symbol file, symbol policy and reference symbol
29322 Extensive modifications to take into account the reference symbol file,
29323 the symbol policy, the library version and to put in the symbol file the
29324 minor and major IDs.
29326 * bld.adb (Process_Declarative_Items): Put second argument of
29327 gprcmd to_absolute between single quotes, to avoid problems with
29330 * bld-io.adb: Update Copyright notice.
29331 (Flush): Remove last character of a line, if it is a back slash, to
29332 avoid make problems.
29335 Implement new scheme with reference symbol file and symbol policy.
29337 * g-os_lib.ads: (Is_Directory): Clarify comment
29339 2003-11-19 Robert Dewar <dewar@gnat.com>
29341 * atree.adb: Move New_Copy_Tree global variables to head of package
29343 * errout.adb: Minor reformatting
29345 2003-11-19 Javier Miranda <miranda@gnat.com>
29347 * sem_ch4.adb: (Diagnose_Call): Improve error message.
29348 Add reference to Ada0Y (AI-50217)
29350 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
29351 sem_util.adb: Add reference to AI-50217
29353 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
29355 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
29357 * sem_aggr.adb: Complete documentation of AI-287 changes
29359 * par-ch4.adb: Document previous changes.
29361 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
29362 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
29365 * exp_aggr.adb: Add references to AI-287 in previous changes
29367 2003-11-19 Ed Schonberg <schonberg@gnat.com>
29370 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
29371 in the rewriting is the result of an inlined call.
29373 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
29374 parameter is a type conversion, use original node to construct the
29375 post-call assignment, because expression may have been rewritten, e.g.
29376 if it is a packed array.
29379 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
29380 body, just as it is in an instance.
29381 Categorization routines
29383 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
29384 Instantiate_Object): Set proper sloc reference for message on missing
29387 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
29389 * Makefile.in: Add FreeBSD libgnat pairs.
29391 * usage.adb: Fix typo in usage message.
29393 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
29395 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
29396 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
29397 pragma Thread_Body.
29398 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
29400 * s-thread.adb: This file is now a dummy implementation of
29403 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
29405 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
29407 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
29409 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
29410 instanciation references in the parent type description.
29412 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29414 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
29416 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
29417 TYPE_PRECISION directly from esize.
29419 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
29422 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
29424 * init.c: Initialization routines for FreeBSD
29426 * link.c: Link info for FreeBSD
29428 * sysdep.c: Add the case of FreeBSD
29430 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
29432 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
29433 already called in System.Threads.
29435 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
29436 environment task, as it has been moved to System.Threads.Initialization.
29438 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
29440 * adaint.c (__gnatlib_install_locks): Only reference
29441 __gnat_install_locks on VMS, since other platforms can avoid using
29442 --enable-threads=gnat
29444 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29446 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
29448 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
29449 TYPE_PACKED_ARRAY_TYPE_P.
29450 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
29452 Part of PR ada/12806
29453 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
29454 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
29456 2003-11-17 Vincent Celier <celier@gnat.com>
29458 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
29460 Do not set exit status to Failure when Warning is True.
29461 (Gnatchop): Make errors "no compilation units found" and
29462 "no source files written" warnings only.
29464 * make.adb (Gnatmake): When using a project file, set
29465 Look_In_Primary_Dir to False.
29466 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
29467 and Local_Configuration_Pragmas in the project where they are declared
29468 not an extending project which might have inherited them.
29470 * osint.adb (Locate_File): If Name is already an absolute path, do not
29471 look for a directory.
29473 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
29474 -gnats (Check_Syntax) is used, issue only a warning, not an error.
29476 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
29477 in objects of type Variable_Value.
29479 * prj.ads: (Variable_Value): New component Project
29481 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
29482 is in a project extended by Project.
29484 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
29485 Project of Variable_Values to this new parameter value.
29486 (Expression): Set component Project of Variable_Values.
29487 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
29488 Set the component Project in array elements.
29490 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
29492 * errout.adb: (Initialize): Add initialization for error nodes.
29494 * sem_ch12.adb (Initialize): Add missing initializations for
29495 Exchanged_Views and Hidden_Entities.
29497 2003-11-17 Ed Schonberg <schonberg@gnat.com>
29499 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
29500 already instantiated tree for use in subsequent inlining.
29501 (Analyze_Associations, Instantiate_Formal_Subprogram,
29502 Instantiate_Object): improve error message for mismatch in
29505 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
29506 instantiations of subprograms declared in instances.
29508 2003-11-17 Javier Miranda <miranda@gnat.com>
29510 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
29511 executed only under the Extensions_Allowed flag.
29513 2003-11-17 Robert Dewar <dewar@gnat.com>
29515 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
29517 (Address_Image): Fix bug of returning 0x instead of 0x0
29518 Minor reformatting (function specs).
29520 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
29521 (missed case of 33-63)
29523 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
29525 * s-thread.adb: Add comments for pragma Restriction
29527 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
29528 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
29530 2003-11-17 Ed Falis <falis@gnat.com>
29532 * s-thread.adb: Added No_Tasking restriction for this implementation.
29534 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
29536 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
29537 instanciation references in the parent type description.
29539 2003-11-17 GNAT Script <nobody@gnat.com>
29541 * Make-lang.in: Makefile automatically updated
29543 2003-11-16 Jason Merrill <jason@redhat.com>
29545 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
29546 and TAGS files that include them for each front end.
29548 2003-11-14 Andreas Jaeger <aj@suse.de>
29550 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
29551 is the canonical version.
29552 * misc.c (gnat_handle_option): Likewise.
29554 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
29556 * 5nsystem.ads: New file for x86_64-linux-gnu.
29558 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
29560 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
29562 * comperr.adb: Fix logic in previous change.
29564 2003-11-13 Vincent Celier <celier@gnat.com>
29566 * 5bml-tgt.adb (Build_Dynamic_Library): Use
29567 Osint.Include_Dir_Default_Prefix instead of
29568 Sdefault.Include_Dir_Default_Name.
29570 * gnatlbr.adb: Update Copyright notice
29571 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
29572 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
29573 instead of Sdefault.Object_Dir_Default_Name
29576 (Process_Binder_File): Never suppress the option following -Xlinker
29579 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
29580 Sdefault.Object_Dir_Default_Name.
29582 * osint.ads, osint.adb:
29583 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
29584 Minor reformatting.
29586 * vms_conv.ads: Minor reformating
29587 Remove GNAT STANDARD and GNAT PSTA
29590 Allow GNAT MAKE to have several files on the command line.
29591 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
29592 Sdefault.Object_Dir_Default_Name.
29594 Remove data for GNAT STANDARD
29597 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
29598 Remove data for GNAT STANDARD
29599 Remove options and documentation for -gnatwb/-gnatwB: these warning
29600 options no longer exist.
29602 2003-11-13 Ed Falis <falis@gnat.com>
29604 * 5zthrini.adb: (Init_RTS): Made visible
29607 (Register): Removed unnecessary call to taskVarGet that checked whether
29608 an ATSD was already set as a task var for the argument thread.
29611 Updated comment to reflect that this is a VxWorks version
29612 Added context clause for System.Threads.Initialization
29613 Added call to System.Threads.Initialization.Init_RTS
29615 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
29618 (Init_RTS): New procedure, for the initialization of the run-time lib.
29621 Remove dependancy on System.Init, so that this file can be used in the
29622 AE653 sequential run-time lib.
29624 2003-11-13 Robert Dewar <dewar@gnat.com>
29626 * bindgen.adb: Minor reformatting
29628 2003-11-13 Ed Schonberg <schonberg@gnat.com>
29631 (Apply_Discriminant_Check): Do no apply check if target type is derived
29632 from source type with no applicable constraint.
29635 (Ensure_System_Dependency): Do not apply the style checks that may have
29636 been specified for the main unit.
29639 (Find_Selected_Component): Further improvement in error message, with
29643 (Resolve): Handle properly the case of an illegal overloaded protected
29646 2003-11-13 Javier Miranda <miranda@gnat.com>
29649 (Has_Default_Init_Comps): New function to check the presence of
29650 default initialization in an aggregate.
29651 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
29652 extension aggregate of a limited record. In addition, a new formal
29653 was added to do not initialize the record controller (if any) during
29654 this recursive expansion of ancestors.
29655 (Init_Controller): Add support for limited record components.
29656 (Expand_Record_Aggregate): In case of default initialized components
29657 convert the aggregate into a set of assignments.
29659 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
29660 describing the new syntax.
29661 Nothing else needed to be done because this subprogram delegates part of
29662 its work to P_Precord_Or_Array_Component_Association.
29663 (P_Record_Or_Array_Component_Association): Give support to the new
29664 syntax for default initialization of components.
29667 (Resolve_Aggregate): Relax the strictness of the frontend in case of
29668 limited aggregates.
29669 (Resolve_Record_Aggregate): Give support to default initialized
29671 (Get_Value): In case of default initialized components, duplicate
29672 the corresponding default expression (from the record type
29673 declaration). In case of default initialization in the *others*
29674 choice, do not check that all components have the same type.
29675 (Resolve_Extension_Aggregate): Give support to limited extension
29679 (Check_Initialization): Relax the strictness of the front-end in case
29680 of aggregate and extension aggregates. This test is now done in
29681 Get_Value in a per-component manner.
29683 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
29684 expression corresponds to a limited aggregate. This test is now done
29687 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
29690 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
29691 present in an N_Component_Association node
29693 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
29695 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
29696 type-conformant entry only if they are homographs.
29698 2003-11-13 GNAT Script <nobody@gnat.com>
29700 * Make-lang.in: Makefile automatically updated
29702 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29704 * adadecode.c: Use <> form of include for ctype.h.
29705 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
29707 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29709 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
29710 Works around PR middle-end/6552.
29712 2003-11-10 Ed Falis <falis@gnat.com>
29714 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
29716 * 5zinit.adb: (Install_Handler): Moved back to spec
29717 (Install_Signal_Handlers): Deleted
29719 * 5zthrini.adb: Added context clause for System.Storage_Elements
29720 (Register): Only handles creation of taskVar; initialization moved to
29722 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
29723 Added declaration of environment task secondary stack and
29726 * s-thread.adb: Implement bodies for thread body processing
29729 Added comment identifying supported targets for pragma Thread_Body.
29731 2003-11-10 Pascal Obry <obry@gnat.com>
29733 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
29737 (Open): Properly check for string length before copying into the buffer.
29738 Raises Name_Error if buffer is too small. Note that this was a potential
29741 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
29743 * bindgen.adb, comperr.adb: Code clean ups.
29744 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
29746 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
29748 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
29750 2003-11-10 Vincent Celier <celier@gnat.com>
29753 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
29756 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
29758 * prj.adb: (Project_Empty): Add new boolean component Virtual
29760 * prj.ads: (Virtual_Prefix): New constant string
29761 (Project_Data): New boolean component Virtual
29763 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
29764 a library project is extended by a virtual extending project.
29767 Modifications throughout to implement extending-all project, including:
29768 (Virtual_Hash, Processed_Hash): New hash tables
29769 (Create_Virtual_Extending_Project): New procedure
29770 (Look_For_Virtual_Projects_For): New procedure
29773 (Process): After checking the projects, if main project is an
29774 extending-all project, set the object directory of all virtual extending
29775 project to the object directory of the main project.
29776 Adjust error message when a virtual extending project has the same
29777 object directory as an project being extended.
29778 (Recursive_Process): If name starts with the virtual prefix, set Virtual
29779 to True in the project data.
29782 (Default_Project_Node): Add new boolean component Extending_All
29783 (Is_Extending_All): New function
29784 (Set_Is_Extending_All): New procedure
29786 * prj-tree.ads: (Is_Extending_All): New function
29787 (Set_Is_Extending_All): New procedure
29788 (Project_Node_Record): New boolean component Extending_All
29790 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
29793 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
29795 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
29796 "gprcmd prefix" to define it.
29798 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
29800 * einfo.ads: Fix a typo and remove an extraneous word in comments.
29803 (Create_Dummy_Package_Unit): Set the scope of the entity for the
29804 created dummy package to Standard_Standard, not to itself, to
29805 defend other parts of the front-end against encoutering a cycle in
29809 (Analyze_With_Clause): When setting the entities for the successive
29810 N_Expanded_Names that constitute the name of a child unit, do not
29811 attempt to go further than Standard_Standard in the chain of scopes.
29812 This case arises from the placeholder units created by
29813 Create_Dummy_Package_Unit in the case of a with_clause for a
29814 nonexistent child unit.
29816 2003-11-10 Ed Schonberg <schonberg@gnat.com>
29819 (Expand_Thread_Body): Place subprogram on scope stack, so that new
29820 declarations are given the proper scope.
29823 (Check_Expr_Constants): Reject an expression that contains a constant
29824 created during expansion, and that appears after the object to which
29825 the address clause applies.
29827 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
29828 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
29829 that uses 'Range of a function call with controlled components, so
29830 that the function result can be finalized before starting the loop.
29833 (Find_Selected_Component): Improve error message when prefix is
29834 an implicit dereference of an incomplete type.
29836 2003-11-10 Robert Dewar <dewar@gnat.com>
29838 * opt.ads: New Print_Standard flag for -gnatS switch
29840 * sem_ch13.adb: Remove some additional checks for unaligned arrays
29842 * cstand.adb (Create_Standard): Print out package standard if -gnatS
29845 * debug.adb: Update doc for -gnatds to discuss relationship with new
29848 * sinfo.adb: Add new field Entity_Or_Associated_Node
29850 * sinfo.ads: Add new field Entity_Or_Associated_Node
29851 Update documentation for Associated_Node and Entity fields to clarify
29852 relationship and usage.
29855 (Write_Id): Properly process Associated_Node field in generic template
29858 Recognize new -gnatS switch for printing package Standard
29859 This replaces gnatpsta
29862 Add line for new -gnatS switch for printing package Standard
29863 This replaces gnatpsta
29865 2003-11-10 Andreas Jaeger <aj@suse.de>
29867 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
29870 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
29872 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
29875 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
29877 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
29880 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
29882 * sysdep.c: Add handling of cygwin.
29884 2003-11-10 GNAT Script <nobody@gnat.com>
29886 * Make-lang.in: Makefile automatically updated
29888 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
29891 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
29892 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
29893 Replace GNAT_ROOT by GCC_ROOT.
29895 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
29897 2003-11-06 Zack Weinberg <zack@codesourcery.com>
29899 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
29900 and update for changed meaning of GET_MODE_BITSIZE.
29902 2003-11-04 Doug Rupp <rupp@gnat.com>
29904 * sysdep.c: Problem discovered during IA64 VMS port.
29905 [VMS] #include <unixio.h> to get proper prototypes.
29908 Issues discovered/problems fixed during IA64 VMS port.
29909 [VMS] #define _POSIX_EXIT for proper semantics.
29910 [VMS] #include <unixio.h> for proper prototypes.
29911 [VMS] (fork): #define IA64 version.
29912 (__gnat_os_exit): Remove unnecessary VMS specific code.
29914 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29916 Part of PR ada/12806
29917 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
29921 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
29924 * targtyps.c, decl.c, misc.c,
29925 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
29926 routines to work around change in FP sizing semantics in GCC.
29929 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
29931 * gigi.h: (enumerate_modes): New function.
29933 * Make-lang.in: (ada/misc.o): Add real.h.
29935 * misc.c: (enumerate_modes): New function.
29937 2003-11-04 Robert Dewar <dewar@gnat.com>
29939 * 3vtrasym.adb: Minor reformatting
29940 Use terminology encoded/decoded name, rather than C++ specific notion
29941 of mangling (this is the terminology used throughout GNAT).
29943 * einfo.h: Regenerated
29945 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
29948 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
29950 * par-prag.adb: Add dummy entry for Thread_Body pragma
29953 Add entries for System.Threads entities for thread body processing
29956 (Analyze_Pragma, Access attributes): Check these are not applied to a
29957 thread body, since this is not permitted
29959 * sem_prag.adb: Add processing for Thread_Body pragma.
29963 (Resolve_Call): Check for incorrect attempt to call a thread body
29964 procedure with a direct call.
29966 * snames.ads, snames.adb: Add entry for Thread_Body pragma
29967 Add names associated with thread body expansion
29969 * snames.h: Add entry for Thread_Body pragma
29971 * s-thread.adb: Add entries for thread body processing
29972 These are dummy bodies so far
29974 * s-thread.ads: Add documentation on thread body handling.
29975 Add entries for thread body processing.
29977 2003-11-04 Javier Miranda <miranda@gnat.com>
29980 (Build_Limited_Views): Return after posting an error in case of limited
29981 with_clause on subprograms, generics, instances or generic renamings
29982 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
29983 on subprograms, generics, instances or generic renamings
29985 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
29987 * raise.c (setup_to_install): Correct mistake in last revision; two
29988 arguments out of order.
29990 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
29991 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
29992 notice, missed in previous change.
29993 Remove trailing blanks and other style errors introduced in previous
29996 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
29998 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
29999 rid of the wrapper for a LJM type, ensuring we don't do that if the
30000 field is addressable. This avoids potential low level type view
30001 mismatches later on, for instance in a by-reference argument passing
30004 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30006 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
30007 aligned at byte boundary.
30009 2003-11-04 Joel Brobecker <brobecker@gnat.com>
30011 * decl.c (components_to_record): Do not delete the empty variants from
30012 the end of the union type.
30014 2003-11-04 Ed Schonberg <schonberg@gnat.com>
30016 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
30017 operation for a derived type, an explicit declaration may use a local
30018 subtype of Boolean.
30020 2003-11-04 Vincent Celier <celier@gnat.com>
30022 * make.adb (Gnatmake): Allow main sources on the command line with a
30023 library project when it is only for compilation (no binding or
30026 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30028 * Makefile.in: Remove many duplicate variables.
30030 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
30032 * Make-lang.in (dvi): Move targets to $(docobjdir).
30033 (gnat_ug_vms.dvi): Simplify rule and adjust target.
30034 (gnat_ug_wnt.dvi): Likewise.
30035 (gnat_ug_unx.dvi): Likewise.
30036 (gnat_ug_vxw.dvi): Likewise.
30037 (gnat_rm.dvi): Likewise.
30038 (gnat-style.dvi): Likewise.
30040 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
30042 * gigi.h: Missed commit from update for C90.
30044 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
30046 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
30048 2003-10-31 Andreas Schwab <schwab@suse.de>
30050 * raise.c (get_action_description_for): Fix typo in last change.
30052 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
30055 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
30056 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
30058 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
30060 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
30061 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
30062 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
30063 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
30064 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
30066 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
30069 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
30070 numbers when symbol name is too long.
30072 2003-10-30 Ed Falis <falis@gnat.com>
30074 * g-signal.ads, g-signal.adb: New files
30076 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
30078 * Makefile.rtl: Introduce GNAT.Signals
30080 2003-10-30 Robert Dewar <dewar@gnat.com>
30082 * freeze.adb: Minor reformatting
30084 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
30086 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
30087 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
30088 New handling of Id_Check parameter to improve recognition of keywords
30089 used as identifiers.
30090 Update copyright notice to include 2003
30092 2003-10-29 Robert Dewar <dewar@gnat.com>
30094 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
30095 sem_ch10.adb: Minor reformatting
30097 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
30098 (Expand_Assign_Record): Test right hand side for bit unaligned as well
30100 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
30102 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
30103 Support for TBK$SYMBOLIZE-based symbolic traceback.
30105 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
30108 Revert previous change, that did not work well when pragma No_Run_Time
30109 was used in conjunction with a run-time other than ZFP.
30111 2003-10-29 Vincent Celier <celier@gnat.com>
30114 (Gnatmake): When there are no Ada mains in attribute Main, disable the
30115 bind and link steps only is switch -z is not used.
30117 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
30119 * Makefile.generic: Remove duplicated setting of CC.
30121 * Makefile.prolog: Set CC to gcc by default, to override make's
30124 * einfo.h: Regenerated.
30126 2003-10-29 Ed Schonberg <schonberg@gnat.com>
30128 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
30129 current body, after compiling subunit.
30131 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
30132 when in deleted code, because gigi needs properly ordered freeze
30133 actions to annotate types.
30135 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
30136 prevent the premature freezing of record type that contains
30137 subcomponents with a private type that does not yet have a completion.
30139 2003-10-29 Javier Miranda <miranda@gnat.com>
30142 (Analyze_Package_Instantiation): Check that instances can not be used in
30143 limited with_clauses.
30146 (Analyze_Package_Renaming): Check that limited withed packages cannot
30147 be renamed. Improve text on error messages related to limited
30150 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
30152 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
30153 Update copyright notice.
30155 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
30156 (Install_Limited_Context_Clauses): New subprogram that isolates all the
30157 checks required for limited context_clauses and installs the limited
30159 (Install_Limited_Withed_Unit): Complete its documentation.
30160 (Analyze_Context): Check that limited with_clauses are only allowed in
30162 (Install_Context): Call Install_Limited_Context_Clauses after the
30163 parents have been installed.
30164 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
30165 package as 'From_With_Type'; this mark indicates that the limited view
30166 is installed. Used to check bad usages of limited with_clauses.
30167 (Build_Limited_Views): Do not add shadow entities to the scope's list
30168 of entities. Do not add real entities to the Non_Limited_Views chain.
30169 Improve error notification.
30170 (Remove_Context_Clauses): Remove context clauses in two phases:
30171 limited views first and regular views later (to maintain the
30173 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
30174 its visible entities.
30176 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
30178 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
30179 with any type that Is_Fixed_Point_Type.
30181 * sinfo.ads: Fix documentation for Associated_Node attribute.
30183 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
30185 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
30186 both '-gnatc' and '-gnatt' are specified.
30188 * atree.adb (Initialize): Add initialization for Node_Count (set to
30191 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30193 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
30194 do not consider as Pure.
30196 Part of implementation of function-at-a-time:
30198 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
30199 (tree_transform): Add new argument to build_component_ref.
30200 (tree_transform, case N_Assignment_Statement): Make and return an
30202 (tree_transform): If result IS_STMT, set flags and return it.
30203 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
30205 * utils2.c (build_simple_component_ref, build_component_ref): Add new
30207 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
30208 (build_allocator): Likewise.
30210 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
30211 Add new arg to build_component_ref.
30212 (maybe_unconstrained_array, unchecked_convert): Likewise.
30214 * ada-tree.def (EXPR_STMT): New code.
30216 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
30218 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
30219 build_component_ref calls.
30221 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
30223 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
30224 (build_component_ref): Add new argument, NO_FOLD_P.
30226 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
30228 * Makefile.generic: Add missing substitution on object_deps handling.
30231 * Make-lang.in (check-ada): Enable ACATS test suite.
30233 2003-10-27 Robert Dewar <dewar@gnat.com>
30236 (Freeze_Array_Type): We do not need an initialization routine for types
30237 derived from String or Wide_String. They should be treated the same
30238 as String and Wide_String themselves. This caused problems with the
30239 use of Initialize_Scalars.
30242 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
30243 composites. This allows use of component clauses that are not byte
30247 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
30248 is an attempt to pack an array of atomic objects.
30250 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
30252 2003-10-27 Pascal Obry <obry@gnat.com>
30255 (Basename): Check for drive letters in a pathname only on DOS based OS.
30257 2003-10-27 Vincent Celier <celier@gnat.com>
30260 (Gnatmake): When unable to change dir to the object dir, display the
30261 content of the parent dir of the obj dir, to try to understand why this
30264 2003-10-27 GNAT Script <nobody@gnat.com>
30266 * Make-lang.in: Makefile automatically updated
30268 2003-10-27 Ed Schonberg <schonberg@gnat.com>
30271 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
30272 should not be done in Save/Restore_Scope_Stack, because it is performed
30276 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
30277 whether use clauses should be removed/restored.
30280 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
30281 whether use clauses should be removed/restored.
30283 2003-10-26 Andreas Jaeger <aj@suse.de>
30285 * Makefile.in: Remove duplicated lines.
30287 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
30289 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
30290 minimize the differences with ACT tree.
30292 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
30293 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
30294 Gnatvsn.Gnat_Static_Version_String to reduce differences between
30297 2003-10-24 Pascal Obry <obry@gnat.com>
30300 * adadecode.c (ostrcpy): New function.
30301 (__gnat_decode): Use ostrcpy of strcpy.
30302 (has_prefix): Set first parameter a const.
30303 (has_suffix): Set first parameter a const.
30304 Update copyright notice. Fix source name in header.
30305 Removes a trailing space.
30307 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
30310 Remove the test against being in No_Run_Time_Mode before generating a
30311 call to Register_Tag. It is redundant with the test against the
30312 availability of the function Register_Tag.
30314 2003-10-24 Vincent Celier <celier@gnat.com>
30316 * g-catiio.adb: (Month_Name): Correct spelling of February
30318 * make.adb: (Mains): New package
30319 (Initialize): Call Mains.Delete
30320 (Gnatmake): Check that each main on the command line is a source of a
30321 project file and, if there are several mains, each of them is a source
30322 of the same project file.
30323 (Gnatmake): When a foreign language is specified in attribute Languages,
30324 no main is specified on the command line and attribute Mains is not
30325 empty, only build the Ada main. If there is no Ada main, just compile
30326 the Ada sources and their closure.
30327 (Gnatmake): If a main is specified on the command line with directory
30328 information, check that the source exists and, if it does, that the path
30329 is the actual path of a source of a project.
30332 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
30333 Full_Path is True, return the full path instead of the simple file name.
30334 (Project_Of): New function
30337 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
30338 defaulted to False.
30339 (Project_Of): New function
30341 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
30343 * Makefile.generic:
30344 Ensure objects of main project are always checked and rebuilt if needed.
30345 Set CC to gcc by default.
30346 Prepare new handling of link by creating a global archive (not activated
30349 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
30350 stringt.h: Update copyright notice. Remove trailing blanks.
30351 Fix source name in header.
30353 2003-10-24 Robert Dewar <dewar@gnat.com>
30355 * sem_ch12.adb: Minor reformatting
30358 Minor reformatting (including new function return style throughout)
30361 Minor reformatting (including new function return style throughout)
30363 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
30365 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
30366 stringt.h: Update copyright notice. Remove trailing blanks.
30367 Fix source name in header.
30369 2003-10-24 GNAT Script <nobody@gnat.com>
30371 * Make-lang.in: Makefile automatically updated
30373 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
30375 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
30376 stringt.h: Convert to ISO C90 declarations and definitions.
30378 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
30381 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
30382 External_Tag attribute definition clauses.
30384 2003-10-23 Ed Schonberg <schonberg@gnat.com>
30387 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
30388 child unit, generate a fully qualified name to avoid spurious errors
30389 when the context contains renamings of different child units with
30390 the same simple name.
30392 * exp_dbug.ads: Add documentation on name qualification for renamings
30395 2003-10-23 Robert Dewar <dewar@gnat.com>
30397 * g-regpat.ads, g-regpat.adb: Minor reformatting
30399 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
30401 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
30403 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30405 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
30408 * urealp.h: (Machine): Update to proper definition.
30410 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
30412 * init.c, adaint.c: Minor reformatting.
30414 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
30416 * adaint.c (w32_epoch_offset): Define static const at file level.
30417 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
30418 rather than t_create, t_access in call to GetFileTime. Use union
30419 to convert between FILETIME and unsigned long long.
30420 (__gnat_file_time_name): Test for invalid file handle.
30421 (__gnat_set_filetime_name): Support win32 targets using
30422 w32api SetFileTime.
30424 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
30426 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
30428 * ctrl_c.c (__gnat_int_handler): Remove declaration.
30430 * decl.c (creat_concat_name): Const-ify prefix.
30432 * adaint.c: Include ctype.h if __MINGW32__.
30433 (__gnat_readlink): Mark arguments as possibly unused.
30434 (__gnat_symlink): Likewise.
30435 (__gnat_is_symbolic_link): Likewise.
30436 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
30438 (__gnat_file_time_name): Don't declare struct stat statbuf when
30440 (__gnat_is_absolute_path): Add parenthesis around condition of
30441 'if' statement to avoid warning.
30442 (__gnat_plist_init): Specify void as parameter.
30443 (plist_enter): Likewise.
30444 (plist_leave): Likewise.
30445 (remove_handle): Make static. Initialize prev.
30447 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
30450 * Makefile.in: Disable build of gnatpsta.
30451 * cstreams.c (__gnat_full_name): Minor improvements and clean up
30452 of previous change.
30454 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30456 * tracebak.c (MAX): Avoid redefinition warning.
30458 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
30459 Change msg to const char *.
30460 (__gnat_install_handler): Remove ss, unused.
30461 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
30463 * cstreams.c (__gnat_full_name): Declare p only when used.
30464 (__gnat_full_name) [sgi] Return buffer.
30466 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
30468 * mingw32.h: New file.
30469 * gnat_wrapper.adb: New file.
30471 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
30473 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
30474 string match a pre compiled regular expression (the corresponding
30475 version of the function working on a raw regular expression)
30476 Fix typos in various comments
30477 Update copyright notice in spec
30479 2003-10-21 Gary Dismukes <dismukes@gnat.com>
30482 (Component_Needs_Simple_Initialization): Return False when the type is a
30483 packed bit array. Revise spec comments to document this case.
30486 (Expand_Pragma_Import): Set any expression on the imported object to
30487 empty to avoid initializing imported objects (in particular this
30488 covers the case of zero-initialization of bit arrays).
30489 Update copyright notice.
30491 2003-10-21 Ed Schonberg <schonberg@gnat.com>
30494 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
30495 a subunit is missing.
30496 (Instantiate_Subprogram_Body): If body of function is missing, set type
30497 of return expression explicitly in dummy body, to prevent cascaded
30498 errors when a subunit is missing.
30502 (Access_Subprogram_Declaration): Verify that return type is valid.
30506 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
30511 (Corresponding_Discriminant): If the scope of the discriminant is a
30512 private type without discriminant, use its full view.
30515 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
30517 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
30518 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
30519 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
30520 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
30521 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
30522 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
30523 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
30524 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
30525 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
30526 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
30527 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
30528 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
30529 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
30530 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
30531 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
30532 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
30533 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
30534 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
30535 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
30536 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
30537 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
30538 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
30539 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
30540 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
30541 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
30542 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
30543 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
30544 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
30545 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
30546 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
30547 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
30548 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
30549 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
30550 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
30551 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
30552 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
30553 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
30554 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
30555 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
30556 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
30557 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
30558 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
30559 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
30560 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
30561 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
30562 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
30563 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
30564 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
30565 vms_conv.ads, vms_conv.adb, vms_data.ads,
30566 vxaddr2line.adb: Files added. Merge with ACT tree.
30568 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
30569 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
30570 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
30571 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
30572 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
30573 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
30574 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
30575 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
30576 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
30577 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
30579 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
30580 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
30581 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
30582 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
30583 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
30584 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
30585 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
30586 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
30587 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
30588 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
30589 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
30590 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
30591 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
30592 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
30593 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
30594 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
30595 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
30596 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
30597 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
30598 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
30599 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
30600 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
30601 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
30602 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
30603 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
30604 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
30605 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
30606 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
30607 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
30608 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
30609 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
30610 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
30611 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
30612 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
30613 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
30614 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
30615 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
30616 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
30617 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
30618 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
30619 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
30620 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
30621 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
30622 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
30623 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
30624 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
30625 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
30626 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
30627 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
30628 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
30629 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
30630 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
30631 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
30632 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
30633 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
30634 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
30635 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
30636 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
30637 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
30638 checks.adb, checks.ads, cio.c, comperr.adb,
30639 comperr.ads, csets.adb, cstand.adb, cstreams.c,
30640 debug_a.adb, debug_a.ads, debug.adb, decl.c,
30641 einfo.adb, einfo.ads, errout.adb, errout.ads,
30642 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
30643 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
30644 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
30645 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
30646 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
30647 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
30648 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
30649 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
30650 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
30651 fe.h, fmap.adb, fmap.ads, fname.adb,
30652 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
30653 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
30654 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
30655 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
30656 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
30657 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
30658 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
30659 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
30660 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
30661 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
30662 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
30663 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
30664 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
30665 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
30666 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
30667 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
30668 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
30669 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
30670 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
30671 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
30672 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
30673 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
30674 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
30675 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
30676 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
30677 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
30678 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
30679 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
30680 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
30681 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
30682 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
30683 layout.adb, lib.adb, lib.ads, lib-list.adb,
30684 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
30685 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
30686 link.c, live.adb, make.adb, make.ads,
30687 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
30688 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
30689 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
30690 misc.c, mkdir.c, mlib.adb, mlib.ads,
30691 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
30692 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
30693 namet.adb, namet.ads, namet.h, nlists.ads,
30694 nlists.h, nmake.adt, opt.adb, opt.ads,
30695 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
30696 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
30697 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
30698 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
30699 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
30700 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
30701 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
30702 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
30703 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
30704 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
30705 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
30706 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
30707 prj-util.adb, prj-util.ads, raise.c, raise.h,
30708 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
30709 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
30710 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
30711 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
30712 scans.ads, scn.adb, scn.ads, s-crc32.adb,
30713 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
30714 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
30715 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
30716 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
30717 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
30718 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
30719 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
30720 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
30721 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
30722 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
30723 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
30724 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
30725 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
30726 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
30727 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
30728 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
30729 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
30730 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
30731 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
30732 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
30733 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
30734 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
30735 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
30736 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
30737 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
30738 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
30739 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
30740 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
30741 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
30742 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
30743 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
30744 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
30745 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
30746 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
30747 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
30748 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
30749 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
30750 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
30751 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
30752 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
30753 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
30754 stringt.adb, stringt.ads, stringt.h, style.ads,
30755 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
30756 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
30757 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
30758 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
30759 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
30760 table.adb, table.ads, targparm.adb, targparm.ads,
30761 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
30762 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
30763 ttypes.ads, types.ads, types.h, uintp.adb,
30764 uintp.ads, uintp.h, uname.adb, urealp.adb,
30765 urealp.ads, urealp.h, usage.adb, utils2.c,
30766 utils.c, validsw.adb, validsw.ads, widechar.adb,
30767 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
30768 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
30769 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
30770 gnatvsn.ads: Merge with ACT tree.
30772 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
30774 2003-10-20 Mark Mitchell <mark@codesourcery.com>
30776 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
30777 (gnat_ug_vmx.info): Likewise.
30778 (gnat_ug_vxw.info): Likewise.
30779 (gnat_ug_wnt.info): Likewise.
30780 (gnat_rm.info): Likewise.
30781 (gnat-style.info): Likewise.
30783 * Make-lang.in (ada.install-info): Remove target.
30784 (info): New target.
30785 (install-info): Likewise.
30786 (gnat_ug_unx.info): Simplify rule.
30787 (gnat_ug_vmx.info): Likewise.
30788 (gnat_ug_vxw.info): Likewise.
30789 (gnat_ug_wnt.info): Likewise.
30790 (gnat_rm.info): Likewise.
30791 (gnat-style.info): Likewise.
30793 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
30795 * Make-lang.in: Replace uses of $(target_alias) with
30796 $(target_noncanonical).
30797 * ada/Makefile.in: Remove unused mention of $(target_alias).
30799 2003-10-06 Mark Mitchell <mark@codesourcery.com>
30801 * Make-lang.in (ada.info): Replace with ...
30803 (ada.dvi): Replace with ...
30806 2003-09-29 Zack Weinberg <zack@codesourcery.com>
30808 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
30809 initialize dconstp5 and dconstmp5.
30811 2003-09-28 Richard Henderson <rth@redhat.com>
30813 * trans.c (tree_transform): Update call to expand_asm_operands.
30815 2003-09-21 Richard Henderson <rth@redhat.com>
30817 * trans.c, utils.c: Revert.
30819 2003-09-21 Richard Henderson <rth@redhat.com>
30821 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
30824 2003-09-04 Michael Matz <matz@suse.de>
30826 * misc.c: Include "target.h".
30827 * Make-lang.in (misc.o): Add dependency on target.h.
30829 2003-09-03 DJ Delorie <dj@redhat.com>
30831 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
30834 2003-08-30 Zack Weinberg <zack@codesourcery.com>
30836 * Makefile.in: Update substitutions to match changes to
30837 configure. Use include directives instead of @-insertions
30838 to read in host and target fragments. Add a rule to
30839 regenerate ada/Makefile.
30841 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
30843 * lang-options.h: Remove.
30844 * lang.opt: Add help text.
30846 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
30848 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
30851 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
30853 * misc.c (gnat_handle_option): Don't handle filenames.
30855 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
30857 * Make-lang.in: Replace PWD with PWD_COMMAND.
30858 * Makefile.adalib: Likewise.
30859 * Makefile.in: Likewise.
30861 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
30863 * misc.c (gnat_argv): Revert last change.
30864 (gnat_handle_option, gnat_init_options): Copy arguments.
30866 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
30868 * misc.c (gnat_argv): Make const.
30870 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
30872 * misc.c (save_argc, save_argv): Keep non-static!
30874 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
30876 * misc.c (save_argc, save_argv): Make static.
30877 (gnat_init_options): New prototype.
30878 (gnat_init_options): Update.
30880 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
30882 * gnat_ug.texi: Remove unlikely characters from @vars.
30883 * gnat_ug_vms.texi: Regenerate.
30885 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
30887 * misc.c (record_code_position): Adjust emit_note call.
30889 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
30891 * misc.c (gnat_handle_option): Don't check for missing arguments.
30893 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
30895 * utils.c (end_subprog_body): Adjust expand_function_end call.
30897 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
30899 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
30902 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
30904 * lang.opt: Declare Ada.
30905 * misc.c (gnat_init_options): Update.
30907 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
30909 * utils.c (begin_subprog_body): Adjust init_function_start call.
30911 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
30913 * Make-lang.in: Update to use options.c and options.h.
30914 * misc.c: Include options.h not aoptions.h.
30915 (gnat_handle_option): Abort on unrecognized switch.
30916 (gnat_init_options): Request Ada switches.
30918 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
30920 * lang.opt: Add -Wall.
30921 * misc.c (gnat_handle_option): Handle it.
30923 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
30925 * misc.c (gnat_handle_option): Fix warnings.
30927 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
30929 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
30931 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
30933 * Make-lang.in: Update to handle command-line options.
30934 * lang.opt: New file.
30935 * misc.c: Include aoptions.h.
30936 (cl_options_count, cl_options): Remove.
30937 (gnat_handle_option): New.
30938 (gnat_decode_option): Remove.
30939 (LANG_HOOKS_DECODE_OPTION): Remove.
30940 (LANG_HOOKS_HANDLE_OPTION): Override.
30942 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
30944 * init.c, misc.c, trans.c, utils.c: Remove dead code.
30946 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
30948 * Makefile.in: Replace "host_canonical" with "host" for autoconf
30951 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
30953 * Make-lang.in: Update.
30954 * misc.c: Include opts.h. Define cl_options_count and cl_options.
30956 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
30958 * misc.c (gnat_init_options): Update.
30960 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
30962 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
30963 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
30964 __attribute__ ((__unused__)).
30966 2003-06-05 Jan Hubicka <jh@suse.cz>
30968 * Make-lang.in: Add support for stageprofile and stagefeedback
30970 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
30972 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
30973 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
30975 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
30977 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
30978 Remove non-VMS directive.
30979 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
30981 (Examples of gnatls Usage): Remove VMS alternative.
30983 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
30986 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
30987 and turn ZCX_By_Default back to False since the underlying support
30988 is not quite there yet.
30990 2003-06-01 Andreas Jaeger <aj@suse.de>
30992 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
30993 and ROUND_TYPE_SIZE_UNIT.
30995 2003-05-22 Geert Bosch <bosch@gnat.com>
30997 * gnat_rm.texi : Remove reference to Ada Core Technologies.
30999 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
31001 * trans.c (tree_transform): Use location_t and input_location
31003 (build_unit_elab): Likewise.
31004 * utils.c (create_label_decl): Likewise.
31006 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
31008 * trans.c (tree_transform, build_unit_elab,
31009 set_lineno): Rename lineno to input_line.
31010 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
31011 end_subprog_body): Likewise.
31012 * utils2.c (build_call_raise): Likewise.
31014 2003-05-01 Laurent Guerby <guerby@acm.org>
31017 * 5iosinte.ads: Increase pthread_cond_t size to match recent
31018 LinuxThread and NPTL version, merge from ACT.
31020 2003-04-28 Zack Weinberg <zack@codesourcery.com>
31022 * utils.c (convert): No need to clear TREE_CST_RTL.
31024 2003-04-23 Geert Bosch <bosch@gnat.com>
31026 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
31027 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
31028 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
31029 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
31030 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
31031 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
31032 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
31033 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
31034 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
31035 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
31036 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
31037 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
31038 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
31039 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
31040 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
31041 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
31042 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
31043 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
31044 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
31045 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
31046 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
31047 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
31048 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
31049 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
31050 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
31051 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
31052 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
31053 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
31054 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
31055 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
31056 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
31057 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
31058 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
31059 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
31060 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
31061 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
31062 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
31063 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
31064 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
31065 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
31066 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
31067 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
31068 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
31069 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
31070 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
31071 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
31072 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
31073 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
31074 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
31075 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
31076 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
31077 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
31078 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
31079 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
31080 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
31081 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
31082 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
31083 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
31084 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
31085 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
31086 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
31087 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
31088 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
31089 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
31090 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
31091 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
31092 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
31093 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
31094 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
31095 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
31096 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
31097 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
31098 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
31099 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
31100 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
31101 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
31102 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
31103 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
31104 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
31105 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
31106 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
31107 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
31108 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
31109 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
31110 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
31111 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
31112 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
31113 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
31114 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
31115 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
31116 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
31117 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
31118 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
31119 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
31120 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
31121 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
31122 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
31123 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
31124 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
31125 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
31126 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
31127 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
31128 ali.adb, ali.ads, alloc.ads, argv.c,
31129 atree.adb, atree.ads, atree.h, aux-io.c,
31130 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
31131 binde.adb, binde.ads, binderr.adb, binderr.ads,
31132 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
31133 butil.adb, butil.ads, cal.c, calendar.ads,
31134 casing.adb, casing.ads, ceinfo.adb, checks.adb,
31135 checks.ads, cio.c, comperr.adb, comperr.ads,
31136 config-lang.in, csets.adb, csets.ads, csinfo.adb,
31137 cstand.adb, cstand.ads, cuintp.c, debug.adb,
31138 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
31139 dec-io.ads, dec.ads, deftarg.c, directio.ads,
31140 einfo.adb, einfo.ads, elists.adb, elists.ads,
31141 elists.h, errno.c, errout.adb, errout.ads,
31142 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
31143 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
31144 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
31145 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
31146 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
31147 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
31148 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
31149 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
31150 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
31151 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
31152 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
31153 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
31154 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
31155 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
31156 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
31157 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
31158 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
31159 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
31160 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
31161 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
31162 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
31163 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
31164 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
31165 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
31166 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
31167 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
31168 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
31169 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
31170 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
31171 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
31172 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
31173 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
31174 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
31175 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
31176 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
31177 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
31178 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
31179 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
31180 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
31181 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
31182 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
31183 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
31184 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
31185 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
31186 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
31187 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
31188 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
31189 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
31190 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
31191 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
31192 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
31193 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
31194 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
31195 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
31196 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
31197 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
31198 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
31199 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
31200 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
31201 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
31202 lib.adb, lib.ads, live.adb, live.ads,
31203 machcode.ads, make.adb, make.ads, makeusg.adb,
31204 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
31205 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
31206 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
31207 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
31208 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
31209 mlib.ads, namet.adb, namet.ads, nlists.adb,
31210 nlists.ads, opt.adb, opt.ads, osint-b.adb,
31211 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
31212 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
31213 osint.ads, output.adb, output.ads, par-ch10.adb,
31214 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
31215 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
31216 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
31217 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
31218 par-tchk.adb, par-util.adb, par.adb, par.ads,
31219 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
31220 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
31221 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
31222 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
31223 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
31224 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
31225 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
31226 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
31227 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
31228 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
31229 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
31230 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
31231 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
31232 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
31233 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
31234 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
31235 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
31236 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
31237 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
31238 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
31239 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
31240 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
31241 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
31242 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
31243 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
31244 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
31245 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
31246 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
31247 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
31248 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
31249 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
31250 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
31251 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
31252 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
31253 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
31254 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
31255 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
31256 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
31257 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
31258 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
31259 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
31260 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
31261 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
31262 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
31263 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
31264 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
31265 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
31266 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
31267 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
31268 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
31269 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
31270 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
31271 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
31272 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
31273 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
31274 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
31275 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
31276 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
31277 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
31278 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
31279 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
31280 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
31281 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
31282 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
31283 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
31284 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
31285 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
31286 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
31287 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
31288 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
31289 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
31290 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
31291 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
31292 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
31293 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
31294 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
31295 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
31296 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
31297 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
31298 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
31299 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
31300 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
31301 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
31302 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
31303 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
31304 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
31305 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
31306 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
31307 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
31308 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
31309 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
31310 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
31311 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
31312 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
31313 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
31314 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
31315 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
31316 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
31317 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
31318 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
31319 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
31320 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
31321 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
31322 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
31323 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
31324 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
31325 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
31326 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
31327 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
31328 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
31329 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
31330 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
31331 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
31332 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
31333 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
31334 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
31335 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
31336 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
31337 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
31338 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
31339 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
31340 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
31341 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
31342 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
31343 snames.ads, sprint.adb, sprint.ads, stand.adb,
31344 stand.ads, stringt.adb, stringt.ads, style.adb,
31345 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
31346 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
31347 switch-m.ads, switch.adb, switch.ads, system.ads,
31348 table.adb, table.ads, targparm.adb, targparm.ads,
31349 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
31350 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
31351 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
31352 ttypef.ads, ttypes.ads, types.adb, types.ads,
31353 uintp.adb, uintp.ads, uname.adb, uname.ads,
31354 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
31355 usage.adb, usage.ads, validsw.adb, validsw.ads,
31356 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
31357 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
31358 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
31359 formatting and other trivial changes from ACT.
31361 2003-04-12 Zack Weinberg <zack@codesourcery.com>
31363 * gigi.h, utils2.c (build_constructor):
31364 Rename gnat_build_constructor. Use build_constructor.
31365 * decl.c (gnat_to_gnu_entity)
31366 * trans.c (tree_transform, pos_to_constructor, extract_values)
31367 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
31368 (unchecked_convert)
31369 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
31370 (fill_vms_descriptor):
31373 2003-04-06 Zack Weinberg <zack@codesourcery.com>
31375 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
31376 * misc.c (gnat_tree_size): New function.
31377 (LANG_HOOKS_TREE_SIZE): Override.
31379 2003-04-03 Jason Merrill <jason@redhat.com>
31381 * misc.c (gnat_adjust_rli): #if 0.
31383 2003-03-31 Geert Bosch <bosch@gnat.com>
31386 * link.c : Fix misspelled "const" keyword
31388 2003-03-23 Mark Mitchell <mark@codesourcery.com>
31391 * utils2.c: Adjust calls to put_var_into_stack.
31393 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
31395 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
31397 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
31399 * misc.c (gnat_init): Update for new prototype.
31401 2003-03-05 Olivier Hainque <hainque@gnat.com>
31404 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
31405 warning, and fix return type for the IN_RTS && !SJLJ case.
31407 2003-03-04 Tom Tromey <tromey@redhat.com>
31409 * Make-lang.in (ada.tags): New target.
31411 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
31414 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
31415 wrapper, which name remains constant whatever underlying GCC
31418 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
31419 the stable interface needed for a-except.
31421 2003-03-02 Andreas Jaeger <aj@suse.de>
31423 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31424 gnat_ug_wnt.texi: Regenerate.
31426 2003-03-02 Laurent Guerby <guerby@acm.org>
31428 * Makefile.in (install-gnatlib): Match previous change there
31431 2003-02-28 Andreas Schwab <schwab@suse.de>
31433 * Make-lang.in (install-gnatlib): Change to ada directory before
31434 running make instead of using ada/Makefile directly.
31436 2003-02-18 Ben Elliston <bje@redhat.com>
31438 Part of PR ada/9406
31439 * gnat_ug.texi (Binder output file): Grammar fix.
31441 2003-02-18 Ben Elliston <bje@redhat.com>
31444 * 5qtaprop.adb (Sleep): Fix typo in comment.
31446 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
31448 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
31449 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31450 gnat_ug_wnt.texi: Regenerate.
31452 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
31454 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
31455 be created if necessary.
31456 (ada.install-common): Let $(DESTDIR)$(bindir) be created
31457 if necessary. Remove erroneous and redundant gnatchop
31458 installation commands. Test for gnatdll before attempting
31460 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
31461 and gnatdll from all plausible locations.
31463 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
31465 * utils2.c (build_unary_op): Don't check flag_volatile.
31466 * gnat_ug.texi: Remove -fvolatile from example.
31467 * gnat_ug_vxw.texi: Likewise.
31469 2003-01-29 Laurent Guerby <guerby@acm.org>
31472 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
31473 * Makefile.in: match previous change.
31474 * Make-lang.in: match previous change.
31476 2003-01-29 Joel Sherrill <joel@OARcorp.com>
31478 * 5rosinte.ads: Add SIGXCPU.
31479 * 5rtpopsp.adb: New file.
31480 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
31481 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
31482 specific file 5rtpopsp.adb.
31483 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
31484 is likely needed for all newlib targets.
31485 * init.c: Add RTEMS specific version of __gnat_initialize().
31487 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31489 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
31491 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31493 * init.c (__gnat_error_handler): Make msg const.
31495 * gmem.c (convert_addresses): Move declaration ...
31496 * adaint.h: ... here.
31497 * adaint.c (convert_addresses): Adapt addrs type to match
31500 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
31502 2003-01-24 Andreas Schwab <schwab@suse.de>
31504 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
31505 size_t to avoid warning.
31507 2003-01-21 Zack Weinberg <zack@codesourcery.com>
31509 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
31511 2003-01-09 Geoffrey Keating <geoffk@apple.com>
31513 * gnat_rm.texi: Remove RCS version number.
31515 * ada-tree.h (union lang_tree_node): Add chain_next option.
31517 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
31519 * Make-lang.in (ada.install-info, ada.install-common,
31520 ada.uninstall): Prepend $(DESTDIR) to the destination
31521 directory in all (un)installation commands.
31522 * Makefile.in (install-gnatlib, install-rts): Ditto.
31524 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
31526 * gnat_rm.texi, gnat_ug.texi: Use @copying.
31527 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31528 gnat_ug_wnt.texi: Regenerate.
31530 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
31532 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
31534 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
31535 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
31536 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
31537 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
31538 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
31539 $(srcdir)/doc/include/gcc-common.texi.
31541 2002-12-15 Geert Bosch <bosch@gnat.com>
31543 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
31545 2002-12-14 Geert Bosch <bosch@gnat.com>
31548 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
31549 case of a body created for a Renaming_As_Body, on which
31550 conformance checks are not performed.
31552 2002-11-30 Zack Weinberg <zack@codesourcery.com>
31554 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
31555 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
31556 not already included.
31557 * Make-lang.in: Update dependencies.
31559 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
31560 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
31561 solution to buffer overflow bug on GNU/Linux.
31563 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
31567 * bindgen.adb: Remove all references to Public_Version.
31568 * comperr.adb: Remove all references to Public_Version and
31569 GNATPRO_Version; correct bug reporting instructions.
31570 * comperr.ads: Change to match bug box.
31571 * gnatvsn.ads: Remove all references to Public version and
31574 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
31577 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
31581 * config-lang.in: Remove diff_excludes.
31583 2002-11-05 Graham Stott <graham.stott@btinternet.com>
31586 * trans.c (gnu_pending_elaboration_lists): New GC root.
31587 (build_unit_elab): Use..
31589 2002-10-30 Geert Bosch <bosch@gnat.com>
31592 * misc.c : Include optabs.h
31594 * Make-lang.in (misc.o): Add dependency on optabs.h
31596 2002-10-29 Geert Bosch <bosch@gnat.com>
31599 * Make-lang.in (gnatbind): Depend on CONFIG_H
31601 2002-10-29 Geert bosch <bosch@gnat.com>
31604 * misc.c: Unrevert misc.c (1.13)
31606 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
31608 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
31609 maintainership comments.
31611 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
31614 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
31615 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
31616 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
31617 7staprop.adb: Correct statements in comments about
31618 maintainership of GNAT.
31621 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
31622 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
31623 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
31624 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
31625 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
31626 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
31627 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
31628 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
31629 comments about maintainership of GNAT.
31631 PR ada/6919 (forward port of patch for PR ada/5904)
31632 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
31633 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
31634 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
31635 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
31636 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
31637 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
31638 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
31639 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
31640 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
31641 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
31642 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
31643 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
31644 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
31645 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
31646 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
31647 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
31648 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
31649 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
31650 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
31651 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
31652 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
31653 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
31654 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
31655 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
31656 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
31657 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
31658 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
31659 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
31660 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
31661 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
31662 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
31663 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
31664 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
31665 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
31666 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
31667 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
31668 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
31669 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
31670 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
31671 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
31672 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
31673 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
31674 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
31675 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
31676 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
31677 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
31678 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
31679 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
31680 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
31681 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
31682 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
31683 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
31684 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
31685 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
31686 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
31687 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
31688 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
31689 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
31690 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
31691 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
31692 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
31693 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
31694 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
31695 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
31696 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
31697 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
31698 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
31699 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
31700 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
31701 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
31702 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
31703 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
31704 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
31705 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
31706 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
31707 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
31708 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
31709 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
31710 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
31711 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
31712 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
31713 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
31714 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
31715 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
31716 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
31717 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
31718 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
31719 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
31720 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
31721 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
31722 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
31723 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
31724 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
31725 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
31726 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
31727 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
31728 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
31729 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
31730 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
31731 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
31732 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
31733 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
31734 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
31735 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
31736 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
31737 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
31738 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
31739 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
31740 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
31741 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
31742 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
31743 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
31744 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
31745 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
31746 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
31747 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
31748 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
31749 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
31750 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
31751 par-endh.adb par-labl.adb par-load.adb par-prag.adb
31752 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
31753 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
31754 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
31755 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
31756 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
31757 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
31758 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
31759 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
31760 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
31761 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
31762 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
31763 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
31764 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
31765 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
31766 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
31767 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
31768 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
31769 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
31770 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
31771 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
31772 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
31773 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
31774 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
31775 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
31776 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
31777 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
31778 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
31779 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
31780 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
31781 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
31782 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
31783 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
31784 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
31785 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
31786 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
31787 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
31788 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
31789 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
31790 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
31791 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
31792 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
31793 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
31794 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
31795 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
31796 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
31797 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
31798 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
31799 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
31800 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
31801 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
31802 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
31803 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
31804 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
31805 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
31806 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
31807 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
31808 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
31809 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
31810 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
31811 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
31812 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
31813 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
31814 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
31815 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
31816 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
31817 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
31818 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
31819 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
31820 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
31821 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
31822 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
31823 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
31824 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
31825 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
31826 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
31827 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
31828 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
31829 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
31830 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
31831 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
31832 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
31833 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
31834 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
31835 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
31836 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
31837 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
31838 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
31839 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
31840 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
31841 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
31842 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
31843 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
31844 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
31845 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
31846 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
31847 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
31848 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
31849 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
31850 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
31851 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
31852 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
31853 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
31854 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
31855 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
31856 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
31857 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
31858 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
31859 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
31860 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
31861 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
31862 stringt.ads stringt.h style.adb style.ads stylesw.adb
31863 stylesw.ads switch.adb switch.ads sysdep.c system.ads
31864 table.adb table.ads targparm.adb targparm.ads targtyps.c
31865 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
31866 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
31867 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
31868 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
31869 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
31870 usage.ads utils.c utils2.c validsw.adb validsw.ads
31871 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
31872 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
31873 xtreeprs.adb: Correct statements in comments about maintainership
31876 2002-09-23 Zack Weinberg <zack@codesourcery.com>
31878 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
31879 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
31880 * gnatvsn.ads: Gnat_Version_String is now a function.
31881 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
31882 copy the C version_string into a String and return it.
31883 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
31884 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
31885 Remove pragma Ident (Gnat_Version_String). If this was the
31886 sole use of package Gnatvsn, remove the with statement too.
31887 * gnat1drv.adb: Tweak -gnatv output.
31889 2002-09-17 Richard Henderson <rth@redhat.com>
31891 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
31892 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
31893 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
31894 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
31895 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
31896 and real_2expN instead of a loop.
31897 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
31898 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
31900 2002-08-25 Andre Leis <a.leis@gmx.net>
31901 David Billinghurst (David.Billinghurst@riotinto.com>
31903 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
31905 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31907 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
31908 Remove $(CONFIG_H) dependency.
31910 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
31912 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
31914 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31916 * adadecode.c (ada_demangle): Use xstrdup in lieu of
31918 * misc.c (gnat_decode_option): Likewise.
31920 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
31922 * make.adb (Add_Switch): Make Generic_Position a procedure. The
31923 function approach did not work well because of a side effect (the
31924 function call could reallocate the table which was being indexed
31925 using its result). Fixes ada/4851. [RESURRECTED]
31927 2002-07-01 Roger Sayle <roger@eyesopen.com>
31929 * ada/utils.c (builtin_function): Accept an additional parameter.
31931 2002-06-28 Andreas Jaeger <aj@suse.de>
31934 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
31937 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31939 * Makefile.in (SHELL): Set to @SHELL@.
31941 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31943 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
31944 array size calculation.
31946 2002-06-04 Andreas Jaeger <aj@suse.de>
31948 * Make-lang.in (gnatbind): Readd rule that has been lost in last
31951 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
31953 Merge from pch-branch:
31955 * config-lang.in (gtfiles): Add ada-tree.h.
31956 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
31957 (SET_TYPE_MODULUS): New.
31958 (SET_TYPE_INDEX): New.
31959 (SET_TYPE_DIGITS_VALUE): New.
31960 (SET_TYPE_RM_SIZE): New.
31961 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
31962 (SET_TYPE_ADA_SIZE): New.
31963 (SET_TYPE_ACTUAL_BOUNDS): New.
31964 (SET_DECL_CONST_CORRESPONDING_VAR): New.
31965 (SET_DECL_ORIGINAL_FIELD): New.
31966 (TREE_LOOP_ID): Correct typo.
31967 * decl.c: Use new macros.
31968 * utils.c: Include debug.h, use new macros.
31969 * utils2.c: Use new macros.
31971 * ada-tree.h: Update all macros for new tree description.
31972 (struct tree_loop_id): New.
31973 (union lang_tree_node): New.
31974 (struct lang_decl): New.
31975 (struct lang_type): New.
31976 * misc.c (gnat_mark_tree): Delete.
31977 (LANG_HOOKS_MARK_TREE): Delete.
31978 * trans.c (tree_transform): No longer any need to cast
31981 * utils.c (struct language_function): New dummy structure.
31983 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
31984 (misc.o): Likewise.
31985 (utils.o): Likewise; also gtype-ada.h.
31986 * Make-lang.in (gnat1): Add dependency on s-gtype.
31987 (gnatbind): Add dependency on $(CONFIG_H).
31988 * utils.c: Correct last #include.
31989 (stuct e_stack): Remove unnecessary 'static'.
31990 (mark_e_stack): Remove unused prototype.
31992 * scn-nlit.adb: Remove whitespace after version number to
31993 keep lines under 80 chars.
31994 * snames.adb: Likewise.
31995 * treepr.ads: Likewise.
31997 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
31998 (misc.o): Likewise.
31999 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
32000 * config-lang.in (gtfiles): New.
32001 * decl.c: Use gengtype for roots.
32002 * gigi.h: Use gengtype for roots.
32003 * trans.c: Use gengtype for roots.
32004 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
32006 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
32008 * misc.c (gnat_init): Adjust setting of internal_error_function.
32010 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
32012 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
32013 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
32014 gnat_ug_wnt.texi: Regenerate.
32016 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
32018 * 5ntaprop.adb (with System.OS_Primitives): Remove.
32020 * cstreams.c (max_path_len): Move from here ...
32021 * adaint.c (__gnat_max_path_len): ... to here.
32022 * adaint.c (__gnat_max_path_len): Declare.
32023 * g-dirope.adb (Max_Path): Adjust.
32024 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
32025 * i-cstrea.ads (max_path_len): Adjust.
32026 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
32027 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
32029 * Makefile.in, Make-lang.in: Documentation is now built in
32030 Make-lang.in. Store Info and generated Texinfo files in the
32032 * gnat_ug.texi: Remove CVS keywords, correct version number.
32033 Set file name correctly.
32035 * gnat_ug_*.texi: Add.
32036 * .cvsignore: Ignore generated Texinfo files.
32038 2002-05-30 Zack Weinberg <zack@codesourcery.com>
32040 * ada.h: Add MI guard macro.
32041 (SUBTYPE): Define constants with an anonymous enum, not static
32043 (IN): Cast constants to appropriate type before use.
32045 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
32047 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
32050 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32052 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
32053 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
32054 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
32055 (ALL_ADA_CFLAGS): Likewise.
32056 (ADA_INCLUDES): Likewise.
32057 Adapt for new working dir.
32058 (GNATBIND): Use Makefile.in version.
32059 (.SUFFIXES): Copy from Makefile.in.
32060 (ada-warn): Define.
32061 (.adb.o, .ads.o): Copy from Makefile.in.
32062 Added $(OUTPUT_OPTION).
32063 (GNAT1_C_OBJS): Moved from Makefile.in.
32064 Prefix with ada subdir.
32065 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
32066 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
32067 Adapt for new working dir.
32068 (EXTRA_GNATBIND_OBJS): Likewise.
32069 (ADA_BACKEND): Moved from Makefile.in.
32070 Renamed to avoid conflict with global BACKEND.
32072 (TARGET_ADA_SRCS): Moved from Makefile.in.
32073 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
32075 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
32076 (ada_extra_files): Moved from Makefile.in.
32077 Prefix with ada subdir.
32078 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
32079 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
32080 (ada/nmake.ads): Likewise.
32081 (update-sources): Moved from Makefile.in.
32082 Prefix with ada subdir.
32083 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
32084 (ADA_TREE_H): Likewise.
32085 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
32086 (ada/memtrack.o): Likewise.
32087 (ada/adadecode.o): Likewise.
32088 Update dependencies.
32089 (ada/adaint.o): New.
32090 (ada/argv.o): Moved from Makefile.in.
32091 Prefix with ada subdir.
32092 Update dependencies.
32093 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
32094 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
32095 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
32096 Prefix with ada subdir.
32097 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
32098 (GNAT DEPENDENCIES): Regenerate.
32099 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
32100 toplevel Makefile.in.
32101 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
32102 (TARGET_ADA_SRCS): Removed.
32103 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
32104 (GNATBIND_OBJS): Likewise.
32105 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
32106 (BACKEND): Removed.
32107 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
32108 (TREE_H): Likewise.
32109 (ada_extra_files): Likewise.
32110 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
32111 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
32112 (update-sources): Likewise.
32113 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
32114 (ADA_TREE_H): Likewise.
32115 (adadecoce.o): Likewise.
32116 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
32117 (GNAT DEPENDENCIES): Likewise.
32119 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32121 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
32122 * Makefile.in: Likewise.
32124 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32126 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
32127 Restore $(CONFIG_H) and prefix.o dependencies.
32128 (ada.stage[1-4]): Depend on stage?-start.
32130 * Makefile.in (b_gnatb.c): Depend on interfac.o.
32132 2002-05-02 Jim Wilson <wilson@redhat.com>
32134 * utils.c (finish_record_type): Change record_size to record_type.
32136 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
32138 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
32139 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
32140 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
32142 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
32144 * misc.c (gnat_parse_file): Update.
32146 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
32148 * misc.c (gnat_init): Don't set lang_attribute_common.
32150 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
32152 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
32154 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
32156 * gnat_ug.texi: New file.
32158 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
32159 instead of gfdl.texi
32161 * xgnatug.adb, ug_words: New files.
32163 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
32164 gnat_rm and gnat-style manuals.
32166 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
32168 * gigi.h (incomplete_type_error): Remove.
32169 * utils.c (incomplete_type_error): Remove.
32171 2002-04-16 Mark Mitchell <mark@codesourcery.com>
32173 * trans.c (tree_transform): Add has_scope argument to
32174 expand_start_stmt_expr.
32176 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
32178 * gigi.h (truthvalue_conversion): Rename.
32179 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
32180 * trans.c (tree_transform): Update.
32181 * utils2.c (truthvalue_conversion): Rename, update.
32182 (build_binary_op, build_unary_op): Update.
32184 2002-04-04 Laurent Guerby <guerby@acm.org>
32186 * make.adb: Implement -margs, remove restriction about file name placement.
32187 * makeusg.adb: Documentation update.
32188 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
32189 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
32191 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
32193 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
32194 (builtin_function): Similarly.
32196 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
32198 * decl.c (gnat_to_gnu_entity): Update.
32199 * gigi.h (mark_addressable): Rename.
32200 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
32201 * trans.c (tree_transform): Update.
32202 * utils.c (create_var_decl): Update.
32203 * util2.c (build_binary_op, build_unary_op,
32204 fill_vms_descriptor): Update.
32205 (mark_addressable): Rename, update.
32207 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
32209 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
32211 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
32212 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
32213 * trans.c (tree_transform, convert_with_check): Update.
32214 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
32217 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
32219 * gigi.h (finish_incomplete_decl): Rename.
32220 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
32221 * utils.c (gnat_init_decl_processing): Don't set hook.
32222 (finish_incomplete_decl): Rename.
32224 2002-03-29 Andreas Schwab <schwab@suse.de>
32226 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
32229 2001-03-28 Robert Dewar <dewar@gnat.com>
32232 (Remove_Checks): New procedure
32235 (Remove_Checks): New procedure
32238 Use new Duplicate_Subexpr functions
32239 (Duplicate_Subexpr_No_Checks): New procedure
32240 (Duplicate_Subexpr_No_Checks_Orig): New procedure
32241 (Duplicate_Subexpr): Restore original form (checks duplicated)
32242 (Duplicate_Subexpr): Call Remove_Checks
32245 (Duplicate_Subexpr_No_Checks): New procedure
32246 (Duplicate_Subexpr_No_Checks_Orig): New procedure
32247 Add 2002 to copyright notice
32249 * sem_util.adb: Use new Duplicate_Subexpr functions
32252 (Eval_Indexed_Component): This is the place to call
32253 Constant_Array_Ref and to replace the value. We simply merge
32254 the code of this function in here, since it is now no longer
32255 used elsewhere. This fixes the problem of the back end not
32256 realizing we were clever enough to see that this was
32258 (Expr_Val): Remove call to Constant_Array_Ref
32259 (Expr_Rep_Val): Remove call to Constant_Array_Ref
32261 (Constant_Array_Ref): Deal with string literals (patch
32262 suggested by Zack Weinberg on the gcc list)
32264 2001-03-28 Ed Schonberg <schonber@gnat.com>
32266 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
32267 Duplicate_Subexpr_Move_Checks.
32269 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
32270 Duplicate_Subexpr_Move_Checks.
32272 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
32273 value of array exists before retrieving it (it may a private
32274 protected component in a function).
32276 2002-03-28 Geert Bosch <bosch@gnat.com>
32278 * prj-pp.adb : New file.
32280 * prj-pp.ads : New file.
32282 2002-03-28 Andreas Jaeger <aj@suse.de>
32284 * Makefile.in (stamp-sdefault): Fix path for Makefile.
32286 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
32288 * misc.c (gnat_expand_expr): Move prototype.
32290 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
32292 * misc.c (insert_default_attributes): Remove.
32294 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
32296 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
32297 (gnat_init): Don't set hook.
32298 (gnat_expand_expr): Fix prototype.
32300 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
32302 * misc.c (ggc_p): Remove.
32304 2002-03-27 Geert Bosch <bosch@gnat.com>
32306 * prj-makr.ads, prj-makr.adb : New files.
32308 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
32310 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
32311 (lang_mark_tree): Make static, rename.
32313 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
32315 * misc.c (maybe_build_cleanup): Remove.
32317 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
32319 * gigi.h (yyparse): Remove.
32321 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
32323 * gnat_rm.texi: Sync with ACT version.
32324 (From Ben Brosgol <brosgol@gnat.com>)
32326 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
32328 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
32329 (gnat_init): Remove old hook.
32331 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
32333 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
32334 (yyparse): Rename gnat_parse_file.
32336 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
32338 Delete all lines containing "$Revision:".
32339 * xeinfo.adb: Don't look for revision numbers.
32340 * xnmake.adb: Likewise.
32341 * xsinfo.adb: Likewise.
32342 * xsnames.adb: Likewise.
32343 * xtreeprs.adb: Likewise.
32345 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32347 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
32348 gnat_tree_code_name): Delete.
32349 (tree_code_type, tree_code_length, tree_code_name): Define.
32350 (gnat_init): Don't try to copy into the various tree_code
32353 2002-03-11 Richard Henderson <rth@redhat.com>
32355 * Makefile.in (.NOTPARALLEL): Add fake tag.
32357 2002-03-07 Geert Bosch <bosch@gnat.com>
32359 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
32360 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
32361 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
32362 switch-m.adb, switch-m.ads : New files.
32364 2002-03-07 Geert Bosch <bosch@gnat.com>
32366 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
32367 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
32368 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
32369 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
32370 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
32371 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
32372 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
32373 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
32374 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
32375 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
32376 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
32377 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
32378 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
32379 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
32380 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
32381 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
32382 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
32383 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
32384 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
32385 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
32386 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
32387 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
32388 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
32389 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
32390 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
32391 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
32392 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
32393 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
32394 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
32395 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
32396 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
32397 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
32398 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
32399 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
32400 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
32401 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
32402 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
32403 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
32404 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
32405 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
32406 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
32407 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
32408 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
32409 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
32410 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
32411 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
32412 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
32413 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
32414 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
32415 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
32416 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
32417 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
32418 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
32419 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
32420 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
32421 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
32422 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
32423 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
32424 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
32425 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
32426 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
32427 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
32428 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
32429 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
32430 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
32431 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
32432 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
32433 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
32434 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
32435 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
32436 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
32437 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
32438 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
32439 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
32440 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
32441 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
32442 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
32443 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
32444 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
32445 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
32446 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
32447 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
32448 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
32449 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
32450 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
32451 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
32452 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
32453 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
32454 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
32455 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
32456 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
32457 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
32458 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
32459 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
32460 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
32461 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
32462 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
32464 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
32465 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
32466 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
32467 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
32469 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
32470 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
32472 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
32473 to mdll-fil.ad[bs] and mdll-util.ad[bs]
32475 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
32476 from mdllfile.ad[bs] and mdlltool.ad[bs]
32478 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32480 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
32481 lieu of explicit sizeof/sizeof.
32483 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
32485 * misc.c (copy_lang_decl): Remove.
32487 2002-02-27 Zack Weinberg <zack@codesourcery.com>
32489 * misc.c: Delete traditional-mode-related code copied from the
32490 C front end but not used, or used only to permit the compiler
32493 2002-02-07 Richard Henderson <rth@redhat.com>
32495 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
32496 * adaint.h (__gnat_to_gm_time): Update prototype.
32498 2002-01-30 Richard Henderson <rth@redhat.com>
32500 * trans.c (tree_transform) [N_Loop_Statement]: Use
32501 expand_exit_loop_top_cond.
32503 2001-12-23 Richard Henderson <rth@redhat.com>
32505 * utils.c (end_subprog_body): Push GC context around
32506 rest_of_compilation for nested functions.
32508 2001-12-23 Richard Henderson <rth@redhat.com>
32510 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
32512 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
32514 * gnat-style.texi (Declarations and Types): Remove ancient style
32515 rule which was mandated by code generation issues.
32517 * gnat-style.texi (header): Add @dircategory, @direntry.
32518 (title page): Remove date.
32519 (general) Add @./@: where approriate, and two spaces after the
32520 full stop at the end of a sentence. Use @samp markup when
32521 referring concrete lexical entities (keywords, attribute names
32522 etc.), and @syntax for ARM grammar elements. Use @r for English
32523 text in comments. Use @emph for emphasis. Change "if-statements"
32524 etc. to "if statements" (without @samp). Break long lines. Make
32525 casing of section names consistent.
32526 (Identifiers): Use @samp markup for variable names.
32527 (Comments): Use @samp markup for comment characters. Line-end
32528 comments may follow any Ada code, not just statements. Fix
32529 misspelling of "Integer" as "integer".
32530 (Loop statements): Do not use variable name "I", use "J".
32531 (Subprogram Declarations): Document alignment.
32532 (Subprogram Bodies, Block statements): Document empty line before
32535 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
32537 * make.adb (Add_Switch): Make Generic_Position a procedure. The
32538 function approach did not work well because of a side effect (the
32539 function call could reallocate the table which was being indexed
32540 using its result). Fixes ada/4851.
32542 2001-12-19 Robert Dewar <dewar@gnat.com>
32544 * bindgen.adb: Minor reformatting
32546 * cstand.adb: Minor reformatting
32548 * fmap.adb: Minor reformatting
32549 Change name from Add for Add_To_File_Map (Add is much too generic)
32550 Change Path_Name_Of to Mapped_Path_Name
32551 Change File_Name_Of to Mapped_File_Name
32552 Fix copyright dates in header
32555 Change name from Add for Add_To_File_Map (Add is much too generic)
32556 Change Path_Name_Of to Mapped_Path_Name
32557 Change File_Name_Of to Mapped_File_Name
32558 Fix copyright dates in header
32560 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
32561 Add use clause for Fmap.
32563 * make.adb: Minor reformatting
32565 * osint.adb: Minor reformatting. Change of names in Fmap.
32566 Add use clause for Fmap.
32568 * prj-env.adb: Minor reformatting
32570 * prj-env.ads: Minor reformatting
32572 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
32573 error found (there were odd exceptions to this general rule in
32574 -gnatec/-gnatem processing)
32576 2001-12-19 Olivier Hainque <hainque@gnat.com>
32578 * raise.c (__gnat_eh_personality): Exception handling personality
32579 routine for Ada. Still in rough state, inspired from the C++ version
32580 and still containing a bunch of debugging artifacts.
32581 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
32582 inspired from the C++ library.
32584 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
32585 exception handling integration.
32587 2001-12-19 Arnaud Charlet <charlet@gnat.com>
32589 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
32590 (HIE_SOURCES): Add s-secsta.ad{s,b}.
32591 (HIE_OBJS): Add s-fat*.o
32592 (RAVEN_SOURCES): Remove files that are no longer required. Add
32593 interrupt handling files.
32594 (RAVEN_MOD): Removed, no longer needed.
32596 2001-12-19 Robert Dewar <dewar@gnat.com>
32598 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
32599 Add 2001 to copyright date
32601 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
32602 need to force universal inlining for these cases.
32604 2001-12-19 Arnaud Charlet <charlet@gnat.com>
32606 * s-taprob.adb: Minor clean ups so that this unit can be used in
32609 * exp_ch7.adb: Allow use of secondary stack in HI mode.
32610 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
32612 2001-12-19 Vincent Celier <celier@gnat.com>
32614 * prj-tree.ads (Project_Node_Record): Add comments for components
32615 Pkg_Id and Case_Insensitive.
32617 2001-12-19 Pascal Obry <obry@gnat.com>
32619 * g-socket.adb: Minor reformatting. Found while reading code.
32621 2001-12-19 Robert Dewar <dewar@gnat.com>
32623 * prj-tree.ads: Minor reformatting
32625 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
32627 * config-lang.in (diff_excludes): Remove.
32629 2001-12-17 Ed Schonberg <schonber@gnat.com>
32631 * sem_res.adb (Resolve_Selected_Component): do not generate a
32632 discriminant check if the selected component is a component of
32633 the argument of an initialization procedure.
32635 * trans.c (tree_transform, case of arithmetic operators): If result
32636 type is private, the gnu_type is the base type of the full view,
32637 given that the full view itself may be a subtype.
32639 2001-12-17 Robert Dewar <dewar@gnat.com>
32641 * sem_res.adb: Minor reformatting
32643 * trans.c (tree_transform, case N_Real_Literal): Add missing third
32644 parameter in call to Machine (unknown horrible effects from this
32647 * urealp.h: Add definition of Round_Even for call to Machine
32648 Add third parameter for Machine
32650 2001-12-17 Ed Schonberg <schonber@gnat.com>
32652 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
32653 predefined units in No_Run_Time mode.
32655 2001-12-17 Richard Kenner <kenner@gnat.com>
32657 * misc.c (insn-codes.h): Now include.
32659 2001-12-17 Olivier Hainque <hainque@gnat.com>
32661 * a-except.adb: Preparation work for future integration of the GCC 3
32662 exception handling mechanism
32663 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
32664 to factorize previous code sequences and make them externally callable,
32665 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
32666 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
32667 Use the new notification routines.
32669 2001-12-17 Emmanuel Briot <briot@gnat.com>
32671 * prj-tree.ads (First_Choice_Of): Document the when others case
32673 2001-12-17 Arnaud Charlet <charlet@gnat.com>
32675 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
32676 HI-E mode, in order to support Ravenscar profile properly.
32678 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
32679 mode on 32 bits targets.
32681 2001-12-17 Vincent Celier <celier@gnat.com>
32683 * fmap.adb: Initial version.
32685 * fmap.ads: Initial version.
32687 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
32688 If search is successfully done, add to mapping.
32690 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
32693 (Gnatmake): Add new local variable Mapping_File_Name.
32694 Create mapping file when using project file(s).
32695 Delete mapping file before exiting.
32697 * opt.ads (Mapping_File_Name): New variable
32699 * osint.adb (Find_File): Use path name found in mapping, if any.
32701 * prj-env.adb (Create_Mapping_File): New procedure
32703 * prj-env.ads (Create_Mapping_File): New procedure.
32705 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
32708 * usage.adb: Add entry for new switch -gnatem.
32710 * Makefile.in: Add dependencies for fmap.o.
32712 2001-12-17 Ed Schonberg <schonber@gnat.com>
32714 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
32715 is a package instantiation rewritten as a package body.
32716 (Install_Withed_Unit): Undo previous change, now redundant.
32718 2001-12-17 Gary Dismukes <dismukes@gnat.com>
32721 (Compute_Length): Move conversion to Unsigned to callers.
32722 (Get_Max_Size): Convert Len expression to Unsigned after calls to
32723 Compute_Length and Determine_Range.
32724 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
32725 Compute_Length and Determine_Range.
32726 Above changes fix problem with length computation for supernull arrays
32727 where Max (Len, 0) wasn't getting applied due to the Unsigned
32728 conversion used by Compute_Length.
32730 2001-12-17 Arnaud Charlet <charlet@gnat.com>
32733 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
32734 System.Secondary_Stack.
32735 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
32737 Remove unused entity RE_Exception_Data.
32739 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
32741 * rident.ads (No_Secondary_Stack): New restriction.
32743 2001-12-17 Joel Brobecker <brobecke@gnat.com>
32745 * gnat_rm.texi: Fix minor typos. Found while reading the section
32746 regarding "Bit_Order Clauses" that was sent to a customer.
32747 Very interesting documentation!
32749 2001-12-17 Robert Dewar <dewar@gnat.com>
32751 * sem_case.adb (Choice_Image): Avoid creating improper character
32752 literal names by using the routine Set_Character_Literal_Name. This
32753 fixes bombs in certain error message cases.
32755 2001-12-17 Arnaud Charlet <charlet@gnat.com>
32757 * a-reatim.adb: Minor reformatting.
32759 2001-12-17 Ed Schonberg <schonber@gnat.com>
32761 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
32762 case where the formal is an extension of another formal in the current
32763 unit or in a parent generic unit.
32765 2001-12-17 Arnaud Charlet <charlet@gnat.com>
32767 * s-tposen.adb: Update comments. Minor reformatting.
32768 Minor code clean up.
32770 * s-tarest.adb: Update comments. Minor code reorganization.
32772 2001-12-17 Gary Dismukes <dismukes@gnat.com>
32774 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
32777 2001-12-17 Robert Dewar <dewar@gnat.com>
32779 * exp_attr.adb: Minor reformatting
32781 2001-12-17 Ed Schonberg <schonber@gnat.com>
32783 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
32784 derivations nested within a child unit: verify that the parent
32785 type is declared in an outer scope.
32787 2001-12-17 Robert Dewar <dewar@gnat.com>
32789 * sem_ch12.adb: Minor reformatting
32791 2001-12-17 Ed Schonberg <schonber@gnat.com>
32793 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
32794 warning if current unit is a predefined one, from which bodies may
32797 2001-12-17 Robert Dewar <dewar@gnat.com>
32799 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
32800 Fix header format. Add 2001 to copyright date.
32802 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
32803 which caused CE during compilation if checks were enabled.
32805 2001-12-17 Vincent Celier <celier@gnat.com>
32808 (Switches_Of): New function
32809 (Test_If_Relative_Path): New procedure
32810 (Add_Switches): Use new function Switches_Of
32811 (Collect_Arguments_And_Compile): Use new function Switches_Of.
32812 When using a project file, test if there are any relative
32813 search path. Fail if there are any.
32814 (Gnatmake): Only add switches for the primary directory when not using
32815 a project file. When using a project file, change directory to the
32816 object directory of the main project file. When using a project file,
32817 test if there are any relative search path. Fail if there are any.
32818 When using a project file, fail if specified executable is relative
32819 path with directory information, and prepend executable, if not
32820 specified as an absolute path, with the exec directory. Make sure
32821 that only one -o switch is transmitted to the linker.
32823 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
32826 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
32827 when using a non standard naming scheme.
32828 (Check_Ada_Naming_Scheme): Make sure that error messages
32829 do not raise exceptions.
32830 (Is_Illegal_Append): Return True if there is no dot in the suffix.
32831 (Language_Independent_Check): Check the exec directory.
32833 * prj.adb (Project_Empty): Add new component Exec_Directory
32836 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
32837 (Project_Data): Add component Exec_Directory
32839 * snames.adb: Updated to match snames.ads revision 1.215
32841 * snames.ads: Added Exec_Dir
32843 2001-12-17 Robert Dewar <dewar@gnat.com>
32845 * make.adb: Minor reformatting
32847 * prj-nmsc.adb: Minor reformatting
32849 * snames.adb: Updated to match snames.ads
32851 * snames.ads: Alphebetize entries for project file
32853 2001-12-17 Ed Schonberg <schonber@gnat.com>
32855 * trans.c (process_freeze_entity): Do nothing if the entity is a
32856 subprogram that was already elaborated.
32858 2001-12-17 Richard Kenner <kenner@gnat.com>
32860 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
32861 and Esize if object is referenced via pointer.
32863 2001-12-17 Ed Schonberg <schonber@gnat.com>
32865 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
32866 is discrete before analyzing choices.
32868 2001-12-17 Joel Brobecker <brobecke@gnat.com>
32870 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
32871 containing the name of the Ada Main Program. This string is mainly
32872 intended for the debugger.
32873 (Gen_Output_File_C): Do the equivalent change when generating a C file.
32875 2001-12-17 Robert Dewar <dewar@gnat.com>
32877 * ali.adb: Set new Dummy_Entry field in dependency entry
32879 * ali.ads: Add Dummy_Entry field to source dependency table
32881 * bcheck.adb (Check_Consistency): Ignore dummy D lines
32883 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
32885 * lib-writ.ads: Document dummy D lines for missing files.
32887 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
32889 2001-12-17 Robert Dewar <dewar@gnat.com>
32891 * ali.adb: Type reference does not reset current file.
32893 * ali.adb: Recognize and scan renaming reference
32895 * ali.ads: Add spec for storing renaming references.
32897 * lib-xref.ads: Add documentation for handling of renaming references
32899 * lib-xref.adb: Implement output of renaming reference.
32902 (Determine_Range): Document local variables
32903 (Determine_Range): Make sure Hbound is initialized. It looks as though
32904 there could be a real problem here with an uninitialized reference
32905 to Hbound, but no actual example of failure has been found.
32907 2001-12-17 Laurent Pautet <pautet@gnat.com>
32910 Fix comment of Shutdown_Socket and Close_Socket. These functions
32911 should not fail silently because if they are called twice, this
32912 probably means that there is a race condition in the user program.
32913 Anyway, this behaviour is consistent with the rest of this unit.
32914 When an error occurs, an exception is raised with the error message
32915 as exception message.
32917 2001-12-17 Robert Dewar <dewar@gnat.com>
32919 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
32920 that it happens before modification of Sloc values for -gnatD.
32922 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
32923 so that it happens before modification of Sloc values for -gnatD.
32925 * switch.adb: Minor reformatting
32927 2001-12-15 Richard Henderson <rth@redhat.com>
32929 * sem_ch7.adb: Wrap comment.
32931 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
32933 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
32934 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
32935 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
32936 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
32937 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
32938 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
32939 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
32940 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
32941 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
32942 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
32943 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
32944 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
32945 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
32946 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
32947 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
32948 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
32949 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
32950 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
32951 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
32952 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
32953 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
32954 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
32955 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
32956 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
32959 2001-12-14 Vincent Celier <celier@gnat.com>
32961 * osint.adb(Create_Debug_File): When an object file is specified,
32962 put the .dg file in the same directory as the object file.
32964 2001-12-14 Robert Dewar <dewar@gnat.com>
32966 * osint.adb: Minor reformatting
32968 * lib-xref.adb (Output_Instantiation): New procedure to generate
32969 instantiation references.
32971 * lib-xref.ads: Add documentation of handling of generic references.
32973 * ali.adb (Read_Instantiation_Ref): New procedure to read
32974 instantiation references
32976 * ali.ads: Add spec for storing instantiation references
32978 * bindusg.adb: Minor reformatting
32980 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32982 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32984 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32986 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32990 Add 2001 to copyright date
32991 Add entry for Latin-5 (Cyrillic ISO-8859-5)
32993 2001-12-14 Matt Gingell <gingell@gnat.com>
32995 * adaint.c: mktemp is a macro on Lynx and can not be used as an
32998 2001-12-14 Richard Kenner <kenner@gnat.com>
33000 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
33001 if operand is CONSTRUCTOR.
33003 2001-12-14 Ed Schonberg <schonber@gnat.com>
33005 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
33006 before emiting check on right-hand side, so that exception information
33009 2001-12-14 Richard Kenner <kenner@gnat.com>
33011 * utils.c (create_var_decl): Throw away initializing expression
33012 if just annotating types and non-constant.
33014 2001-12-14 Vincent Celier <celier@gnat.com>
33016 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
33019 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
33021 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
33023 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
33025 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
33027 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
33029 * ChangeLog: Remove piece of diff output.
33031 2001-12-14 Geert Bosch <bosch@gnat.com>
33033 * config-lang.in: Update copyright notice
33035 * layout.adb: Remove commented out code.
33037 * mdllfile.ads: Update copyright notice. Fix header format.
33039 * sem_case.ads: Likewise.
33041 * sem_ch3.adb: Minor reformatting.
33043 2001-12-12 Geert Bosch <bosch@gnat.com>
33045 * freeze.ads: Update copyright date.
33047 * g-comlin.ads: Minor reformatting.
33049 * gnat-style.texi: Fix typo.
33051 2001-12-12 Geert Bosch <bosch@gnat.com>
33053 * einfo.h: Regenerate.
33055 2001-12-12 Ed Schonberg <schonber@gnat.com>
33057 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
33058 on known node types, rather than untyped fields. Further cleanups.
33060 2001-12-12 Robert Dewar <dewar@gnat.com>
33063 (Save_Entity_Descendant): Minor comment update.
33064 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
33065 of an N_Attribute_Reference node. As per note below, this does not
33066 eliminate need for Associated_Node in attribute ref nodes.
33067 (Associated_Node): Documentation explicitly mentions attribute
33068 reference nodes, since this field is used in such nodes.
33070 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
33072 2001-12-12 Robert Dewar <dewar@gnat.com>
33074 * s-stalib.adb: Add more comments on with statements being needed
33076 * par-ch12.adb: Minor reformatting
33078 * prj-dect.ads: Fix copyright header
33080 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
33081 inputs fit in 32 bits, but the result still overflows.
33083 * s-fatgen.ads: Minor comment improvement
33085 2001-12-12 Ed Schonberg <schonber@gnat.com>
33087 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
33088 formal derived type, look for an inherited component from the full
33089 view of the parent, if any.
33091 2001-12-12 Robert Dewar <dewar@gnat.com>
33093 * checks.ads (Apply_Alignment_Check): New procedure.
33095 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
33096 ensure that the alignment of objects with address clauses is
33097 appropriate, and raise PE if not.
33099 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
33100 Exp_Pakd.Known_Aligned_Enough
33102 * mdllfile.ads: Minor reformatting
33104 * mlib-fil.ads: Minor reformatting
33106 2001-12-12 Ed Schonberg <schonber@gnat.com>
33108 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
33109 fix to any component reference if enclosing record has non-standard
33112 2001-12-12 Vincent Celier <celier@gnat.com>
33114 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
33117 2001-12-12 Ed Schonberg <schonber@gnat.com>
33119 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
33122 2001-12-12 Robert Dewar <dewar@gnat.com>
33124 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
33126 2001-12-12 Emmanuel Briot <briot@gnat.com>
33128 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
33129 and it adds dependencies to system.io.
33131 2001-12-12 Pascal Obry <obry@gnat.com>
33133 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
33136 2001-12-11 Ed Schonberg <schonber@gnat.com>
33138 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
33139 that is the parent of other generics, the instance body replaces the
33140 instance node. Retrieve the instance of the spec, which is the one
33141 that is visible in clients and within the body.
33143 2001-12-11 Vincent Celier <celier@gnat.com>
33145 * gnatmain.adb: Initial version.
33147 * gnatmain.ads: Initial version.
33149 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
33151 * snames.adb: Updated to match snames.ads.
33153 * snames.ads: Added Gnatstub.
33155 2001-12-11 Vincent Celier <celier@gnat.com>
33157 * prj-attr.adb (Initialization_Data): Change name from
33158 Initialisation_Data.
33160 2001-12-11 Emmanuel Briot <briot@gnat.com>
33162 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
33163 + and * applied to backslashed expressions like \r.
33165 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
33167 * g-os_lib.ads: String_List type added, Argument_List type is now
33168 subtype of String_List.
33170 2001-12-11 Robert Dewar <dewar@gnat.com>
33172 * g-os_lib.ads: Change copyright to FSF
33173 Add comments for String_List type
33175 2001-12-11 Vincent Celier <celier@gnat.com>
33177 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
33178 string to the buffer).
33180 2001-12-11 Ed Schonberg <schonber@gnat.com>
33182 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
33185 * sem_attr.adb: Simplify previous fix for Address.
33186 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
33187 to avoid anomalies where the bound of the type appears to raise
33190 2001-12-11 Robert Dewar <dewar@gnat.com>
33192 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
33195 2001-12-11 Ed Schonberg <schonber@gnat.com>
33197 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
33198 renamed unit before checking for recursive instantiations.
33200 2001-12-11 Emmanuel Briot <briot@gnat.com>
33202 * prj.ads: Add comments for some of the fields.
33204 2001-12-11 Robert Dewar <dewar@gnat.com>
33206 * lib-xref.adb (Output_Refs): Don't output type references outside
33207 the main unit if they are not otherwise referenced.
33209 2001-12-11 Ed Schonberg <schonber@gnat.com>
33211 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
33212 code and diagnose additional illegal uses
33214 * sem_util.adb (Is_Object_Reference): An indexed component is an
33215 object only if the prefix is.
33217 2001-12-11 Vincent Celier <celier@gnat.com>
33219 * g-diopit.adb: Initial version.
33221 * g-diopit.ads: Initial version.
33224 (Expand_Path): Avoid use of Unbounded_String
33225 (Find, Wildcard_Iterator): Moved to child package Iteration
33227 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
33229 2001-12-11 Robert Dewar <dewar@gnat.com>
33231 * sem_attr.adb: Minor reformatting
33233 2001-12-11 Ed Schonberg <schonber@gnat.com>
33235 * sem_ch3.adb: Clarify some ???.
33237 2001-12-11 Robert Dewar <dewar@gnat.com>
33239 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
33240 Exp_Pakd.Known_Aligned_Enough
33242 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
33243 version is moved to Exp_Ch13.
33245 2001-12-11 Robert Dewar <dewar@gnat.com>
33247 * einfo.ads: Minor reformatting
33249 * exp_ch5.adb: Add comment for previous.change
33251 * ali.adb: New interface for extended typeref stuff.
33253 * ali.ads: New interface for typeref stuff.
33255 * checks.adb (Apply_Alignment_Check): New procedure.
33257 * debug.adb: Add -gnatdM for modified ALI output
33259 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
33261 * lib-xref.adb: Extend generation of <..> notation to cover
33262 subtype/object types. Note that this is a complete rewrite,
33263 getting rid of the very nasty quadratic algorithm previously
33264 used for derived type output.
33266 * lib-xref.ads: Extend description of <..> notation to cover
33267 subtype/object types. Uses {..} for these other cases.
33268 Also use (..) for pointer types.
33270 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
33272 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
33273 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
33275 2001-12-11 Vincent Celier <celier@gnat.com>
33278 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
33279 Changed /BIND_ONLY to /ACTIONS=BIND
33280 Changed /LINK_ONLY to /ACTIONS=LINK
33282 2001-12-11 Ed Schonberg <schonber@gnat.com>
33284 * sem_ch8.adb (Find_Selected_Component): improved search for a
33285 candidate package in case of error.
33287 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
33288 chain back on scope stack before reinstalling use clauses.
33290 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
33291 is enabled, do not kill the code for the condition, to preserve
33294 2001-12-11 Robert Dewar <dewar@gnat.com>
33296 * checks.adb (Insert_Valid_Check): Apply validity check to expression
33297 of conversion, not to result of conversion.
33299 2001-12-11 Ed Schonberg <schonber@gnat.com>
33301 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
33302 before freezing parent. If the declarations are mutually recursive,
33303 an access to the current record type may be frozen before the
33304 derivation is complete.
33306 2001-12-05 Vincent Celier <celier@gnat.com>
33308 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
33309 -c /COMPILE_ONLY, -l /LINK_ONLY
33312 (Bind_Only): New Flag
33313 (Link_Only): New flag
33315 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
33318 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
33321 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
33322 (Gnatmake): Set the step flags. Only perform a step if the
33323 corresponding step flag is True.
33324 (Scan_Make_Arg): Reset the bind and link step flags when -u
33325 or -gnatc has been specified.
33327 2001-12-05 Ed Schonberg <schonber@gnat.com>
33329 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
33330 get bounds from right operand.
33332 * sem_eval.adb: Minor reformatting
33334 * exp_util.adb (Make_Literal_Range): use bound of literal rather
33335 than Index'First, its lower bound may be different from 1.
33337 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
33340 2001-12-05 Vincent Celier <celier@gnat.com>
33342 * prj-nmsc.adb Minor reformatting
33344 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
33345 set and libraries are not supported.
33347 2001-12-05 Ed Schonberg <schonber@gnat.com>
33349 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
33350 private view explicitly, so the back-end can treat as a global
33353 2001-12-05 Ed Schonberg <schonber@gnat.com>
33355 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
33356 unit, always replace instance node with new body, for ASIS use.
33358 2001-12-05 Vincent Celier <celier@gnat.com>
33360 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
33361 libraries are not supported and both attributes Library_Name and
33362 Library_Dir are specified.
33364 * prj-proc.adb (Expression): Set location of Result to location of
33367 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
33368 (prj-nmsc is now importing MLib.Tgt)
33370 * prj-proc.adb: Put the change indicated above that was forgotten.
33372 2001-12-05 Robert Dewar <dewar@gnat.com>
33374 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
33376 2001-12-05 Ed Schonberg <schonber@gnat.com>
33378 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
33379 constraint, introduce explicit subtype declaration and derive from it.
33381 * sem_ch3.adb: Minor reformatting
33383 2001-12-05 Robert Dewar <dewar@gnat.com>
33385 * checks.adb (Determine_Range): Increase cache size for checks.
33388 * exp_ch6.adb: Minor reformatting
33389 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
33390 a parameter whose root type is System.Address, since treating such
33391 subprograms as pure in the code generator is almost surely a mistake
33392 that will lead to unexpected results.
33394 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
33395 change handling of conversions.
33397 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
33399 2001-12-05 Ed Schonberg <schonber@gnat.com>
33401 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
33402 aggregate with static wrong size, attach generated Raise node to
33405 2001-12-05 Robert Dewar <dewar@gnat.com>
33407 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
33408 Fixes compilation abandoned bomb in B24009B.
33410 2001-12-05 Ed Schonberg <schonber@gnat.com>
33413 Document use of Associated_Node on Selected_Components.
33414 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
33415 to clarify use of untyped descendant fields.
33417 2001-12-05 Robert Dewar <dewar@gnat.com>
33419 * prj-dect.ads: Add ??? comment
33420 Add 2001 to copyright notice (was not done in after all)
33422 * prj-part.adb: Minor reformatting. Reword one awkward error message.
33424 * prj.ads: Minor reformatting throughout, and add some ??? comments
33426 * snames.ads: Minor reformatting
33428 2001-12-05 Geert Bosch <bosch@gnat.com>
33430 * snames.adb: Autoupdate
33432 2001-12-05 Vincent Celier <celier@gnat.com>
33434 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
33436 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
33438 * prj-env.adb: Minor comment changes (modifying -> extends).
33440 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
33442 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
33445 * prj.adb (Initialize): Change Modifying to Extends.
33447 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
33449 * prj.ads: Minor comment change (Modifying -> extending).
33451 * snames.ads: Change modifying to extends.
33453 2001-12-05 Robert Dewar <dewar@gnat.com>
33455 * sem_warn.adb: Remove stuff for conditionals, we are not going to
33458 * sem_warn.ads: Remove stuff for conditionals, we are not going to
33459 do this after all. Add 2001 to copyright notice
33461 2001-12-04 Geert Bosch <bosch@gnat.com>
33463 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
33465 2001-12-04 Robert Dewar <dewar@gnat.com>
33467 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
33468 location if we already have errors. Stops some cases of cascaded
33471 * errout.adb: Improve comment.
33473 2001-12-04 Robert Dewar <dewar@gnat.com>
33476 (Analyze_Formal_Type_Definition): Defend against Error.
33477 (Analyze_Formal_Subprogram): Defend against Error.
33479 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
33480 remove following semicolon if present. Removes cascaded error.
33482 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
33485 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
33486 exceptions equals 0.
33487 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
33488 Fixes PIWG E tests (which have to be run with -gnatL).
33490 2001-12-04 Robert Dewar <dewar@gnat.com>
33492 * einfo.ads: Minor reformatting
33494 2001-12-04 Ed Schonberg <schonber@gnat.com>
33496 * einfo.ads: Block_Node points to the identifier of the block, not to
33497 the block node itself, to preserve the link when the block is
33498 rewritten, e.g. within an if-statement with a static condition.
33500 * inline.adb (Cleanup_Scopes): recover block statement from block
33501 entity using new meaning of Block_Node.
33503 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
33504 identifier of block node, rather than to node itself.
33506 2001-12-04 Gary Dismukes <dismukes@gnat.com>
33509 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
33510 (Discrimify): Go back to setting the Etypes of the selected component
33511 because the Vname component does not exist at this point and will
33512 fail name resolution. Also set Analyzed.
33513 Remove with and use of Sem_Res.
33515 2001-12-04 Arnaud Charlet <charlet@gnat.com>
33517 * Makefile.in: (HIE_SOURCES): add s-fat*.
33519 2001-12-04 Robert Dewar <dewar@gnat.com>
33522 (Compile_Time_Known_Attribute): New procedure.
33523 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
33524 proper range check.
33526 2001-12-04 Ed Schonberg <schonber@gnat.com>
33528 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
33529 processing discriminants to diagnose illegal default values.
33531 2001-12-04 Ed Schonberg <schonber@gnat.com>
33533 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
33534 access discriminant within a type extension that constrains its
33535 parent discriminants.
33537 2001-12-04 Ed Schonberg <schonber@gnat.com>
33539 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
33540 is malformed, use instance of Any_Id to allow analysis to proceed.
33542 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
33543 type definition is illegal.
33544 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
33547 2001-12-04 Ed Schonberg <schonber@gnat.com>
33549 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
33552 2001-12-04 Robert Dewar <dewar@gnat.com>
33554 * errout.adb: Minor reformatting
33556 2001-12-04 Robert Dewar <dewar@gnat.com>
33558 * exp_util.adb: Minor reformatting from last change
33560 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
33561 which is a rewriting of an expression, traverse the original
33562 expression to remove warnings that may have been posted on it.
33564 2001-12-04 Ed Schonberg <schonber@gnat.com>
33566 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
33567 record that has other packed components.
33569 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
33571 * adaint.c: Minor cleanups.
33573 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
33575 * adaint.c: Do not use utime.h on vxworks.
33577 2001-12-04 Arnaud Charlet <charlet@gnat.com>
33579 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
33580 more confusion than it solves.
33582 2001-12-04 Geert bosch <bosch@gnat.com>
33584 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
33586 2001-12-04 Geert Bosch <bosch@gnat.com>
33588 * Makefile.in (update-sources): New target.
33589 For use by gcc_release script.
33591 2001-12-04 Ed Schonberg <schonber@gnat.com>
33593 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
33594 a configuration pragma, it is now legal wherever a pragma can appear.
33596 2001-12-04 Zack Weinberg <zack@codesourcery.com>
33598 * Makefile.in: Don't set ALL. Delete @cross_defines@,
33599 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
33600 is now @CROSS@ -DIN_GCC; update comment.
33602 2001-12-04 Robert Dewar <dewar@gnat.com>
33604 * einfo.adb (Has_Pragma_Pure_Function): New flag.
33605 Fix problem that stopped ceinfo from working
33607 * einfo.ads (Has_Pragma_Pure_Function): New flag.
33609 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
33611 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
33614 (File_Time_Stamp): New procedure.
33615 (Preserve_Mode): New boolean.
33616 (Write_Unit): Pass time stamp.
33617 Implement -p switch (preserve time stamps).
33619 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
33621 * gnatchop.adb: Do usage info for -p switch
33623 * adaint.h (__gnat_set_file_time_name): New function
33625 * adaint.c (__gnat_set_file_time_name): Implement
33627 * adaint.h: Fix typo
33629 2001-12-03 Robert Dewar <dewar@gnat.com>
33631 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
33632 have Associated_Node.
33634 2001-12-03 Robert Dewar <dewar@gnat.com>
33636 * prj-proc.adb: Minor reformatting
33638 * make.adb: Minor reformatting
33640 2001-12-03 Geert Bosch <bosch@gnat.com>
33642 * make.adb: Minor reformatting.
33644 2001-12-03 Robert Dewar <dewar@gnat.com>
33646 * sem_ch12.adb: Minor reformatting
33648 2001-12-03 Ed Schonberg <schonber@gnat.com>
33650 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
33651 push Standard on the stack before analyzing the instance body,
33652 in order to have a clean visibility environment.
33654 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
33656 2001-12-03 Ed Schonberg <schonber@gnat.com>
33658 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
33659 instantiation of a body that contains an inlined body.
33661 2001-12-03 Ed Schonberg <schonber@gnat.com>
33664 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
33665 to prevent freezing within formal packages.
33666 (Freeze_Subprogram_Body): If body comes from another instance that
33667 appeared before its own body, place freeze node at end of current
33668 declarative part, to prevent a back-end crash.
33669 (Inline_Instance_Body): Handle properly a package instance within
33670 a subprogram instance that is a child unit.
33672 2001-12-01 Graham Stott <grahams@redhat.com>
33674 * Makefile.in (misc.o): Add missing $(srcdir) prefix
33675 and add optabs.h dependency.
33677 * misc.c: Include optabs.h
33678 (gnat_tree_code_type): Make static and const.
33679 (gnat_tree_code_length): Likewise.
33680 (gnat_tree_code_name): Likewise.
33681 (update_setjmp_buf): Obtain operands mode from insn_data.
33683 2001-11-29 Richard Henderson <rth@redhat.com>
33685 * init.c: Remove obsolete dwarf2 frame.h section.
33687 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
33689 * Make-lang.in (ada.generated-manpages): New dummy target.
33691 2001-11-29 Ed Schonberg <schonber@gnat.com>
33693 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
33694 into Command, an array conversion is illegal here. Uncovered by
33697 2001-11-28 Geert Bosch <bosch@gnat.com>
33699 * init.c: Minor whitespace changes.
33701 2001-11-28 Doug Rupp <rupp@gnat.com>
33703 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
33706 2001-11-28 Zack Weinberg <zack@codesourcery.com>
33708 * misc.c (gnat_expand_constant): Move declaration above
33709 definition of lang_hooks.
33710 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
33711 (gnat_init): lang_expand_constant no longer exists.
33713 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
33714 always have vprintf.
33715 (gnat_init): Always call set_internal_error_function.
33717 2001-11-27 Andreas Jaeger <aj@suse.de>
33719 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
33721 2001-11-27 Laurent Guerby <guerby@acm.org>
33723 * Makefile.in: Regenerate Ada dependencies.
33725 2001-11-26 Richard Henderson <rth@redhat.com>
33727 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
33728 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
33729 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
33731 2001-11-25 Laurent Guerby <guerby@acm.org>
33733 * sysdep.c (rts_get_*): Fix style.
33735 2001-11-19 Laurent Guerby <guerby@acm.org>
33737 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
33738 since it is of no apparent use and cause warnings.
33740 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
33742 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
33744 (gnat_init): Don't return NULL.
33745 (finish_parse): Remove.
33747 2001-11-17 Laurent Guerby <guerby@acm.org>
33749 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
33750 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
33751 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
33752 * lang-spec.h: Add missing struct field to silence warnings.
33753 * sysdep.c (rts_get_*): Provide K&R prototype.
33754 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
33755 * traceback.c (Unlock_Task, Lock_Task): Likewise.
33756 * tracebak.c (__gnat_backtrace): Remove unused variable.
33757 * utils.c (end_subprog_body): Move to K&R style.
33759 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33761 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
33763 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
33765 * misc.c (gnat_init): Change prototype. Include the
33766 functionality of the old init_parse and init_decl_processing.
33767 (gnat_init_decl_processing): New prototype.
33768 (init_parse): Remove.
33769 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
33771 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
33773 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
33774 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
33775 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
33776 set_yydebug): Remove.
33778 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
33780 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
33781 (struct lang_hooks): Constify.
33782 (language_string, lang_identify): Remove.
33783 * utils.c (init_decl_processing): Update.
33785 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
33787 * misc.c: Include langhooks-def.h.
33788 * Makefile.in: Update.
33790 2001-10-30 Robert Dewar <dewar@gnat.com>
33793 (Check_Identifier): Rewrite circuit to be compatible with use of letters
33794 in the upper half of ASCII.
33795 (Check_Identifier): Minor reformatting
33797 2001-10-30 Geert Bosch <bosch@gnat.com>
33799 * (Associated_Node, Set_Associated_Node): Do not check for
33802 2001-10-30 Robert Dewar <dewar@gnat.com>
33804 * a-reatim.ads: Minor reformatting
33806 2001-10-30 Robert Dewar <dewar@gnat.com>
33808 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
33809 undocumented declarations.
33811 2001-10-30 Pascal Obry <obry@gnat.com>
33813 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
33814 to the binder and linker.
33817 * mdll.ads: Fix layout. Update copyright notice.
33819 * mdll.adb: Fix layout. Update copyright notice.
33821 2001-10-30 Robert Dewar <dewar@gnat.com>
33823 * usage.adb: Minor fix to output for -gnaty.
33825 2001-10-30 Ed Schonberg <schonber@gnat.com>
33827 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
33828 to accommodate all its possible values.
33830 * a-reatim.adb (Split): Special-case handling of Time_Span_First
33831 and of small absolute values of T.
33833 2001-10-30 Richard Kenner <kenner@gnat.com>
33835 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
33836 set_mem_attributes since not needed and wrong if RESULT if a REG;
33837 fixes ACATS failures.
33839 2001-10-30 Geert Bosch <bosch@gnat.com>
33841 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
33842 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
33844 2001-10-30 Robert Dewar <dewar@gnat.com>
33846 * bindusg.adb: Undocument -f switch.
33848 * gnatcmd.adb: Remove /FULL_ELABORATION.
33850 * opt.ads (Force_RM_Elaboration_Order): Document that this is
33853 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
33855 * gnatbind.adb: Minor update of warning msg.
33857 2001-10-30 Vincent Celier <celier@gnat.com>
33859 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
33860 for project file switches (-P (/PROJECT_FILE=),
33861 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
33864 2001-10-30 Geert Bosch <bosch@gnat.com>
33866 * decl.c: Minor whitespace fixes.
33868 2001-10-30 Richard Kenner <kenner@gnat.com>
33870 * utils2.c (build_allocator): Test for SIZE overflow in array case too
33872 2001-10-30 Geert Bosch <bosch@gnat.com>
33874 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
33875 Found due to GCC 3.0 warning of using uninitialized value.
33878 (Get_Max_Size): Use variant record for tracking value/expression.
33879 Makes logic clearer and prevents warnings for uninitialized variables.
33880 (Layout_Array_Type): Use variant record for tracking value/expression.
33881 Makes logic clearer and prevents warnings for uninitialized variables.
33883 2001-10-30 Robert Dewar <dewar@gnat.com>
33885 * lib.adb: Minor reformatting
33887 * s-taprop.ads: Minor reformatting
33889 2001-10-29 Laurent Guerby <guerby@acm.org>
33892 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
33894 (_gnat_error_handler): Make MSG const.
33896 2001-10-29 Richard Kenner <kenner@gnat.com>
33898 * sysdep.c: Fix localtime_r problem on LynxOS.
33899 Also remove #elif to avoid warnings.
33901 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
33904 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
33906 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
33908 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
33909 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
33910 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
33911 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
33912 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
33913 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
33914 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
33915 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
33916 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
33917 types.ads, urealp.adb: Fix spelling errors.
33919 2001-10-27 Laurent Guerby <guerby@acm.org>
33921 * trans.c (gigi): Fix non determinism leading to bootstrap
33922 comparison failures for debugging information.
33924 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
33926 * gnat_rm.texi: Use @./@: where appropriate.
33928 2001-10-26 Robert Dewar <dewar@gnat.com>
33930 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
33932 2001-10-26 Richard Kenner <kenner@gnat.com>
33934 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
33936 2001-10-26 Richard Kenner <kenner@gnat.com>
33938 * decl.c (validate_size): Modify message for bad size to avoid
33939 implication that compiler is modifying the size.
33941 2001-10-26 Robert Dewar <dewar@gnat.com>
33943 * prj-util.adb: Minor reformatting. Fix bad header format.
33945 2001-10-26 Robert Dewar <dewar@gnat.com>
33947 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
33949 * sinfo.ads: Clarify use of Associated_Node (documentation only).
33951 * sem_ch12.adb: Change Node4 to Associated_Node. Change
33952 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
33953 much more narrowly in places where needed. These are cleanups.
33955 2001-10-26 Joel Brobecker <brobecke@gnat.com>
33957 * 5zosinte.ads (null_pthread): new constant.
33960 (Initialize_TCB): Initialize thread ID to null, to be able to verify
33961 later that this field has been set.
33962 (Finalize_TCB): ditto.
33963 (Suspend_Task): Verify that the thread ID is not null before using it.
33964 (Resume_Task): ditto.
33967 (Resume_All_Tasks): Lock the tasks list before using it.
33968 (Suspend_All_Tasks): ditto.
33970 2001-10-26 Richard Kenner <kenner@gnat.com>
33972 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
33973 Make constant variant of designated type for Is_Access_Constant.
33974 Call update_pointer_to with main variant.
33976 * trans.c (process_freeze_entity, process_type):
33977 Call update_pointer_to on main variant.
33979 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
33980 If main variant, update all other variants.
33982 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
33985 2001-10-26 Robert Dewar <dewar@gnat.com>
33987 * prj-util.adb: Minor reformatting
33989 2001-10-26 Robert Dewar <dewar@gnat.com>
33991 * prj-util.adb: Minor reformatting
33993 2001-10-26 Robert Dewar <dewar@gnat.com>
33995 * prj-attr.adb: Minor reformatting throughout
33997 2001-10-26 Robert Dewar <dewar@gnat.com>
33999 * prj-attr.ads: Minor reformatting
34000 Add ??? comment (this whole spec has almost no comments)
34002 2001-10-26 Vincent Celier <celier@gnat.com>
34004 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
34005 ("//") that precede the drive letter on Interix.
34007 2001-10-26 Geert Bosch <bosch@gnat.com>
34009 * gnat_rm.texi: Add GNAT Reference Manual.
34011 2001-10-25 Robert Dewar <dewar@gnat.com>
34013 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
34014 is Error. Similar change for other renaming cases.
34016 2001-10-25 Robert Dewar <dewar@gnat.com>
34018 * s-atacco.ads: Add pragma Inline_Always for functions.
34019 Fix header format. Add copyright 2001
34021 2001-10-25 Ed Schonberg <schonber@gnat.com>
34023 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
34024 return Error rather than Empty so that analysis can proceed.
34026 2001-10-25 Ed Schonberg <schonber@gnat.com>
34028 * sem_util.adb (Enter_Name): better handling of cascaded error
34029 messages when a unit appears in its own context.
34031 2001-10-25 Ed Schonberg <schonber@gnat.com>
34033 * sem_util.adb (Defining_Entity): in case of error, attach created
34034 entity to specification, so that semantic analysis can proceed.
34036 2001-10-25 Robert Dewar <dewar@gnat.com>
34039 (Defining_Entity): Deal with Error.
34040 (Process_End_Label): Deal with bad end label for.
34042 2001-10-25 Ed Schonberg <schonber@gnat.com>
34044 * sem_elab.adb (Check_A_Call): refine message when call is in an
34045 instance but callee is not declared in the generic unit.
34047 2001-10-25 Ed Schonberg <schonber@gnat.com>
34049 * sem_elab.adb (Check_A_Call): check for renaming before finding the
34050 enclosing unit, which may already be different from the calling unit.
34052 2001-10-25 Geert Bosch <bosch@gnat.com>
34054 * 4gintnam.ads: fix header format.
34056 2001-10-25 Ed Schonberg <schonber@gnat.com>
34058 * sem_res.adb (Resolve_Call): if the call is actually an indexing
34059 operation on the result of a parameterless call, perform elaboration
34060 check after the node has been properly rewritten.
34062 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
34063 inlined within the generic tree, the defining identifier is not a
34066 2001-10-25 Ed Schonberg <schonber@gnat.com>
34068 * sem_res.adb (Resolve): special-case resolution of Null in an
34069 instance or an inlined body to avoid view conflicts.
34071 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
34072 compatibility by retrieving the access type of the generic copy.
34074 2001-10-25 Robert Dewar <dewar@gnat.com>
34077 (Analyze_Number_Declaration): Handle error expression.
34078 (Signed_Integer_Type_Declaration): Handle error bound.
34079 (Analyze_Subtype_Indication): Handle error range.
34081 * sem_util.adb (Get_Index_Bounds): Check for Error.
34083 2001-10-25 Robert Dewar <dewar@gnat.com>
34085 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
34086 in no run time mode.
34088 2001-10-25 Pascal Obry <obry@gnat.com>
34090 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
34091 mode case for ALLOC case.
34093 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
34094 all platforms. Improvement of last change.
34096 2001-10-25 Robert Dewar <dewar@gnat.com>
34098 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
34100 2001-10-25 Geert Bosch <bosch@gnat.com>
34102 * osint.adb (Is_Relative): Remove duplicate.
34104 2001-10-25 Pascal Obry <obry@gnat.com>
34106 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
34107 pathnames in UNIX and DOS style with drive letter.
34108 (Is_Relative): new routine.
34110 * osint.adb: Minor reformatting
34112 * osint.adb (Is_Relative): implementation using
34113 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
34115 2001-10-25 Pascal Obry <obry@gnat.com>
34117 * g-dirope.adb (Basename): correctly compute offset between the
34118 original Path and the translated one.
34120 * g-dirope.adb: (Base_Name): add some comments.
34122 2001-10-25 Robert Dewar <dewar@gnat.com>
34124 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
34125 in HIE mode, avoids compilation abandoned message
34127 * exp_imgv.adb: Correct typo in previous change
34129 * exp_imgv.adb: Correct typo in previous change (not my day!)
34131 2001-10-25 Robert Dewar <dewar@gnat.com>
34133 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
34135 2001-10-25 Pascal Obry <obry@gnat.com>
34137 * g-awk.ads: Move all pragma inlines next to the routine
34138 declarations. This is more uniform with other GNAT spec.
34140 2001-10-22 Geert Bosch <bosch@gnat.com>
34142 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
34144 2001-10-19 Geert Bosch <bosch@gnat.com>
34146 * Makefile.in (tools, gnattools): Remove gnatmem.
34148 2001-10-17 Richard Henderson <rth@redhat.com>
34150 * Makefile.in (misc.o): Depend on langhooks.h.
34151 * misc.c: Include it.
34152 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
34153 (LANG_HOOKS_DECODE_OPTION): New.
34154 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
34156 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
34158 * trans.c (tree_transform): Adjust to recent change in
34159 expand_asm_operands to implement named asm operands.
34161 2001-10-11 Ed Schonberg <schonber@gnat.com>
34163 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
34164 renaming of discriminant for mutable record type.
34166 2001-10-11 Robert Dewar <dewar@gnat.com>
34168 * validsw.adb: Properly save -gnatVn status.
34170 2001-10-11 Robert Dewar <dewar@gnat.com>
34172 * usage.adb: Add lines for V switch.
34174 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
34175 (/VALIDITY_CHECKING).
34177 2001-10-11 Ed Schonberg <schonber@gnat.com>
34179 * sem_type.adb (Add_One_Interp): an operator for a type declared in
34180 an extension of System is known to be visible.
34182 2001-10-11 Ed Schonberg <schonber@gnat.com>
34184 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
34185 properly. Fixes regression on ACATS C34005G.
34187 2001-10-11 Robert Dewar <dewar@gnat.com>
34189 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
34190 loop in generic instance, since this is likely not very useful.
34192 2001-10-11 Robert Dewar <dewar@gnat.com>
34194 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
34195 the error message for high integrity mode.
34197 * rtsfind.adb (RTE): Give message if we try to find an entity that
34198 is not available in high integrity mode.
34201 (OK_To_Use_In_HIE_Mode): New array.
34202 (RTE): May return Empty in high integrity mode.
34204 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
34205 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
34207 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
34208 unit if not inlined always and in no runtime mode. Fixes problem
34209 caused by new Rtsfind changes.
34211 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
34214 * rtsfind.adb (RTE): Make sure we do not try to load unit after
34215 giving message for entity not available in high integrity mode.
34217 2001-10-11 Pascal Obry <obry@gnat.com>
34219 * impunit.adb: Add GNAT.CRC32.
34221 2001-10-11 Ed Schonberg <schonber@gnat.com>
34223 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
34224 properly the case where one universal operand in a non-static
34225 exponentiation of a real literal.
34227 2001-10-11 Ed Schonberg <schonber@gnat.com>
34229 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
34230 clause, return the gobal finalization list, for lack of anthing else.
34232 2001-10-11 Ed Schonberg <schonber@gnat.com>
34234 * exp_ch7.adb (Make_Transient_Block): if statement is within
34235 exception handler, always use new transient scope to place Clean
34238 2001-10-11 Pascal Obry <obry@gnat.com>
34241 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
34242 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
34243 (GNATLS_RTL_OBJS): add g-crc32.o
34244 (GNATMAKE_RTL_OBJS): add g-crc32.o
34247 (CRC_Match): new function.
34248 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
34249 instead of the previous simple checksum algorithm.
34250 (Time_Stamp_Mismatch): use CRC_Match for comparison.
34251 (Set_Source_Table): idem.
34254 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
34255 instead of simple checksum.
34256 (CRC_Match): new function.
34257 (CRC_Error): new constant.
34259 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
34260 a CRC now and not a simple checksum. A CRC uses lower-case hex
34261 letters, fixes ambiguity in parsing.
34263 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
34264 is what this variable will store.
34266 * bcheck.adb: Change reference to chechsum in comments by CRC.
34267 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
34268 rename All_Checksum_Match to All_CRC_Match. Change due to API
34269 renaming since now GNAT does not use a simple checksum but a
34270 CRC using GNAT.CRC32.
34272 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
34273 now and not anymore a simple checksum.
34275 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
34278 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
34281 (Restore_Scan_State): rename Checksum to CRC.
34282 (Save_Scan_State): idem.
34286 (Checksum): rename to CRC.
34287 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
34289 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
34290 GNAT.CRC32). Update copyright notice.
34292 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
34293 GNAT.CRC32). Update copyright notice.
34296 (Accumulate_Checksum): removed.
34297 (Update): new procedure. Add a wide-character into the CRC.
34300 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
34301 (Load_File): fix initialization of S (change Source_Checksum to
34304 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
34305 Source_CRC in S initialization.
34307 * sinput.adb (Source_Checksum): renamed to Source_CRC.
34309 * sinput.ads (Source_Checksum): renamed to Source_CRC.
34310 Update comments for the CRC.
34312 * types.adb (Hex): Use lowercase for the letter part.
34314 * types.ads (Get_Hex_String): Returns the hexadecimal representation
34315 for a word. This is currently used only for CRC. In previous version,
34316 the checksum was using a representation with all letter being
34317 upper-case. With the new implementation (using CRC) we do not remove
34318 the 32th bit of the CRC, so we can have an upper-case starting letter
34319 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
34320 It is ambigous since the CRC was optional and could be followed by
34321 options like EB, EE. So now this routines uses lower-case letter for
34322 the hexadecimal representation. Strange enough only lower case letters
34323 where checked in Scan_ALI (even if this was not a possible case).
34325 * gnatvsn.ads (Library_Version): changed to 3.15a.
34327 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
34330 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
34333 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
34334 Add 2001 to copyright notice
34335 (Accumulate_Checksum): Modify to use System.CRC32.
34337 * ali-util.ads: Redo changes of previous revision to continue to use
34338 the word Checksum. Add 2001 to copyright notice.
34340 * ali.adb: Undo some of previous changes, not needed.
34341 Keep the change for lower case letters in the checksum.
34343 * ali.ads: Undo previous change not needed.
34345 * bcheck.adb: Undo most of previous change, not needed.
34346 But do use Checksums_Match for checksum comparison.
34348 * gnatls.adb: Undo most of previous change, not needed.
34349 But do use Checksums_Match for comparing checksums.
34351 * lib-load.adb: Undo previous change, not needed.
34353 * lib-writ.adb: Undo previous change, not needed.
34355 * lib-writ.ads: Document that checksums use lower case,
34356 not upper case letters.
34358 * scans.adb: Undo previous change, not needed
34360 * scans.ads: Undo previous change, not needed.
34362 * scn-nlit.adb: Undo previous changes, not needed.
34364 * scn-slit.adb: Undo previous change, not needed. Fix header format.
34367 (Accumulate_Checksum): Use System.CRC32.
34368 (Initialize_Checksum): New procedure.
34369 Remove other changes of previous revision.
34371 * sinput-p.adb: Undo previous change, not needed.
34373 * sinput.adb: Undo previous change, not needed.
34375 * sinput-l.adb: Undo previous change, not needed.
34377 * sinput.ads: Undo previous change, not needed. Keep only comment
34378 on new checksum algorithm
34380 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
34381 Also remove a-tags and a-stream from GNAT sources.
34383 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
34385 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
34387 2001-10-11 Geert Bosch <bosch@gnat.com>
34389 * einfo.h: Regenerate.
34391 * nmake.ads: Regenerate.
34393 * nmake.adb: Regenerate.
34395 * sinfo.h: Regenerate.
34397 * treeprs.adb: Regenerate.
34399 2001-10-10 Geert Bosch <bosch@gnat.com>
34401 * gnat-style.texi: New file describing coding guidelines for Ada.
34403 2001-10-10 Ed Schonberg <schonber@gnat.com>
34405 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
34408 2001-10-10 Geert Bosch <bosch@gnat.com>
34410 * snames.ads: Add new names for project facility.
34412 * snames.adb: Update to reflect snames.ads changes.
34414 * snames.h: Update to reflect snames.ads changes.
34416 2001-10-10 Vincent Celier <celier@gnat.com>
34419 (Add_Switches): reflect the changes for the switches attributes
34420 Default_Switches indexed by the programming language,
34421 Switches indexed by the file name.
34422 (Collect_Arguments_And_Compile): Idem.
34423 Reflect the attribute name changes.
34426 (Initialisation_Data): Change the names of some packages and
34428 (Initialize): process case insensitive associative arrays.
34431 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
34434 (Parse_Attribute_Declaration): For case insensitive associative
34435 arrays, set the index string to lower case.
34438 Reflect the changes of the project attributes.
34441 Replace Check_Naming_Scheme by Ada_Check and
34442 Language_Independent_Check.
34445 Replaced Check_Naming_Scheme by 2 procedures:
34446 Ada_Check and Language_Independent_Check.
34449 (Process_Declarative_Items): For case-insensitive associative
34450 arrays, set the index string to lower case.
34451 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
34452 Prj.Nmsc.Check_Naming_Scheme.
34455 (Case_Insensitive): New function
34456 (Set_Case_Insensitive): New procedure
34459 (Case_Insensitive): New function
34460 (Set_Case_Insensitive): New procedure
34461 (Project_Node_Record): New flag Case_Insensitive.
34464 (Value_Of): new function to get the string value of a single
34465 string variable or attribute.
34468 (Value_Of): new function to get the string value of a single
34469 string variable or attribute.
34472 (Ada_Default_Spec_Suffix): New function
34473 (Ada_Default_Impl_Suffix): New function
34474 Change definitions of several constants to reflect
34475 new components of record types.
34478 (Naming_Data): Change several components to reflect new
34479 elements of naming schemes.
34480 (Project_Data): New flags Sources_Present and
34481 Language_Independent_Checked.
34482 (Ada_Default_Spec_Suffix): New function.
34483 (Ada_Default_Impl_Suffix): New function.
34486 Modification of predefined names for project manager: added
34487 Implementation, Specification_Exceptions, Implementation_Exceptions,
34488 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
34489 Default_Switches, _Languages, Builder, Cross_Reference,
34490 Finder. Removed Body_Part, Specification_Append, Body_Append,
34491 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
34494 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34497 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
34498 not that it is Nil_Variable_Value.
34500 * prj.ads: Add ??? for uncommented declarations
34502 2001-10-10 Ed Schonberg <schonber@gnat.com>
34504 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
34505 constant, do not indicate possible modification, so that gigi can
34506 treat it as a bona fide constant.
34508 2001-10-10 Robert Dewar <dewar@gnat.com>
34510 * sem_prag.adb: Add processing for pragma External.
34512 * snames.ads: Add entry for pragma External.
34514 * par-prag.adb: Add pragma External.
34516 * snames.adb: Updated to match snames.ads.
34518 2001-10-10 Ed Schonberg <schonber@gnat.com>
34520 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
34521 a dynamic task if the allocator appears in an indexed assignment
34522 or selected component assignment.
34524 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
34525 For a dynamic task in an assignment statement, use target of
34526 assignment to generate meaningful name.
34528 2001-10-10 Ed Schonberg <schonber@gnat.com>
34530 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
34533 * einfo.ads: Body_Entity is also defined for generic package.
34534 Documentation change only
34536 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
34537 others_choice for a discriminated component initialization,
34538 convert discriminant references into the corresponding discriminals.
34540 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
34541 only if original type is private and expression has to be wrapped
34545 (Apply_Constraint_Check): Do not perform length check
34546 if expression is an aggregate with only an others_choice.
34547 (Length_N_Cond): two references to the same in_parameter
34548 (typically the discriminal in an init_proc) denote the same value.
34549 Two useful optimization uncovered by bugfixes above.
34551 2001-10-10 Robert Dewar <dewar@gnat.com>
34553 * xeinfo.adb: Change int to char in translation of enumeration types.
34554 This fixes a problem in the C representation of component alignment.
34555 Add 2001 to copyright notice
34557 2001-10-10 Richard Kenner <kenner@gnat.com>
34559 * decl.c: (validate_size): Do check size of object of integral type
34560 if it is a packed array type.
34562 2001-10-10 Richard Kenner <kenner@gnat.com>
34564 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
34565 VAR_DECL for constant if not Is_Public but -O0.
34567 2001-10-10 Richard Kenner <kenner@gnat.com>
34569 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
34571 2001-10-10 Geert Bosch <bosch@gnat.com>
34573 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
34574 use '/' as switch character, allowing for absolute file names.
34576 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
34578 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
34581 2001-10-08 Geert Bosch <bosch@gnat.com>
34583 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
34584 Automatically build utilities when files need to be regenerated.
34586 2001-10-08 Geert Bosch <bosch@gnat.com>
34588 * xsnames.adb: New utility for updating snames.ads and snames.adb
34590 2001-10-08 Zack Weinberg <zack@codesourcery.com>
34592 * Make-lang.in (ADAFLAGS): Add -W -Wall.
34593 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
34594 (gnat1): Also depend on attribs.o.
34595 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
34596 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
34597 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
34598 (ADAFLAGS): Add -W -Wall.
34599 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
34602 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
34603 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
34604 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
34605 Use $(ADAC), not $(CC), as compilation command.
34607 (gnattools): Depend directly on tools to build, don't use
34609 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
34611 * einfo.h, sinfo.h: New files (autogenerated).
34613 2001-10-08 Richard Henderson <rth@redhat.com>
34615 * comperr.adb (Abort_In_Progress): New.
34616 (Compiler_Abort): Use it to prevent recursion.
34618 2001-10-08 Robert Dewar <dewar@gnat.com>
34620 * atree.adb: Set Error_Posted in Error node, helps error recovery.
34622 * par-endh.adb (Output_End_Expected): We should also not test
34623 Error_Posted on the Error node, since now it is always set.
34625 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
34626 to help error recovery. Part of general work on 9407-004.
34628 * par.adb: Add ??? for misuse of error
34631 (Resolve): Defend against Error, fixes 9407-003.
34632 (Resolve_Discrete_Subtype_Indication): Defend against Error.
34634 * sinfo.ads (N_Error): Now has Etype field (which will be set
34635 to Any_Type to help error recovery).
34637 2001-10-08 Richard Kenner (kenner@gnat.com)
34639 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
34640 Consistently set MEM attributes from expression; fixes
34641 bootstrap failure on x86.
34643 2001-10-08 Geert Bosch (bosch@gnat.com)
34645 * 5oosinte.adb: Add 2001 to copyright notice.
34647 2001-10-08 Geert Bosch (bosch@gnat.com)
34649 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
34651 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
34653 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
34655 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
34657 2001-10-05 Geert Bosch (bosch@gnat.com)
34659 * adaint.h: Small formatting fix.
34661 2001-10-04 Geert Bosch <bosch@gnat.com>
34663 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
34664 Arg is int, not FILE *, in dummy version of functions.
34666 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
34667 Arg is int, not FILE *.
34669 2001-10-04 Geert Bosch <bosch@gnat.com>
34671 * 3lsoccon.ads: Added file, missed with initial check ins.
34673 * 4lintnam.ads: Fix header format.
34674 Change Linux to GNU/Linux.
34676 * 5iosinte.adb: Change Linux to GNU/Linux.
34678 * 5iosinte.ads: Change Linux to GNU/Linux.
34680 * 5itaprop.adb: Change Linux to GNU/Linux.
34682 * 5itaspri.ads: Change Linux to GNU/Linux.
34683 Update copyright notice.
34685 * 5lintman.adb: Change Linux to GNU/Linux.
34687 * 5lml-tgt.adb: Change Linux to GNU/Linux.
34689 * 5losinte.ads: Change Linux to GNU/Linux.
34691 * 5lsystem.ads: Change Linux to GNU/Linux.
34693 * 5qosinte.adb: Change Linux to GNU/Linux.
34695 * 5qosinte.ads: Change Linux to GNU/Linux.
34697 * 5qparame.ads: Change Linux to GNU/Linux.
34699 * 5qtaprop.adb: Change Linux to GNU/Linux.
34701 * 5qtaspri.ads: Change Linux to GNU/Linux.
34702 Add 2001 to copyright notice.
34704 * 5vintman.ads: Change Linux to GNU/Linux.
34705 Fix header format. Add 2001 to copyright notice.
34707 * g-soccon.ads: Change Linux to GNU/Linux.
34709 * g-trasym.ads: Change Linux to GNU/Linux.
34710 Add 2001 to copyright notice.
34712 * memtrack.adb: Change Linux to GNU/Linux.
34714 * s-intman.ads: Change Linux to GNU/Linux.
34715 Add 2001 to copyright notice. Fix header format.
34717 * s-stache.adb: Change Linux to GNU/Linux.
34719 * adaint.c: Change Linux to GNU/Linux.
34721 * cio.c: Change Linux to GNU/Linux.
34723 * cstreams.c: Change Linux to GNU/Linux.
34725 * init.c: Change Linux to GNU/Linux.
34727 * gmem.c: Change Linux to GNU/Linux.
34729 * tracebak.c: Change Linux to GNU/Linux.
34732 2001-10-02 Geert Bosch <bosch@gnat.com>
34734 * misc.c (insert_default_attributes): Add dummy version.