1 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
3 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
4 Set the protection status of the guard page based on the value of On.
6 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
8 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
9 (Exit_Task): Pass False to Hide_Yellow_Zone.
11 2007-10-15 Robert Dewar <dewar@adacore.com>
13 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
14 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
15 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
16 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
17 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
18 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
19 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
20 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
21 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
22 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
23 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
24 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
25 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
26 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
27 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
28 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
30 Add Unreferenced and Warnings (Off) pragmas for cases of
31 variables modified calls where they are IN OUT or OUT parameters and
32 the resulting values are not subsequently referenced. In a few cases,
33 we also remove redundant code found by the new warnings.
35 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
36 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
37 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
38 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
39 warning controlled by -gnatw.o that warns on cases of out parameter
42 2007-10-15 Geert Bosch <bosch@adacore.com>
44 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
46 * expect.c: Initial port to arm-mentor-nucleus.
47 Use kill for __gnat_kill() on VMS.
49 2007-10-15 Emmanuel Briot <briot@adacore.com>
51 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
53 (Xref_Record): Change type for Line, since in the case of a reference to
54 a predefined entity (as happens for array index types), the line is set
56 Add support for parsing multiple array index types info, or
57 multiple inherited interfaces info. This information cannot be stored
58 in Xref_Entity_Record, which only supports a single instance of Tref_*,
59 and is therefore stored in the list of references instead. It has a
60 special treatement later on in tools that use this information.
62 2007-10-15 Tristan Gingold <gingold@adacore.com>
64 * debug.adb: Document use of -gnatd.a and -gnatd.I
66 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
68 2007-10-15 Javier Miranda <miranda@adacore.com>
70 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
71 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
72 care of access to class-wide interface types plus removal of bizarre
73 conversion of tagged object to access type (reported by Gary
74 Dismukes). After this patch there is no need to perform any
75 additional management on these nodes in Expand_Interface_Actuals.
77 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
78 that handles use of 'Access and 'Unchecked_Access applied to
79 actuals covering interface types. Such code is now
80 centralized in Expand_N_Attribute_Reference.
82 2007-10-15 Ed Schonberg <schonberg@adacore.com>
84 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
85 of tagged types whose ultimate ancestor is a CPP type.
86 (Freeze_Array_Type): For a packed array type, generate an initialization
87 procedure if the type is public, to handle properly a client that
88 specifies Normalize_Scalars.
90 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
92 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
93 inside a generic body, retrieve the full view of the entry family
94 discrete subtype if available.
96 2007-10-15 Thomas Quinot <quinot@adacore.com>
98 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
99 attempt to generate stubs for hidden primitive operations.
101 2007-10-15 Vincent Celier <celier@adacore.com>
103 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
104 returning None, used when there is no platform specific body for
107 2007-10-15 Bob Duff <duff@adacore.com>
109 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
110 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
111 the generic Heap_Sort_G, in order to avoid trampolines.
113 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
114 Jose Ruiz <ruiz@adacore.com>
116 * vx_stack_info.c: New file.
118 * i-forbla-unimplemented.ads: New file.
120 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
121 for unsupported configurations; use it on VMS targets instead of the
123 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
124 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
125 used by VxWorks targets to have access to task-specific data and be
126 able to extract the stack boundaries for stack checking.
127 Use system-vms-ia64.ads on ivms.
129 * Make-lang.in: Update dependencies.
131 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
134 2007-10-15 Vincent Celier <celier@adacore.com>
136 * snames.adb, snames.ads: Add new standard name runtime_library_dir
138 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
140 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
142 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
143 the source is unknown.
145 * prj-ext.adb: Spelling error fix
147 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
148 95 reserved word in its name.
149 (Process_Project_Level_Array_Attributes): Process new attribute
152 * prj-part.adb (Parse_Single_Project): Do not check the name of the
153 config project against the user project names.
155 * prj-proc.adb (Expression): In multi-language mode, indexes that do
156 not include a dot are always case insensitive.
157 (Process_Declarative_Items): Ditto
158 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
161 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
162 True, compare both indexes in lower case.
164 2007-10-15 Robert Dewar <dewar@adacore.com>
166 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
168 2007-10-15 Gary Dismukes <dismukes@adacore.com>
170 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
171 association for an access component, add an association with null as
172 the expression. Remove testing for array subtypes and the setting in
173 that case of Ctyp to the array component type, which prevented proper
174 inclusion of an association for null-initialized arrays. Collapse
175 condition that tests for array subtypes into just a test of
176 Is_Partially_Initialized_Type (which already covers arrays anyway).
178 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
180 * sem_ch12.adb: Minor code reformatting.
181 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
182 find the parent package which may have been hidden by local
185 2007-10-15 Gary Dismukes <dismukes@adacore.com>
187 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
188 flag of derived concurrent types, taking into account the flag setting
189 on the parent subtype and any new set of discriminants.
191 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
193 * sem_ch4.adb: Minor code and comment reformatting.
194 (Analyze_Allocator): When the designated type of an unconstrained
195 allocator is a record with unknown discriminants or an array with
196 unknown range bounds, emit a detailed error message depending on the
197 compilation mode and whether the designated type is limited.
199 2007-10-15 Tristan Gingold <gingold@adacore.com>
201 * system-vms-ia64.ads: New file.
203 * system-vms_64.ads: Minor comment fix.
205 2007-10-15 Ed Schonberg <schonberg@adacore.com>
207 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
208 body generated for a function with a controlling result that is a null
209 extension, discard the generated body in favor of the current explicit
212 2007-10-15 Ed Schonberg <schonberg@adacore.com>
214 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
215 examining its original form, to handle properly operator calls that
218 2007-10-15 Olivier Hainque <hainque@adacore.com>
220 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
221 instead of a procedure value in each traceback entry.
223 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
224 instead of procedure value to TBK$SYMBOLIZE.
226 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
228 (TB_Entry_For): Account for the PV/FP renaming.
230 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
232 (Null_TB_Entry): Account for change of component name.
233 (PV_For): Rename as FP_For.
235 2007-10-15 Tristan Gingold <gingold@adacore.com>
237 * trans.c (gnat_to_gnu): Remove the padding structure more often.
238 This optimize assignment to over-aligned record.
240 2007-10-15 Emmanuel Briot <briot@adacore.com>
242 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
245 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
246 type, for dispatching calls.
248 2007-10-15 Vincent Celier <celier@adacore.com>
249 Robert Dewar <dewar@adacore.com>
251 * gnat_ugn.texi: Add documentation for switches --version and --help
252 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
253 gnatxref, gnatfind, gnatls, and gnatclean.
255 Mention attribute Excluded_Source_Dirs
256 Replace obsolescent attribute Locally_Removed_Files with attribute
257 Excluded_Source_Files.
258 Improve documentation of -u (gnatbind)
259 Document how to do reliable stack checking for the environmental task
262 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
263 Document attribute Excluded_Source_Files and indicate that attribute
264 Locally_Removed_Files is obsolescent.
266 2007-10-15 Thomas Quinot <quinot@adacore.com>
268 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
271 Update documentation to note that OpenVMS 8.3 or later must be used
272 to generate g-soccon-vms.ads.
274 * atree.adb: Add ??? comment
276 * exp_util.adb: Minor reformatting.
277 Add ??? comment in Kill_Dead_Code.
279 2007-10-15 Robert Dewar <dewar@adacore.com>
281 * errout.ads: Comment clarification
283 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
284 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
286 * lib.ads: Comment update
288 * init.c: Minor reformatting.
290 * sem_attr.adb: Minor formatting
292 * osint-b.ads: Minor reformatting
294 * sem_ch9.adb: Implement -gnatd.I switch
296 * g-comlin.adb: (Start): Fix handling of empty command line.
298 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
299 even when -rules follows the -cargs section.
301 2007-10-08 Ollie Wild <aaw@google.com>
303 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
305 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
307 (gnat_eh_runtime_type): Removed.
308 (gnat_return_tree): New function.
310 2007-10-08 Ben Elliston <bje@au.ibm.com>
314 2007-08-31 Ben Elliston <bje@au.ibm.com>
316 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
317 when compiling for powerpc64-*-linux.
318 * system-linux-ppc64.ads: New file.
320 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
322 Mapped location support
323 * back_end.adb (Call_Back_End): Pass information about source
324 files instead of units to gigi.
325 * gigi.h (struct File_Info_Type): New.
326 (gigi): Rename and change type of number_units parameter, change
327 type of file_info_ptr parameter.
328 * trans.c (number_files): New global variable.
329 (gigi): Rename and change type of number_units parameter, change
330 type of file_info_ptr parameter.
331 If mapped location support is enabled, create the isomorphic mapping
332 between source files and line maps.
333 (Sloc_to_locus): If mapped location support is enabled, translate
334 source location into mapped location.
335 (annotate_with_node): Rename into set_expr_location_from_node.
336 Call set_expr_location instead of annotate_with_locus.
337 (Pragma_to_gnu): Adjust for above change.
338 (Loop_Statement_to_gnu): Likewise.
339 (call_to_gnu): Likewise.
340 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
341 (gnat_to_gnu): Likewise.
342 (add_stmt_with_node): Likewise.
343 (add_cleanup): Likewise.
344 * utils.c (gnat_init_decl_processing): Do not set input_line.
346 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
348 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
349 (Applicable_Use): Emit a warning when a package tries to use itself.
350 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
351 is already in use or the package where it is declared is in use or is
352 declared in the current package.
353 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
355 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
356 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
357 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
359 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
361 * a-calend-vms.adb, a-calend.adb:
362 Add a section on leap seconds control along with two entities used to
363 enable and disable leap seconds support. The array Leap_Second_Times is
364 now constant and contains hard time values pre-generated. Remove
365 all elaboration code used to populate the table of leap seconds.
368 Add entity Leap_Seconds_Support to the list of global run-time variables
369 along with a comment on its usage and values.
370 (Gen_Adainit_Ada): Add code to generate the declaration and import of
371 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
372 or one (enabled) depending on the presence of binder switch "-y".
373 (Gen_Adainit_C): Add code to generate the declaration of external int
374 __gl_leap_seconds_support. Set is value to zero (disabled) or one
375 (enabled) depending on the presence of binder switch "-y".
377 * init.c: Add __gl_leap_seconds_support to the list of global values
378 computed by the binder.
380 2007-09-26 Jerome Guitton <guitton@adacore.com>
382 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
383 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
384 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
385 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
387 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
389 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
390 function which can be called by the debugger to interrupt the tasks of
391 an Ada application asynchronously, as needed on VxWorks.
392 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
394 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
395 renamed from Stop_All_Tasks. Update comments.
396 (Stop_All_tasks): New function declaration.
398 2007-09-26 Olivier Hainque <hainque@adacore.com>
400 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
401 #include <utime.h> and #define GCC_RESOURCE_H before
402 #include <sys/wait.h>.
403 Add more protections in __gnat_translate_vms.
405 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
406 #include <sys/wait.h>.
408 2007-09-26 Thomas Quinot <quinot@adacore.com>
409 Sergey Rybin <rybin@adacore.com>
411 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
413 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
416 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
418 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
421 * sem_dist.ads: Minor comment fix
423 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
425 2007-09-26 Javier Miranda <miranda@adacore.com>
426 Eric Botcazou <ebotcazou@adacore.com>
429 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
430 indirection added to the HT_Link component of the TSD. This is required
431 to statically allocate the TSD.
434 Minor reordering of the declarations in the private part. Required to
435 add a level of indirection to the contents of the TSD component HT_Link.
436 This is required to statically allocate the TSD.
438 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
439 Is_Statically_Allocated set from constant objects.
440 Do not make exported constants created by the compiler volatile.
441 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
444 * trans.c (Identifier_to_gnu): For constants, unshare initializers
445 before returning them.
447 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
448 public part of the package.
449 (Make_DT): Move HT_Link component out of the TSD record. For this
450 purpose Make_DT now declares a separate object that stores the
451 HT_Link value, and initializes the TSD component with the address
452 of this new object. The addition of this level of indirection is
453 required to statically allocate the TSD because the TSD cannot
454 have variable components.
455 (Expand_Interface_Conversion): Improve the expanded code.
456 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
458 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
459 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
460 if we are building static dispatch tables then we must not generate
461 extra code to register the primitive because the dispatch table will
462 be built at the end of the library package; otherwise we notify that
463 we cannot build the static dispatch table.
465 2007-09-26 Robert Dewar <dewar@adacore.com>
467 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
470 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
471 (Analyze_Record_Representation_Clause): Suppress junk warning for
472 missing component clause.
473 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
474 tests for controlled type overlay to composites with controlled
476 (Analyze_Record_Representation_Clause): Add reference for component name
478 2007-09-26 Javier Miranda <miranda@adacore.com>
479 Gary Dismukes <dismukes@adacore.com>
481 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
482 for thunks associated with interface types.
484 * einfo.ads: Improve documentatation of Is_Internal
485 (Is_Thunk): New attribute applicable to subprograms. True for thunks
486 associated with interface types.
487 Extensive comment fixes regarding flags that appear in all entities. The
488 documentation is now consistent for all such flags (there were a number
489 of errors in the documentation in this regard).
491 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
493 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
494 of these procedures are passed a function call that already has
495 build-in-place actuals (testing new flag
496 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
497 the case where processing continues.
498 (Expand_Call): If the call is generated from a thunk body then we
499 propagate the extra actuals associated with the accessibility
500 level of the access type actuals.
502 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
503 of each extra formal of a protected operation to reference the
504 corresponding extra formal of the subprogram denoted by the
505 operation's Protected_Body_Subprogram.
507 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
508 N_Function_Call nodes.
510 2007-09-26 Robert Dewar <dewar@adacore.com>
512 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
514 * debug.adb: Add d.s flag.
516 2007-09-26 Gary Dismukes <dismukes@adacore.com>
518 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
519 debug variable so that it won't be initialized when pragma
520 Initialize_Scalars is in effect.
522 2007-09-26 Gary Dismukes <dismukes@adacore.com>
524 * freeze.adb (Freeze_Entity): Remove check for preelaborable
525 initialization of a full view. This is moved to
526 Analyze_Package_Specification.
528 * sem_ch7.adb (Analyze_Package_Specification): Add check for
529 preelaborable initialization of a full view in entity loop.
530 (Uninstall_Declarations): If entity is a use-visible compilation unit,
531 its child units are use-visible only if they are visible child units.
533 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
534 whether an expression can be used within a type declaration that
535 requires preelaborable init.
536 (Check_Components): Replace inline code that does partial checking for
537 preelaborable default expressions with call to
538 Is_Preelaborable_Expression.
539 (Has_Preelaborable_Initialization): In the case of a generic actual
540 subtype, (that is, Is_Generic_Actual is True), return the result of
541 applying Has_Preelaborable_Initialization to the generic actual's base
544 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
546 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
547 call to Jan_1_Day _Of_Week to optimize its performance.
548 (Is_Leap): Move the routine to the scope of Week_In_Year.
549 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
550 weekday on which January 1 falls of Year - 1 and Year + 1. This function
551 avoids calling Time_Of and Split, thus making it more efficent.
552 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
554 * g-calend.ads (Week_In_Year): Change comment to reflect new
557 2007-09-26 Emmanuel Briot <briot@adacore.com>
559 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
560 Command_Line): New types
561 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
562 support for defining how switches can be grouped on a command line (as
563 is the case for -gnatw... for GNAT), and how simple switches can be
564 used as aliases for more complex switches (-gnatwa is same as
566 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
567 (Start, Current_*): New subprograms
568 Added support for parsing an array of strings in addition to the real
570 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
571 be moved from the body to the private part of the spec.
572 (*): All subprograms now have an extra parameter with default value to
573 specify which parser should be used. For backward compatibility, it
574 defaults to parsing the command line of the application. They were also
575 modified to properly handle cases where each of the argument does not
576 start at index 1 (which is always true for Ada.Command_Line, but not
577 when processing any Argument_List).
578 (Free): New subprogram
579 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
580 Argument): New subprograms
581 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
582 special characters like ':', '=',... are now handled in a single place,
583 which makes the code more extensible eventually.
584 (Getopt, Full_Switch): When the switch was returned as part of the
585 special character '*', make sure it is prepended by the switch character
586 ('-' in general), so that the application knows whether "foo" or "-foo"
587 was specified on the command line.
589 2007-09-26 Florian Villoing <villoing@adacore.com>
591 * g-dirope.adb (Remove_Dir): In case we are removing directories
592 recursively, make sure that if an exception is raised during the
593 processing, the current working directory is reset to its initial
594 value before propagating the exception.
596 2007-09-26 Vincent Celier <celier@adacore.com>
598 * gnatbind.adb: If there are several ALI files specified and there is
599 a main program to bind, the first ALI is expected to contain the main
600 subprogram and the names of the binder generated files will be derived
601 from the first ALI file name.
602 (Gnatbind): Fix insertion character in invocation of Error_Msg
604 2007-09-26 Vincent Celier <celier@adacore.com>
606 * gnatcmd.adb (Check_Files): Do not include sources that have been
607 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
609 2007-09-26 Ed Schonberg <schonberg@adacore.com>
611 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
612 information about each of its index types, following the type
613 reference for its component type.
615 2007-09-26 Vincent Celier <celier@adacore.com>
617 * make.adb: (Kill): New procedure (__gnat_kill imported)
618 (Running_Compile, Outstanding_Compiles): Global variables that
619 were previously local to procedure Compile_Sources.
620 (Sigint_Intercepted): Send signal SIGINT to all outstanding
621 compilation processes.
623 (Gnatmake): If project files are used, create the mapping of all the
624 sources, so that the correct paths will be found.
626 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
628 2007-09-26 Vincent Celier <celier@adacore.com>
630 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
632 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
633 Replace components Compiler_Min_Options and Binder_Min_Options with
634 Compiler_Required_Switches and Binder_Required_Switches in record
636 Remove components Default_Language and Config in Project_Tree_Data,
639 * prj-attr.adb: New attributes Required_Switches (<language>) in
640 packages Compiler and Binder.
642 * prj-nmsc.adb: Major rewrite of the processing of configuration
643 attributes for gprbuild. No impact on GNAT tools.
645 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
646 process configuration attributes: this is done in Prj.Nmsc.Check.
647 (Recursive_Process): Make a full copy of packages inherited from project
648 being extended, instead of a shallow copy.
649 (Process_Project_Tree_Phase_1): New procedure
650 (Process_Project_Tree_Phase_1): New procedure
651 (Process): Implementation now uses the two new procedures
653 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
654 from the project config, not the tree config that no longer exists.
656 2007-09-26 Vincent Celier <celier@adacore.com>
658 * Make-lang.in: Update dependencies..
660 2007-09-26 Vincent Celier <celier@adacore.com>
662 * osint.adb, osint.ads: Minor reformatting
664 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
666 2007-09-26 Gary Dismukes <dismukes@adacore.com>
668 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
669 message to cite use of <> in aggregate component associations rather
670 than wrongly indicating use of limited aggregates.
672 2007-09-26 Robert Dewar <dewar@adacore.com>
674 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
677 2007-09-26 Ed Schonberg <schonberg@adacore.com>
679 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
680 ancestor of the derived type, the operations are inherited from the
681 primary dispatch table of the parent.
682 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
683 when the context is an explicit type conversion.
685 2007-09-26 Ed Schonberg <schonberg@adacore.com>
687 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
688 rule for qualified expressions properly, to detect improper conversions
689 and resolve some cases of overloading.
691 2007-09-26 Ed Schonberg <schonberg@adacore.com>
693 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
694 proper kind of reference to the primitive operation, for better source
696 (Valid_Conversion): A tagged conversion is legal if both operands are
699 2007-09-26 Robert Dewar <dewar@adacore.com>
701 * sem_warn.adb (Check_References): Catch more cases of unreferenced
704 2007-09-26 Vincent Celier <celier@adacore.com>
706 * snames.adb, snames.ads: Change Include_Option to Include_Switches
708 2007-09-26 Robert Dewar <dewar@adacore.com>
710 * s-wchstw.adb: provide messages for run time unit exceptions
712 * a-witeio.adb: Minor reformatting
714 * exp_ch13.adb: Minor reformatting
716 2007-09-26 Sergey Rybin <rybin@adacore.com>
718 * vms_data.ads: Revise gnatmetric qualifiers.
719 Add qualified for the new gnatbind option '-y'
721 * gnat_ugn.texi: Revise the gnatmetric section.
722 Add entry for new gnatbind option '-y'.
724 * gnat_rm.texi: Minor spelling correction.
725 Document restriction on overlaying controlled types
727 2007-09-26 Vincent Celier <celier@adacore.com>
729 * makegpr.adb (Link_Executables): Do not fail when the root project has
730 no sources, but is an extending project.
732 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
734 * trans.c: Fix misplaced #define.
736 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
738 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
739 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
741 2007-09-21 Olivier Hainque <hainque@adacore.com>
743 * utils.c (type_for_nonaliased_component_p): Return false for
746 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
748 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
749 object covered by 13.3(19) volatile.
751 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
755 * utils.c (unchecked_convert): Use a subtype as the intermediate type
756 in the special VIEW_CONVERT_EXPR case.
758 2007-09-12 Robert Dewar <dewar@adacore.com>
760 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
762 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
763 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
764 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
765 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
766 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
767 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
768 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
769 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
770 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
771 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
772 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
773 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
774 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
775 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
776 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
777 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
778 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
779 pragma Compiler_Unit and adds it to relevant library units.
781 2007-09-12 Ed Schonberg <schonberg@adacore.com>
783 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
784 a box need not correspond to any component.
786 2007-09-12 Robert Dewar <dewar@adacore.com>
788 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
789 the tasking version of the Ada run time when foreign threads are
790 present and there are no explicit Ada tasks or tasking constructs.
792 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
794 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
796 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
797 the usage of switch -y.
799 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
800 when switch -y is present.
802 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
803 leap seconds in Ada.Calendar and its children.
805 2007-09-12 Jose Ruiz <ruiz@adacore.com>
807 * a-extiti.ads (Timer): The discriminant is a "not null access
808 constant" in the Reference Manual.
809 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
811 2007-09-12 Robert Dewar <dewar@adacore.com>
813 * a-swuwha.adb: Remove junk RM header
815 2007-09-12 Vincent Celier <celier@adacore.com>
817 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
820 * g-bytswa.ads: Minor reformatting
822 2007-09-12 Thomas Quinot <quinot@adacore.com>
824 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
825 Add new constant Thread_Blocking_IO, always True by default, set False
826 on a per-runtime basis.
827 (Need_Netdb_Buffer): New constant.
829 2007-09-12 Arnaud Charlet <charlet@adacore.com>
831 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
832 Added renames for corresponding functions in System.Partition_Interface.
834 2007-09-12 Doug Rupp <rupp@adacore.com>
836 * Makefile.in: Remove VMS specific System.CRTL packages which are no
839 * s-crtl-vms64.ads: Removed.
841 2007-09-12 Olivier Hainque <hainque@adacore.com>
843 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
844 with discriminant constraints, generalize the code for BIT_FIELDs
845 to PACKED fields of constant size and propagate DECL_PACKED.
847 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
849 * decl.c (array_type_has_nonaliased_component): New predicate.
850 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
851 set the TYPE_NONALIASED_COMPONENT flag on the type.
852 <E_Array_Subtype>: Likewise.
853 * gigi.h (type_for_nonaliased_component_p): Declare.
854 * utils.c (type_for_nonaliased_component_p): New predicate.
855 (create_field_decl): Invoke the above predicate to set the
856 DECL_NONADDRESSABLE_P flag on the field.
858 2007-09-11 Javier Miranda <miranda@adacore.com>
860 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
861 in library level record type entities if we are generating statically
862 allocated dispatch tables.
864 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
865 importing/exporting the _tag declaration by new code
866 importing/exporting the dispatch table wrapper. This change allows us
867 to statically allocate of the TSD.
868 (Make_DT.Export_DT): New procedure.
869 (Build_Static_DT): New function.
870 (Has_DT): New function.
872 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
873 True_Constant and Current_Value. Required to statically
874 allocate the dispatch tables.
875 (Check_Allocator): Make function iterative instead of recursive.
876 Also return inner allocator node, when present, so that we do not have
877 to look for that node again in the caller.
879 2007-09-11 Jan Hubicka <jh@suse.cz>
881 * misc.c (gnat_expand_body): Kill.
882 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
884 2007-09-10 Robert Dewar <dewar@adacore.com>
886 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
887 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
888 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
889 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
890 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
891 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
892 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
893 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
894 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
895 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
896 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
897 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
898 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
899 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
900 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
901 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
902 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
903 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
904 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
905 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
906 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
907 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
908 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
909 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
910 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
911 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
912 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
913 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
914 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
915 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
916 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
917 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
918 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
919 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
920 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
921 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
922 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
923 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
924 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
925 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
926 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
927 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
928 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
929 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
930 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
931 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
932 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
933 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
934 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
935 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
936 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
937 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
938 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
939 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
940 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
941 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
942 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
943 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
944 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
945 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
946 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
947 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
948 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
949 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
950 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
951 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
952 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
953 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
954 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
955 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
956 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
957 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
958 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
959 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
960 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
961 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
962 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
963 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
964 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
965 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
966 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
967 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
968 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
970 2007-09-10 Emmanuel Briot <briot@adacore.com>
972 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
975 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
977 * adaint.c (__gnat_translate_vms): new function.
979 2007-09-10 Gary Dismukes <dismukes@adacore.com>
980 Thomas Quinot <quinot@adacore.com>
982 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
983 create an abstract subprogram in the case of 'Input. For 'Output we now
984 create a real spec/body when the type is abstract, since it can
985 potentially be called.
986 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
987 body for 'Output when the type is abstract (only the creation of the
988 body for 'Input is excluded when the type is abstract).
989 (Stream_Operation_OK): Add an additional condition in the return
990 statement, so that False will be returned for TTS_Stream_Input if the
991 associated tagged type is an abstract extension. Add comments for
993 (Expand_N_Object_Declaration): For the case of a shared passive
994 variable, insert init proc call only after the shared variable
995 procedures have been processed, because the IP call needs to undergo
996 shared passive variable reference expansion, which requires these
997 procedures to be available (and elaborated).
999 2007-09-10 Vincent Celier <celier@adacore.com>
1001 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
1002 parameter Runtime_Project.
1004 2007-09-10 Ed Schonberg <schonberg@adacore.com>
1006 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
1007 given a box association, the type of the component is discriminated,
1008 and the value of the discriminant is the discriminant of the enclosing
1009 type, retrieve its value from the aggregate itself, where it must have
1012 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
1013 to remove other spurious ambiguities on arithmetic operations involving
1014 literals and addresses, on systems where Address is a visible integer
1015 type, when the operator is called in functional notation.
1016 (Try_Primitive_Operation): Within an instance, a call in prefixed form
1017 is legal when the types match, even if the operation is currently
1020 2007-09-10 Ed Schonberg <schonberg@adacore.com>
1022 * sem_ch12.adb (Build_Local_Package): A formal package with no
1023 associations is legal if all formals have defaults. It is not
1024 equivalent to a formal declared with a box.
1026 2007-09-10 Sergey Rybin <rybin@adacore.com>
1028 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
1030 2007-09-10 Sergey Rybin <rybin@adacore.com>
1032 * gnat_ugn.texi: Add description of the new '-lratio' option
1033 Update 7.3.1 section about availability of the feature.
1035 2007-09-10 Thomas Quinot <quinot@adacore.com>
1037 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
1040 2007-09-10 Olivier Hainque <hainque@adacore.com>
1042 * Makefile.in: (mips-irix section): Activate build of libgmem.
1044 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
1046 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
1049 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
1051 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
1052 a debug renaming declaration specially.
1054 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
1056 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
1057 which a constant renaming is treated as a normal object declaration.
1058 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
1059 the N_Indexed_Component case.
1060 <N_Indexed_Component>: Fall through to above case.
1061 <N_Object_Renaming_Declaration>: Return true for all composite types.
1063 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
1065 * decl.c (make_packable_type): If the new type has been given BLKmode,
1066 try again to get an integral mode for it.
1068 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
1070 Re-apply accidentally reverted change:
1072 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
1074 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
1075 get_action_description_for): Replace _Unwind_Word with _uleb128_t
1076 and _Unwind_SWord with _sleb128_t.
1078 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
1080 * trans.c (convert_with_check): Update call to real_2expN.
1082 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
1084 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
1085 * utils.c (end_subprog_body): Likewise.
1087 2007-09-03 Nick Clifton <nickc@redhat.com>
1089 * Make-lang.in: Change copyright header to refer to version 3 of
1090 the GNU General Public License and to point readers at the
1091 COPYING3 file and the FSF's license web page.
1092 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
1093 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
1094 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
1095 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
1098 2007-08-31 Vincent Celier <celier@adacore.com>
1102 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
1103 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
1104 (Check_Version_And_Help): New procedure in package Switch to process
1105 switches --version and --help.
1106 Use Check_Version_And_Help in GNAT tools
1109 (Compile_Sources): Make sure that sources that are "excluded" are not
1111 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
1112 project file is used.
1113 (Version_Switch): Remove, moved to Switch
1114 (Help_Switch): Remove, moved to Switch
1115 (Display_Version): Remove, moved to Switch
1117 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
1118 package Switch to process switches --version and --help.
1119 (Display_Version): New procedure
1121 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
1123 2007-08-31 Javier Miranda <miranda@adacore.com>
1125 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
1128 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1130 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
1131 (Mark_Non_Null): If the node for which we just generated an access check
1132 is a reference to an *in* parameter and the reference appears in the
1133 declarative part of a subprogram body, mark the node as known non null.
1135 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1137 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
1138 structure of E_Exception to reflect the new flag.
1139 (Is_Raised, Set_Is_Raised): New inlined routines.
1140 Update the usage of available flag to reflect the addition of Is_Raised.
1141 (Is_Raised, Set_Is_Raised): Bodies of new routines.
1142 (Write_Entity_Flags): Write the status of flag Is_Raised.
1143 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
1144 spurious ambiguities when integer literals appear in the context of an
1145 address type that is a visible integer type.
1147 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
1148 exceptions never being raised.
1149 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
1152 2007-08-31 Javier Miranda <miranda@adacore.com>
1154 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
1155 statement when compiling under restriction No_Exceptions_Proparation.
1157 2007-08-31 Ed Schonberg <schonberg@adacore.com>
1159 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
1160 initialization aggregate for the type, generate itype references for
1161 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
1163 2007-08-31 Gary Dismukes <dismukes@adacore.com>
1165 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
1166 library-level package renaming, pass the declaration associated with
1167 the renaming's special debug variable to Qualify_Entity_Names to ensure
1168 that its encoded name is properly qualified.
1170 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
1171 occurring in the list of entities to qualify, and do not attempt to
1172 traverse an entity list in that case. Variables associated with
1173 ` library-level package renamings can now occur in the table.
1175 * exp_dbug.ads: Revise documentation of the encoding for renaming
1178 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1180 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
1181 access type points to an unconstrained array.
1183 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
1185 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
1188 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
1189 simple redundant qualifications. The check is performed whenever the
1190 expression is a non-overloaded identifier.
1191 (Resolve_Type_Conversion): Enchance the redundant type conversion check
1192 to include loop parameters.
1193 (Valid_Conversion): Avoid generation of spurious error message.
1195 2007-08-31 Bob Duff <duff@adacore.com>
1197 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
1198 concatenations of string literals into a single literal, in order to
1199 avoid very deep recursion in the front end, which was causing stack
1202 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
1203 string, and the right operand is a string literal (the case of "" &
1204 "..."), optimize by avoiding copying the right operand -- just use the
1205 value of the right operand directly.
1207 * stringt.adb (Store_String_Chars): Optimize by growing the
1208 String_Chars table all at once, rather than appending characters one by
1210 (Write_String_Table_Entry): If the string to be printed is very long,
1211 just print the first few characters, followed by the length. Otherwise,
1212 doing "pn(n)" in the debugger can take an extremely long time.
1214 * sem_prag.adb (Process_Interface_Name): Replace loop doing
1215 Store_String_Char with Store_String_Chars.
1217 2007-08-31 Vincent Celier <celier@adacore.com>
1219 * prj-attr.adb: Add new attribute Excluded_Source_Files
1221 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
1222 Locally_Removed_Files.
1224 * snames.ads, snames.adb: New standard name Excluded_Source_Files
1226 2007-08-31 Ed Schonberg <schonberg@adacore.com>
1228 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
1229 clauses of subunits, ignore limited_with_clauses that are illegal and
1230 have not been fully analyzed.
1232 2007-08-31 Ed Schonberg <schonberg@adacore.com>
1234 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
1235 flag, for effiency. It is called when analyzing arithmetic operators
1236 and also for actuals in calls that are universal_integers. The flag is
1237 set for the predefined type address, and for any type or subtype
1240 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
1241 Universal_Integer, when the formal is a descendent of address and the
1242 call appears in user code.
1243 (Analyze_Selected_Component): if the prefix is a private extension, the
1244 tag component is visible.
1246 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
1249 2007-08-31 Robert Dewar <dewar@adacore.com>
1251 * s-fileio.adb (Open): Normalize file name to lower case in non-case
1252 sensitive file name systems to avoid unexpected mismatch in Vista.
1254 2007-08-31 Vincent Celier <celier@adacore.com>
1256 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
1258 2007-08-31 Vincent Celier <celier@adacore.com>
1260 * symbols-vms.adb (Initialize): Read symbol files with continuation
1262 (Finalize): If symbol is long, split the line
1264 2007-08-31 Vincent Celier <celier@adacore.com>
1266 * fmap.ads: Minor comment updates
1268 2007-08-31 GNAT Script <nobody@adacore.com>
1270 * Make-lang.in: Makefile automatically updated
1272 2007-08-31 Bob Duff <duff@adacore.com>
1274 * sinfo.ads: Minor comment fix.
1276 2007-08-31 Thomas Quinot <quinot@adacore.com>
1278 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
1279 with implementation.
1280 Documentation cleanup only.
1282 2007-08-31 Sergey Rybin <rybin@adacore.com>
1284 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
1285 gnatpp '--separate-stmt-name' option.
1286 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
1289 * gnat_ugn.texi: Add description for the new gnatpp
1290 '--separate-stmt-name' and '--use-on-new-line' options.
1292 2007-08-31 Ben Elliston <bje@au.ibm.com>
1294 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
1295 when compiling for powerpc64-*-linux.
1296 * system-linux-ppc64.ads: New file.
1298 2007-08-22 Krister Walfridsson <cato@df.lth.se>
1300 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
1303 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1305 * misc.c (gnat_type_max_size): Constify.
1307 2007-08-16 Gary Dismukes <dismukes@adacore.com>
1309 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
1310 associated with Standard_Debug_Renaming_Type, to be used as the type of
1311 the special variables whose names provide debugger encodings for
1312 renaming declarations.
1314 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
1315 (Set_Debug_Renaming_Link): Change to set Node25.
1316 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
1317 (Write_Field25_Name): Add case for E_Variable to output
1318 "Debug_Renaming_Link".
1319 (Write_Field23_Name): Correct the output string for "Limited_View".
1321 * exp_dbug.adb: Add with and use of Tbuild.
1322 (Debug_Renaming_Declaration): Replace creation of an enumeration type
1323 and literal with creation of a variable of type
1324 Standard_Debug_Renaming_Type whose name encodes both the renamed object
1325 and the entity of the renaming declaration.
1326 (Qualify_Entity_Name): Add the delayed qualification of the entity name
1327 part of the name of a variable that has a Debug_Renaming_Link.
1329 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
1330 special type to be associated with variables that provide debugger
1331 encodings for renaming declarations.
1333 2007-08-16 Gary Dismukes <dismukes@adacore.com>
1334 Ed Schonberg <schonberg@adacore.com>
1335 Javier Miranda <miranda@adacore.com>
1337 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
1338 ancestor part given by an aggregate to test for an unchecked conversion,
1339 since this can occur in some cases when the ancestor part is a function
1340 call, and we don't want to fall into the recursive call to this
1341 procedure in that case.
1343 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
1344 stream attributes on limited types to account for user-specified
1345 attributes as well as whether Input (resp. Output) becomes available
1346 due to Read (resp. Write) being available for the type. Change Boolean
1347 variable to the more accurate name
1348 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
1349 double-"not" predicate at beginning of return statement to more
1350 understandable form.
1352 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
1353 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
1354 in a block statement and use that as the first statement of the
1355 expanded return rather than incorrectly using the handled sequence as
1356 the first statement.
1358 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
1359 operation, generate an explicit freeze node for it rather than
1360 generating extra formals, to ensure that gigi has the proper order of
1361 elaboration for anonymous subtypes in the signature of the subprograms.
1362 (Build_In_Place_Formal): Move assertion to beginning of loop.
1363 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
1364 applied to a function call (occurs for some cases of 'Input).
1365 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
1366 applied to a function call (occurs for some cases of 'Input).
1368 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
1369 2005, generate an extended return statement enclosing the result object
1372 * freeze.adb (Freeze_Record_Type): Extend the current management of
1373 components that are access type with an allocator as default value: add
1374 missing support to the use of qualified expressions of the
1375 allocator (which also cause freezing of the designated type!)
1376 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
1377 dispatching operation, since extra formals may be needed by calls to
1378 build-in-place functions (such as stream 'Input).
1380 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
1381 formals for 'Constrained and accessibility level in the case of a
1382 predefined dispatching operation.
1384 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
1385 point, no need to find the parent node.
1387 2007-08-16 Javier Miranda <miranda@adacore.com>
1389 * exp_attr.adb (Attribute_Priority): Add missing support for entries
1392 2007-08-16 Javier Miranda <miranda@adacore.com>
1394 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
1395 is not really required and can introduce regression with the debugger.
1396 The original problem is fixed with the patch written for checks.adb.
1398 2007-08-16 Thomas Quinot <quinot@adacore.com>
1400 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
1401 Range_Check on Allocated_Table.
1403 2007-08-16 Vincent Celier <celier@adacore.com>
1405 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
1406 Including_Non_Switch set to False.
1407 (Gnatmake): For the compiler, call Test_If_Relative_Path with
1408 Including_Non_Switch set to False.
1410 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
1411 parameter Including_Non_Switch, defaulted to True. When
1412 Including_Non_Switch is False, options that are not switches and
1413 appear as relative path are not converted to absolute paths.
1415 2007-08-16 Nicolas Roche <roche@adacore.com>
1417 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
1420 * Make-lang.in: Update dependencies
1422 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
1424 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
1425 currently inspected is a selected component, retrieve the entity of
1427 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
1428 from the immediate ancestor of Main_Unit_Entity.
1429 (Install_Limited_Withed_Unit): Do not install the limited view of
1430 package P if P is reachable through an ancestor chain from package C
1431 and C also has a with clause for P in its body.
1432 (Has_Limited_With_Clause): New routine.
1433 (Has_With_Clause): New routine.
1435 2007-08-16 Ed Schonberg <schonberg@adacore.com>
1437 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
1438 generic for an enclosing instance is a global reference, even though
1439 its scope is the enclosing instance.
1441 2007-08-16 Gary Dismukes <dismukes@adacore.com>
1442 Javier Miranda <miranda@adacore.com>
1444 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
1445 initialize a limited object.
1446 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
1448 Make sure Has_Complex_Representation is inherited by derived type.
1450 2007-08-16 Robert Dewar <dewar@adacore.com>
1452 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
1455 2007-08-16 Ed Schonberg <schonberg@adacore.com>
1457 * sem_disp.adb (Check_Dispatching_Operation): If the operation
1458 implements an operation inherited from a progenitor interface, verify
1459 that they are subtype-conformant.
1461 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
1462 Bob Duff <duff@adacore.com>
1463 Nicolas Setton <setton@adacore.com>
1465 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
1466 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
1467 the statement which is being resolved comes from a predefined library
1468 unit, all non-predefined library interpretations are skipped.
1469 (Resolve_Op_Concat): If string concatenation was folded in the parser,
1470 but the "&" is user defined, give an error, because the folding would
1473 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
1474 the parser has folded a long sequence of concatenations of string
1477 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
1478 and "JMP_BUF" variables as artificial.
1479 (N_String_Literal): Do not use alloca for very long string literals. Use
1480 xmalloc/free instead. Otherwise the stack might overflow.
1482 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
1485 2007-08-16 Vincent Celier <celier@adacore.com>
1487 * vms_conv.adb (Process_Argument): Ensure that project related options
1488 are not put in the -cargs section when using GNAT COMPILE.
1490 2007-08-16 Robert Dewar <dewar@adacore.com>
1492 * gnat_ugn.texi: Add note on preprocessing (output file not written)
1494 2007-08-16 Thomas Quinot <quinot@adacore.com>
1496 * a-tags.adb: Minor reformatting.
1498 2007-08-16 Bob Duff <duff@adacore.com>
1500 * sem_type.ads, sem_ch4.adb: Minor reformatting.
1502 2007-08-14 Thomas Quinot <quinot@adacore.com>
1504 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
1505 s-osinte-interix.ads, system-interix.ads: Removed.
1507 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
1509 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
1510 calls to Check_Within_Time_Bounds.
1511 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
1512 (Difference): Account for possible rounding of the resulting difference
1514 2007-08-14 Robert Dewar <dewar@adacore.com>
1516 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
1517 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
1518 s-osinte-solaris.adb, s-osinte-solaris.ads,
1519 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
1521 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
1522 switch -gnatyS. Enable -gnatyS in GNAT style check mode
1524 2007-08-14 Robert Dewar <dewar@adacore.com>
1525 Ed Schonberg <schonberg@adacore.com>
1527 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
1528 Suppress unmodified in-out parameter warning in some cases
1529 This patch is a also fairly significant change to the way suppressible
1532 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
1533 needed for access to concurrent record types generated by the expander.
1534 (Generate_Range_Check): When generating a temporary to capture the
1535 value of a conversion that requires a range check, set the type of the
1536 temporary before rewriting the node, so that the type is always
1537 properly placed for back-end use.
1538 (Apply_Float_Conversion_Check): Handle case where the conversion is
1540 (Get_Discriminal): Code reformatting. Climb the scope stack looking
1541 for a protected type in order to examine its discriminants.
1543 2007-08-14 Robert Dewar <dewar@adacore.com>
1544 Gary Dismukes <dismukes@adacore.com>
1545 Ed Schonberg <schonberg@adacore.com>
1546 Thomas Quinot <quinot@adacore.com>
1548 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
1549 a-stwisu.adb, a-strsup.adb: Fix warnings for range
1550 tests optimized out.
1552 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
1553 (Get_Allocator_Final_List): For the case of an anonymous access type
1554 that has a specified Associated_Final_Chain, do not go up to the
1556 (Expand_N_Type_Conversion): Test for the case of renamings of access
1557 parameters when deciding whether to apply a run-time accessibility
1559 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
1560 aggregate code before allocator, and ahead of declaration for
1561 temporary, to prevent access before elaboration when the allocator is
1562 an actual for an access parameter.
1563 (Expand_N_Type_Conversion): On an access type conversion involving an
1564 access parameter, do not apply an accessibility check when the
1565 operand's original node was an attribute other than 'Access. We now
1566 create access conversions for the expansion of 'Unchecked_Access and
1567 'Unrestricted_Access in certain cases and clearly accessibility should
1568 not be checked for those.
1570 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
1571 includes a type conversion of a packed component that has been expanded,
1572 recover the original expression for the object, and use this expression
1573 in the post-call assignment statement, so that the assignment is made
1574 to the object and not to a back-end temporary.
1575 (Freeze_Subprogram): In case of primitives of tagged types not defined
1576 at the library level force generation of code to register the primitive
1577 in the dispatch table. In addition some code reorganization has been
1578 done to leave the implementation clear.
1579 (Expand_Call): When expanding an inherited implicit conversion,
1580 preserve the type of the inherited function after the intrinsic
1581 operation has been expanded.
1583 * exp_ch2.ads, exp_ch2.adb
1584 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
1585 of an entry formal appearing in an assignment statement does not assign
1587 (Expand_Current_Value): Instead of calling a routine to determine
1588 whether the prefix of an attribute reference should be optimized or
1589 not, prevent the optimization of such prefixes all together.
1591 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
1592 component whose prefix is known to be of an access type is an implicit
1593 dereference and does not assign to the prefix.
1595 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1596 Robert Dewar <dewar@adacore.com>
1598 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
1599 itype is visited, make an entry into table to link associated node and
1601 Add comments and correct harmless error in Build_NCT_Hash_Tables
1602 (Array_Aggr_Subtype): Associate each itype created for an index type to
1603 the corresponding range construct, and not to the aggregate itself. to
1604 maintain a one-to-one correspondence between itype and its associated
1605 node, to prevent errors when complex expression is copied.
1606 Fix mishandling of multiple levels of parens
1608 * sem_aggr.adb: Create a limited view of an incomplete type, to make
1609 treatment of limited views uniform for all visible declarations in a
1610 limited_withed package.
1611 (New_Copy_Tree): If hash table is being used and itype is visited,
1612 make an entry into table to link associated node and new itype.
1613 (Resolve_Record_Aggregate): Do not add an others box association for a
1614 discriminated record component that has only discriminants, when there
1615 is a box association for the component itself.
1617 * par-ch4.adb: Fix mishandling of multiple levels of parens
1619 2007-08-14 Robert Dewar <dewar@adacore.com>
1621 * comperr.adb: Fix problem with suppressing warning messages from gigi
1623 * erroutc.ads, erroutc.adb, errout.ads,
1624 errout.adb (Write_Eol): Remove trailing spaces before writing the line
1625 (Write_Eol_Keep_Blanks): New procedure to write a line, including
1626 possible trailing spaces.
1627 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
1628 Fix problem with suppressing warning messages from back end
1629 Improve handling of deleted warnings
1632 Fix problem with suppressing warning messages from back end
1633 Handle setting of Static_Dispatch_Tables flag.
1636 Fix problem with suppressing warning messages from back end
1638 * exp_intr.adb: Improve handling of deleted warnings
1640 2007-08-14 Robert Dewar <dewar@adacore.com>
1642 * debug.adb: Improve -gnatdI to cover all cases of serialization
1643 Add documentation of dZ, d.t
1645 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
1647 (Sprint_Node_Actual): Generate new output associated with implicit
1648 importation and implicit exportation of object declarations.
1650 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1651 Robert Dewar <dewar@adacore.com>
1652 Javier Miranda <miranda@adacore.com>
1653 Gary Dismukes <dismukes@adacore.com>
1655 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
1656 to make treatment of limited views uniform for all visible declarations
1657 in a limited_withed package.
1658 Improve warnings for in out parameters
1659 (Set_Related_Interaface/Related_Interface): Allow the use of this
1660 attribute with constants.
1661 (Write_Field26_Name): Handle attribute Related_Interface in constants.
1662 Warn on duplicate pragma Preelaborable_Initialialization
1664 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
1665 generation of a freezing node to ensure proper management of null
1666 excluding access types in the backend.
1667 (Create_Extra_Formals): Test base type of the formal when checking for
1668 the need to add an extra accessibility-level formal. Pass the entity E
1669 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
1670 originally being done in a couple of cases), to ensure that the
1671 Extra_Formals list gets set on the entity E when the first entity is
1673 (Conforming_Types): Add missing calls to Base_Type to the code that
1674 handles anonymous access types. This is required to handle the
1675 general case because Process_Formals builds internal subtype entities
1676 to handle null-excluding access types.
1677 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
1678 functions that need it, even when not marked Requires_Overriding.
1679 Improve warnings for in out parameters
1680 (Analyze_Function_Return): Warn for disallowed null return
1681 Warn on return from procedure with unset out parameter
1682 Ensure consistent use of # in error messages
1683 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
1684 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
1685 the implicit conversion of the expression done for anonymous access
1686 types. This is required to generate the code of the null excluding
1687 check (if required).
1689 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
1690 A formal parameter is never publicly referenceable outside of its body.
1691 (Check_References): For an unreferenced formal parameter in an accept
1692 statement, use the same warning circuitry as for subprogram formal
1694 (Warn_On_Unreferenced_Entity): New subprogram, taken from
1695 Output_Unreferenced_Messages, containing the part of that routine that
1696 is now reused for entry formals as described above.
1697 (Goto_Spec_Entity): New function
1698 (Check_References): Do not give IN OUT warning for dispatching operation
1699 Improve warnings for in out parameters
1700 (Test_Ref): Check that the entity is not undefinite before calling
1701 Scope_Within, in order to avoid infinite loops.
1702 Warn on return from procedure with unset out parameter
1703 Improved warnings for unused variables
1705 2007-08-14 Robert Dewar <dewar@adacore.com>
1706 Javier Miranda <miranda@adacore.com>
1707 Gary Dismukes <dismukes@adacore.com>
1709 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
1710 (Expand_N_Attribute_Reference): Further unify the handling of the
1711 three forms of access attributes, using common code now for all three
1712 cases. Add a test for the case of applying an access attribute to
1713 an explicit dereference when the context is an access-to-interface
1714 type. In that case we need to apply the conversion to the prefix
1715 of the explicit dereference rather than the prefix of the attribute.
1716 (Attribute_Version, UET_Address): Set entity as internal to ensure
1717 proper dg output of implicit importation.
1718 (Expand_Access_To_Type): Removed.
1719 (Expand_N_Attribute_Reference): Merge the code from the three cases
1720 of access attributes, since the processing is largely identical for
1721 these cases. The substantive fix here is to process the case of a
1722 type name prefix (current instance case) before handling the case
1723 of interface prefixes.
1725 2007-08-14 Thomas Quinot <quinot@adacore.com>
1726 Ed Schonberg <schonberg@adacore.com>
1727 Javier Miranda <miranda@adacore.com>
1728 Robert Dewar <dewar@adacore.com>
1730 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
1731 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
1732 type that is an anonymous access to controlled object, establish
1733 an associated finalization chain to avoid corrupting the global
1734 finalization list when a dynamically allocated object designated
1735 by such a component is deallocated.
1736 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
1737 functions that need it, even when not marked Requires_Overriding.
1738 (Initialize_Tag): Replace call to has_discriminants by call to
1739 Is_Variable_Size_Record in the circuitry that handles the
1740 initialization of secondary tags.
1741 (Is_Variable_Size_Record): New implementation.
1742 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
1743 Suppress_Initialization pragma for a derived type.
1744 (Is_Variable_Size_Record): New subprogram.
1745 (Build_Offset_To_Top_Functions): New implementation that simplifies the
1746 initial version of this routine and also fixes problems causing
1747 incomplete initialization of the table of interfaces.
1748 (Build_Init_Procedure): Improve the generation of code to initialize the
1749 the tag components of secondary dispatch tables.
1750 (Init_Secondary_Tags): New implementation that simplifies the previous
1751 version of this routine.
1752 (Make_DT): Add parameter to indicate when type has been frozen by an
1753 object declaration, for diagnostic purposes.
1754 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
1755 diagnose attemps to freeze a subprogram when some untagged type of its
1756 profile is a private type whose full view has not been analyzed yet.
1757 (Freeze_Array_Type): Generate init proc for packed array if either
1758 Initialize or Normalize_Scalars is set.
1759 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
1760 constructing the new profile, copy the null_exclusion indicator for each
1761 parameter, to ensure full conformance of the new body with the spec.
1763 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
1764 Create wrappers for constructor functions that need it, even when not
1765 marked Requires_Overriding.
1766 (Covers): Handle properly designated types of anonymous access types,
1767 whose non-limited views are themselves incomplete types.
1768 (Add_Entry): Use an entity to store the abstract operation which hides
1770 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
1771 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
1772 initialization aggregate.
1773 (Function_Interp_May_Be_Hidden): Rename to
1774 Function_Interp_Has_Abstract_Op.
1775 (Has_Compatible_Type): Remove machinery that skips interpretations if
1776 they are labeled as potentially hidden by an abstract operator.
1777 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
1778 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
1779 (Write_Overloads): Output the abstract operator if present.
1780 (Add_Entry): Before inserting a new entry into the interpretation table
1781 for a node, determine whether the entry will be disabled by an abstract
1783 (Binary_Op_Interp_May_Be_Hidden): New routine.
1784 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
1786 (Function_Interp_May_Be_Hidden): New routine.
1787 (Has_Compatible_Type): Do not consider interpretations hidden by
1788 abstract operators when trying to determine whether two types are
1790 (Has_Hidden_Interp): New routine.
1791 (Set_May_Be_Hidden_Interp): New routine.
1792 (Write_Overloads): Write the status of flag May_Be_Hidden.
1794 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1795 Javier Miranda <miranda@adacore.com>
1797 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
1798 types declared in the declarative part of a nested package body or in
1799 the proper body of a stub.
1800 (Set_All_DT_Position): Add missing check to avoid wrong assignation
1801 of the same dispatch table slot to renamed primitives.
1802 (Make_Select_Specific_Data_Table): Handle private types.
1803 (Tagged_Kind): Handle private types.
1804 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
1805 output of implicit importation and exportation.
1806 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
1807 first formal of the thunk is always associated with the controlling
1808 type. In addition perform the following code cleanup: remove formal
1809 Thunk_Alias which is no longer required, cleanup evaluation of the
1810 the controlling type, and update the documentation.
1811 Replace occurrence of Default_Prim_Op_Count by
1812 Max_Predef_Prims. Addition of compile-time check to verify
1813 that the value of Max_Predef_Prims is correct.
1814 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
1815 (Make_DT): Add parameter to indicate when type has been frozen by an
1816 object declaration, for diagnostic purposes.
1817 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
1818 construction of statically allocated dispatch tables.
1819 (Make_DT): In case of library-level tagged types export the declaration
1820 of the primary tag. Remove generation of tags (now done by Make_Tags).
1821 Additional modifications to handle non-static generation of dispatch
1822 tables. Take care of building tables for asynchronous interface types
1823 (Make_Tags): New subprogram that generates the entities associated with
1824 the primary and secondary tags of Typ and fills the contents of Access_
1825 Disp_Table. In case of library-level tagged types imports the forward
1826 declaration of the primary tag that will be declared later by Make_DT.
1827 (Expand_Interface_Conversion): In case of access types to interfaces
1828 replace an itype declaration by an explicit type declaration to avoid
1829 problems associated with the scope of such itype in transient blocks.
1831 2007-08-14 Robert Dewar <dewar@adacore.com>
1832 Ed Schonberg <schonberg@adacore.com>
1833 Javier Miranda <miranda@adacore.com>
1835 * exp_util.ads, exp_util.adb:
1836 This patch replaces a number of occurrences of explicit tests for N_Null
1837 with calls to Known_Null. This improves tracking of null values, since
1838 Known_Null also catches null constants, and variables currently known to
1839 be null, so we get better tracking.
1840 (Ensure_Defined): create an itype reference only in the scope of the
1842 (Side_Effect_Free): A selected component of an access type that
1843 denotes a component with a rep clause must be treated as not
1844 side-effect free, because if it is part of a linked structure its
1845 value may be affected by a renaming.
1846 (Expand_Subtype_From_Expr): For limited objects initialized with build
1847 in place function calls, do nothing; otherwise we prematurely introduce
1848 an N_Reference node in the expression initializing the object, which
1849 breaks the circuitry that detects and adds the additional arguments to
1850 the called function. Bug found working in the new patch for statically
1851 allocated dispatch tables.
1852 (Is_Library_Level_Tagged_Type): New subprogram.
1853 (Remove_Side_Effects): If the expression of an elementary type is an
1854 operator treat as a function call.
1855 (Make_Literal_Range): If the index type of the array is not integer, use
1856 attributes properly to compute the constraint on the resulting aggregate
1859 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
1860 class-wide type whose base type is an incomplete private type, leave
1861 class-wide type unfrozen so that freeze nodes can be generated
1862 properly at a later point.
1863 (Freeze_Entity, array case): Handle case of pragma Pack and component
1864 size attributre clause for same array.
1866 2007-08-14 Vincent Celier <celier@adacore.com>
1868 * prj.ads, prj.adb: Update Project Manager to new attribute names for
1870 Allow all valid declarations in configuration project files
1871 (Reset): Initialize all tables and hash tables in the project tree data
1872 Major update of the Project Manager and of the project aware tools,
1873 including gprmake, so that the same sources in the GNAT repository
1874 can be used by gprbuild.
1875 (Slash_Id): Change type to be Path_Name_Type
1876 (Slash): Return a Path_Name_Type instead of a File_Name_Type
1878 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
1880 Update Project Manager to new attribute names for ghprbuild
1881 Allow all valid declarations in configuration project files
1882 Major update of the Project Manager and of the project aware tools,
1883 including gprmake, so that the same sources in the GNAT repository
1884 can be used by gprbuild.
1887 Major update of the Project Manager and of the project aware tools,
1888 including gprmake, so that the same sources in the GNAT repository
1889 can be used by gprbuild.
1891 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
1892 insensitive flag for attributes with optional index.
1893 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
1894 array attribute, put the index in lower case.
1895 Update Project Manager to new attribute names for ghprbuild
1896 Allow all valid declarations in configuration project files
1897 Major update of the Project Manager and of the project aware tools,
1898 including gprmake, so that the same sources in the GNAT repository
1899 can be used by gprbuild.
1901 * prj-env.ads, prj-env.adb:
1902 Major update of the Project Manager and of the project aware tools,
1903 including gprmake, so that the same sources in the GNAT repository
1904 can be used by gprbuild.
1905 (Get_Reference): Change type of parameter Path to Path_Name_Type
1907 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
1908 removing '-' from the path to start with the first character of the
1910 Major update of the Project Manager and of the project aware tools,
1911 including gprmake, so that the same sources in the GNAT repository
1912 can be used by gprbuild.
1913 Major update of the Project Manager and of the project aware tools,
1914 including gprmake, so that the same sources in the GNAT repository
1915 can be used by gprbuild.
1917 * prj-nmsc.ads, prj-nmsc.adb:
1918 Update Project Manager to new attribute names for ghprbuild
1919 Allow all valid declarations in configuration project files
1920 (Search_Directories): Detect subunits that are specified with an
1921 attribute Body in package Naming. Do not replace a source/unit in the
1922 same project when the order of the source dirs are known. Detect
1923 duplicate sources/units in the same project when the order of the
1924 source dirs are not known.
1925 (Check_Ada_Name): Allow all identifiers that are not reserved words
1927 Major update of the Project Manager and of the project aware tools,
1928 including gprmake, so that the same sources in the GNAT repository
1929 can be used by gprbuild.
1930 (Look_For_Sources): If the list of sources is empty, set the object
1931 directory of non extending project to nil.
1932 Change type of path name variables to be Path_Name_Type
1933 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
1934 otherwise creating missing directories will fail.
1936 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
1937 prj-part.ads, prj-part.adb:
1938 Major update of the Project Manager and of the project aware tools,
1939 including gprmake, so that the same sources in the GNAT repository
1940 can be used by gprbuild.
1942 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
1943 insensitive flag for attributes with optional index.
1944 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
1945 array attribute, put the index in lower case.
1946 (Parse_Variable_Reference): Allow the current project name to be used in
1947 the prefix of an attribute reference.
1949 * prj-util.ads, prj-util.adb
1950 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
1951 defaulted to False. When True, always check against indexes in lower
1954 * snames.ads, snames.h, snames.adb:
1955 Update Project Manager to new attribute names for gprbuild
1956 Allow all valid declarations in configuration project files
1958 2007-08-14 Robert Dewar <dewar@adacore.com>
1959 Ed Schonberg <schonberg@adacore.com>
1961 * opt.ads: Warning for non-local exception propagation now off by
1963 New switch -gnatI to disable representation clauses
1964 Implement new pragma Implicit_Packing
1967 Warning for non-local exception propagation now off by default
1968 Add warning for unchecked conversion of pointers wi different
1970 New switch -gnatI to disable representation clauses
1972 * usage.adb: new switch -gnatyS
1974 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
1975 note that aggregates of anonymous array types are not flagged.
1976 -gnatwc now includes membership tests optimized away
1977 -gnatw.x warnings are now off by default
1978 Added conditional compilation Appendix
1979 Add documentation of -gnatI
1980 Add documentation for new -gnatyS style check
1981 Update documentation about SAL and auto-init on Windows.
1984 Add documentation for pragma Check_Name and 'Enabled attribute
1985 Document that Eliminate on dispatching operation is ignored
1986 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
1987 Document pragma Main
1988 Document pragma Implicit_Packing
1990 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
1991 different conventions
1992 New switch -gnatI to disable representation clauses
1994 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
1995 recognized, report the invalid characters including "-gnat" instead of
1996 just the first character in the switch.
1997 New switch -gnatI to disable representation clauses
1998 Set Warn_On_Object_Renames_Function true for -gnatg
2000 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
2001 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
2002 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
2003 to switch -aP (add directory to project search dir).
2005 * par-prag.adb: Implement new pragma Implicit_Packing
2007 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
2008 type as having a non-standard representation, to force expansion on
2009 conversion to related types.
2010 (Analyze_Pragma): Warn on misspelled pragma
2011 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
2012 Ensure consistent use of # in error messages
2013 Implement pragma Implicit_Packing
2015 2007-08-14 Olivier Hainque <hainque@adacore.com>
2016 Eric Botcazou <ebotcazou@adacore.com>
2018 * targtyps.c (get_target_maximum_default_alignment): New function.
2020 that the compiler might choose by default for a type or object.
2021 (get_target_default_allocator_alignment): New function. Alignment known
2022 to be honored by the target default allocator.
2023 (get_target_maximum_allowed_alignment): New function. Maximum alignment
2024 we might accept for any type or object on the target.
2025 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
2027 * gigi.h (get_target_maximum_default_alignment): Declare new function.
2028 (get_target_default_allocator_alignment): Likewise.
2029 (get_target_maximum_allowed_alignment): Likewise.
2032 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
2033 result of a function call, first try to use a stabilized reference for
2034 a constant renaming too.
2035 (validate_alignment): Use target_maximum_allowed_alignment instead of
2036 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
2037 (gnat_to_gnu_entity): Use common nodes directly.
2038 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
2039 alignment and size for the object.
2040 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
2041 and N_Procedure_Call_Statement.
2042 (takes_address): Rename to lvalue_required_p, add third parameter
2043 'aliased' and adjust recursive calls.
2044 <N_Indexed_Component>: Update 'aliased' from the array type.
2045 <N_Selected_Component>: New case.
2046 <N_Object_Renaming_Declaration>: New Likewise.
2047 (Identifier_to_gnu): Adjust for above changes.
2048 (maybe_stabilize_reference) <CONST_DECL>: New case.
2050 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
2051 between type variants.
2052 (build_simple_component_ref): Likewise.
2053 (build_call_alloc_dealloc): Use target_default_allocator_alignment
2054 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
2055 aligning type circuitry for allocations from the default storage pool.
2056 (build_allocator): Likewise.
2057 (build_simple_component_ref): Manually fold the reference for a
2058 constructor if the record type contains a template.
2060 * utils.c (value_zerop): Delete.
2061 (gnat_init_decl_processing): Emit debug info for common types.
2062 (rest_of_record_type_compilation): If a union contains a field
2063 with a non-constant qualifier, treat it as variable-sized.
2064 (finish_record_type): Give the stub TYPE_DECL a name.
2065 (rest_of_record_type_compilation): Likewise.
2066 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
2067 types are equivalent array types.
2068 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
2069 even if the type is not passed by reference.
2070 (static_ctors, static_dtors): Delete.
2071 (end_subprog_body): Do not record constructors and destructors.
2072 (build_global_cdtor): Delete.
2073 (gnat_write_global_declarations): Do not call build_global_cdtor.
2075 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
2076 -fRTS=rtp is specified.
2077 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
2080 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
2081 of the personality function with SJLJ exceptions.
2083 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
2084 the name of the personality function with SJLJ exceptions.
2086 2007-08-14 Robert Dewar <dewar@adacore.com>
2087 Ed Schonberg <schonberg@adacore.com>
2089 * par.ads, par.adb: Improve handling of extra right parens.
2090 (Par): Remove flag From_Limited_With_Clause.
2092 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
2093 Improve handling of extra right parens.
2095 2007-08-14 Robert Dewar <dewar@adacore.com>
2097 * par-tchk.adb (TF_Semicolon): Improve error recovery
2099 2007-08-14 Robert Dewar <dewar@adacore.com>
2100 Ed Schonberg <schonberg@adacore.com>
2102 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
2103 enumeration type, mark all literals as referenced.
2104 (Eval_Attribute, case 'Image): If the argument is an enumeration
2105 literal and names are available, constant-fold but mark nevertheless as
2107 Clean up function names.
2108 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
2110 (Requires_Simple_Name_Prefix): Removed.
2112 2007-08-14 Robert Dewar <dewar@adacore.com>
2113 Ed Schonberg <schonberg@adacore.com>
2115 * sem_ch11.adb: Improved warnings for unused variables
2117 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
2118 is a synchronized interface, the derived type is limited.
2119 (Analyze_Object_Declaration): Mark the potential coextensions in the
2120 definition and expression of an object declaration node.
2121 (Build_Derived_Type): For the completion of a private type declaration
2122 with a derived type declaration, chain the parent type's representation
2123 items to the last representation item of the derived type (not the
2124 first one) if they are not present already.
2125 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
2126 object declaration of forward references to tags.
2127 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
2128 subprogram types can appear as access discriminants of synchronized
2130 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
2131 given in prefixed form as a selected component.
2132 (Process_Discriminants): If not all discriminants have defaults, place
2133 error message on a default that is present.
2134 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
2135 extend a synchronized tagged type.
2136 Improved warnings for unused variables
2137 (Is_Visible_Component): Fix a visibility hole on a component inherited
2138 by a private extension when parent is itself declared as a private
2139 extension, and the derivation is in a child unit.
2140 (Find_Hidden_Interface): Move spec from the package body.
2142 2007-08-14 Robert Dewar <dewar@adacore.com>
2143 Ed Schonberg <schonberg@adacore.com>
2145 * sem_ch5.adb: Improve warnings on redundant assignments
2147 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
2149 (Is_Synchronized_Tagged_Type): New subprogram that returns true
2150 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
2151 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
2152 is set to False. Improves handling of Known_[Not_]Null.
2153 (Wrong_Type): Special case address arithmetic attempt
2154 (Collect_Abstract_Interfaces): Add new formal to allow collecting
2155 abstract interfaces just using the partial view of private types.
2156 (Has_Abstract_Interfaces): Add new formal to allow checking types
2157 covering interfaces using the partial view of private types.
2158 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
2159 component still needs to be defined in this case, but is never
2160 initialized as VMs are using other dispatching mechanisms.
2161 (Abstract_Interface_List): For a protected type, use base type to get
2163 Improve warnings on redundant assignments
2164 (Is_Variable): Handle properly an implicit dereference of a prefixed
2166 (Build_Actual_Subtype): If this is an actual subtype for an
2167 unconstrained formal parameter, use the sloc of the body for the new
2168 declaration, to prevent anomalises in the debugger.
2170 2007-08-14 Robert Dewar <dewar@adacore.com>
2172 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
2173 dispatching operation
2175 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2176 Gary Dismukes <dismukes@adacore.com>
2179 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
2180 expanded aggregate code before allocator, and ahead of declaration for
2181 temporary, to prevent access before elaboration when the allocator is
2182 an actual for an access parameter.
2183 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
2184 the TSD and the table of interfaces.
2185 (Convert_To_Assignments): Augment the test for delaying aggregate
2186 expansion for limited return statements to include the case of extended
2187 returns, to prevent creation of an unwanted transient scope.
2188 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
2189 (Expand_Array_Aggregate): Handle aggregates associated with
2190 statically allocated dispatch tables.
2191 (Expand_Record_Aggregate): Handle aggregates associated with
2192 statically allocated dispatch tables.
2193 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
2194 of anonymous access type.
2196 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2198 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
2199 is a variable that renames a slice, use the variable itself in the
2200 expannsion when the renamed expression itself may be modified between
2201 the declaration of the renaming and the array assignment.
2203 2007-08-14 Jerome Guitton <guitton@adacore.com>
2205 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2206 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
2207 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
2208 New functions; dummy implementations.
2210 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
2211 functions, used to implement the multi-tasks mode routines on VxWorks.
2213 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
2215 binding to the VxWorks routines which have changed between VxWorks 5
2217 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
2218 which are not callable from a RTP.
2220 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
2221 implemented for the multi-tasks mode on VxWorks 5 and 6.
2223 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
2225 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
2228 2007-08-14 Vincent Celier <celier@adacore.com>
2230 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
2231 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
2232 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
2233 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2234 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2235 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
2236 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
2238 (Major_Id_Name): New function.
2239 mlib-tgt.ads/mlib.tgt.adb:
2240 (Library_Major_Minor_Id_Supported): New function, default returns True
2241 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
2242 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
2243 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
2244 Implementation of Library_Major_Minor_Id_Supported returns False
2246 (Clean_Library_Directory): If major/minor ids are supported, clean all
2248 Major update of the Project Manager and of the project aware tools,
2249 including gprmake, so that the same sources in the GNAT repository
2250 can be used by gprbuild.
2252 2007-08-14 Olivier Hainque <hainque@adacore.com>
2254 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
2255 (GCC_ZCX_Support): Switch to True.
2257 * s-intman-solaris.adb (Notify_Exception): Call
2258 Adjust_Context_For_Raise before raising, as expected for signal
2259 handlers in general.
2261 * s-intman-posix.adb (Notify_Exception): Remove declaration of
2262 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
2263 to other implementation bodies.
2265 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
2266 be visible by multiple implementation bodies.
2268 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
2269 only for conditions coming from hardware.
2270 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
2271 adjustments to signal context prior to exception raise from signal
2273 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
2275 Solaris section: (__gnat_adjust_context_for_raise): New function.
2276 Implementation of the machine context adjustments to perform prior to
2277 raise from a signal handler. Version for both sparc and x86.
2278 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
2279 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
2280 prior to raising as expected for any handler, before possible nested
2281 faults to make sure all the contexts in a chain have been adjusted by
2282 the time we propagate.
2284 2007-08-14 Pascal Obry <obry@adacore.com>
2286 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
2287 (SYSTEM_INFO): New record.
2288 (SetThreadIdealProcessor): New imported routine needed for supporting
2289 task_info pragma on Windows.
2291 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
2292 info can be applied to the current host.
2293 (Create_Task): Set the ideal processor if information is present.
2295 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
2296 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
2298 2007-08-14 Olivier Hainque <hainque@adacore.com>
2300 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
2301 stack size and initial stack pointer value for a given task.
2302 (Enter_Task): Get the stack attributes of the task we are entering and
2303 let the stack checking engine know about them.
2305 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
2306 Let the stack-checking engine know about the initial sp value and stack
2307 size associated with the current task.
2308 (Set_Stack_Info): If a stack base has been notified for the current
2309 task, honor it. Fallback to the previous less accurate method otherwise.
2311 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
2313 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2315 * sem_ch10.adb: Create a limited view of an incomplete type, to make
2316 treatment of limited views uniform for all visible declarations in a
2317 limited_withed package.
2318 Set flag indicating that a subprogram body for a child unit has a
2320 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
2321 separate declaration, remove the unit name from visibility after
2322 compilation, so that environment is clean for subsequent compilations.
2323 (Install_Limited_Context_Clauses): Do not install a
2324 limited_private_with_clause unless the current unit is a body or a
2326 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
2327 in the same fashion.
2328 (Install_Limited_Withed_Unit): Do not install a limited with clause if
2329 it applies to the declaration of the current package body.
2330 (Remove_Private_With_Clauses): If there is a regular with_clause for
2331 the unit, delete Private_With_Clause from context, to prevent improper
2332 hiding when processing subsequent nested packages and instantiations.
2334 2007-08-14 Jose Ruiz <ruiz@adacore.com>
2336 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
2337 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
2338 representing absolute path names.
2339 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
2341 * cstreams.c (__gnat_full_name for VxWorks): Use
2342 __gnat_is_absolute_path to detect whether we need to add the current
2343 directory to normalize the path.
2345 2007-08-14 Javier Miranda <miranda@adacore.com>
2348 a-tags.adb (Displace): Associate a message with the raised CE
2350 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
2351 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
2352 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
2354 (Default_Prim_Op_Count): Removed.
2355 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
2356 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
2357 Remove pragma Inline_Always.
2359 * rtsfind.ads (Default_Prim_Op_Count): Removed
2360 (Max_Predef_Prims): New entity
2361 (RE_Expanded_Name): Removed
2362 (RE_HT_Link): Removed
2363 (RE_Iface_Tag): Remmoved
2364 (RE_Ifaces_Table): Removed
2365 (RE_Interfaces_Array): Removed
2366 (RE_Interface_Data_Element): Removed
2367 (RE_Nb_Ifaces): Removed
2368 (RE_RC_Offset): Removed
2369 (RE_Static_Offset_To_Top): Removed
2371 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
2373 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
2374 Prim_Op_Count by Max_Predef_Prims.
2376 2007-08-14 Thomas Quinot <quinot@adacore.com>
2377 Vincent Celier <celier@adacore.com>
2379 * binde.adb (Elab_All_Links): Remove unnecessary call to
2380 Generic_Separately_Compiled (if a unit satisfies this predicate, there
2381 won't be an associated Afile).
2382 (Elab_All_Links): Fail if a referenced unit cannot be found
2385 Fix comments in bindgen regarding consistency checks done in Bcheck:
2386 the checks are made across units within a partition, not across several
2388 Fix generation of C binder file for VxWorks.
2390 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
2391 Generic_May_Lack_ALI, more descriptive of the current use of the
2392 predicate, and update documentation.
2394 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
2395 reorganization and documentation update for the case of predefined
2396 library generics (for which we do not reference an Afile).
2398 2007-08-14 Robert Dewar <dewar@adacore.com>
2400 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
2401 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
2402 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
2403 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
2404 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
2405 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
2406 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
2407 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
2408 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
2409 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
2410 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
2411 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
2412 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
2413 g-altcon.adb: Minor reformatting
2415 ada-tree.h: Delete empty line.
2417 ali.ads: Minor reformatting
2418 Clarification of comments.
2419 Minor spelling correction
2421 * exp_dbug.adb: Add Warnings Off to suppress new warning
2423 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
2426 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
2429 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
2431 * a-textio.ads: Reorder the standard input/output/error declarations
2434 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
2436 * par-ch2.adb: Recognize RM specially in errout
2437 Change 'R'M to RM in all error messages
2439 * scng.adb: Recognize RM specially in errout
2441 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
2442 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
2444 * s-direio.adb: Add missing routine header box.
2446 * sem_attr.ads: Add ??? comments
2448 * sem_eval.adb: Recognize RM specially in errout
2449 Change 'R'M to RM in all error messages
2451 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
2453 * s-tasinf.ads: Fix minor comment typo.
2455 * a-cihama.adb: Minor comment addition
2457 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
2460 * s-tasinf-tru64.ads: Fix minor comment typo.
2462 * itypes.ads: Comment update.
2464 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
2467 * argv.c: Added protection against null gnat_argv and gnat_envp.
2469 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
2470 warning message when Tolerate_Consistency_Errors is True.
2472 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
2473 Any_Id, as this subprogram is only applicable to *type* entities (it
2474 sets RM_Size). Instead initialize just Esize and Alignment.
2476 2007-08-14 Bob Duff <duff@adacore.com>
2478 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
2479 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
2480 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
2481 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
2482 a-coorse.ads (Next): Applied pragma Inline.
2483 Make all Containers packages Remote_Types (unless they are already
2485 (Previous): applied pragma Inline
2486 (Elements_Type): is now a record instead of an array
2488 2007-08-14 Thomas Quinot <quinot@adacore.com>
2490 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
2492 (Set_Item): When the new item is an element of the currently allocated
2493 table passed by reference, save a copy on the stack if we're going
2494 to reallocate. Also, in Table.Set_Item, make sure we test the proper
2495 variable to determine whether to call Set_Last.
2497 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
2498 symbols-vms.adb, symbols-processing-vms-alpha.adb,
2499 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
2500 some occurrences of the pattern
2502 T.Table (T.Last) := Value;
2503 with a cleaner call to
2506 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2507 Gary Dismukes <dismukes@adacore.com>
2508 Thomas Quinot <quinot@adacore.com>
2510 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
2511 derived type with interface progenitors use the analyzed formal as the
2512 parent of the actual, to create renamings for all the inherited
2513 operations in Derive_Subprograms.
2514 (Collect_Previous_Instances): new procedure within of
2515 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
2516 unit being loaded, to ensure that the generation of global symbols is
2517 consistent in different compilation modes.
2518 (Is_Tagged_Ancestor): New function testing the ancestor relation that
2519 takes progenitor types into account.
2520 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
2521 traversing over the primitives of the formal and actual types to locate
2522 any abstract subprograms of the actual type that correspond to a
2523 nonabstract subprogram of the formal type's ancestor type(s), and issue
2524 an error if such is found.
2525 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
2526 Instantiate_Package_Body, Instantiate_Subprogram_Body):
2527 Remove bogus guard around calls to Inherit_Context.
2528 (Reset_Entity): If the entity is the selector of a selected component
2529 that denotes a named number, propagate constant-folding to the generic
2530 template only if the named number is global to the generic unit.
2531 (Set_Instance_Env): Only reset the compilation switches when compiling
2532 a predefined or internal unit.
2534 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2536 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
2537 parameter to determine whether operation applies to the prefix.
2538 (Complete_Object_Operation): If actual has an access type and
2539 controlling formal is not an in_parameter, reject the actual if it is
2540 an access_to_constant type.
2541 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
2542 type, the candidate operations are found in the scope of declaration of
2543 the type, because the type has no primitive subprograms.
2544 (Analyze_Selected_Component): If prefix is class-wide, and root type is
2545 a private extension, only examine visible components before trying to
2546 analyze as a prefixed call.
2547 Change Entity_List to Type_To_Use, for better readability.
2548 (Has_Fixed_Op): Use base type when checking whether the type of an
2549 operator has a user-defined multiplication/division
2550 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
2551 user-defined operators are available for fixed-point types.
2553 2007-08-14 Thomas Quinot <quinot@adacore.com>
2554 Ed Schonberg <schonberg@adacore.com>
2556 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
2557 formal At_Any_Place indicating, when True, that we want to test for
2558 availability of the stream attribute at any place (as opposed to the
2559 current visibility context only).
2560 (Missing_Read_Write_Attributes): A stream attribute is missing for the
2561 purpose of enforcing E.2.2(8) only if it is not available at any place.
2562 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
2563 when checking the legality of an extension aggregate in a preelaborable
2564 package. Treat the literal null as a valid default expression in a
2565 component declaration for a type with preelaborable initialization.
2566 A limited interface is a legal progenitor for the designated type of a
2567 remote access to class-wide type.
2569 2007-08-14 Thomas Quinot <quinot@adacore.com>
2570 Ed Schonberg <schonberg@adacore.com>
2572 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
2573 reference): Use correct entity as denoted entity for the selector of
2575 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
2576 setting the Referenced_As_LHS flag for entities that are implicitly
2578 (Find_Type): If the type is an internally generated incomplete type,
2579 mark the full view as referenced, to prevent spurious warnings.
2580 (Find_Selected_Component, Has_Components): Handle properly non-limited
2581 views that are themselves incomplete types.
2582 Handle interfaces visible through limited-with clauses.
2583 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
2584 subprogram generic actual for which we have generated a renaming.
2585 Warn when the renaming introduces a homonym of
2586 the renamed entity, and the renamed entity is directly visible.
2588 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2589 Hristian Kirtchev <kirtchev@adacore.com>
2591 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
2592 appear in the subtree to the current allocator if it is not a static
2594 (Resolve_Allocator): Perform cleanup if resolution has determined that
2595 the allocator is not a coextension.
2596 (Resolve): Skip an interpretation hidden by an abstract operator only
2597 when the type of the interpretation matches that of the context.
2598 (Resolve): When looping through all possible interpretations of a node,
2599 do not consider those that are hidden by abstract operators.
2600 (Resolve_Actuals): When verifying that an access to class-wide object
2601 is an actual for a controlling formal, ignore anonymous access to
2602 subprograms whose return type is an access to class_wide type.
2603 (Resolve_Slice): If the prefix of the slice is a selected component
2604 whose type depends on discriminants, build its actual subtype before
2605 applying range checks on the bounds of the slice.
2606 (Valid_Conversion): In an instance or inlined body, compare root types,
2607 to prevent anomalies between private and public views.
2608 (Resolve): Improve error message for ambiguous fixed multiplication
2609 expressions that involve universal_fixed multiplying operations.
2611 2007-08-14 Javier Miranda <miranda@adacore.com>
2612 Hristian Kirtchev <kirtchev@adacore.com>
2614 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
2615 location to allow the correct generation of errors in case of
2616 restrictions applied to the expanded code.
2617 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
2618 function if the condition does not reference them.
2619 (Expand_Entry_Body_Declarations): Mark the index constant as having a
2622 2007-08-14 Thomas Quinot <quinot@adacore.com>
2624 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
2625 typecode parameters for a union (in a variant record), remove
2626 extraneous layer of Any wrapping for member label.
2627 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
2628 elabration statements, register the package with the name server
2629 at the beginning, not at the end, of the elaboration statements so
2630 that they can create remote access to subprogram values that designate
2631 remote subprograms from the package.
2633 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
2635 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
2636 values to compute the number of seconds since the Unix Epoc in order to
2637 account for Daylight Savings Time. Perform special processing for dates
2638 that are earlier than the Unix Epoc to obtain a negative number.
2640 2007-08-14 Emmanuel Briot <briot@adacore.com>
2642 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
2645 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
2647 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
2648 binder-generated file is not in Ada.
2649 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
2650 recorded in the ALI file.
2651 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
2653 2007-08-14 Vincent Celier <celier@adacore.com>
2655 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
2656 (Output_Source): Do nothing if parameter is No_Sdep_Id
2658 * make.adb (Gnatmake): Do not rebuild an archive simply because a
2659 shared library it imports has a later time stamp.
2660 (Check): Resolve the symbolic links in the path name of the object
2662 Check that the ALI file is in the correct object directory
2663 Check if a file name does not correspond to the mapping of units
2665 (Display_Version): New procedure
2666 (Initialize): Process switches --version and --help
2667 Use type Path_Name_Type for path name
2669 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
2671 * impunit.adb: Re-organize System.Random_Numbers and
2672 GNAT.Random_Numbers and add to builds.
2674 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
2676 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
2678 * a-assert.ads, a-assert.adb: New files.
2680 2007-08-14 Gary Dismukes <dismukes@adacore.com>
2682 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
2683 if AAMP_On_Target is True, then the size of the type encompasses two
2684 addresses (a static link and a subprogram address), except in the case
2685 of library-level access types.
2687 2007-08-14 Vincent Celier <celier@adacore.com>
2689 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
2691 (Write_Eol_Keep_Blanks): New procedure to write a line, including
2692 possible trailing spaces.
2693 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
2695 2007-08-14 Javier Miranda <miranda@adacore.com>
2697 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
2698 null-excluding access types.
2700 2007-08-14 Javier Miranda <miranda@adacore.com>
2702 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
2703 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
2704 of private types add missing check on matching interfaces in the
2705 partial and full declarations.
2706 (Analyze_Protected_Type): Code cleanup.
2707 (Analyze_Task_Type): Code cleanup.
2709 2007-08-14 Javier Miranda <miranda@adacore.com>
2711 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
2712 generated interface thunk.
2714 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2716 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
2717 obsolescent warning on application of 'Class to an incomplete type.
2719 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
2720 prevent obsolescent warning on application of 'Class to an incomplete
2723 2007-08-14 Pascal Obry <obry@adacore.com>
2725 * s-fileio.adb (Is_Open): Add check for usability of the underlying
2728 2007-08-14 Cyrille Comar <comar@adacore.com>
2730 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
2731 since it is potentially used in cases implying double finalization of
2734 2007-08-14 Jose Ruiz <ruiz@adacore.com>
2736 * s-tasini.adb (Get_Stack_Info): Move this function to
2737 System.Soft_Links.Tasking because it is common to the full and the
2738 restricted run times.
2739 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
2740 in SSL.Tasking.Init_Tasking_Soft_Links.
2742 * s-solita.adb (Get_Stack_Info): Function moved from
2743 System.Tasking.Initialization because it is common to the full and the
2744 restricted run times.
2745 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
2747 2007-08-14 Arnaud Charlet <charlet@adacore.com>
2749 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
2750 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
2751 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
2754 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
2757 2007-08-14 Gary Dismukes <dismukes@adacore.com>
2759 * s-veboop.adb (SU): New named number initialized to
2760 System.Storage_Unit.
2761 (True_Val): The initialization expression is revised to use SU (=
2762 Storage_Unit) rather than assuming 8 for the component size of an
2763 unpacked Boolean array.
2765 2007-08-14 Tristan Gingold <gingold@adacore.com>
2767 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
2769 * tb-ivms.c: New file.
2771 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
2773 2007-08-14 Geert Bosch <bosch@adacore.com>
2775 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
2776 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
2777 Add required linker pragmas for automatically linking with the gnalasup
2778 linear algebra support library, and the systems math library.
2779 Rename cdot to cdotu and zdot to zdotu.
2780 Update header comment to describe purpose of package.
2782 2007-08-14 Thomas Quinot <quinot@adacore.com>
2784 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
2785 an explicitly specified Associated_Final_Chain, use that list.
2786 (Expand_N_Package_Body): Build dispatch tables of library level tagged
2788 (Expand_N_Package_Declaration): Build dispatch tables of library level
2789 tagged types. Minor code cleanup.
2791 2007-08-14 Vincent Celier <celier@adacore.com>
2793 * gnatchop.adb (Terminate_Program): Remove exception and use
2794 Types.Terminate_Program instead.
2796 * osint.ads, osint.adb (Current_Exit_Status): New global variable
2797 (Find_Program_Name): Added protection against empty name.
2798 (OS_Exit_Through_Exception): New procedure
2800 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
2801 (OS_Exit_Default): New procedure that contains the previous
2802 implementation of procedure OS_Exit.
2803 (Final_Value): Remove obsolete Interix stuff.
2805 2007-08-14 Thomas Quinot <quinot@adacore.com>
2807 * g-socket.ads: Reorganize example code so that it also works on
2810 2007-08-14 Tristan Gingold <gingold@adacore.com>
2812 * g-trasym.ads: AIX now supports symbolic backtraces.
2814 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2816 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
2817 units being loaded to detect circularities. A circularity may be
2818 present even if the current chain of pending units to load starts from
2819 a limited_with_clause.
2821 * lib-load.ads: Change profile of Load_Unit to use a with_clause
2822 rather than a boolean flag, in order to detect circularities in
2825 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
2826 than propagating the From_Limited_With flag, in order to handle
2827 properly circularities involving with_clauses.
2829 2007-08-14 Nicolas Setton <setton@adacore.com>
2831 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
2834 2007-08-14 Arnaud Charlet <charlet@adacore.com>
2836 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
2837 to build for libgnala.
2838 libgnat: Add rules to build libgnala.a
2839 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
2840 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
2841 Add s-osinte-vxworks-kernel.adb to the target pairs of the
2842 kernel run-time lib for VxWorks 6, which would provide a different
2843 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
2844 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
2845 running ZCX by default.
2846 Add g-sttsne-locking to LynxOS version.
2847 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
2848 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
2850 * system-darwin-x86.ads: New file.
2852 * Make-lang.in: Delete files before copying onto them, so if they are
2853 read-only, the copy won't fail.
2856 2007-08-14 Pascal Obry <obry@adacore.com>
2858 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
2861 2007-08-14 Vincent Celier <celier@adacore.com>
2863 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
2864 (Gcc): Initialize Gcc_Name at the first call
2866 2007-08-14 Ed Schonberg <schonberg@adacore.com>
2868 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
2869 with_clauses of the enclosing unit when analyzing the package
2870 specification of a nested instance.
2872 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
2874 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
2875 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
2876 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
2877 layout of N_Allocator.
2879 2007-08-14 Thomas Quinot <quinot@adacore.com>
2881 * rtsfind.adb (Check_RPC): Add PCS version check.
2883 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
2884 (Gnat_Free_Software): New function.
2886 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
2887 the PCS_Version value from s-parint, used to check that it is consistent
2888 with what exp_dist expects.
2890 * s-parint.ads (PCS_Version): New entity for checking consistency
2891 between exp_dist and PCS.
2893 * gen-soccon.c: (SO_REUSEPORT): New constant.
2895 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
2897 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
2898 variable Sub_Second to Duration in order to accomodate a larger range
2899 of arithmetic operations.
2901 2007-08-14 Bob Duff <duff@adacore.com>
2903 * g-sttsne-locking.ads: Move comments from spec to body.
2904 * g-sttsne-locking.adb: Move comments from spec to body.
2905 * g-sttsne-vxworks.ads: Removed.
2906 * g-sttsne-vxworks.adb: Removed.
2908 2007-08-11 Ian Lance Taylor <iant@google.com>
2910 * misc.c (gnat_get_alias_set): Change return type to
2913 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2915 * decl.c, utils2.c: Fix whitespace in last change.
2917 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2919 * decl.c (compare_field_bitpos): Constify.
2920 * utils2.c (compare_elmt_bitpos): Likewise.
2922 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
2924 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
2925 anonymous access type.
2926 (pthread_sigmask): Now take an access sigset_t.
2928 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
2930 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
2932 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
2934 PR tree-optimization/25737
2935 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
2937 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2939 * trans.c (Attribute_to_gnu): When subtracting an
2940 offset from a pointer, use POINTER_PLUS_EXPR with
2941 NEGATE_EXPR instead of MINUS_EXPR.
2942 (gnat_to_gnu): Likewise.
2943 * utils.c (convert): When converting between
2944 thin pointers, use POINTER_PLUS_EXPR and sizetype
2946 * utils2.c (known_alignment): POINTER_PLUS_EXPR
2947 have the same semantics as PLUS_EXPR for alignment.
2948 (build_binary_op): Add support for the semantics of
2949 POINTER_PLUS_EXPR's operands.
2950 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
2952 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
2954 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
2955 of get_signed_or_unsigned_type.
2956 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
2958 2007-06-11 Bob Duff <duff@adacore.com>
2959 Thomas Quinot <quinot@adacore.com>
2961 * g-stsifd-sockets.adb (Create): Work around strange behavior of
2962 'bind' on windows that causes 'connect' to fail intermittently, by
2963 retrying the 'bind'.
2964 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
2966 2007-06-10 Duncan Sands <baldrick@free.fr>
2968 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
2969 than to void, for the fields when making a new fat pointer type.
2970 (gnat_substitute_in_type): Now substitute_in_type.
2971 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
2972 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
2973 * utils.c (update_pointer_to): Update fat pointers by updating the
2974 dummy node pointers used for the fields.
2976 2007-06-06 Thomas Quinot <quinot@adacore.com>
2977 Bob Duff <duff@adacore.com>
2979 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
2980 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
2981 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
2982 constant Thread_Blocking_IO, always True by default, set False
2983 on a per-runtime basis.
2984 (Need_Netdb_Buffer): New constant.
2986 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
2987 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
2990 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
2991 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
2992 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
2993 child package Task_Safe_NetDB
2994 (Host_Error_Messages): Add stub body.
2995 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
2997 * g-soccon-mingw.ads: Add Windows-specific constants.
2998 (Need_Netdb_Buffer): New constant.
2999 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
3000 wrapper and import inet_addr(3) from the standard sockets library
3002 (In_Addr): Add alignment clause.
3003 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3005 2007-06-06 Robert Dewar <dewar@adacore.com>
3007 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
3008 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
3009 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
3010 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
3011 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
3012 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
3013 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
3014 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
3015 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
3016 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
3017 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
3018 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
3019 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
3020 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
3021 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
3022 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
3023 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
3024 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
3025 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
3026 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
3027 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
3028 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
3029 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
3030 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
3031 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
3032 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
3033 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
3034 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
3035 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
3036 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
3037 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
3038 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
3039 Unchecked_* by Ada.Unchecked_*
3041 2007-06-06 Robert Dewar <dewar@adacore.com>
3043 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
3044 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
3045 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
3046 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
3047 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
3048 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
3050 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
3051 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
3052 s-tasloc.adb, s-tasloc.ads: New files.
3054 2007-06-06 Bob Duff <duff@adacore.com>
3057 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
3058 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
3059 (Send_Signal, Close): Raise Invalid_Process if the process id is
3061 (Pattern_Matcher_Access): Is now a general access type to be able to
3064 2007-06-06 Thomas Quinot <quinot@adacore.com>
3065 Arnaud Charlet <charlet@adacore.com>
3067 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
3068 (SIGEMT is now used instead of SIGTERM on AIX).
3070 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
3071 (Time_Slice_Supported): Set to True.
3072 Use SIGEMT instead of SIGTERM as SIGADAABORT.
3074 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
3076 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
3077 (Time, Time)): Use To_Relative_Time rather than manual calculation to
3078 express the bounds of Duration as Time. Raise Time_Error when the
3079 result is greater or equal to the higher bound of Duration (on the
3081 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
3083 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
3085 ("-" (Time, Time)): Reorder code.
3086 (All_Leap_Seconds): Removed.
3087 (Arithmetic_Operations.Add): Remove sign related kludge.
3088 (Arithmetic_Operations.Difference): Control the leaps seconds processing
3089 with flag Leap_Support.
3090 (Arithmetic_Operations.Subtract): Remove sign related kludge.
3091 (Check_Within_Time_Bounds): New procedure.
3092 (Clock): Control the leap seconds processing with flag Leap_Support.
3093 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
3094 (Formatting_Operations.Split): Control the leap seconds processing with
3096 (Formatting_Operations.Time_Of): Control the leaps seconds processing
3097 with flag Leap_Support. Adjust the year, month and day (if applicable)
3098 when the value of day seconds designates a new day.
3099 (Split): Use parameter associations for better readability. Integrate
3101 (Time_Of): Use parameter associations for better readability. Integrate
3104 * a-calfor.adb (Split): Use parameter associations for better
3105 readability. Integrate flag Is_Ada_05.
3106 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
3107 better readability. Integrate flag Is_Ada_05.
3109 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3111 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
3112 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
3113 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
3114 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
3115 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
3116 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
3117 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
3118 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
3119 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
3120 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
3121 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
3122 time when entering this routine to detect a backward clock setting
3123 (manual setting or DST adjustment), to avoid waiting for a longer delay
3125 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
3126 Remove handling of deferred priority change, and replace by setting the
3127 task priority directly, as required by AI-188.
3129 (Max_Task_Image_Length): New constant.
3130 Replace Warnings (Off) by Unreferenced pragma, cleaner.
3131 (Dynamic_Priority_Support): Removed, no longer needed.
3132 (Poll_Base_Priority_Change): Ditto.
3133 (Set_Ceiling): Add this procedure to change the ceiling priority
3134 associated to a lock. This is a dummy implementation because dynamic
3135 priority ceilings are not supported by the underlying system.
3137 * a-dynpri.adb (Set_Priority): Take into account case where Target is
3138 accepting a RV with its priority boosted.
3139 Remove handling of deferred priority change, and replace by setting the
3140 task priority directly, as required by AI-188.
3142 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
3144 Remove handling of deferred priority change, and replace by setting the
3145 task priority directly, as required by AI-188.
3146 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
3149 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
3150 (Poll_Base_Priority_Change): Removed.
3151 Code clean up: use SSL.Current_Target_Exception.
3153 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
3154 to run as this is a potentially dispatching point.
3155 (Call_Synchronous): Use Local_Defer_Abort.
3156 (Callable): Relax assertion.
3157 (Selective_Wait): Relax assertion in case abort is not allowed.
3158 Remove handling of deferred priority change, and replace by setting the
3159 task priority directly, as required by AI-188.
3161 * s-tasuti.adb (Make_Passive): Adjust assertions.
3162 Remove handling of deferred priority change, and replace by setting the
3163 task priority directly, as required by AI-188.
3165 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3167 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
3168 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
3169 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
3170 system-vxworks-mips.ads, system-vxworks-alpha.ads,
3171 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
3172 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
3173 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
3174 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
3175 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
3176 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
3177 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
3178 This patch changes the largest non-binary modulus from 2**31-1 to
3180 (Compiler_System_Version): Removed, no longer used.
3181 Clean up system files by removing flags only used on a single target.
3182 Also remove obsolete flags, only used during bootstrap from system.ads
3183 (Address): Add a pragma Preelaborable_Initialization.
3185 * system-aix.ads: Ditto.
3186 (GCC_ZCX_Support): Set to true.
3187 Update priority range on AIX and map Ada priorities to target
3188 priorities appropriately for different scheduling policies.
3190 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
3192 2007-06-06 Vincent Celier <celier@adacore.com>
3194 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
3195 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
3197 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
3198 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
3199 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
3200 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3201 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
3202 MLib.Tgt, containing the default versions of the exported subprograms.
3203 For each platform, create a specific version of the body of new child
3204 package MLib.Tgt.Specific that contains only the body of subprograms
3205 that are different from the default.
3206 (Archive_Builder_Append_Options): New function.
3208 2007-06-06 Matthew Gingell <gingell@adacore.com>
3210 * s-osinte-aix.adb: Map Ada priorities to target priorities
3211 appropriately for different scheduling policies.
3213 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3215 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
3217 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
3218 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
3220 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
3222 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
3223 Noop on VMS, added for interface commonality.
3225 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
3226 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3227 Olivier Hainque <hainque@adacore.com>
3229 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
3230 renamed expression of a full renaming at toplevel.
3231 (gnat_to_gnu_entity, case object): If not defining, do not look inside
3232 the values the constant is initialized to if it is an N_Allocator.
3233 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
3234 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
3235 (make_aligning_type): Accept an extra ROOM argument for storage to be
3236 made available before the aligned field, and an extra BASE_ALIGN
3237 argument for callers to pass the alignment guaranteed to be honored for
3238 the whole aligning object. Avoid call to finish_record_type, which only
3239 interferes with the sizes we want to set.
3240 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
3241 make_aligning_type for super-aligned objects on stack.
3242 (components_to_record): Pass the adjusted size of the type when creating
3243 fields in the qualified union for the variant part.
3244 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
3245 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
3247 (maybe_pad_type): Set TYPE_USER_ALIGN.
3248 (make_aligning_type): Likewise.
3249 ALIGN argument is unsigned int.
3250 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
3251 (gnat_to_gnu_param): Likewise, for parameters.
3252 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
3253 if it is constant and stems from a function call.
3254 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
3255 of the record is specified. Adjust accordingly.
3256 (adjust_packed): New static function.
3257 (gnat_to_gnu_field): Use it to adjust the packedness setting.
3258 (components_to_record): Likewise.
3259 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
3260 side-effects if the object is deemed constant.
3261 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
3262 type instead of merely finalizing it. Tidy.
3263 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
3264 <E_Access_Type>: Likewise.
3265 (defer_debug_incomplete_list): Rename to defer_finalize_list.
3266 (defer_debug_level): Delete.
3267 (gnat_to_gnu_entity) <debug_deferred>: Likewise
3268 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
3270 <E_Record_Type>: Do not explicitly defer finalizing the type.
3271 Adjust for write_record_type_debug_info renaming.
3272 <E_Subprogram_Type>: Likewise.
3273 Finalize deferred types right after deferred incomplete types are
3275 (rest_of_type_decl_compilation): New global function.
3276 (components_to_record): Rename defer_debug parameter to do_not_finalize.
3277 (components_to_record): Propagate the packedness to the fields of the
3278 qualified union type if there is a variant part.
3279 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
3280 instead of inline code to adjust the XUT field offsets.
3281 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
3282 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
3283 and write the debug info if the type derives from a discriminated one.
3284 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
3285 <E_Array_Subtype>: Likewise.
3286 <E_String_Literal_Subtype>: Likewise.
3287 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
3288 an alignment clause.
3289 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
3290 before giving warning.
3291 (prepend_one_attribute_to): New function, helper to prepend an attribute
3292 to an attribute list.
3293 (gnat_to_gnu_entity) <E_Procedure>: Use it.
3294 (prepend_attributes): Likewise.
3295 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
3296 <E_Array_Type>: Declare the padding type for the element type, if any.
3297 <E_Array_Subtype>: Likewise.
3298 (defer_limited_with): New variable.
3299 (Gigi_Equivalent_Type): New function.
3300 (gnat_to_gnu_entity): Use it at start and use result throughout.
3301 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
3302 Gigi_Equivalent_Type, support Limited_With, allow two levels of
3303 indirection, precompute if unconstrained array to simplify logic, and
3304 use defer_limited_with to defer elaboration of some types from limited
3306 (finalize_from_with_types): New function.
3308 2007-06-06 Gary Dismukes <dismukes@adacore.com>
3309 Eric Botcazou <ebotcazou@adacore.com>
3310 Tristan Gingold <gingold@adacore.com>
3311 Olivier Hainque <hainque@adacore.com>
3313 * trans.c (Identifier_to_gnu): Change test for deferred constant by
3314 adding guard that the entity is an E_Constant before testing presence
3315 of Full_view (and remove unnecessary test that entity is not a type).
3316 For a CONST_DECL used by reference, manually retrieve
3317 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
3318 (struct language_function): Move from utils.c to here.
3319 (struct parm_attr): New structure.
3320 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
3321 (f_parm_attr_cache): New macro.
3322 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
3323 expressions for the 'First, 'Last and 'Length attributes of the
3324 unconstrained array IN parameters.
3325 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
3326 Allocate the information structure for the function earlier, as well
3327 as the language-specific part.
3328 If the parameter attributes cache has been populated, evaluate the
3329 cached expressions on entry.
3330 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
3331 N_Procedure_Call_Statement and N_Indexed_Component.
3332 (Pragma_to_gnu): Translate inspection_point to an asm statement
3333 containaing a comment and a reference to the object (either its address
3334 for BLKmode or its value).
3335 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
3336 to go to DECL_INITIAL. Together with the size constraint relaxation
3337 in create_var_decl, enlarges the set of situations in which an
3338 identifier may be used as an initializer without implying elaboration
3340 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
3341 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
3343 (maybe_stabilize_reference): Remove lvalues_only parameter.
3344 (gnat_stabilize_reference): Adjust for above change.
3345 (gnat_to_gnu): Do not set location information on the result
3346 if it is a reference.
3347 (add_cleanup): Add gnat_node parameter and set the location of the
3349 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
3350 (Exception_Handler_to_gnu_zcx): Likewise.
3351 (gigi): Remove the cgraph node if the elaboration procedure is empty.
3352 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
3353 the former right after the latter.
3354 (start_stmt_group): Make global.
3355 (end_stmt_group): Likewise.
3356 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
3358 (gnu_program_error_label_stack): Likewise.
3359 (gigi): Initialize them.
3360 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
3361 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
3363 (push_exception_label_stack): New function.
3364 (takes_address): New function.
3366 * utils.c (struct language_function): Move to trans.c from here.
3367 (unchecked_convert): Do not wrap up integer constants in
3369 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
3370 the latter for aggregate types, unexpected by later passes, and relax an
3371 arbitrary size constraint on the former.
3372 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
3373 to compare the sizes.
3374 (convert_vms_descriptor): When converting to a fat pointer type, be
3375 prepared for a S descriptor at runtime in spite of a SB specification.
3376 (shift_unc_components_for_thin_pointers): New function.
3377 (write_record_type_debug_info): For variable-sized fields, cap the
3378 alignment of the pointer to the computed alignment.
3379 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
3380 If REP_LEVEL is 2, do not compute the sizes.
3381 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
3382 (build_unc_object_type): Likewise.
3383 (declare_debug_type): New function.
3385 * ada-tree.def: USE_STMT: removed (not emitted anymore).
3387 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
3388 no statement is expandable anymore.
3389 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
3390 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
3391 when the user requested it explicitely.
3392 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
3394 (get_alias_set): Return alias set 0 for a type if
3395 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
3397 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
3398 (DECL_FUNCTION_STUB): New accessor macro.
3399 (SET_DECL_FUNCTION_STUB): New setter macro.
3401 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
3403 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
3406 2007-06-06 Jose Ruiz <ruiz@adacore.com>
3408 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
3409 Rename to Abort_Task_Interrupt to be able to keep the same interface
3410 as the rest of the targets.
3412 * s-osinte-vxworks.ads s-osinte-vxworks.adb
3413 (To_VxWorks_Priority): Remove explicit "in" mode indicator
3415 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
3418 2007-06-06 Robert Dewar <dewar@adacore.com>
3420 * a-chahan.ads: Remove obsolescent pragmas
3422 * a-chlat1.ads: Minor reformatting
3424 2007-06-06 Robert Dewar <dewar@adacore.com>
3426 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
3429 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
3432 * errout.ads (Finalize): Changed interface
3433 (Output_Messages): New procedure
3434 (Compilation_Errors): New Interface
3436 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
3437 Finalize/Output_Messages interface for Errout
3438 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
3441 2007-06-06 Thomas Quinot <quinot@adacore.com>
3442 Olivier Hainque <hainque@adacore.com>
3443 Robert Dewar <dewar@adacore.com>
3445 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
3447 (Raise_Current_Excep): Call Debug_Raise_Exception just before
3448 propagation starts, to let debuggers know about the event in a reliable
3450 (Local_Raise): Moved to System.Exceptions
3451 More convenient to have this as a separate unit
3453 * s-except.adb, s-except.ads: New files.
3455 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
3456 Debug_Unhandled_Exception in System.Exceptions where it belongs
3457 together with a couple of other debug helpers.
3458 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
3459 the former Unhandled_Exception.
3461 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
3462 (Warn_No_Exception_Propagation): New procedure
3463 (Warn_If_No_Propagation): Rewritten for new warning generation
3464 (Expand_Exception_Handlers): New warning generation
3465 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
3466 (Add_Exception_Label): Use Special_Exception_Package_Used for test
3467 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
3468 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
3469 even if restriction is set (makes life easier in Check_Returns)
3470 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
3471 checking exception identities.
3472 (Expand_Local_Exception_Handlers): Do not optimize when all others case
3473 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
3474 block for handler (used by Check_Returns)
3475 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
3476 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
3477 remove all exception handlers when optimizing local raise statements.
3478 (Find_Local_Handler): Use Get_Renamed_Entity
3479 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
3480 marked analyzed after expanding exception handlers, do not generate
3481 redundant cleanup actions, because they have been constructed already.
3483 2007-06-06 Thomas Quinot <quinot@adacore.com>
3485 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
3486 presence of this categorization pragma is mandated by the language.
3487 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
3490 2007-06-06 Vincent Celier <celier@adacore.com>
3491 Robert Dewar <dewar@adacore.com>
3493 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
3494 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
3495 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
3496 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
3497 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
3498 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
3499 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
3500 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
3501 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
3502 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
3503 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
3505 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
3506 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
3507 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
3508 Use variables of types File_Name_Type and Unit_Name_Type in error
3510 (Get_Name): Add parameter Ignore_Special, and set it reading file name
3511 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
3513 Define flags Flag217-Flag230 with associated subprograms
3514 (Flag_Word5): New record type.
3515 (Flag_Word5_Ptr): New access type.
3516 (To_Flag_Word5): New unchecked conversion.
3517 (To_Flag_Word5_Ptr): Likewise.
3518 (Flag216): New function.
3519 (Set_Flag216): New procedure.
3521 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3523 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
3526 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
3528 2007-06-06 Javier Miranda <miranda@adacore.com>
3530 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
3532 (Object_Specific_Data_Array): This is now internal to the package.
3533 (Object_Specific_Data): This is now internal to the package.
3534 (Select_Specific_Data_Element): This is now internal to the package.
3535 (Select_Specific_Data_Array): This is now internal to the package.
3536 (Select_Specific_Data): This is now internal to the package.
3537 (Offset_To_Top_Function_Ptr): This is now public.
3538 (To_Offset_To_Top_Function_Ptr): Removed.
3539 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
3540 local to subprogram Offset_To_Top.
3541 (Predefined_DT): Removed.
3542 (Typeinfo_Ptr): Removed.
3543 (OSD): This function is now internal to this package.
3544 (SSD): This function is now internal to this package.
3545 (DT): New function that displaces the pointer to the table of primitives
3546 to get access to the enclosing wrapper record.
3547 (IW_Membership): Code cleanup.
3548 (Offset_To_Top): Code cleanup.
3549 (Predefined_DT): Removed.
3550 (Register_Interface_Tag): Removed.
3551 (Set_Interface_Table): Removed.
3552 (Set_Offset_Index): Removed.
3553 (Set_Offset_To_Top): Code cleanup.
3555 (Set_Signature): Removed.
3557 (Set_Tagged_Kind): Removed.
3558 (Typeinfo_Ptr): Removed.
3560 (Displace): Add missing check on null actual.
3562 * exp_disp.ads, exp_disp.adb
3563 (Select_Expansion_Utilities): Removed.
3564 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
3565 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
3566 the interface requires a new parameter.
3567 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
3568 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
3569 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
3570 Done to remove package Select_Expansion_Utilities.
3571 (Make_DT): New implementation for statically allocated dispatch tables.
3572 (Make_Secondary_DT): Moved to the scope of Make_DT.
3573 (Register_Primitive): Code cleanup plus incoporate the use of the new
3574 function DT_Address_Attribute.
3575 (Expand_Interface_Thunk): The profile of this subprogram has been
3576 changed to return the Thunk_Id and the corresponding code.
3577 (Fill_DT_Entry): Removed. Its functionality is now provided by
3578 subprogram Register_Primitive.
3579 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
3580 subprogram Register_Primitive.
3581 (Register_Primitive): New subprogram that incorporates the previous
3582 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
3583 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
3584 was only required to call Make_DT_Access_Action, which is now removed.
3585 (Ada_Actions): Removed
3586 (Action_Is_Proc): Removed
3587 (Action_Nb_Arg): Removed
3588 Replace all the calls to Make_DT_Access_Action by direct calls to
3589 Make_Procedure_Call_Statement or Make_Function_Call.
3590 (Set_DTC_Entity_Value): New subprogram.
3591 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
3592 (Expand_Interface_Thunk): Add missing support for primitives that are
3593 functions with a controlling result (case in which there is no need
3594 to generate the thunk).
3596 * exp_atag.ads, exp_atag.adb
3597 (Build_DT): New subprogram that displaces the pointer to reference the
3598 base of the wrapper record.
3599 (Build_Typeinfo_Offset): Removed.
3600 (RTE_Tag_Node): Removed.
3601 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
3602 (Build_Get_RC_Offset): Removed.
3603 (Build_Inherit_Predefined_Prims): Removed.
3604 (Build_Inherit_TSD: Removed.
3605 (Build_New_TSD): Removed.
3606 (Build_Set_External_Tag): Removed.
3607 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
3608 (Build_Set_Prim_Op_Address): Add documentation.
3609 (Build_Set_TSD): Removed.
3611 * rtsfind.ads, rtsfind.adb
3612 (Load_Fail): If load fails and we are not in configurable run-time
3613 mode, then raise Unrecoverable_Error.
3614 (Text_IO_Kludge): Generate an error message if a run-time library is
3615 not available in a given run-time (ie. zfp run-time).
3616 (RTE_Record_Component): Add code to check that the component we search
3617 for is not found in two records in the given run-time package.
3618 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
3619 (RE_DT_Predef_Prims_Offset): New entity
3620 (RE_Static_Offset_To_Top): New entity
3621 (RE_HT_Link): New entity.
3622 (System_Address_Image): Addition of this run-time package.
3623 (RE_Address_Image): New entity.
3624 (RE_Abstract_Interface): Removed.
3625 (RE_Default_Prim_Op_Count): Removed.
3626 (RE_DT_Entry_Size): Removed.
3627 (RE_DT_Min_Prologue_Size): Removed.
3628 (RE_DT_Prologue_Size): Removed.
3629 (RE_Ifaces_Table_Ptr): Removed.
3630 (RE_Interface_Data_Ptr): Removed.
3631 (RE_Type_Specific_Data): Removed.
3632 (RE_Primary_DT): Removed.
3633 (RE_Register_Interface_Tag): Removed.
3634 (RE_Set_Offset_Index): Removed.
3635 (RE_Set_OSD): Removed.
3636 (RE_Set_SSD): Removed.
3637 (RE_Set_Signature): Removed.
3638 (RE_Set_Tagged_Kind): Removed.
3639 (RE_Address_Array): New entity.
3640 (RE_DT): New entity.
3641 (RE_Iface_Tag): New entity.
3642 (RE_Interfaces_Table): New entity.
3643 (RE_No_Dispatch_Table): New entity.
3644 (RE_NDT_Prims_Ptr): New entity.
3645 (RE_NDT_TSD): New entity.
3646 (RE_Num_Prims): New entity.
3647 (RE_Offset_To_Top_Function_Ptr): New entity.
3648 (RE_OSD_Table): New entity.
3649 (RE_OSD_Num_Prims): New entity.
3650 (RE_Predef_Prims): New entity
3651 (RE_Predef_Prims_Table_Ptr): New entity.
3652 (RE_Primary_DT): New entity.
3653 (RE_Signature): New entity.
3654 (RE_SSD): New entity.
3655 (RE_TSD): New entity.
3656 (RE_Type_Specific_Data): New entity.
3657 (RE_Tag_Kind): New entity.
3659 2007-06-06 Thomas Quinot <quinot@adacore.com>
3661 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
3662 C imported variable.
3663 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
3666 2007-06-06 Robert Dewar <dewar@adacore.com>
3668 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
3671 2007-06-06 Vincent Celier <celier@adacore.com>
3673 * a-tifiio.adb (Put, internal): For negative numbers, check that there
3674 is room for at least one digit and the minus sign.
3675 (Put.Put_Character): Never put a character outside of the range of
3678 2007-06-06 Olivier Hainque <hainque@adacore.com>
3679 Eric Botcazou <ebotcazou@adacore.com>
3681 * utils2.c (build_allocator): Provide the extra arguments to
3682 make_aligning_type for super-aligned objects allocated from the default
3683 pool. Leave enough room for a pointer before the aligning field, and
3684 store the system's allocator return value there.
3685 (build_call_alloc_dealloc): When releasing a super-aligned object,
3686 retrieve the system's allocator return value from where build_allocator
3687 has stored it, just ahead of the adjusted address we are passed.
3688 (build_call_raise): Handle properly the generation of line numbers when
3689 the node is marked No_Location.
3690 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
3691 by using DECL_UID on ties.
3692 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
3694 (build_call_raise): Handle converting exception into goto; support new
3696 (build_component_ref): Add new arg to build_call_raise.
3698 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
3700 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
3701 "." in the case of nnn.xxx when nnn terminates with an underscore.
3702 Parse the remaining "#" or ":" in the case of nnn#.xxx#
3704 2007-06-06 Robert Dewar <dewar@adacore.com>
3706 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
3708 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3709 Vincent Celier <celier@adacore.com>
3710 Robert Dewar <dewar@adacore.com>
3712 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
3714 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
3715 ((destructor)) for adafinal, even when switch -a is used.
3716 Do not issue pragma Linker_Destructor for adafinal when switch -a is
3718 (Gen_Object_Files_Options): Add formatting of Linker Options, when
3719 Output_Linker_Option_List is set. Suppress this formatting when
3720 Zero_Formatting is set.
3721 Add case for CLI_Target.
3722 (System_Restrictions_Used): New flag, used to avoid generating with of
3723 System_Restrictions and initialization of the data unless there is
3724 some use of System.Restrictions in the partition.
3725 (Check_System_Restrictions_Used): New procedure
3727 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
3728 since we only with this unit in the binder file if it is used elsewhere
3731 2007-06-06 Vincent Celier <celier@adacore.com>
3733 * bindusg.adb: Add line for @<response file>
3734 Add lines for new switches -R and -Z
3736 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
3737 hierarchy in the list of files of the closure when -R is used
3738 (Gnatbind): Accept arguments starting with '@' to indicate response
3739 files and take the arguments from the response files.
3740 If List_Closure is set, display the referenced files
3742 2007-06-06 Javier Miranda <miranda@adacore.com>
3743 Robert Dewar <dewar@adacore.com>
3744 Ed Schonberg <schonberg@adacore.com>
3746 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
3747 which the address-clause is applied to in-mode actuals (allowed by
3749 (Apply_Discriminant_Check): Do not generate a check if the type is
3750 constrained by a current instance.
3751 (Activate_Division_Check): New procedure
3752 (Activate_Overflow_Check): New procedure
3753 (Activate_Range_Check): New procedure
3754 Call these new Activate procedures instead of setting flags directly
3755 (Apply_Array_Size_Check): Removed, no longer needed.
3756 Code clean up: remove obsolete code related to GCC 2.
3757 (Get_E_Length): Protect against bomb in case scope is standard
3758 (Selected_Range_Checks): If the node to be checked is a conversion to
3759 an unconstrained array type, and the expression is a slice, use the
3760 bounds of the slice to construct the required constraint checks.
3761 Improve NOT NULL error messages
3762 (Apply_Constraint_Check): If the context is a null-excluding access
3763 type, diagnose properly the literal null.
3765 2007-06-06 Pascal Obry <obry@adacore.com>
3767 * clean.adb (Clean_Archive): Use untouched casing for the archive name
3768 and the corresponding .deps file.
3769 (Clean_Interface_Copy_Directory): Use untouched casing for the library
3770 src directory. Minor code-clean-up. Use untouched casing for files
3771 read into the library src dir.
3772 (Clean_Library_Directory): Idem.
3773 (Parse_Cmd_Line): Accept new switch -aP
3775 2007-06-06 Javier Miranda <miranda@adacore.com>
3776 Ed Schonberg <schonberg@adacore.com>
3777 Robert Dewar <dewar@adacore.com>
3778 Eric Botcazou <ebotcazou@adacore.com>
3779 Arnaud Charlet <charlet@adacore.com>
3781 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
3782 applicable to types that have the With_Type flag set. Returns the
3783 non-limited view of the type, if available, otherwise the type itself.
3784 For class-wide types, there is no direct link in the tree, so we have
3785 to retrieve the class-wide type of the non-limited view of the Etype.
3786 New attributes Static_Initialization and Static_Elaboration_Desired.
3787 Remove the pragma Thread_Body, and the associated flag
3788 Is_Thread_Body in entities, and all related code.
3789 (Suppress_Value_Tracking_On_Call): New flag
3790 E_Exception has Esize and Alignment fields
3791 (Universal_Aliasing): New function.
3792 (Set_Universal_Aliasing): New procedure.
3793 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
3794 (Check_Nested_Access): New procedure.
3795 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
3796 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
3797 (Related_Interface): New attribute. Present in dispatch table pointer
3798 components of records. Set to point to the entity of the corresponding
3800 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
3801 (Original_Access_Type): Remove, not needed.
3802 (Root_Type): Handle properly subtypes of class-wide-types.
3805 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
3806 class-wide types visible through limited-with clauses.
3807 (Try_Primitive_Operation): When examining all primitive operations of a
3808 tagged type, do not consider subprograms labeled as hidden unless they
3809 belong to a private generic type with a tagged parent.
3810 (Try_Object_Operation): Extensive rewriting, to handle properly various
3811 overloading cases, when several ancestors may have class-wide operations
3812 that are possible candidates, and when the overloaded functions return
3813 array types and have defaulted parameters so that the call may be
3814 interpreted as an indexing.
3815 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
3816 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
3817 successive actuals before analyzing the call itself.
3818 (Try_Primitive_Operation): A primitive operation is compatible with the
3819 prefix if the prefix has a synchronized type and the type of the formal
3820 is its corresponding record, as can be the case when the primitive
3821 operation is declared outside of the body of the type.
3822 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
3823 perform homonym traversal, looking for class-wide operation matches
3824 (formerly done in statements of Try_Class_Wide_Operation). Matches on
3825 access parameters are now restricted to anonymous access types.
3826 (Mark_Allocator): An allocator with a discriminant association parent is
3828 (Try_One_Prefix_Interpretation): If the type of the object is
3829 incomplete, as can be happen when it is a limited view obtained through
3830 a limited_with_clause, the selected component is not part of a prefixed
3832 (Complete_Object_Operation): Diagnose properly an object that is not
3833 aliased when the corresponding controlling formal is an access
3835 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
3836 ambiguous calls in prefixed notation, where two primitives differ only
3837 in that the controlling argument of one is an access parameter.
3839 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
3840 whether a function that returns an unconstrained type can be inlined.
3841 (Process_Formals): Diagnose properly the illegal use of an incomplete
3842 type in the profile of an access_to_subprogram declaration.
3843 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
3844 operations are attached to the corresponding record.
3845 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
3846 When processing a primitive of a concurrent type which implements an
3847 interface change the type of all controlling formals to that of the
3848 corresponding record type.
3849 (Check_Synchronized_Overriding): Relax the conditional logic when trying
3850 to determine the tagged type to which a primitive belongs.
3851 (Check_Conventions): Capture condition to ignore a primitive operation
3852 (which is shared between the loop in Check_Conventions and the one in
3853 Check_Convention) in a new local function Skip_Check.
3854 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
3855 confusion with Check_Conventions' own Prim_Op local variable.
3856 (Create_Extra_Formals): Test for a tagged result type rather than a
3857 controlling result when determining whether to add a BIP_Alloc_Form
3858 formal and a BIP_Final_List formal to the function.
3859 (Check_Conformance); For parameters that are anonymous access types,
3860 subtype conformance requires that the not null and the constant
3861 indicators must match
3862 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
3863 to retrieve the appropriate type when processing a concurrent type
3864 declared within a generic. Minor comment reformatting. Change invocation
3865 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
3867 (Analyze_Subprogram_Body): If the return type of a function is an
3868 anonymous access to the limited view of a class-wide type, and the
3869 non-limited view of the type is available, update the type of the
3870 function so that code can be generated.
3871 (Process_Formals): In case of access-subtype itype whose designated
3872 type is also an itype (situation that happens now with access to
3873 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
3874 attribute to avoid backend problems.
3875 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
3876 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
3877 anonymous types' designated types are same before testing
3878 Subtypes_Statically_Match.
3879 (Create_Extra_Formals): Test for a named access parameter that is a
3880 controlling formal as an additional condition for adding an
3881 accessibility level formal. This can occur in the subp type created for
3882 dispatching calls in Expand_Dispatching_Call, and allows calling
3883 Create_Extra_Formals from that procedure rather than special-casing the
3884 extra formals there.
3885 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
3886 when the function has a controlling result.
3887 (Check_Returns): Add much more knowledge of the optimization of local
3888 raise statements to gotos, to retain proper warnings in this case.
3889 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
3890 nodes when looking for last statement.
3892 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
3893 class-wide types visible through limited with clauses.
3894 (Add_One_Interp): If the operands are anonymous access types, the
3895 predefined operator on universal_access is immediately visibles
3896 (Find_Unique_Type): Handle anonymous access to subprogram types just as
3897 other anonymous access types.
3898 (Disambiguate): Take into account CIL convention.
3899 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
3901 2007-06-06 Robert Dewar <dewar@adacore.com>
3903 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
3904 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
3905 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
3906 Fix lower bound of tables.
3909 * nlists.adb: Ditto.
3910 (Prev_Node, Next_Node): Change index type to Int so that it properly
3911 covers the range First_Node_Id - 1 up.
3913 2007-06-06 Javier Miranda <miranda@adacore.com>
3914 Ed Schonberg <schonberg@adacore.com>
3915 Bob Duff <duff@adacore.com>
3916 Hristian Kirtchev <kirtchev@adacore.com>
3918 * exp_aggr.ads, exp_aggr.adb:
3919 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
3920 in extension aggregates.
3921 (Flatten): Other conditions being met, an aggregate is static if the
3922 low bound given by component associations is different from the low
3923 bound of the base index type.
3924 (Packed_Array_Aggregate_Handled): If the component type is itself a
3925 packed array or record, the front-end must expand into assignments.
3926 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
3927 Init_Pr, instead of Ancestor_Is_Expression.
3928 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
3929 coextension chain root, either generate a list controller or use the
3930 already existing one.
3931 (Static_Array_Aggregate): New procedure to construct a positional
3932 aggregate that can be handled by the backend, when all bounds and
3933 components are compile-time known constants.
3934 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
3935 types covering interface types into assignments.
3936 (Replace_Type): move to Build_Record_Aggr_Code.
3937 (Expand_Record_Aggr_Code): if the target of the aggregate is an
3938 interface type, convert to the definite type of the aggregate itself,
3939 so that needed components are visible.
3940 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
3941 components and the context is an extended return statement do not
3942 create a transient block for it, to prevent premature finalization
3943 before the return is executed.
3944 (Gen_Assign): Do not generate a call to deep adjust routine if the
3945 component type is itself an array of controlled (sub)-components
3946 initialized with an inner aggregate.
3947 (Component_Check): New name for Static_Check. This name is now more
3948 appropriate, and documentation is added which was missing.
3949 (Component_Check): Add test for bit aligned component value
3950 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
3951 Tagged_Comps, name is more appropriate given added function below.
3952 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
3954 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
3955 Javier Miranda <miranda@adacore.com>
3956 Robert Dewar <dewar@adacore.com>
3958 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
3959 Terminated: Add unchecked type conversion from System.Address to
3960 System.Tasking.Task_Id when calling the predefined primitive
3962 Disable new Ada 05 accessibility check for JVM.NET targets, which
3963 cannot be implemented in a practical way.
3964 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
3965 the sources always references the tag of the actual object. Therefore,
3966 if 'Tag is applied in the sources to class-wide interface objects we
3967 generate code that displaces "this" to reference the base of the object.
3968 (Expand_N_Attribute_Reference, case Size): Return specified size if
3970 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
3971 has code that displaces the pointer of the object to manage interface
3972 types. However this code must not be executed when the prefix is a
3973 subprogram. This bug caused the wrong expansion of the internally
3974 generated assignment that fills the dispatch table when the primitive
3975 is a function returning a class-wide interface type.
3976 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
3977 Set_Attribute_Name for Name_Unaligned_Valid.
3979 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3980 Gary Dismukes <dismukes@adacore.com>
3982 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
3983 If the initialization is the equivalent aggregate of the initialization
3984 procedure of the type, do not remove it.
3985 (Expand_N_Attribute_Definition_Clause): Exclude access variables
3986 initialized to null from having their expression reset to empty and
3987 note this exception in the comment.
3989 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
3990 Robert Dewar <dewar@adacore.com>
3991 Ed Schonberg <schonberg@adacore.com>
3992 Gary Dismukes <dismukes@adacore.com>
3994 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
3995 Add "with" and "use" clauses for Sem_Attr.
3996 (Expand_Current_Value): Do not replace occurences of attribute
3997 references where the prefix must be a simple name.
3999 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
4000 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
4001 Attribute_Requires_Simple_Name_Prefix.
4002 (Name_Modifies_Prefix): Body of new function.
4003 (Requires_Simple_Name_Prefix): Body of new function.
4004 (Resolve_Attribute, case Access): Improve error message for case of
4005 mismatched conventions.
4006 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
4008 (Analyze_Attribute, case 'Access): If the type of the prefix is a
4009 constrained subtype for a nominal unconstrained type, use its base type
4010 to check for conformance with the context.
4011 (Resolve_Attribute): Remove test of the access type being associated
4012 with a return statement from condition for performing accessibility
4013 checks on access attributes, since this case is now captured by
4014 Is_Local_Anonymous_Access.
4015 (Analyze_Access_Attribute): Set Address_Taken on entity
4016 (Analyze_Attribute, case Address): Set Address_Taken on entity
4017 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
4018 validating an access attribute whose prefix is a current instance.
4019 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
4020 applied to dispatching operations, if freezing is required then we set
4021 the attribute Has_Delayed_Freeze in the prefix's entity.
4022 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
4023 current scope if access of local subprogram taken
4024 (Analyze_Access_Attribute): Check legality of self-reference even if the
4025 expression comes from source, as when a single component association in
4026 an aggregate has a box association.
4027 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
4028 the prefix if it is a protected operation and the attribute is
4029 Unrestricted_Access.
4030 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
4031 reference to the base type of the context, to force a constraint check
4032 when the context is an access subtype with an explicit constraint.
4033 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
4034 node is rewritten as an interface conversion. leave unanalyzed after
4035 resolution, to ensure that type checking against the context will take
4038 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4039 Javier Miranda <miranda@adacore.com>
4040 Robert Dewar <dewar@adacore.com>
4042 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
4043 wrapper when the full view of the controlling type of an inherited
4044 function that dispatches on result implements interfaces.
4045 (Expand_N_Object_Declaration): In cases where the type of the
4046 declaration is anonymous access, create finalization list for it.
4047 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
4048 if the object has no explicit initialization, to match description of
4049 functionality of pragam Persistent_BSS.
4050 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
4051 new function to build static aggregates, to replace initialization call
4052 when static initialization is desired.
4053 (Freeze_Type): Generate a list controller for an access type whenever
4054 its designated type has controlled anonymous access discriminants.
4055 (Build_Equivalent_Aggregate): New procedure to compute a static
4056 aggregate to be used as default initialization for composite types,
4057 instead of a generating a call to the initialization procedure for the
4059 (Build_Initialization_Call): When available, replace a call to the
4060 initialization procedure with a copy of the equivalent static aggregate
4062 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
4063 declarations for objects of a class-wide interface type, rather than
4064 just identifiers, to prevent visibility problems.
4065 (Expand_N_Object_Declaration): When expanding the declaration for an
4066 object of a class-wide interface type, preserve the homonym chain of
4067 the original entity before exchanging it with that of the generated
4068 renaming declaration.
4069 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
4070 active, because there is no way to handle the exception.
4071 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
4072 to do a minimum decoration of the Access_Disp_Table list.
4073 (Expand_Record_Controller): Avoid the addition of the controller between
4074 the component containing the tag of a secondary dispatch table and its
4075 adjacent component that stores the offset to the base of the object.
4076 This latter component is only generated when the parent type has
4077 discriminants ---documented in Add_Interface_Tag_Components).
4078 (Apply_Array_Size_Check): Removed, no longer needed.
4079 (Expand_N_Full_Type_Declaration): If the type has anonymous access
4080 components, create a Master_Entity for it only if it contains tasks.
4081 (Build_Init_Procedure): Suppress the tag assignment compiling under
4083 (Freeze_Record_Type): Remove code associated with creation of dispatch
4085 (Init_Secondary_Tags): Update type of actuals when generating calls to
4086 Ada.Tags.Set_Offset_To_Top
4087 (Stream_Operation_OK): Disable use of streams compiling under no
4089 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
4090 if Has_Init_Expression set.
4091 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
4092 Register_Primitive, which provides the same functionality.
4093 (Requires_Init_Proc): Return false in case of interface types.
4094 (Add_Secondary_Tables): Use the new attribute Related_Interface to
4096 (Predefined_Primitive_Freeze): Do not assume that an internal entity
4097 is always associated with a predefined primitive because the internal
4098 entities associated with interface types are not predefined primitives.
4099 Therefore, the call to Is_Internal is replaced by a call to the
4100 function Is_Predefined_Dispatching_Operation.
4101 (Make_Eq_If): When generating the list of comparisons for the
4102 components of a given variant, omit the controller component that is
4103 present if the variant has controlled components.
4105 2007-06-06 Javier Miranda <miranda@adacore.com>
4106 Hristian Kirtchev <kirtchev@adacore.com>
4107 Bob Duff <duff@adacore.com>
4109 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
4110 handle the creation of finalization lists and calls for nested
4111 coextensions when the root of the chains is part of a return statement.
4112 (Inside_A_Return_Statement): New function inside Complete_Coextension_
4114 (Expand_Record_Equality): Skip components that are interface types.
4115 (Displace_Allocator_Pointer): Add missing support for interface subtypes
4116 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
4117 with Rewrite_Coextension. Change the condition for detecting coextension
4119 (Is_Local_Access_Discriminant): Removed.
4120 (Rewrite_Coextension): New routine which rewrites a static coextension
4121 as a temporary and uses its unrestricted access in the construction of
4123 (Complete_Coextension_Finalization): New routine. Generate finalization
4124 attachment calls to all delayed coextensions.
4125 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
4126 the allocator is not a coextension itself and has delayed coextensions.
4127 If the current allocator is controlled, but also a coextension, delay
4128 the generation of the finalization attachment call.
4129 Rename local variable "Node" to "Nod" in order to avoid confusion with
4131 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
4132 limited types that are not inherently limited. Such an allocator is
4133 illegal, but is generated by the expander for a return statement, to
4134 copy the result onto the secondary stack. This is the only case where a
4135 limited object can be copied. Generate code to displace the pointer
4136 to the object if the qualified expression is a class-wide interface
4137 object. Such displacement was missing and hence the copy of the object
4139 (Apply_Accessibility_Check): Handle allocated objects initialized in
4141 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
4142 and Expand_Allocator_Expression. Allocating class-wide interface objects
4143 this routine displaces the pointer to the allocated object to reference
4144 the component referencing the corresponding secondary dispatch table.
4145 Expand_Allocator_Expression): Add missing support to allocate class-wide
4146 interface objects initialized with a qualified expression.
4147 (Get_Allocator_Final_List): Test for an anonymous access type that is a
4148 function result type, and use the finalization list associated with the
4149 function scope in that case (such an anonymous type should not be
4150 treated like an access parameter's type).
4152 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4153 Gary Dismukes <dismukes@adacore.com>
4154 Javier Miranda <miranda@adacore.com>
4156 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
4157 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
4158 required exception handler.
4159 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
4160 properly the case of a function whose return type is a limited
4161 class-wide interface type. Modify the code of the accessibility
4162 check to handle class-wide interface objects. In this case we need to
4163 displace "this" to reference the primary dispatch table to get access
4164 to the TSD of the object (to evaluate its accessibility level).
4165 (Expand_N_Extended_Return_Statement): Test for a tagged result type
4166 rather than a controlling result as one of the conditions for
4167 generating tests of the implicit BIP_Alloc_Form formal. The
4168 initialization assignment is also handled according to whether the
4169 result is tagged instead of controlling.
4170 In the case where the init assignment is inserted in the "then" part of
4171 the allocation conditional, rewrite the target to be a dereference of
4172 the implicit BIP_Object_Access formal.
4173 If the returned value is unconstrained and created on the secondary
4174 stack, mark the enclosing block and function so that the secondary
4175 stack is not reclaimed on return.
4176 Treat returns from functions with controlling results similarly to
4177 returns from functions with unconstrained result subtypes.
4178 If the object returned is unconstrained, and an allocator must be
4179 created for it, analyze the allocator once the block for the extended
4180 return is installed, to ensure that finalizable components
4181 of the expression use the proper finalization list. Guard the call to
4182 Move_Final_List with a check that there is something to finalize.
4183 (Make_Tag_Ctrl_Assignment): Use "old" handling
4184 of controlled type assignment for virtual machines, since new code uses
4185 unsupported features (such as direct access to bytes in memory).
4187 2007-06-06 Gary Dismukes <dismukes@adacore.com>
4188 Ed Schonberg <schonberg@adacore.com>
4190 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
4191 accessibility actual, check for the case of an aliased object that has
4192 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
4193 we fall into processing for the attribute rather than the name of the
4195 (Expand_Inline_Call): If an actual is a literal, and the corresponding
4196 formal has its address taken in the body, create a temporary to capture
4197 value. If the return type is a limited interface, do not treat the
4198 return value as Controlled.
4199 (Is_In_Place_Function): If the return type is a limited interface,
4200 treat as returning in place. The actual returned object may not always
4201 be limited, but the caller has to assume that it is returned in place.
4202 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
4203 context of an allocator, use the correct finalization chain (that is,
4204 the chain belonging to the access type, rather than the chain belonging
4205 to the current scope).
4206 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
4207 result type rather than a controlling result as a precondition for
4208 adding an allocation form actual to a build-in-place call.
4209 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
4210 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
4211 primitive in the dispatch tables. This work is now done by Make_DT when
4213 (Register_Predefined_DT_Entry): Removed.
4214 (Add_Return): If end label is not present, use sloc of last statement
4215 for generated return statement in procedure, for better gdb behavior
4217 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
4218 object address nodes to ensure proper processing by routines like
4220 (Expand_Call): Fix generation of validity check for parameter
4221 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
4222 the allocation form parameter if the result subtype is constrained,
4223 except when the function has a controlling result.
4224 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
4225 rather than Is_Controlled and Has_Controlled_Component, since we want to
4226 include class-wide result types in this treatment. Also test for a
4227 controlling result, since that also requires passing a finalization
4229 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
4230 even when the result subtype is constrained, to handle calls involving
4231 controlling results.
4232 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
4233 is now called even when the result subtype is constrained, to handle
4234 calls involving controlling results.
4235 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
4236 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
4237 now performs the test).
4238 (Make_Build_In_Place_Call_In_Object_Declaration):
4239 Add_Alloc_Form_Actual_* is now called even when the result subtype is
4240 constrained, to handle calls involving controlling results.
4241 (Add_Return): Accomodate rewritten pattern from local raise to goto
4242 transformation, so that we still recognize an transfer statement
4243 and do the right thing here in that case.
4244 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
4245 and end of subprogram code.
4246 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
4247 support for primitives that are functions (without formals) with a
4249 (Inherited_From_Formal): If the actual subtype has not generic parent
4250 type, it is not an actual for a formal derived type, and there is no
4251 operation to inherit from the formal.
4253 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4254 Thomas Quinot <quinot@adacore.com>
4256 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
4257 inserted cleanup code appropriately for GDB use.
4258 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
4259 exception handler for Deep_Adjust or Deep_Finalize.
4260 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
4261 Raise_From_Controlled_Operation is available, use a call to that
4262 subprogram instead of a plain "raise Program_Error" node to raise
4263 Program_Error if an exception is propagated from an Adjust or Finalize
4265 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
4266 appears in the optional statement list of a triggering alternative, the
4267 scope actions can be inserted directly there, and not in the list that
4268 includes the asynchronous select itself.
4270 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4271 Robert Dewar <dewar@adacore.com>
4272 Hristian Kirtchev <kirtchev@adacore.com>
4274 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
4275 generated exception handler appropriately when debugging generated code.
4276 Deal properly with No_Exception_Propagation restriction mode.
4277 (Expand_N_Abort_Statement): Add an unchecked type conversion from
4278 System.Address to System.Tasking.Task_Id when processing the result of
4279 the predefined primitive _disp_get_task_id.
4280 (Expand_N_Asynchronous_Select): Clarify comment.
4281 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
4282 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
4283 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
4284 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
4285 privals and for generated call to Complete_Entry_Body, for better gdb
4287 (Copy_Result_Type): Utility to construct a parameter and result profile
4288 for protected functions whose return type is an anonymous access to
4290 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
4292 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
4293 point when the local-raise-to-goto transformation has taken place.
4295 2007-06-06 Javier Miranda <miranda@adacore.com>
4296 Nicolas Setton <setton@adacore.com>
4298 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
4299 functionality when the backend is generating code.
4300 Otherwise any serious error
4301 reported by the backend calling the frontend routine Error_Msg
4302 changes the Compilation_Mode to Check_Semantics, disables the
4303 functionality of this routine and causes the generation of
4304 spureous additional errors.
4306 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
4307 debugging information now generated by the compiler for fat-pointer
4309 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
4311 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
4313 2007-06-06 Thomas Quinot <quinot@adacore.com>
4315 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
4316 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
4317 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
4318 For a remote call to a function with a classwide return type, apply an
4319 E.4(18) check to the returned value.
4320 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
4321 stream attributes of the designated type of an RACW, as they are not
4322 dispatching primitive operations.
4324 2007-06-06 Geert Bosch <bosch@adacore.com>
4326 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
4328 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
4330 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
4331 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
4333 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
4335 2007-06-06 Javier Miranda <miranda@adacore.com>
4337 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
4338 attribute compiling package Ada.Tags under No_Run_Time_Mode.
4340 2007-06-06 Javier Miranda <miranda@adacore.com>
4342 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
4343 deallocation of class-wide interface objects.
4344 (Expand_Dispatching_Constructor_Call): Take into account that if the
4345 result of the dispatching constructor is an interface type, the
4346 function returns a class-wide interface type; otherwise the returned
4347 object would be actual. The frontend previously accepted returning
4348 interface types because Expand_Interface_Actuals silently performed
4349 the management of the returned type "as if" it were a class-wide
4351 (Expand_Dispatching_Constructor_Call): Replace call to
4352 Make_DT_Access_Action by direct call to Make_Function_Call.
4354 2007-06-06 Robert Dewar <dewar@adacore.com>
4355 Ed Schonberg <schonberg@adacore.com>
4357 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
4358 compute masking constant, since we now set Esize properly to the
4360 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
4361 to match the alignment.
4362 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
4363 packed arrays of 8 bits or less.
4365 * freeze.adb (Freeze_Entity): When freezing the formals of a
4366 subprogram, freeze the designated type of a parameter of an access type
4367 only if it is an access parameter.
4368 Increase size of C convention enumeration object
4369 (Freeze_Entity, array type case): Make sure Esize value is properly
4370 adjusted for the alignment if it is known.
4371 (Freeze_Entity, array type case): When checking bit packed arrays for
4372 the size being incorrect, check RM_Size, not Esize.
4373 (Freeze_Record_Type): Check for bad discriminated record convention
4374 (In_Exp_Body): Return true if the body is generated for a subprogram
4375 renaming, either an attribute renaming or a renaming as body.
4376 (Check_Itype): If the designated type of an anonymous access component
4377 is a non-protected subprogram type, indicate that it is frozen, to
4378 prevent out-of-scope freeze node at some subsequent call.
4379 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
4380 only if the subprogram is neither imported nor exported, as well as the
4381 NCA descriptor class if the subprogram is exported.
4383 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4384 Arnaud Charlet <charlet@adacore.com>
4385 Robert Dewar <dewar@adacore.com>
4386 Gary Dismukes <dismukes@adacore.com>
4388 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
4389 default initialization on an imported object, when there is no
4390 initialization call generated for it.
4391 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
4394 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
4395 Static_Elaboration_Desired.
4396 Remove pragma Thread_Body.
4397 Implement a new pragma No_Body
4398 Removes the Explicit_Overriding pragma
4399 Remove Optional_Overriding pragma
4400 (Prag): Deal with Universal_Aliasing.
4401 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
4402 Pragma_CIL_Constructor): New names.
4404 * sem_cat.adb (Validate_Object_Declaration): An initialization that
4405 uses the equivalent aggregate of a type must be treated as an implicit
4407 (Get_Categorization): Check a unit for pragma Preelaborate only if it
4408 has none of the other categories.
4409 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
4410 to apply Import to an object renaming declaration.
4412 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
4413 from a C++ class should be declared as limited and that it will be
4414 considererd limited.
4415 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
4416 should be declared as limited and that it will be considererd limited.
4417 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
4418 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
4419 (Analyze_Pragma): Deal with Universal_Aliasing.
4420 (Sig_Flags): Likewise.
4421 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
4422 (Overflow_Checks_Unsuppressed): New flag.
4423 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
4424 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
4425 case of JVM or .NET targets, and compiling user code.
4426 Add debugging convenience routine rv
4428 2007-06-06 Robert Dewar <dewar@adacore.com>
4430 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
4432 (Build_Elementary_Input_Call): For floating-point use right type in the
4433 absence of strange size or stream size clauses.
4434 (Build_Elementary_Write_Call): Same fix
4435 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
4436 set to value that does not match base type size.
4438 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4440 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
4441 object of a limited type can be initialized with a call to a function
4442 that returns in place. If the limited type has unknown discriminants,
4443 and the underlying type is a constrained composite type, build an actual
4444 subtype from the function call, as is done for private types.
4445 (Side_Effect_Free): An expression that is the renaming of an object or
4446 whose prefix is the renaming of a object, is not side-effect free
4447 because it may be assigned through the renaming and its value must be
4448 captured in a temporary.
4449 (Has_Controlled_Coextensions): New routine.
4450 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
4451 as is done for other limited types.
4452 (Non_Limited_Designated_Type): new predicate.
4453 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
4455 Remove all handling of with_type clauses.
4457 * par-ch10.adb: Remove all handling of with_type clauses.
4459 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
4460 checksum if the main source could not be parsed.
4461 (Loat_Unit): When processing a child unit, determine properly whether
4462 the parent unit is a renaming when the parent is itself a child unit.
4463 Remove handling of with_type clauses.
4465 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
4466 (Set_Is_Static_Coextension): New procedure.
4467 (Has_Local_Raise): New function
4468 (Set_Has_Local_Raise): New procedure
4469 (Renaming_Exception): New field
4470 (Has_Init_Expression): New flag
4471 (Delay_Finalize_Attach): Remove because flag is obsolete.
4472 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
4473 Remove all handling of with_type clauses.
4474 (Exception_Junk): Can now be set in N_Block_Statement
4476 2007-06-06 Vincent Celier <celier@adacore.com>
4477 Robert Dewar <dewar@adacore.com>
4479 * frontend.adb (Frontend): Return immediately if the main source could
4480 not be parsed, because of preprocessing errors.
4482 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
4483 (Gnat1drv): Exit with errors if the main source could not be parsed,
4484 because of preprocessing errors.
4485 (Check_Rep_Info): New procedure
4487 2007-06-06 Robert Dewar <dewar@adacore.com>
4489 * g-hesorg.ads, g-heasor.ads,
4490 g-busorg.ads, g-bubsor.ads: Update documentation
4491 GNAT.Heap/Bubble_Sort_G is now pure
4493 2007-06-06 Robert Dewar <dewar@adacore.com>
4495 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
4497 2007-06-06 Robert Dewar <dewar@adacore.com>
4498 Ed Schonberg <schonberg@adacore.com>
4500 * g-comlin.ads, g-comlin.adb:
4501 Add new warning for renaming of function return objects
4503 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
4504 (Tree_Read): Use size of object instead of type'object_size, since the
4505 latter is incorrect for packed array types.
4506 (Tree_Write): Same fix
4508 * opt.ads: Add new warning for renaming of function return objects
4509 (Generating_Code): New boolean variable used to indicate that the
4510 frontend as finished its work and has called the backend to process
4511 the tree and generate the object file.
4512 (GCC_Version): Is now private
4513 (Static_Dispatch_Tables): New constant declaration.
4514 (Overflow_Checks_Unsuppressed): New flag.
4515 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
4516 (List_Closure): New flag for gnatbind (-R)
4517 Zero_Formatting: New flag for gnatbind (-Z)
4518 (Special_Exception_Package_Used): New flag.
4519 (Warn_On_Unrepped_Components): New flag.
4521 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
4522 unit is a compilation unit, rather than relying on its scope, so that
4523 Standard can be renamed.
4524 (Analyze_Object_Renaming): Add new warning for renaming of function
4526 Also reject attempt to rename function return object in Ada 83 mode.
4527 (Attribute_Renaming): In case of tagged types, add the body of the
4528 generated function to the freezing actions of the type.
4529 (Find_Type): A protected type is visible right after the reserved word
4530 "is" is encountered in its type declaration. Set the entity and type
4531 rather than emitting an error message.
4532 (New_Scope): Properly propagate Discard_Names to inner scopes
4533 (Check_Nested_Access): New procedure.
4534 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
4535 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
4537 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
4538 Add new warning for renaming of function return objects
4539 (Check_References): Suppress warnings for objects whose type or
4540 base type has Warnings suppressed.
4541 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
4542 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
4544 2007-06-06 Vincent Celier <celier@adacore.com>
4545 Emmanuel Briot <briot@adacore.com>
4546 Olivier Hainque <hainque@adacore.com>
4548 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
4549 absolute value of Header.Block_Size when displaying the freed physical
4551 (Allocate): Compute Storage_Address using Integer_Address, not
4552 Storage_Offset, because the range of Storage_Offset may not be large
4554 (Configure): New parameter Low_Level_Traces
4555 (Allocate, Deallocation, Free_Physically): Added low-level traces
4556 (Configure): new parameter Errors_To_Stdout.
4557 (Output_File): new subprogram
4558 (Deallocate, Dereference): Send error messages to the proper stream
4559 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
4560 documented. Previous code would send it to the current output file
4561 defined in GNAT.IO, which might not be stdout
4562 (Is_Valid): Adjust comment to mention that a positive reply means that
4563 Header_Of may be used to retrieve the allocation header associated with
4564 the subprogram Storage address argument. Return False early if this
4565 address argument is misaligned.
4567 2007-06-06 Vincent Celier <celier@adacore.com>
4569 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
4571 (ASIS_Main): New global variable
4572 (Get_Closure): New procedure
4573 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
4574 check, metric or pretty. Call Get_Closure in this case.
4575 (Check_Files): For GNAT LIST, check all sources of all projects when
4576 All_Projects is True.
4577 (GNATCmd): Accept -U for GNAT LIST
4579 2007-06-06 Vincent Celier <celier@adacore.com>
4581 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
4583 Correct error message when invocation of the linker fails
4584 Add explicit size clause for the C imported variables
4585 Object_List_File_Supported and Using_GNU_Linker to emphasize that
4586 we expect char size.
4587 Read target parameters earlier, since this is needed to set
4588 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
4591 2007-06-06 Vincent Celier <celier@adacore.com>
4594 Add 3 spaces before the default project directory when displaying
4595 the project search path.
4596 Add new command line switch '-l' to display license information.
4598 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
4600 * gmem.c: Add support for timestamps on memory operations.
4602 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
4603 operations (not used currently, just foundation for future
4604 enhancements). Add possibility to perform full dump of gmem.out file.
4605 (Print_Back_Traces): Declare accesses to root arrays constants since
4606 they aren't modified.
4607 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
4609 2007-06-06 Vincent Celier <celier@adacore.com>
4611 * gnatsym.adb: Update Copyright notice
4612 (Parse_Cmd_Line): Accept new switch -D
4613 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
4616 * prj.ads (Policy): New policy Direct
4617 (Yes_No_Unknown): New enumeration type
4618 (Project_Data): New component Libgnarl_Needed
4620 * prj-nmsc.adb (Check_For_Source): When recording a source file make
4621 use the untouched pathname casing.
4622 (Get_Directories): Ensure that the Display_Exec_Directory is using the
4623 proper casing on non case-sensitive platforms like Windows.
4624 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
4625 on all platforms, as it is not possible to know which one is allowed
4626 before processing the project files.
4627 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
4628 specified when symbol policy is Direct. Check that when there is a
4629 symbol file defined (either by default or with attribute
4630 Library_Symbol_File) it is not the same as the reference symbol file.
4631 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
4632 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
4634 (Record_Ada_Source): Record a source that has been locally removed in an
4637 * symbols.ads (Policy): New policy Direct
4639 * symbols-vms.adb (Initialize): Take new policy Direct in case
4642 2007-06-06 Vincent Celier <celier@adacore.com>
4644 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
4645 Correct obvious bug (return Dir; instead of return Directory;).
4646 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
4648 2007-06-06 Thomas Quinot <quinot@adacore.com>
4650 * g-pehage.adb (Produce): Open output files in Binary mode, so that
4651 they have UNIX line endings (LF only) even on Windows, and thus pass
4652 all GNAT style checks.
4654 2007-06-06 Emmanuel Briot <briot@adacore.com>
4656 * g-regpat.adb (Quote): Fix improper quoting of '.'
4658 2007-06-06 Thomas Quinot <quinot@adacore.com>
4660 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
4661 default, set False on a per-runtime basis.
4662 (Need_Netdb_Buffer): New constant.
4664 * g-socket.ads, g-socket.adb: Import new package
4665 GNAT.Sockets.Thin.Task_Safe_NetDB.
4666 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
4667 binding to obtain proper message.
4668 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
4669 Replace various occurrences of Arry (Arry'First)'Address with the
4670 equivalent Arry'Address (GNAT always follows implementation advice from
4672 (Get_Host_By_Address, Get_Host_By_Name,
4673 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
4674 instead, rely on platform-specific task safe netdb operations provided
4677 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
4678 parameter Process_Blocking_IO.
4679 (Host_Error_Messages): Add stub body.
4680 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
4681 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
4682 Safe_Getservbyport): Move functions into new child package
4684 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
4685 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
4686 (In_Addr): Add alignment clause.
4688 2007-06-06 Robert Dewar <dewar@adacore.com>
4690 * g-trasym.ads, g-traceb.ads: Update list of supported targets
4691 Add note about symbolic traceback
4693 2007-06-06 Pascal Obry <obry@adacore.com>
4695 * hostparm.ads (Normalized_CWD): Use the host directory separator
4696 instead of the hardcoded forward slash which is not the proper
4697 character on Windows for example.
4700 2007-06-06 Vincent Celier <celier@adacore.com>
4701 Arnaud Charlet <charlet@adacore.com>
4703 * a-clrefi.adb, a-clrefi.ads: New files
4705 * impunit.adb: Add s-os_lib in the list of user visible units.
4706 (Non_Imp_File_Names_95): Add a-clrefi to this list
4707 Remove obsolete run-time entries.
4708 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
4709 "a-exetim" -- Ada.Execution_Time
4710 "a-extiti" -- Ada.Execution_Time.Timers
4712 * mlib-prj.ads, mlib-prj.adb
4713 (Build_Library): Use untouched object dir and library dir. At the
4714 same time makes sure that the checks are done using the canonical
4715 form. Removes hard-coded directory separator and use the proper host
4717 (Process_Project): Do not look in object directory to check if libgnarl
4718 is needed for a library, if there is no object directory.
4719 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
4721 (Build_Library): When invoking gnatbind, use a response file if the
4722 total size of the arguments is too large.
4724 * Makefile.rtl: (g-sttsne): New object file.
4725 Add entry for a-clrefi, s-utf_32, System.Exceptions
4727 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
4728 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
4729 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
4730 Change g-string to s-string, g-os_lib to s-os_lib
4731 Change all g-utf_32 references to s-utf_32
4733 2007-06-06 Tristan Gingold <gingold@adacore.com>
4734 Olivier Hainque <hainque@adacore.com>
4736 * init.c: Do not adjust IP of an imported VMS exception of ia64.
4737 LIB$STOP is called to raise an exception and the IP of the exception
4738 is the instruction right after the call.
4739 (__gnat_adjust_context_for_raise, AIX): Implement.
4740 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
4741 adjust_context_for_raise before Raise_From_Signal_Hanler.
4742 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
4743 siginfo is passed to the handler, necessary to let the zcx propagation
4744 engine unwind past it.
4746 2007-06-06 Olivier Hainque <hainque@adacore.com>
4748 * initialize.c (__gnat_initialize for vxworks): Update documentation
4749 on the ZCX support, using different sets of crtstuff objects than with
4752 2007-06-06 Robert Dewar <dewar@adacore.com>
4754 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
4756 (Layout_Type): Fix recomputation of size from alignment.
4758 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4759 Javier Miranda <miranda@adacore.com>
4761 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
4762 association in an instance.
4763 (Copy_Generic_Node): If the node is a string literal, no need to copy
4765 (Is_Generic_Formal): For a formal subprogram, the declaration is the
4766 grandparent of the entity.
4767 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
4768 to simplify handling of formal interfaces that derive from other formal
4770 (Instantiate_Subprogram_Body): The defining unit name of the body of
4771 the instance should be a defining identifier.
4772 (Install_Formal_Packages): make global to the package, for use in
4773 instantiations of child units.
4774 (Analyze_Package_Instantiation): Do not attempt to set information on an
4775 enclosing master of an entry when expansion is disabled.
4776 (Instantiate_Type): If the actual is a tagged synchronized type and the
4777 generic ancestor is an interface, create a generic actual for the
4778 corresponding record.
4779 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
4780 declaration, to ensure that the interface list is processed correctly.
4781 (Inline_Instance_Body): If enclosing scope is an instance body, remove
4782 its entities from visibiility as well.
4783 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
4784 given with a named association, analyze the expression only, not the
4785 discriminant association itself.
4786 (Reset_Entity): If the analysis of a selected component is transformed
4787 into an expanded name in the prefix of a call with parameters, do not
4788 transform the original node into an expanded name, to prevent visibility
4789 errors in the case of nested generics.
4790 (Check_Private_View): For an array type, check whether the index types
4791 may need exchanging.
4793 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4794 Vincent Celier <celier@adacore.com>
4796 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
4797 since both are separated.
4798 Add support for imported CIL packages.
4799 Add further special handling of "value_type" for CIL.
4800 Add special handling of pragma Import for CIL.
4802 * make.ads, make.adb: When switch -eS is used, direct all outputs to
4803 standard output instead of standard error, except errors.
4804 (Absolute_Path): Use untouched casing for the parent directory.
4805 (Add_Library_Search_Dir): Use the untouched directory name.
4806 (Add_Source_Search_Dir): Idem.
4807 (Change_To_Object_Directory): Update output to use proper casing.
4808 (Create_Binder_Mapping_File): Use the untouched filename to set
4810 (Gnatmake): Use untouched library and executable directory names.
4811 (Insert_Project_Sources): Use untouched filename for spec and body.
4812 (Is_In_Object_Directory): Use untouched object directory.
4813 (Mark_Directory): Idem.
4814 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
4815 contains the non-canonical filename in all cases.
4816 (Change_To_Object_Directory): In verbose mode, display the name of the
4817 object directory we're changing to.
4818 (Compile_Sources): Make sure, when a project file is used, to compile
4819 the body of the unit, when there is one, even when only the spec is
4820 recorded in an ALI file.
4821 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
4823 (Report_Compilation_Failed): New procedure
4824 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
4825 procedures moved from the spec to the body.
4826 (Extract_Failure): Removed, not used
4827 Replace explicit raises of exception Bind_Failed and Link_Failed with
4828 calls to Make_Failed with the proper message.
4829 Replace explicit raises of exception Compilation_Failed with calls to
4830 procedure Report_Compilation_Failed.
4831 (Initialize): Create mapping files unconditionally when using project
4834 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
4835 Pragma_CIL_Constructor): New names.
4837 * targparm.ads, targparm.adb
4838 (Compiler_System_Version): Removed, no longer used.
4839 (Get_Target_Parameters): Relax checks on system.ads validity. Add
4840 handling of two new system flags: JVM and CLI.
4842 2007-06-06 Jose Ruiz <ruiz@adacore.com>
4843 Arnaud Charlet <charlet@adacore.com>
4845 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
4846 time, use the default s-interr body that provides interrupt support
4848 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
4849 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
4850 g-soccon.ads, and s-taprop.adb for the marte run time.
4851 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
4852 timers are supported on marte.
4853 (EH_MECHANISM for marte): Do not use ZCX.
4854 (THREADSLIB for marte): Use -lmarte.
4855 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
4856 Add mlib-tgt-specific.o to gnatmake objects
4857 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
4859 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
4860 6, either kernel or rtp, use a specialized version of s-osinte.ads.
4862 2007-06-06 Pascal Obry <obry@adacore.com>
4864 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
4866 2007-06-06 Vincent Celier <celier@adacore.com>
4868 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
4869 separator, use instead the proper host directory separator.
4870 (Copy_ALI_Files): Make sure that an already existing ALI file in the
4871 ALI copy dir is writable, before doing the copy.
4873 * mlib-utl.ads, mlib-utl.adb:
4874 (Gcc): If length of command line is too long, put the list of object
4875 files in a response file, if this is supported by the platform.
4876 (Ar): If invocation of the archive builder is allowed to be done in
4877 chunks and building it in one shot would go above an OS dependent
4878 limit on the number of characters on the command line, build the archive
4881 2007-06-06 Vincent Celier <celier@adacore.com>
4883 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
4884 of specified object file is not equal to base name of source.
4886 2007-06-06 Javier Miranda <miranda@adacore.com>
4887 Hristian Kirtchev <kirtchev@adacore.com>
4888 Ed Schonberg <schonberg@adacore.com>
4890 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
4891 the full type declaration.
4892 (Analyze_Component_Declaration): Add local variable E to capture the
4893 initialization expression of the declaration. Replace the occurences of
4894 Expression (N) with E.
4895 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
4896 limited interface object with a function call.
4897 (Array_Type_Declaration): If the declaration lacks subtype marks for
4898 indices, create a simple index list to prevent cascaded errors.
4899 (Is_Null_Extension): Ignore internal components created for secondary
4900 tags when checking whether a record extension is a null extension.
4901 (Check_Abstract_Interfaces): Add missing support for interface subtypes
4902 and generic formals.
4903 (Derived_Type_Declaration): Add missing support for interface subtypes
4904 and generic formals.
4905 (Analyze_Object_Declaration): If an initialization expression is
4906 present, traverse its subtree and mark all allocators as static
4908 (Add_Interface_Tag_Component): When looking for components that may be
4909 secondary tags, ignore pragmas that can appear within a record
4911 (Check_Abstract_Overriding): an inherited function that dispatches on
4912 result does not need to be overriden if the controlling type is a null
4914 (Mentions_T): Handle properly a 'class attribute in an anonymous access
4915 component declaration, when the prefix is an expanded name.
4916 (Inherit_Component): If the derivation is for a private extension,
4917 inherited components remain visible and their ekind should not be set
4919 (Find_Type_Of_Object): In the case of an access definition, always set
4920 Is_Local_Anonymous_Access. We were previously not marking the anonymous
4921 access type of a return object as a local anonymous type.
4922 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
4923 range with character literal bounds.
4924 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
4925 (Access_Subprogram_Declaration): Indicate that the type declaration
4926 depends on an incomplete type only if the incomplete type is declared
4928 (Analyze_Subtype_Declaration): Handle properly subtypes of
4929 synchronized types that are tagged, and that may appear as generic
4931 (Access_Subprogram_Declaration): An anonymous access to subprogram can
4932 appear as an access discriminant in a private type declaration.
4933 (Add_Interface_Tag_Components): Complete decoration of the component
4934 containing the tag of a secondary dispatch table and the component
4935 containing the offset to the base of the object (this latter component
4936 is only generated when the parent type has discriminants --as documented
4938 (Inherit_Components): Use the new decoration of the tag components to
4939 improve the condition that avoids inheriting the components associated
4940 with secondary tags of the parent.
4941 (Build_Discriminanted_Subtype): Indicate to the backend that the
4942 size of record types associated with dispatch tables is known at
4944 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
4945 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
4946 to include task, protected, and synchronized interfaces as limited
4948 (Process_Discriminants): Remove the setting of
4949 Is_Local_Anonymous_Access on the type of (anonymous) access
4950 discriminants of nonlimited types.
4951 (Analyze_Interface_Type_Declaration): Complete the decoration of the
4952 class-wide entity it is is already present. This situation occurs if
4953 the limited-view has been previously built.
4954 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
4956 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
4959 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4961 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
4962 of the type that specify the position of interface tags when the type
4963 inherits discriminated array components from the parent type.
4964 If a component is initialized with a box, check for the presence of a
4965 default expression in its declaration before using its default
4966 initialization procedure.
4967 (Resolve_Record_Aggregate): If a component is box-initialized, and the
4968 component type has a discriminants, create a partial aggregate for it
4969 by copying the discriminants of the component subtype.
4970 Reject attempt to initialize a discriminant with a box.
4971 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
4972 associated with dispatch tables is known at compile time.
4973 (Get_Value): If an association in a record aggregate has a box
4974 association, and the corresponding record component has a default
4975 expression, always copy the default expression, even when the
4976 association has a single choice, in order to create a proper
4977 association for the expanded aggregate.
4979 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4980 Robert Dewar <dewar@adacore.com>
4982 * par-ch12.adb (P_Generic_Associations): The source position of an
4983 Others association is that of the others keyword, not that of the token
4984 that follows the box.
4985 (P_Formal_Type_Definition): Handle formal access types that carry a
4988 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
4989 multiple identifier are present, save Scan_State before scanning the
4990 colon, to ensure that separate trees are constructed for each
4992 (P_Identifier_Declarations): For object declaration, set new flag
4993 Has_Init_Expression if initialization expression present.
4994 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
4995 Improve NOT NULL error messages
4997 2007-06-06 Robert Dewar <dewar@adacore.com>
4999 * par-ch4.adb: (P_Name): Recover from literal used as name
5001 2007-06-06 Vincent Celier <celier@adacore.com>
5003 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
5005 In the "not" case, recursive call with Complemented set to True.
5006 Do not allow "or" or "and" operators when Complemented is True.
5008 2007-06-06 Vincent Celier <celier@adacore.com>
5010 * prj.adb (Project_Empty): Gives default value for new component
5013 * prj-attr.ads: Minor reformatting
5015 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
5016 directory using the untouched casing.
5017 (For_All_Source_Dirs): Idem.
5019 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
5020 directories specified with switches -aP.
5021 (Add_Search_Project_Directory): New procedure
5022 (Initialize_Project_Path): Put the directories in table
5023 Search_Directories in the project search path.
5024 (Initialize_Project_Path): For VMS, transform into canonical form the
5027 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5029 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
5030 true if configurable run-time or No_Run_Time is set.
5031 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
5032 processing an unit which is not the one being compiled.
5034 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5036 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
5037 Replace UC by Ada.UC
5039 * s-bitops.adb: Get rid of System.Pure_Exceptions.
5040 Replace UC by Ada.UC
5042 2007-06-06 Robert Dewar <dewar@adacore.com>
5044 * scng.adb: (Check_End_Of_Line): Deal with very long lines
5046 2007-06-06 Robert Dewar <dewar@adacore.com>
5048 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
5049 Remove no longer used nodes.
5051 2007-06-06 Javier Miranda <miranda@adacore.com>
5052 Ed Schonberg <schonberg@adacore.com>
5053 Robert Dewar <dewar@adacore.com>
5055 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
5056 on obsolescent withed unit in case of limited-withed units.
5057 (Analyze_Compilation_Unit): Add guard to code that removed an
5058 instantiation from visibility, to prevent compiler aborts when
5059 instantiation is abandoned early on.
5060 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
5061 current unit being analyzed, and Distinguish local incomplete types
5062 from limited views of types declared elsewhere.
5063 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
5064 to state that the class-wide entity is shared by the limited-view
5066 (Analyze_With_Clause): Improve placement of flag for case of
5068 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
5069 manner similar to GNAT.Current_Exception. This is a violation of
5070 restriction (No_Exception_Propagation), and also inhibits the
5071 optimization of local raise to goto.
5072 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
5073 and if so set Most_Recent_Exception_Used flag in Opt, and also check
5074 for violation of restriction No_Exception_Propagation.
5076 2007-06-06 Javier Miranda <miranda@adacore.com>
5077 Hristian Kirtchev <kirtchev@adacore.com>
5078 Gary Dismukes <dismukes@adacore.com>
5080 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
5081 use of entity Exception_Occurrence if it is not available in the
5084 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
5085 concurrent types are declared within an Ada 2005 generic, build their
5086 corresponding record types since they are needed for overriding-related
5088 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
5089 protected type does not implement a task interface or a nonlimited
5091 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
5092 type does not implement a protected interface or a nonlimited interface.
5093 (Single_Task_Declaration, Single_Protected_Declaration): use original
5094 entity for variable declaration, to ensure that debugging information
5095 is correcty generated.
5096 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
5097 routines if the expander is not active.
5098 (Analyze_Task_Body): Mark all handlers to stop optimization of local
5099 raise, since special things happen for task exception handlers.
5101 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
5102 concurrent types declared within a generic.
5103 (Check_Dispatching_Operation): Do not emit warning about late interface
5104 operations in the context of an instance.
5105 (Check_Dispatching_Call): Remove restriction against calling a
5106 dispatching operation with a limited controlling result.
5107 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
5108 Register_Interface_DT_Entry by calls to Register_Primitive.
5109 (Check_Dispatching_Formals): Handle properly a function with a
5110 controlling access result.
5112 2007-06-06 Robert Dewar <dewar@adacore.com>
5113 Arnaud Charlet <charlet@adacore.com>
5115 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
5116 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
5117 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
5118 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
5119 message when using a VM, since this attribute is not supported.
5120 (Analyze_Record_Representation_Clause): Give unrepped component warnings
5122 * usage.adb: Add new warning for renaming of function return objects
5123 Indicate that -gnatwp and -gnatwP concern front-end inlining
5124 Add line for -gnatyg
5125 Add usage information for -gnatw.c/C
5127 2007-06-06 Robert Dewar <dewar@adacore.com>
5128 Ed Schonberg <schonberg@adacore.com>
5131 (Find_Var): Do not consider function call in test for infinite loop
5132 warning if warnings set off for function entity.
5133 (One_Bound): Do not create a temporary for a loop bound if it is a
5135 (Analyze_Assignment): Traverse the right hand side of an assignment and
5136 mark all allocators as static coextensions.
5137 (Analyze_Assignment): Exempt assignments involving a dispatching call
5138 to a function with a controlling access result from the check requiring
5139 the target to be class-wide.
5141 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5142 Ed Schonberg <schonberg@adacore.com>
5143 Robert Dewar <dewar@adacore.com>
5144 Javier Miranda <miranda@adacore.com>
5146 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
5147 chain of coextensions when an allocator serves as the root of such a
5149 (Propagate_Coextensions): Remove the test for the root being an
5151 (Resolve_Allocator): Add condition to ensure that all future decoration
5152 occurs on an allocator node. Add processing and cleanup for static
5154 (Valid_Conversion): If the operand type is the limited view of a
5155 class-wide type, use the non-limited view is available to determine
5156 legality of operation.
5157 (Ambiguous_Character): move to spec, for use elsewhere.
5158 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
5159 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
5161 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
5162 Do_Division_Check flag explicitly.
5163 (Resolve_Actuals): If the actual is of a synchronized type, and the
5164 formal is of the corresponding record type, this is a call to a
5165 primitive operation of the type, that is declared outside of the type;
5166 the actual must be unchecked-converted to the type of the actual
5167 (Resolve_Call): Kill all current values for any subprogram call if
5168 flag Suppress_Value_Tracking_On_Call is set.
5169 (Resolve_Type_Conversion): Generate error message the the operand
5170 or target of interface conversions come from a limited view.
5171 (Check_Infinite_Recursion): Ignore generated calls
5172 (Check_Allocator_Discrim_Accessibility): New procedure for checking
5173 that an expression that constrains an access discriminant in an
5174 allocator does not denote an object with a deeper level than the
5175 allocator's access type.
5176 (Resolve_Allocator): In the case of an allocator initialized by an
5177 aggregate of a discriminated type, check that associations for any
5178 access discriminants satisfy accessibility requirements by calling
5179 Check_Allocator_Discrim_Accessibility.
5180 (Resolve_Equality_Op): Handle comparisons of anonymous access to
5181 subprogram types in the same fashion as other anonymous access types.
5182 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
5183 message that is not a continuation message.
5184 (Resolve_Type_Conversion): Add missing support for conversion to
5186 (Resolve_Actuals): Introduce a transient scope around the call if an
5187 actual is a call to a function returning a limited type, because the
5188 resulting value must be finalized after the call.
5189 (Resolve_Actuals): If the call was given in prefix notations, check
5190 whether an implicit 'Access reference or implicit dereference must be
5191 added to make the actual conform to the controlling formal.
5193 2007-06-06 Robert Dewar <dewar@adacore.com>
5194 Javier Miranda <miranda@adacore.com>
5196 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
5197 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
5198 overriding of an inherited private subprogram now there is no need to
5199 inherit its dispatching slot and reduce the size of the dispatch table.
5200 Set_All_DT_Position now ensures that the same slot is now assigned to
5201 both entities. This is required to statically build the dispatch table.
5202 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
5203 of calling Set_All_DT_Position to re-evaluate the position of the
5204 entries in the dispatch table. Such reevaluation is not desired if
5205 the tagged type is already frozen.
5207 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
5208 Gary Dismukes <dismukes@adacore.com>
5209 Robert Dewar <dewar@adacore.com>
5210 Javier Miranda <miranda@adacore.com>
5212 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
5213 reference acts as an lvalue when the attribute name modifies the prefix
5214 (Is_Coextension_Root): New routine.
5215 (Mark_Static_Coextensions): New routine.
5216 (Type_Access_Level): Revise code for checking the level of the
5217 anonymous access type of a return object.
5218 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
5219 (Matches_Prefixed_View_Profile): Remove the no longer necessary
5220 retrieval of the corresponding controlling record type.
5221 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
5222 concurrent types declared within a generic as well as class wide types.
5223 Emit a mode incompatibility error whenever a protected entry or routine
5224 override an interface routine whose first parameter is not of mode
5225 "out", "in out" or access to variable.
5226 (Overrides_Synchronized_Primitive): Rename to
5227 Find_Overridden_Synchronized_Primitive.
5228 (Collect_Interface_Components): New subprogram that collects all the
5229 components of a tagged record containing tags of secondary dispatch
5231 (Add_Global_Declaration): New procedure
5232 (Abstract_Interface_List): Handle properly the case of a subtype of a
5234 (Type_Access_Level): In the case of a type whose parent scope is a
5235 return statement, call Type_Access_Level recursively on the enclosing
5236 function's result type to determine the level of the return object's
5238 (Build_Elaboration_Entity): Build name of elaboration entity from the
5239 scope chain of the entity, rather than the unit name of the file name.
5240 (Check_Nested_Access): New procedure.
5241 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
5242 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
5243 (Get_Renamed_Entity): Utility routine for performing common operation
5244 of chasing the Renamed_Entity field of an entity.
5246 2007-06-06 Robert Dewar <dewar@adacore.com>
5248 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
5250 (Check_A_Call): Add check for entry call which was causing blowup
5252 2007-06-06 Olivier Hainque <hainque@adacore.com>
5254 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
5255 special code on ia64-vms to handle major incompatibilities between the
5256 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
5257 this routine with a very different set of arguments and expectations on
5260 2007-06-06 Thomas Quinot <quinot@adacore.com>
5262 * socket.c (__gnat_close_signalling_fd): New function.
5263 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
5264 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
5265 New supporting functions for task safe Netdb operations.
5267 2007-06-06 Thomas Quinot <quinot@adacore.com>
5268 Olivier Hainque <hainque@adacore.com>
5270 * a-except-2005.ads, a-except-2005.adb
5271 (Raise_From_Controlled_Operation): New procedure in
5272 (private part of) Ada.Exceptions (standard runtime version). Used to
5273 provide informational exception message when Program_Error is raised as
5274 a result of an Adjust or Finalize operation propagating an exception.
5275 (Rmsg_28): Fix description for E.4(18) check.
5276 (Raise_Current_Excep): Call Debug_Raise_Exception just before
5277 propagation starts, to let debuggers know about the event in a reliable
5279 Take the address of E and dereference to make sure it is homed on stack
5280 and prevent the stores from being deleted, necessary for proper
5281 debugger behavior on "break exception" hits.
5282 (Local_Raise): Moved to System.Exceptions
5284 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
5285 exception message from the current occurrence and raise Program_Error
5286 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
5288 2007-06-06 Jose Ruiz <ruiz@adacore.com>
5289 Arnaud Charlet <charlet@adacore.com>
5291 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
5294 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
5295 priority associated to a lock.
5297 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
5298 assertion to take into account case of no abort restriction.
5299 (Initialize_Protection_Entries): Add initialization for the field
5300 New_Ceiling associated to the protected object.
5301 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
5304 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
5305 since this function needs to be set consistently with Update_Exception.
5307 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
5308 since this function needs to be set consistently with Update_Exception.
5310 * s-taskin.ads: Update comments on
5311 Interrupt_Server_Blocked_On_Event_Flag.
5312 (Unbind_Handler): Fix handling of server_task wakeup
5313 (Server_Task): Set self's state so that Unbind_Handler can take
5314 appropriate actions.
5315 (Common_ATCB): Now use a constant from System.Parameters to determine
5316 the max size of the Task_Image field.
5318 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
5319 Initialize_Analyzer function.
5320 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
5321 take into account case of no abort restriction.
5322 ([Vulnerable_]Complete_Master): Modify assertion.
5324 * s-tataat.adb (Finalize): Use the nestable versions of
5325 Defer/Undefer_Abort.
5327 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
5329 * s-tpobop.ads: Update comments.
5331 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
5332 of locking the object manually, to avoid inconsistencies between
5333 Lock/Unlock_Entry assertions.
5335 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
5337 application and System.Parameters.No_Abort is True.
5338 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
5339 (Unbind_Handler): Fix handling of server_task wakeup
5340 (Server_Task): Set self's state so that Unbind_Handler can take
5341 appropriate actions.
5343 2007-06-06 Thomas Quinot <quinot@adacore.com>
5345 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
5346 declarations instead of an explicit null body, for conciseness.
5348 2007-06-06 Robert Dewar <dewar@adacore.com>
5350 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
5351 illegal aggregate and the type is still Any_Composite.
5352 (Subtypes_Statically_Match): Fix problem of empty discriminant list
5354 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5356 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
5357 to prevent subsequent expansion.
5359 2007-06-06 Robert Dewar <dewar@adacore.com>
5361 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
5363 2007-06-06 Ed Schonberg <schonberg@adacore.com>
5364 Robert Dewar <dewar@adacore.com>
5366 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
5368 (Write_Itype): Handle case of string literal subtype, which
5369 comes up in this context.
5370 (Update_Itype): when debugging expanded code, update sloc of itypes
5371 associated with defining_identifiers and ranges, for gdb use.
5372 (Sprint_Node_Actual): Add static keyword to object or exception
5373 declaration output if Is_Statically_Allocated is True.
5374 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
5375 or task body, so that the tree carries the proper Sloc information for
5377 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
5379 2007-06-06 Arnaud Charlet <charlet@adacore.com>
5381 * s-secsta.adb (Chunk): Ensure this object has a static size known at
5382 compile time, to avoid dynamic memory allocation
5383 (Elaboration code): Only use dynamic memory allocation when needed.
5385 2007-06-06 Quentin Ochem <ochem@adacore.com>
5387 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
5389 (Stack_Analyzer): Added field "Overflow_Guard"
5390 (Task_Result): Added field "Overflow_Guard".
5391 (Index_Str): New constant.
5392 (Task_Name_Str): New constant.
5393 (Actual_Size_Str): New constant.
5394 (Pattern_Array_Element_Size): New constant.
5395 (Get_Usage_Range): New subprogram.
5396 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
5397 Now align the output.
5399 (Initialize): Added value for Overflow_Guard.
5400 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
5401 Update the value of the overflow guard according to the actual
5402 beginning of the pattern array.
5403 (Initialize_Analyzer): Added parameter Overflow_Guard.
5404 Take this parameter into accound when computing the max size.
5405 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
5406 (Report_Result): Removed extra useless procedure.
5407 Updated call to Output_Result.
5408 Moved full computation of the Task_Result here.
5410 2007-06-06 Thomas Quinot <quinot@adacore.com>
5412 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
5413 Thread_Blocking_IO, always True by default, set False on a per-runtime
5415 Add Windows-specific constants
5416 Add new constant Need_Netdb_Buffer.
5417 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
5418 not, whether to use getXXXbyYYY_r.
5420 * gsocket.h: Add new constant Need_Netdb_Buffer.
5421 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
5422 not, whether to use getXXXbyYYY_r.
5424 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
5426 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
5427 than their first call.
5428 Add type Dummy_Communication_Block used in the generation of the pre-
5429 defined dispatching primitive _disp_asynchronous_select.
5430 (Storage_Element): Put Pragma Universal_Aliasing on it.
5432 2007-06-06 Vincent Celier <celier@adacore.com>
5434 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
5437 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
5438 letter if it is not followed by a '/' or a '\'.
5439 (Windows): New Boolean function
5441 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
5443 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
5445 (Containing_Directory): Raise Use_Error when the directory is a root
5447 (Extension): When returning the result, use a conversion to Result_Type,
5448 not a qualification.
5450 2007-06-06 Robert Dewar <dewar@adacore.com>
5452 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
5453 (Set_Style_Check_Options): Recognize new -gnatyg style switch
5455 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
5456 Warn_On_Non_Local_Exception to False, to turn off warnings for
5457 No_Exception_Propagation in ZFP runtime.
5458 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
5460 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
5462 2007-06-06 Vincent Celier <celier@adacore.com>
5464 * switch-b.adb (Scan_Binder_Switches): Add processing for new
5467 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
5468 (Scan_Make_Switches): Recognize new switch -aP
5470 2007-06-06 Matthew Gingell <gingell@adacore.com>
5471 Jose Ruiz <ruiz@adacore.com>
5473 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
5474 VxWorks task descriptor in the Ada run time, call a C subprogram
5475 (__gnat_get_stack_info) that extracts the required information.
5477 * sysdep.c: Back out temporary lynxos workaround.
5478 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
5479 time the stack information associated to the currently executing task.
5480 Only VxWorks systems require this function.
5482 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
5484 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
5485 add the stack bias if the offset is computed from a frame address.
5486 (__gnat_backtrace): Adjust for above change.
5488 2007-06-06 Thomas Quinot <quinot@adacore.com>
5490 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
5491 PE_Non_Transportable_Actual.
5492 (By_Descriptor_Last): New constant.
5493 (By_Copy_Return): Likewise.
5495 2007-06-06 Vincent Celier <celier@adacore.com>
5497 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
5500 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
5501 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
5502 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
5503 Add missing comment for /OPTIMIZE=SPACE
5504 Add entry for OPTIMIZE=SPACE
5505 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
5506 Add documentation for new qualifiers corresponding to -gnatw.c/.C
5508 2007-06-06 Vincent Celier <celier@adacore.com>
5509 Robert Dewar <dewar@adacore.com>
5511 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
5514 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
5515 Document gnatbind switch -a
5516 (case Constructions): Document that variables declarations are allowed
5517 for previously declared variables.
5518 Fix external lib project example
5519 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
5520 Indicate that "#if not X or Y then" is not allowed in input files to
5522 Document gnatw.x and gnatw.X warning flags
5523 Mention -Winline switch to activate warnings when back-end inlining is
5525 Add gnatcheck rule descriptions
5526 Describe how to use the GNAT driver to call a tool on a closure.
5527 Describe how to run project-wide checks or metrics.
5528 Document gnatbind's -R option
5529 Updated to account for Ada 2005 support
5531 * gnat_rm.texi (Case Construction): Allow variable declarations for
5532 previously declared variables.
5533 (Representation Clauses and Pragmas): Lift restriction on alignment
5534 clauses for record types.
5535 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
5536 Document No_Exception_Propagation restriction
5537 Document No_Body pragma
5538 Updated to account for Ada 2005 support; corrected some typos
5539 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
5541 * gnat-style.texi: Make it clear that we never use mode IN for
5542 procedures or functions
5544 * ug_words: Add entries for -gnatw.x and -gnatw.X
5545 Add entries for -gnatw.c/.C
5547 2007-06-06 Pascal Obry <obry@adacore.com>
5548 Vincent Celier <celier@adacore.com>
5550 * makegpr.adb (Add_Archive_Path): Use untouched object and library
5551 dirs and library name.
5552 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
5554 (Build_Library): Idem.
5555 (Compile_Individual_Sources): Idem.
5556 (Compile_Link_With_Gnatmake): Idem.
5557 (Compile_Sources): Idem.
5558 (Get_Imported_Directories): Idem.
5559 (Link_Executables): Idem. Same change for the executable dir.
5560 (Check_Compilation_Needed): C_Source_Path new variable containing
5561 the canonical form of Source_Path to check against the source names
5562 in the dependency file.
5563 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
5564 verbose mode, display the name of the object directory we're changing
5566 (Saved_Switches): New name of table X_Switches
5567 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
5568 (Usage): New line for switch -aP
5569 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
5570 testing if a directory should be added to the search path.
5572 2007-06-06 Javier Miranda <miranda@adacore.com>
5574 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
5575 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
5576 declaration after freezing point of all its associated tagged types;
5577 otherwise such types are frozen too early.
5579 2007-06-06 Robert Dewar <dewar@adacore.com>
5581 * a-reatim.adb: Documentation addition
5583 * g-cgideb.adb: Minor code reorganization
5585 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
5586 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
5587 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
5589 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
5590 function. Change name New_Scope to Push_Scope
5591 (Get_Debug_Flag_K): Remove unused obsolete function.
5593 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
5596 * makeusg.adb: Update Copyright notice
5597 Add line for switch -aP
5599 * makeusg.adb: Fix wording of some usage messages
5601 * s-assert.adb (Raise_Assert_Failure): Add call to
5602 Debug_Raise_Assert_Failure.
5604 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
5605 (2, Standard'Alignment) for compatibility with AAMP (where alignment
5606 is restricted to 1).
5608 * s-wchjis.adb: Remove use of System.Pure_Exceptions
5610 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
5611 node location to No_Location when we're not debugging the expanded
5614 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
5616 * misc.c (enumerate_modes): Consider log2_b to always be one.
5618 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
5620 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
5622 2007-05-02 Pascal Obry <obry@adacore.com>
5624 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
5625 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
5626 encoding support of Stream_IO.
5629 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
5630 filename and corresponding encoding to match the OS requirement.
5631 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
5632 routine will fail on specific devices like CON: AUX: ...
5634 PR ada/29856: Add missing braces
5636 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
5639 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
5641 2007-04-21 Jan Hubicka <jh@suse.cz>
5643 * misc.c (gnat_expand_body): Don't call target for destructors,
5644 avoid redundant check on syntax errors.
5646 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
5648 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
5649 instead of checking GIMPLE_STMT_P in chain_next.
5651 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
5654 * system-linux-alpha.ads: Disable constant condition warning for the
5655 Default_Bit_Order variable.
5656 * system-linux-s390.ads: Likewise.
5657 * system-linux-s390x.ads: Likewise.
5658 * system-linux-sparc.ads: Likewise.
5660 2007-04-06 Javier Miranda <miranda@adacore.com>
5661 Matt Heaney <heaney@adacore.com>
5662 Robert Dewar <dewar@adacore.com>
5664 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5665 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
5666 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
5667 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
5668 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
5669 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
5670 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
5671 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
5672 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
5673 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
5674 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
5675 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
5676 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
5677 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
5678 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
5679 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
5680 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
5681 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
5682 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
5683 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
5684 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
5685 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
5686 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
5687 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
5688 s-taprop-tru64.adb, s-taprop-irix.adb,
5689 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
5690 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
5691 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
5692 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
5693 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
5694 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
5695 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
5696 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
5697 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
5698 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
5699 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
5700 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
5701 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
5702 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
5703 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
5704 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
5705 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
5706 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
5707 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
5708 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
5710 Update documentation.
5713 2007-04-06 Robert Dewar <dewar@adacore.com>
5715 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
5716 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5717 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
5718 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
5719 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
5720 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5721 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
5722 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
5723 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
5724 system-hpux-ia64.ads, targparm.adb,
5725 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
5727 * system.ads: Move Functions_Return_By_DSP to obsolete section,
5728 kept for bootstrap purposes only.
5730 2007-04-06 Arnaud Charlet <charlet@adacore.com>
5732 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5733 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
5734 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
5735 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
5737 2007-04-06 Robert Dewar <dewar@adacore.com>
5739 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
5740 (Local_Raise): New dummy procedure called when a raise is converted
5741 to a local goto. Used for debugger to detect that the exception
5744 * debug.adb: Document new d.g flag (expand local raise statements to
5745 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
5747 * exp_sel.adb: Use Make_Implicit_Exception_Handler
5749 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
5750 suppress warnings for unused handlers.
5751 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
5752 warnings for raise statements not handled locally.
5753 (Get_RT_Exception_Entity): New function
5754 (Get_Local_Call_Entity): New function
5755 (Find_Local_Handler): New function
5756 (Warn_If_No_Propagation): New procedure
5757 (Expand_At_End_Handler): Call Make_Implicit_Handler
5758 (Expand_Exception_Handlers): Major additions to deal with local handlers
5759 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
5760 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
5763 * exp_ch11.ads (Get_RT_Exception_Entity): New function
5764 (Get_Local_Call_Entity): New function
5766 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
5767 of restrictions that the binder will never suggest adding.
5769 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
5772 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
5773 be with'ed in the presence of pragma Restriction
5774 (No_Exception_Propagation).
5776 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
5778 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
5779 parameter, then the handler is not a suitable target for a local raise,
5780 and this is a violation of restriction No_Exception_Propagation.
5781 (Analyze_Handled_Statements): Analyze choice parameters in exception
5782 handlers before analyzing statement sequence (needed for proper
5783 detection of local raise statements).
5784 (Analyze_Raise_Statement): Reraise statement is a violation of the
5785 No_Exception_Propagation restriction.
5787 * s-rident.ads: Add new restriction No_Exception_Propagation
5789 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
5790 function, like Make_Exception_Handler but sets Local_Raise_Statements
5792 (Add_Unique_Serial_Number): Deal with case where this is called during
5793 processing of configuration pragmas.
5795 2007-04-06 Thomas Quinot <quinot@adacore.com>
5796 Pat Rogers <rogers@adacore.com>
5797 Pascal Obry <obry@adacore.com>
5799 * g-stsifd-sockets.adb: New file.
5801 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
5802 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
5803 g-socthi-vms.adb: Move signalling
5804 fd management to a nested package, so that they can conveniently be
5805 moved to a subunit that is shared across Windows, VMS, and VxWorks
5806 (Ada implementation) or completed with imported bodies from socket.c
5808 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
5810 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
5811 the signalling file descriptor.
5812 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
5813 signalling file descriptor.
5814 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
5815 instead of creating a pair of sockets for signalling here.
5817 * g-socthi.adb: Ditto.
5818 Set the runtime process to ignore SIGPIPEs on platforms that support
5819 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
5821 * g-socthi-mingw.adb: Ditto.
5822 (WS_Version): Use Windows 2.2.
5823 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
5825 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
5826 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
5828 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
5829 added GNAT byte swapping facility
5830 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
5832 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
5834 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
5836 (__gnat_create_signalling_fds): New subprogram.
5837 Set the runtime process to ignore SIGPIPEs on platforms that support
5838 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
5840 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
5841 Vincent Celier <celier@adacore.com>
5843 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
5844 New version of Ada.Calendar which supports the new upper bound of Ada
5845 time (2399-12-31 86_399.999999999).
5846 The following modifications have been made to the package:
5847 - New representation of time as count of nanoseconds since the start of
5848 Ada time (1901-1-1 0.0).
5849 - Target independent Split and Time_Of routines which service both
5850 Ada 95 and Ada 2005 code.
5851 - Target independent interface to the Ada 2005 children of Calendar.
5852 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
5853 - Handling of non-leap centenial years.
5854 - Updated clock function.
5855 - Updated arithmetic and comparison operators.
5857 * a-caldel.adb (To_Duration): Add call to target independent routine in
5858 Ada.Calendar to handle the conversion of time to duration.
5860 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
5862 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
5864 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
5865 targets do not have a natural time zone, GMT is used as a default.
5866 (__gnat_get_task_options): New.
5868 * a-direct.adb (Modification_Time): Add with and use clauses for
5869 Ada.Calendar and Ada.
5870 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
5871 since it is no longer needed.
5872 (Duration_To_Time): Removed.
5873 (OS_Time_To_Long_Integer): Removed.
5874 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
5875 Formatting Time_Of routines which automatically handle time zones,
5876 buffer periods and leap seconds.
5878 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
5879 target independent routines in Ada.Calendar.
5881 * a-calfor.ads, a-calfor.adb:
5882 Code cleanup and addition of validity checks in various routines.
5883 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
5886 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
5887 independent routine in Ada.Calendar.
5889 2007-04-06 Olivier Hainque <hainque@adacore.com>
5892 (convert_addresses): Adjust prototype and dummy definition to expect an
5893 extra file_name argument.
5895 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
5896 filling the now expected file_name argument with the appropriate
5898 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
5899 (tracebk): Array of void * instead of char *, corresponding to what
5900 convert_addresses expects.
5901 (exename): New static global, to hold the executable file name to be
5902 used in all convert_addresses invocations.
5903 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
5905 (__gnat_gmem_a2l_initialize): Resolve exename.
5906 (__gnat_convert_addresses): Use exename as the convert_addresses
5909 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
5910 "convert_addresses", now expecting a filename argument. Import the
5911 necessary entities to compute the filename to use and pass it to
5914 2007-04-06 Matt Gingell <gingell@adacore.com>
5916 * system-aix.ads: Back out previous change.
5917 (Functions_Return_By_DSP): Removed
5919 2007-04-06 Pascal Obry <obry@adacore.com>
5921 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
5922 or the monotonic used by Ada.Real_Time) to compute the sleep duration
5925 2007-04-06 Jose Ruiz <ruiz@adacore.com>
5927 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
5928 function. Its value changes in different VxWorks versions, and it is
5929 now handled by the function __gnat_get_task_options.
5931 * s-taprop-vxworks.adb (Create_Task): Call the function
5932 __gnat_get_task_options to get the required options for creating a task.
5934 2007-04-06 Pascal Obry <obry@adacore.com>
5935 Thomas Quinot <quinot@adacore.com>
5937 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
5938 dealing with filename.
5939 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
5940 filename from a standard string to a wide-string depending on the
5942 (__gnat_freopen): Idem.
5943 (__gnat_current_time): New function (wrapper for time(3) standard C
5946 * g-os_lib.ads (Current_Time): New function. Returns the current
5947 system time as an OS_Time value.
5949 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
5950 (Monotonic_Clock): Same.
5952 2007-04-06 Quentin Ochem <ochem@adacore.com>
5954 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
5956 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
5958 2007-04-06 Jose Ruiz <ruiz@adacore.com>
5960 * a-retide.adb: Add elaboration code to ensure that the tasking run
5961 time is initialized when using delay operations even when no task is
5964 2007-04-06 Javier Miranda <miranda@adacore.com>
5966 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
5967 component Num_Prim_Ops.
5968 (Set_Num_Prim_Ops): Removed.
5969 Remove all the assertions because all the routines of this
5970 package are inline always.
5971 (Get_Offset_Index): Add support to primary dispatch tables.
5972 Move the documentation about the dispatch table to a-tags.ads
5973 (Set_External_Tag): Removed
5974 (Inherit_TSD): Removed.
5975 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
5977 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
5978 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
5979 of the TSD field "Table" because this field has been renamed to
5981 (Inherit_CPP_DT): Removed.
5982 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
5983 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
5984 declarations have been moved to a-tags.ads
5985 (Check_Size): Removed.
5986 (Expanded_Name): Updated to get access to the new field of TSD
5987 containing the address of the expanded name.
5988 (Get_Access_Level/Set_Access_Level): Removed.
5989 (Get_Predefined_Prim_Op_Address): Removed.
5990 (Set_Predefined_Prim_Op_Address): Removed.
5991 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
5992 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
5993 (Set_Expanded_Name): Removed.
5994 (Inherit_DT): Removed.
5995 (Inherit_CPP_DT): Removed.
5996 (Set_RC_Offset): Removed.
5998 (Base_Address): New function that displaces "this" to point to the base
5999 of the object (that is, to point to the primary tag of the object).
6001 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6002 Javier Miranda <miranda@adacore.com>
6004 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
6005 anonymous access component, do not create a master_id if type already
6006 has one, as may happen if the type is a subcomponent of a packed array
6008 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
6009 Initialize_Tag): Remove code associated with the old CPP pragmas.
6010 CPP_Virtual and CPP_Vtable are no longer supported.
6011 (Build_Offset_To_Top_Internal): Add support for concurrent record types
6012 (Build_Offset_To_Top_Functions): Add support for concurrent record types
6013 (Freeze_Record_Type): Remove call to
6014 Init_Predefined_Interface_Primitives.
6015 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
6016 code required to initialize the tags of the secondary dispatch tables.
6017 This leaves the algoritm more clear.
6018 (Init_Secondary_Tags): Add support for concurrent record types
6019 (Make_Predefined_Primitive_Specs): Code cleanup.
6020 (Predefined_Primitive_Bodies): Code cleanup.
6021 (Build_Master_Renaming): New local subprogram.
6022 (Expand_N_Full_Type_Declaration): Build the master_id associated with
6023 anonymous access to task type components.
6024 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
6025 subtype indication are resolved during analysis, and must not be done
6027 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
6029 2007-04-06 Geert Bosch <bosch@adacore.com>
6030 Ed Schonberg <schonberg@adacore.com>
6031 Javier Miranda <miranda@adacore.com>
6032 Bob Duff <duff@adacore.com>
6034 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
6035 for conversion of a Float_Type'Truncation to integer.
6037 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
6038 check if a node is an attribute that can be handled directly by the
6040 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
6041 attributes that can be handled directly by the back end.
6042 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
6043 use new predicate Is_Access_Protected_Subprogram_Type.
6044 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
6045 and Unchecked_Union if it is generated as part of the default Output
6046 procedure for a type with default discriminants.
6047 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
6048 if we are compiling under restriction No_Dispatching_Calls.
6049 (Constrained): Use Underlying_Type, in case the type is private without
6050 discriminants, but the full type has discriminants.
6051 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
6052 call to Build_Get_Access_Level.
6053 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
6054 interface objects requires a call to the run-time subprogram that
6055 returns the base address of the object.
6056 (Valid_Conversion): Improve error message on illegal attempt to store
6057 an anonymous access to subprogram value into a record component.
6059 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
6061 (Simplify_Type_Conversion): New procedure that performs simplification
6062 of Int_Type (Float_Type'Truncation (X)).
6063 (Resolve_Type_Conversion): Call above procedure after resolving operand
6064 and before performing checks. This replaces the existing ineffective
6066 (Set_String_Literal_Subtype): When creating the internal static lower
6067 bound subtype for a string literal, use a newly created copy of the
6068 subtree representing the lower bound.
6069 (Resolve_Call): Exclude build-in-place function calls from transient
6070 scope treatment. Update comments to describe this exception.
6071 (Resolve_Equality_Op): In case of dispatching call check violation of
6072 restriction No_Dispatching_Calls.
6073 (Resolve_Call): If the call returns an array, the context imposes the
6074 component type of the array, and the function has one non-defaulted
6075 parameter, rewrite the call as the indexing of a call with a single
6076 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
6078 (Resolve_Actuals): If an actual is an allocator for an access parameter,
6079 the master of the created object is the innermost enclosing statement.
6080 (Remove_Conversions): For a binary operator, check if type of second
6081 formal is numeric, to check if an abstract interpretation is present
6082 in the case of exponentiation as well.
6084 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6085 Bob Duff <duff@adacore.com>
6087 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
6088 copying a parameter list in a call, set properly the First_Named_Formal
6089 and Next_Named_Formal fields in the new list and in the enclosing call.
6090 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
6091 names, to ease typing in the debugger. Improve comments.
6092 (Watch_Node): New variable, intended to be set in the debugger.
6093 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
6094 called when the watched node is created.
6095 (New_Node_Debugging_Output): Combined version of local procedures
6096 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
6097 with a parameter so that conditional breakpoints like "if Node = 12345"
6099 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
6102 2007-04-06 Thomas Quinot <quinot@adacore.com>
6103 Ed Schonberg <schonberg@adacore.com>
6104 Gary Dismukes <dismukes@adacore.com>
6106 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
6107 required for a conversion between two access-to-unconstrained-array
6109 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
6110 to discriminant constraints on discriminant objects. This rule must
6111 apply as well to discriminants of protected types in private components.
6112 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
6113 object of a null-excluding access type then don't require the
6114 the object declaration to have an expression and don't emit a
6117 2007-04-06 Arnaud Charlet <charlet@adacore.com>
6118 Eric Botcazou <botcazou@adacore.com>
6120 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
6123 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
6124 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
6127 * fe.h (Compiler_Abort): Add third parameter.
6129 * misc.c (internal_error_function): Build third argument from current
6130 input location and pass it to Compiler_Abort.
6132 2007-04-06 Gary Dismukes <dismukes@adacore.com>
6134 * cstand.adb (Create_Standard): When the target's storage unit size is
6135 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
6138 2007-04-06 Nicolas Roche <roche@adacore.com>
6140 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
6141 absolute path can have the following form: device:/a/b. In this case
6142 '/' should be inserted between the path and the filename.
6144 2007-04-06 Olivier Hainque <hainque@adacore.com>
6145 Eric Botcazou <botcazou@adacore.com>
6147 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
6148 VAR_DECL to a CONST_DECL we make for a public constant when we know the
6149 corresponding definition has created the so made visible variable.
6150 Handle anonymous access to protected subprogram.
6151 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
6152 object with an address clause volatile. Re-enable original fix.
6153 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
6155 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
6156 associated with either the Equivalent or Root type, instead of the
6158 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
6159 subtree for every field of a global record type.
6160 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
6161 discriminants, invoke again variable_size on its newly computed sizes.
6163 2007-04-06 Robert Dewar <dewar@adacore.com>
6164 Thomas Quinot <quinot@adacore.com>
6165 Ed Schonberg <schonberg@adacore.com>
6166 Bob Duff <duff@adacore.com>
6168 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
6169 (Next_Component_Or_Discriminant): New function and procedure
6170 (First_Index, First_Literal, Master_Id,
6171 Set_First_Index, Set_First_Literal, Set_Master_Id):
6172 Add missing Ekind assertions.
6173 (Is_Access_Protected_Subprogram_Type): New predicate.
6174 (Has_RACW): New entity flag, set on package entities to indicate that
6175 the package contains the declaration of a remote accecss-to-classwide
6177 (E_Return_Statement): This node type has the Finalization_Chain_Entity
6178 attribute, in case the result type has controlled parts.
6179 (Requires_Overriding): Add this new flag, because "requires
6180 overriding" is subtly different from "is abstract" (see AI-228).
6181 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
6182 Is_Abstract_Type. Make sure these are called only when appropriate.
6183 (Has_Pragma_Unreferenced_Objects): New flag
6185 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
6186 class-wide, the tag of the right-hand side must be an exact match, not
6187 an ancestor of that of the object on left-hand side.
6188 (Move_Activation_Chain): New procedure to create the call to
6189 System.Tasking.Stages.Move_Activation_Chain.
6190 (Expand_N_Extended_Return_Statement): Generate code to call
6191 System.Finalization_Implementation.Move_Final_List at the end of a
6192 return statement if the function's result type has controlled parts.
6193 Move asserts to Build_In_Place_Formal.
6194 (Move_Final_List): New function to create the call statement.
6195 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
6196 tagged type, replace generation of call to the run-time subprogram
6197 CW_Membership by call to Build_CW_Membership.
6198 (Expand_N_Return_Statement): Replace generation of call to the run-time
6199 subprogram Get_Access_Level by call to Build_Get_Access_Level.
6200 (Expand_N_Simple_Function_Return): Replace generation of call to the
6201 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
6203 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
6204 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
6205 access to protected operations.
6206 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
6207 master and chain actual parameters to a build-in-place function call
6209 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
6211 (Make_Build_In_Place_Call_In_Allocator,
6212 Make_Build_In_Place_Call_In_Anonymous_Context,
6213 Make_Build_In_Place_Call_In_Assignment,
6214 Make_Build_In_Place_Call_In_Object_Declaration): Call
6215 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
6216 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
6217 stubbed procedure with a null body, replace the call with a null
6218 statement without using the full inlining machinery, for efficiency
6219 and to avoid invalid values in source file table entries.
6221 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
6222 renamings of calls to build-in-place functions.
6224 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
6225 provides the functionality of RTE_Available to record components.
6226 (RTU_Entity): The function Entity has been renamed to RTU_Entity
6227 to avoid undesired overloading.
6228 (Entity): New subprogram that returns the entity for the referened
6229 unit. If this unit has not been loaded, it returns Empty.
6230 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
6231 Remove no longer used entities.
6232 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
6233 (RE_Type_Specific_Data): New entity.
6234 (RE_Move_Any_Value): New entity.
6235 (RE_TA_A, RE_Get_Any_Type): New entities.
6236 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
6237 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
6238 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
6239 (Entity): New subprogram that returns the entity for the referened
6240 unit. If this unit has not been loaded, it returns Empty.
6241 (RTE): Addition of a new formal that extends the search to the scopes
6242 of the record types found in the chain of the package.
6244 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
6245 "abstract subprograms must be visible" message, whether or not the type
6246 is an interface; that is, remove the special case for interface types.
6247 (Analyze_Function_Return): Remove error message "return of task objects
6248 is not yet implemented" because this is now implemented.
6249 (Create_Extra_Formals): Add the extra master and activation chain
6250 formals in case the result type has tasks.
6251 Remove error message "return of limited controlled objects is not yet
6253 (Create_Extra_Formals): Add the extra caller's finalization list formal
6254 in case the result type has controlled parts.
6255 (Process_Formals): In case of access formal types there is no need
6256 to continue with the analysis of the formals if we already notified
6258 (Check_Overriding_Indicator): Add code to check overriding of predefined
6260 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
6261 flags for formals that do not require them,.
6262 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
6263 hidden entity is use visible or directly visible.
6264 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
6265 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
6266 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
6267 New_Overloaded_Entity): Split Is_Abstract flag into
6268 Is_Abstract_Subprogram and Is_Abstract_Type.
6270 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
6271 a return statement's finalization list to the caller's list, used for
6272 build-in-place functions with result type with controlled parts.
6273 Remove no longer used entities.
6275 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
6276 longer needed, because the full type is now limited, and therefore a
6277 pass-by-reference type.
6278 (Foreign_Task_Level): New constant.
6280 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
6281 move tasks from the activation chain belonging to a return statement to
6282 the one passed in by the caller, and update the master to the one
6283 passed in by the caller.
6284 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
6285 of unactivated tasks, so we don't kill the ones that are being returned
6286 by a build-in-place function.
6287 (Create_Task): Ignore AI-280 for foreign threads.
6289 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6290 Robert Dewar <dewar@adacore.com>
6291 Bob Duff <duff@adacore.com>
6292 Gary Dismukes <dismukes@adacore.com>
6294 * errout.adb (Unwind_Internal_Type): Use predicate
6295 Is_Access__Protected_Subprogram_Type.
6297 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
6298 (Freeze_Entity, packed array case): Do not override explicitly set
6299 alignment and size clauses.
6300 (Freeze_Entity): An entity declared in an outer scope can be frozen if
6301 the enclosing subprogram is a child unit body that acts as a spec.
6302 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
6303 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
6304 Remove all code for DSP option
6306 * layout.adb (Layout_Record_Type): Use First/
6307 Next_Component_Or_Discriminant
6308 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
6309 to handle properly the anonymous access case.
6311 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
6312 for all access attributes, because overload resolution should work the
6313 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
6314 causes the error message for the ambiguous "X'Access = Y'Access" and
6315 "X'Unrestricted_Access = Y'Access" and so forth to match.
6316 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
6317 now that anonymous access to protected operations have their own kind.
6318 (Resolve_Attribute): In case of dispatching call check the violation of
6319 restriction No_Dispatching_Calls.
6320 (Check_Array_Type): Check new -gnatyA array index style option
6322 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
6323 attempt to derive from a synchronized tagged type.
6324 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
6325 type, inherit the class-wide type already created, because it may
6326 already have been used in a self-referential anonymous access component.
6327 (Mentions_T): Recognize self-referential anonymous access components
6328 that use (a subtype of) the class-wide type of the enclosing type.
6329 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
6330 Derived_Type for Prev formal on call to
6331 Check_Anonymous_Access_Components rather than Empty.
6332 (Make_Incomplete_Type_Declaration): Add test for case where the type has
6333 a record extension in deciding whether to create a class-wide type,
6334 rather than just checking Tagged_Present.
6335 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
6336 to stand-alone object declarations as well as component declarations.
6337 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
6338 prevent accidental overwriting when enclosing package appears in
6339 a limited_with_clause.
6340 (Array_Type_Declaration): If the component type is an anonymous access,
6341 the associated_node for the itype is the type declaration itself.
6342 (Add_Interface_Tag_Components): Modified to support concurrent
6343 types with abstract interfaces.
6344 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
6345 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
6346 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
6347 to complete the decoration of synchronized interface types. Add also
6348 a call to Check_Abstract_Interfaces to verify the ARM rules.
6349 (Derive_Interface_Subprograms): Modified to support concurrent types
6350 with abstract interfaces.
6351 (Analyze_Subtype_Indication): Resolve the range with the given subtype
6352 mark, rather than delaying the full resolution depending on context.
6353 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
6354 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
6355 Array_Type_Declaration,Build_Derived_Record_Type,
6356 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
6357 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
6358 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
6359 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
6360 called only when appropriate.
6361 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
6363 (Analyze_Subtype_Declaration): For an access subtype declaration, create
6364 an itype reference for the anonymous designated subtype, to prevent
6365 scope anonmalies in gigi.
6366 (Build_Itype_Reference): New utility, to simplify construction of such
6369 2007-04-06 Vincent Celier <celier@adacore.com>
6371 * errutil.adb (Initialize): Initialize warnings table, if all warnings
6372 are suppressed, supply an initial dummy entry covering all possible
6375 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
6376 and start with only one, such as "-RTS=none".
6377 (Collect_Arguments): Do not check for sources outside of projects.
6378 Do not collect arguments if project is externally built.
6379 (Compile_Sources): Do nothing, not even check if the source is up to
6380 date, if its project is externally built.
6381 (Compile): When compiling a predefined source, add -gnatpg
6382 as the second switch, after -c.
6383 (Compile_Sources): Allow compilation of Annex J renames without -a
6384 (Is_In_Object_Directory): Check if the ALI file is in the object
6385 even if there is no project extension.
6386 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
6387 gnatbind if the ALI file effectively exists.
6388 (Initialize): Add the directory where gnatmake is invoked in front of
6389 the path if it is invoked from a bin directory, even without directory
6390 information, so that the correct GNAT tools will be used when spawned
6391 without directory information.
6393 * makeusg.adb: Change switch -S to -eS
6394 Add lines for new switches -we, -wn and -ws
6395 Add line for new switch -p
6397 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
6398 Treat_As_Error and there are warnings.
6400 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
6401 -gnatww Change gnatmake switch -S to -eS
6402 (Scan_Make_Switches): Code reorganisation. Process separately multi
6403 character switches and single character switches.
6404 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
6405 False when switch is not recognized by gnatmake.
6406 (Scan_Make_Switches): Set Setup_Projects True when -p or
6407 --create-missing-dirs is specified.
6409 * fname.adb (Is_Predefined_File_Name): Return True for annex J
6410 renamings Calendar, Machine_Code, Unchecked_Conversion and
6411 Unchecked_Deallocation only when Renamings_Included is True.
6413 * par.adb: Allow library units Calendar, Machine_Code,
6414 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
6415 when -gnatg is not specified.
6416 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
6417 there is no need to generate always a record_definition_node in case
6418 of synchronized interface types.
6419 (SIS_Entry_Active): Initialize global variable to False
6420 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
6421 indicate cases where AI-447 says "not null" is legal.
6423 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
6425 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
6426 files with with several lines starting with the object fileb name.
6427 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
6429 (Initialize): Add the directory where gprmake is invoked in front of the
6430 path, if it is invoked from a bin directory or with directory
6431 information, so that the correct GNAT tools will be used when invoked
6433 (Check_Compilation_Needed): Process correctly backslashes on Windows.
6435 * vms_data.ads: Update switches/qualifiers
6437 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6438 Thomas Quinot <quinot@adacore.com>
6441 If the array component is a discriminated record, the array aggregate
6442 is non-static even if the component is given by an aggregate with
6444 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
6445 (Convert_Aggr_In_Allocator): If the allocator is for an access
6446 discriminant and the type is controlled. do not place on a finalization
6447 list at this point. The proper list will be determined from the
6449 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
6450 initialize record controller if needed, before the components, to ensure
6451 that they are properly finalized.
6452 (Build_Record_Aggr_Code): For the case of an array component that has a
6453 corresponding array aggregate in the record aggregate, perform sliding
6456 2007-04-06 Javier Miranda <miranda@adacore.com>
6457 Gary Dismukes <dismukes@adacore.com>
6458 Ed Schonberg <schonberg@adacore.com>
6460 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
6461 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
6463 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
6464 accessibility on class-wide allocators if the allocator occurs at the
6465 same scope level as the allocator's type. The check is guaranteed to
6466 succeed in that case, even when the expression originates from a
6467 parameter of the containing subprogram.
6468 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
6469 under No_Dispatching_Calls restriction. During the semantic analysis
6470 we already notified such violation.
6471 (Tagged_Membership): Constant folding. There is no need to check
6472 the tag at run-time if the type of the right operand is non
6473 class-wide abstract.
6474 Replace call to Is_Ancestor by call to Is_Parent
6475 to support concurrent types with interface types.
6476 (Expand_N_Allocator): Add an assertion associated with the generation
6478 (Expand_N_Slice): Do not enable range check to nodes associated
6479 with the frontend expansion of the dispatch table.
6480 (Is_Local_Access_Discriminant): Subsidiary function to
6482 (Tagged_Membership): Replace generation of call to the run-time
6483 subprogram CW_Membership by call to Build_CW_Membership.
6484 (Expand_Allocator_Expression): Replace generation of call to the
6485 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
6487 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
6488 initialize most the TSD components by means of an aggregate.
6489 Modify the declaration of the object containing the TSD
6490 because we now expand code that has a higher level of abstraction.
6491 The TSD has a discriminant containing the Inheritance Depth Level,
6492 value that is used in the membership test but also to fix the size
6493 of the table of ancestors.
6494 (Expand_Interface_Conversion): Insert function body at the closest place
6495 to the conversion expression, to prevent access-before-elaboration
6496 errors in the backend.
6497 Code improved to reduce the size of the dispatch table if
6498 compiling under restriction No_Dispatching_Calls plus code cleanup.
6499 Code reorganization plus removal of calls to Set_Num_Prim_Ops
6500 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
6501 (Expand_Dispatching_Call): Minor code reorganization plus addition of
6502 code to return immediately if compiling under No_Dispatching_Calls
6504 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
6505 CPP_Virtual and CPP_Vtable are no longer supported.
6506 (Expand_Interface_Conversion): Add missing support for interface type
6508 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
6509 Is_Parent to support concurrent types with interfaces.
6510 (Init_Predefined_Interface_Primitives): Removed.
6511 (Make_Secondary_DT): Modified to support concurrent record types.
6512 (Set_All_DT_Position): Modified to support concurrent record types.
6513 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
6514 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
6515 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
6517 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
6518 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
6519 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
6520 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
6521 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
6522 (Expand_Dispatching_Call): Replace generation of call to the run-time
6523 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
6524 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
6526 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
6527 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
6528 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
6529 Build_Set_Prim_Op_Address.
6530 (Get_Remotely_Callable): Subprogram removed.
6531 (Init_Predefined_Interface_Primitives): Replace generation of call to
6532 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
6535 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
6536 First (Parameter_Associations ()) with the call to First_Actual that
6537 returns an actual parameter expression for both named and positional
6540 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
6541 check violation of restriction No_Dispatching_Calls.
6542 (Check_Controlling_Type): A formal of a tagged incomplete type is a
6543 controlling argument.
6545 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
6546 First/Next_Component_Or_Discriminant
6547 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
6548 (Find_Implemented_Interface): Removed. All the calls to this subprogram
6549 specify Any_Limited_Interface, and this functionality is already
6550 provided by the function Has_Abstract_Interfaces.
6551 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
6552 support concurrent types implementing interfaces.
6553 (Find_Implemented_Interface): Removed. All the calls to this subprogram
6554 specify kind Any_Limited_Interface, and this functionality is already
6555 provided by the function Has_Abstract_Interfaces.
6556 (Remove_Side_Effects): replace Controlled_Type by
6557 CW_Or_Controlled_Type whenever the issue is related to
6558 using or not the secondary stack.
6560 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
6561 P_Interface_Type_Definition to fulfill the new interface (the formal
6562 Is_Synchronized is no longer required).
6564 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
6565 Update dependencies.
6567 * exp_atag.ads, exp_atag.adb: New file
6569 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6570 Bob Duff <duff@adacore.com>
6571 Cyrille Comar <comar@adacore.com>
6573 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
6574 anonymous, use finalization list of enclosing dynamic scope.
6575 (Expand_N_Package_Declaration): For a library package declaration
6576 without a corresponding body, generate RACW subprogram bodies in the
6577 spec (just as we do for the task activation call).
6578 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
6579 Is_Abstract_Type. Make sure these are called only when appropriate.
6580 Remove all code for DSP option
6581 (CW_Or_Controlled_Type): new subprogram.
6583 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6584 Ed Schonberg <schonberg@adacore.com>
6585 Gary Dismukes <dismukes@adacore.com>
6587 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
6588 parameter. If it is set to true, return a result capped according to
6589 the global upper bound for the index of an entry family.
6590 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
6591 (Build_Find_Body_Index): Adjust for above change.
6592 (Entry_Index_Expression): Likewise.
6593 (Is_Potentially_Large_Family): New function extracted from...
6594 (Collect_Entry_Families): ...here. Call it to detect whether the family
6595 is potentially large.
6596 (Build_Entry_Count_Expression): If the family is potentially large, call
6597 Family_Size with 'Cap' set to true.
6598 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
6599 a protected version of an operation declared in the private part of
6600 a protected object, because they may be invoked through a callback.
6601 (Set_Privals): If the type of a private component is an anonymous access
6602 type, do not create a new itype for each protected body.
6603 If the body of a protected operation creates
6604 controlled types (including allocators for class-widetypes), the
6605 body of the corresponding protected subprogram must include a
6607 (Build_Activation_Chain_Entity): Build the chain entity for extended
6609 (Type_Conformant_Parameters): Use common predicate Conforming_Types
6610 to determine whether operation overrides an inherited primitive.
6611 (Build_Wrapper_Spec): Add code to examine the parents while looking
6612 for a possible overriding candidate.
6613 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
6614 hold an actual parameter value since its initialization is separated
6615 from the the declaration. Prevents errors on null-excluding access
6618 2007-04-06 Thomas Quinot <quinot@adacore.com>
6620 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
6621 Do an Unchecked_Conversion to handle the passage from the Underlying
6622 Type to the Base Type when calling Build_To_Any_Call and
6623 Build_From_Any_Call.
6624 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
6625 E_Constant, depending upon Variable formal.
6626 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6627 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
6628 parameter that requires an extra constrained parameter, declare
6629 temporary for actual as a variable, not a constant.
6630 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
6631 the unit being compiled is the one that contains the stub type.
6632 Change primitive operation name for the RACW associated with a RAS
6633 from Call to _Call so it cannot clash with any legal identifier.
6634 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
6636 (Append_RACW_Bodies): New subprogram.
6637 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
6638 Add_Receiving_Stubs_To_Declarations functions.
6639 When expanding a package body, this list correspond to the
6640 statements in the HSS at the end of the pacakge.
6641 When expanding a package spec, this list correspond to the
6643 (Add_Receiving_Stubs_To_Declarations): Append the function
6644 registering the receiving stubs at the end of the 'Stmts' list.
6645 (RCI_Package_Locator): Pass the new Version generic formal when
6646 instantiating a RCI_Locator package.
6647 (Build_From_Any_Function): To compute the High bound for an
6648 unconstrained array actual, we add the Low bound with the length.
6649 Thus we must convert the low bound and the length to an appropriate
6650 type before doing the sum.
6651 (Build_Subprogram_Receiving_Stubs, PolyORB):
6652 * Retrieve the extra formals parameters at the
6653 end of the parameter stream.
6654 * Use Move_Any_Value to write back out parameters
6655 after executing the request as it is more efficient
6656 than Copy_Any_Value.
6657 * Build the any containing Extra Formals with the
6658 appropriate typecode.
6659 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
6660 empty Component_List.
6661 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
6662 the tree the declaration for an object that serves as actual parameter
6663 in server-side stubs.
6664 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
6665 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
6666 Use Build_Actual_Object_Declaration to prepare the actuals.
6667 (Add_Parameter_To_NVList): Set the parameter mode to In for
6668 Extra Constrained Parameters.
6669 (Build_General_Calling_Stubs): Set the parameter type to boolean for
6670 Extra Constrained parameters.
6671 (Build_To_Any_Function, Build_From_Any_Function,
6672 Built_TypeCode_Function): When Typ is implicit, call the correct
6673 function with the first not implicit parent type.
6674 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
6675 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
6676 typecode from the Etype. Therefore we retrieve the correct typecode
6677 with a call to Get_Any_Type.
6678 (Copy_Specification): Do controlling formal type substitution based on
6679 Is_Controlling_Formal flag, instead of caller-provided object type.
6680 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
6681 a RACW primitive operation, we might get a subprogram declaration for an
6682 ancestor of the RACW designated type (not for the designated type
6683 itself), in the case where this operation is inherited. In this case we
6684 have no easy means of determining the original tagged type for which
6685 the primitive was declared, so instead we now rely on
6686 Copy_Specification to use the Is_Controlling_Formal flag to determine
6687 which formals require type substitution.
6689 2007-04-06 Robert Dewar <dewar@adacore.com>
6690 Ed Schonberg <schonberg@adacore.com>
6692 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
6693 GNAT.Current_Exception are not allowed if pragma Restrictions
6694 (No_Exception_Propagation) is set and in any case make the associated
6695 handler unsuitable as a target for a local raise statement.
6696 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
6697 run-time subprogram CW_Membership by call to Build_CW_Membership.
6698 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
6699 by a function call, a temporary must be created before expanding the
6700 Constructor_Call itself, to prevent out-of-order elaboration in the
6701 back-end when stack checking is enabled..
6703 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6705 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
6706 result are the bounds of the left operand, not the right.
6708 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6711 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
6712 discriminant defaults.
6713 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
6714 (Make_Component_List_Attributes): Ditto.
6716 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6717 Bob Duff <duff@adacore.com>
6719 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
6720 an association with a box as providing a value even though the
6721 initialization procedure for the type is not available.
6722 (Resolve_Record_Aggregate): Check that a choice of an association with a
6723 box corresponds to a component of the type.
6724 (Resolve_Record_Aggregate): Split Is_Abstract flag into
6725 Is_Abstract_Subprogram and Is_Abstract_Type.
6727 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
6730 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
6731 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
6732 called only when appropriate.
6734 2007-04-06 Olivier Hainque <hainque@adacore.com>
6736 * g-alleve.ads (Low Level Vector type definitions): Map each to the
6737 associated vector view instead of all to the unsigned char view.
6739 * g-altcon.adb (Generic_Conversions): New internal generic package,
6740 offering facilities for all the Vector/View conversion routines
6741 implemented by this unit.
6742 (To_View/To_Vector - all versions): Reimplemented in a systematic
6743 manner, using the internal Generic_Conversions facilities.
6745 2007-04-06 Pascal Obry <obry@adacore.com>
6747 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
6749 (Create): Free the source string before storing the new one.
6751 2007-04-06 Vincent Celier <celier@adacore.com>
6753 * g-debpoo.adb (Validity): New package with a complete new
6754 implementation of subprograms Is_Valid and Set_Valid.
6755 (Is_Valid): Move to local package Validity
6756 (Set_Valid): Move to local package Validity
6758 2007-04-06 Arnaud Charlet <charlet@adacore.com>
6760 * g-expect.adb (Get_Command_Output): When expanding the output buffer
6761 we must ensure that there is enough place for the new data we are going
6764 2007-04-06 Thomas Quinot <quinot@adacore.com>
6766 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
6769 2007-04-06 Jose Ruiz <ruiz@adacore.com>
6770 Vincent Celier <celier@adacore.com>
6772 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
6773 (Stack_String): Add this String that contains the name of the Stack
6774 package in the project file.
6775 (Packages_To_Check_By_Stack): Add this list that contains the packages
6776 to be checked by gnatstack, which are the naming and the stack packages.
6777 (Check_Files): If no .ci files were specified for gnatstack we add all
6778 the .ci files belonging to the projects, including binder generated
6780 (Non_VMS_Usage): Document that gnatstack accept project file switches.
6781 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
6782 Add gnatstack to the list of commands that use project file related
6783 switches, and get the single attribute Switches from the stack package
6784 in a project file when calling gnatstack. Parse the -U flag for
6785 processing files belonging to all projects in the project tree.
6786 Remove all processing for command Setup
6788 * prj-attr.adb: Add new package Stack with single attribute Switches
6790 * vms_conv.ads (Command_Type): Add command Stack.
6791 Move to body declarations that are only used in the body: types Item_Id,
6792 Translation_Type, Item_Ptr, Item and its subtypes.
6794 * vms_conv.adb: (Initialize): Add data for new command Stack.
6795 Add declarations moved from the spec: types Item_Id, Translation_Type,
6796 Item_Ptr, Item and its subtypes.
6797 (Cargs_Buffer): New table
6798 (Cargs): New Boolean global variable
6799 (Process_Buffer): New procedure to create arguments
6800 (Place): Put character in table Buffer or Cargs_Buffer depending on the
6802 (Process_Argument): Set Cargs when processing qualifiers for GNAT
6804 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
6805 empty, for table Cargs_Buffer.
6806 (Initialize): Remove component Setup in Command_List
6808 2007-04-06 Vincent Celier <celier@adacore.com>
6810 * gprep.adb (Process_Files.Process_One_File): Use full file name when
6811 issuing pragma Source_Reference.
6813 2007-04-06 Emmanuel Briot <briot@adacore.com>
6815 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
6816 [[:xdigit:]] character class.
6817 Also raise an exception when an invalid character class is used.
6819 2007-04-06 Pascal Obry <obry@adacore.com>
6821 * i-cstrea.ads: (fopen): Add encoding parameter.
6823 Change reference from a-sysdep.c to sysdep.c in comment.
6824 Update copyright notice.
6825 This set of patch add support for the encoding form parameter.
6827 * mingw32.h (S2WSU): New macro to convert from a string to a
6828 wide-string using the UTF-8 encoding. The S2WS macro supports now only
6829 standard 8bits encoding.
6830 (WS2SU): As above but converting from wide-sring to string.
6831 This is needed as it is necessary to have access to both versions in the
6832 runtime for the form parameter encoding support.
6833 This set of patch add support for the encoding form parameter.
6834 (S2WS): Improve implementation to handle cases where the filename is not
6835 UTF-8 encoded. In this case we default to using the current code page
6838 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
6839 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
6840 the constants defined in adaint.h.
6841 (fopen): Add encoding parameter.
6844 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
6845 encoding. This is needed for the Reset routine (freopen low level-call).
6847 * s-fileio.adb (Open): Decode encoding form parameter and set the
6848 corresponding encoding value into AFCB structure.
6849 (Reset): Pass the encoding value to freopen.
6850 (Close): Move the call to Lock_Task to the beginning of the procedure.
6852 2007-04-06 Geert Bosch <bosch@adacore.com>
6853 Robert Dewar <dewar@adacore.com>
6855 * i-fortra.ads: Add Double_Complex type.
6857 * impunit.adb: (Is_Known_Unit): New function
6858 Add Gnat.Byte_Swapping
6860 Add new Ada 2005 units
6861 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
6862 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
6863 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
6864 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
6866 * impunit.ads (Is_Known_Unit): New function
6868 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
6869 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
6870 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
6871 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
6872 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
6873 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
6876 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
6878 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
6880 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6881 Arnaud Charlet <charlet@adacore.com>
6883 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
6884 __gnat_adjust_context_for_raise.
6885 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
6886 implementation of floating point operations as native x86 targets.
6887 So the FPU should be initialized in the same way using finit. Fix
6888 floating point operations accuracy issues.
6889 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
6890 member in struct sigaction, so as to avoid warning for incompatible
6893 2007-04-06 Serguei Rybin <rybin@adacore.com>
6895 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
6896 switches from previously loaded tree
6898 2007-04-06 Thomas Quinot <quinot@adacore.com>
6900 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
6901 cases where a given dependency has a body or not.
6902 (Write_With_File_Names): New subprogram, common code for the two cases
6905 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6906 Javier Miranda <miranda@adacore.com>
6908 * lib-xref.ads, lib-xref.adb:
6909 Modify the loop that collects type references, to include interface
6910 types that the type implements. List each of these interfaces when
6911 building the entry for the type.
6912 (Generate_Definition): Initialize component Def and Typ of new entry
6913 in table Xrefs, to avoid to have these components unitialized.
6914 (Output_References): Split Is_Abstract flag into
6915 Is_Abstract_Subprogram and Is_Abstract_Type.
6916 (Generate_Reference): Add barrier to do not generate the warning
6917 associated with Ada 2005 entities with entities generated by the
6920 2007-04-06 Robert Dewar <dewar@adacore.com>
6921 Arnaud Charlet <charlet@adacore.com>
6922 Vincent Celier <celier@adacore.com>
6924 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
6925 Update 'Exception Handling Control' chapter which was outdated.
6926 Minor fix to documentation of -gnatwq
6927 Remove section "Adapting the Run Time to a New C++ Compiler" because
6929 Add passage on need of -nostart-files in some non-ada-main cases.
6930 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
6931 Update documentation about Interfacing with C++
6932 Add documentation for new gnatmake switch -p
6933 Add missing protocol part in URLs.
6935 Document pragma Compile_Time_Error
6936 Add documentation for Object_Size indicating that stand alone
6937 objects can have a larger size in some cases.
6938 Add node for GNAT.Byte_Swapping, GNAT.SHA1
6939 Update reference to the Ravenscar profile.
6940 Document pragma Unreferenced_Objects
6942 * gnat-style.texi: Fix typo
6944 2007-04-06 Vincent Celier <celier@adacore.com>
6946 * mlib.adb (Building_Library): Only output "building a library..." in
6949 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
6950 files in verbose mode.
6952 * mlib-utl.adb (Ar): Only output the first object files when not in
6954 (Gcc): Do not display all the object files if not in verbose mode, only
6957 2007-04-06 Robert Dewar <dewar@adacore.com>
6959 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
6960 it no longer destroys the contents of Name_Buffer or Name_Len and
6961 non-standard and invalid names are handled better.
6962 (Get_Decoded_Name_String): Improve performance by using
6963 Name_Has_No_Encodings flag in the name table.
6964 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
6965 Used for debugging printouts.
6967 2007-04-06 Robert Dewar <dewar@adacore.com>
6968 Javier Miranda <miranda@adacore.com>
6969 Bob Duff <duff@adacore.com>
6971 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
6972 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
6973 there is no need to generate always a record_definition_node in case
6974 of synchronized interface types.
6975 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
6976 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
6977 illegal in Ada 95, in cases where it is legal. Change the warnings to
6978 errors in other cases. Don't give the error unless the "not null"
6979 parses properly. Correct the source position at which the error occurs.
6980 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
6981 P_Null_Exclusion, to suppress "not null" warnings.
6982 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
6983 associated goto statements.
6985 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
6988 * scans.ads (Type_Token_Location): New flag
6990 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
6991 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
6992 P_Null_Exclusion, to suppress "not null" warnings.
6994 2007-04-06 Robert Dewar <dewar@adacore.com>
6995 Javier Miranda <miranda@adacore.com>
6996 Bob Duff <duff@adacore.com>
6997 Vincent Celier <celier@adacore.com>
6999 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
7000 (Extensions_Allowed): No longer sets Ada_Version
7001 Entry for pragma Unreferenced_Objects
7003 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
7004 system.tasking if pragma priority used in a procedure
7005 (Analyze_Pragma, case Warning): Handle dot warning switches
7006 (Process_Compile_Time_Warning_Or_Error): New procedure
7007 (Analyze_Pragma): Add processing for Compile_Time_Error
7008 Add support for extra arguments External_Name and Link_Name.
7009 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
7010 (Process_Import_Or_Interface): Add support for the use of pragma Import
7012 (Extensions_Allowed): No longer affects Ada_Version
7013 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
7014 Is_Abstract_Type. Make sure these are called only when appropriate.
7015 Add processing for pragma Unreferenced_Objects
7017 * snames.h, snames.ads, snames.adb: Add entry for pragma
7019 Add new standard name Minimum_Binder_Options for new gprmake
7020 Add new standard names for gprmake: Archive_Suffix,
7021 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
7022 Library_Support, Library_Version_Options,
7023 Shared_Library_Minimum_Options,
7024 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
7025 Change Name_Call to Name_uCall so that it cannot clash with a legal
7027 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
7028 Append C_Plus_Plus to convention identifiers as synonym for CPP
7029 Add new standard names Stack and Builder_Switches
7030 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
7031 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
7032 Run_Path_Option, Toolchain_Version.
7033 Entry for pragma Unreferenced_Objects
7035 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
7036 switches, without repetition of "eD". Make sure that last character of
7037 -gnatep= switch is not taken as -gnat switch character.
7038 Complete rewrite of circuit for handling saving compilation options
7039 Occasioned by need to support dot switchs for -gnatw, but cleans up
7041 -gnatX does not affect Ada_Version
7042 Include -gnatyA in -gnatg style switches
7044 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
7045 warnings on return objects.
7046 (Warn_On_Useless_Assignment): Exclude warnings on return objects
7047 (Set_Dot_Warning_Switch): New procedure
7048 (Check_References): Add missing case of test for
7049 Has_Pragma_Unreferenced_Objects
7050 (Output_Unreferenced_Messages): Implement effect of new pragma
7051 Unreferenced_Objects, remove special casing of limited controlled
7054 2007-04-06 Vincent Celier <celier@adacore.com>
7056 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
7057 the default project path, initially done during elaboration of the
7059 If the prefix returned by Sdefault is null, get the prefix from a call
7060 to Executable_Prefix_Path.
7061 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
7064 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
7065 canonical directory name to open the directory from which files are
7067 (Record_Other_Sources): Idem.
7068 (Locate_Directory): Add the possibility to create automatically missing
7069 directories when Setup_Projects is True.
7070 Call Locate_Directory so that the directory will be created when
7071 Setup_Projects is True, for object dir, library dir, library ALI dir,
7072 library source copy dir and exec dir.
7074 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
7077 2007-04-06 Robert Dewar <dewar@adacore.com>
7079 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
7080 Use First/Next_Component_Or_Discriminant
7081 (Analyze_Record_Representation_Clause):
7082 Use First/Next_Component_Or_Discriminant
7083 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
7084 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
7085 definition if type is unconstrained.
7086 (Adjust_Record_For_Reverse_Bit_Order): New procedure
7087 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
7088 Is_Abstract_Subprogram and Is_Abstract_Type.
7089 (Adjust_Record_For_Reverse_Bit_Order): New procedure
7091 * repinfo.adb (List_Record_Info): Use First/
7092 Next_Component_Or_Discriminant.
7094 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
7097 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
7098 Include -gnatyA in default switches
7100 * opt.ads: (Warn_On_Non_Local_Exception): New flag
7101 (Warn_On_Reverse_Bit_Order): New flag
7102 (Extensions_Allowed): Update the documentation.
7103 (Warn_On_Questionable_Missing_Parens): Now on by default
7105 * usage.adb: Add documentation of -gnatw.x/X switches
7106 Document new -gnatyA style switch
7107 -gnatq warnings are on by default
7109 2007-04-06 Ed Falis <falis@adacore.com>
7111 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
7112 full word is no longer compared twice.
7114 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7116 * sem_ch10.adb (Install_Limited_Context_Clauses.
7117 Expand_Limited_With_Clause): Use a new copy of selector name in the
7118 call to Make_With_Clause. This fixes the tree structure for ASIS
7119 purposes. Nothing is changed in the compiler behaviour.
7120 (Process_Body_Clauses): Handle properly use clauses whose prefix is
7122 (Install_Limited_With_Clauses): Do not install non-limited view when it
7123 is still incomplete.
7125 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7126 Gary Dismukes <dismukes@adacore.com>
7128 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
7129 when capturing size information, instead of base type, which for a
7130 formal array type will be the unconstrained type.
7131 (Analyze_Formal_Object_Declaration): Add check for illegal default
7132 expressions for a formal in object of a limited type.
7133 (Instantiate_Object): Ditto.
7134 (Check_Formal_Package_Instance): Skip entities that are formal objects,
7135 because they were defaulted in the formal package and no check applies
7137 (Check_Formal_Package_Instance): Extend conformance check to other
7138 discrete types beyond Integer.
7139 (Process_Default): Copy directly the unmatched formal. A generic copy
7140 has already been performed in Analyze_Formal_Package.
7141 (Analyze_Associations): If a formal subprogram has no match, check for
7142 partial parametrization before looking for a default, to prevent
7144 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
7145 not set the instantiation environment before analyzing the actuals.
7146 Fixes regression on 8515-003 with implementation of AI-133.
7147 Set_Instance_Env checks whether the generic unit is a predefined
7148 unit, in which case the instance must be analyzed with the latest Ada
7149 mode. This setting must take place after analysis of the actuals,
7150 because the actuals must be analyzed and frozen in the Ada mode extant
7151 outside of the current instantiation.
7152 (Save_Env, Restore_Env): Preserve and restore the configuration
7153 parameters so that predefined units can be compiled in the proper Ada
7155 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
7156 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
7157 and Is_Abstract_Type.
7158 (Analyze_Formal_Package): For better error recovery, Add exception
7159 handler to catch Instantion_Error, which can be raised in
7160 Analyze_Associations
7162 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7163 Bob Duff <duff@adacore.com>
7164 Gary Dismukes <dismukes@adacore.com>
7166 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
7167 prefix type is a discriminated subtype of the type of the formal.
7168 (Analyze_Allocator): Collect all coextensions regardless of the context.
7169 Whether they can be allocated statically is determined in exp_ch4.
7170 (Analyze_Selected_Component): If the prefix is a limited view and the
7171 non-limited view is available, use the non-limited one.
7172 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
7173 therefore illegal), suggest a qualified expression rather than a type
7174 conversion, because a type conversion would be illegal in this context.
7175 (Anayze_Allocator): Trace recursively all nested allocators so that all
7176 coextensions are on the corresponding list for the root. Do no mark
7177 coextensions if the root allocator is within a declaration for a stack-
7178 allocated object, because the access discriminants will be allocated on
7180 (Analyze_Call): Remove restriction on calls to limited functions for the
7181 cases of generic actuals for formal objects, defaults for formal objects
7182 and defaults for record components.
7183 (Analyze_Allocator): Before analysis, chain coextensions on the proper
7184 element list. Their expansion is delayed until the enclosing allocator
7185 is processed and its finalization list constructed.
7186 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
7187 for an operation with the given name among the primitive operations of
7188 the corresponding record type.
7189 (Analyze_Selected_Component): If the prefix is a task type that
7190 implements an interface, and there is no entry with the given name,
7191 check whether there is another primitive operation (e.g. a function)
7193 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
7194 properly the indexing of a function call written in prefix form, where
7195 the function returns an array type, and all parameters of the function
7196 except the first have defaults.
7197 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
7198 the original operands, rather than relocating them, for efficiency and
7199 to work properly when an operand is overloaded.
7200 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
7201 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
7202 (Analyze_Selected_Component): If the prefix is a private extension, only
7203 scan the visible components, not those of the full view.
7204 (Try_Primitive_Operation): If the operation is a procedure, collect all
7205 possible interpretations, as for a function, because in the presence of
7206 classwide parameters several primitive operations of the type can match
7207 the given arguments.
7209 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7210 Robert Dewar <dewar@adacore.com>
7212 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
7213 tag-indeterminate call to an abstract function, when the left-hand side
7215 (Analyze_Loop_Statement): Improve detection of infinite loops
7217 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7218 Thomas Quinot <quinot@adacore.com>
7220 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
7221 out of Analyze_Package_Declaration, because processing must be applied
7222 to package bodies as well, for deferred constants completed by pragmas.
7223 (Analyze_Package_Declaration): When the package declaration being
7224 analyzed does not require an explicit body, call Check_Completion.
7225 (May_Need_Implicit_Body): An implicit body is required when a package
7226 spec contains the declaration of a remote access-to-classwide type.
7227 (Analyze_Package_Body): If the package contains RACWs, append the
7228 pending subprogram bodies generated by exp_dist at the end of the body.
7229 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
7230 Is_Abstract_Subprogram and Is_Abstract_Type.
7231 (Preserve_Full_Attributes): The full entity list is not an attribute
7232 that must be preserved from full to partial view.
7234 * sem_dist.adb (Add_RAS_Dereference_TSS):
7235 Change primitive name to _Call so it cannot clash with any legal
7236 identifier, and be special-cased in Check_Completion.
7237 Mark the full view of the designated type for the RACW associated with
7238 a RAS as Comes_From_Source to get proper view switching when installing
7239 private declarations.
7240 Provite a placeholder nested package body along with the nested spec
7241 to have a place for Append_RACW_Bodies to generate the calling stubs
7242 and stream attributes.
7244 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7245 Robert Dewar <dewar@adacore.com>
7247 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
7248 that is a limited view, check the non-limited view if available.
7249 (Undefined): Refine error message for missing with of Text_IO
7250 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
7251 to distinguish real missing with cases.
7252 Fix format of all missing with messages
7253 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
7254 renaming as body when renamed entity is abstract.
7256 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7257 Javier Miranda <miranda@adacore.com>
7259 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
7260 predicate recursive, to handle complex expressions on literals whose
7261 spurious ambiguity comes from the abstract interpretation of some
7263 (Interface_Present_In_Ancestor): Add support to concurrent record
7265 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
7266 Is_Abstract_Subprogram and Is_Abstract_Type.
7268 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7269 Javier Miranda <miranda@adacore.com>
7271 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
7272 dereference of a local object R created as a reference to another
7273 object O, use the access level of O.
7274 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
7275 rather than local Same_Formal_Type, to check whether protected operation
7276 overrides an inherited one.
7277 (Same_Formal_Type): New predicate, used when matching signatures of
7278 overriding synchronized operations, to handle the case when a formal
7279 has a type that is a generic actual.
7280 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
7281 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
7282 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
7283 syntactic ambiguities involving indexing of function calls that return
7285 (Abstract_Interface_List): New subprogram that returns the list of
7286 abstract interfaces associated with a concurrent type or a
7287 concurrent record type.
7288 (Interface_Present_In_Parent): New subprogram used to check if a
7289 given type or some of its parents implement a given interface.
7290 (Collect_Abstract_Interfaces): Add support for concurrent types
7291 with interface types.
7292 (Has_Abstract_Interfaces): Add support for concurrent types with
7294 (Is_Parent): New subprogram that determines whether E1 is a parent
7295 of E2. For a concurrent type its parent is the first element of its
7296 list of interface types; for other types this function provides the
7297 same result than Is_Ancestor.
7298 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
7299 (Collect_Synchronized_Interfaces): Removed because the subprogram
7300 Collect_Abstract_Interfaces provides this functionality.
7301 (Collect_Abstract_Interfaces): Minor update to give support to
7302 concurrent types and thus avoid undesired code duplication.
7303 (Get_Subprogram_Entity): Handle entry calls.
7304 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
7306 (Enter_Name): Do not give -gnatwh hiding warning for record component
7307 entities, they never result in hiding.
7309 2007-04-06 Ed Schonberg <schonberg@adacore.com>
7310 Robert Dewar <dewar@adacore.com>
7312 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
7313 to chain nested components that are allocators for access discriminants
7314 of the enclosing object.
7315 Add N_Push and N_Pop nodes
7316 New field Exception_Label added
7317 (Local_Raise_Statements): New field in N_Exception_Handler_Node
7318 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
7319 (Is_Coextension): New flag for allocators, to mark allocators that
7320 correspond to access discriminants of dynamically allocated objects.
7321 (N_Block_Statement): Document the fact that the corresponding entity
7322 can be an E_Return_Statement.
7323 (Is_Coextension): New flag for allocators.
7324 Remove all code for DSP option
7326 * sprint.ads, sprint.adb: Display basic information for class_wide
7327 subtypes. Add handling of N_Push and N_Pop nodes
7329 2007-04-06 Arnaud Charlet <charlet@adacore.com>
7331 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
7332 before propagating exception.
7334 2007-04-06 Olivier Hainque <hainque@adacore.com>
7336 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
7337 an address always within the call instruction from a return address.
7339 2007-04-06 Olivier Hainque <hainque@adacore.com>
7340 Eric Botcazou <botcazou@adacore.com>
7342 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
7343 expression with a COMPOUND_EXPR including the call instead of emitting
7344 the call directly here.
7345 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
7346 high bound is constant and the slice is empty. Tidy.
7347 (tree_transform, case N_Op_Not): Handle properly the case where the
7348 operation applies to a private type whose full view is a modular type.
7349 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
7350 Address_Clause, use the associated Expression as the GNAT tree
7351 representing the choice value to ensure the corresponding GCC tree is
7353 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
7354 instead of just the operands, as the base GCC stabilize_reference does.
7355 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
7356 requested; otherwise fail.
7357 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
7359 2007-04-06 Thomas Quinot <quinot@adacore.com>
7361 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
7362 implementation of UI_Div.
7363 (UI_Div): Reimplement as a call to UI_Div_Rem.
7364 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
7365 remainder, avoiding the cost of a multiplication and a subtraction.
7366 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
7367 provides both quotient and remainder in a single computation.
7368 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
7370 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
7371 is undefined if the given n is not inversible.
7373 2007-04-06 Olivier Hainque <hainque@adacore.com>
7375 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
7376 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
7379 2007-04-06 Eric Botcazou <botcazou@adacore.com>
7380 Olivier Hainque <hainque@adacore.com>
7382 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
7383 when updating the contents of the old pointer to an unconstrained array.
7384 (end_subprog_body): Set error_gnat_node to Empty.
7385 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
7386 (unchecked_convert): For subtype to base type conversions, require that
7387 the source be a subtype if it is an integer type.
7388 (builtin_decls): New global, vector of available builtin functions.
7389 (gnat_pushdecl): Add global builtin function declaration nodes to the
7391 (gnat_install_builtins): Adjust comments.
7392 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
7393 calling gnat_pushdecl, so that it knows when it handed a builtin
7394 function declaration node.
7395 (builtin_decl_for): Search the builtin_decls list.
7397 2007-04-06 Eric Botcazou <botcazou@adacore.com>
7399 * s-stchop-vxworks.adb:
7400 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
7402 2007-04-06 Robert Dewar <dewar@adacore.com>
7403 Arnaud Charlet <charlet@adacore.com>
7405 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
7407 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
7409 Add mention of -Sev (set initialize_scalars option from environment
7410 variable at run time) in gnatbind usage message.
7412 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
7414 * fname-uf.ads: Minor comment fix
7416 * osint.ads: Change pragma Elaborate to Elaborate_All
7418 * par-load.adb: Add documentation.
7420 * sem_cat.ads, sem_cat.adb: Minor code reorganization
7422 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
7424 * s-secsta.ads: Extra comments
7426 * s-soflin.ads: Minor comment fixes
7428 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
7430 * s-wchcon.ads: Minor comment addition
7432 * treepr.adb: Minor change in message
7433 (Print_Name,Print_Node): Make these debug printouts more robust: print
7434 "no such..." instead of crashing on bad input.
7436 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
7438 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
7439 instead of gnat_signed_or_unsigned_type.
7440 * utils.c (gnat_signed_or_unsigned_type): Remove.
7441 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
7442 * gigi.h (gnat_signed_or_unsigned_type): Remove
7444 2007-03-09 Roger Sayle <roger@eyesopen.com>
7446 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
7447 fold with the result of buildN.
7448 * decl.c (gnat_to_gnu_entity): Likewise.
7449 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
7450 * utils.c (finish_record_type, merge_sizes, max_size, convert):
7452 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
7453 nonbinary_modular_operation, build_binary_op, build_unary_op,
7454 build_cond_expr): Likewise.
7456 * utils.c (convert): Use fold_build1 when casting values to void.
7457 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
7458 fold_convert instead of convert when appropriate.
7460 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
7462 * Make-lang.in: Add install-pdf target as copied from
7463 automake v1.10 rules.
7465 2007-02-28 Andreas Schwab <schwab@suse.de>
7467 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
7468 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
7469 (doc/gnat-style.info): Likewise.
7471 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
7473 * gnat-style.texi: Standardize title page.
7474 * gnat_rm.texi: Likewise.
7475 * gnat_ugn.texi: Likewise.
7477 2007-02-25 Mark Mitchell <mark@codesourcery.com>
7479 * decl.c (annotate_value): Adjust for refactoring of tree_map
7482 2007-02-24 Mark Mitchell <mark@codesourcery.com>
7484 * decl.c (annotate_value): Adjust for refactoring of tree_map
7487 2007-02-21 Ed Schonberg <schonberg@adacore.com>
7490 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
7491 untagged derived type, add hidden components to keep discriminant
7492 layout consistent, when a given discriminant of the derived type
7493 constraints several discriminants of the parent type.
7495 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
7496 Sandra Loosemore <sandra@codesourcery.com>
7498 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
7499 build the call expression.
7500 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
7501 * utils.c (max_size) <tcc_exceptional>: Delete.
7502 <tcc_vl_exp>: New case.
7503 <tcc_expression>: Delete CALL_EXPR subcase.
7504 (build_global_cdtor): Use build_call_nary instead of build3.
7505 * utils2.c (build_call_1_expr): Likewise.
7506 (build_call_2_expr): Likewise.
7507 (build_call_0_expr): Likewise.
7508 (build_call_alloc_dealloc): Likewise.
7510 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
7512 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
7513 get_action_description_for): Replace _Unwind_Word with _uleb128_t
7514 and _Unwind_SWord with _sleb128_t.
7516 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
7518 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
7519 * decl.c: Include gt-ada-decl.h.
7520 (annotate_value_cache): New.
7521 (annotate_value): Use it instead of TREE_COMPLEXITY.
7523 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
7525 * misc.c, utils2.c: Fix comment typos.
7527 2007-01-24 Roger Sayle <roger@eyesopen.com>
7529 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
7530 TREE_CONSTANT_OVERFLOW.
7531 (allocatable_size_p, annotate_value): Likewise.
7532 * trans.c (gnat_to_gnu): Likewise.
7533 * utils.c (unchecked_convert): Likewise.
7534 * utils2.c (build_simple_component_ref): Likewise.
7536 2007-01-23 Richard Guenther <rguenther@suse.de>
7539 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
7540 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
7541 (gnatboot3): Likewise.
7542 (GNATBIND): Do not define.
7543 * Makefile.in (GNATBIND): Do not define.
7545 2007-01-08 Richard Guenther <rguenther@suse.de>
7547 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
7548 * trans.c (gnat_to_gnu): Likewise.
7550 2006-12-07 Geoffrey Keating <geoffk@apple.com>
7552 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
7553 * adaint.c: Likewise.
7555 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
7557 Merge from gimple-tuples-branch:
7558 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
7560 * ada-tree.h (lang_tree_node): Handle gimple tuples.
7561 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
7564 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
7566 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
7567 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
7570 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
7573 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
7574 if the initializer takes into account the padding.
7576 2006-11-11 Richard Guenther <rguenther@suse.de>
7578 * trans.c (maybe_stabilize_reference): Remove handling of
7579 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
7581 2006-11-05 Arnaud Charlet <charlet@adacore.com>
7584 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
7585 (To_Target_Priority): New function.
7587 2006-10-31 Robert Dewar <dewar@adacore.com>
7589 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
7590 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
7591 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
7592 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
7593 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
7594 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
7595 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
7596 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
7597 a-szbzha.adb: Minor reformatting. Fix header.
7599 * a-numaux-x86.adb: Add parentheses for use of unary minus
7600 * a-ngcefu.adb: Supply missing parentheses for unary minus
7601 * a-ngcoty.adb: Add parens for use of unary minus
7602 * a-ngelfu.adb: Add missing parens for unary minus
7603 * a-tifiio.adb: Add parentheses for uses of unary minus
7605 2006-10-31 Robert Dewar <dewar@adacore.com>
7606 Bob Duff <duff@adacore.com>
7607 Ed Schonberg <schonberg@adacore.com>
7609 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
7610 with multiplying operator.
7611 (Expected_Type_Is_Any_Real): New function to determine from the Parent
7612 pointer whether the context expects "any real type".
7613 (Resolve_Arithmetic_Op): Do not give an error on calls to the
7614 universal_fixed "*" and "/" operators when they are used in a context
7615 that expects any real type. Also set the type of the node to
7616 Universal_Real in this case, because downstream processing requires it
7617 (mainly static expression evaluation).
7618 Reword some continuation messages
7619 Add some \\ sequences to continuation messages
7620 (Resolve_Call): Refine infinite recursion case. The test has been
7621 sharpened to eliminate some false positives.
7622 Check for Current_Task usage now includes entry barrier, and is now a
7623 warning, not an error.
7624 (Resolve): If the call is ambiguous, indicate whether an interpretation
7625 is an inherited operation.
7626 (Check_Aggr): When resolving aggregates, skip associations with a box,
7627 which are priori correct, and will be replaced by an actual default
7628 expression in the course of expansion.
7629 (Resolve_Type_Conversion): Add missing support for conversion from
7630 a class-wide interface to a tagged type. Minor code cleanup.
7631 (Valid_Tagged_Converion): Add support for abstact interface type
7633 (Resolve_Selected_Component): Call Generate_Reference here rather than
7634 during analysis, and use May_Be_Lvalue to distinguish read/write.
7635 (Valid_Array_Conversion): New procedure, abstracted from
7636 Valid_Conversion, to incorporate accessibility checks for arrays of
7637 anonymous access types.
7638 (Valid_Conversion): For a conversion to a numeric type occurring in an
7639 instance or inlined body, no need to check that the operand type is
7640 numeric, since this has been checked during analysis of the template.
7641 Remove legacy test for scope name Unchecked_Conversion.
7643 * sem_res.ads: Minor reformatting
7645 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
7646 (PE_Current_Task_In_Entry_Body): New exception code
7647 (SE_Restriction_Violation): Removed, not used
7649 * a-except.ads: Update comments.
7651 * types.h, types.ads: Add definition for Validity_Check
7652 (PE_Current_Task_In_Entry_Body): New exception code
7653 (SE_Restriction_Violation): Removed, not used
7655 2006-10-31 Thomas Quinot <quinot@adacore.com>
7657 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
7660 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
7661 Jose Ruiz <ruiz@adacore.com>
7663 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
7664 part of Ada.Calendar: all subprogram raise Unimplemented.
7665 (Split_W_Offset): Temp function body, raising Unimplemented
7667 * a-calend.ads, a-calend-vms.ads:
7668 Add imported variable Invalid_TZ_Offset used to designate targets unable
7669 to support time zones.
7670 (Unimplemented): Temporary function raised by the body of new
7672 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
7673 unit provides handling of leap seconds and is used by the new Ada 2005
7674 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
7675 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
7676 version returns an extra value which is the offset to UTC.
7678 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
7679 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
7680 (Split_W_Offset): New function body.
7681 (Time_Of): When a date is close to UNIX epoch, compute the time for
7682 that date plus one day (that amount is later substracted after
7683 executing mktime) so there are no problems with time zone adjustments.
7685 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
7687 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
7688 a-catizo.ads, a-catizo.adb: New files.
7690 * impunit.adb: Add new Ada 2005 entries
7692 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
7693 Rename all occurences of "__gnat_localtime_r" to
7694 "__gnat_localtime_tzoff".
7695 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
7696 zone data and calculate the GMT offset.
7697 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
7698 Use the field "tm_gmtoff" to extract the GMT offset.
7699 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
7700 the external variable "timezone" to calculate the GMT offset.
7702 2006-10-31 Arnaud Charlet <charlet@adacore.com>
7703 Jose Ruiz <ruiz@adacore.com>
7705 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
7706 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
7707 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
7708 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
7709 System.Any_Priority to a POSIX priority on the target.
7711 * system-linux-ia64.ads:
7712 Extend range of Priority types on Linux to use the whole range made
7713 available by the system.
7715 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
7716 function maps from System.Any_Priority to a POSIX priority on the
7718 (PTHREAD_PRIO_PROTECT): Set real value.
7719 (PTHREAD_PRIO_INHERIT): Now a function.
7720 (SIGCPUFAIL): New signal.
7721 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
7722 are documented as reserved by the OS.
7724 * system-aix.ads: Use the full range of priorities provided by the
7727 * s-taprop-posix.adb: Call new function To_Target_Priority.
7728 (Set_Priority): Take into account Task_Dispatching_Policy and
7729 Priority_Specific_Dispatching pragmas when determining if Round Robin
7730 must be used for scheduling the task.
7732 * system-linux-x86_64.ads, system-linux-x86.ads,
7733 system-linux-ppc.ads: Extend range of Priority types on Linux to use
7734 the whole range made available by the system.
7736 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
7737 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
7738 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
7739 when deallocating the TCB in order to avoid potential references to
7741 (Set_Priority): Take into account Task_Dispatching_Policy and
7742 Priority_Specific_Dispatching pragmas when determining if Round Robin
7743 or FIFO within priorities must be used for scheduling the task.
7745 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
7746 the Thread field (to be used internally by the run-time system) and the
7747 kernel-level task id in the LWP field (to be used by the debugger).
7748 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
7749 instance, and propagate the current task options to the spawned task.
7750 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
7751 (Initialize): Set Round Robin dispatching when the corresponding pragma
7754 2006-10-31 Robert Dewar <dewar@adacore.com>
7756 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7757 system-linux-hppa.ads, system-hpux-ia64.ads,
7758 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
7759 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7760 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7761 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
7762 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7763 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7764 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
7765 Default_Bit_Order) to kill constant condition warnings for references
7768 2006-10-31 Vincent Celier <celier@adacore.com>
7769 Eric Botcazou <ebotcazou@adacore.com>
7771 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
7772 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
7773 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
7774 Ext_To, when building the library file name
7776 * mlib-tgt-vxworks.adb: ditto.
7777 (Get_Target_Suffix): Add support for x86 targets.
7779 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
7781 * mlib-tgt-darwin.adb:
7782 Use Append_To, instead of Ext_To, when building the library file name
7783 (Flat_Namespace): New global variable.
7784 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
7785 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
7786 (Link_Shared_Libgcc): Delete.
7787 (Build_Dynamic_Library): Adjust for above changes.
7789 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
7791 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
7793 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
7794 (Initialize): Add type conversions required by above change.
7796 2006-10-31 Jose Ruiz <ruiz@adacore.com>
7798 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
7799 (getpid): New body for this function that uses the underlying taskIdSelf
7800 function for VxWorks 5 and VxWorks 6 in kernel mode.
7801 (unsigned_int): New type, modular to allow logical bit operations.
7802 (taskOptionsGet): New imported function.
7804 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
7805 field to be compliant with the type used by the corresponding operating
7808 2006-10-31 Pascal Obry <obry@adacore.com>
7809 Eric Botcazou <ebotcazou@adacore.com>
7810 Vincent Celier <celier@adacore.com>
7812 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
7813 ASCII version of the registry API. This is needed as the GNAT runtime
7814 is now UNICODE by default.
7816 (get_gcc_version): Do not hardcode the return value.
7817 (__gnat_file_time_name): On Windows properly set the default returned
7818 value to -1 which corresponds to Invalid_Time.
7819 (__gnat_fopen): New routine. A simple wrapper on all plateforms
7820 except on Windows where it does conversion for unicode support.
7821 (__gnat_freopen): Idem.
7822 (__gnat_locate_exec_on_path): If environment variable PATH does not
7823 exist, return a NULL pointer
7825 * adaint.h: (__gnat_fopen): Declare.
7826 (__gnat_freopen): Likewise.
7828 * mingw32.h (_tfreopen): Define this macro here for older MingW
7830 Activate the unicode support on platforms using a MingW runtime
7831 version 3.9 or newer.
7833 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
7834 This is needed for proper unicode support on Windows.
7837 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
7838 Nicolas Setton <setton@adacore.com>
7839 Olivier Hainque <hainque@adacore.com>
7840 Gary Dismukes <dismukes@adacore.com>
7842 * gigi.h: (tree_code_for_record_type): Declare.
7843 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
7844 (get_global_renaming_pointers): Rename to
7845 invalidate_global_renaming_pointers.
7846 (static_ctors): Delete.
7847 (static_dtors): Likewise.
7848 (gnat_write_global_declarations): Declare.
7849 (create_var_decl): Adjust descriptive comment to indicate that the
7850 subprogram may return a CONST_DECL node.
7851 (create_true_var_decl): Declare new function, similar to
7852 create_var_decl but forcing the creation of a VAR_DECL node.
7853 (get_global_renaming_pointers): Declare.
7854 (add_global_renaming_pointer): Likewise.
7856 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
7858 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
7859 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
7861 (gnat_to_gnu_entity): Remove From_With_Type from computation for
7863 <E_Access_Type>: Use the Non_Limited_View as the full view of the
7864 designated type if the pointer comes from a limited_with clause. Make
7865 incomplete designated type if it is in the main unit and has a freeze
7867 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
7868 Underlying_Full_View similarly. Return earlier if the full view already
7869 has an associated tree.
7870 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
7871 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
7872 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
7873 reference type built for objects with an address clause.
7874 Use create_true_var_decl with const_flag set for
7875 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
7877 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
7878 for Character and Wide_Character types. This info is read by the
7879 dwarf-2 writer, and is needed to be able to use the command "ptype
7880 character" in the debugger.
7881 (gnat_to_gnu_entity): When generating a type representing
7882 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
7883 so that debug writers can distinguish it from ordinary integers.
7884 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
7885 addition to TREE_READONLY to assert the constantness of variables for
7886 elaboration purposes.
7887 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
7888 parameters to call new Einfo function First_Formal_With_Extras.
7889 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
7890 protected type with its corresponding discriminant, to obtain a usable
7892 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
7893 for a multiple elaboration of the "equivalent" type.
7894 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
7895 into record_global_renaming_pointer.
7896 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
7897 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
7898 <E_Array_Subtype>: Likewise.
7899 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
7900 incomplete subtypes and incomplete subtypes of incomplete types visible
7901 through a limited with clause.
7902 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
7903 the base index type for the maximum size of the array only if they are
7905 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
7906 expression into a SAVE_EXPR if stabilization failed.
7908 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
7909 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
7910 by lower level compilation passes.
7911 (gnat_genericize): New function, lowering a function body to GENERIC.
7912 Turn the type of RESULT_DECL into a real reference type if the decl
7913 has been marked DECL_BY_REFERENCE, and adjust references to the latter
7915 (gnat_genericize_r): New function. Tree walking callback for
7917 (convert_from_reference, is_byref_result): New functions. Helpers for
7919 (create_type_decl): Call gnat_pushdecl before calling
7920 rest_of_decl_compilation, to make sure that field TYPE_NAME of
7921 type_decl is properly set before calling the debug information writers.
7922 (write_record_type_debug_info): The heuristics which compute the
7923 alignment of a field in a variant record might not be accurate. Add a
7924 safety test to make sure no alignment is set to a smaller value than
7925 the alignment of the field type.
7926 (make_dummy_type): Use the Non_Limited_View as the underlying type if
7927 the type comes from a limited_with clause. Do not loop on the full view.
7928 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
7929 (dummy_node_table): New global variable, moved from decl.c.
7930 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
7931 (save_gnu_tree): Use above macros.
7932 (get_gnu_tree): Likewise.
7933 (present_gnu_tree): Likewise.
7934 (init_dummy_type): New function, moved from decl.c. Use above macros.
7935 (make_dummy_type): Likewise.
7936 (tree_code_for_record_type): New function extracted from make_dummy_type
7937 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
7938 (static_ctors): Change it to a vector, make static.
7939 (static_dtors): Likewise.
7940 (end_subprog_body): Adjust for above change.
7941 (build_global_cdtor): Moved from trans.c.
7942 (gnat_write_global_declarations): Emit global constructor and
7943 destructor, and call cgraph_optimize before emitting debug info for
7944 global declarations.
7945 (global_decls): New global variable.
7946 (gnat_pushdecl): Store the global declarations in global_decls, for
7948 (gnat_write_global_declarations): Emit debug information for global
7950 (create_var_decl_1): Former create_var_decl, with an extra argument to
7951 state whether the creation of a CONST_DECL is allowed.
7952 (create_var_decl): Behavior unchanged. Now a wrapper around
7953 create_var_decl_1 allowing CONST_DECL creation.
7954 (create_true_var_decl): New function, similar to create_var_decl but
7955 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
7956 (create_field_decl): Do not always mark the field as addressable
7957 if its type is an aggregate.
7958 (global_renaming_pointers): New static variable.
7959 (add_global_renaming_pointer): New function.
7960 (get_global_renaming_pointers): Likewise.
7962 * misc.c (gnat_dwarf_name): New function.
7963 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
7964 (gnat_post_options): Add comment about structural alias analysis.
7965 (gnat_parse_file): Do not call cgraph_optimize here.
7966 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
7968 * trans.c (process_freeze_entity): Don't abort if we already have a
7969 non dummy GCC tree for a Concurrent_Record_Type, as it might
7970 legitimately have been elaborated while processing the associated
7971 Concurrent_Type prior to this explicit freeze node.
7972 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
7973 exception handler volatile if it is of variable size.
7974 (process_type): Remove bypass for types coming from a limited_with
7976 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
7977 actual, convert the corresponding gnu_actual to the real destination
7978 type when necessary.
7979 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
7980 originally TREE_READONLY but whose elaboration cannot be performed
7982 Part of fix for F504-021.
7983 (tree_transform, subprogram cases): Change loops on formal parameters to
7984 call new Einfo function First_Formal_With_Extras.
7985 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
7986 stemming from type conversion for the lhs.
7987 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
7988 number of bits per unit for components of records.
7989 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
7990 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
7991 with At_End_Proc after the SJLJ EH cleanup.
7992 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
7994 (elaborate_all_entities): Do not retest type_annotate_only.
7995 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
7996 result type of an abstract subprogram, which may be an itype associated
7997 with an anonymous access result (related to AI-318-02).
7998 (build_global_cdtor): Move to utils.c.
7999 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
8000 this choice is not a null tree nor an integer constant.
8001 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
8002 on the body of elaboration routines instead of mark_unvisited.
8003 (add_stmt): Do not mark the tree.
8004 (add_decl_expr): Tweak comment.
8005 (mark_unvisited): Delete.
8006 (unshare_save_expr): New static function.
8007 (call_to_gnu): Issue an error when making a temporary around a
8008 procedure call because of non-addressable actual parameter if the
8009 type of the formal is by_reference.
8010 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
8011 after building the elaboration routine.
8013 2006-10-31 Bob Duff <duff@adacore.com>
8015 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
8016 as finalization-started, so we can raise Program_Error on 'new'.
8018 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
8019 collection has already started.
8021 * s-finimp.ads (Collection_Finalization_Started): Added new special
8022 flag value for indicating that a collection's finalization has started.
8024 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
8025 create a task whose master has already waited for dependent tasks.
8027 2006-10-31 Robert Dewar <dewar@adacore.com>
8029 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
8031 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
8032 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
8033 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
8034 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
8035 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
8036 a-except-2005.ads: Add pragma Preelaborable_Warning
8038 2006-10-31 Robert Dewar <dewar@adacore.com>
8039 Jose Ruiz <ruiz@adacore.com>
8041 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
8043 * ali.adb (Get_Name): Properly handle scanning of wide character names
8044 encoded with brackets notation.
8045 (Known_ALI_Lines): Add S lines to this list.
8046 (Scan_ALI): Acquire S (priority specific dispatching) lines.
8047 New flag Elaborate_All_Desirable in unit table
8049 * ali.ads (Priority_Specific_Dispatching): Add this range of
8050 identifiers to be used for Priority_Specific_Dispatching table entries.
8051 (ALIs_Record): Add First_Specific_Dispatching and
8052 Last_Specific_Dispatching that point to the first and last entries
8053 respectively in the priority specific dispatching table for this unit.
8054 (Specific_Dispatching): Add this table for storing each S (priority
8055 specific dispatching) line encountered in the input ALI file.
8056 New flag Elaborate_All_Desirable in unit table
8058 * bcheck.adb: (Check_Configuration_Consistency): Add call to
8059 Check_Consistent_Dispatching_Policy.
8060 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
8061 verifying that the use of Priority_Specific_Dispatching,
8062 Task_Dispatching_Policy, and Locking_Policy is consistent across the
8065 * bindgen.adb: (Public_Version_Warning): function removed.
8066 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
8067 required information from ALI files in order to initialize the table
8068 containing the specific dispatching policy.
8069 (Gen_Adainit_Ada): Generate the variables required for priority specific
8070 dispatching entries (__gl_priority_specific_dispatching and
8071 __gl_num_specific_dispatching).
8072 (Gen_Adainit_C): Generate the variables required for priority specific
8073 dispatching entries (__gl_priority_specific_dispatching and
8074 __gl_num_specific_dispatching).
8075 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
8077 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
8078 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
8080 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
8081 a call to gnat_set_globals.
8082 Generate a string containing settings from
8083 Priority_Specific_Dispatching pragma entries.
8084 (Gen_Object_Files_Options): Do not include the runtime libraries when
8085 pragma No_Run_Time is specified.
8087 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
8088 consistency with s-intman-posix.adb.
8089 (__gnat_error_handler, case FreeBSD): Account for the fact that the
8090 handler is installed with SA_SIGINFO.
8091 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
8092 FreeBSD ZCX support, copied from Linux version.
8093 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
8094 sigfillset, and sigemptyset so the routines defined by MaRTE.
8095 (__gl_priority_specific_dispatching): Add this variable that stores the
8096 string containing priority specific dispatching policies in the
8098 (__gl_num_specific_dispatching): Add this variable that indicates the
8099 highest priority for which a priority specific dispatching pragma
8101 (__gnat_get_specific_dispatching): Add this routine that returns the
8102 priority specific dispatching policy, as set by a
8103 Priority_Specific_Dispatching pragma appearing anywhere in the current
8104 partition. The input argument is the priority number, and the result
8105 is the upper case first character of the policy name.
8106 (__gnat_set_globals): Now a dummy function.
8107 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
8108 mechargs instead of sigargs, as the latter can be retrieved from the
8109 former and sigargs is not what we want on ia64.
8110 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
8112 (__gnat_adjust_context_for_raise, ia64-vms): New function.
8113 (tasking_error): Remove unused symbol.
8114 (_abort_signal): Move this symbol to the IRIX specific part since this
8115 is the only target that uses this definition.
8116 (Check_Abort_Status): Move this symbol to the IRIX specific part since
8117 this is the only target that uses this definition.
8118 (Lock_Task): Remove unused symbol.
8119 (Unlock_Task): Remove unused symbol.
8121 * lib-writ.adb (Write_ALI): Output new S lines for
8122 Priority_Specific_Dispatching pragmas.
8123 Implement new flag BD for elaborate body desirable
8125 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
8126 (Specific_Dispatching): Add this table for storing the entries
8127 corresponding to Priority_Specific_Dispatching pragmas.
8128 Document new BD flag for elaborate body desirable
8130 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
8133 2006-10-31 Javier Miranda <miranda@adacore.com>
8135 * a-tags.ads, a-tags.adb:
8136 (Predefined_DT): New function that improves readability of the code.
8137 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
8138 Inherit_DT): Use the new function Predefined_DT to improve code
8140 (Register_Interface_Tag): Update assertion.
8141 (Set_Interface_Table): Update assertion.
8142 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
8143 determining progenitor interfaces in Tags.
8144 (Inherit_CPP_DT): New subprogram.
8146 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
8147 analysis of the thunk code.
8148 (Expand_Interface_Conversion): Handle run-time conversion of
8149 access to class wide types.
8150 (Expand_Dispatching_Call): When generating the profile for the
8151 subprogram itype for a dispatching operation, properly terminate the
8152 formal parameters chaind list (set the Next_Entity of the last formal
8154 (Collect_All_Interfaces): Removed. This routine has been moved to
8155 sem_util and renamed as Collect_All_Abstract_Interfaces.
8156 (Set_All_DT_Position): Hidden entities associated with abstract
8157 interface primitives are not taken into account in the check for
8158 3.9.3(10); this check is done with the aliased entity.
8159 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
8160 interfacing with CPP by default.
8161 (Expand_Interface_Conversion): Add missing support for static conversion
8162 from an interface to a tagged type.
8163 (Collect_All_Interfaces): Add new out formal containing the list of
8164 abstract interface types to cleanup the subprogram Make_DT.
8165 (Make_DT): Update the code to generate the table of interfaces in case
8166 of abstract interface types.
8167 (Is_Predefined_Dispatching_Alias): New function that returns true if
8168 a primitive is not a predefined dispatching primitive but it is an
8169 alias of a predefined dispatching primitive.
8170 (Make_DT): If the ancestor of the type is a CPP_Class and we are
8171 compiling under full ABI compatibility mode we avoid the generation of
8172 calls to run-time services that fill the dispatch tables because under
8173 this mode we currently inherit the dispatch tables in the IP subprogram.
8174 (Write_DT): Emit an "is null" indication for a null procedure primitive.
8175 (Expand_Interface_Conversion): Use an address as the type of the formal
8176 of the internally built function that handles the case in which the
8177 target type is an access type.
8179 2006-10-31 Robert Dewar <dewar@adacore.com>
8181 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
8183 2006-10-31 Robert Dewar <dewar@adacore.com>
8185 * bindusg.ads, bindusg.adb:
8186 Change to package and rename procedure as Display, which
8187 now ensures that it only outputs usage information once.
8189 2006-10-31 Jose Ruiz <ruiz@adacore.com>
8191 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
8194 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
8197 2006-10-31 Robert Dewar <dewar@adacore.com>
8198 Ed Schonberg <schonberg@adacore.com>
8200 * treepr.adb: Use new subtype N_Membership_Test
8202 * checks.ads, checks.adb: Add definition for Validity_Check
8203 (Range_Or_Validity_Checks_Suppressed): New function
8204 (Ensure_Valid): Test Validity_Check suppressed
8205 (Insert_Valid_Check): Test Validity_Check suppressed
8206 (Insert_Valid_Check): Preserve Do_Range_Check flag
8207 (Validity_Check_Range): New procedure
8208 (Expr_Known_Valid): Result of membership test is always valid
8209 (Selected_Range_Checks): Range checks cannot be applied to discriminants
8210 by themselves. Disabling those checks must also be done for task types,
8211 where discriminants may be used for the bounds of entry families.
8212 (Apply_Address_Clause_Check): Remove side-effects if address expression
8213 is non-static and is not the name of a declared constant.
8214 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
8215 Code cleanup and new error messages.
8216 (Enable_Range_Check): Test for some cases of suppressed checks
8217 (Generate_Index_Checks): Suppress index checks if index checks are
8218 suppressed for array object or array type.
8219 (Apply_Selected_Length_Checks): Give warning for compile-time detected
8220 length check failure, even if checks are off.
8221 (Ensure_Valid): Do not generate a check on an indexed component whose
8222 prefix is a packed boolean array.
8223 * checks.adb: (Alignment_Checks_Suppressed): New function
8224 (Apply_Address_Clause_Check): New procedure, this is a completely
8225 rewritten replacement for Apply_Alignment_Check
8226 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
8227 we request a discriminal value only in case of discriminants.
8228 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
8229 assignments where the target subtype is unconstrained and the target
8230 object is a parameter or dereference (other aliased cases are known
8231 to be unconstrained).
8233 2006-10-31 Robert Dewar <dewar@adacore.com>
8235 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
8236 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
8237 vms_conv.adb: Fix bad table increment values (much too small)
8239 * table.adb (Realloc): Make sure we get at least some new elements
8240 Defends against silly small values for table increment
8242 2006-10-31 Robert Dewar <dewar@adacore.com>
8243 Ed Schonberg <schonberg@adacore.com>
8244 Bob Duff <duff@adacore.com>
8246 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
8247 entities. Move other fields around to make this possible
8248 (Is_Derived_Type): Add missing call to Is_Type.
8249 (Extra_Formals): New function for subprograms, entries, subprogram
8251 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
8252 (First_Formal_With_Extras): New function for subprogs, entries, subp
8254 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
8255 Add node information for E_Return_Statement.
8256 (Elaborate_Body_Desirable): New flag
8257 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
8258 to be Is_Inherently_Limited_Type, because return-by-reference has
8259 no meaning in Ada 2005.
8260 (E_Return_Statement): New entity kind.
8261 (Return_Applies_To): Field of E_Return_Statement.
8262 (Is_Return_Object): New flag in object entities.
8263 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
8264 (Must_Have_Preelab_Init): New flag
8265 (Known_To_Have_Preelab_Init): New flag
8266 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
8267 (Is_Visible_Formal): New flag on entities in formal packages.
8268 (Low_Bound_Known): New flag
8269 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
8271 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
8272 output when Id is an incomplete subtype.
8274 2006-10-31 Robert Dewar <dewar@adacore.com>
8276 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
8277 Avoid abbreviation Creat
8278 (Finalize): List all sources in extended mail source if -gnatl
8280 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
8281 (Finalize): Implement new -gnatl=xxx switch to output listing to file
8282 (Set_Specific_Warning_On): New procedure
8283 (Set_Specific_Warning_Off): New procedure
8284 Add implementation of new insertion \\
8285 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
8286 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
8288 (Error_Msg_Internal): Make sure that we set Last_Killed to
8289 True when a message from another package is suppressed.
8290 Implement insertion character ~ (insert string)
8291 (First_Node): Minor adjustments to get better placement.
8294 Implement new -gnatl=xxx switch to output listing to file
8297 Implement new -gnatl=xxx switch to output listing to file
8299 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
8300 (Commands_To_Stdout): New flag
8301 Implement new -gnatl=xxx switch to output listing to file
8302 New switch Dump_Source_Text
8303 (Warn_On_Deleted_Code): New warning flag for -gnatwt
8304 Define Error_Msg_Line_Length
8305 (Warn_On_Assumed_Low_Bound): New switch
8307 * osint.ads, osint.adb
8308 (Normalize_Directory_Name): Fix bug.
8309 Implement new -gnatl=xxx switch to output listing to file
8310 (Concat): Removed, replaced by real concatenation
8311 Make use of concatenation now allowed in compiler
8312 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
8313 we find the 'lib' or 'bin' directory even when the tool has been
8314 invoked with a relative path.
8315 (Executable_Name): New function taking string parameters.
8317 * osint-c.ads, osint-c.adb:
8318 Implement new -gnatl=xxx switch to output listing to file
8320 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
8323 Implement new -gnatl=xxx switch to output listing to file
8324 Recognize new -gnatL switch
8325 (no longer keep in old warning about old style usage)
8326 Use concatenation to simplify code
8327 Recognize -gnatjnn switch
8328 (Scan_Front_End_Switches): Clean up handling of -gnatW
8329 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
8331 2006-10-31 Robert Dewar <dewar@adacore.com>
8333 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
8334 (Set_Specific_Warning_Off): New procedure
8335 (Warning_Specifically_Suppressed): New function
8336 (Validate_Specific_Warnings): New procedure
8337 (Output_Msg_Text): Complete rewrite to support -gnatjnn
8339 * err_vars.ads: Implement insertion character ~ (insert string)
8341 2006-10-31 Bob Duff <duff@adacore.com>
8342 Ed Schonberg <schonberg@adacore.com>
8344 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
8345 the parent part is a build-in-place function call, generate assignments.
8346 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
8347 are build-in-place function calls.
8348 (Replace_Self_Reference): New subsidiary of
8349 Make_OK_Assignment_Statement, to replace an access attribute that is a
8350 self-reference into an access to the appropriate component of the
8351 target object. Generalizes previous mechanism to handle self-references
8352 nested at any level.
8353 (Is_Self_Referential_Init): Remove, not needed.
8354 (Is_Self_Referential_Init): New predicate to simplify handling of self
8355 referential components in record aggregates.
8356 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
8357 check for presence of entity before checking for self-reference.
8358 (Has_Default_Init_Comps): Return True if a component association is a
8359 self-reference to the enclosing type, which can only come from a
8360 default initialization.
8361 (Make_OK_Assignment_Statement): If the expression is of the form
8362 Typ'Acc, where Acc is an access attribute, the expression comes from a
8363 default initialized self-referential component.
8364 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
8365 that has been derived from several abstract interfaces we must also
8366 initialize the tags of the secondary dispatch tables.
8368 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8369 Thomas Quinot <quinot@adacore.com>
8370 Javier Miranda <miranda@adacore.com>
8371 Robert Dewar <dewar@adacore.com>
8374 (Expand_Access_To_Protected_Op): If the context indicates that an access
8375 to a local operation may be transfered outside of the object, create an
8376 access to the wrapper operation that must be used in an external call.
8377 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
8378 target, pass the Valid attribute applied to a floating-point prefix on
8379 to the back end without expansion.
8380 (Storage_Size): Use the new run-time function Storage_Size to retrieve
8381 the allocated storage when it is specified by a per-object expression.
8382 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
8383 Nothing to do here, the attribute has been rewritten during semantic
8385 (Expand_Attribute_Reference): Handle expansion of the new Priority
8387 (Find_Fat_Info): Handle case of universal real
8388 (Expand_Access_To_Protected_Op): Fix use of access to protected
8389 subprogram from inside the body of a protected entry.
8390 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
8391 'Access and 'Unrestricted_Access, to transform the attribute reference
8393 (Is_Constrained_Aliased_View): New predicate to help determine whether a
8394 subcomponent's enclosing variable is aliased with a constrained subtype.
8395 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
8396 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
8397 an aliased prefix must be known to be constrained in order to use True
8398 for the attribute value, and now it's possible for some aliased views
8399 to be unconstrained.
8401 2006-10-31 Robert Dewar <dewar@adacore.com>
8403 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
8404 (Expand_Entity_Reference): Correct error of not handling subprogram
8405 formals in current_value processing.
8407 2006-10-31 Javier Miranda <miranda@adacore.com>
8408 Robert Dewar <dewar@adacore.com>
8409 Ed Schonberg <schonberg@adacore.com>
8410 Gary Dismukes <dismukes@adacore.com>
8412 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
8413 register in the final list objects containing class-wide interfaces;
8414 otherwise we incorrectly register the tag of the interface in the final
8416 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
8417 generate the wrapper if the parent primitive is abstract. This is
8418 required to report the correct error message.
8419 (Expand_N_Subtype_Indication): Do validity checks on range
8420 (Clean_Task_Names): If an initialization procedure includes a call to
8421 initialize a task (sub)component, indicate that the procedure will use
8422 the secondary stack.
8423 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
8424 compatibility for interfacing with CPP by default.
8425 (Expand_N_Object_Declaration): Only build an Adjust call when the
8426 object's type is a nonlimited controlled type.
8427 * exp_ch3.adb: Add with and use of Exp_Ch6.
8428 (Expand_N_Object_Declaration): Check for object initialization that is a
8429 call to build-in-place function and apply Make_Build_In_Place_Call_In_
8430 Object_Declaration to the call.
8431 (Freeze_Type): When the designated type of an RACW was not frozen at the
8432 point where the RACW was declared, validate the primitive operations
8433 with respect to E.2.2(14) when it finally is frozen.
8434 (Build_Initialization_Call,Expand_Record_Controller): Rename
8435 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
8436 return-by-reference has no meaning in Ada 2005.
8437 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
8438 to register tag of the immediate ancestor interfaces in the
8440 (Init_Secondary_Tags): Moved to the specification to allow the
8441 initialization of extension aggregates with abstract interfaces.
8442 (Build_Master_Renaming): Make public, for use by function declarations
8443 whose return type is an anonymous access type.
8444 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
8445 Insert_List_Before_And_Analyze after the generation of the specs
8446 associated with null procedures.
8447 (Expand_Tagged_Root): Update documentation in its specification.
8448 (Init_Secondary_Tags): Update documentation.
8449 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
8450 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
8451 then generate code to inherit the contents of the dispatch table
8452 directly from the ancestor.
8453 (Expand_Record_Controller): Insert controller component after tags of
8454 implemented interfaces.
8455 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
8456 create null procedure overridings when null procedures are inherited
8458 (Make_Null_Procedure_Specs): New procedure to generate null procedure
8459 declarations for overriding null primitives inherited from interfaces.
8460 (Is_Null_Interface_Procedure): New function in
8461 Make_Null_Procedure_Specs.
8462 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
8463 immediate ancestor of a tagged type is an abstract interface type we
8464 must generate the specification of the predefined primitives associated
8465 with controlled types (because the dispatch table of the ancestor is
8466 null and hence these entries cannot be inherited). This is required to
8467 elaborate well the dispatch table.
8469 2006-10-31 Javier Miranda <miranda@adacore.com>
8470 Ed Schonberg <schonberg@adacore.com>
8471 Bob Duff <duff@adacore.com>
8472 Gary Dismukes <dismukes@adacore.com>
8473 Robert Dewar <dewar@adacore.com>
8475 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
8477 (Expand_N_In): Do validity checks on range
8478 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
8479 (Expand_N_Allocator): For "new T", if the object is constrained by
8480 discriminant defaults, allocate the right amount of memory, rather than
8481 the maximum for type T.
8482 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
8483 when the allocator is initialized by a build-in-place call, since the
8484 allocator is already rewritten as a reference to the function result,
8485 and this prevents an unwanted duplication of the function call.
8486 Add with and use of Exp_Ch6.
8487 (Expand_Allocator_Expresssion): Check for an allocator whose expression
8488 is a call to build-in-place function and apply
8489 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
8490 untagged designated types).
8491 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
8492 optimization if source or target is biased.
8493 (Expand_N_Allocator): Add comments for case of an allocator within a
8494 function that returns an anonymous access type designating tasks.
8495 (Expand_N_Allocator): apply discriminant checks for access
8496 discriminants of anonymous access types (AI-402, AI-416)
8498 2006-10-31 Bob Duff <duff@adacore.com>
8499 Robert Dewar <dewar@adacore.com>
8500 Gary Dismukes <dismukes@adacore.com>
8501 Ed Schonberg <schonberg@adacore.com>
8503 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
8505 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
8506 (Expand_N_Assignment_Statement): Call
8507 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
8508 build-in-place function call. Currently, this can happen only for
8509 assignments that come from aggregates.
8510 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
8511 in order to alleviate the upward compatibility introduced by AI-318.
8512 (Expand_N_Extended_Return_Statement): Add support for handling the
8513 return object as a build-in-place result.
8514 (Expand_Non_Function_Return): Implement simple return statements nested
8515 within an extended return.
8516 (Enable_New_Return_Processing): Turn on the new processing of return
8518 (Expand_Non_Function_Return): For a return within an extended return,
8519 don't raise Program_Error, because Sem_Ch6 now gives a warning.
8520 (Expand_N_Extended_Return_Statement): Implement AI-318
8521 (Expand_Simple_Function_Return): Ditto.
8522 (Expand_N_If_Statement): Handle new -gnatwt warning
8523 (Expand_N_Case_Statement): Handle new -gnatwt warning
8524 (Expand_N_Assignment): Handle assignment to the Priority attribute of
8526 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
8527 validity checking of assignments to elementary record components.
8528 (Expand_N_Return_Statement): return Class Wide types on the secondary
8529 stack independantly of their controlled status since with HIE runtimes,
8530 class wide types are not potentially controlled anymore.
8532 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
8535 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
8536 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
8537 it expects a block, procedure, or task. The return statement will get
8538 turned into a block, and Expand_Cleanup_Actions will happen then.
8540 2006-10-31 Robert Dewar <dewar@adacore.com>
8541 Ed Schonberg <schonberg@adacore.com>
8542 Bob Duff <duff@adacore.com>
8543 Gary Dismukes <dismukes@adacore.com>
8545 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
8547 (Expand_Inlined_Call): Tagged types are by-reference types, and
8548 therefore should be replaced by a renaming declaration in the expanded
8549 body, as is done for limited types.
8550 (Expand_Call): If this is a call to a function with dispatching access
8551 result, propagate tag from context.
8552 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
8554 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
8555 build-in-place when the right-hand side of an assignment is a
8556 build-in-place function call.
8557 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
8558 of the explicit dereference of the allocator to the result subtype of
8559 the build-in-place function. This is needed to satisfy type checking
8560 in cases where the caller's return object is created by an allocator for
8561 a class-wide access type and the type named in the allocator is a
8563 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
8564 conversion of the reference to the declared object to the result subtype
8565 of the build-in-place function. This is needed to satisfy type checking
8566 in cases where the declared object has a class-wide type. Also, in the
8567 class-wide case, change the type of the object entity to the specific
8568 result subtype of the function, to avoid passing a class-wide object
8569 without explicit initialization to the back end.
8570 (Register_Interface_DT_Entry): Moved outside the body of
8571 Freeze_Subprogram because this routine is now public; it is called from
8572 Check_Dispatching_Overriding to handle late overriding of abstract
8573 interface primitives.
8574 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
8575 adding an implicit access actual on a call to a build-in-place function.
8576 (Expand_Actuals): Test for an actual parameter that is a call to a
8577 build-in-place function and apply
8578 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
8579 (Is_Build_In_Place_Function): New function to determine whether an
8580 entity is a function whose calls should be handled as build-in-place.
8581 (Is_Build_In_Place_Function_Call): New function to determine whether an
8582 expression is a function call that should handled as build-in-place.
8583 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
8584 calls to build-in-place functions as the initialization of an allocator.
8585 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
8586 handling calls to build-in-place functions in contexts that do not
8587 involve init of a separate object (for example, actuals of subprogram
8589 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
8590 handling calls to build-in-place functions as the initialization of an
8592 (Detect_Infinite_Recursion): Add explicit parameter Process to
8593 instantiation of Traverse_Body to avoid unreferenced warning.
8594 (Check_Overriding_Inherited_Interfaces): Removed.
8595 (Register_Interface_DT_Entry): Code cleanup.
8596 (Register_Predefined_DT_Entry): Code cleanup.
8597 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
8598 inlined statements if within a transient scope.
8599 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
8600 formal parameters with occurrences of actuals in inlined body, establish
8601 visibility on the proper view of the actual's subtype for the body's
8603 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
8604 compatibility mode and we have an imported CPP subprogram because
8605 for now we assume that imported CPP primitives correspond with
8606 objects whose constructor is in the CPP side (and therefore we
8607 don't need to generate code to register them in the dispatch table).
8608 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
8609 aligned selected component.
8610 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
8611 the actual of an in-mode parameter is a type conversion.
8612 (Expand_Actuals): If the call does not come from source and the actual
8613 is potentially misaligned, let gigi handle it rather than rejecting the
8614 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
8615 Class Wide types as returning by reference independantly of their
8616 controlled status since with HIE runtimes class wide types are not
8617 potentially controlled anymore.
8619 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8621 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
8622 references that are private components of the protected object.
8623 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
8624 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
8625 instantiation to deal with warnings.
8626 (Initialize_Protection): If expression for priority is non-static, use
8627 System_Priority as its expected type, in case the expression has not
8630 2006-10-31 Robert Dewar <dewar@adacore.com>
8632 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
8633 initialization of Homonym_Len.
8634 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
8635 names from fully qualified name. Fixes problem of duplicate
8636 external names differing only in the presence of such a block name.
8638 2006-10-31 Thomas Quinot <quinot@adacore.com>
8639 Pablo Oliveira <oliveira@adacore.com>
8641 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
8642 subprogram Ids, even if they are not yet assigned.
8643 (Build_Subprogram_Id): It is now this function that will take care of
8644 calling Assign_Subprogram_Ids if necessary.
8645 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
8646 should be done only once they are assigned.
8647 (Build_From_Any_Function, case of tagged types): Add missing call to
8649 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
8650 type for an RACW type.
8651 (Add_RACW_Features): When processing an RACW declaration for which the
8652 designated type is already frozen, enforce E.2.2(14) rules immediately.
8653 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
8654 special reordering of controlling formals.
8656 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
8657 associated stub type for an RACW type.
8659 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8661 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
8662 fixed-point operations in an integer context, i.e. as operands of a
8663 conversion to an integer type, indicate that result must be rounded.
8665 2006-10-31 Robert Dewar <dewar@adacore.com>
8667 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
8668 cases, pass the encoding method, since it is now required by the run
8671 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
8672 assumption that Str'First = 1.
8673 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
8674 it on to the Value_Wide_Wide_Character call.
8675 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
8676 properly handles a string of the form quote-encoded_wide_char-quote.
8678 * s-wchcnv.adb: Minor reformatting
8680 2006-10-31 Javier Miranda <miranda@adacore.com>
8682 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
8683 run-time membership test to ensure that the constructed object
8684 implements the target abstract interface.
8686 2006-10-31 Robert Dewar <dewar@adacore.com>
8688 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
8689 Machine_Attribute pragma internally to implement the user pragma.
8690 Add processing for pragma Interface so that it is now completely
8691 equivalent to pragma Import.
8693 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
8694 so that it can be applied to all entities, including record components
8695 and enumeration literals.
8696 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
8697 priority ranges are correct, verify compatibility against task
8698 dispatching and locking policies, and if everything is correct an entry
8699 is added to the table containing priority specific dispatching entries
8700 for this compilation unit.
8701 (Delay_Config_Pragma_Analyze): Delay processing
8702 Priority_Specific_Dispatching pragmas because when processing the
8703 pragma we need to access run-time data, such as the range of
8704 System.Any_Priority.
8705 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
8706 Allow pragma Unreferenced as a context item
8707 Add pragma Preelaborable_Initialization
8708 (Analyze_Pragma, case Interface): Interface is extended so that it is
8709 now syntactically and semantically equivalent to Import.
8710 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
8711 insertion characters.
8712 Add handling for Pragma_Wide_Character_Encoding
8713 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
8714 never supercedes a real restriction, and that a real restriction
8715 always supercedes a warning.
8716 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
8719 2006-10-31 Bob Duff <duff@adacore.com>
8720 Ed Schonberg <schonberg@adacore.com>
8721 Robert Dewar <dewar@adacore.com>
8723 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
8724 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
8725 Is_Inherently_Limited_Type, because return-by-reference has no meaning
8727 (Find_Node_To_Be_Wrapped): Use new method of determining the result
8728 type of the function containing a return statement, because the
8729 Return_Type field was removed. We now use the Return_Applies_To field.
8731 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
8732 (Build_Task_Image_Decl): If procedure is not called from an
8733 initialization procedure, indicate that function that builds task name
8734 uses the sec. stack. Otherwise the enclosing initialization procedure
8735 will carry the indication.
8736 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
8737 N_Object_Declaration instead.
8738 (Kill_Dead_Code): New interface to implement -gnatwt warning for
8739 conditional dead code killed, and change implementation accordingly.
8740 (Insert_Actions): Add N_Return_Object_Declaration case.
8741 Correct comment to mention N_Extension_Aggregate node.
8742 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
8743 attempts to save information for global variables which cannot be
8745 (Get_Current_Value_Condition): Handle conditions the other way round
8746 (constant on left). Also handle right operand of AND and AND THEN
8747 (Set_Current_Value_Condition): Corresponding changes
8748 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
8749 (Get_Current_Value_Condition): Handle simple boolean operands
8750 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
8751 (Get_Current_Value_Condition): If the variable reference is within an
8752 if-statement, does not appear in the list of then_statments, and does
8753 not come from source, treat it as being at unknown location.
8754 (Get_Current_Value_Condition): Enhance to allow while statements to be
8755 processed as well as if statements.
8756 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
8758 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
8759 of loop. This is safe now that we fixed Kill_Current_Values.
8760 (OK_To_Do_Constant_Replacement): Check whether current scope is
8761 Standard, before examining outer scopes.
8763 2006-10-31 Vincent Celier <celier@adacore.com>
8765 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
8766 When True, apply VMS treatment to children of packages A, G, I and S.
8769 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
8771 2006-10-31 Robert Dewar <dewar@adacore.com>
8772 Ed Schonberg <schonberg@adacore.com>
8774 * freeze.adb: Add handling of Last_Assignment field
8775 (Warn_Overlay): Supply missing continuation marks in error msgs
8776 (Freeze_Entity): Add check for Preelaborable_Initialization
8778 * g-comlin.adb: Add Warnings (Off) to prevent new warning
8780 * g-expect.adb: Add Warnings (Off) to prevent new warning
8782 * lib-xref.adb: Add handling of Last_Assignment field
8783 (Generate_Reference): Centralize handling of pragma Obsolescent here
8784 (Generate_Reference): Accept an implicit reference generated for a
8785 default in an instance.
8786 (Generate_Reference): Accept a reference for a node that is not in the
8787 main unit, if it is the generic body corresponding to an subprogram
8790 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
8792 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
8794 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
8796 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
8797 use clauses, to avoid messages on packages used to qualify, and also
8798 to avoid messages from obsolescent units.
8799 (Warn_On_Useless_Assignments): Don't generate messages for imported
8800 and exported variables.
8801 (Warn_On_Useless_Assignments): New procedure
8802 (Output_Obsolescent_Entity_Warnings): New procedure
8803 (Check_Code_Statement): New procedure
8805 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
8806 Change name Is_Ada_2005 to Is_Ada_2005_Only
8807 (Last_Assignment): New field for useless assignment warning
8809 2006-10-31 Olivier Hainque <hainque@adacore.com>
8811 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
8812 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
8814 2006-10-31 Bob Duff <duff@adacore.com>
8815 Robert Dewar <dewar@adacore.com>
8816 Ed Schonberg <schonberg@adacore.com>
8818 * g-awk.adb (Default_Session, Current_Session): Compile this file in
8819 Ada 95 mode, because it violates the new rules for AI-318.
8821 * g-awk.ads: Use overloaded subprograms in every case where we used to
8822 have a default of Current_Session. This makes the code closer to be
8823 correct for both Ada 95 and 2005.
8825 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
8826 code, relying on the fact that the compiler generates a warning
8827 instead of an error in -gnatg mode.
8829 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
8830 E_Return_Statement entity kind.
8831 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
8833 * par.adb (P_Interface_Type_Definition): Addition of one formal to
8834 report an error if the reserved word abstract has been previously found.
8835 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
8837 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
8838 parenthesized range attribute usage
8839 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
8841 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
8842 in the syntax for extended_return_statement. This is not in the latest
8843 RM, but the ARG is expected to issue an AI allowing this.
8844 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
8845 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
8846 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
8847 P_Return_Statement): Parse the new syntax for extended_return_statement.
8849 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
8850 Output_End_Missing): Add error-recovery code for the new
8851 extended_return_statement syntax; that is, the new E_Return entry on
8854 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
8855 limited to nonlimited, because otherwise we violate the new Ada 2005
8856 rules about returning limited types in function Create_AST_Handler in
8859 * sem.adb (Analyze): Add cases for new node kinds
8860 N_Extended_Return_Statement and N_Return_Object_Declaration.
8862 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
8863 type is in the same category as type of context before applying check,
8864 to prevent anomalies in instantiations.
8865 (Resolve_Aggregate): Remove test for limited components in aggregates.
8866 It's unnecessary in Ada 95, because if it has limited components, then
8867 it must be limited. It's wrong in Ada 2005, because limited aggregates
8869 (Resolve_Record_Aggregate): Move check for limited types later, because
8870 OK_For_Limited_Init requires its argument to have been resolved.
8871 (Get_Value): When copying the component default expression for a
8872 defaulted association in an aggregate, use the sloc of the aggregate
8873 and not that of the original expression, to prevent spurious
8874 elaboration errors, when the expression includes function calls.
8875 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
8876 were missing. We also didn't handle qualified expressions. Now also
8877 allow function calls. Use new common routine OK_For_Limited_Init.
8878 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
8879 with space can upper case letter).
8881 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
8882 Has_Static_Discriminants flag
8883 (Record_Type_Declaration): Diagnose an attempt to declare an interface
8884 type with discriminants.
8885 (Process_Range_Expr_In_Decl): Do validity checks on range
8886 (Build_Discriminant_Constraints): Use updated form of
8887 Denotes_Discriminant.
8888 (Process_Subtype): If the subtype is a private subtype whose full view
8889 is a concurrent subtype, introduce an itype reference to prevent scope
8891 (Build_Derived_Record_Type, Collect_Interface_Primitives,
8892 Record_Type_Declaration): The functionality of the subprograms
8893 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
8894 is now performed by a single routine.
8895 (Build_Derived_Record_Type): If the type definition includes an explicit
8896 indication of limitedness, then the type must be marked as limited here
8897 to ensure that any access discriminants will not be treated as having
8898 a local anonymous access type.
8899 (Check_Abstract_Overriding): Issue a detailed error message when an
8900 abstract subprogram was not overridden due to incorrect mode of its
8902 (Analyze_Private_Extension_Declaration): Add support for the analysis of
8903 synchronized private extension declarations. Verify that the ancestor is
8904 a limited or synchronized interface or in the generic case, the ancestor
8905 is a tagged limited type or synchronized interface and all progenitors
8906 are either limited or synchronized interfaces.
8907 Derived_Type_Declaration): Check for presence of private extension when
8908 dealing with synchronized formal derived types.
8909 Process_Full_View): Enchance the check done on the usage of "limited" by
8910 testing whether the private view is synchronized.
8911 Verify that a synchronized private view is completed by a protected or
8913 (OK_For_Limited_Init_In_05): New function.
8914 (Analyze_Object_Declaration): Move check for limited types later,
8915 because OK_For_Limited_Init requires its argument to have been resolved.
8916 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
8917 in order to alleviate the upward compatibility introduced by AI-318.
8918 (Constrain_Corresponding_Record): If the constraint is for a component
8919 subtype, mark the itype as frozen, to avoid out-of-scope references to
8920 discriminants in the back-end.
8921 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
8922 this subprogram against wrong sources.
8923 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
8924 discriminant of limited type completed with a protected type, when the
8925 discriminant is used to constrain a private component of the type, and
8926 expansion is disabled.
8927 (Find_Type_Of_Object): Do not treat a return subtype that is an
8928 anonymous subtype as a local_anonymous_type, because its accessibility
8929 level is the return type of the enclosing function.
8930 (Check_Initialization): In -gnatg mode, turn the error "cannot
8931 initialize entities of limited type" into a warning.
8932 (OK_For_Limited_Init): Return true for generated nodes, since it
8933 sometimes violates the legality rules.
8934 (Make_Incomplete_Declaration): If the type for which an incomplete
8935 declaration is created happens to be the currently visible entity,
8936 preserve the homonym chain when removing it from visibility.
8937 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
8938 inherited subprograms.
8939 (Access_Definition): If this is an access to function that is the return
8940 type of an access_to_function definition, context is a type declaration
8941 and the scope of the anonymous type is the current one.
8942 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
8943 incomplete subtype to the set of private dependents of the original
8945 (Constrain_Discriminated_Type): Emit an error message whenever an
8946 incomplete subtype is being constrained.
8947 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
8948 corresponding subtype of the full view of the original incomplete type.
8949 (Check_Incomplete): Properly detect invalid usage of incomplete types
8952 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8954 * g-catiio.ads, g-catiio.adb (Value): New function.
8955 Given an input String, try and parse a valid Time value.
8957 2006-10-31 Vincent Celier <celier@adacore.com>
8959 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
8960 Integer_Address arithmetic, as in Set_Valid.
8962 2006-10-31 Arnaud Charlet <charlet@adacore.com>
8963 Robert Dewar <dewar@adacore.com>
8965 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
8966 handling executable extension manually and duplicating code.
8968 * make.adb: Implement new -S switch
8969 (Gnatmake): Use new function Osint.Executable_Name instead
8970 of handling executable extension manually.
8972 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
8973 is specified, the executable name ends with this suffix.
8974 Take advantage of Osint.Executable_Name instead of duplicating code.
8976 * switch-m.adb: Recognize new gnatmake -S switch
8978 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
8980 (Get_Target_Parameters): Set Executable_Extension_On_Target if
8983 * makeusg.adb: Add line for gnatmake -S switch
8985 2006-10-31 Vincent Celier <celier@adacore.com>
8987 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
8988 call it with -static-libgcc, as there are some platforms, such as
8989 Darwin, where one of these two switches is compulsory to link.
8991 2006-10-31 Vincent Celier <celier@adacore.com>
8993 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
8994 instead of ADA_PROJECT_PATH, for the project path.
8995 (Gnatls): When displaying the project path directories, use host dir
8998 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
8999 names in the project path, as absolute paths may correspond to
9000 multi-valued VMS logical names.
9002 2006-10-31 Vincent Celier <celier@adacore.com>
9004 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
9006 (Locate_Regular_File): Ditto
9007 (Change_Dir): Remove, no longer used
9008 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
9009 on Windows. Get it calling Get_Current_Dir.
9010 (OpenVMS): Remove imported boolean, no longer needed.
9011 (Normalize_Pathname)[VMS]: Do not resolve directory names.
9012 (Pid_To_Integer): New function to convert a Process_Id to Integer
9014 2006-10-31 Thomas Quinot <quinot@adacore.com>
9016 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
9017 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
9019 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
9022 2006-10-31 Robert Dewar <dewar@adacore.com>
9024 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
9025 initial letter o as a zero.
9027 2006-10-31 Robert Dewar <dewar@adacore.com>
9029 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
9031 2006-10-31 Robert Dewar <dewar@adacore.com>
9033 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
9035 (Layout_Variant_Record): Retrieve the discriminants from the entity
9036 rather than from the type definition, because in the case of a full
9037 type for a private type we need to take the discriminants from the
9039 (Layout_Component_List): When applying the Max operator to variants with
9040 a nonstatic size, check whether either operand is static and scale that
9041 operand from bits to storage units before applying Max.
9042 (Layout_Type): In VMS, if a C-convention access type has no explicit
9043 size clause (and does not inherit one in the case of a derived type),
9044 then the size is reset to 32 from 64.
9046 2006-10-31 Vincent Celier <celier@adacore.com>
9048 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
9049 its file has already been loaded, according to the unit being loaded,
9050 not to the current value of Multiple_Unit_Index.
9052 2006-10-31 Thomas Quinot <quinot@adacore.com>
9053 Eric Botcazou <ebotcazou@adacore.com>
9054 Arnaud Charlet <charlet@adacore.com>
9056 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
9057 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
9059 (a-except.o): Pass it to the compiler.
9060 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
9061 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
9062 a-calend-mingw.adb version.
9064 * Makefile.rtl: Added s-dsaser.
9065 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
9066 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
9067 Ada.Dispatching.Round_Robin.
9068 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
9070 * Make-lang.in: Remove all references to gt-ada-decl.h.
9071 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
9073 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
9074 Update dependencies.
9076 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
9078 2006-10-31 Vincent Celier <celier@adacore.com>
9080 * mlib-utl.adb (Initialized): Remove, no longer used
9081 (Initialize): Remove, no longer used
9082 (Ar): If Ar_Exec is null, get the location of the archive builder and,
9083 if there is one, the archive indexer. Fail if the archive builder cannot
9085 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
9088 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9090 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
9091 Process_Body_Clauses): If the context of a body includes a use clause
9092 for P.Q then a with_clause for P in the same body is not redundant,
9093 even if the spec also has a with_clause on P.
9094 Add missing continuation mark to error msg
9095 (Build_Limited_Views): A limited view of a type is tagged if its
9096 declaration includes a record extension.
9097 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
9098 node, even if the subunit has errors. This avoids malfunction by
9099 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
9100 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
9101 generation of obsolescent messages for with statements (cannot do
9102 this too early, or we cannot implement avoiding the messages in the
9103 case of obsolescent units withing obsolescent units).
9104 (Install_Siblings): If the with_clause is on a remote descendant of
9105 an ancestor of the current compilation unit, find whether there is
9106 a sibling child unit that is immediately visible.
9107 (Remove_Private_With_Clauses): New procedure, invoked after completing
9108 the analysis of the private part of a nested package, to remove from
9109 visibility the private with_clauses of the enclosing package
9111 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
9112 now centralized in Generate_Reference.
9113 (Install_Limited_Context_Clauses): Remove superfluous error
9114 message associated with unlimited view visible through use
9115 and renamings. In addition, at the point in which the error
9116 is reported, we add the backslash to the text of the error
9117 to ensure that it is reported as a single error message.
9118 Use new // insertion for some continuation messages
9119 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
9120 to create implicit with_clause for parent unit mentioned in original
9121 limited_with_clause.
9122 (Install_Limited_With_Unit): Set entity of parent identifiers if the
9123 unit is a child unit. For ASIS queries.
9124 (Analyze_Subunit): If the subunit appears within a child unit, make all
9125 ancestor child units directly visible again.
9127 2006-10-31 Robert Dewar <dewar@adacore.com>
9129 * par-ch10.adb (P_Context_Clause): Minor error message fix
9131 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9132 Javier Miranda <miranda@adacore.com>
9134 * par-ch12.adb: Grammar update and cleanup.
9135 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
9136 support for synchronized derived type definitions.
9137 Add the new actual Abstract_Present to every call to
9138 P_Interface_Type_Definition.
9139 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
9140 a formal object declaration with an access definition or a subtype mark
9141 with a null exclusion.
9142 (P_Generic_Association): Handle association with box, and others_choice
9143 with box, to support Ada 2005 partially parametrized formal packages.
9145 2006-10-31 Robert Dewar <dewar@adacore.com>
9146 Javier Miranda <miranda@adacore.com>
9148 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
9149 (P_Type_Declaration): Remove barrier against the reserved word "limited"
9150 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
9151 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
9153 (P_Type_Declaration): Add the new actual Abstract_Present to every call
9154 to P_Interface_Type_Definition.
9155 (P_Interface_Type_Definition): Addition of one formal to report an error
9156 if the reserved word abstract has been previously found.
9157 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
9158 object renaming declaration with an access definition or subtype mark
9159 with a possible null exclusion.
9161 * par-ch9.adb: Minor error msg fix
9163 * par-load.adb: Add missing continuation mark to error msg
9165 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
9167 2006-10-31 Vincent Celier <celier@adacore.com>
9169 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
9170 unknown attribute in unknown package or in package that does not need
9172 (Parse_Package_Declaration): Do not issue warning for unknown package in
9175 2006-10-31 Vincent Celier <celier@adacore.com>
9177 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
9178 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
9181 2006-10-31 Vincent Celier <celier@adacore.com>
9183 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
9184 on VMS, change "__" to '.' before checking the name.
9185 (Record_Ada_Source): Always add the source file name in the list of
9186 of sources, even if it is not the first time, as it is for another
9188 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
9189 dot, instead of replacing only the first '_'.
9191 * prj-part.adb (Parse): Convert project file path to canonical form
9193 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
9194 extended, the project id of the project extending it is recorded in its
9195 data, even when it has already been processed as an imported project.
9197 2006-10-31 Robert Dewar <dewar@adacore.com>
9199 * repinfo.adb (List_Entities): Don't list entities from renaming
9202 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9203 Robert Dewar <dewar@adacore.com>
9205 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
9206 only a restriction warning is active for the given restriction. This is
9207 desirable because we do not want to modify code in the case where only
9209 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
9210 causes overriding of real restrictions.
9211 Take advantage of new No_Restrictions constant.
9213 * raise.h: (__gnat_set_globals): Change profile.
9215 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9217 * rtsfind.adb: Remove s-polint from comment as it exists no more.
9220 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
9221 Move all the entities in obsolete package System.PolyORB_Interface to
9222 System.Partition_Interface.
9223 (RE_Storage_Size): New function in System.Tasking.
9224 (RE_Get_Ceiling): New entity.
9225 (RE_Set_Ceiling): New entity.
9226 (RO_PE_Get_Ceiling): New entity.
9227 (RO_RE_Set_Ceiling): New entity.
9228 (Inherit_CPP_DT): New entity
9230 2006-10-31 Robert Dewar <dewar@adacore.com>
9232 * scng.adb (Scan, case of numeric literal): Better msg for identifier
9233 starting with a digit.
9235 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9236 Thomas Quinot <quinot@adacore.com>
9237 Javier Miranda <miranda@adacore.com>
9238 Gary Dismukes <dismukes@adacore.com>
9240 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
9241 properly an attempt to apply Unchecked_Access to a protected operation.
9242 (OK_Self_Reference): New subprogram to check the legality of an access
9243 attribute whose prefix is the type of an enclosing aggregate.
9244 Generalizes previous mechanism to handle attribute references nested
9245 arbitrarily deep within the aggregate.
9246 (Analyze_Access_Attribute): An access attribute whose prefix is a type
9247 can appear in an aggregate if this is a default-initialized aggregate
9248 for a self-referential type.
9249 (Resolve_Attribute, case Access): Ditto.
9250 Add support for new implementation defined attribute Stub_Type.
9251 (Eval_Attribute, case Attribute_Stub_Type): New case.
9252 (Analyze_Attribute, case Attribute_Stub_Type): New case.
9253 (Stream_Attribute_Available): Implement using new subprogram from
9254 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
9255 Has_Specified_Stream_Attribute flag.
9256 Disallow Storage_Size and Storage_Pool for access to subprogram
9257 (Resolve_Attribute, case 'Access et al): Take into account anonymous
9258 access types of return subtypes in extended return statements. Remove
9259 accessibility checks on anonymous access types when Unchecked_Access is
9261 (Analyze_Attribute): Add support for the use of 'Class to convert
9262 a class-wide interface to a tagged type.
9263 Add support for the attribute Priority.
9264 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
9265 whether the designated type is discriminated with a constrained partial
9266 view and require static matching in that case.
9267 Add local variable Des_Btyp. The Designated_Type
9268 of an access to incomplete subtype is either its non-limited view if
9269 coming from a limited with or its etype if regular incomplete subtype.
9271 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
9272 Fix predicate to identify and allow cases of (expander-generated)
9273 references to tag of designated object of a RACW.
9274 (Validate_Static_Object_Name): In Ada 2005, a formal object is
9275 non-static, and therefore cannot appear as a primary in a preelaborable
9277 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
9278 Has_Read_Write_Attributes.
9279 (Has_Read_Write_Attributes): Reimplement in termes of
9280 Has_Stream_Attribute_Definition.
9281 (Missing_Read_Write_Attributes): When checking component types in a
9282 record, unconditionally call Missing_Read_Write_Attributes recursively
9283 (remove guard checking for Is_Record_Type / Is_Access_Type).
9285 2006-10-31 Robert Dewar <dewar@adacore.com>
9287 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
9288 useless assignments here and conditionalize it on absence of exception
9290 (Analyze_Exception_Handlers): Small code reorganization of error
9291 detection code, for new handling of formal packages.
9293 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9294 Hristian Kirtchev <kirtchev@adacore.com>
9296 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
9297 that has been constant-folded, preserve information of original tree,
9299 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
9300 generated private extension declaration if the formal derived type is
9301 synchronized. Carry synchronized present over to the generated private
9303 (Validate_Derived_Type_Instance): Ensure that the actual of a
9304 synchronized formal derived type is a synchronized tagged type.
9305 (Instantiate_Formal_Package): When creating the instantiation used to
9306 validate the actual package of a formal declared without a box, check
9307 whether the formal itself depends on a prior actual.
9308 (Instantiate_Formal_Subprogram): Create new entities for the defining
9309 identifiers of the formals in the renaming declaration, for ASIS use.
9310 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
9311 a renaming declaration or a subtype declaration for an actual in an
9312 instance, capture location information of declaration in generic, for
9314 (Instantiate_Formal_Package): Add comments on needed additional tests.
9315 AI-317 (partial parametrization) is fully implemented.
9316 (Validate_Private_Type_Instance): Add check for actual which
9317 must have preelaborable initialization
9318 Use new // insertion for some continuation messages
9319 (Analyze_Formal_Object_Declaration): Change usage of Expression to
9320 Default_Expression. Add type retrieval when the declaration has an
9321 access definition. Update premature usage of incomplete type check.
9322 (Check_Access_Definition): New subsidiary routine. Check whether the
9323 current compilation version is Ada 05 and the supplied node has an
9325 (Instantiate object): Alphabetize local variables. Handle the creation
9326 of new renaming declarations with respect to the kind of definition
9327 used - either an access definition or a subtype mark. Guard against
9328 unnecessary error message in the context of anonymous access types after
9329 they have been resolved. Add check for required null exclusion in a
9330 formal object declaration.
9331 (Switch_View): A private subtype of a non-private type needs to be
9332 switched (the base type can have been switched without its private
9333 dependents because of the last branch of Check_Private_View.
9334 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
9336 (Instantiate_Type): Emit an error message whenever a class-wide type of
9337 a tagged incomplete type is used as a generic actual.
9338 (Find_Actual_Type): Extend routine to handle a component type in a child
9339 unit that is imported from a formal package in a parent.
9340 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
9341 agree on constrainedness, rather than checking against ultimate ancestor
9342 (Instantiate_Subprogram_Body): Create a cross-reference link to the
9343 generic body, for navigation purposes.
9345 2006-10-31 Robert Dewar <dewar@adacore.com>
9346 Thomas Quinot <quinot@adacore.com>
9348 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
9350 (New_Stream_Subprogram): When processing an attribute definition clause
9351 for a stream-oriented subprogram, record an entity node occurring at
9352 the point of clause to use for checking the visibility of the clause,
9353 as defined by 8.3(23) as amended by AI-195.
9354 (New_Stream_Subprogram): New procedure, factoring behaviour from both
9355 New_Stream_Function and New_Stream_Procedure.
9356 (New_Stream_Function, New_Stream_Procedure): Removed.
9357 (Analyze_Attribute_Definition_Clause, case Address): Check new
9358 Alignment_Check check
9360 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9361 Javier Miranda <miranda@adacore.com>
9362 Robert Dewar <dewar@adacore.com>
9364 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
9365 generate the same errors compiling under -gnatc.
9366 (Try_Object_Operation): If no candidate interpretation succeeds, but
9367 there is at least one primitive operation with the right name, report
9368 error in call rather than on a malformed selected component.
9369 (Analyze_Selected_Component): If the prefix is an incomplete type from
9370 a limited view, and the full view is available, use the full view to
9371 determine whether this is a prefixed call to a primitive operation.
9372 (Operator_Check): Verify that a candidate interpretation is a binary
9373 operation before checking the type of its second formal.
9374 (Analyze_Call): Add additional warnings for function call contexts not
9376 (Analyze_Allocator): Move the check for "initialization not allowed for
9377 limited types" after analyzing the expression. This is necessary,
9378 because OK_For_Limited_Init looks at the structure of the expression.
9379 Before analysis, we don't necessarily know what sort of expression it
9380 is. For example, we don't know whether F(X) is a function call or an
9381 indexed component; the former is legal in Ada 2005; the latter is not.
9382 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
9383 were missing. We also didn't handle qualified expressions. Now also
9384 allow function calls. Use new common routine OK_For_Limited_Init.
9385 (Analyze_Type_Conversion): Do not perform some legality checks in an
9386 instance, because the error message will be redundant or spurious.
9387 (Analyze_Overloaded_Selected_Component): Do not do style check when
9388 setting an entity, since we do not know it is the right entity yet.
9389 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
9390 (Analyze_Overloaded_Selected_Component): Same change
9391 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
9392 since regular incomplete subtypes are transformed into corresponding
9393 subtypes of their full views.
9394 (Complete_Object_Operation): Treat name of transformed subprogram call
9395 as coming from source, for browsing purposes.
9396 (Try_Primitive_Operation): If formal is an access parameter, compare
9397 with base type of object to determine whether it is a primitive
9399 (Operator_Check): If no interpretation of the operator matches, check
9400 whether a use clause on any candidate might make the operation legal.
9401 (Try_Class_Wide_Operation): Check whether the first parameter is an
9402 access type whose designated type is class-wide.
9404 2006-10-31 Robert Dewar <dewar@adacore.com>
9405 Ed Schonberg <schonberg@adacore.com>
9406 Gary Dismukes <dismukes@adacore.com>
9408 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
9409 warn on infinite loops.
9410 Add \\ to some continuation messages
9411 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
9412 (Process_Bounds): If the bounds are integer literals that result from
9413 constant-folding, and they carry a user-defined type, preserve that type
9414 rather than treating this as an integer range.
9415 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
9416 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
9417 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
9418 left hand side of assignment.
9419 (Analyze_Assignment): Add suport to manage assigments to the attribute
9420 priority of a protected object.
9421 (Check_Possible_Current_Value_Condition): Allow fully qualified names
9422 not just identifiers.
9423 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
9424 or AND THEN for possible tracking.
9425 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
9426 case of while loops so we can track values in the loop body.
9428 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9429 Hristian Kirtchev <kirtchev@adacore.com>
9430 Bob Duff <duff@adacore.com>
9432 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
9433 procedure cannot be a protected operation (it is a basic_declaration,
9434 not a subprogram_declaration).
9435 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
9436 Subp. Add logic for entry processing.
9437 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
9438 Determine whether an entry or subprogram of a protected or task type
9439 override an inherited primitive of an implemented interface.
9440 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
9441 Update the actual used in calls to Check_Overriding_Indicator.
9442 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
9443 generate the proper reference to the parent unit, for cross-reference.
9444 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
9446 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
9447 (Add_Extra_Formal): Revise procedure to allow passing in associated
9448 entity, scope, and name suffix, and handle setting of the new
9449 Extra_Formals field.
9450 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
9451 pass new parameters. Add support for adding the new extra access formal
9452 for functions whose calls are treated as build-in-place.
9453 (Analyze_A_Return_Statement): Correct casing in error message.
9454 Move Pop_Scope to after Analyze_Function_Return, because an extended
9455 return statement really is a full-fledged scope. Otherwise, visibility
9456 doesn't work right. Correct use of "\" for continuation messages.
9457 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
9458 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
9459 the node doesn't get properly marked as analyzed.
9460 (Analyze_Subprogram_Body): If subprogram is a function that returns
9461 an anonymous access type that denotes a task, build a Master Entity
9463 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
9464 proper usage of null exclusion in a result definition.
9465 (Process_Formals): Code cleanup and new error message.
9466 (Process_Formals): Detect incorrect application of null exclusion to
9468 (Conforming_Types): Handle conformance between [sub]types and itypes
9469 generated for entities that have null exclusions applied to them.
9470 (Maybe_Primitive_Operation): Add an additional type retrieval when the
9471 base type is an access subtype. This case arrises with null exclusions.
9472 (New_Overloaded_Entity): Do not remove the overriden entity from the
9473 homonym chain if it corresponds with an abstract interface primitive.
9474 (Process_Formals): Replace membership test agains Incomplete_Kind with a
9475 call to the synthesized predicate Is_Incomplete_Type.
9476 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
9478 (Analyze_Subprogram_Declaration): Check that abstract interface
9479 primitives are abstract or null.
9480 (Analyze_Subprogram_Specification): Remove previous check for abstract
9481 interfaces because it was not complete.
9482 (Has_Interface_Formals): Removed.
9484 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9485 Javier Miranda <miranda@adacore.com>
9487 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
9488 of Analyze_Package_Body, to create Itype references for anonymous
9489 access types created in the package declaration, whose designated types
9490 may have only a limited view.
9491 (Analyze_Package_Specification): For the private part of a nested
9492 package, install private_with_clauses of enclosing compilation unit if
9493 we are in its visible part.
9494 (Declare_Inherited_Private_Subprograms): Complete barrier
9495 to ensure that the primitive operation has an alias to some parent
9496 primitive. This is now required because, after the changes done for the
9497 implementation of abstract interfaces, the contents of the list of
9498 primitives has entities whose alias attribute references entities of
9499 such list of primitives.
9500 (Analyze_Package_Specification): Simplify code that handles parent units
9501 of instances and formal packages.
9502 (Uninstall_Declarations): Check the convention consistency among
9503 primitive overriding operations of a tagged record type.
9505 2006-10-31 Robert Dewar <dewar@adacore.com>
9506 Hristian Kirtchev <kirtchev@adacore.com>
9507 Javier Miranda <miranda@adacore.com>
9508 Ed Schonberg <schonberg@adacore.com>
9510 * sem_ch8.adb: Minor error msg rewording
9511 (Undefined): When checking for misspellings, invert arguments (to get
9512 expected and found set right)
9513 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
9514 (Analyze_Generic_Renaming): Same fix
9515 (Use_One_Package): Do not take into account the internal entities of
9516 abstract interfaces during the analysis of entities that are marked
9517 as potentially use-visible.
9518 (Find_Type): Handle the case of an attribute reference for
9519 implementation defined attribute Stub_Type (simply let the analysis of
9520 the attribute reference rewrite it).
9521 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
9522 type that appears in a Use_Type clause.
9523 (Analyze_Object_Renaming): Add support for renaming of the Priority
9525 (Find_Type): In Ada 2005, a task type can be used within its own body,
9526 when it appears in an access definition.
9527 (Analyze_Object_Renaming): Remove warning on null_exclusion.
9528 (Analyze_Object_Renaming): Introduce checks for required null exclusion
9529 in a formal object declaration or in a subtype declaration.
9530 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
9531 (Check_Null_Exclusion): New local routine to
9532 Analyze_Subprogram_Renaming. Check whether the formals and return
9533 profile of a renamed subprogram have required null exclusions when
9534 their counterparts of the renaming already impose them.
9535 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
9536 Determine whether an entity is inside a generic scope.
9537 (In_Open_Scope): First pass of documentation update.
9538 (Find_Expanded_Name): Add support for shadow entities associated with
9539 limited withed packages. This is required to handle nested packages.
9540 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
9541 that makes a renaming of a limited withed package illegal.
9543 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9544 Ed Schonberg <schonberg@adacore.com>
9546 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
9547 Check_Overriding_Indicator.
9548 (Analyze_Task_Definition): Ditto.
9549 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
9550 (Check_Overriding_Indicator): To find overridden interface operation,
9551 examine only homonyms that have an explicit subprogram declaration, not
9552 inherited operations created by an unrelated type derivation.
9553 (Check_Overriding_Indicator): When checking for the presence of "null"
9554 in a procedure, ensure that the queried node is a procedure
9556 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
9557 type when the formal is an access to variable.
9558 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
9559 (Analyze_Task_Type): Same addition
9560 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
9561 provide navigation capabilities for entries.
9563 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
9564 Ed Schonberg <schonberg@adacore.com>
9565 Javier Miranda <miranda@adacore.com>
9566 Gary Dismukes <dismukes@adacore.com>
9568 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
9569 inherited from an interface ancestor by another interface in the
9570 context of an instance as 'late'.
9571 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
9572 of a call to a function that dispatches on access result.
9573 (Check_Dispatching_Operation): In case of late overriding of a primitive
9574 that covers abstract interface subprograms we register it in all the
9575 secondary dispatch tables associated with abstract interfaces.
9576 (Check_Dispatching_Call): Add check that a dispatching call is not made
9577 to a function with a controlling result of a limited type. This is a
9578 current implementation restriction.
9579 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
9580 (Check_Dispatching_Operation): Do no emit a warning if the controlling
9581 argument is an interface type that is a generic formal.
9582 (Is_Interface_Subprogram): Removed.
9583 (Check_Dispatching_Operation): If the subprogram is not a dispatching
9584 operation, check the formals to handle the case in which it is
9585 associated with an abstract interface type.
9587 2006-10-31 Robert Dewar <dewar@adacore.com>
9588 Ed Schonberg <schonberg@adacore.com>
9590 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
9591 Add new calls to this procedure during traversal
9592 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
9593 another unit if expansion is disabled.
9595 2006-10-31 Robert Dewar <dewar@adacore.com>
9597 * sem_eval.adb (Compile_Time_Compare): Make use of information from
9598 Current_Value in the conditional case, to evaluate additional
9599 comparisons at compile time.
9601 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9602 Hristian Kirtchev <kirtchev@adacore.com>
9603 Javier Miranda <miranda@adacore.com>
9605 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
9606 subprogram type to provide better diagnostics in case of ambiguity.
9607 (Covers): Handle coverage of formal and actual anonymous access types in
9608 the context of generic instantiation.
9609 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
9610 abstract interface types; this is required to handle concurrent types
9611 with discriminants and abstract interface types.
9612 (Covers): Include type coverage of both regular incomplete subtypes and
9613 incomplete subtypes of incomplete type visibles through a limited with
9616 2006-10-31 Robert Dewar <dewar@adacore.com>
9617 Hristian Kirtchev <kirtchev@adacore.com>
9618 Ed Schonberg <schonberg@adacore.com>
9620 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
9621 messages for entities in packages which are not used.
9622 (Collect_Synchronized_Interfaces): New procedure.
9623 (Overrides_Synchronized_Primitive): New function.
9624 (Denotes_Discriminant): Extend predicate to apply to task types.
9625 Add missing continuation marks in error msgs
9626 (Unqualify): New function for removing zero or more levels of
9627 qualification from an expression. There are numerous places where this
9628 ought to be used, but we currently only deal properly with zero or one
9630 (In_Instance); The analysis of the actuals in the instantiation of a
9631 child unit is not within an instantiation, even though the parent
9632 instance is on the scope stack.
9633 (Safe_To_Capture_Value): Exclude the case of variables that are
9635 (Check_Obsolescent): Removed
9636 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
9637 is an aliased view, even when rewritten as a reference to the target
9638 object in an assignment.
9639 (Get_Subprogram_Entity): New function
9640 (Known_To_Be_Assigned): New function
9641 (Type_Access_Level): Compute properly the access level of a return
9642 subtype that is an anonymous access type.
9643 (Explain_Limited_Type): Correct use of "\" for continuation messages.
9644 (Is_Transfer): The new extended_return_statement causes a transfer of
9646 (Has_Preelaborable_Initialization): New function
9647 (Has_Null_Exclusion): New function. Given a node N, determine whether it
9648 has a null exclusion depending on its Nkind.
9649 Change Is_Lvalue to May_Be_Lvalue
9650 (May_Be_Lvalue): Extensive additional code to deal with subprogram
9651 arguments (IN parameters are not Lvalues, IN OUT parameters are).
9652 (Safe_To_Capture_Value): Extend functionality so it can be used for
9653 the current value condition case.
9654 (Has_Compatible_Alignment): New function
9655 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
9656 objects to handle the Ada 2005 case, where aliasedness no longer implies
9657 that the object is constrained. In particular, for dereferenced names,
9658 the designated object must be assumed to be unconstrained.
9659 (Kill_Current_Values): Properly deal with the case where we encounter
9660 a loop in the scope chain.
9661 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
9663 (Compile_Time_Constraint_Error): Improve error message in error case
9665 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
9666 associated with entities of abstract interface primitives.
9667 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
9669 2006-10-31 Robert Dewar <dewar@adacore.com>
9671 * s-osinte-tru64.adb:
9672 Mark Asm statements Volatile to prevent warnings (seems a
9673 reasonable change anyway)
9676 * s-mastop-irix.adb: Add Volatile to Asm statements
9677 Suppresses warning, and seems appropriate in any case
9679 * s-osinte-vms.adb: Add Volatile to Asm statement
9681 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
9683 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
9685 Add call to Check_Code_Statement
9687 2006-10-31 Robert Dewar <dewar@adacore.com>
9688 Ed Schonberg <schonberg@adacore.com>
9689 Bob Duff <duff@adacore.com>
9691 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
9692 Synchronized_Present): Add Formal_Derived_Type_Definition and
9693 Private_Extension_Declaration to the list of assertions.
9694 (Is_Entry_Barrier_Function): New flag
9695 (Has_Self_Reference): New flag on aggregates, to indicate that they
9696 contain a reference to the enclosing type, inserted through a default
9698 (Next_Rep_Item): Move from Node4 to Node5.
9699 (Entity): Add this field for N_Attribute_Definition_Clause.
9700 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
9701 (N_Return_Object_Declaration): Remove this node kind. We now use
9702 N_Object_Declaration instead.
9703 (Actual_Designated_Subtype): Move to a different place to make room in
9704 N_Extended_Return_Statement.
9705 (Procedure_To_Call): Move to a different place to make room in
9706 N_Extended_Return_Statement.
9707 (Return_Type): Removed this field to make room in return statements
9709 (Return_Statement_Entity): New field in return statements, in part to
9710 replace Return_Type, and in part to support the fact that return
9711 statements are now pushed on the scope stack during semantic analysis.
9712 (Return_Object_Declarations): New field to support extended return
9714 (N_Extended_Return_Statement): New node for extended_return_statement
9716 (N_Return_Object_Declaration): New node for part of
9717 extended_return_statement nonterminal. Needed because all the necessary
9718 fields won't fit in N_Extended_Return_Statement.
9719 Generic_associations now carry the Box_Present flag, to indicate a
9720 default for an actual in a partially parametrized formal package.
9722 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
9723 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
9724 and for the new predefined dispatching policies: EDF_Across_Priorities,
9725 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
9726 Introduce new name Stub_Type for implementation defined attribute.
9727 Add pragma Preelaborable_Initialization
9728 Add entry for Priority attribute.
9729 Add Pragma_Wide_Character_Encoding
9730 (Get_Convention_Name): Given a convention id, this function returns the
9731 corresponding name id from the names table.
9733 2006-10-31 Ed Schonberg <schonberg@adacore.com>
9734 Robert Dewar <dewar@adacore.com>
9735 Bob Duff <duff@adacore.com>
9737 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
9738 print null exclusion twice in the case of an access definition,
9739 Implement new -gnatL switch
9740 Remove N_Return_Object_Declaration. We now use
9741 N_Object_Declaration instead. Implement the case for
9742 N_Extended_Return_Statement. Alphabetize the cases.
9743 Add cases for new nodes N_Extended_Return_Statement and
9744 N_Return_Object_Declaration. The code is not yet written.
9745 Update the output for N_Formal_Object_Declaration
9746 and N_Object_Renaming_Declaration.
9747 (Write_Itype): Account for the case of a modular integer subtype whose
9748 base type is private.
9750 2006-10-31 Arnaud Charlet <charlet@adacore.com>
9752 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
9753 Remove elaboration code, now done in the binder.
9755 * s-rident.ads: Make this unit Preelaborate.
9756 (No_Restrictions): New constant used to clean up code and follow
9757 preelaborate constraints.
9760 Add System.Restrictions dependence, referenced directly from the
9761 binder generated file.
9763 2006-10-31 Gary Dismukes <dismukes@adacore.com>
9765 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
9766 True when AAMP extended floating-point is in use (48-bit). Change type
9767 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
9768 the two byte array types on AFloat. Change type of IV_Ilf overlay
9769 variable from Byte8 to ByteLF. Add appropriate initializations of
9770 floating-point overlays for AAMP cases.
9772 2006-10-31 Javier Miranda <miranda@adacore.com>
9774 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
9775 (Get_Ceiling): New subprogram that returns
9776 the ceiling priority of the protected object.
9777 (Set_Ceiling): New subprogram that sets the new ceiling priority of
9778 the protected object.
9780 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
9782 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
9784 2006-10-31 Jose Ruiz <ruiz@adacore.com>
9786 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
9787 requeuing to the same protected object to give higher priority tasks
9788 the opportunity to execute.
9790 2006-10-31 Robert Dewar <dewar@adacore.com>
9792 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
9793 add more precise check for the character sequence that follows '[' to
9794 avoid possible confusion in case if '[' is the last character of a
9796 (Scan_Wide): Always allow brackets encoding
9798 2006-10-31 Olivier Hainque <hainque@adacore.com>
9800 * s-stchop.ads: make this unit preelaborate. This is desirable in
9801 general and made mandatory by the use of this unit by s-taprop which
9802 is itself preelaborate.
9804 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
9805 Td_Events component.
9807 2006-10-31 Vincent Celier <celier@adacore.com>
9809 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
9812 2006-10-31 Vincent Celier <celier@adacore.com>
9814 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
9816 2006-10-31 Vincent Celier <celier@adacore.com>
9818 * makegpr.adb (Check_Compilation_Needed): Take into account path names
9820 (Check_Compilation_Needed): When checking a C or C++ source, do not
9821 resolve symbolic links.
9822 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
9823 When not in verbose mode and Ellipse is True, display "..." for the
9824 first argument with Display set to False.
9825 (Build_Global_Archive): Always set Display True for the first object
9826 file. Call Display_Command with Ellipse set to True.
9828 2006-10-31 Matt Heaney <heaney@adacore.com>
9830 * a-crbtgo.ads: Commented each subprogram
9832 * a-crbtgo.adb: Added reference to book from which algorithms were
9835 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
9836 indicate which child.
9837 (Generic_Conditional_Insert): changed parameter name from "Success" to
9839 (Generic_Unconditional_Insert_With_Hint): improved algorithm
9841 * a-coorse.adb (Replace_Element): changed parameter name in call to
9842 conditional insert operation.
9844 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
9846 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
9849 * a-ciorse.adb (Replace_Element): changed parameter name in call to
9850 conditional insert operation.
9852 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
9855 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
9856 instead of mode inout.
9858 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
9860 (Generic_Read): preserve existing buckets array if possible
9861 (Generic_Write): don't send buckets array length anymore
9863 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
9864 instead of mode inout.
9866 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
9867 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
9869 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
9870 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
9871 (Replace_Element): local operation is now an instantiation
9873 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
9874 check current length.
9875 (Generic_Replace_Element): new operation
9877 2006-10-31 Doug Rupp <rupp@adacore.com>
9879 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
9880 Call TBK$SYMBOLIZE without omitting parameters.
9882 2006-10-31 Vincent Celier <celier@adacore.com>
9884 * symbols-processing-vms-ia64.adb,
9885 symbols-processing-vms-alpha.adb (Process): Do not include symbols
9886 that come from generic instantiations in bodies.
9888 2006-10-31 Pat Rogers <rogers@adacore.com>
9890 * a-rttiev.ads, a-rttiev.adb:
9891 This is a significant redesign primarily for the sake of automatic
9892 timer task termination but also to fix a design flaw.
9893 Therefore we are now using an RTS lock, instead of a protected
9894 object, to provide mutual exclusion to the queue of pending events
9895 and the type Timing_Event is no longer a protected type.
9897 2006-10-31 Robert Dewar <dewar@adacore.com>
9898 Cyrille Comar <comar@adacore.com>
9899 Ben Brosgol <brosgol@adacore.com>
9901 * debug.adb: Update flags documentation
9903 * gnat_ugn.texi: Add documentation for new -gnatwq switch
9904 Clean up documentation for several other warning switches
9905 Clarify how task stack size can be specified with various
9906 versions of Windows.
9907 Add note that -gnatVo includes ranges including loops
9908 Add documentation for -gnatL switch
9909 Add note on elaboration warning for initializing variables
9910 Add documentation for new -gnatwt warning switch
9911 Document new form of pragma Warnings (On|Off, string)
9912 Add comment on use of pragma Warnings to control warnings
9913 Add documentation for -gnatjnn switch
9914 Modify section on interfacing with C for VMS 64-bit.
9915 Add doc for -gnatVe/E
9916 Add documentation of new warning flags -gnatww/-gnatwW
9917 Add warnings about address clause overlays to list of warnings
9918 (Exception Handling Control): Document that the option --RTS must be
9919 used consistently for gcc and gnatbind.
9920 Clarify that inlining is not always possible
9921 Update documentation on pragma Unchecked_Union.
9924 Add documentation for new extended version of pragma Obsolescent
9925 Add documentation for implementation defined attribute 'Stub_Type.
9926 Add note on use of Volatile in asm statements
9927 Add documentation on use of pragma Unreferenced in context clause
9928 Document new form of pragma Warnings (On|Off, pattern)
9929 Document pragma Wide_Character_Encoding
9930 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
9931 enforced if code generation is active.
9932 Add section on pragma Suppress to document GNAT specific check
9934 Clarify difference between No_Dispatching_Calls & No_Dispatch.
9935 Add documentation for pragma Restrictions (No_Elaboration_Code)
9938 Add comments on layout of subprogram local variables in the
9939 presence of nested subprograms.
9943 * elists.ads: Minor reformatting
9944 Node returns Node_Or_Entity_Id (doc change only)
9946 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
9948 * g-arrspl.ads (Create): Update comments.
9950 * sem.ads: Add details on the handling of the scope stack.
9952 * usage.adb: Update documentation.
9954 * validsw.ads, validsw.adb:
9955 Add definition of Validity_Check_Components and implement -gnatVe/E
9957 * vms_data.ads: Add missing VMS qualifiers.
9959 * s-addope.ads: Add documentation on overflow and divide by zero
9961 2006-10-31 Robert Dewar <dewar@adacore.com>
9962 Thomas Quinot <quinot@adacore.com>
9963 Arnaud Charlet <charlet@adacore.com>
9965 * fmap.adb: Put routines in alpha order
9967 * g-boumai.ads: Remove redundant 'in' keywords
9969 * g-cgi.adb: Minor reformatting
9971 * g-cgi.ads: Remove redundant 'in' keywords
9973 * get_targ.adb: Put routines in alpha order
9975 * prj-attr.ads: Minor reformatting
9977 * s-atacco.ads: Minor reformatting
9979 * scn.adb: Put routines in alpha order
9981 * sinput-l.adb: Minor comment fix
9983 * sinput-p.adb: Minor comment fix
9985 * s-maccod.ads: Minor reformatting
9987 * s-memory.adb: Minor reformatting
9989 * s-htable.adb: Fix typo in comment.
9991 * s-secsta.adb: Minor comment update.
9993 * s-soflin.adb: Minor reformatting
9996 Add comment about odd qualification in Storage_Offset declaration
9999 Remove unnecessary 'in' keywords for formal parameters.
10001 * treeprs.adt: Minor reformatting
10003 * urealp.adb: Put routines in alpha order
10005 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
10008 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
10010 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
10012 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
10013 workaround as on other platforms.
10015 * g-eacodu-vms.adb: Remove redundant 'in' keywords
10016 * g-expect-vms.adb: Remove redundant 'in' keywords
10018 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
10019 clear error message if the list-of-files file cannot be opened.
10021 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
10022 equality operator is always visible.
10024 * lang.opt: Woverlength-strings: New option.
10027 Update copyright, since nmake.ads and nmake.adb have changed.
10029 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
10030 (Binder_Output_Time_Stamps_Set): removed.
10031 (Old_Binder_Output_Time_Stamp): idem.
10032 (New_Binder_Output_Time_Stamp): idem.
10033 (Recording_Time_From_Last_Bind): idem.
10034 (Recording_Time_From_Last_Bind): Make constant.
10036 * output.ads, output.adb (Write_Str): Allow LF characters
10037 (Write_Spaces): New procedure
10039 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
10041 * inline.adb: Minor reformatting
10043 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
10045 * s-mastop-vms.adb: Remove redundant 'in' keywords
10047 * s-osprim-vms.adb: Remove redundant 'in' keywords
10049 * s-trafor-default.adb: Remove redundant 'in' keywords
10051 * 9drpc.adb: Remove redundant 'in' keywords
10053 * s-osinte-mingw.ads: Minor reformatting
10055 * s-inmaop-posix.adb: Minor reformatting
10057 * a-direio.ads: Remove quotes from Compile_Time_Warning message
10059 * a-exexda.adb: Minor code reorganization
10061 * a-filico.adb: Minor reformatting
10063 * a-finali.adb: Minor reformatting
10065 * a-nudira.ads: Remove quote from Compile_Time_Warning message
10067 * a-numeri.ads: Minor reformatting
10069 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
10071 * exp_pakd.ads: Fix obsolete comment
10073 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
10074 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
10075 Probably not a bug, but certainly neater and more efficient.
10077 * a-tienio.adb: Minor reformatting
10079 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
10080 Avoid assuming low bound of string is 1.
10082 * gnatbind.adb: Change Bindusg to package and rename procedure as
10083 Display, which now ensures that it only outputs usage information once.
10084 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
10086 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
10089 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
10091 (Match): Add pragma Assert to ensure that Matches'First is zero
10093 * g-regpat.ads (Match): Document that Matches lower bound must be zero
10095 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
10096 documented preconditions (also kills warnings about bad indexes).
10098 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
10100 (Build_Import_Library): Ditto;
10102 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
10104 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
10106 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
10107 lower bound of choice table is 1.
10109 * sem_case.ads (Analyze_Choices): Document that lower bound of
10112 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
10115 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
10116 and add appropriate Assert pragma to suppress warnings.
10118 * atree.h, atree.ads, atree.adb
10119 Change Elist24 to Elist25
10120 Add definitions of Field28 and Node28
10121 (Traverse_Field): Use new syntactic parent table in sinfo.
10123 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
10125 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
10127 * exp_tss.adb: Put routines in alpha order
10129 * fe.h: Remove redundant declarations.
10131 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
10133 * utils.c (builtin_function): Rename to gnat_builtin_function.
10134 Move common code to add_builtin_function.
10135 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
10136 gnat_builtin_function.
10137 * gigi.h (builtin_function): Rename to gnat_builtin_function.
10138 Change the signature.
10140 2006-10-16 Brooks Moses <bmoses@stanford.edu>
10142 * Makefile.in: Add TEXI2PDF definition.
10143 * Make-lang.in: Add "ada.pdf" target.
10145 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
10147 * decl.c, utils.c: Fix comment typos.
10148 * utils.c: Fix a typo.
10150 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
10152 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
10153 on "pure" Ada subprograms if SJLJ exceptions are used.
10154 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
10155 on the declaration node of JMPBUF_SAVE.
10156 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
10157 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
10158 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
10160 2006-08-20 Laurent GUERBY <laurent@guerby.net>
10163 g-socket.adb (Bind_Socket): Call Set_Address.
10165 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
10168 * decl.c (same_discriminant_p): New static function.
10169 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
10170 subtype and we have discriminants, fix up the COMPONENT_REFs
10171 for the discriminants to make them reference the corresponding
10172 fields of the parent subtype after it has been built.
10174 2006-09-15 Roger Sayle <roger@eyesopen.com>
10177 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
10178 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
10180 2006-09-13 Olivier Hainque <hainque@adacore.com>
10183 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
10184 of a SAVE_EXPR, just make the operand addressable/not-readonly and
10185 let the common gimplifier code make and propagate a temporary copy.
10186 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
10187 out/in-out actuals and defer setting the addressable/readonly bits
10190 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
10193 * decl.c (components_to_record): Defer emitting debug info for the
10194 record type associated with the variant until after we are sure to
10197 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
10200 * gigi.h (gnat_internal_attribute_table): Declare.
10201 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
10202 * utils.c (gnat_internal_attribute_table): New global variable.
10203 (builtin_function): Always call decl_attributes on the builtin.
10204 (handle_const_attribute): New static function.
10205 (handle_nothrow_attribute): Likewise.
10207 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
10209 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
10211 2006-06-23 Olivier Hainque <hainque@adacore.com>
10213 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
10214 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
10216 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
10217 Eric Botcazou <ebotcazou@adacore.com>
10220 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
10221 check-gnat into check-acats.
10223 2006-06-17 Karl Berry <karl@gnu.org>
10225 * gnat-style.texi (@dircategory): Use "Software development"
10226 instead of "Programming", following the Free Software Directory.
10228 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10231 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
10233 2006-06-06 Laurent GUERBY <laurent@guerby.net>
10236 mlib-utl.adb: Use Program_Name.
10238 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
10240 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
10241 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
10242 trans.c, utils.c: Fix comment typos. Follow spelling
10244 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
10247 2006-05-19 Nicolas Setton <setton@adacore.com>
10249 * misc.c (gnat_dwarf_name): New function.
10250 (LANG_HOOKS_DWARF_NAME): Define to it.
10252 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
10254 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
10255 (ada/misc.o): Likewise.
10256 (ada/utils.o): Likewise.
10258 2006-04-08 Aurelien Jarno <aurel32@debian.org>
10260 * Makefile.in: Add Ada support for GNU/kFreeBSD.
10261 * s-osinte-kfreebsd-gnu.ads: New file.
10263 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
10265 * Make-lang.in: Rename docdir to gcc_docdir.
10267 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
10269 * gigi.h (get_ada_base_type): Delete.
10270 * utils2.c (get_ada_base_type): Likewise.
10271 * trans.c (convert_with_check): Operate in the real base type.
10273 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10275 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
10277 2006-03-02 Richard Sandiford <richard@codesourcery.com>
10279 * utils.c (create_var_decl): Use have_global_bss_p when deciding
10280 whether to make the decl common.
10282 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
10284 * Make-lang.in (Ada): Remove.
10285 (.PHONY): Remove Ada
10287 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10289 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
10290 aggregate, check the interpretations of the other operand to find one
10291 that may be a boolean array.
10293 (Analyze_Selected_Component): Fix flow-of-control typo in case where
10294 the prefix is a private extension.
10296 2006-02-17 Eric Botcazou <botcazou@adacore.com>
10299 * utils2.c (find_common_type): If both input types are BLKmode and
10300 have the same constant size, keep using the first one.
10302 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
10304 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
10306 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
10308 2006-02-17 Jose Ruiz <ruiz@adacore.com>
10310 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
10311 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
10312 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
10313 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
10314 Abort_Defer/Undefer pairs to avoid the possibility of a task being
10315 aborted while owning a lock.
10317 2006-02-17 Javier Miranda <miranda@adacore.com>
10318 Robert Dewar <dewar@adacore.com>
10320 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
10321 through an access to class-wide interface we force the displacement of
10322 the pointer to the allocated object to reference the corresponding
10323 secondary dispatch table.
10324 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
10325 if Long_Shifts are supported on the target, even if 64 bit divides
10326 are not supported (configurable run time mode).
10327 (Expand_N_Type_Conversion): Do validity check if validity checks on
10328 operands are enabled.
10329 (Expand_N_Qualified_Expression): Do validity check if validity checks
10330 on operands are enabled.
10332 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10334 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
10335 must be materialized when the renamed expression is an explicit
10338 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10340 * freeze.adb (Statically_Discriminated_Components): Return false if
10341 the bounds of the type of the discriminant are not static expressions.
10343 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
10344 the bounds of the discriminant type are not static.
10346 2006-02-17 Robert Dewar <dewar@adacore.com>
10348 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
10349 then we close To if it is valid.
10351 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
10353 * init.c (facility_resignal_table): new array
10354 (__gnat_default_resignal_p): enhance default predicate to resignal if
10355 VMS condition has one of the predefined facility codes.
10357 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
10359 * Makefile.in: Use VMS64 specialized versions of several units in
10360 Interfaces.C hierarchy to be compatible with HP C default size choices.
10361 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
10363 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10365 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
10366 instantiation, the corresponding entity is the related_instance of the
10367 wrapper package created for the instance.
10369 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10371 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
10372 the current instance is nested within another instance in a child unit.
10374 2006-02-17 Javier Miranda <miranda@adacore.com>
10375 Ed Schonberg <schonberg@adacore.com>
10377 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
10378 type we cannot inherit the primitive operations; we inherit the
10379 Corresponding_Record_Type (which has the list of primitive operations).
10380 (Check_Anonymous_Access_Types): When creating anonymous access types for
10381 access components, use Rewrite in order to preserve the tree structure,
10383 (Analyze_Object_Declaration): For limited types with access
10384 discriminants with defaults initialized by an aggregate, obtain
10385 subtype from aggregate as for other mutable types.
10386 (Derived_Type_Declaration): If the derived type is a limited interface,
10387 set the corresponding flag (Is_Limited_Record is not sufficient).
10389 2006-02-17 Ed Schonberg <schonberg@adacore.com>
10391 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
10392 to inline a function that returns an unconstrained type, the return
10393 expression must be the first variable declared in the body of the
10396 2006-02-17 Javier Miranda <miranda@adacore.com>
10398 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
10399 abstract interface type, the static analysis is not enough to know if
10400 the interface is implemented or not by the source tagged type. Hence
10401 we must pass the work to the expander to generate the required code to
10402 evaluate the conversion at run-time.
10403 (Resolve_Equality_Op): Do not apply previous
10404 transformation if expansion is disasbled, to prevent anomalies when
10405 locating global references in a generic unit.
10407 2006-02-17 Vincent Celier <celier@adacore.com>
10409 * snames.ads, snames.adb: New standard names for new project attributes:
10410 archive_builder, archive_indexer, compiler_pic_option,
10411 config_body_file_name, config_body_file_name_pattern,
10412 config_file_switches, config_file_unique, config_spec_file_name,
10413 config_spec_file_name_pattern, default_builder_switches,
10414 default_global_compiler_switches, default_language,
10415 dependency_file_kind, global_compiler_switches, include_path,
10416 include_path_file, language_kind, linker_executable_option,
10417 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
10418 roots, runtime_project.
10420 2006-02-17 Matthew Heaney <heaney@adacore.com>
10422 * a-convec.ads, a-convec.adb:
10423 (operator "&"): handle potential overflow for large index types
10424 (Insert): removed Contraint_Error when using large index types
10425 (Insert_Space): removed Constraint_Error for large index types
10426 (Length): moved constraint check from Length to Insert
10428 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
10429 as not null access.
10430 Explicit raise statements now include an exception message.
10431 (operator "&"): handle potential overflow for large index types
10432 (Insert): removed Contraint_Error when using large index types
10433 (Insert_Space): removed Constraint_Error for large index types
10434 (Length): moved constraint check from Length to Insert
10436 2006-02-17 Robert Dewar <dewar@adacore.com>
10438 * s-wchcnv.adb: Document handling of [ on output (we do not change
10439 this to ["5B"] and the new comments say why not.
10442 Add note for -gnatVo that this now includes the cases of type
10443 conversions and qualified expressions.
10444 Add comments on handling of brackets encoding for Text_IO
10446 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
10447 Thomas Quinot <quinot@adacore.com>
10448 Robert Dewar <dewar@adacore.com>
10449 Javier Miranda <miranda@adacore.com>
10451 * expander.adb: Fix typo in comment
10453 * exp_pakd.adb: Fix typo
10454 Minor comment reformatting.
10456 * g-dyntab.adb: Minor reformatting
10458 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
10459 aliased subprograms to look for the abstract interface subprogram.
10461 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
10463 * env.c (__gnat_setenv): Use size_t.
10464 (__gnat_unsetenv): Likewise.
10465 (__gnat_clearenv): Likewise.
10467 2006-02-16 Arnaud Charlet <charlet@adacore.com>
10469 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
10471 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10473 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
10474 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
10475 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
10476 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
10477 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
10478 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
10479 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
10480 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
10481 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
10484 2006-02-13 Jose Ruiz <ruiz@adacore.com>
10486 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
10487 protection against race conditions is not needed.
10488 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
10490 (Set_Specific_Handler): Add mutual exclusive access to the specific
10492 (Specific_Handler): Add mutual exclusive access for retrieving the
10495 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
10498 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
10499 Fall_Back_Handler and Specific_Handler.
10501 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
10502 termination handlers.
10503 Set two different owerflow depending on the maximal stack size.
10505 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
10506 protection against race conditions is not needed when executing the
10507 task termination handler.
10509 2006-02-13 Robert Dewar <dewar@adacore.com>
10511 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
10512 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
10513 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
10514 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
10515 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
10516 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
10517 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
10518 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
10519 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
10520 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
10521 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
10522 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
10523 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
10524 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
10525 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
10526 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
10527 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
10528 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
10529 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
10530 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
10531 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
10532 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
10533 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
10534 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
10535 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
10536 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
10537 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
10538 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
10539 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
10540 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
10541 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
10542 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
10543 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
10544 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
10547 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
10549 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
10550 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
10551 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
10552 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
10553 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
10554 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
10555 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
10556 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
10557 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
10559 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10561 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
10562 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
10563 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
10564 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
10565 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
10566 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
10567 replaced by anonymous access type.
10568 (pthread_sigmask): Now take an access sigset_t
10570 * s-osinte-hpux.ads: Ditto.
10571 (pthread_mutex_t, pthread_cond_t): Update definitions to support
10572 properly 32 and 64 bit ABIs.
10574 2006-02-13 Pascal Obry <obry@adacore.com>
10576 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
10577 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
10578 s-taprop-linux.adb, s-taprop-solaris.adb,
10579 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
10580 adjustement is already done when calling this routine.
10582 2006-02-13 Pascal Obry <obry@adacore.com>
10584 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
10585 table to take advantage of the 16 priority levels available on Windows
10586 2000 and XP. On NT4 there are only 7 priority levels, this is properly
10587 supported by this new mapping.
10589 2006-02-13 Nicolas Setton <setton@adacore.com>
10591 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
10592 (get_encoding): New subprogram. Extracts the encodings from an encoded
10595 2006-02-13 Pascal Obry <obry@adacore.com>
10596 Nicolas Roche <roche@adacore.com>
10597 Arnaud Charlet <charlet@adacore.com>
10599 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
10601 (__gnat_try_lock): Add unicode support by using a specific section on
10603 (__gnat_get_current_dir): Idem.
10604 (__gnat_open_read): Idem.
10605 (__gnat_open_rw): Idem.
10606 (__gnat_open_create): Idem.
10607 (__gnat_create_output_file): Idem.
10608 (__gnat_open_append): Idem.
10609 (__gnat_open_new): Idem.
10610 (__gnat_file_time_name): Idem.
10611 (__gnat_set_file_time_name): Idem.
10612 (__gnat_stat): Idem.
10613 (win32_no_block_spawn): Idem.
10614 (__gnat_locate_exec_on_path): Idem.
10615 (__gnat_opendir): New routine.
10616 (__gnat_closedir): Idem.
10617 (__gnat_readdir): Add new parameter length (pointer to int). Update
10618 implementation to use it and add specific Win32 code for Unicode
10620 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
10621 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
10622 (convert_addresses): Do not define this dummy routine on VMS.
10624 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
10625 runtime Unicode support will be activated.
10626 (S2WS): String to Wide-String conversion. This version just copy a
10627 string in non Unicode version.
10628 (WS2S): Wide-String to String conversion. This version just copy a
10629 string in non Unicode version.
10631 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
10632 (Open): Now import __gnat_opendir from adaint.c.
10633 (Read): Change the implementation to support unicode characters. It is
10634 not possible to use strlen() on Windows as this version supports only
10635 standard ASCII characters. So the length of the directory entry is now
10636 returned from the imported __gnat_readdir routine.
10637 Update copyright notice.
10639 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
10640 (opendir): Moved to adaint.c.
10642 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
10643 (Get_Directory): Fix wrong indexing.
10644 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
10645 __gnat_getenv from env.c
10646 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
10649 * env.h, env.c: New file.
10651 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
10652 adaint.c by __gnat_getenv from env.c
10654 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
10655 adaint.c by __gnat_getenv from env.c
10657 * Make-lang.in: Add env.o in the list of C object needed by gnat1
10659 Update dependencies.
10661 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10662 Olivier Hainque <hainque@adacore.com>
10663 Eric Botcazou <ebotcazou@adacore.com>
10665 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
10667 * gigi.h (value_factor_p): Add prototype and description, now public.
10669 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
10670 promotion for field with rep clause if the associated size was proven
10672 Expand comments describing attempts to use a packable type.
10673 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
10674 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
10675 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
10676 necessary since these are not different types and pointers may
10677 actually designate any subtype in this hierarchy.
10678 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
10679 discriminants but put them into record only if not Unchecked_Union;
10680 pass flag to components_to_record showing Unchecked_Union.
10681 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
10682 components before variants; don't set TYPE_UNCHECKED_UNION_P.
10683 (components_to_record): New argument UNCHECKED_UNION.
10684 Remove special case code for Unchecked_Union and instead use main code
10685 with small changes.
10688 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
10689 variable with the expression being built, only its inner field.
10691 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
10692 emit_sequence_entry_statements.
10693 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
10694 (establish_gnat_vms_condition_handler): Move before
10695 Subprogram_Body_to_gnu.
10696 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
10697 for a subprogram if it has a foreign convention or is exported.
10698 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
10699 substituted for a CONST_DECL.
10700 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
10701 Etype to assoc_to_constructor.
10702 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
10703 discriminants of Unchecked_Union.
10704 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
10705 don't need cluttering preprocessor directives.
10706 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
10707 condition handler as current in the compiled function.
10708 (body_with_handlers_p): New function. Tell whether a given sequence of
10709 statements node is attached to a package or subprogram body and involves
10710 exception handlers possibly nested within inner block statements.
10711 (emit_sequence_entry_statements): New function, to emit special
10712 statements on entry of sequences when necessary. Establish GNAT
10713 condition handler in the proper cases for VMS.
10714 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
10715 emit_sequence_entry_statements.
10717 * utils2.c (find_common_type): If both input types are BLKmode and
10718 have a constant size, use the smaller one.
10719 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
10722 * utils.c (value_factor_p): Make public, to allow uses from other gigi
10724 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
10725 (convert, case UNION_TYPE): Remove special treatment for unchecked
10729 (update_pointer_to): Update variants of pointer types to unconstrained
10730 arrays by attaching the list of fields of the main variant.
10732 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10733 Robert Dewar <dewar@adacore.com>
10735 * a-exexpr.adb, a-exexpr-gcc.adb
10736 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
10737 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
10738 Remove code unused for exception propagation for the compiler itself
10739 from a-except.adb and update to still share separate packages.
10741 * a-except.ads, a-except.adb: Ditto.
10742 Add comments that this version is now used only by the compiler and
10743 other basic tools. The full version that includes the Ada 2005 stuff
10744 is in separate files a-except-2005.ads/adb. The reason is that we do
10745 not want to cause bootstrap problems with compilers not recognizing
10747 Add exception reason code PE_Implicit_Return
10748 Add new exception reason code (Null Exception_Id)
10750 * a-except-2005.adb, a-except-2005.ads: New files.
10752 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
10754 * s-wchcon.adb: New file.
10756 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
10757 (traceback.o deps): Likewise.
10758 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
10759 Activate build of GMEM instrumentation library on VMS targets.
10760 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
10761 Use a-except-2005.ads/adb for all run-time library builds unless
10762 specified otherwise.
10763 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
10764 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
10765 Use s-parame.adb on all native platforms.
10766 Use s-parame-vxworks.adb on all vxworks platforms.
10767 Add env.c env.h in LIBGNAT_SRCS
10768 Add env.o in LIBGNAT_OBJS
10769 (GNATMAKE_OBJS): Remove ctrl_c.o object.
10770 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
10771 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
10772 supports VxWorks 6 RTPs.
10773 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
10774 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
10776 * types.h, types.ads (Terminate_Program): New exception
10777 Add comment on modifying multiple versions of a-except.adb when the
10778 table of exception reasons is modified.
10779 Add exception reason code PE_Implicit_Return
10780 Add new exception reason code (Null Exception_Id)
10782 * clean.adb (Initialize): Get the target parameters before checking
10783 if target is OpenVMS. Move the OpenVMS specific code here from package
10784 body elaboration code.
10786 2006-02-13 Thomas Quinot <quinot@adacore.com>
10787 Vincent Celier <celier@adacore.com>
10788 Robert Dewar <dewar@adacore.com>
10790 * ali-util.adb (Get_File_Checksum): Update to account for change in
10791 profile of Initialize_Scanner.
10793 * gprep.adb (Gnatprep): Update to account for change in profile of
10794 Initialize_Scanner.
10795 (Process_One_File): Same.
10797 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
10798 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
10799 that behaviour using the new Unit information recorded in the source
10800 files table, rather than going through all units every time.
10801 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
10802 (Get_Source_Unit): Same.
10804 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
10805 change in profile of Initialize_Scanner.
10806 (Prepare_To_Preprocess): Same.
10808 * lib.ads: Fix typo in comment (templace -> template).
10810 * prj-part.adb (Parse_Single_Project): Update to account for change in
10811 profile of Initialize_Scanner.
10813 * scn.adb (Initialize_Scanner): Account for change in profile of
10814 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
10815 Also record the association of the given Source_File_Index to the
10816 corresponding Unit_Number_Type.
10818 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
10820 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
10821 Remove Unit formal for generic scanner: this formal
10822 is only relevant to Scn (the scanner instance used to parse Ada source
10823 files), not to other instances. Update comment accordingly.
10824 (Scan): Use new function Snames.Is_Keyword_Name.
10826 * sinfo-cn.adb: Fix typo in comment.
10828 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
10831 * sinput.ads (Source_File_Record): New component Unit, used to capture
10832 the unit identifier (if any) associated to a source file.
10834 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
10835 Unit in Source_File_Record.
10837 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
10838 in profile of Initialize_Scanner.
10840 * scans.adb (Initialize_Ada_Keywords): New procedure
10842 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
10843 Ada keywords in the Namet table, without the need to call
10844 Initialize_Scanner.
10846 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
10847 (Is_Keyword_Name): New function
10849 * snames.ads: Add subtype Configuration_Pragma_Names
10850 Add pragma Ada_2005 (synonym for Ada_05)
10851 (Is_Keyword_Name): New function
10853 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
10855 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10857 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
10860 * a-stwima.adb (To_Set): Add extra check when N = 0.
10862 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
10864 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10866 * s-parame-mingw.adb, s-parame-linux.adb,
10867 s-parame-solaris.adb: Removed, replaced by s-parame.adb
10869 * s-parame-vxworks.ads: Fix typo.
10871 * s-parame-vxworks.adb: New file.
10873 * s-parame.adb: Version now used by all native platforms.
10874 (Default_Stack_Size): Use 2 megs for default stack size and use
10875 __gl_default_stack_size when available.
10876 (Minimum_Stack_Size): Use 12K.
10878 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
10879 (Create_Task): Refine implementation taking advantage of the XP stack
10880 size support. On XP, we now create the thread using the flag
10881 STACK_SIZE_PARAM_IS_A_RESERVATION.
10883 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
10885 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
10886 XP and 0 on older Windows versions.
10888 * interfac-vms.ads: Removed, no longer used.
10890 2006-02-13 Matthew Heaney <heaney@adacore.com>
10892 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
10893 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
10894 a-cohase.adb: All explicit raise statements now include an exception
10897 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
10898 (Update_Element_Preserving_Key): renamed op to just Update_Element.
10899 Explicit raise statements now include an exception message
10901 * a-cihase.ads, a-cohase.ads: Removed comment.
10903 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
10904 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
10905 a-szbzha.adb, a-szfzha.ads: New files.
10907 2006-02-13 Matthew Heaney <heaney@adacore.com>
10909 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
10912 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
10914 * lang.opt: Wvariadic-macros: New option.
10915 Wold-style-definition: Likewise.
10916 Wmissing-format-attribute: Likewise.
10918 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
10919 -Wold-style-definition and -Wmissing-format-attribute.
10921 2006-02-13 Robert Dewar <dewar@adacore.com>
10923 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
10925 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
10927 2006-02-13 Nicolas Roche <roche@adacore.com>
10929 * a-envvar.adb, a-envvar.ads: New files.
10931 2006-02-13 Douglas Rupp <rupp@adacore.com>
10933 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
10935 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
10937 2006-02-13 Pat Rogers <rogers@adacore.com>
10939 * a-rttiev.adb, a-rttiev.ads: New files.
10941 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
10943 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
10944 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
10946 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
10948 2006-02-13 Robert Dewar <dewar@adacore.com>
10950 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
10951 sem_case.adb: Minor code reorganization (not Present should be No)
10953 2006-02-13 Geert Bosch <bosch@adacore.com>
10954 Gary Dismukes <dismukes@adacore.com>
10956 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
10957 0, since the lower bound of the actual string may be greater than one.
10960 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
10961 layout is requested.
10963 2006-02-13 Vincent Celier <celier@adacore.com>
10965 * back_end.adb (Scan_Compiler_Arguments): Check if
10966 Search_Directory_Present is True and, if it is, add the argument in
10967 the source search directory path.
10969 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
10970 Search_Directory_Present to True.
10972 2006-02-13 Joel Brobecker <brobecke@adacore.com>
10974 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
10975 volatile, to tell the compiler to preserve this variable at any level
10977 (Gen_Versions_Ada): Temporarily work around codegen bug.
10979 2006-02-13 Vincent Celier <celier@adacore.com>
10981 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
10982 gcc to link with option -shared-libgcc.
10983 (Gnatlink): Remove duplicate switches -shared-libgcc
10985 2006-02-13 Robert Dewar <dewar@adacore.com>
10987 * gnatvsn.ads (Current_Year): New constant, used to easily update
10988 copyright on all GNAT tools.
10990 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
10993 2006-02-13 Robert Dewar <dewar@adacore.com>
10995 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
10996 after hyphen (small aesthetic change useful for a range of numbers
10998 Suppress range checks for a couple of assignments which otherwise
10999 cause validity checks with validity checking turned on.
11001 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
11002 Improvement in error message for object.
11003 (Rep_Item_Too_Late): Remove '!' in warning message.
11005 2006-02-13 Robert Dewar <dewar@adacore.com>
11006 Eric Botcazou <ebotcazou@adacore.com>
11008 * err_vars.ads: Suppress range checks for a couple of assignments
11009 which otherwise cause validity checks with validity checking turned on.
11012 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
11013 Make message unconditional if it is a warning.
11014 (Error_Msg_NEL): Always output warning messages.
11015 Suppress range checks for a couple of assignments which otherwise
11016 cause validity checks with validity checking turned on.
11018 * errout.ads (Message Insertion Characters): Document that '!' is
11019 implied by '?' in error messages.
11021 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
11022 (Gnat1drv): Use a goto to end of main subprogram instead of
11023 Exit_Program (E_Success) so that finalization can occur normally.
11025 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
11027 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
11030 2006-02-13 Vincent Celier <celier@adacore.com>
11032 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
11033 Unchecked_Conversion functions.
11034 (Modification_Time): Use direct conversion of OS_Time to Calendar time
11035 when OpenVMS returns False.
11037 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
11038 a-dirval.adb (OpenVMS): New Boolean function
11040 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11041 Thomas Quinot <quinot@adacore.com>
11043 * checks.adb (Build_Discriminant_Checks): If the expression being
11044 checks is an aggregate retrieve the values of its discriminants to
11045 generate the check, rather than creating a temporary and a reference
11047 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
11048 (Install_Null_Excluding_Check): Ditto
11049 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
11050 not for the renamed object, so that the actual itype is attached in the
11053 2006-02-13 Robert Dewar <dewar@adacore.com>
11054 Vincent Celier <celier@adacore.com>
11056 * debug.adb: Eliminate numeric switches for binder/gnatmake
11058 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
11059 switches for the compiler.
11060 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
11061 (Scan_Make_Switches): When failing with an illegal switch, output an
11062 error message with the full switch.
11063 Eliminate numeric switches for binder/gnatmake
11065 * switch.ads, switch.adb (Bad_Switch): New procedure
11067 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
11068 Remove 0-9 as debug flag character possibilities
11069 -d is now controlling the primary stack size when its value is a
11070 positive. Also add checks against invalid values, and support for kb,
11071 mb. Ditto for -D switch.
11073 2006-02-13 Robert Dewar <dewar@adacore.com>
11074 Serguei Rybin <rybin@adacore.com>
11076 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
11077 save/restore routines.
11078 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11079 were not always properly handled previously.
11080 Since we are changing the tree format anyway, also get rid of the
11081 junk obsolete Immediate_Errors flag.
11082 (Tree_Read): Change the way of reading Tree_Version_String - now we
11083 read the version string from the tree even if its length is not the
11084 same as the length of the version string computed from Gnatvsn.
11085 (Search_Directory_Present): New Boolean flag for the compiler.
11086 Define Tree_Version_String as a dynamic string.
11087 (Default_Stack_Size): new variable, used to handle switch -d.
11090 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
11091 only for main unit.
11092 Add pragma Ada_2005 (synonym for Ada_05)
11093 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11094 were not always properly handled previously.
11096 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
11097 explicit Ada_95 to Ada_2005.
11099 2006-02-13 Javier Miranda <miranda@adacore.com>
11100 Robert Dewar <dewar@adacore.com>
11101 Ed Schonberg <schonberg@adacore.com>
11103 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
11104 against errors in the source program: a private types for which the
11105 corresponding full type declaration is missing and pragma CPP_Virtual
11107 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
11108 (Is_Known_Null): New flag
11109 (Has_Pragma_Pure): New flag
11110 (No_Return): Present in all entities, set only for procedures
11111 (Is_Limited_Type): A type whose ancestor is an interface is limited if
11112 explicitly declared limited.
11113 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
11114 entities. Only used for component marked Is_Tag. If present it stores
11115 the Offset_To_Top function used to provide this value in tagged types
11116 whose ancestor has discriminants.
11118 * exp_ch2.adb: Update status of new Is_Known_Null flag
11120 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
11122 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
11123 the categorization sense if Is_Pure was set by pragma Pure_Function.
11125 2006-02-13 Quentin Ochem <ochem@adacore.com>
11126 Olivier Hainque <hainque@adacore.com>
11128 * bindusg.adb: Updated documentation for -d and -D switches.
11130 * raise.h (__gnat_set_globals): added new parameter for
11131 Default_Stack_Size.
11133 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
11134 (__gnat_handle_vms_condition): Adjust context before raise.
11135 (__gnat_install_handler): Restore the global vector setup for GCC
11136 versions before 3.4, as the frame based circtuitry is not available
11138 (__gnat_set_globals): added a parameter default_stack_size
11139 (__gl_default_stack_size): new variable.
11141 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11143 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
11144 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
11145 does not exist in the Ada RM.
11146 (Compatible_Int_Bounds): Determine whether two integer range bounds
11147 are of equal length and have the same start and end values.
11148 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
11149 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
11150 aggregate when it is part of an object declaration.
11151 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
11152 constrains discriminants of its parent, add explicitly the discriminant
11153 constraints of the ancestor by retrieving them from the
11154 stored_constraint of the parent.
11156 2006-02-13 Robert Dewar <dewar@adacore.com>
11158 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
11159 attribute Mechanism_Code is applied to renamed subprogram, modify
11160 prefix to point to base subprogram.
11161 Max/Min attributes now violate Restriction No_Implicit_Conditionals
11163 * sinfo.ads: Document that Mechanism_Code cannot be applied to
11164 renamed subprograms so that the front-end must replace the prefix
11167 2006-02-13 Javier Miranda <miranda@adacore.com>
11168 Gary Dismukes <dismukes@adacore.com>
11170 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
11171 availability of RE_Interface_Tag.
11172 (Build_Initialization_Call): Fix wrong access to the discriminant value.
11173 (Freeze_Record_Type): Do not generate the tables associated with
11174 timed and conditional dispatching calls through synchronized
11175 interfaces if compiling under No_Dispatching_Calls restriction.
11176 When compiling for Ada 2005, for a nonabstract
11177 type with a null extension, call Make_Controlling_Function_Wrappers
11178 and insert the wrapper function declarations and bodies (the latter
11179 being appended as freeze actions).
11180 (Predefined_Primitive_Bodies): Do not generate the bodies of the
11181 predefined primitives associated with timed and conditional
11182 dispatching calls through synchronized interfaces if we are
11183 compiling under No_Dispatching_Calls.
11184 (Build_Init_Procedure): Use RTE_Available to check if a run-time
11185 service is available before generating a call.
11186 (Make_Controlling_Function_Wrappers): New procedure.
11187 (Expand_N_Full_Type_Declaration): Create a class-wide master for
11188 access-to-limited-interfaces because they can be used to reference
11189 tasks that implement such limited interface.
11190 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
11191 procedure spec and body of the Offset_To_Top function that is generated
11192 when the parent of a type with discriminants has secondary dispatch
11194 (Init_Secondary_Tags): Handle the case in which the parent of the type
11195 containing secondary dispatch tables has discriminants to generate the
11196 correct arguments to call Set_Offset_To_Top.
11197 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
11199 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
11200 Add Wide_[Wide_]Expanded_Name.
11201 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
11202 the same functionality of Get_Prim_Op_Address but applied to predefined
11203 primitive operations because the pointers to the predefined primitives
11204 are now saved in a separate table.
11205 (Parent_Size): Modified to get access to the separate table of primitive
11206 operations or the parent type.
11207 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
11208 functionality of Set_Prim_Op_Address but applied to predefined primitive
11210 (Set_Signature): New subprogram used to store the signature of a DT.
11211 (Displace): If the Offset_To_Top value is not static then call the
11212 function generated by the expander to get such value; otherwise use
11213 the value stored in the table of interfaces.
11214 (Offset_To_Top): The type of the actual has been changed to Address to
11215 give the correct support to tagged types with discriminants. In this
11216 case this value is stored just immediately after the tag field.
11217 (Set_Offset_To_Top): Two new formals have been added to indicate if the
11218 offset_to_top value is static and hence pass this value to the run-time
11219 to store it in the table of interfaces, or else if this value is dynamic
11220 and then pass to the run-time the address of a function that is
11221 generated by the expander to provide this value for each object of the
11224 * rtsfind.ads (Default_Prin_Op_Count): Removed.
11225 (Default_Prim_Op_Count): New entity
11226 (Get_Predefined_Prim_Op_Address): New entity
11227 (Set_Predefined_Prim_Op_Address): New entity
11228 (RE_Set_Signature): New entity
11230 2006-02-13 Thomas Quinot <quinot@adacore.com>
11231 Ed Schonberg <schonberg@adacore.com>
11233 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
11234 Make_Adjust_Call done for a newly-allocated object.
11236 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
11237 in a subprogram are wrapped in a cleanup block, indicate that the
11238 subprogram contains an inner block with an exception handler.
11239 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
11240 Adjust call is for a newly-allocated object. In that case we must not
11241 assume that the finalization list chain pointers are correct (since they
11242 come from a bit-for-bit copy of the original object's pointers) so if
11243 the attach level would otherwise be zero (no change), we set it to 4
11244 instead to cause the pointers to be reset to null.
11246 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
11247 reset chain pointers to null.
11249 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11251 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
11252 string, and the context requires a loop for the assignment (e.g.
11253 because the left-hand side is packed), generate a unique name for the
11254 temporary that holds the string, to prevent spurious name clashes.
11256 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11257 Javier Miranda <miranda@adacore.com>
11258 Robert Dewar <dewar@adacore.com>
11259 Gary Dismukes <dismukes@adacore.com>
11261 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
11262 return unconstrained arrays.
11264 (Expand_Call): An indirect call through an access parameter of a
11265 protected operation is not a protected call.
11266 Add circuit to raise CE in Ada 2005 mode following call
11267 to Raise_Exception.
11268 (Register_DT_Entry): Do nothing if
11269 the run-time does not give support to abstract interfaces.
11270 (Freeze_Subprogram): In case of dispatching operations, do not generate
11271 code to register the operation in the dispatch table if the source
11272 is compiled with No_Dispatching_Calls.
11273 (Register_Predefined_DT_Entry): Generate code that calls the new
11274 run-time subprogram Set_Predefined_Prim_Op_Address instead of
11275 Set_Prim_Op_Address.
11277 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
11278 on array assignments if the right-hand side is a function call that has
11279 been inlined. Check is performed on the assignment in the block.
11280 (Process_Bounds): If bounds and range are overloaded, apply preference
11281 rule for root operations to disambiguate, and diagnose true ambiguity.
11282 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
11283 a tag-indeterminate right-hand side even when Expander_Active is True.
11284 Needed to ensure that dispatching calls to T'Input are allowed and
11285 get the tag of the target class-wide object.
11287 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
11288 an inherited primitive operation that already overrides several
11289 abstract interface primitives. For transitivity, the new entity must
11290 also override all the abstract interface primitives covered by the
11291 inherited overriden primitive.
11292 Emit warning if new entity differs from homograph in same scope only in
11293 that one has an access parameter and the other one has a parameter of
11294 a general access type with the same designated type, at the same
11295 position in the signature.
11296 (Make_Inequality_Operator): Use source locations of parameters and
11297 subtype marks from corresponding equality operator when creating the
11298 tree structure for the implicit declaration of "/=". This does not
11299 change anything in behaviour except that the decoration of the
11300 components of the subtree created for "/=" allows ASIS to get the
11301 string images of the corresponding identifiers.
11302 (Analyze_Return_Statement): Remove '!' in warning message.
11303 (Check_Statement_Sequence): Likewise.
11304 (Analyze_Subprogram_Body): For an access parameter whose designated type
11305 is an incomplete type imported through a limited_with clause, use the
11306 type of the corresponding formal in the body.
11307 (Check_Returns): Implicit return in No_Return procedure now raises
11308 Program_Error with a compile time warning, instead of beging illegal.
11309 (Has_Single_Return): Function returning unconstrained type cannot be
11310 inlined if expression in unique return statement is not an identifier.
11311 (Build_Body_To_Inline): It is possible to inline a function call that
11312 returns an unconstrained type if all return statements in the function
11313 return the same local variable. Subsidiary procedure Has_Single_Return
11314 verifies that the body conforms to this restriction.
11316 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
11317 same type, and one of them is of an anonymous access type, convert
11318 the other operand to it, so that this is a valid binary operation for
11320 (Resolve_Type_Conversion): Handle subtypes of protected types and
11321 task types when accessing to the corresponding record type.
11322 (Resolve_Allocator): Add '\' in 2-line warning message.
11323 Remove '!' in warning message.
11324 (Resolve_Call): Add '\' in 2-line warning message.
11325 (Valid_Conversion): Likewise.
11326 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
11327 resulting type may be an access type with an implicit dereference.
11328 Obtain the proper component from the designated type.
11329 (Make_Call_Into_Operator): Handle properly a call to predefined equality
11330 given by an expanded name with prefix Standard, when the operands are
11331 of an anonymous access type.
11332 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
11333 Explicit_Dereference and Resolve_Selected_Component, to verify that the
11334 prefix of the expression is not of an incomplete type. Allows full
11335 diagnoses of all semantic errors.
11336 (Resolve_Actuals): If the actual is an allocator whose directly
11337 designated type is a class-wide interface we build an anonymous
11338 access type to use it as the type of the allocator. Later, when
11339 the subprogram call is expanded, if the interface has a secondary
11340 dispatch table the expander will add a type conversion to force
11341 the displacement of the pointer.
11342 (Resolve_Call): If a function that returns an unconstrained type is
11343 marked Inlined_Always and inlined, the call will be inlined and does
11344 not require the creation of a transient scope.
11345 (Check_Direct_Boolean_Op): Removed
11346 (Resolve_Comparison_Op): Remove call to above
11347 (Resolve_Equality_Op): Remove call to above
11348 (Resolve_Logical_Op): Inline above, since this is only call.
11349 (Valid_Conversion): Handle properly conversions between arrays of
11350 convertible anonymous access types.
11353 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
11354 the literal in an unchecked conversion, because GCC 4.x needs a static
11355 value for a string bound.
11357 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11358 Hristian Kirtchev <kirtchev@adacore.com>
11360 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
11361 components of the corresponding record, take into account component
11362 definitions that are access definitions.
11363 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
11364 procedure is not considered a dispatching call and will be expanded
11367 2006-02-13 Javier Miranda <miranda@adacore.com>
11369 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
11370 controlling argument of the dispatching call is an abstract interface
11371 class-wide type then we use it directly.
11372 Check No_Dispatching_Calls restriction.
11373 (Default_Prim_Op_Position): Remove the code that looks for the last
11374 entity in the list of aliased subprograms. This code was wrong in
11376 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
11377 when the source is compiled with the No_Dispatching_Calls restriction.
11378 (Init_Predefined_Interface_Primitives): No need to inherit primitives
11379 if we are compiling with restriction No_Dispatching_Calls.
11380 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
11381 subprograms if we are compiling under No_Dispatching_Calls restriction.
11382 (Make_DT): Generate a dispatch table with a single dummy entry if
11383 we are compiling with the No_Dispatching_Calls restriction. In
11384 addition, in this case we don't generate code that calls to the
11385 following run-time subprograms: Set_Type_Kind, Inherit_DT.
11386 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
11387 of this subprogram if compiling with the No_Dispatching_Calls
11389 (Expand_Type_Conversion): Instead of using the actual parameter,
11390 the argument passed as parameter to the conversion function was
11391 erroneously referenced by the expander.
11392 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
11393 Set_Predefined_Primitive_Op_Address and Set_Signature.
11394 (Expand_Dispatching_Call): Generate call to
11395 Get_Predefined_Prim_Op_Address for predefined primitives.
11396 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
11397 predefined primitives.
11398 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
11399 primitives we reserve one dummy entry to ensure that the tag does not
11400 point to some memory that is associated with some other object. In
11401 addition, remove all the old code that generated the assignments
11402 associated with the signature of the dispatch table and replace them
11403 by a call to the new subprogram Set_Signature.
11404 (Set_All_DT_Position): Change the algorithm because now we have a
11405 separate dispatch table associated with predefined primitive operations.
11406 (Expand_Interface_Conversion): In case of non-static offset_to_top
11407 add explicit dereference to get access to the object after the call
11408 to displace the pointer to the object.
11409 (Expand_Interface_Thunk): Modify the generation of the actual used
11410 in the calls to the run-time function Offset_To_Top to fulfil its
11412 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
11414 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11416 * exp_dist.adb (Copy_Specification): For access parameters, copy
11417 Null_Exclusion flag, which will have been set for stream subprograms
11420 2006-02-13 Pascal Obry <obry@adacore.com>
11422 * expect.c (__gnat_expect_portable_execvp): New implementation. The
11423 previous implementation was using the C runtime spawnve routine but
11424 the corresponding wait was using directly the Win32 API. This was
11425 causing some times a lock when waiting for an event using
11426 WaitForSingleObject in __gnat_waitpid. This new implementation uses
11427 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
11428 API fixes this problem.
11430 2006-02-13 Robert Dewar <dewar@adacore.com>
11432 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
11435 2006-02-13 Thomas Quinot <quinot@adacore.com>
11437 * exp_pakd.ads: Fix typos in comments.
11439 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
11440 array reference that is an explicit dereference, mark the converted
11441 (packed) array reference as analyzed to prevent a forthcoming
11442 reanalysis from resetting its type to the original (non-packed) array
11445 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11446 Javier Miranda <miranda@adacore.com>
11447 Eric Botcazou <ebotcazou@adacore.com>
11449 * exp_util.ads, exp_util.adb (Find_Prim_Op,
11450 Is_Predefined_Primitive_Operation): When
11451 searching for the predefined equality operator, verify that operands
11452 have the same type.
11453 (Is_Predefined_Dispatching_Operation): Remove the code that looks
11454 for the last entity in the list of aliased subprograms. This code
11455 was wrong in case of renamings.
11456 (Set_Renamed_Subprogram): New procedure
11457 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
11458 Exp_Type constant computed when entering this subprogram.
11459 (Known_Null): New function
11460 (OK_To_Do_Constant_Replacement): New function
11461 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
11462 (Side_Effect_Free): An attribute reference 'Input is not free of
11463 side effect, unlike other attributes that are functions. (from code
11465 (Remove_Side_Effects): Expressions that involve packed arrays or records
11466 are copied at the point of reference, and therefore must be marked as
11467 renamings of objects.
11468 (Is_Predefined_Dispatching_Operation): Return false if the operation is
11469 not a dispatching operation.
11472 (Remove_Side_Effects): Lift enclosing type conversion nodes for
11473 elementary types in all cases.
11475 2006-02-13 Javier Miranda <miranda@adacore.com>
11477 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
11478 task types when accessing to the corresponding record type.
11479 Remove '!' in warning message.
11481 2006-02-13 Olivier Hainque <hainque@adacore.com>
11483 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
11484 to avoid useless and space inefficient overalignments on targets where
11485 Max_Alignment is larger than 16.
11487 2006-02-13 Pascal Obry <obry@adacore.com>
11489 * g-catiio.adb (Sec_Number): New type used to compute the number of
11490 seconds since 1-1-1970.
11491 (Image) [Natural]: The parameter was an Integer, as we can't deal with
11492 negative numbers (years, months...) it is better to have a Natural here.
11494 (Image) [Number]: Change parameter from Long_Integer to Number.
11495 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
11496 overflow for dates past year 2038.
11498 2006-02-13 Matthew Heaney <heaney@adacore.com>
11500 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
11503 2006-02-13 Arnaud Charlet <charlet@adacore.com>
11505 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
11507 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
11508 finalization can occur normally.
11510 2006-02-13 Vincent Celier <celier@adacore.com>
11512 * gnatcmd.adb (Rules_Switches): New table
11513 (Add_To_Rules_Switches): New procedure
11514 (GNATCmd): For command CHECK, put all options following "-rules" in the
11515 Rules_Switches table. Append these -rules switches after the -cargs
11518 2006-02-13 Robert Dewar <dewar@adacore.com>
11520 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
11521 These two cases were generating incorrect output, and if this unit
11522 was built with checks on, generated a discriminant mismatch constraint
11525 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11526 Robert Dewar <dewar@adacore.com>
11528 * lib-xref.adb (Get_Type_Reference): For a private type whose full
11529 view is an array type, indicate the component type as well, for
11530 navigation purposes.
11531 (Generate_Reference): Don't consider array ref on LHS to be a case
11532 of violating pragma Unreferenced.
11533 Do not give Ada 2005 warning except on real reference.
11535 2006-02-13 Vincent Celier <celier@adacore.com>
11537 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
11538 main source, add switch -mdebug-main=_ada_ so that the executable can
11539 be debugged by the standard VMS debugger.
11540 (Gnatmake): Set No_Main_Subprogram to True when there is no main
11541 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
11542 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
11543 of the last source, as the binding and linking phases are never
11545 Set all executable obsolete when rebuilding a library.
11547 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
11550 2006-02-13 Javier Miranda <miranda@adacore.com>
11553 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
11554 code to improve the error message reported when the program has
11555 declarations of abstract interface types and it is not compiled with
11556 the -gnat05 switch.
11557 (P_Access_Definition): Reorganize the code to improve the error
11558 message reported when the new Ada 2005 syntax for anonymous
11559 access types is used and the program is not compiled with the
11562 2006-02-13 Robert Dewar <dewar@adacore.com>
11564 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
11565 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
11568 2006-02-13 Javier Miranda <miranda@adacore.com>
11570 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
11571 against source containing syntax errors.
11573 2006-02-13 Vincent Celier <celier@adacore.com>
11575 * prj.adb (Reset): Initialize the first element of table Namings with
11576 the standard naming data.
11578 2006-02-13 Vincent Celier <celier@adacore.com>
11580 * prj.ads (Error_Warning): New enumeration type
11582 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
11583 unknown, use the location of the project to report the error.
11584 (When_No_Sources): New global variable
11585 (Report_No_Ada_Sources): New procedure
11586 (Check): New parameter When_No_Sources. Set value of global variable
11588 (Find_Sources): Call Report_No_Ada_Sources when appropriate
11589 (Get_Sources_From_File): Ditto
11590 (Warn_If_Not_Sources): Better warning messages indicating the unit name
11593 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
11594 Call Prj.Proc.Process with parameter When_No_Sources.
11596 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
11597 Call Recursive_Check with parameter When_No_Sources.
11598 (Recursive_Check): New parameter When_No_Sources. Call itself and
11599 Prj.Nmsc.Check with parameter When_No_Sources.
11600 (Process): New parameter When_No_Sources. Call Check with parameter
11602 (Copy_Package_Declarations): New procedure to copy renamed parameters
11603 and setting the location of the declared attributes to the location
11604 of the renamed package.
11605 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
11608 2006-02-13 Vincent Celier <celier@adacore.com>
11610 * prj-makr.adb (Make): Preserve the comments from the original project
11612 When removing nodes (attributes Source_Dirs, Source_Files,
11613 Source_List_File and package Naming), save the comments and attach the
11614 saved comments to the newly created nodes.
11615 Do not add a with clause for the naming package if one already exists.
11617 2006-02-13 Javier Miranda <miranda@adacore.com>
11618 Gary Dismukes <dismukes@adacore.com>
11619 Robert Dewar <dewar@adacore.com>
11621 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
11623 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
11624 aliased entities to look for the overriden abstract interface
11626 (Is_Interface_Subprogram): Complete documentation.
11627 (Check_Dispatching_Operation): Do not generate code to register the
11628 operation in the dispatch table if the source is compiled with
11629 restriction No_Dispatching_Calls.
11630 (Override_Dispatching_Operation): Check for illegal attempt to override
11631 No_Return procedure with procedure that is not No_Return
11632 (Check_Dispatching_Call): Suppress the check for an abstract operation
11633 when the original node of an actual is a tag-indeterminate attribute
11634 call, since the attribute, which must be 'Input, can never be abstract.
11635 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
11636 call to the Input attribute (even when rewritten).
11637 (Propagate_Tag): Augment comment to indicate the possibility of a call
11638 to an Input attribute.
11640 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
11641 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
11643 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
11644 No_Wide_Characters is no longer partition-wide
11645 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
11648 2006-02-13 Douglas Rupp <rupp@adacore.com>
11650 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
11652 2006-02-13 Javier Miranda <miranda@adacore.com>
11654 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
11655 handles default-initialized components to keep separate the management
11656 of this feature but also avoid the unrequired resolution and
11657 expansion of components that do not have partially initialized
11659 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
11660 (Check_Bounds): Likewise.
11661 (Check_Length): Likewise.
11663 2006-02-13 Javier Miranda <miranda@adacore.com>
11664 Ed Schonberg <schonberg@adacore.com>
11666 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
11667 abstract interface type call analyze_and_resolve to expand the type
11668 conversion into the corresponding displacement of the
11669 reference to the base of the object.
11670 (Eval_Attribute, case Width): For systems where IEEE extended precision
11671 is supported, the maximum exponent occupies 4 decimal digits.
11672 (Accessibility_Message): Add '\' in 2-line warning message.
11673 (Resolve_Attribute): Likewise.
11674 (case Attribute_Access): Significantly revise checks
11675 for illegal access-to-subprogram Access attributes to properly enforce
11676 the rules of 3.10.2(32/2).
11677 Diagnose use of current instance with an illegal attribute.
11679 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
11681 (Enclosing_Generic_Unit): New function to return a node's innermost
11682 enclosing generic declaration node.
11683 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
11684 (Type_Access_Level): The accessibility level of anonymous acccess types
11685 associated with discriminants is that of the current instance of the
11686 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
11687 (Compile_Time_Constraint_Error): Handle case of conditional expression.
11688 (Kill_Current_Values_For_Entity): New function
11689 (Enter_Name): Change formal type to Entity_Id
11691 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
11692 Ed Schonberg <schonberg@adacore.com>
11693 Gary Dismukes <dismukes@adacore.com>
11695 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
11696 Analyze_Compilation_Unit.
11697 Detect and warn on redundant with clauses detected in a package spec
11698 and/or body when -gnatwr is used.
11699 (Analyze_Context): Analyze config pragmas before other items
11700 (Install_Context_Items): Don't analyze config pragmas here
11701 (Install_Limited_Withed_Unit): Set limited entity of package in
11702 with_clause so that cross-reference information or warning messages on
11703 unused packages can be properly generated
11704 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
11705 has Error_Posted set. Prevent infinite loops in illegal programs.
11706 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
11707 to the point of the error test requiring the current unit to be private.
11708 This ensures that private with clauses are not exempted from the basic
11709 checking for being a descendant of the same library unit parent as a
11710 withed private descendant unit.
11711 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
11712 handle private with clauses properly, as well as to account for cases
11713 where the withed unit is a public descendant of a private ancestor
11714 (in which case the current unit must be a descendant of the private
11715 ancestor's parent). The spec comments were updated accordingly. Also,
11716 the old error message in this subprogram was replaced with error
11717 messages that mirror the errors tested and reported by
11718 Check_Private_Child_Unit.
11719 Parameter and variable names improved for readability.
11720 (Install_Limited_Context_Clauses): Remove test for a withed unit being
11721 private as the precondition for calling
11722 Check_Private_Limited_Withed_Unit since that subprogram has been
11723 revised to test public units as well as private units.
11725 2006-02-13 Thomas Quinot <quinot@adacore.com>
11726 Robert Dewar <dewar@adacore.com>
11727 Ed Schonberg <schonberg@adacore.com>
11728 Javier Miranda <miranda@adacore.com>
11730 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
11731 that Scope_Stack.First = 1.
11732 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11733 were not always properly handled previously.
11734 (Formal_Entity): Complete rewrite, to handle properly some complex case
11735 with multiple levels of parametrization by formal packages.
11736 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
11737 to the corresponding derived type declaration for proper semantics.
11739 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
11740 (Check_Component): Enforce restriction on components of
11741 unchecked_unions: a component in a variant cannot contain tasks or
11743 (Unchecked_Union): Allow nested variants and multiple discriminants, to
11745 Add pragma Ada_2005 (synonym for Ada_05)
11746 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
11747 were not always properly handled previously.
11748 Document that pragma Propagate_Exceptions has no effect
11749 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
11750 (Set_Convention_From_Pragma): Check that if a convention is
11751 specified for a dispatching operation, then it must be
11752 consistent with the existing convention for the operation.
11753 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
11754 longer required to specify an vtable-ptr component in the record. For
11755 compatibility reasons we leave the support for the previous definition.
11756 (Analyze_Pragma, case No_Return): Allow multiple arguments
11758 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
11759 non-overrideen inherited operation with a controlling result as
11760 illegal only its implicit declaration comes from the derived type
11761 declaration of its result's type.
11762 (Check_Possible_Deferred_Completion): Relocate the object definition
11763 node of the subtype indication of a deferred constant completion rather
11764 than directly analyzing it. The analysis of the generated subtype will
11765 correctly decorate the GNAT tree.
11766 (Record_Type_Declaration): Check whether this is a declaration for a
11767 limited derived record before analyzing components.
11768 (Analyze_Component_Declaration): Diagnose record types not explicitly
11769 declared limited when a component has a limited type.
11770 (Build_Derived_Record_Type): Code reorganization to check if some of
11771 the inherited subprograms of a tagged type cover interface primitives.
11772 This check was missing in case of a full-type associated with a private
11774 (Constant_Redeclaration): Check that the subtypes of the partial and the
11775 full view of a constrained deferred constant statically match.
11776 (Mentions_T): A reference to the current type in an anonymous access
11777 component declaration must be an entity name.
11778 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
11779 class_wide type to refer to full type, not to the incomplete one.
11780 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
11781 available. Required to give support to the certified run-time.
11782 (Analyze_Component_Declaration): In case of anonymous access components
11783 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
11784 (Process_Discriminants): For an access discriminant, use the
11785 discriminant specification as the associated_node_for_itype, to
11786 simplify accessibility checks.
11788 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11789 Javier Miranda <miranda@adacore.com>
11791 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
11792 abstract interpretations on an operator, remove interpretations that
11793 yield Address or a type derived from it, if one of the operands is an
11795 (Try_Object_Operation.Try_Primitive_Operation,
11796 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
11797 location when creating the new reference to a primitive or class-wide
11798 operation as a part of rewriting a subprogram call.
11799 (Try_Primitive_Operations): If context requires a function, collect all
11800 interpretations after the first match, because there may be primitive
11801 operations of the same type with the same profile and different return
11802 types. From code reading.
11803 (Try_Primitive_Operation): Use the node kind to choose the proper
11804 operation when a function and a procedure have the same parameter
11806 (Complete_Object_Operation): If formal is an access parameter and prefix
11807 is an object, rewrite as an Access reference, to match signature of
11808 primitive operation.
11809 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
11810 by an expanded name with prefix Standard, when the operands are of an
11811 anonymous access type.
11812 (Remove_Abstract_Operations): If the operation is abstract because it is
11813 inherited by a user-defined type derived from Address, remove it as
11814 well from the set of candidate interpretations of an overloaded node.
11815 (Analyze_Membership_Op): Membership test not applicable to cpp-class
11818 2006-02-13 Bob Duff <duff@adacore.com>
11820 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
11821 redundant use clauses.
11822 In particular, if the scope of two use clauses overlaps, but one is not
11823 entirely included in the other, we should not warn. This can happen
11824 with nested packages.
11825 (Analyze_Subprogram_Renaming): Protect the compiler against previously
11826 reported errors. The bug was reported when the compiler was built
11827 with assertions enabled.
11828 (Find_Type): If the node is a 'Class reference and the prefix is a
11829 synchronized type without a corresponding record, return the type
11832 2006-02-13 Javier Miranda <miranda@adacore.com>
11834 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
11835 if this is the full-declaration associated with a private declaration
11836 that implement interfaces, then the private type declaration must be
11838 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
11839 as aliased. The use of the 'access attribute is not available for such
11840 object (for this purpose the object should be explicitly marked as
11841 aliased, but being an anonymous type this is not possible).
11843 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11844 Robert Dewar <dewar@adacore.com>
11846 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
11847 compilation unit is an elaboration scope.
11848 (Add_Task_Proc): Add '\' in 2-line warning message.
11849 (Activate_All_Desirable): Deal with case of unit with'ed by parent
11851 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11852 Javier Miranda <miranda@adacore.com>
11854 * sem_type.adb (Write_Overloads): Improve display of candidate
11856 (Add_One_Interp): Do not add to the list of interpretations aliased
11857 entities corresponding with an abstract interface type that is an
11858 immediate ancestor of a tagged type; otherwise we have a dummy
11859 conflict between this entity and the aliased entity.
11860 (Disambiguate): The predefined equality on universal_access is not
11861 usable if there is a user-defined equality with the proper signature,
11862 declared in the same declarative part as the designated type.
11863 (Find_Unique_Type): The universal_access equality operator defined under
11864 AI-230 does not cover pool specific access types.
11865 (Covers): If one of the types is a generic actual subtype, check whether
11866 it matches the partial view of the other type.
11868 2006-02-13 Thomas Quinot <quinot@adacore.com>
11870 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
11871 line. This is necessary to allow In_Extended_Main_Unit to provide
11872 correct results for itypes while writing out expanded source.
11873 (Close_File): No need to update the source_index_table here since it's
11874 now done for each line.
11876 2006-02-13 Ed Schonberg <schonberg@adacore.com>
11877 Robert Dewar <dewar@adacore.com>
11879 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
11880 preserve the source unit where the itype is declared, and prevent a
11882 (Note_Implicit_Run_Time_Call): New procedure
11883 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
11886 * sprint.ads: Document use of $ for implicit run time routine call
11888 2006-02-13 Quentin Ochem <ochem@adacore.com>
11890 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
11893 2006-02-13 Bob Duff <duff@adacore.com>
11895 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
11896 Scan_Unsigned, so we do not scan leading blanks and sign twice.
11897 Integer'Value("- 5") and Integer'Value("-+5") now correctly
11898 raise Constraint_Error.
11900 * s-vallli.adb (Scan_Long_Long_Integer): Call
11901 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
11902 do not scan leading blanks and sign twice.
11903 Integer'Value("- 5") and Integer'Value("-+5") now correctly
11904 raise Constraint_Error.
11906 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
11907 Scan_Long_Long_Unsigned): Split out most of the processing from
11908 Scan_Long_Long_Unsigned out into
11909 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
11910 This prevents scanning leading blanks and sign twice.
11911 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
11914 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
11915 out most of the processing from Scan_Unsigned out into
11916 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
11917 This prevents scanning leading blanks and sign twice.
11919 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
11920 use with Modular'Value attribute.
11921 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
11924 2006-02-13 Robert Dewar <dewar@adacore.com>
11926 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
11928 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
11930 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
11931 (PPC VxWorks): Likewise.
11932 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
11933 (forced_callee): Make non-inlinable and non-pure.
11934 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
11936 2006-02-13 Arnaud Charlet <charlet@adacore.com>
11937 Ben Brosgol <brosgol@adacore.com>
11938 Robert Dewar <dewar@adacore.com>
11940 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
11942 Document that gnatbind -M option is for cross environments only.
11943 Added description of using gnatmem to trace gnat rtl allocs and deallocs
11944 Add note on use of $ to label implicit run time calls
11945 Add documentation for -gnatyI (check mode IN)
11946 Updated chapter on compatibility with HP Ada
11947 VMS-oriented edits.
11948 Ran spell and corrected errors
11949 Add documentation for gnatbind -d and rework documentation of -D
11951 Add subprogram/data elimination section.
11952 Minor editing of annex A.
11953 Add section for gnatcheck.
11954 Add documentation for restriction No_Dispatching_Calls
11955 Add documentation for pragma Ada_2005
11956 Remove mention of obsolete pragma Propagate_Exceptions
11957 Document that pragma Unreferenced can appear after DO in ACCEPT
11958 Clarify Pure_Function for library level units
11959 Mention Max/Min in connection with No_Implicit_Conditionals
11960 No_Wide_Characters restriction is no longer partition-wide
11961 Add a nice example for Universal_Literal_String attribute
11962 Document that pragma No_Return can take multiple arguments
11964 * ug_words: Added entry for gnatcheck
11966 * g-ctrl_c.ads (Install_Handler): Enhance comments
11968 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
11970 * g-trasym.ads: Add documentation on how to do off line symbolic
11971 traceback computation.
11973 * s-fatgen.adb: Add comments for Unaligned_Valid
11975 * stand.ads: Fix typo in comment
11977 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11979 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
11981 2006-02-06 Roger Sayle <roger@eyesopen.com>
11983 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
11985 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11988 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
11989 implementation that calls __main.
11991 2006-01-25 Peter O'Gorman <peter@pogma.com>
11994 * Makefile.in (GCC_LINK): Remove quotes.
11995 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
11998 (powerpc-darwin): Pass -shared-libgcc when building shared library.
12000 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12003 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
12005 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12007 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
12009 2005-12-12 Arnaud Charlet <charlet@adacore.com>
12011 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
12014 2005-12-12 Arnaud Charlet <charlet@adacore.com>
12016 * Make-lang.in: Update dependencies
12018 2005-12-12 Arnaud Charlet <charlet@adacore.com>
12020 * Make-lang.in: Add rule for ada/exp_sel.o
12022 2005-12-12 Arnaud Charlet <charlet@adacore.com>
12024 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
12026 2005-12-09 Arnaud Charlet <charlet@adacore.com>
12028 * gnatvsn.ads (Library_Version): Bump to version 4.2
12029 (ASIS_Version_Number): Bumped.
12031 2005-12-09 Doug Rupp <rupp@adacore.com>
12033 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
12034 Ada bind file prefix on VMS from b$ to b__.
12035 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
12038 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
12039 Targparm.OpenVMS_On_Target.
12040 (Object_Suffix): Initialize with target object suffix.
12041 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
12043 * butil.adb: Change some Hostparm.OpenVMS checks to
12044 Targparm.OpenVMS_On_Target.
12046 * clean.adb: Change some Hostparm.OpenVMS checks to
12047 Targparm.OpenVMS_On_Target.
12048 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
12049 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
12050 Ada bind file prefix on VMS from b$ to b__.
12052 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
12053 --GCC so that Get_Target_Parameters can find system.ads.
12054 (Gnatlink): Call Get_Target_Parameters in mainline.
12055 Initialize standard packages for Targparm.
12056 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
12057 (Process_Args): Also Check for object files with target object
12059 (Make_Binder_File_Names): Create with target object extension.
12060 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
12063 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
12064 Targparm.OpenVMS_On_Target.
12065 ({declaration},Build_Library,Check_Library): Change Ada bind file
12066 prefix on VMS from b$ to b__.
12068 * osint-b.adb: Change some Hostparm.OpenVMS checks to
12069 Targparm.OpenVMS_On_Target.
12070 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
12073 * targext.c: New file.
12075 * Makefile.in: add support for vxworks653 builds
12076 (../../vxaddr2line): gnatlink with targext.o.
12077 (TOOLS_LIBS): Move targext.o to precede libgnat.
12078 (init.o, initialize.o): Minor clean up in dependencies.
12079 (GNATLINK_OBJS): Add targparm.o, snames.o
12080 Add rules fo building targext.o and linking it explicitly with all
12082 Also add targext.o to gnatlib.
12084 * Make-lang.in: Add rules for building targext.o and linking it in
12085 with gnat1 and gnatbind.
12086 Add entry for exp_sel.o.
12088 * osint.adb Change some Hostparm.OpenVMS checks to
12089 Targparm.OpenVMS_On_Target.
12090 (Object_File_Name): Use target object suffix.
12092 * osint.ads (Object_Suffix): Remove, no longer used.
12093 (Target_Object_Suffix): Initialize with target object suffix.
12095 * rident.ads: Add special exception to license.
12097 * targparm.adb (Get_Target_Parameters): Set the value of
12098 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
12100 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
12102 * targparm.ads: Add special exception to license.
12104 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
12106 (Copy_File): Make sure from file is closed if error on to file
12107 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
12109 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
12110 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
12112 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
12113 target object suffix.
12115 2005-12-09 Jose Ruiz <ruiz@adacore.com>
12116 Quentin Ochem <ochem@adacore.com>
12117 Florian Villoing <villoing@adacore.com>
12119 * a-taster.ads, a-taster.adb: New files.
12121 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
12122 link to the version that does nothing. This way the task termination
12123 routine is not executed twice for the environment task when finishing
12124 because of an unhandled exception.
12126 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
12127 handler because of an unhandled exception.
12129 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
12130 System.Tasking.Utilities instead of that in System.Tasking.Stages.
12132 * s-finimp.adb (initialization code): Modify the soft link for the
12133 finalization of the global list instead of Adafinal.
12135 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
12136 non-tasking version of the soft link for task termination. We do
12137 nothing since if we are using the non-tasking version it
12138 means that the task termination functionality is not used.
12139 (Null_Finalize_Global_List): Add this null version for the procedure
12140 in charge of finalizing the global list for controlled objects.
12141 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
12142 instead for handling run-time termination in a more flexible way.
12143 (Adafinal_NT): This new procedure will take care of finalizing the
12144 global list for controlled objects if needed, but no tasking
12147 * s-tarest.adb (Task_Lock): Do not try to lock again the
12148 Global_Task_Lock if we already own it. Otherwise, we get blocked in
12149 some run-time operations.
12150 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
12151 until all nested locks have been released.
12152 (Task_Wrapper): Call the fall-back task termination handler. It
12153 applies to all tasks but the environment task.
12154 (Finalize_Global_Tasks): Add the call for the task termination
12155 procedure for the environment task.
12156 (Task_Wrapper): suppress warnings around declaration of
12157 Secondary_Stack_Address.
12159 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
12160 moved to the Common_ATCB record.
12161 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
12162 Common_ATCB record.
12163 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
12164 Common_ATCB record.
12166 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
12167 Fall_Back_Handler, and Specific_Handler.
12169 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
12170 defined in Ada.Task_Termination, to avoid circular dependencies.
12171 (Termination_Handler): Redefine this type here, alredy defined in
12172 Ada.Task_Termination, for avoiding circular dependencies.
12173 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
12174 for storing task termination handlers. In addition,
12175 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
12176 Common_ATCB because it is used by both the regular and the restricted
12178 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
12179 Common_ATCB because it is used by both the regular and the restricted
12181 (Common_ATCB): Added a dynamic task analyzer field.
12183 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
12184 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
12185 (Task_Wrapper): Call the task termination handler. It applies to all
12186 tasks but the environment task.
12187 (Finalize_Global_Tasks): Call the task termination procedure for the
12188 environment task. The call to Finalize_Global_List is now performed
12189 using the soft links mechanism.
12190 (Task_Wrapper): added dynamic stack analysis.
12192 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
12193 potentially blocking operations has been moved from
12194 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
12195 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
12196 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
12197 this run-time check.
12199 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
12200 of task termination procedure.
12201 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
12202 link for the task termination procedure.
12204 * bindusg.adb: (Bindusg): Added documentation for -u option.
12206 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
12207 (Get_Main_C): Add handling of dynamic stack analysis.
12208 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
12210 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
12211 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
12212 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
12214 * opt.ads: Added flags used by dynamic stack measurement.
12215 (Max_Line_Length): Remove (not used anymore)
12217 * s-io.ads, s-io.adb (Standard_Error): new subprogram
12218 (Standart_Output): new subprogram
12219 (Set_Output): new subprogram
12220 (Put): now uses the value of Current_Out to know if the output has to be
12221 send to stderr or stdout.
12223 * s-stausa.ads: Complete implementation.
12225 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
12227 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
12228 list of Ada 05 files.
12229 (GNAT Library Units): Add AltiVec files.
12231 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
12232 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
12233 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
12235 2005-12-09 Nicolas Setton <setton@adacore.com>
12237 * adaint.c (__gnat_locate_regular_file): Return immediately if
12238 file_name is empty.
12240 2005-12-09 Javier Miranda <miranda@adacore.com>
12241 Hristian Kirtchev <kirtchev@adacore.com>
12243 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
12244 to the specification because the frontend generates code that uses this
12246 (Set_Interface_Table): Add missing assertion.
12247 Update documentation describing the run-time structure.
12248 (Displace): New subprogram that displaces the pointer to the object
12249 to reference one of its secondary dispatch tables.
12250 (IW_Membership): Modified to use the new table of interfaces.
12251 (Inherit_TSD): Modified to use the new table of interfaces.
12252 (Register_Interface_Tag): Use the additional formal to fill the
12253 contents of the new table of interfaces.
12254 (Set_Interface_Table): New subprogram that stores in the TSD the
12255 pointer to the table of interfaces.
12256 (Set_Offset_To_Top): Use the additional formal to save copy of
12257 the offset value in the table of interfaces.
12258 Update structure of GNAT Primary and Secondary dispatch table diagram.
12259 Add comment section on GNAT dispatch table prologue.
12260 (Offset_To_Signature): Update the constant value of the Signature field.
12261 (Dispatch_Table): Update comment on hidden fields in the prologue.
12262 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
12263 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
12264 the type of formal parameter T to Tag, introduce additional assertions.
12265 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
12267 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
12269 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
12270 in all the calls to Expand_Interface_Thunk. Instead of referencing the
12271 record component containing the tag of the secondary dispatch table we
12272 have to use the Offset_To_Top run-time function to get this information;
12273 otherwise if the pointer to the base of the object has been displace
12274 we get a wrong value if we use the 'position attribute.
12276 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
12277 all the calls to Expand_Interface_Thunk.
12278 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
12279 interfaces; hence the call to Set_Interface_Table was clearly wrong.
12280 (Collect_All_Interfaces): Modify the internal subprogram Collect to
12281 ensure that the interfaces implemented by the ancestors are placed
12282 at the header of the generated list.
12283 (Expand_Interface_Conversion): Handle the case in which the displacement
12284 associated with the interface conversion is not statically known. In
12285 this case we generate a call to the new run-time subprogram Displace.
12286 (Make_DT): Generate and fill the new table of interfaces.
12287 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
12288 Get_Tagged_Kind and Set_Tagged_Kind.
12289 (Tagged_Kind): New function that determines the tagged kind of a type
12290 with respect to limitedness and concurrency and returns a reference to
12292 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
12293 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
12294 primary dispatch table for a type.
12295 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
12296 secondary dispatch table respectively of a tagged type.
12298 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
12299 (Expand_Interface_Conversion): New subprogram to indicate if the
12300 displacement of the type conversion is statically known.
12301 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
12303 * rtsfind.ads (RE_Offset_To_Top): New entity
12304 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
12305 accessible to users.
12306 (Re_Displace): New entity
12307 (RE_Interface_Data): New entity
12308 (RE_Set_Interface_Data): New_Entity
12309 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
12310 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
12311 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
12312 RE_TK_Tagged, RE_TK_Task.
12314 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
12315 Init_Secondary_Tags_Internal to allow its use with interface types and
12316 also to generate the code for the new additional actual required
12317 by Set_Offset_To_Top.
12318 (Build_Init_Statements): In case of components associated with abstract
12319 interface types there is no need to generate a call to its IP.
12320 (Freeze_Record_Type): Generate Select Specific Data tables only for
12322 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
12323 the bodies and specifications of the predefined primitive operations
12324 dealing with dispatching selects and abort, 'Callable, 'Terminated only
12325 for concurrent types.
12327 * exp_sel.ads, exp_sel.adb: New files.
12329 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
12330 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
12331 properly protected objects and attach handler in the case of the
12332 restricted profile.
12333 Move embeded package Select_Expansion_Utilities into a separate external
12335 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
12336 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
12337 (Build_K, Build_S_Assignment): New subprograms, part of the select
12338 expansion utilities.
12339 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
12340 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
12341 where the trigger is a dispatching procedure of a limited tagged type.
12343 2005-12-09 Olivier Hainque <hainque@adacore.com>
12345 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
12346 pointer initialization values. Make a SAVE_EXPR instead. Add comments
12347 about the use and expansion of SAVE_EXPRs in the various possible
12348 renaming handling cases.
12349 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
12350 abusing DECL_FCONTEXT.
12352 2005-12-09 Matthew Heaney <heaney@adacore.com>
12354 * a-convec.adb (Merge): Added assertions to check whether vector params
12357 * a-coinve.adb (Merge): Added assertions to check whether vector params
12360 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
12362 (Cursor'Read): raises PE
12364 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
12365 to its default value.
12367 * a-cihama.adb: Manually check whether cursor's key and elem are
12370 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
12371 (Merge): Assert that target and source lists are in order
12372 (Swap): Declare non-const temporaries, to pass to Splice
12374 * a-cdlili.ads: (Splice): Changed param name and param mode
12376 * a-cdlili.adb: (Splice): Changed param name and param mode
12377 (Merge): Assert that target and source lists are in order
12378 (Swap): Declare non-const temporaries, to pass to Splice
12380 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
12381 (Write): declare Stream param as not null
12383 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
12384 an exception message.
12386 2005-12-09 Thomas Quinot <quinot@adacore.com>
12387 Robert Dewar <dewar@adacore.com>
12389 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
12390 which is the absolute maximum length we can support.
12392 * frontend.adb: For the processing of configuration pragma files,
12393 remove references to Opt.Max_Line_Length, which is not checked anymore.
12395 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
12398 * scn.adb, scng.adb:
12399 Always check line length against the absolute supported maximum,
12400 Hostparm.Max_Line_Length.
12402 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
12403 value for the maximum line length is Max_Line_Length (not
12404 Column_Number'Last).
12405 Minor error msg update
12406 (Set_Style_Check_Options): New interface returning error msg
12407 Minor code reorganization (processing for 'M' was out of alpha order)
12409 * switch-c.adb: New interface for Set_Style_Check_Options
12411 * stylesw.ads (Set_Style_Check_Options): New interface returning error
12414 2005-12-09 Javier Miranda <miranda@adacore.com>
12416 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
12417 with IP subprogram were only supported if there were limited types.
12419 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
12420 records with IP subprogram were only supported if there were limited
12423 2005-12-09 Olivier Hainque <hainque@adacore.com>
12424 Eric Botcazou <ebotcazou@adacore.com>
12426 * trans.c (tree_transform, emit_check): Adjust calls to
12427 build_call_raise, passing the now expected GNAT_NODE argument.
12429 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
12430 source line information than what the current global locus indicates
12433 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
12434 field has overflowed.
12435 (build_call_raise): Add a GNAT_NODE argument to convey better source
12436 line information than what the current global locus indicates when
12438 (build_component_ref): Adjust call to build_call_raise.
12440 2005-12-09 Pascal Obry <obry@adacore.com>
12442 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
12443 the iterator is quitting iteration on parent directory.
12445 2005-12-09 Javier Miranda <miranda@adacore.com>
12447 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
12448 and the assignment to a class-wide object, before the assignment we
12449 generate a run-time check to ensure that the tag of the Target is
12450 covered by the tag of the source.
12452 2005-12-09 Robert Dewar <dewar@adacore.com>
12454 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
12455 parameter in call to Image_Wide_Character.
12457 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
12458 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
12459 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
12460 annoying FFFE/FFFF inconsistency.
12462 2005-12-09 Robert Dewar <dewar@adacore.com>
12463 Javier Miranda <miranda@adacore.com>
12464 Ed Schonberg <schonberg@adacore.com>
12466 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
12467 of type conversion.
12468 (Find_Interface): New subprogram that given a tagged type and one of its
12469 component associated with the secondary table of an abstract interface
12470 type, return the entity associated with such abstract interface type.
12471 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
12472 base type to create anonymous subtype, because entity may be a locally
12473 declared subtype or generic actual.
12474 (Find_Interface): New subprogram that given a tagged type and one of its
12475 component associated with the secondary table of an abstract interface
12476 type, return the entity associated with such abstract interface type.
12478 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
12479 conversion cannot be handled at compile time. In this case we pass this
12480 information to the expander to generate the appropriate code.
12482 2005-12-09 Robert Dewar <dewar@adacore.com>
12483 Ed Schonberg <schonberg@adacore.com>
12484 Gary Dismukes <dismukes@adacore.com>
12485 Javier Miranda <miranda@adacore.com>
12486 Hristian Kirtchev <kirtchev@adacore.com>
12488 * einfo.adb (Itype_Printed): New flag
12489 (Is_Limited_Type): Derived types do not inherit limitedness from
12490 interface progenitors.
12491 (Is_Return_By_Reference_Type): Predicate does not apply to limited
12494 * einfo.ads (Itype_Printed): New flag
12495 Move Is_Wrapper_Package to proper section
12496 Add missing Inline for Is_Volatile
12498 * output.ads, output.adb (Write_Erase_Char): New procedure
12499 (Save/Restore_Output_Buffer): New procedures
12500 (Save/Restore_Output_Buffer): New procedures
12502 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
12503 Add missing support for anonymous access type
12504 (Write_Id): Insert calls to Write_Itype
12505 (Write_Itype): New procedure to output itypes
12507 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
12508 use of "limited" in declaration.
12510 * sinfo.ads, sinfo.adb:
12511 Formal derived types can carry an explicit "limited" indication.
12513 * sem_ch3.adb: Add with and use of Targparm.
12514 (Create_Component): If Frontend_Layout_On_Target is True and the
12515 copied component does not have a known static Esize, then reset
12516 the size and positional fields of the new component.
12517 (Analyze_Component_Declaration): A limited component is
12518 legal within a protected type that implements an interface.
12519 (Collect_Interfaces): Do not add to the list the interfaces that
12520 are implemented by the ancestors.
12521 (Derived_Type_Declaration): If the parent of the full-view is an
12522 interface perform a transformation of the tree to ensure that it has
12523 the same parent than the partial-view. This simplifies the job of the
12524 expander in order to generate the correct object layout, and it is
12525 needed because the list of interfaces of the full-view can be given in
12527 (Process_Full_View): The parent of the full-view does not need to be
12528 a descendant of the parent of the partial view if both parents are
12530 (Analyze_Private_Extension_Declaration): If declaration has an explicit
12531 "limited" the parent must be a limited type.
12532 (Build_Derived_Record_Type): A derived type that is explicitly limited
12533 must have limited ancestor and progenitors.
12534 (Build_Derived_Type): Ditto.
12535 (Process_Full_View): Verify that explicit uses of "limited" in partial
12536 and full declarations are consistent.
12537 (Find_Ancestor_Interface): Remove function.
12538 (Collect_Implemented_Interfaces): New procedure used to gather all
12539 implemented interfaces by a type.
12540 (Contain_Interface): New function used to check whether an interface is
12542 (Find_Hidden_Interface): New function used to determine whether two
12543 lists of interfaces constitute a set equality. If not, the first
12544 differing interface is returned.
12545 (Process_Full_View): Improve the check for the "no hidden interface"
12546 rule as defined by AI-396.
12548 2005-12-09 Robert Dewar <dewar@adacore.com>
12550 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
12551 types, not on record subtypes.
12552 (Freeze_Entity): Code cleanup. Add barrier to the loop
12553 that generates the references for primitive operations. This allows to
12554 remove an unnecessary exception handler.
12555 Code reformatting and comment clean ups.
12557 2005-12-09 Vincent Celier <celier@adacore.com>
12559 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
12560 If GNAT CHECK is called with a project file, but with no
12561 source on the command line, call gnatcheck with all the compilable
12562 sources of the project.
12563 Take into account the new command Check, for gnatcheck. Treat as for
12564 other ASIS tools: take into account project, specific package Check and
12566 For ASIS tools, add the switches in package Compiler for
12567 the invocation of the compiler.
12569 * prj-attr.adb: Add package Check and its attributes
12571 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
12573 * vms_conv.adb (Initialize): Change Params of command Check to
12575 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
12576 Add data for new command Check
12578 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
12580 Add qualifiers for Check command options
12581 (Command_Type): New command Check
12583 2005-12-09 Thomas Quinot <quinot@adacore.com>
12585 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
12586 command line switch overruns the output buffer.
12588 2005-12-09 Robert Dewar <dewar@adacore.com>
12590 * sem_prag.adb: Processing for new pragma Complete_Representation
12591 (Analyze_Pragma, case Debug): Implement two argument form.
12593 * par-prag.adb: Entry for new pragma Complete_Representation
12594 (Prag, case Debug): Recognize two argument form of pragma Debug
12595 New interface for Set_Style_Check_Options.
12597 * sem_ch13.adb: Implement new pragma Complete_Representation.
12599 * snames.adb, snames.ads, snames.h: Entry for new pragma
12600 Complete_Representation.
12602 2005-12-09 Gary Dismukes <dismukes@adacore.com>
12604 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
12605 available user-specified stream attributes on limited parameters to
12606 also test the type directly rather than only its underlying type (for
12607 Ada 95) and, in the case of Ada 2005, to check that the user-specified
12608 attributes are visible at the point of the subprogram declaration.
12609 For Ada 2005, the error message is modified to indicate that the
12610 type's stream attributes must be visible (again, only for -gnat05).
12612 2005-12-09 Ed Schonberg <schonberg@adacore.com>
12614 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
12615 anonymous access types.
12617 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
12618 matching of anonymous access types and anonymous access to subprogram
12619 types. 'R'M 4.9.1 (2/2).
12621 2005-12-09 Ed Schonberg <schonberg@adacore.com>
12623 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
12624 rule prematurely when operands are universal, remaining ambiguities
12625 will be removed during resolution.
12628 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
12629 that are Ada 2005 functions.
12630 (Has_Abstract_Interpretation): Subsidiary to
12631 Remove_Conversions, to remove ambiguities caused by abstract operations
12632 on numeric types when operands are universal.
12634 2005-12-09 Robert Dewar <dewar@adacore.com>
12636 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
12637 for case where spec is categorized.
12639 2005-12-09 Javier Miranda <miranda@adacore.com>
12641 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
12642 types use the corresponding record type. This was not needed before
12643 the implementation of Ada 2005 synchronized types because
12644 concurrent types were never tagged types in Ada 95.
12646 2005-12-09 Ed Schonberg <schonberg@adacore.com>
12648 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
12649 first subtype of the type of the expression to verify that it is a
12652 2005-12-09 Robert Dewar <dewar@adacore.com>
12654 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
12657 2005-12-09 Quentin Ochem <ochem@adacore.com>
12658 Robert Dewar <dewar@adacore.com>
12659 Ed Falis <falis@adacore.com>
12660 Florian Villoing <villoing@adacore.com>
12661 Thomas Quinot <quinot@adacore.com>
12662 Arnaud Charlet <charlet@adacore.com>
12664 * gnat_ugn.texi: Created section "Stack Related Tools"
12665 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
12666 "Stack Related Tools"
12667 Added subsection "Static Stack Usage Analysis"
12668 Added subsection "Dynamic Stack Usage Analysis"
12669 Include documentation of itypes in sprint listing (-gnatG)
12670 Documented gnatbind -D switch (default sec stack size for fixed sec
12672 Added Interrupt_State and Persistent_BSS to list of configuration
12674 Add missing doc for maximum value of nnn in -gnatyMnnn
12676 * gnat_rm.texi: Document the AltiVec binding.
12677 Add documentation for pragma Complete_Representation
12678 Shortened an overly long line (> 79 chars)
12679 Clarify documentation of unchecked conversion in implementation
12681 Document two argument form of pragma Debug
12683 * types.ads (Column_Number): Update documentation.
12685 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
12686 library level Finalize_Storage_Only objects (these are not attached to
12687 any finalization list).
12689 * system-mingw.ads: (Underlying_Priorities): Update comment.
12691 2005-12-09 Robert Dewar <dewar@adacore.com>
12693 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
12694 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
12695 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
12696 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
12697 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
12698 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
12699 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
12700 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
12703 2005-12-09 Robert Dewar <dewar@adacore.com>
12705 * s-vaflop-vms-alpha.adb: (Ne_F): New function
12706 (Ne_G): New function
12708 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
12709 for tag assignment.
12710 (Rewrite_Comparison): Handle case where operation is not a comparison
12711 and ignore, and also handle type conversion case.
12713 2005-12-09 Thomas Quinot <quinot@adacore.com>
12715 * exp_aggr.ads: Fix typo in comment.
12716 ???-mark Convert_Aggr_In_Assignment as needing documentation.
12718 2005-12-09 Gary Dismukes <dismukes@adacore.com>
12720 * layout.adb: Replace various uses of byte by storage unit throughout.
12721 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
12722 static size, convert to storage units before returning, to conform to
12725 2005-12-09 Matthew Gingell <gingell@adacore.com>
12727 * g-exctra.ads: Fix typo in comment.
12729 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12731 * utils.c: Minor reformatting.
12733 2005-12-09 Robert Dewar <dewar@adacore.com>
12736 Further comment fixes to make the status of the default file clear
12738 * s-bitops.adb: Clarify comment for Bits_Array
12740 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12742 * Make-lang.in (ada.install-normal): Remove.
12744 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
12746 * Make-lang.in: Remove all dependencies on s-gtype.
12748 2005-12-05 Richard Guenther <rguenther@suse.de>
12750 * utils.c (convert): Use fold_convert where appropriate.
12752 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
12754 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
12757 2005-12-02 Richard Guenther <rguenther@suse.de>
12759 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
12761 2005-12-01 Roger Sayle <roger@eyesopen.com>
12763 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
12766 2005-11-23 Laurent GUERBY <laurent@guerby.net>
12768 * mlib-prj.adb (Build_Library): Initialize Delete.
12770 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
12772 * socket.c: Add extern int h_errno for rtems since networking header
12773 files are not available at this point in a tool bootstrap. Newlib
12774 only has basic C library header files.
12776 2005-11-19 Richard Guenther <rguenther@suse.de>
12777 Roger Sayle <roger@eyesopen.com>
12780 * misc.c (internal_error_function): Don't use vsprintf to format
12781 the error message text, instead use pp_format_text and the new
12782 pretty printer APIs. This allows handling of %qs, %w, etc.
12784 2005-11-18 Laurent GUERBY <laurent@guerby.net>
12787 * Makefile.in: Use s-auxdec-empty for RTEMS.
12789 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12792 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
12793 a temporary if taking the address of something that is neither
12794 reference, declaration, or constant, since the gimplifier
12795 can't handle that case.
12797 2005-11-17 Laurent GUERBY <laurent@guerby.net>
12800 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
12802 2005-11-16 Richard Guenther <rguenther@suse.de>
12804 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
12806 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
12809 * raise-gcc.c: Add missing stdarg.h include.
12811 2005-11-16 Richard Guenther <rguenther@suse.de>
12813 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
12814 (ada/misc.o): Likewise.
12816 2005-11-14 Thomas Quinot <quinot@adacore.com>
12818 * g-soccon.ads: Minor reformatting. Update comments.
12820 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
12821 gain visibility on the declaration of struct timeval.
12823 * g-soccon-freebsd.ads,
12824 g-soccon-darwin.ads,
12825 g-soccon-tru64.ads,
12829 g-soccon-solaris.ads,
12831 g-soccon-mingw.ads,
12832 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
12834 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
12835 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
12836 g-soccon-linux-x86.ads: New files.
12838 * g-socthi-mingw.adb:
12839 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
12841 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
12842 (time_t, suseconds_t): New types constructed to match the tv_sec
12843 and tv_usec fields of C struct timeval.
12844 (Timeval): Construct structure in terms of the new types.
12845 (Host_Errno): New function (imported from socket.c), returns last hosts
12848 * g-socthi-vxworks.adb: Add error handling circuitry.
12850 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
12851 components of struct timeval.
12852 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
12853 (Check_Selector): In error conditions, clear internal socket sets to
12854 avoid a memory leak.
12855 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
12856 Send_Timeout, Receive_Timeout.
12858 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
12859 the tv_sec and tv_usec fields of C struct timeval.
12860 (Timeval): Construct structure in terms of the new types.
12861 (Host_Errno): New function (imported from socket.c), returns last hosts
12864 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
12865 hosts database last error code.
12867 * gen-soccon.c: Complete value expansion should not be performed on
12868 TARGET, as it has the form of a math expression, and some components
12869 may be platform-defined macros.
12870 For VxWorks, generate the OK and ERROR values.
12871 New constants giving the sizes of the components of C struct timeval.
12873 2005-11-14 Robert Dewar <dewar@adacore.com>
12874 Ed Schonberg <schonberg@adacore.com>
12877 * types.ads: Include All_Checks in Suppress_Array
12879 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
12880 not(a=b), since we no longer do this rewriting, and hence it is not
12882 (Elaboration_Checks_Suppressed): Add special casing to
12883 deal with different cases of static and dynamic elaboration checks (all
12884 checks does not count in the first case, but does in the second).
12885 (Expr_Known_Valid): Do not assume that the result of any arbitrary
12886 function call is valid, since this is not the case.
12887 (Ensure_Valid): Do not apply validity check to a real literal
12888 in a universal or fixed context
12890 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
12891 elementary types using the operator in standard. It is cleaner not to
12892 modify the programmers intent, especially in the case of floating-point.
12893 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
12894 it did not matter because we always rewrote a/=b to not(a=b).
12895 (Expand_Allocator_Expression): For an allocator expression whose nominal
12896 subtype is an unconstrained packed type, convert the expression to its
12897 actual constrained subtype.
12898 Implement warning for <= or >= where < or > not possible
12899 Fix to Vax_Float tests (too early in many routines, causing premature
12900 Vax_Float expansions.
12902 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
12903 to be used with packages and generic packages as well as with
12905 (Suppress): Set All_Checks, but not Elaboration_Check, for case
12906 of pragma Suppress (All_Checks)
12907 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
12908 a string literal for precise control over warnings.
12909 Avoid raise of pragma in case of unrecognized pragma and just return
12912 * sem_prag.ads: Minor reformatting
12914 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
12915 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
12916 Switch. Do not handle any exception.
12917 Include -gnatwx as part of -gnatg (warn on redundant parens)
12918 Allow optional = after -gnatm
12919 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
12920 longer sets Elaboration_Checks.
12921 Code to set warning mode moved to Sem_Warn
12922 so that it can be shared by pragma processing.
12924 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
12927 * s-taprop-solaris.adb:
12928 Change some <= to =, to avoid new warning
12930 * a-exexda.adb, prj-proc.adb:
12931 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
12932 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
12934 2005-11-14 Robert Dewar <dewar@adacore.com>
12936 * exp_vfpt.adb: Handle /= case
12937 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
12938 so that we do not get duplicate scaling for fixed point conversions.
12940 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
12942 2005-11-14 Matthew Gingell <gingell@adacore.com>
12944 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
12945 Increase default priority on Lynx from 15 to 17, and meet the Ada
12946 requirement that Default_Priority be ((Priority'First +
12947 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
12949 2005-11-14 Vincent Celier <celier@adacore.com>
12951 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12952 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
12953 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
12954 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
12955 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
12956 mlib-tgt-lynxos.adb (DLL_Prefix): New function
12958 2005-11-14 Doug Rupp <rupp@adacore.com>
12960 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
12963 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12965 * s-traces-default.adb, s-trafor-default.ads,
12966 s-tratas-default.adb: Fix compilation errors.
12968 2005-11-14 Jose Ruiz <ruiz@adacore.com>
12970 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
12971 raising the exception so the memory used is freed.
12973 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12975 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
12976 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
12977 (convert_address): Update comments and list of platforms using this.
12979 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
12982 2005-11-14 Pascal Obry <obry@adacore.com>
12983 Vincent Celier <celier@adacore.com>
12985 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
12988 * memroot.adb: Remove redundant with/use clause on
12989 System.Storage_Elements.
12991 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12993 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
12994 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
12995 related code to a-exexpr.adb
12996 (Save_Occurrence_And_Private): Move GCC EH related code to
12998 (Raise_Current_Excep): Add new variable Id with pragma
12999 volatile, to ensure that the variable lives on stack.
13001 * a-exexpr-gcc.adb, raise-gcc.c: New file.
13003 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
13005 Move GCC EH related code to a-exexpr-gcc.adb
13007 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
13009 Split the Linux version of g-soccon into separate variants for 32 and 64
13011 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
13012 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
13013 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
13014 of host variable $(RANLIB_FLAGS).
13015 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
13016 Code clean up: remove unused/obsolete targets.
13017 (EH_MECHANISM): New variable introduced to differenciate between the
13018 two EH mechanisms statically.
13019 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
13020 (LIBGNAT_OBJS): Add raise-gcc.o
13021 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
13022 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
13023 supports VxWorks 6 RTPs.
13024 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
13025 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
13027 * raise.c: Move all GCC EH-related routines to raise-gcc.c
13029 2005-11-14 Jose Ruiz <ruiz@adacore.com>
13031 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
13032 deferral level, when abort is not allowed, to a later stage (the
13034 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
13035 it will not get changed by the generated code. It was previously done
13038 2005-11-14 Thomas Quinot <quinot@adacore.com>
13039 Olivier Hainque <hainque@adacore.com>
13040 Eric Botcazou <ebotcazou@adacore.com>
13043 Factor common code to build a storage type for an unconstrained object
13044 from a fat or thin pointer type and a constrained object type.
13045 (annotate_value): Handle BIT_AND_EXPR.
13046 (annotate_rep): Don't restrict the back annotation of inherited
13047 components to the type_annotate_only case.
13048 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
13049 we are not defining the type.
13050 <E_Record_Type>: Likewise.
13051 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
13052 to get advantage of the new maybe_stabilize_reference interface, to
13053 ensure that what we reference is indeed stabilized instead of relying
13054 on assumptions on what the stabilizer does.
13055 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
13056 type imported through a limited_with clause, use its non-limited view.
13057 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
13059 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
13060 of #if sections + explicit comparisons of convention identifiers.
13061 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
13062 before early-returning for certain types when code generation is
13064 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
13065 nullification of gnu_expr we do for objects with address clause and
13066 that we are not defining.
13067 (elaborate_expression_1): Do not create constants when creating
13068 variables needed by the debug info: the dwarf2 writer considers that
13069 CONST_DECLs is used only to represent enumeration constants, and emits
13071 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
13072 object with an address clause into an indirect reference, drop the
13073 initializing expression.
13075 (STACK_CHECK_BUILTIN): Delete.
13076 (STACK_CHECK_PROBE_INTERVAL): Likewise.
13077 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
13078 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
13079 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
13080 corresponding to the renamed object as ignored for debugging purposes.
13082 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
13083 related): For a prefix that is a dereference of a fat or thin pointer,
13084 if there is an actual subtype provided by the front-end, use that
13085 subtype to build an actual type with bounds template.
13086 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
13087 is provided by the front-end, use that subtype to compute the size of
13088 the deallocated object.
13089 (gnat_to_gnu): When adding a statement into an elaboration procedure,
13090 check for a potential violation of a No_Elaboration_Code restriction.
13091 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
13092 with extra arguments to control whether to recurse through non-values
13093 and to let the caller know if the stabilization has succeeded.
13094 (gnat_stabilize_reference): Now a simple wrapper around
13095 maybe_stabilize, for common uses without restriction on lvalues and
13096 without need to check for the success indication.
13097 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
13098 pass false instead of 0 as the FORCE argument which is a bool.
13099 (Identifier_to_gnu): Remove checks ensuring that an renamed object
13100 attached to a renaming pointer has been properly stabilized, as no such
13101 object is attached otherwise.
13102 (call_to_gnu): Invoke create_var_decl to create the temporary when the
13103 function uses the "target pointer" return mechanism.
13104 Reinstate conversion of the actual to the type of the formal
13105 parameter before any other specific treatment based on the passing
13106 mechanism. This turns out to be necessary in order for PLACEHOLDER
13107 substitution to work properly when the latter type is unconstrained.
13109 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
13111 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
13112 with extra arguments to control whether to recurse through non-values
13113 and to let the caller know if the stabilization has succeeded.
13115 * utils2.c (gnat_build_constructor): Only sort the fields for possible
13116 static output of record constructor if all the components are constant.
13117 (gnat_build_constructor): For a record type, sort the list of field
13118 initializers in increasing bit position order.
13119 Factor common code to build a storage type for an unconstrained object
13120 from a fat or thin pointer type and a constrained object type.
13121 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
13122 types variants, and process special cases of VIEW_CONVERT expressions
13123 as their NOP_EXPR counterpart to ensure we get to the
13124 CORRESPONDING_VARs associated with CONST_DECls.
13125 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
13126 on the right-hand side.
13128 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
13130 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
13131 are converting back to its original type.
13132 (convert) <JM input>: Fallthrough regular conversion code instead of
13133 extracting the object if converting to a type variant.
13134 (create_var_decl): When a variable has an initializer requiring code
13135 generation and we are at the top level, check for a potential violation
13136 of a No_Elaboration_Code restriction.
13137 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
13138 SIZE and SIZE_UNIT which we need for later back-annotations.
13139 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
13140 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
13141 is an unchecked union.
13142 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
13143 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
13144 main variant, just replace the VIEW_CONVERT_EXPR.
13145 <UNION_TYPE>: Revert 2005-03-02 change.
13147 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
13149 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
13151 2005-11-14 Matthew Heaney <heaney@adacore.com>
13153 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
13154 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
13155 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
13156 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
13157 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
13158 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
13159 Compiles against the spec for ordered maps described in sections
13160 A.18.6 of the most recent (August 2005) AI-302 draft.
13162 2005-11-14 Olivier Hainque <hainque@adacore.com>
13164 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
13165 to ensure bias adjustments take place when need be and to prevent
13166 occurrences of intermediate overflows.
13168 2005-11-14 Matthew Gingell <gingell@adacore.com>
13169 Olivier Hainque <hainque@adacore.com>
13171 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
13174 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
13175 tracebacks on ia64 HP-UX and provide explanatory comment.
13176 Enable backtraces on ia64 GNU/Linux.
13177 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
13178 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
13180 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
13181 Javier Miranda <miranda@adacore.com>
13183 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
13184 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
13185 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
13186 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
13188 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
13189 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
13192 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
13193 subprogram that generates the external name associated with a
13194 secondary dispatch table.
13195 (Get_Secondary_DT_External_Name): New subprogram that generates the
13196 external name associated with a secondary dispatch table.
13198 2005-11-14 Emmanuel Briot <briot@adacore.com>
13200 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
13201 line in the ALI file to include both an instantiation reference, and a
13204 2005-11-14 Vincent Celier <celier@adacore.com>
13206 * clean.adb (Check_Project): Look for Ada code in extending project,
13207 even if Ada is not specified as a language.
13208 Use new function DLL_Prefix for DLL_Name
13209 (Clean_Interface_Copy_Directory): New procedure
13210 (Clean_Library_Directory): New procedure
13211 (Clean_Directory): Remove procedure, no longer used
13212 (Clean_Project): Do not delete any file in an externally built project
13214 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
13215 directory of an extending project, even when there are no Ada source
13217 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
13218 (Set_Ada_Paths.Add.Recursive_Add): Ditto
13220 * mlib-prj.adb (Check_Library): For all library projects, get the
13221 library file timestamp.
13222 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
13223 (Build_Library): Use new function DLL_Prefix for the DLL_Name
13224 (Clean): Remove procedure, no longer used
13225 (Ultimate_Extension_Of): New function
13226 (Build_Library): When cleaning the library directory, only remove an
13227 existing library file and any ALI file of a source of the project.
13228 When cleaning the interface copy directory, remove any source that
13229 could be a source of the project.
13231 * prj.ads, prj.adb (Project_Empty): Add values of new components
13232 Library_TS and All_Imported_Projects.
13233 (Project_Empty): Add values for new components of Project_Data:
13234 Library_ALI_Dir and Display_Library_ALI_Dir
13236 * prj-attr.adb: New project level attribute name Library_ALI_Dir
13238 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
13239 attribute Library_ALI_Dir.
13240 (Check_Library_Attributes): The library directory cannot be the same as
13241 any source directory of the project tree.
13242 (Check_Stand_Alone_Library): The interface copy directory cannot be
13243 the same as any source directory of the project tree.
13245 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
13246 all temporary files.
13248 2005-11-14 Robert Dewar <dewar@adacore.com>
13249 Ed Schonberg <schonberg@adacore.com>
13251 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13252 (Check_Elab_Call): A call within a protected body is never an
13253 elaboration call, and does not require checking.
13254 (Same_Elaboration_Scope): Take into account protected types for both
13256 (Activate_Elaborate_All_Desirable): New procedure
13258 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
13261 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
13262 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
13264 * lib-writ.ads, lib-writ.adb:
13265 Implement new AD/ED for Elaborate_All/Elaborate desirable
13266 Use new Elaborate_All_Desirable flag in N_With_Clause node
13268 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
13269 N_Free_Statement nodes.
13270 Define new class N_Subprogram_Instantiation
13271 Add Elaborate_Desirable flag to N_With_Clause node
13272 Add N_Delay_Statement (covering two kinds of delay)
13274 * debug.adb: Introduce d.f flag for compiler
13275 Add -da switch for binder
13277 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13278 Cyrille Comar <comar@adacore.com>
13280 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
13281 for task component, in the case of a limited aggregate. The enclosed
13282 object declaration will create it earlier. Otherwise, in the case of a
13283 nested aggregate, the object may appear in the wrong scope.
13284 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
13285 (Gen_Assign): If the component being assigned is an array type and the
13286 expression is itself an aggregate, wrap the assignment in a block to
13287 force finalization actions on the temporary created for each row of the
13289 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
13290 structures are initialized after all discriminants are set so that
13291 they can be accessed even when their offset is dynamic.
13293 2005-11-14 Robert Dewar <dewar@adacore.com>
13294 Hristian Kirtchev <kirtchev@adacore.com>
13296 * sem_attr.adb: Implement Machine_Rounding attribute
13297 (Analyze_Access_Attribute): The access attribute may appear within an
13298 aggregate that has been expanded into a loop.
13299 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
13300 'Terminated whenever the prefix is of a task interface class-wide type.
13301 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
13302 the prefix is of a task interface class-wide type.
13304 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
13307 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
13308 Remove pragma Inline for [Unaligned_]Valid.
13309 Add comments that Valid routines do not work for Vax_Float
13311 * exp_attr.adb: Implement Machine_Rounding attribute
13313 * snames.h: Add entry for Machine_Rounding attribute
13315 2005-11-14 Javier Miranda <miranda@adacore.com>
13316 Robert Dewar <dewar@adacore.com>
13317 Hristian Kirtchev <kirtchev@adacore.com>
13319 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
13320 and related): For a prefix that is an explicit dereference of an
13321 access to unconstrained packed array type, annotate the dereference
13322 with an actual subtype so GIGI can make a correct size computation.
13323 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
13324 'Unrestricted_Access, if the designated type is an interface we
13325 add a type conversion to force the displacement of the pointer
13326 to the secondary dispatch table.
13327 Use Universal_Real instead of Long_Long_Float when we need a high
13328 precision float type for the generated code (prevents gratuitous
13329 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
13330 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
13331 'Terminated for task interface class-wide objects. Generate a call to
13332 the predefined dispatching routine used to retrieve the _task_id from
13333 a task corresponding record.
13334 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
13336 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13337 (Check_Dispatching_Operation): Protect the frontend againts
13338 previously detected errors.
13340 * Makefile.rtl: Add new instantiations of system.fat_gen
13342 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
13343 Change name of instantiated package for better consistency
13344 with newly added system.fat_gen instantiations.
13346 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
13347 s-fvagfl.ads: New files.
13349 2005-11-14 Cyrille Comar <comar@adacore.com>
13350 Thomas Quinot <quinot@adacore.com>
13352 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
13353 assignment of a value of a tagged type that has been rewritten to a
13354 block statement, it is known by construction that no checks are
13355 necessary for the statements within the block: analyze it with checks
13357 (Expand_N_If_Statement): When killing a dead then-branch in an
13358 if-statement that has elsif_parts, recompute the Current_Value node
13359 for any entity whose value is known from the condition of the first
13361 (Expand_N_Return_Statement): When returning a mutable record, convert
13362 the return value into its actual subtype in order to help the backend
13363 to return the actual size instead of the maximum. This is another
13364 aftermath of not returning mutable records on the sec-stack anymore.
13366 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
13367 handling of error msg for suspicious reverse range iteration.
13368 (Check_Possible_Current_Value_Condition): Move declaration from body to
13369 spec, to allow this subprogram to be called from exp_ch5.
13371 2005-11-14 Thomas Quinot <quinot@adacore.com>
13373 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
13374 generate a set of nested array aggregates instead of a single flat
13375 aggregate for multi-dimensional arrays.
13377 2005-11-14 Pascal Obry <obry@adacore.com>
13379 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
13380 by spawnve is a process handle, no need to convert. Add a parameter
13381 close to control wether the process handle must be closed.
13382 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
13383 a process handle, not need to convert.
13384 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
13386 * g-expect.adb: (Kill): Document the new close parameter.
13387 (Close): Do not release the process handle in the kill there as
13388 waitpid() is using it.
13389 (Send_Signal): Release the process handle.
13391 2005-11-14 Robert Dewar <dewar@adacore.com>
13393 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
13394 need a high precision float type for the generated code (prevents
13395 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
13398 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
13399 need a high precision float type for the generated code (prevents
13400 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
13402 (Expand_Width_Attribute): In configurable run-time, the attribute is not
13403 allowed on non-static enumeration subtypes. Force a load error to emit
13404 the correct diagnostic.
13406 2005-11-14 Thomas Quinot <quinot@adacore.com>
13407 Robert Dewar <dewar@adacore.com>
13408 Ed Schonberg <schonberg@adacore.com>
13410 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
13411 subtype to compute the size of the designated object at run-time,
13412 create such a subtype and store it in the Actual_Designated_Subtype
13413 attribute of the N_Free_Statement.
13414 Generate itype for classwide designated object in both cases of
13415 user-specified storage pool: specific and class-wide, not only in the
13417 Raise CE when trying to set a not null access type object to null.
13418 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
13419 an explicit loop, because freeze nodes make its position variable.
13421 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
13424 2005-11-14 Javier Miranda <miranda@adacore.com>
13426 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
13427 Build_Stream_Procedure): Add the null-excluding attribute to the first
13429 This has no semantic meaning under Ada95 mode but it is a
13430 requirement under Ada05 mode.
13432 * par-ch3.adb (P_Access_Definition): Addition of warning message if
13433 the null exclusion is used under Ada95 mode
13434 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
13435 (P_Access_Definition): Remove assertion that forbids the use of
13436 the null-exclusion feature in Ada95.
13438 2005-11-14 Robert Dewar <dewar@adacore.com>
13440 * impunit.adb: Exclude container helper units not intended for use by
13443 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13445 * freeze.adb (Freeze_Entity): For an access formal that is an access
13446 to subprogram, freeze the anonymous subprogram type at the same time,
13447 to prevent later freezing in the wrong scope, such as the enclosing
13449 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
13450 subprogram whenever available.
13452 2005-11-14 Arnaud Charlet <charlet@adacore.com>
13455 * gnatvsn.ads (Library_Version): Bump to 4.1
13457 2005-11-14 Robert Dewar <dewar@adacore.com>
13459 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
13460 Storage_Offset to avoid wrap around causing invalid results.
13462 2005-11-14 Pascal Obry <obry@adacore.com>
13464 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
13466 (Scan_Bind_Arg): Fail with an error message if -M option is used
13467 on a native compiler.
13469 2005-11-14 Robert Dewar <dewar@adacore.com>
13470 Vincent Celier <celier@adacore.com>
13472 * gprep.adb: Implement -C switch to scan comments
13474 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
13476 * scans.ads: Comment updates (including new use of Tok_Comment in
13479 * opt.ads: Add documentation for flags that are used by gprmake,
13480 currently and in the next version of gprmake.
13481 (Verbosity_Level): New variable
13482 Add Replace_In_Comments switch
13484 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
13486 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
13488 2005-11-14 Arnaud Charlet <charlet@adacore.com>
13490 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
13491 message, friendlier.
13493 2005-11-14 Robert Dewar <dewar@adacore.com>
13495 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
13497 2005-11-14 Doug Rupp <rupp@adacore.com>
13499 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
13501 2005-11-14 Robert Dewar <dewar@adacore.com>
13503 * interfac.ads: Change declarations of IEEE float types so that we no
13504 longer need a separate version of this package for VMS.
13506 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13508 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
13509 internal entity created for the declaration of a child subprogram body
13510 with no spec as coming from source, to generate proper cross-reference
13513 2005-11-14 Vincent Celier <celier@adacore.com>
13515 * make.adb (Compile_Sources): Change verbose message to minimum
13516 verbosity level High for "is in an Ada library", "is a read-only
13517 library" and "is an internal library",
13518 (Create_Binder_Mapping_File): Path name of ALI file for library project
13519 must include the library directory, not the object directory.
13520 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
13521 for new switches -vl, -vm and -vh.
13522 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
13523 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
13524 (Compile_Sources): Do not attempt to compile if an ALI file is missing
13525 in a project that is externally built.
13526 (Compute_All_Imported_Projects): New procedure
13527 (Gnatmake): Check if importing libraries should be regenerated because
13528 at least an imported library is more recent.
13529 (Initialize): For each project compute the list of the projects it
13530 imports directly or indirectly.
13531 (Add_Library_Search_Dir): New procedure, used in place of
13532 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
13533 put in the search paths.
13534 (Add_Source_Search_Dir): New procedure, used in place of
13535 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
13536 put in the search paths.
13537 (Mark_Directory): Resolve the absolute path the directory before marking
13540 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
13541 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
13542 Switch. Do not handle any exception.
13543 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
13544 so that the switch is recognized as valid.
13545 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
13547 2005-11-14 GNAT Script <nobody@adacore.com>
13549 * Make-lang.in: Makefile automatically updated
13551 2005-11-14 Pascal Obry <obry@adacore.com>
13553 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
13555 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
13556 In both cases the last argument was dropped.
13558 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
13560 * namet.h: (Column_Numbe): New type.
13561 (Get_Column_Number): Define to sinput__get_column_number.
13562 (Instantiation): Define to sinput__instantiation.
13563 (Get_Column_Number): Declare.
13564 (Instantiation): Likewise.
13566 2005-11-14 Robert Dewar <dewar@adacore.com>
13568 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
13569 syntax, which could cause compiler hangs.
13571 2005-11-14 Vincent Celier <celier@adacore.com>
13573 * prj-ext.adb: Take into account new environment variable
13574 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
13576 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
13577 normalize its path name, making it absolute and resolving symbolic
13578 links, and replace the original if resolved path is different.
13580 2005-11-14 Vincent Celier <celier@adacore.com>
13582 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
13583 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
13585 2005-11-14 Emmanuel Briot <briot@adacore.com>
13587 * prj-pp.adb (Print): Do not output the with statement if the
13588 associated name is empty, which happens for virtual extending projects.
13589 (Print): Preserve the "extends all" attribute when printing the project.
13591 * prj-tree.ads (String_Value_Of): Add comment about returned value for
13592 a virtual extending project.
13594 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13596 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
13597 rhs of an assignment even if the type is unconstrained, when the
13598 context is non-expanding.
13599 In an inlined body, if the context type is private,
13600 resolve with its full view, which must be a composite type.
13602 2005-11-14 Robert Dewar <dewar@adacore.com>
13603 Ed Schonberg <schonberg@adacore.com>
13605 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
13606 Do not give obsolescent warning on with of subprogram (since we
13608 (Analyze_With_Clause): Add test for obsolescent package
13609 (Install_Context_Clauses): If the unit is the body of a child unit, do
13610 not install twice the private declarations of the parents, to prevent
13611 circular lists of Use_Clauses in a parent.
13612 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
13613 compiling body of child unit.
13614 Use new class N_Subprogram_Instantiation
13615 (Expand_With_Clause): If this is a private with_clause for a child unit,
13616 appearing in the context of a package declaration, then the implicit
13617 with_clauses generated for parent units are private as well.
13618 (License_Check): Do not generate message if with'ed unit is internal
13620 2005-11-14 Gary Dismukes <dismukes@adacore.com>
13621 Ed Schonberg <schonberg@adacore.com>
13622 Thomas Quinot <quinot@adacore.com>
13624 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
13625 names are internal, because they will not have a corresponding partner
13626 in the actual package.
13627 (Analyze_Formal_Package): Move the setting of the formal package spec's
13628 Generic_Parent field so that it occurs prior to analyzing the package,
13629 to allow proper operation of Install_Parent_Private_Declarations.
13630 (Analyze_Package_Instantiation): Set the instantiated package entity's
13631 Package_Instantiation field.
13632 (Get_Package_Instantiation_Node): Move declaration to package spec.
13633 Retrieve the N_Package_Instantiation node when the Package_Instantiation
13635 (Check_Generic_Child_Unit): Within an inlined call, the only possible
13636 instantiation is Unchecked_Conversion, for which no parents are needed.
13637 (Inline_Instance_Body): Deinstall and record the use_clauses for all
13638 parent scopes of a scope being removed prior to inlining an instance
13640 (Analyze_Package_Instantiation): Do not perform front-end inlining when
13641 the current context is itself an instance within a non-instance child
13642 unit, to prevent scope stack errors.
13643 (Save_References): If the node is an aggregate that is an actual in a
13644 call, rewrite as a qualified expression to preserve some type
13645 information, to resolve possible ambiguities in the instance.
13646 (Instance_Parent_Unit): New global variable to record the ultimate
13647 parent unit associated with a generic child unit instance (associated
13648 with the existing Parent_Unit_Visible flag).
13649 (type Instance_Env): New component Instance_Parent_Unit for stacking
13650 parents recorded in the global Instance_Parent_Unit.
13651 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
13653 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
13654 it's not a top-level unit, and only do this if Instance_Parent_Unit is
13655 not already set. Replace test of Is_Child_Unit with test of parent's
13656 scope against package Standard. Add comments and a ??? comment.
13657 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
13658 on a child instance parent to test that the parent equals
13659 Instance_Parent rather than simply checking that the unit is not a
13661 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
13662 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
13663 a formal interface are ancestors of the corresponding actual.
13664 (Validate_Formal_Interface_Type): Additional legality checks.
13665 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
13666 interface types with ancestors.
13667 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
13668 to diagnose attempts to use generic within its own declaration.
13670 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13671 Javier Miranda <miranda@adacore.com>
13673 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
13675 (Build_Private_Derived_Type): The entity of the created full view of the
13676 derived type does not come from source. If after installing the private
13677 declarations of the parent scope the parent is still private, use its
13678 full view to construct the full declaration of the derived type.
13679 (Build_Derived_Record_Type): Relax the condition that controls the
13680 execution of the check that verifies that the partial view and
13681 the full view agree in the set of implemented interfaces. In
13682 addition, this test now only takes into account the progenitors.
13683 (Derive_Interface_Subprograms): No need to derive subprograms
13684 of ancestors that are interfaces.
13685 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
13687 Change name Is_Package to Is_Package_Or_Generic_Package
13688 (Complete_Subprograms_Derivation): Handle the case in which the full
13689 view is a transitive derivation of the ancestor of the partial view.
13690 (Process_Full_View): Rename local subprogram Find_Interface_In_
13691 Descendant to Find_Ancestor_Interface to leave the code more clear.
13692 Remove wrong code that avoids the generation of an error message
13693 when the immediate ancestor of the partial view is an interface.
13694 In addition some minor reorganization of the code has been done to
13695 leave it more clear.
13696 (Analyze_Type_Declaration): If type has previous incomplete tagged
13697 partial view, inherit properly its primitive operations.
13698 (Collect_Interfaces): Make public, for analysis of formal
13700 (Analyze_Interface_Declaration): New procedure for use for regular and
13701 formal interface declarations.
13702 (Build_Derived_Record_Type): Add support for private types to the code
13703 that checks if a tagged type implements abstract interfaces.
13704 (Check_Aliased_Component_Type): The test applies in the spec of an
13706 (Access_Type_Declaration): Clean up declaration of malformed type
13707 declared as an access to its own classwide type, to prevent cascaded
13709 (Collect_Interfaces): For private extensions and for derived task types
13710 and derived protected types, the parent may be an interface that must
13711 be included in the interface list.
13712 (Access_Definition): If the designated type is an interface that may
13713 contain tasks, create Master_Id for it before analyzing the expression
13714 of the declaration, which may be an allocator.
13715 (Record_Type_Declaration): Set properly the interface kind, for use
13716 in allocators, the creation of master id's for task interfaces, etc.
13718 2005-11-14 Javier Miranda <miranda@adacore.com>
13719 Ed Schonberg <schonberg@adacore.com>
13721 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
13722 omitted in case of stream attribute subprograms.
13723 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
13724 appear immediately after a subprogram body, when there is no previous
13725 subprogram declaration.
13726 Change name Is_Package to Is_Package_Or_Generic_Package
13727 (Process_Formals): A non null qualifier on a non null named access
13728 type is not an error, and is a warning only if Redundant_Constructs
13731 2005-11-14 Gary Dismukes <dismukes@adacore.com>
13732 Ed Schonberg <schonberg@adacore.com>
13734 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
13735 nested within Analyze_Package_Specification to install the private
13736 declarations and use clauses within each of the parent units of a
13737 package instance of a generic child package.
13738 (Analyze_Package_Specification): When entering a private part of a
13739 package associated with a generic instance or formal package, the
13740 private declarations of the parent must be installed (by calling new
13741 procedure Install_Parent_Private_Declarations).
13742 Change name Is_Package to Is_Package_Or_Generic_Package
13743 (Preserve_Full_Attributes): For a synchronized type, the corresponding
13744 record is absent in a generic context, which does not indicate a
13747 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13749 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
13750 not try to rewrite a renamed stream attribute, because the operations
13751 on the type may not have been generated.
13752 Handle properly a renaming_as_body generated for a stream operation
13753 whose default is abstract because the object type itself is abstract.
13754 (Find_Type): If the type is incomplete and appears as the prefix of a
13755 'Class reference, it is tagged, and its list of primitive operations
13756 must be initialized properly.
13757 (Chain_Use_Clauses): When chaining the use clauses that appear in the
13758 private declaration of a parent unit, prior to compiling the private
13759 part of a child unit, find on the scope stack the proper parent entity
13760 on which to link the use clause.
13761 (Note_Redundant_Use): Emit a warning when a redundant use clause is
13763 (Analyze_Object_Renaming): An attribute reference is not a legal object
13764 if it is not a function call.
13766 2005-11-14 Robert Dewar <dewar@adacore.com>
13767 Ed Schonberg <schonberg@adacore.com>
13769 * sem_eval.adb: Implement d.f flag
13770 (Subtype_Statically_Match): A generic actual type has unknown
13771 discriminants when the corresponding actual has a similar partial view.
13772 If the routine is called to validate the signature of an inherited
13773 operation in a child instance, the generic actual matches the full view,
13775 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
13776 Ed Schonberg <schonberg@adacore.com>
13777 Robert Dewar <dewar@adacore.com>
13778 Thomas Quinot <quinot@adacore.com>
13780 * sem_res.adb (Resolve_Call): Provide a better error message whenever
13781 a procedure call is used as a select statement trigger and is not an
13782 entry renaming or a primitive of a limited interface.
13783 (Valid_Conversion): If the operand has a single interpretation do not
13784 remove address operations.
13785 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
13786 statement to inhibit warning.
13787 (Resolve_Unary_Op): Do not produce a warning when
13788 processing an expression of the form -(A mod B)
13789 Use Universal_Real instead of Long_Long_Float when we need a high
13790 precision float type for the generated code (prevents gratuitous
13791 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
13792 (Resolve_Concatenation_Arg): Improve error message when argument is an
13793 ambiguous call to a function that returns an array.
13794 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
13795 there is an implicit operator in the given scope if we are within an
13796 instance: legality check has been performed on the generic.
13797 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
13798 after resolving operand, to avoid false warnings on overloaded calls.
13800 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13801 Javier Miranda <miranda@adacore.com>
13804 * sem_type.adb (Covers): In an inlined body, a composite type matches
13805 a private type whose full view is a composite type.
13806 (Interface_Present_In_Ancestor): Protect the frontend against
13807 previously detected errors to ensure that its compilation
13808 with assertions enabled gives the same output that its
13809 compilation without assertions.
13810 (Interface_Present_In_Ancestor): Add support for private types.
13811 Change name In_Actual to In_Generic_Actual (clean up)
13812 (Disambiguate): New predicate In_Actual, to recognize expressions that
13813 appear in the renaming declaration generated for generic actuals, and
13814 which must be resolved in the outer context.
13816 2005-11-14 Robert Dewar <dewar@adacore.com>
13817 Thomas Quinot <quinot@adacore.com>
13818 Hristian Kirtchev <kirtchev@adacore.com>
13819 Ed Schonberg <schonberg@adacore.com>
13821 * sem_util.ads, sem_util.adb: Change name Is_Package to
13822 Is_Package_Or_Generic_Package.
13823 (Check_Obsolescent): New procedure.
13824 (Set_Is_Public): Remove obsolete junk test.
13825 (Set_Public_Status): Do not set Is_Public on an object whose declaration
13826 occurs within a handled_sequence_of_statemets.
13827 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
13828 for a parameterless procedure.
13829 (Enter_Name): Recognize renaming declarations created for private
13830 component of a protected type within protected operations, so that
13831 the source name of the component can be used in the debugger.
13833 2005-11-14 Ed Schonberg <schonberg@adacore.com>
13834 Robert Dewar <dewar@adacore.com>
13836 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
13837 of a generic subprogram are not visible outside the body.
13838 (Set_Warning_Switch): New procedure (code to set warning mode moved
13839 here from Switch.C so that it can be shared by pragma processing.
13840 (Check_References): Special case warning for non-modified non-imported
13842 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
13843 form with a string literal argument
13845 2005-11-14 Javier Miranda <miranda@adacore.com>
13847 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
13849 (Write): Addition of "not null" to the anonymous access.
13850 (Read): Addition of "not null" to the anonymous access.
13851 (Write): Addition of "not null" to the anonymous access.
13853 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
13854 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
13855 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
13856 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
13857 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
13858 "not null" to the anonymous access.
13860 2005-11-14 Robert Dewar <dewar@adacore.com>
13862 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
13865 2005-11-14 Vincent Celier <celier@adacore.com>
13867 * switch.adb (Bad_Switch): New procedure
13868 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
13869 message when in error.
13871 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
13872 Too_Many_Output_Files): Remove declarations, no longer used.
13873 (Scan_Nat): New parameter Switch
13875 (Bad_Switch): New procedure
13877 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
13878 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
13879 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
13880 to Osint.Fail. Do not handle any exception.
13882 2005-11-14 Vincent Celier <celier@adacore.com>
13884 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
13885 designates a non existent directory.
13887 2005-11-14 Robert Dewar <dewar@adacore.com>
13889 * xgnatugn.adb: Replace invalid membership test by 'Valid
13891 2005-11-14 Vincent Celier <celier@adacore.com>
13893 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
13894 there is no object directory.
13896 2005-11-14 Robert Dewar <dewar@adacore.com>
13898 * usage.adb: Minor adjustment to output format, use nn instead of nnn
13899 (so that -gnateInnn does not run into next column)
13901 2005-11-14 Ed Falis <falis@adacore.com>
13903 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
13906 2005-11-14 Cyrille Comar <comar@adacore.com>
13908 * s-chepoo.ads: Add comments on Dereference.
13909 Remove unnecessary inherited abstract primitives.
13912 2005-11-14 Robert Dewar <dewar@adacore.com>
13914 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
13915 node parameter, not needed, since it is available as Declaration_Node.
13917 2005-11-14 Geert Bosch <bosch@adacore.com>
13919 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
13920 grammatically correct.
13922 2005-11-14 Vincent Celier <celier@adacore.com>
13924 * s-fileio.ads: Correct spelling error in comment
13926 2005-11-14 Cyrille Comar <comar@adacore.com>
13927 Robert Dewar <dewar@adacore.com>
13928 Vincent Celier <celier@adacore.com>
13929 Ben Brosgol <brosgol@adacore.com>
13930 Jose Ruiz <ruiz@adacore.com>
13931 Pascal Obry <obry@adacore.com>
13934 Document that -fstack-check is needed for strict compliance with the
13935 Ada 95 Reference Manual.
13936 Correct reference to VAX systems to meet HP guidelines
13937 Add documentation for new gnatmake switches -vl, -vm and -vh
13938 Replace DEC Ada by HP Ada
13939 Replace DIGITAL by HP
13940 Remove empty section on tools in compatibility section
13941 Clarify the Windows convention semantics.
13942 Document the Win32 calling convention.
13943 The Stdcall, Win32 and DLL convention are synonyms.
13944 Add a note in -gnatR description about zero size record components
13945 Note on new >= and <= warnings for -gnatwc
13946 Document that equal sign after -gnatm is optional.
13947 Note that strip is working fine on DLL built with a Library
13948 Project. The restriction apply only to DLL built with gnatdll.
13949 Update section about the way to debug a DLL.
13950 Update information about the DLL convention.
13951 Document -C switch for gnatprep
13952 Document new attribute Library_ALI_Dir
13953 Update elaboration doc to include implicit Elaborate pragmas now
13954 generated for subprogram instantiations.
13955 Document limitation on executable names that include spaces for --GCC,
13956 --GNATBIND, and --GNATLINK switches.
13957 Document that -w causes -gnatws to be added at start of gcc switches
13959 * gnat_rm.texi: Document that -mieee is needed for generating infinite
13960 and NaN values in case of overflow on machines that are not fully
13961 compliant with the IEEE floating-point standard.
13962 Create a section describing the set of compiler options needed for
13963 strict compliance with the Ada 95 Reference Manual.
13964 Add documentation for pragma Obsolescent applied to a package
13965 Clarify potential issues of mixed language programs related to the
13966 I/O buffering enabling in the elaboration of the GNAT runtime.
13967 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
13968 This documentation only patch adds extra documentsion for pragma
13969 Restrictions (No_Elaboration_Code), explaining why it is not possible
13970 to document this restriction in terms of allowed source constructs.
13971 Document string literal form of pragma Warnings
13972 Document new attribute Library_ALI_Dir
13973 Add documentation on stable attributes in project files that was missing
13975 * gnat-style.texi: Indicate that paragraphs within a single comment
13976 should be separated by empty comment lines
13978 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
13981 * bindusg.adb: Minor cleanup, put -m before -M for consistency
13983 2005-11-14 Robert Dewar <dewar@adacore.com>
13985 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
13986 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
13987 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
13988 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
13989 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
13990 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
13991 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
13992 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
13993 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
13994 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
13995 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
13996 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
13997 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
13998 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
13999 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
14000 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
14001 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
14002 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
14003 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
14004 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
14005 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
14006 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
14007 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
14008 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
14009 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
14010 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
14011 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
14012 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
14013 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
14014 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
14015 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
14016 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
14017 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
14018 system-interix.ads, system-solaris-sparc.ads,
14019 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
14020 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
14021 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
14022 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
14023 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
14024 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
14025 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
14026 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
14027 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
14028 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
14029 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
14030 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
14031 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
14032 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
14033 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
14034 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
14035 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
14036 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
14037 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
14038 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
14039 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
14040 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
14041 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
14042 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
14043 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
14044 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
14045 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
14046 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
14047 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
14048 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
14049 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
14050 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
14051 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
14052 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
14053 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
14054 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
14055 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
14056 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
14057 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
14058 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
14059 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
14060 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
14061 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
14062 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
14063 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
14064 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
14065 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
14066 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
14067 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
14068 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
14069 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
14070 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
14071 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
14072 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
14073 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
14074 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
14075 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
14076 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
14077 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
14078 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
14079 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
14080 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
14081 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
14082 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
14083 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
14084 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
14085 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
14086 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
14087 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
14088 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
14089 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
14090 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
14091 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
14092 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
14093 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
14094 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
14095 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
14096 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
14097 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
14098 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
14099 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
14100 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
14101 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
14102 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
14103 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
14104 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
14105 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
14106 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
14107 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
14108 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
14109 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
14110 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
14111 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
14112 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
14113 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
14114 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
14115 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
14116 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
14117 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
14118 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
14119 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
14120 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
14121 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
14122 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
14123 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
14124 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
14125 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
14126 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
14127 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
14128 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
14129 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
14130 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
14131 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
14132 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
14133 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
14134 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
14135 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
14136 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
14137 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
14138 a-numaux-darwin.ads, a-numaux-darwin.adb,
14139 a-swuwha.ads, a-stunha.ads: Minor reformatting
14141 2005-11-14 Robert Dewar <dewar@adacore.com>
14144 * osint-m.adb: Add pragma Elaborate_All for Osint
14146 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
14149 * trans.c (call_to_gnu): Restore statement lost in translation.
14151 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
14153 * init.c: Use the Linux-specific section for the IA-64/Linux target.
14154 (__gnat_adjust_context_for_raise): Add conditional code so that the
14155 IA-64 is also supported.
14157 2005-11-03 James E Wilson <wilson@specifix.com>
14160 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
14161 TREE_OVERFLOW check.
14163 2005-09-21 Olivier Hainque <hainque@adacore.com>
14166 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
14167 as we create them to store a size in bits.
14169 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
14177 * utils2.c (build_return_expr): New helper function.
14178 * gigi.h (build_return_expr): Declare it.
14179 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
14180 of manually building the RETURN_EXPR tree.
14181 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
14182 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
14183 build_binary_op for the "target pointer" case. Use build_return_expr
14184 instead of manually building the RETURN_EXPR tree.
14186 2005-09-16 Laurent GUERBY <laurent@guerby.net>
14189 * s-tpinop.ads: Make this unit Preelaborate.
14191 2005-09-16 Andreas Jaeger <aj@suse.de>
14193 * socket.c: Add string.h for memcpy.
14195 2005-09-05 Arnaud Charlet <charlet@adacore.com>
14197 * dec-io.ads, dec-io.adb: Removed, no longer used.
14199 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14201 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
14203 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
14204 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
14205 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
14206 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
14207 dependent units are Preelaborate.
14208 (Initialize): Call Interrupt_Managemeent.Initialize and
14209 OS_Primitives.Initialize to ensure proper initialization of this unit.
14210 Remove use of System.Soft_Links
14211 Make this unit Preelaborate.
14213 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
14214 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
14215 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
14216 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
14217 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
14218 s-tratas.ads, s-tasinf.ads: Minor reformatting.
14219 Add pragma Preelaborate, since these packages are suitable for this
14223 * s-traent-vms.ads, s-intman-dummy.adb,
14224 s-taprop-dummy.adb: Make this unit Preelaborate.
14226 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
14227 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
14228 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
14229 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
14230 s-intman-solaris.adb, s-intman-irix-athread.adb,
14231 s-intman-irix.adb: Mark this unit Preelaborate.
14232 (Initialize): New procedure.
14235 * s-taspri-linux.ads: Removed.
14237 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
14238 as done by other implementations (e.g. posix).
14240 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
14241 responsible for deferring abort.
14242 Mark this unit Preelaborate.
14244 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
14245 proper initialization of the tasking run-time.
14247 * s-tasdeb.ads: Mark this unit Preelaborate.
14248 (Known_Tasks): Add explicit default value to avoid elaboration code.
14250 * s-inmaop-vms.adb (Elaboration code): Add call to
14251 Interrupt_Management.Initialize since the elaboration code depends on
14252 proper initialization of this package.
14254 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
14255 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
14256 s-osprim-posix.adb: Make this unit Preelaborate.
14258 * a-calend.adb: Add call to OS_Primitives.Initialize
14260 * a-elchha.adb: Update use of Except.Id.Full_Name.
14261 Minor reformatting.
14262 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
14264 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
14265 Move with clauses outside Warnings Off now that dependent units are
14267 Use raise xxx with "..."; Ada 2005 form.
14269 * a-taside.ads, a-taside.adb:
14270 Remove some dependencies, to make it easier to make this unit truly
14272 Rewrite some code to be conformant with Preelaborate rules.
14274 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
14275 marked Preelaborate in the future.
14277 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
14278 these units Preelaborate.
14280 * s-exctab.adb: Update use of Except.Id.Full_Name.
14282 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
14283 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
14284 Set_Exc_Stack_Addr): Removed, no longer used.
14285 Remove reference to *Machine_State_Addr*, no longer needed.
14287 * s-stalib.ads: Mark this unit as Preelaborate[_05].
14288 (Exception_Data): Full_Name is now a System.Address so that this unit
14289 can be made Preelaborate.
14290 Clean up/simplify code thanks to Full_Name being a System.Address.
14291 Remove obsolete pragma Suppress (All_Checks), no longer needed.
14293 * s-taskin.ads, s-taskin.adb:
14294 Move with clauses outside Warnings Off now that dependent units are
14296 Make this unit Preelaborate.
14297 (Initialize): New proceduure, replace elaboration code and makes the
14298 set up of the tasking run-time cleaner.
14299 (Detect_Blocking): Now a function instead of a deferred boolean, to
14300 obey Preelaborate rules.
14302 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
14303 soft links, no longer used.
14305 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
14306 packages are suitable for this categorization.
14308 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
14309 since we compile run-time sources in Ada 2005 mode.
14310 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
14311 avoid having s-taprop*.adb depend on s-soflin and to avoid code
14313 Remove reference to *Machine_State_Addr*, no longer needed.
14315 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14317 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
14318 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
14319 Remove reference to System.Exceptions.
14321 * s-mastop-x86.adb: Removed, no longer used.
14323 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
14325 * a-excach.adb: Minor reformatting.
14327 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
14328 instead fix new warnings that were hidden by this change.
14329 (AAA, ZZZ): Removed, replaced by...
14330 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
14331 are used instead of constants, to help make Ada.Exception truly
14333 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
14334 Raise_Storage_Error): File is now a System.Address, to simplify code.
14335 (Elab code): Removed, no longer used.
14336 (Null_Occurrence): Remove Warnings Off and make this construct
14338 Remove code related to front-end zero cost exception handling, since
14339 it is no longer used.
14340 Remove -gnatL/-gnatZ switches.
14342 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
14343 Update use of Except.Msg.
14345 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
14346 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
14347 to front-end zero cost exception handling, since it is no longer used.
14348 Remove -gnatL/-gnatZ switches.
14350 * lib-writ.ads: Minor reformatting
14353 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
14355 * Make-lang.in: Remove references to s-except.ads
14357 * s-except.ads: Removed, no longer used.
14359 * s-mastop.ads, s-mastop.adb:
14360 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
14361 Remove reference to System.Exceptions.
14363 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
14364 switch-b.adb: Remove code related to front-end zero cost exception
14365 handling, since it is no longer used.
14366 Remove -gnatL/-gnatZ switches.
14368 2005-09-01 Robert Dewar <dewar@adacore.com>
14369 Gary Dismukes <dismukes@adacore.com>
14370 Javier Miranda <miranda@adacore.com>
14372 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
14373 type by valid test and generate warning.
14374 (Tagged_Membership): Generate call to the run-time
14375 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
14376 Change formal name Subtype_Mark to Result_Definition in several calls to
14377 Make_Function_Specification.
14378 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
14379 check for proper accessibility of the operand of a class-wide allocator.
14380 The check can be left out if checks are suppressed or if the expression
14381 has a specific tagged type whose level is known to be safe.
14383 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
14384 generates the run-time check associated with null-excluding entities.
14385 (Expand_N_Return_Statement): Add tests to determine if the accessibility
14386 check on the level of the return expression of a class-wide function
14387 can be elided. The check usually isn't needed if the expression has a
14388 specific type (unless it's a conversion or a formal parameter). Also
14389 add a test for whether accessibility checks are suppressed. Augment
14390 the comments to describe the conditions for performing the check.
14392 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
14393 Javier Miranda <miranda@adacore.com>
14394 Gary Dismukes <dismukes@adacore.com>
14395 Ed Schonberg <schonberg@adacore.com>
14397 * a-tags.adb (IW_Membership): Give support to
14398 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
14399 subprogram has been extended to look for the tag in the ancestors tag
14401 Update the structure of the GNAT Dispatch Table to reflect the
14402 additional two tables used in dispatching selects.
14403 Introduce appropriate array types and record components in
14404 Type_Specific_Data to reflect the two tables.
14405 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
14406 the TSD of a tag, indexed by position.
14407 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
14408 operation kind in the TSD of a tag, indexed by position.
14410 * a-tags.ads: Introduce an enumeration type to capture different
14411 primitive operation kinds. Define a constant reflecting the number of
14412 predefined primitive operations.
14413 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
14414 of an entry wrapper.
14415 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
14416 callable entity of a primitive operation.
14418 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
14419 primitive operations used in dispatching selects for limited
14420 interfaces, limited tagged, task and protected types what implement a
14422 (Freeze_Type): Generate the bodies of the primitive operations used in
14423 dispatching selects for limited tagged, task and protected types that
14424 implement a limited interface. Generate statements to populate the two
14425 auxiliary tables used for dispatching in select statements.
14426 (Freeze_Record_Type): Add call to initialize the dispatch table entries
14427 associated with predefined interface primitive operations.
14428 (Build_Dcheck_Function): Change Set_Subtype_Mark to
14429 Set_Result_Definition.
14430 (Build_Variant_Record_Equality): Change Subtype_Mark to
14432 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
14433 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
14434 (Build_Assignment): Simplify the code that adds the run-time-check.
14435 (Expand_N_Object_Declaration): Code cleanup.
14437 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
14438 entries when there is a protected type that implements a limited
14441 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
14442 common routines used in expansion of dispatching selects.
14443 (Add_Private_Declarations): Select the appropriate protection type when
14444 there is a protected type that implements a limited interface.
14445 (Build_Parameter_Block): Generate a wrapped parameter block.
14446 (Build_Protected_Subprogram_Body): Select the appropriate type for
14447 locking entries when there is a protected type that implements a
14449 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
14450 classified as entry wrappers.
14451 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
14452 asynchronous selects.
14453 (Expand_N_Conditional_Entry_Call): Add support for expansion of
14454 dispatching conditional selects.
14455 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
14456 protection when there is a protected type that implements limited
14458 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
14460 (Extract_Dispatching_Call): Extract the entity of the name of a
14461 dispatching call, the object parameter, actual parameters and
14462 corresponding formals.
14463 (Make_Initialize_Protection): Correct logic of protection initialization
14464 when there is a protected type that implements a limited interface.
14465 (Parameter_Block_Pack): Populate a wrapped parameter block with the
14466 values of actual parameters.
14467 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
14468 block and assign them to the original actual parameters.
14470 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
14471 (Build_Protected_Sub_Specification): Change the type and name of the
14472 last formal to account for the increased variety of protection modes.
14474 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
14475 entities. Used to save the value of the Is_Hidden attribute when the
14476 limited-view is installed.
14477 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
14478 the attribute of procedures classified as entry wrappers.
14479 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
14480 entity of a primitive wrapper.
14481 (Write_Entity_Flags): Output the name and value of the
14482 Is_Primitive_Wrapper attribute.
14483 (Write_Field27_Name): Output the name and entity of the field Wrapped_
14485 (Underlying_Type): If we have an incomplete entity that comes from
14486 the limited view then we return the Underlying_Type of its non-limited
14487 view if it is already available.
14488 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
14489 including operators.
14490 (Write_Field26_Name): Add entry for Overridden_Operation
14491 (Overridden_Operation): New attribute of functions and procedures.
14493 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
14494 predefined position in the dispatch table for the primitive operations
14495 used in dispatching selects.
14496 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
14497 predefined primitive operations and replace it with
14498 Default_Prim_Op_Count.
14499 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
14500 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
14501 the names of the generated primitive operations used in dispatching
14503 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
14504 case of abstract interface types. They will be inherit by the objects
14505 implementing the interface.
14506 (Make_DT): There is no need to inherit the dispatch table of the
14507 ancestor interface for the elaboration of abstract interface types.
14508 The dispatch table will be inherited by the object implementing the
14510 (Copy_Secondary_DTs): Add documentation.
14511 (Validate_Position): Improve this static check in case of
14512 aliased subprograms because aliased subprograms must have
14514 (Init_Predefined_Interface_Primitives): New subprogram that initializes
14515 the entries associated with predefined primitives of all the secondary
14517 (Build_Anonymous_Access_Type): Removed.
14518 (Expand_Interface_Actuals): With the previous cleanup there is no need
14519 to build an anonymous access type. This allows further cleanup in the
14520 code generated by the expander.
14521 (Expand_Interface_Conversion): If the actual is an access type then
14522 build an internal function to handle the displacement. If the actual
14523 is null this function returns null because no displacement is
14524 required; otherwise performs a type conversion that will be
14525 expanded in the code that returns the value of the displaced actual.
14526 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
14527 conversions that have no effect in the generated code because no
14528 displacement is required. Code cleanup; use local variables to
14529 avoid repeated calls to the subprogram directly_designated_type().
14531 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
14532 Classify the primitive operations used in dispatching selects as
14534 (Implements_Limited_Interface): Determine whether some type either
14535 directly implements a limited interface or extends a type that
14536 implements a limited interface.
14537 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
14538 (Expand_Subtype_From_Expr): Do not build actual subtype if the
14539 expression is limited.
14540 (Find_Interface_Tag): Add code to handle class-wide types and
14541 entities from the limited-view.
14543 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
14544 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
14545 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
14546 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
14549 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
14550 of procedure name or prefix that appears as a trigger in a triggering
14553 * uintp.ads: Introduce constants Uint_11 and Uint_13.
14555 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14557 * s-tataat.adb, a-tasatt.adb:
14558 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
14560 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
14561 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
14562 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
14565 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14566 Jose Ruiz <ruiz@adacore.com>
14568 * s-taprop-vxworks.adb:
14569 Move with clauses outside Warnings Off now that dependent units are
14571 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
14572 initialization of this unit.
14573 (Specific): Add new procedures Initialize and Delete so that this
14574 package can be used for VxWorks 5.x and 6.x
14575 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
14576 differences between VxWorks 5.x and 6.x
14577 Minor reformatting.
14578 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
14580 Use only Preelaborate-compatible constructs.
14582 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
14583 Primitives.Operations.
14584 (Delete, Initialize): New procedures.
14586 * s-osinte-vxworks.adb: Body used to handle differences between
14587 VxWorks 5.x and 6.x
14588 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
14590 * s-osinte-vxworks.ads: Minor reformatting.
14591 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
14592 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
14594 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
14595 between Vxworks 5 and 6.
14596 (taskLock, taskUnlock): Removeed, no longer used.
14598 * adaint.c: The wait.h header is not located in the sys directory on
14599 VxWorks when using RTPs.
14600 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
14602 (__gnat_dup): dup is available on Vxworks when using RTPs.
14603 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
14605 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
14607 * expect.c: The wait.h header is not located in the sys directory on
14608 VxWorks when using RTPs.
14610 2005-09-01 Thomas Quinot <quinot@adacore.com>
14612 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
14614 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
14616 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
14617 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
14618 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
14619 g-soccon-freebsd.ads: Add new constants:
14621 SO_RCVTIMEO/SO_SNDTIMEO
14625 Move all target-specific file inclusions and macro definitions to
14626 gsocket.h, in order to ensure that any C code in socket.c will see a
14627 set of constants that is consistent with the contents of g-soccon.ads.
14629 * gsocket.h: Code imported from gen-soccon.c:
14630 Move all target-specific file inclusions and macro definitions to
14631 gsocket.h, in order to ensure that any C code in socket.c will see a set
14632 of constants that is consistent with the contents of g-soccon.ads.
14633 This change also makes gen-soccon self-contained (removing dependencies
14634 upon GCC internal headers).
14636 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
14638 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
14640 * socket.c: Minor reformatting.
14642 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14643 Thomas Quinot <quinot@adacore.com>
14645 * fname-sf.adb, mlib-tgt.ads,
14646 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
14647 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
14648 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
14649 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
14650 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
14651 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
14652 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
14653 makegpr.adb: Remove redundant use_clauses.
14655 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14657 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
14658 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
14659 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
14660 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
14661 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
14662 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
14663 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
14664 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
14665 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
14666 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
14667 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
14668 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
14669 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
14670 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
14671 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
14672 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14673 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
14674 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
14675 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
14676 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
14677 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
14678 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
14679 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
14680 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
14681 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
14682 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
14683 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
14684 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
14685 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
14686 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
14687 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
14688 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
14689 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
14690 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
14691 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
14692 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
14693 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
14694 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
14695 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
14696 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
14697 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
14698 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
14699 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
14700 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
14701 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
14702 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
14703 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
14704 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
14705 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
14706 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
14707 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
14708 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
14709 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
14710 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
14711 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
14712 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
14713 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
14714 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
14715 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
14716 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
14717 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
14718 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
14719 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
14720 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
14721 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
14722 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
14723 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
14724 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
14725 and always use the no parameter form for consistency.
14727 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
14729 2005-09-01 Robert Dewar <dewar@adacore.com>
14731 * binde.adb: Minor reformatting
14732 (Find_Elab_Order): Output warning if -p used with static elab order
14734 2005-09-01 Robert Dewar <dewar@adacore.com>
14736 * checks.adb (Check_Needed): New procedure, deals with removing checks
14737 based on analysis of short-circuited forms. Also generates warnings for
14738 improper use of non-short-circuited forms.
14741 2005-09-01 Robert Dewar <dewar@adacore.com>
14743 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
14746 2005-09-01 Robert Dewar <dewar@adacore.com>
14748 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
14750 Implement new insertion char < (conditional warning)
14751 * errutil.adb, erroutc.adb: Implement new insertion char <
14752 (conditional warning).
14753 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
14754 (Error_Msg_Warn): New variable for < insertion char.
14755 * prj-nmsc.adb: Implement new errout insertion char < (conditional
14757 (Check_For_Source): Change value of Source_Id only after the current
14758 source has been dealt with.
14760 2005-09-01 Robert Dewar <dewar@adacore.com>
14761 Doug Rupp <rupp@adacore.com>
14763 * exp_attr.adb: Handle vax fpt for 'Valid attribute
14764 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
14765 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
14766 (Valid_D, Valid_F, Valid_G): New functions
14768 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14769 Hristian Kirtchev <kirtchev@adacore.com>
14770 Javier Miranda <miranda@adacore.com>
14772 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
14773 from object notation, the original node is unanalyzed and carries no
14774 semantic information, so that accessiblity checks must be performed on
14775 the type of the actual itself.
14776 (Expand_N_Subprogram_Declaration): Change last actual parameter for
14777 compatibility with Build_Protected_Sub_Specification.
14778 (Check_Overriding_Inherited_Interfaces): Add suport to handle
14779 overloaded primitives.
14780 (Register_Interface_DT_Entry): Use the new name of the formal
14781 the the calls to Expand_Interface_Thunk
14783 * exp_dbug.ads: Augment comments on encoding of protected types to
14784 include the generation of dispatching subprograms when the type
14785 implements at least one interface.
14787 * lib.ads: Extend information in Load_Stack to include whether a given
14788 load comes from a Limited_With_Clause.
14790 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
14791 whether a potential circularity is harmless, because it includes units
14792 loaded through a limited_with clause. Extends previous treatment which
14793 did not handle properly arbitrary combinations of limited and
14794 non-limited clauses.
14796 2005-09-01 Nicolas Setton <setton@adacore.com>
14798 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
14799 to be encoded as typ___XBLU_lowerbound__upperbound instead of
14800 typ___XB_lowerbound__upperbound.
14802 2005-09-01 Thomas Quinot <quinot@adacore.com>
14804 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
14805 dummy access formal for RACW/RAS TypeCode TSS.
14806 (Build_TypeCode_Call): Do not generate dummy null access actual for
14807 calls to the TypeCode TSS.
14809 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14811 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
14812 fully qualified name, to distinguish instances with the same local name.
14814 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
14817 2005-09-01 Robert Dewar <dewar@adacore.com>
14819 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
14822 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
14824 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
14825 (Free): New deallocation procedure for filter elements
14826 (Close): Deallocate any existing filter for the concerned connection
14828 2005-09-01 Laurent Pautet <pautet@adacore.com>
14830 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
14831 position set is provided, we compute one in order to reduce the maximum
14832 length of the keys. This computation first selects a character
14833 position between 1 and the minimum length of the keys in order to
14834 avoid reducing one of the keys to an empty string.
14835 (Initialize, Compute): When the ratio V to K is too low, the algorithm
14836 does not converge. The initialization procedure now comes with a
14837 maximum number of iterations such that when exceeded, an exception is
14838 raised in Compute. The user can initialize this ratio to another value
14840 Reformating and updated headers.
14842 2005-09-01 Javier Miranda <miranda@adacore.com>
14844 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
14845 that given an entity T creates and returns an Itype that duplicates the
14846 contents of T. The returned Itype has the null-exclusion
14847 attribute set to True, and its Etype attribute references T
14848 to keep the association between the two entities.
14849 Update copyright notice
14851 * sem_aggr.adb (Check_Can_Never_Be_Null,
14852 Aggregate_Constraint_Checks, Resolve_Aggregate,
14853 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
14855 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
14857 2005-09-01 Gary Dismukes <dismukes@adacore.com>
14858 Robert Dewar <dewar@adacore.com>
14859 Hristian Kirtchev <kirtchev@adacore.com>
14861 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
14864 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
14866 Call Set_Result_Definition instead of Set_Subtype_Mark.
14867 (P_Subprogram_Specification): Add parsing of anonymous access result
14868 plus null exclusions. Call Set_Result_Definition instead of
14871 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
14872 (P_Access_Type_Definition): Add parsing for an anonymous access result
14873 subtype, plus parsing for null exclusions. Call Set_Result_Definition
14874 instead of Set_Subtype_Mark.
14876 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
14877 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
14878 (Result_Definition): New function for N_Function_Specifications.
14879 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
14880 N_Function_Specification.
14881 (Set_Null_Exclusion_Present): Allow this flag for
14882 N_Function_Specification.
14883 (Set_Result_Definition): New procedure for N_Function_Specifications.
14884 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
14885 and N_Function_Specification.
14887 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
14888 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
14889 Add support for LIMITED NEW for Ada 2005 AI-419
14890 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
14891 syntax for anonymous access results.
14892 Replace Subtype_Mark field by Result_Definition in
14893 N_Function_Specification and N_Access_Definition specs.
14894 Add Null_Exclusion_Present to spec of N_Function_Specification.
14895 (Result_Definition): New function for N_Function_Specification and
14896 N_Access_Function_Definition.
14897 (Set_Result_Definition): New procedure for N_Function_Specification and
14898 N_Access_Function_Definition.
14900 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
14901 Result_Definition for cases of N_Access_Function_Definition and
14902 N_Function_Specification.
14903 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
14905 2005-09-01 Vincent Celier <celier@adacore.com>
14907 * lib-writ.adb: Update Copyright notice
14908 (Write_With_Lines): On platforms where file names are case-insensitive,
14909 record the file names in lower case.
14910 (Write_ALI): For D lines, on platforms where file names are
14911 case-insensitive, record the file names in lower case.
14913 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14914 Emmanuel Briot <briot@adacore.com>
14916 * lib-xref.adb (Output_Overridden_Op): Display information on
14917 overridden operation.
14919 * lib-xref.ads: Add documentation on overridden operations.
14921 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
14924 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
14925 overriding entity information.
14927 2005-09-01 Vincent Celier <celier@adacore.com>
14929 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
14930 including those that are inherited.
14932 2005-09-01 Robert Dewar <dewar@adacore.com>
14934 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
14936 * par-prag.adb: Implement new pragma Debug_Policy
14938 * sem_prag.adb Implement new pragma Debug_Policy
14939 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
14940 Component_Size attribute specification. Give warning for ignored pragma
14943 * snames.h, snames.ads, snames.adb: Introduce entries in
14944 Preset_Names for Name_Disp_Asynchronous_Select,
14945 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
14946 Name_Disp_Timed_Select.
14947 New pragma Debug_Policy
14949 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
14951 Switch -gnata also sets Debug_Pragmas_Enabled
14953 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
14954 handle an explicit -gnata when compiling predefined files.
14956 2005-09-01 Vincent Celier <celier@adacore.com>
14958 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
14959 directories of projects that have no Ada sources.
14961 2005-09-01 Robert Dewar <dewar@adacore.com>
14963 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
14964 (makes a difference for wide characters)
14966 * widechar.adb, widechar.ads:
14967 Add Wide_Char_Byte_Count feature to count chars vs bytes
14969 2005-09-01 Thomas Quinot <quinot@adacore.com>
14970 Ed Schonberg <schonberg@adacore.com>
14971 Robert Dewar <dewar@adacore.com>
14973 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
14974 'Address attribute reference with an overloaded prefix, use the
14975 location of the prefix (not the location of the attribute reference) as
14976 the error location.
14977 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
14978 a function renaming thereof, is a valid prefix for 'Size (where it is
14979 intepreted as a function call).
14980 (Statically_Denotes_Entity): New predicate to determine whether the
14981 prefix of an array attribute can be considered static.
14984 (Eval_Attr): Fix failure to evaluate Component_Size for
14985 unconstrained arrays (resulted in wrong value in packed case, since
14986 back end cannot handle this case)
14988 2005-09-01 Robert Dewar <dewar@adacore.com>
14990 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
14991 error msgs for most common cases.
14992 Use new errout insertion char < (conditional warning)
14994 2005-09-01 Javier Miranda <miranda@adacore.com>
14995 Ed Schonberg <schonberg@adacore.com>
14997 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
14998 become local to the whole package.
14999 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
15000 the package was already analyzed the new algorithm "replaces" the
15001 real entities by the shadow ones. This is required to ensure that
15002 the order of these entities in the homonym chains does not change;
15003 otherwise we can have undefined references at linking time because
15004 in case of conflicts the external name of the entities will have
15005 a suffix that depends on the order of the entities in the chain.
15006 (Remove_Limited_With_Clause): Complementary code that completes the
15007 new algorithm and replaces the shadow entities by the real ones.
15008 (Install_Limited_Withed_Unit): When unchaining entities before the
15009 installation of the shadow entities, only regular entities of the
15010 public part must be taken into account. This is required to
15011 keep this routine in synch with the work done by Remove_Limited_
15013 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
15014 even if unit is analyzed, because the analysis of the unit is
15015 idempotent in any case, and the limited view of the unit may have to
15016 be installed for proper visibility.
15017 (Expand_Limited_With_Clause): Even if the unit in the implicit
15018 with_clause has been analyzed already, a limited view of the package
15019 must be built for the current context, if it does not exist yet.
15021 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15022 Javier Miranda <miranda@adacore.com>
15023 Gary Dismukes <dismukes@adacore.com>
15025 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
15026 defining entity for the instance body, make a new defining identifier
15027 rather than copying the entity of the spec, to prevent accidental
15028 sharing of the entity list.
15029 (Check_Private_View): When exchanging views of private types, build the
15030 list of exchanged views as a stack, to ensure that on exit the exchanges
15031 are undone in the proper order.
15032 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
15033 Restore the compilation environment in case of instantiation_error.
15034 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
15035 for an anonymous access result.
15036 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
15037 (Formal_Entity): Handle properly the case of a formal package that
15038 denotes a generic package renaming.
15040 2005-09-01 Thomas Quinot <quinot@adacore.com>
15042 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
15043 clause if the array aggregate is surrounded by parentheses.
15045 2005-09-01 Cyrille Comar <comar@adacore.com>
15046 Gary Dismukes <dismukes@adacore.com>
15047 Ed Schonberg <schonberg@adacore.com>
15048 Javier Miranda <miranda@adacore.com>
15050 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
15052 to check if a type is Constrained in cases related to code generation
15053 (rather than semantic checking) since otherwise we do not generate
15054 similar code for mutable private types depending if their
15055 discriminants are visible or not.
15056 (Check_Abstract_Overriding): Do not complain about failure to override
15057 the primitive operations used in dispatching selects since they will
15058 always be overriden at the freeze point of the type.
15059 (Access_Definition): Separate out handling for resetting the scope
15060 of an anonymous access function result type. Retrieve the scope
15061 of the associated function rather than using Current_Scope, which
15062 does not have a consistent value (depends on whether we're in the
15063 middle of analyzing formal parameters). Add ??? comment about
15064 finding a cleaner way to handle the special cases of scope setting.
15065 (Process_Incomplete_Dependents): A protected operation is never a
15066 dispatching operation (only its wrapper may be).
15067 (Build_Derived_Record_Type): In case of tagged private types that
15068 implement interfaces add derivation of predefined primitive
15070 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
15071 by two parameters that are used in case of derivation from abstract
15072 interface types: No_Predefined_Prims is used to avoid the derivation
15073 of predefined primitives from the interface, and Predefined
15074 Prims_Only is used to complete the derivation predefined primitives
15075 in case of private tagged types implementing interfaces.
15076 Fix typo in comments
15077 (Find_Interface_In_Descendant): Protect the frontend against
15078 wrong code with large circularity chains.
15079 (Is_Private_Overriding): Add support for entities overriding interface
15080 subprograms. The test failed because Entities associated with overriden
15081 interface subprograms are always marked as hidden (and used to build
15082 the secondary dispatch table); in this case the overriden entity is
15083 available through the field abstract_interface_alias (cf. override_
15084 dispatching_operation)
15085 (Access_Definition): Set the scope of the type to Current_Scope for the
15086 case of a function with an anonymous access result type.
15087 (Access_Subprogram_Declaration): Handle creation of the type entity for
15088 an access-to-function type with an anonymous access result.
15089 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
15090 in handling for N_Access_Function_Definition.
15091 (Analyze_Subtype_Declaration): Modify the text of error message.
15092 (Derived_Type_Declaration): Modify the text of error message.
15093 (Process_Subtype): Modify the text of error message plus cleanup
15094 of one redundant error message.
15095 (Analyze_Component_Declaration): Code cleanup.
15096 (Analyze_Object_Declaration): Code cleanup.
15097 (Analyze_Subtype_Declaration): Propagate the null-exclusion
15098 attribute in case of access types. Code cleanup.
15099 (Array_Type_Declaration): Code cleanup.
15100 (Process_Discriminants): Create the new null-excluding itype
15101 if required. Code cleanup.
15102 (Process_Subtype): Create the new null-excluding itype if
15103 required. Code cleanup.
15104 (Build_Derived_Record_Type): Code cleanup to avoid calling
15105 twice the subprogram derive_subprograms in case of private
15106 types that implement interfaces. In this particular case the
15107 subprogram Complete_Subprograms_Derivation already does the
15108 job associated with the second call.
15110 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
15111 conversion to the full view when generating an operation for a
15112 discriminant whose type may currently be private.
15114 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15115 Javier Miranda <miranda@adacore.com>
15117 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
15118 V (Obj.F), the rewriting does not involve the indexed component, but
15119 only the selected component itself.
15120 Do not apply the transformation if the analyzed node is an actual of a
15121 call to another subprogram.
15122 (Complete_Object_Operation): Retain the entity of the
15123 dispatching operation in the selector of the rewritten node. The
15124 entity will be used in the expansion of dispatching selects.
15125 (Analyze_One_Call): Improve location of the error message associated
15127 (Analyze_Selected_Component): No need to resolve prefix when it is a
15128 function call, resolution is done when parent node is resolved, as
15130 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
15131 when attempting to resolve a call transformed from its object notation.
15132 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
15133 of the argument list for each interpretation of the operation.
15134 (Try_Object_Operation): The designated type of an access parameter may
15135 be an incomplete type obtained through a limited_with clause, in which
15136 case the primitive operations of the type are retrieved from its full
15138 (Analyze_Call): If this is an indirect call, and the return type of the
15139 access_to_subprogram is incomplete, use its full view if available.
15141 2005-09-01 Javier Miranda <miranda@adacore.com>
15142 Gary Dismukes <dismukes@adacore.com>
15144 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
15145 access types the null-exclusion and access-to-constant attributes must
15147 (Analyze_Return_Statement): When the result type is an anonymous access
15148 type, apply a conversion of the return expression to the access type
15149 to ensure that appropriate accessibility checks are performed.
15150 (Analyze_Return_Type): For the case of an anonymous access result type,
15151 generate the Itype and set Is_Local_Anonymous_Access on the type.
15152 Add ??? placeholder for check to disallow returning a limited object
15153 in Ada 2005 unless it's an aggregate or a result of a function call.
15154 Change calls from Subtype_Mark to Result_Definition.
15155 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
15156 Result_Definition in call to Make_Function_Specification.
15157 (Build_Body_To_Inline): Change Set_Subtype_Mark to
15158 Set_Result_Definition.
15159 (Make_Inequality_Operator): Change formal Subtype_Mark to
15160 Result_Definition in call to Make_Function_Specification.
15161 (Process_Formals): Create the new null-excluding itype if required.
15162 (New_Overloaded_Entity): For an entity overriding an interface primitive
15163 check if the entity also covers other abstract subprograms in the same
15164 scope. This is required to handle the general case, that is, overriding
15165 other interface primitives and overriding abstract subprograms inherited
15166 from some abstract ancestor type.
15167 (New_Overloaded_Entity): For an overriding entity that comes from
15168 source, note the operation that it overrides.
15169 (Check_Conformance, Type_Conformant): Addition of one new formal
15170 to skip controlling formals in the analysis. This is used to
15171 handle overloading of abstract interfaces.
15172 (Base_Types_Match): Add missing case for types imported from
15173 limited-with clauses
15174 (New_Overloaded_Entity): Add barrier to protect the use of
15175 the "alias" attribute.
15177 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15179 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
15180 verify that the procedure and the entry are mode conformant.
15181 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
15182 as a different operator, which is often a cut-and-paste error.
15184 2005-09-01 Javier Miranda <miranda@adacore.com>
15185 Ed Schonberg <schonberg@adacore.com>
15187 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
15188 used in controlling parameters exclude null because it is necessary to
15189 read the tag to dispatch, and null has no tag.
15190 (Override_Dispatching_Operation): If the previous operation is inherited
15191 from an interface, it becomes hidden and does not participate in later
15194 2005-09-01 Javier Miranda <miranda@adacore.com>
15195 Ed Schonberg <schonberg@adacore.com>
15196 Gary Dismukes <dismukes@adacore.com>
15198 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
15199 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
15200 the expander will generate the corresponding run-time check to evaluate
15202 (Resolve_Call): Check for legal type of procedure name or prefix that
15203 appears as a trigger in a triggering alternative.
15204 (Valid_Conversion): If expression is ambiguous and the context involves
15205 an extension of System, remove System.Address interpretations.
15206 (Resolve_Qualified_Expression): Reject the case of a specific-type
15207 qualification applied to a class-wide argument. Enhance comment
15208 to explain checking of Original_Node.
15209 (Resolve_Type_Conversion): The location of the error message was not
15210 general enough to handle the general case and hence it has been removed.
15211 In addition, this patch improves the text of the message.
15212 (Resolve_Type_Conversion): Add missing support for access to interface
15214 (Resolve_Type_Conversion): If the target is a class-wide interface type,
15215 do not expand if the expression is the actual in a call, because proper
15216 expansion will take place when the call itself is expanded.
15217 (Resolve_Allocator): If the context is an unchecked conversion, the
15218 allocator inherits its storage pool, if any, from the target type of
15221 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15222 Javier Miranda <miranda@adacore.com>
15224 * sem_type.adb (Add_One_Interp): If a candidate operation is an
15225 inherited interface operation that has an implementation, use the
15226 implementation to avoid spurious ambiguities.
15227 (Interface_Present_In_Ancestor): In case of concurrent types we can't
15228 use the Corresponding_Record_Typ attribute to look for the interface
15229 because it is set by the expander (and hence it is not always
15230 available). For this reason we traverse the list of interfaces
15231 (available in the parent of the concurrent type).
15232 (Interface_Present_In_Ancestor): Handle entities from the limited view
15234 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15236 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
15237 from the list of required components.
15238 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
15239 primitive procedure of a limited interface with a controlling first
15241 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
15243 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
15244 capture if it is generated in the second operand of a short-circuit
15246 Do not capture values for variables with address clauses.
15247 (Is_Object_Reference): Treat a function call as an object reference only
15248 if its type is not Standard_Void_Type.
15250 2005-09-01 Ed Schonberg <schonberg@adacore.com>
15252 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
15253 to a variable that is statically known to be constant.
15255 2005-09-01 Geert Bosch <bosch@adacore.com>
15256 Robert Dewar <dewar@adacore.com>
15258 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
15259 (VAXGF_Safe_First): Idem.
15261 2005-09-01 Robert Dewar <dewar@adacore.com>
15262 Arnaud Charlet <charlet@adacore.com>
15264 * g-dirope.ads: Minor reformatting
15265 Document that bounds of result of Base_Name match the input index
15267 Add documentation on environment variable syntax for Expand_Path
15269 * gnat_ugn.texi: Update documentation to include mention of -m switches
15270 Document new treatment of wide characters in max line length
15272 Remove -gnatL/-gnatZ switches, no longer used.
15273 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
15276 * gnat_rm.texi: Add doc for two argument form of pragma
15277 Float_Representation.
15278 Add documentation for pragma No_Strict_Aliasing
15279 Add note that explicit component clause overrides pragma Pack.
15280 Add documentation of pragma Debug_Policy
15282 2005-09-01 Matthew Heaney <heaney@adacore.com>
15284 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
15285 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
15286 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
15287 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
15288 draft (Draft 13, August 2005) of Ada Amendment 1.
15290 2005-09-01 Arnaud Charlet <charlet@adacore.com>
15292 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
15293 Note that the platform-specific version of g-soccon.ads for VMS is now
15294 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
15295 really is a package spec).
15296 Replace s-taspri-linux.ads by s-taspri-posix.ads
15297 Remove references to s-mastop-x86.adb
15299 * system-vxworks-xscale.ads: Removed, no longer used.
15300 * s-vxwork-xscale.ads: Removed, no longer used.
15302 2005-09-01 Robert Dewar <dewar@adacore.com>
15304 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
15305 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
15306 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
15307 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
15308 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
15309 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
15310 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
15311 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
15312 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
15313 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
15314 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
15315 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
15316 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
15317 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
15318 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
15319 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
15320 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
15321 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
15322 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
15323 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
15324 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
15326 2005-08-29 Arnaud Charlet <charlet@adacore.com>
15330 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
15332 2005-08-29 Arnaud Charlet <charlet@adacore.com>
15333 Doug Rupp <rupp@adacore.com>
15335 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
15337 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
15338 this code in the GNAT run-time.
15340 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
15343 * init.c (__gnat_error_handler [many]): Mark "msg" as const
15344 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
15346 (__gnat_inside_elab_final_code): Moved here from
15347 Standard_Library and only defined for the compiler.
15348 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
15349 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
15350 using RTPs because directly vectored Interrupt routines are not
15351 supported on this configuration.
15352 (getpid): Do not redefine this function on VxWorks when using RTPs
15353 because this primitive is well supported by the RTP libraries.
15354 (copy_msg): Correct the code that checks for buffer overflow.
15355 Discovered during code reading.
15357 2005-08-29 Olivier Hainque <hainque@adacore.com>
15359 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
15360 a library level mutable variable with an initializer, tell
15361 build_allocator to ignore the initializer's size. It may not be large
15362 enough for all the values that might be assigned to the variable later
15365 2005-08-29 Arnaud Charlet <charlet@adacore.com>
15366 Eric Botcazou <ebotcazou@adacore.com>
15368 * trans.c: Protect < in error msg with quote
15369 Replace GCC_ZCX by Back_End_Exceptions.
15370 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
15371 has been sufficiently aligned in the record.
15373 2005-08-15 James E. Wilson <wilson@specifix.com>
15375 * system-linux-alpha.ads: Change ia64 to alpha.
15377 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
15379 * decl.c, utils.c: Fix comment typos.
15381 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
15383 * decl.c, init.c, initialize.c: Fix comment typos.
15385 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
15387 Make CONSTRUCTOR use VEC to store initializers.
15388 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
15390 * trans.c (extract_values): Likewise.
15391 * utils.c (convert, remove_conversions): Likewise.
15392 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
15393 gnat_build_constructor): Likewise.
15395 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
15397 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
15399 (compare_field_bitpos): Likewise.
15401 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
15403 * utils.c (create_var_decl): Only set DECL_COMMON on
15404 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
15405 VAR_OR_FUNCTION_DECL_P.
15407 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
15409 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
15412 2005-07-07 Pascal Obry <obry@adacore.com>
15414 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
15415 returned type on Windows.
15417 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
15420 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
15421 exception in this case.
15422 Simplify the code as "Image (Image'Range)" = "Image".
15424 2005-07-07 Vincent Celier <celier@adacore.com>
15426 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
15427 the destructor/constructor attributes for <lib>final/<lib>init.
15429 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
15431 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
15433 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
15434 type if the parameter is not passed by copy but reference by default.
15436 2005-07-07 Javier Miranda <miranda@adacore.com>
15438 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
15439 Reimplementation of the support for abstract interface types in order
15440 to leave the code more clear and easy to maintain.
15442 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
15443 abstract interface types in order to leave the code clearer and easier
15446 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
15447 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
15448 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
15449 appropriate entry of the secondary dispatch table.
15450 (Make_DT): Add code to inherit the secondary dispatch tables of
15453 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
15454 implementing both functionalities by means of a common routine, each
15455 routine has its own code.
15457 2005-07-07 Javier Miranda <miranda@adacore.com>
15459 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
15461 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
15464 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
15467 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
15468 use of tag incomplete types.
15470 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
15471 give support to tagged incomplete types.
15473 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
15474 expression is a discriminant reference and its type is private, as can
15475 happen within a stream operation for a mutable record, use the full
15476 view of the type to resolve the case alternatives.
15477 (Analyze_Assignment): Check wrong dereference of incomplete types.
15479 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
15482 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
15485 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
15486 N_Incomplete_Type_Declaration nodes.
15488 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
15489 Tag_Present to give support to tagged incomplete types:
15491 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
15494 2005-07-07 Olivier Hainque <hainque@adacore.com>
15497 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
15498 definitions for the Unwind wrappers in the compiler case.
15500 2005-07-07 Ed Schonberg <schonberg@adacore.com>
15501 Javier Miranda <miranda@adacore.com>
15503 * par-load.adb (Load): If a child unit is loaded through a limited_with
15504 clause, each parent must be loaded as a limited unit as well.
15506 * sem_ch10.adb (Previous_Withed_Unit): Better name for
15507 Check_Withed_Unit. Return true if there is a previous with_clause for
15508 this unit, whether limited or not.
15509 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
15511 (Is_Visible_Through_Renamings): New local subprogram of install_limited
15512 _withed_unit that checks if some package installed through normal with
15513 clauses has a renaming declaration of package whose limited-view is
15514 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
15515 of the current Draft document for Ada 2005.
15516 (Analyze_Context): Complete the list of compilation units that
15517 are allowed to contain limited-with clauses. It also contains
15518 checks that were previously done by Install_Limited_Context_Clauses.
15519 This makes the code more clear and easy to maintain.
15520 (Expand_Limited_With_Clause) It is now a local subprogram of
15521 Install_Limited_Context_Clauses, and contains the code that adds
15522 the implicit limited-with clauses for parents of child units.
15523 This functionality was prevously done by Analyze_Context.
15525 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
15528 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
15529 been erroneously named in a limited-with clause of its own context.
15530 In this case the error has been previously notified by Analyze_Context.
15532 2005-07-07 Ed Schonberg <schonberg@adacore.com>
15534 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
15535 generic package that contains local declarations with the same name.
15536 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
15538 2005-07-07 Bernard Banner <banner@adacore.com>
15540 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
15541 ia64 platform only on platforms that you the GCC unwind library
15542 rather than the system unwind library.
15544 2005-07-07 Thomas Quinot <quinot@adacore.com>
15546 * expect.c: Minor reformatting
15548 2005-07-07 Sergey Rybin <rybin@adacore.com>
15550 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
15553 * gnat_ugn.texi: Add description for new gnatpp option
15556 2005-07-04 Thomas Quinot <quinot@adacore.com>
15558 * g-expect-vms.adb, g-expect.ads, g-expect.adb
15559 (Get_Command_Output): New subprogram to launch a process and get its
15560 standard output as a string.
15562 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
15563 Olivier Hainque <hainque@adacore.com>
15565 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
15566 fetch a code-range descriptor associated with the machine state. On
15567 failure set the machine state's PC to 0; on success, pass the
15568 descriptor to exc_virtual_unwind.
15570 * init.c (Tru64 section): New function __gnat_set_code_loc.
15572 2005-07-04 Vincent Celier <celier@adacore.com>
15574 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15575 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
15576 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
15577 Remove all auto-initialization code, as this is now done through the
15578 constructor mechanism.
15580 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
15581 __gnat_sals_init_using_constructors): New functions.
15583 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
15584 Linker_Constructor and Linker_Destructor when switch -a is used.
15586 * bindusg.adb: Add line for new switch -a
15588 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
15589 (Gnatbind): When switch -a is used, check if it is allowed
15591 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
15593 2005-07-04 Joel Brobecker <brobecker@adacore.com>
15595 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
15596 This prevents us from hitting a limitation during the debug info
15597 generation when using stabs.
15598 (Prims_Ptr): Likewise.
15600 2005-07-04 Gary Dismukes <dismukes@adacore.com>
15601 Ed Schonberg <schonberg@adacore.com>
15602 Javier Miranda <miranda@adacore.com>
15604 * checks.adb (Null_Exclusion_Static_Checks): In the case of
15605 N_Object_Declaration, only perform the checks if the Object_Definition
15606 is not an Access_Definition.
15608 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
15609 where the parent of an the access definition is an N_Object_Declaration
15610 when determining the Associated_Node_For_Itype and scope of an
15611 anonymous access-to-subprogram type.
15613 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
15614 Corresponding_Spec on the body created for a null procedure. Add ???
15615 comment. Remove New_Copy_Tree call on body argument to
15616 Set_Body_To_Inline.
15618 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
15619 discriminants, use the type of the actual as well, because the
15620 discriminants may be read by the called subprogram.
15622 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
15623 access type we do not need to handle non-limited views.
15624 (Build_Derived_Record_Type): Additional check to check that in case of
15625 private types, interfaces are only allowed in private extensions.
15627 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
15629 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
15630 <Pragma_Linker_Destructor>: Likewise.
15632 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
15633 Pragma_Linker_Destructor.
15635 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
15636 ATTR_LINK_DESTRUCTOR.
15637 (static_ctors, static_dtors): New variables.
15639 * misc.c (gnat_expand_body): Output current function as constructor
15640 and destructor if requested.
15642 * par-prag.adb: Add processing for pragma Linker_Constructor and
15645 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
15646 extracted from Check_Interrupt_Or_Attach_Handler.
15647 (Check_Interrupt_Or_Attach_Handler): Invoke it.
15648 Implement pragma Linker_Constructor and Linker_Destructor with the
15649 help of Find_Unique_Parameterless_Procedure.
15650 Replace Name_Alias with Name_Target for pragma Linker_Alias.
15652 * snames.h, snames.ads, snames.adb:
15653 Add Name_Linker_Constructor and Name_Linker_Destructor.
15654 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
15655 * snames.adb: Remove Name_Alias.
15657 * trans.c: Include cgraph.h.
15658 (build_global_cdtor): New function.
15659 (Compilation_Unit_to_gnu): Build global constructor and destructor if
15661 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
15663 (addressable_p) <COMPONENT_REF>: Unconditionally test
15664 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
15666 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
15667 variable if it is external.
15669 (static_ctors, static_dtors): New global variables.
15670 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
15671 <ATTR_LINK_DESTRUCTOR>: Likewise.
15672 (end_subprog_body): Chain function as constructor and destructor
15675 * exp_util.adb (Force_Evaluation): Unconditionally invoke
15676 Remove_Side_Effects with Variable_Ref set to true.
15677 (Remove_Side_Effects): Handle scalar types first. Use a renaming
15678 for non-scalar types even if Variable_Ref is true and for class-wide
15681 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15683 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
15684 to prevent spurious warnings.
15686 2005-07-04 Thomas Quinot <quinot@adacore.com>
15688 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
15689 Itypes. Itypes are really unexpected there.
15690 (Build_TypeCode_Function): Generalise special processing for Itypes to
15691 handle the case of numeric implicit base types as well as enumerated
15694 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15696 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
15697 controlled, indicate the expected type of the dereference that is
15698 created for the call to Deep_Finalize, to prevent spurious errors when
15699 the designated type is private and completed with a derivation from
15700 another private type.
15702 2005-07-04 Vincent Celier <celier@adacore.com>
15704 * make.adb (Change_To_Object_Directory): When unable to change the
15705 current dir to the object directory, output the full path of the
15708 2005-07-04 Matthew Gingell <gingell@adacore.com>
15710 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
15712 * indepsw-linux.adb: Replace by...
15714 * indepsw-gnu.adb: ...this new file
15716 2005-07-04 Vincent Celier <celier@adacore.com>
15718 * mlib-prj.adb (Auto_Initialize): New constant String
15719 (SALs_Use_Constructors): New Boolean function
15720 (Build_Library): Call gnatbind with Auto_Initialize switch when
15721 SALs_Use_Constructors returns True.
15723 * mlib-tgt.ads: Minor reformatting
15725 * mlib-utl.ads: Minor reformatting
15727 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
15729 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15731 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
15732 single protected declarations can have an interface list.
15733 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
15734 with seriously malformed entry declarations, and lead to compilation
15735 abandoned messages.
15737 2005-07-04 Javier Miranda <miranda@adacore.com>
15739 * par-load.adb: Load the context items in two rounds.
15741 2005-07-04 Robert Dewar <dewar@adacore.com>
15743 * scng.adb: Do not consider Mod used as an attribute to be a keyword
15745 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15746 Javier Miranda <miranda@adacore.com>
15748 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
15749 type extension needs a limited view.
15750 Remove previous restriction on private types available through the
15751 limited-view (only tagged private types were previously allowed).
15752 (Install_Withed_Unit): In the code that implements the
15753 legality rule given in AI-377, exclude a child unit with the name
15754 Standard, because it is a homonym of the Standard environment package.
15756 2005-07-04 Thomas Quinot <quinot@adacore.com>
15758 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
15759 overloaded function call, carry interpretations from the original tree
15762 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15764 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
15765 types check whether some designated type is a limited view, and use
15766 the non-limited view if available.
15768 2005-07-04 Gary Dismukes <dismukes@adacore.com>
15770 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
15771 constraint of full view of a private view T1 if present, when T2 is a
15772 discriminated full view.
15774 2005-07-04 Thomas Quinot <quinot@adacore.com>
15776 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
15777 actual that is a view conversion of a bit packed array reference.
15779 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15781 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
15782 present before checking whether an interface type covers a synchronized
15785 2005-07-04 Ed Schonberg <schonberg@adacore.com>
15787 * sem_util.adb (Is_Object_Reference): An indexed or selected component
15788 whose prefix is an implicit dereference is an object reference. Removes
15789 spurious errors when compiling with -gnatc.
15791 2005-07-04 Robert Dewar <dewar@adacore.com>
15794 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
15796 2005-07-04 Matthew Gingell <gingell@adacore.com>
15798 * tracebak.c: Enable tracebacks on ia64 platforms
15800 2005-07-04 Vincent Celier <celier@adacore.com>
15802 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
15803 the GNAT BIND command, as gnatbind accepts multiples ALI files with
15804 the -L or -n switches.
15806 2005-07-04 Vincent Celier <celier@adacore.com>
15808 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
15809 correctly computed and the main project data is not modified while
15811 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
15812 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
15813 c++linker as this does not work on some platforms.
15815 2005-07-04 Matthew Heaney <heaney@adacore.com>
15817 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
15819 * a-coinve.adb: Perform constraint checks explicitly.
15821 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15822 Thomas Quinot <quinot@adacore.com>
15824 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
15825 new target gen-soccon.
15827 2005-07-04 Robert Dewar <dewar@adacore.com>
15829 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
15831 2005-07-04 Thomas Quinot <quinot@adacore.com>
15833 * g-socket.ads (Check_Selector): Minor rewording of comment.
15835 2005-07-04 Vincent Celier <celier@adacore.com>
15837 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
15839 2005-07-04 Thomas Quinot <quinot@adacore.com>
15841 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
15843 2005-07-04 Sergey Rybin <rybin@adacore.com>
15845 * gnat_ugn.texi: Add description of --eol gnatpp option
15847 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
15848 Thomas Quinot <quinot@adacore.com>
15850 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
15851 if the user wants all calls of a subprogram to be flagged,
15852 independently of whether they are made from within the same unit or
15854 Mention restriction for pragma Linker_Alias on some platforms.
15855 Document pragma Linker_Constructor and Linker_Destructor.
15856 Rewrite documentation of Weak_External, Linker_Section and
15857 Linker_Alias pragmas.
15859 2005-07-04 Arnaud Charlet <charlet@adacore.com>
15861 * s-stausa.ads, s-stausa.adb: New files.
15863 2005-06-30 Kelley Cook
15865 * all files: Update FSF address in copyright headers.
15866 * gen-soccon.co (main): Output new FSF address in generated files.
15868 2005-06-28 Paul Brook <paul@codesourcery.com>
15870 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
15872 2005-06-14 Olivier Hainque <hainque@adacore.com>
15873 Eric Botcazou <ebotcazou@adacore.com>
15875 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
15876 exc_unwind, now that we are generating proper .debug_frame output for
15879 * tracebak.c: Remove the mips-irix section, as we are now using the
15880 s-mastop based unwinder again.
15881 Under SPARC/Solaris, take into account the stack bias to compute the
15882 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
15885 2005-06-14 Doug Rupp <rupp@adacore.com>
15887 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
15889 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
15891 2005-06-14 Pascal Obry <obry@adacore.com>
15893 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
15894 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
15895 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
15898 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
15899 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
15900 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
15901 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
15902 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
15903 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
15904 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
15905 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
15906 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
15907 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
15908 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
15909 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
15910 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
15911 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
15912 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
15913 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
15914 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
15915 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
15916 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
15917 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
15918 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
15919 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
15920 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
15921 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
15922 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
15923 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
15924 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
15925 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
15926 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
15927 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
15928 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
15929 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
15930 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
15931 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
15932 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
15933 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
15934 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
15935 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
15936 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
15937 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
15938 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
15939 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
15940 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
15941 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
15942 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
15943 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
15944 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
15945 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
15946 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
15947 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
15948 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
15949 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
15950 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
15951 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
15952 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
15953 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
15954 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
15955 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
15956 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
15957 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
15958 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
15959 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
15960 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
15961 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
15962 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
15963 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
15964 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
15965 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
15966 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
15967 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
15968 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
15969 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
15970 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
15971 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
15972 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
15973 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
15974 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
15975 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
15976 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
15977 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
15978 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
15979 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
15980 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
15981 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
15982 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
15983 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
15984 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
15985 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
15986 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
15987 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
15988 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
15989 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
15990 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
15991 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
15992 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
15993 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
15994 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
15995 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
15996 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
15997 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
15998 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
15999 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
16000 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
16001 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
16002 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
16003 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
16004 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
16005 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
16006 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
16007 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
16008 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
16009 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
16010 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
16011 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
16012 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
16013 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
16014 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
16015 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
16016 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
16017 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
16018 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
16019 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
16020 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
16021 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
16022 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
16023 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
16024 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
16025 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
16026 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
16027 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
16028 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
16029 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
16030 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
16032 2005-06-14 Jose Ruiz <ruiz@adacore.com>
16033 Arnaud Charlet <charlet@adacore.com>
16035 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
16036 longer protected objects. They have been replaced by lower-level
16037 suspension objects made up by a mutex and a condition variable (or
16038 their equivalent given a particular OS) plus some internal data to
16039 reflect the state of the suspension object.
16040 (Initialize, Finalize): Add this initialization procedure for
16041 Suspension_Object, which is a controlled type.
16042 (Finalize): Add the finalization procedure for Suspension_Object,
16043 which is a controlled type.
16045 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
16046 Ada.Synchronous_Task_Control because there is no longer a need for a
16047 VxWorks specific version of this package. Target dependencies
16048 has been moved to System.Task_Primitives.Operations.
16050 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
16052 (InitializeCriticalSection, EnterCriticalSection,
16053 LeaveCriticalSection, DeleteCriticalSection): Replace the type
16054 pCriticalSection by an anonymous access type so that we avoid problems
16055 of accessibility to local objects.
16057 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
16058 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
16059 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
16060 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
16061 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
16062 set the environment task mask here.
16063 (Current_State): Add this function that returns the state of the
16065 (Set_False): Add this procedure that sets the state of the suspension
16067 (Set_True): Add this procedure that sets the state of the suspension
16068 object to True, releasing the task that was suspended, if any.
16069 (Suspend_Until_True): Add this procedure that blocks the calling task
16070 until the state of the object is True. Program_Error is raised if
16071 another task is already waiting on that suspension object.
16072 (Initialize): Add this procedure for initializing the suspension
16073 object. It initializes the mutex and the condition variable which are
16074 used for synchronization and queuing, and it sets the internal state
16076 (Finalize): Add this procedure for finalizing the suspension object,
16077 destroying the mutex and the condition variable.
16079 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
16080 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
16081 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
16082 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
16083 which provides a low-level abstraction (using operating system
16084 primitives) for Ada.Synchronous_Task_Control.
16085 This object is made up by a mutex (for ensuring mutual exclusion), a
16086 condition variable (for queuing threads until the condition is
16087 signaled), a Boolean (State) indicating whether the object is open,
16088 and a Boolean (Waiting) reflecting whether there is a task already
16089 suspended on this object.
16091 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
16092 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
16093 s-intman-vms.ads, s-intman-mingw.adb,
16094 (Initialize_Interrupts): Removed, no longer used.
16096 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
16097 (Setup_Interrupt_Mask): New procedure.
16099 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
16101 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
16103 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
16104 this is no longer done in the body of s-taprop
16105 (Server_Task): Explicitely test for Pending_Action in case
16106 System.Parameters.No_Abort is True.
16108 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
16109 is no longer done in the body of s-taprop
16111 2005-06-14 Robert Dewar <dewar@adacore.com>
16113 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
16114 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
16115 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
16116 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
16117 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
16118 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
16119 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
16120 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
16121 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
16122 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
16123 system-linux-hppa.ads, system-vms_64.ads,
16124 system-vxworks-alpha.ads: Minor comment update for
16125 AI-362 (unit is Pure).
16127 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
16128 Add pragma Pure_05 for AI-362
16129 Make remaining conversion functions obsolescent in Ada 95
16131 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
16132 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
16133 Add entries for a-wichun and a-zchuni
16134 Add a-widcha a-zchara for AI-395
16135 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
16137 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
16138 Add entries for a-wichun.o and a-zchuni.o
16139 Entries for a-widcha.o and a-zchara.o
16140 Add entry for a-chacon.o
16142 * a-ztenau.adb: Add with of Ada.Characters.Conversions
16144 * a-chacon.ads, a-chacon.adb: New files.
16146 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
16147 categorization violations.
16149 * a-strmap.ads: Add pragma Pure_05 for AI-362
16150 * a-strmap.ads: Add note on implicit categorization for AI-362
16152 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
16154 * par-prag.adb: Dummy entry for pragma Persistent_BSS
16155 Set Ada_Version_Explicit, for implementation of AI-362
16156 Add processing for pragma Pure_05 and Preelaborate_05
16157 Add entry for Assertion_Policy pragma
16159 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
16160 when needed for proper processing of categorization stuff
16163 For several cases, make errors in preealborate units warnings,
16164 instead of errors, if GNAT_Mode is set. For AI-362.
16166 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
16167 preelaborate unit is now warning if in GNAT mode
16169 * s-stoele.ads: Document AI-362 for pragma preelaborate
16171 2005-06-14 Doug Rupp <rupp@adacore.com>
16173 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
16174 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
16175 Default_Exception_Msg_Max_Length: new parameter.
16177 * a-except.ads: (Exception_Msg_Max_Length): Set to
16178 System.Parameters.Default_Exception_Msg_Max_Length
16179 Add pragma Preelaborate_05 for AI-362
16180 Add warnings off to allow categorization violations for AI-362
16182 2005-06-14 Vincent Celier <celier@adacore.com>
16184 * gnatsym.adb: Adapt to modification of package Symbols: procedure
16185 Process is now in package Processing.
16187 * symbols.ads, symbols.adb:
16188 (Processing): New package, containing procedure Process
16190 * symbols-vms-alpha.adb:
16191 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
16193 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
16194 symbols-processing-vms-ia64.adb: New files.
16196 2005-06-14 Pascal Obry <obry@adacore.com>
16198 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
16199 implementation. This new version generates the proper DllMain routine
16200 to initialize the SAL. The DllMain is generated in Ada and compiled
16201 before being added as option to the library build command.
16203 2005-06-14 Doug Rupp <rupp@adacore.com>
16204 Pascal Obry <obry@adacore.com>
16206 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
16207 call to decc$translate_vms.
16208 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
16209 need to remove those quotes before catenating the filename.
16210 (__gnat_locate_exec_on_path): improvements to the Win32 section:
16211 * avoid allocating the memory twice for better efficiency;
16212 * allocate 32K buffer for environment expansion as suggested by MSDN;
16213 * prepend ".;" to the path so that current directory is searched too.
16215 2005-06-14 Robert Dewar <dewar@adacore.com>
16217 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
16218 instead of raising CE (AI-241)
16219 Add warnings off to allow categorization violations for AI-362
16221 2005-06-14 Robert Dewar <dewar@adacore.com>
16223 * ali-util.adb, gnatbind.adb: Remove references to
16224 Force_RM_Elaboration_Order.
16226 * switch-b.adb: Remove recognition of -f switch
16228 2005-06-14 Pascal Obry <obry@adacore.com>
16230 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
16231 implementation which is slightly more efficient.
16233 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16234 Javier Miranda <miranda@adacore.com>
16235 Ed Schonberg <schonberg@adacore.com>
16236 Hristian Kirtchev <kirtchev@adacore.com>
16238 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
16239 allocator's designated type is a class-wide type, and compiling for
16240 Ada 2005, emit a run-time check that the accessibility level of the
16241 type given in the allocator's expression is not deeper than the level
16242 of the allocator's access type.
16244 (Tagged_Membership): Modified to gives support to abstract interface
16247 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
16249 (Descendant_Tag): New predefined function
16250 (Is_Descendant_At_Same_Level): New predefined function
16251 (Get_Access_Level): New private function
16252 (Set_Access_Level): New private procedure
16253 (IW_Membership): New function. Given the tag of an object and the tag
16254 associated with an interface, evaluate if the object implements the
16256 (Register_Interface_Tag): New procedure used to initialize the table of
16257 interfaces used by the IW_Membership function.
16258 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
16259 of the dispatch table.
16260 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
16261 table of interfaces of the parent.
16262 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
16263 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
16264 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
16265 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
16266 Ada 2005 semantics for the new predefined function.
16268 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
16269 call to Descendant_Tag rather than Internal_Tag.
16270 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
16271 the accessibility level of the attribute's Item parameter is not deeper
16272 than the level of the attribute's prefix type. Tag_Error is raised if
16273 the check fails. The check is only emitted for Ada_05.
16274 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
16275 requested stream attribute, use it.
16276 (Expand_N_Attribute_Reference): If the designated type is an interface
16277 then rewrite the referenced object as a conversion to force the
16278 displacement of the pointer to the secondary dispatch table.
16279 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
16280 is a dereference of an object with a constrained partial view.
16282 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
16283 type is a class-wide type, emit a run-time check that the accessibility
16284 level of the returned object is not deeper than the level of the
16285 function's master (only when compiling for Ada 2005).
16287 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
16288 Action_Nb_Arg): Add entries for new Get_Access_Level and
16289 Set_Access_Level routines in these tables.
16290 (Make_DT): Generate a call to set the accessibility level of the
16291 tagged type in its TSD.
16292 (Make_DT): Code cleanup. The functionality of generating all the
16293 secondary dispatch tables has been moved to freeze_record_type.
16294 (Make_Abstract_Interface_DT): Minor code cleanup.
16295 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
16296 this subprogram implements a new algorithm that provides the
16297 same functionality and it is more clear in case of primitives
16298 associated with abstract interfaces.
16299 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
16300 clean up, the functionality of this subprogram is now provided
16301 by Set_All_DT_Position.
16302 (Write_DT): New subprogram: a debugging procedure designed to be called
16303 within gdb to display the dispatch tables associated with a tagged
16305 (Collect_All_Interfaces): New subprogram that collects the whole list
16306 of interfaces that are directly or indirectly implemented by a tagged
16308 (Default_Prim_Op_Position): New subprogram that returns the fixed
16309 position in the dispatch table of the default primitive operations.
16310 (Expand_Interface_Actuals): New subprogram to generate code that
16311 displaces all the actuals corresponding to class-wide interfaces to
16312 reference the interface tag of the actual object.
16313 (Expand_Interface_Conversion): New subprogram. Reference the base of
16314 the object to give access to the interface tag associated with the
16315 secondary dispatch table.
16316 (Expand_Interface_Thunk): New subprogram that generates the code of the
16317 thunk. This is required for compatibility with the C+ ABI.
16318 (Make_Abstract_Interface_DT): New subprogram that generate the
16319 declarations for the secondary dispatch tables associated with an
16320 abstract interface.
16321 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
16322 attribute for each primitive operation covering interface subprograms
16323 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
16324 These subprograms were upgraded to give support to abstract interfaces
16326 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
16327 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
16328 RE_Set_Access_Level.
16329 (RE_Unit_Table): Add entries for new Ada.Tags operations.
16330 Add support to call the followig new run-time subprograms:
16331 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
16333 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
16334 match its full declaration when both have an access definition with
16335 statically matching designated subtypes.
16336 (Analyze_Component_Declaration): Delete commented out code that was
16337 incorrectly setting the scope of an anonymous access component's type.
16338 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
16339 an access discriminant when the containing type is nonlimited.
16340 (Make_Incomplete_Type_Declaration): Create an incomplete type
16341 declaration for a record type that includes self-referential access
16343 (Check_Anonymous_Access_Types): Before full analysis of a record type
16344 declaration, create anonymous access types for each self-referential
16346 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
16347 an access component in this context is a Local_Anonymous_Access, for
16348 proper accessibility checks.
16349 (Access_Definition): Set properly the scope of the anonymous access type
16350 created for a stand-alone access object.
16351 (Find_Type_Of_Object): An object declaration may be given with an access
16353 (Complete_Subprograms_Derivation): New subprogram used to complete
16354 type derivation of private tagged types implementing interfaces.
16355 In this case some interface primitives may have been overriden
16356 with the partial-view and, instead of re-calculating them, they
16357 are included in the list of primitive operations of the full-view.
16358 (Build_Derived_Record_Type): Modified to give support to private
16359 types implemening interfaces.
16360 (Access_Definition): Reject ALL on anonymous access types.
16361 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
16362 type derivation to occur at a deeper accessibility level than the
16364 For the case of derivation within a generic body however, disallow the
16365 derivation if the derived type has an ancestor that is a formal type
16366 declared in the formal part of an enclosing generic.
16367 (Analyze_Object_Declaration): For protected objects, remove the check
16368 that they cannot contain interrupt handlers if not declared at library
16370 (Add_Interface_Tag_Components): New subprogram to add the tag components
16371 corresponding to all the abstract interface types implemented by a
16372 record type or a derived record type.
16373 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
16374 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
16375 Process_Full_View, Record_Type_Declaration): Modified to give
16376 support to abstract interface types
16377 (Collect_Interfaces): New subprogram that collects the list of
16378 interfaces that are not already implemented by the ancestors
16379 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
16380 when partial view has no discriminants and full view has defaults.
16381 (Constrain_Access): Reject a constraint on a general access type
16382 if the discriminants of the designated type have defaults.
16383 (Access_Subprogram_Declaration): Associate the Itype node with the inner
16384 full-type declaration or subprogram spec. This is required to handle
16385 nested anonymous declarations.
16386 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
16387 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
16388 Process_Full_View, Record_Type_Declaration): Modified to give
16389 support to abstract interface types
16390 (Derive_Subprograms): Addition of a new formal to indicate if
16391 we are in the case of an abstact-interface derivation
16392 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
16393 to the specification because it is requied to analyze all the
16394 identifiers found in a list of interfaces
16396 * debug.adb: Complete documentation of flag "-gnatdZ"
16398 * exp_ch3.adb: Implement config version of persistent_bss pragma
16399 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
16400 testing for TSS presence to properly enforce visibility rules.
16401 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
16402 Make_Abstract_Interfaces_DT to generate the secondary tables
16403 associated with abstract interfaces.
16404 (Build_Init_Procedure): Modified to initialize all the tags
16406 (Component_Needs_Simple_Initialization): Similar to other tags,
16407 interface tags do not need initialization.
16408 (Freeze_Record_Type): Modified to give support to abstract interface
16410 (Expand_N_Object_Declaration): Do not generate an initialization for
16411 a scalar temporary marked as internal.
16413 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
16414 in-out parameter that is a component in an initialization procedure,
16415 whose constraint might depend on discriminants, and that may be
16416 misaligned because of packing or representation clauses.
16417 (Is_Legal_Copy): New predicate to determine whether a possibly
16418 misaligned in-out actual can actually be passed by copy/return. This
16419 is an error in case the type is by_reference, and a warning if this is
16420 the consequence of a DEC import pragma on the subprogram.
16421 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
16423 (Expand_Inlined_Call): Mark temporary generated for the return value as
16424 internal, so that no useless scalar normalization is generated for it.
16425 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
16426 null procedure can always be inlined.
16427 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
16428 procedure, generate an explicit empty body for it.
16430 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
16431 Given a type implementing an interface, returns the corresponding
16432 access_disp_table value.
16433 (Find_Interface_Tag): New subprogram. Given a type implementing an
16434 interface, returns the record component containing the tag of the
16436 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
16437 previous ones that return the corresponding tag and access_disp_table
16439 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
16440 is a predefined primitive operation.
16441 (Expand_Subtype_From_Expr): If the expression is a selected component
16442 within an initialization procedure, compute its actual subtype, because
16443 the component may depend on the discriminants of the enclosing record.
16445 * i-cpp.ads, i-cpp.adb:
16446 This package has been left available for compatibility with previous
16447 versions of the frontend. As part of the new layout this is now a
16448 dummy package that uses declarations available at a-tags.ads
16450 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
16451 "constant access" and "aliased [constant] access" when not compiling
16453 Suppress Ada 2005 keyword warning if -gnatwY used
16454 (P_Identifier_Declarations): Add support for object declarations with
16455 access definitions.
16456 (Private_Extension_Declaration): Complete the documentation
16457 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
16458 attribute in case of private extension declaration
16459 (P_Type_Declaration): Mark as "abstract" the type declarations
16460 corresponding with protected, synchronized and task interfaces
16461 (P_Declarative_Items): "not" and "overriding" are overriding indicators
16462 for a subprogram or instance declaration.
16464 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
16465 instantiation that is a dispatching operation has controlling access
16466 parameters that are null excluding.
16467 Save and restore Ada_Version_Explicit, for implementation of AI-362
16468 (Validate_Derived_Type_Instance): Add check for abstract interface
16470 (Analyze_Formal_Package): Establish Instantiation source for the copy of
16471 the generic that is created to represent the formal package.
16472 (Analyze_Package_Instantiation): Instantiate body immediately if the
16473 package is a predefined unit that contains inlined subprograms, and
16474 we are compiling for a Configurable_Run_Time.
16475 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
16476 If the program has a null default, generate an empty body for it.
16478 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
16479 error message condition, null procedures are correctly detected now.
16480 (New_Overloaded_Entity): Bypass trivial overriding indicator check
16481 for subprograms in the context of protected types. Instead, the
16482 indicator is examined in Sem_Ch9 while analysing the subprogram
16484 (Check_Overriding_Indicator): Check consistency of overriding indicator
16485 on subprogram stubs as well.
16486 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
16488 (Analize_Subprogram_Specification): When analyzing a subprogram in which
16489 the type of the first formal is a concurrent type, replace this type
16490 by the corresponding record type.
16491 (Analyze_Subprogram_Body): Undo the previous work.
16492 (Analyze_Procedure_Call): If the call has the form Object.Op, the
16493 analysis of the prefix ends up analyzing the call itself, after which
16495 (Has_Interface_Formals): New subprogram subsidiary to analyze
16496 subprogram_specification that returns true if some non
16497 class-wide interface subprogram is found
16498 (New_Overloaded_Entity): Modified to give support to abstract
16500 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
16501 access to subprograms must be recursive.
16502 (Is_Unchecked_Conversion): Improve the test that recognizes
16503 instantiations of Unchecked_Conversion, and allows them in bodies that
16504 are to be inlined by the front-end. When the body comes from an
16505 instantiation, a reference to Unchecked_Conversion will be an
16506 Expanded_Name, even though the body has not been analyzed yet.
16507 Replace Is_Overriding and Not_Overriding in subprogram_indication with
16508 Must_Override and Must_Not_Override, to better express intent of AI.
16509 (Analyze_Subprogram_Body): If an overriding indicator is given, check
16510 that it is consistent with the overrinding status of the subprogram
16512 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
16514 If the subprogram is a null procedure, indicate that it does not need
16517 * sem_disp.adb (Check_Controlling_Type): Give support to entities
16518 available through limited-with clauses.
16519 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
16520 allowed as the last primitive of a tagged type if it has no previous
16522 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
16523 to give support to abstract interface types
16525 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
16526 in the case where the target type is an anonymous access type of an
16527 object or component (that is, when Is_Local_Anonymous_Access is true).
16528 Prevent the special checks for conversions of access discriminants in
16529 the case where the discriminant belongs to a nonlimited type, since
16530 such discriminants have their accessibility level defined in the same
16531 way as a normal component of an anonymous access type.
16532 (Resolve_Allocator): When an allocator's designated type is a class-wide
16533 type, check that the accessibility level of type given in the
16534 allocator's expression or subtype indication is not statically deeper
16535 than the level of the allocator's access type.
16536 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
16537 name in a discriminant constraint of a record component.
16538 (Resolve_Explicit_Dereference): Do not check whether the type is
16539 incomplete when the dereference is a use of an access discriminant in
16540 an initialization procedure.
16541 (Resolve_Type_Conversion): Handle conversions to abstract interface
16543 (Valid_Tagged_Conversion): The conversion of a tagged type to an
16544 abstract interface type is always valid.
16545 (Valid_Conversion): Modified to give support to abstract interface types
16546 (Resolve_Actuals): Enable full error reporting on view conversions
16547 between unrelated by_reference array types.
16548 The rule for view conversions of arrays with aliased components is
16549 weakened in Ada 2005.
16550 Call to obsolescent subprogram is now considered to be a violation of
16551 pragma Restrictions (No_Obsolescent_Features).
16552 (Check_Direct_Boolean_Operator): If the boolean operation has been
16553 constant-folded, there is nothing to check.
16554 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
16555 check on possible violation of restriction No_Direct_Boolean_Operators
16556 until after expansion of operands, to prevent spurious errors when
16557 operation is constant-folded.
16559 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
16560 Has_Compatible_Type): Modified to give support to abstract interface
16562 (Interface_Present_In_Ancestor): New function to theck if some ancestor
16563 of a given type implements a given interface
16565 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
16566 prefix is a parameterless function that returns an access_to_procedure.
16567 (Transform_Object_Operation): Handle properly function calls of the
16568 form Obj.Op (X), which prior to analysis appear as indexed components.
16569 (Analyze_One_Call): Complete the error notification to help new Ada
16571 (Analyze_Allocator): For an allocator without an initial value, where
16572 the designated type has a constrained partial view, a discriminant
16573 constraint is illegal.
16575 2005-06-14 Robert Dewar <dewar@adacore.com>
16577 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
16578 do with treatment of Set_Col when positioned at end of line character.
16580 2005-06-14 Robert Dewar <dewar@adacore.com>
16582 * atree.adb: (Elist*): Protect against uninitialized field
16584 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16586 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
16587 for an attribute reference that returns an access type.
16588 (Apply_Discriminant_Check): No need for check if (designated) type has
16589 constrained partial view.
16591 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
16592 both bound checks, rather than a conjunction.
16593 (Insert_Valid_Check): If the expression is an actual that is an indexed
16594 component of a bit-packed array, force expansion of the packed element
16595 reference, because it is specifically inhibited elsewhere.
16597 2005-06-14 Vincent Celier <celier@adacore.com>
16599 * clean.adb (Clean_Project): Correctly delete executable specified as
16600 absolute path names.
16602 * make.adb (Gnatmake): Allow relative executable path names with
16603 directory information even when project files are used.
16604 (Change_To_Object_Directory): Fail gracefully when unable to change
16605 current working directory to object directory of a project.
16606 (Gnatmake): Remove exception handler that could no longer be exercized
16607 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
16608 may be deallocated by Normalize_Arguments.
16609 (Collect_Arguments): Eliminate empty arguments
16611 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
16612 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
16613 (Check_Project): Return False when Project is No_Project. Return True
16614 when All_Projects is True.
16615 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
16616 All_Projects to True.
16619 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16620 Javier Miranda <miranda@adacore.com>
16621 Thomas Quinot <quinot@adacore.com>
16622 Robert Dewar <dewar@adacore.com>
16623 Hristian Kirtchev <kirtchev@adacore.com>
16624 Gary Dismukes <dismukes@adacore.com>
16626 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
16627 anonymous access types, to indicate that the accessibility level of
16628 the type is determined by that of the enclosing declaration.
16629 (Has_Persistent_BSS): New flag
16630 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
16631 of this attribute with functions.
16632 (Is_Primitive_Wrapper): Remove the barrier.
16633 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
16634 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
16636 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
16637 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
16639 (Is_Pure_Unit_Access_Type): New flag
16640 (Abstract_Interfaces): Complete the assertion to cover all usages.
16641 (Set_Is_Interface): Complete the assertion to cover all usages.
16642 (Is_Primitive_Wrapper): New attribute.
16643 (Is_Obsolescent): Now applies to all entities (though it is only set
16644 for subprograms currently)
16645 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
16646 which solves various problems concerning access subtypes.
16647 (Has_Persistent_BSS): New flag
16648 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
16649 Remove these subprograms because this attribute is currently
16652 Has_Specified_Stream_Input (Flag190)
16653 Has_Specified_Stream_Output (Flag191)
16654 Has_Specified_Stream_Read (Flag192)
16655 Has_Specified_Stream_Write (Flag193)
16656 Present in all type and subtype entities. Set for a given view if the
16657 corresponding stream-oriented attribute has been defined by an
16658 attribute definition clause. When such a clause occurs, a TSS is set
16659 on the underlying full view; the flags are used to track visibility of
16660 the attribute definition clause for partial or incomplete views.
16661 (Is_Pure_Unit_Access_Type): New flag
16662 Clarify use of Is_Internal.
16663 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
16664 internally generated to wrap the invocation of tasks and protected
16665 types that implement interfaces.
16666 (Implementation_Base_Type): Documentation correction
16667 (Is_Obsolescent): Now applies to all entities (though it is only set
16668 for subprograms currently)
16669 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
16670 which solves various problems concerning access subtypes.
16672 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
16673 for examined parameters. Identify unequal parameter list lengths as
16674 non-conformant parameters.
16675 (Overriding_Possible): Do not check for "All" qualifier in declaration
16676 of controlling access parameter, following prescription of AI-404.
16677 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
16678 that build the procedure body that wraps an entry invocation
16679 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
16680 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
16681 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
16682 give support to abstract interface types
16684 * freeze.adb (Freeze_Entity): Issue error message if
16685 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
16686 type has no storage pool (Ada 2005) AI-366.
16687 Also modified to give support to abstract interface types
16688 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
16689 Inline_Always pragma.
16691 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
16692 now begin an entry declaration.
16693 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
16694 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
16695 a subprogram declaration preceded by an overriding indicator.
16696 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
16697 declarations or subprogram declarations preceded by reserved words
16698 "not" or "overriding".
16699 (P_Entry_Declaration): Update comment. Parse and check overriding
16700 indicator, set semantic flags of entry declarations.
16701 (P_Task): New error message in case of private applied
16702 to a task type declaration.
16703 (P_Protected): New error message in case of private applied
16704 to a task type declaration.
16706 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
16707 in which the full view of a type implementing an interface is a
16709 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
16710 Declare_Inherited_Private_Subprograms): If an explicit operation
16711 overrides an operation that is inherited in the private part, mark the
16712 explicit one as overriding, to enable overriding indicator checks.
16713 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
16714 full view to partial view, to simplify handling in back-end.
16716 * sprint.adb: Print interface lists where needed: derived types,
16717 protected types, task types.
16718 output "is null" for null procedures. Part of implementation of
16720 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
16721 relaxation of rules for access types in pure, shared passive partitions.
16723 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
16724 first read discriminants into temporary objects, performing checks on
16725 the read values, then possibly performing discriminant checks on the
16726 actual (if it is constrained), and only finally reading the components
16727 into a constrained temporary object.
16728 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
16729 case of reading discriminants of a mutable record type to recognize
16730 the new form of the code generated by
16731 Build_Mutable_Record_Read_Procedure.
16733 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
16734 of a simple call to Make_TSS_Name.
16735 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
16736 buffer, in order for Is_TSS to work correctly on local TSS names.
16738 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
16739 Is_Local_Anonymous_Access to check legaliy of attributes in the
16740 context of access components and stand-alone access objects.
16741 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
16742 treated as available for a limited private type if there is an
16743 attribute_definition_clause that applies to its full view, but not in
16744 other cases where the attribute is available for the full view
16745 (specifically, the sole fact that the full view is non-limited does not
16746 make the attribute available for the partial view).
16747 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
16748 non-overloaded intrinsic subprogram.
16749 (Check_Stream_Attribute): Reject an attribute reference for an
16750 unavailable stream attribute even if the prefix is not a limited type
16751 (case of a 'Input attribute reference for an abstract, non-classwide
16753 (Stream_Attribute_Available): New function to determine whether a stream
16754 attribute is available at a place.
16755 (Check_Attribute): Use Stream_Attribute_Available instead of just
16756 testing for TSS presence on the implementation base type.
16757 (Analyze_Attribute): Modified to give support to task interfaces.
16758 (Analyze_Access_Attribute): Add error check for use of an Access (or
16759 Unrestricted_Access) attribute with a subprogram marked as
16761 (Analyze_Attribute, case Attribute_Address): Add error check for use of
16762 an Address attribute with a subprogram marked as Inline_Always.
16763 Update Eval_Attribute to handle new value of Width from AI-395
16765 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
16766 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
16767 Factor common code across the stream-oriented attribute circcuits into
16768 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
16769 processing is functionally identical to the previous duplicated one,
16770 except that an expression that denotes an abstract subprogram will now
16771 be rejected, as mandated by AI-195 item 5.
16773 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
16774 Is_Local_Anonymous_Access to apply accessibility checks to access
16775 components and stand-alone access objects.
16776 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
16778 (Is_Potentially_Persistent_Type): New function
16779 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
16780 a heap-object whose type has a constrained partial view, the object is
16781 unconstrained and the component may depend on a discriminant, making its
16784 * sinfo.ads, sinfo.adb
16785 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
16786 (Must_Override): Flag applicable to N_Entry_Declaration.
16787 Indicate that interface_list can appear in single task and single
16788 protected declarations.
16789 Replace Is_Overriding and Not_Overriding with Must_Override and
16790 Must_Not_Override, to better express intent of AI.
16791 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
16792 of an overriding indicator in a subprogram or instance.
16793 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
16794 Add the overriding indicator [[not] overriding] construct to the
16795 following grammar productions:
16797 GENERIC_INSTANTIATION
16798 SUBPROGRAM_SPECIFICATION
16800 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
16801 can start with an overriding indicator.
16803 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
16804 flags accordingly on subrogram specifications or instances.
16807 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
16808 overriding_indicator, if present, is consistent with status of spec.
16809 Improve error message for null-excluding checks on controlling access
16811 (Check_In_Previous_With_Clause): Protect the frontend against
16812 previously reported critical errors in the context clauses.
16813 Save and restore Ada_Version_Explicit, for implementation of AI-362
16814 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
16815 operation verify that controlling formals of the renamed entity that
16816 are access parameters are explicitly non-null.
16817 (Find_Expanded_Name): Improve error message when prefix is an illegal
16818 reference to a private child unit.
16820 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
16821 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
16822 Rewrite to correspond to new wide character names in AI-395
16824 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
16825 default procedures.
16827 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16828 Robert Dewar <dewar@adacore.com>
16830 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
16831 code, not on the bodies of predefined operations, to cut down on
16834 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16836 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
16837 be expanded in place. The size computation does not require a
16838 subtraction, which would raise an exception on a compiler built with
16839 assertions when the upper bound is Integer'first.
16840 (Flatten): For an array of composite components, take into account the
16841 size of the components to determine whether it is safe to expand the
16842 array into a purely positional representation.
16844 2005-06-14 Thomas Quinot <quinot@adacore.com>
16846 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
16847 denoting a formal parameter into account.
16849 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16851 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
16852 the entry_call alternative of a conditional entry call, wrap the
16853 conditional entry call itself.
16855 2005-06-14 Nicolas Setton <setton@adacore.com>
16856 Ed Schonberg <schonberg@adacore.com>
16858 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
16859 the "simple_choice" member in a variant record, in accordance with the
16860 description in the package spec: the information output for a constant
16861 should be "S number", not "SS number".
16862 (Get_Encoded_Name): Return at once if not generating code. Avoids name
16863 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
16865 2005-06-14 Thomas Quinot <quinot@adacore.com>
16867 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
16868 RACW without any primitives, do not generate the if statement for
16869 dispatching by name in the PolyORB/DSA case, as it would be malformed
16870 (it would have an Elsif_Parts list that is not No_List, but with a
16873 2005-06-14 Robert Dewar <dewar@adacore.com>
16875 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
16877 2005-06-14 Jose Ruiz <ruiz@adacore.com>
16879 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
16880 can determine whether pragma Suppress_Exception_Locations is in effect.
16882 * utils2.c (build_call_raise): Do not pass the file name to the
16883 exception handler if pragma Suppress_Exception_Locations is in effect.
16884 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
16886 2005-06-14 Emmanuel Briot <briot@adacore.com>
16888 * g-debpoo.adb (Deallocate, Dereference): Improve output.
16890 2005-06-14 Nicolas Roche <roche@adacore.com>
16892 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
16894 (Next_Level): Fix minor bug in handling of ../dir case
16895 (Read): Add dir separator to Directory name so that "" is understood as
16898 2005-06-14 Pascal Obry <obry@adacore.com>
16900 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
16901 releasing the items.
16903 2005-06-14 Vincent Celier <celier@adacore.com>
16904 Cyrille Comar <comar@adacore.com>
16906 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
16907 with output file descriptor and with output file name.
16908 (Dup, Dup2): Now global procedures as they are used by two subprograms
16909 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
16911 2005-06-14 Thomas Quinot <quinot@adacore.com>
16914 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
16916 (Create_Selector): Bind listening socket used to create the signalling
16917 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
16918 Set listen backlog to 1 to ensure that we detect socket theft by a
16919 failure of our own connect(2) call.
16920 (Check_Selector): Improve documentation of the selector mechanism.
16921 (Broadcast_Inet_Addr): New constant.
16923 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16925 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
16926 type which turns out to be an incomplete and incorrect fix.
16927 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
16928 of the type is declared in a record (for determination of insertion
16930 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
16931 a private type and ensure that the primary entity is used for the type
16932 of the newly created function's V formal by taking the Etype of the
16935 2005-06-14 Javier Miranda <miranda@adacore.com>
16936 Jose Ruiz <ruiz@adacore.com>
16937 Robert Dewar <dewar@adacore.com>
16938 Ed Schonberg <schonberg@adacore.com>
16940 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
16941 that indicates if we are parsing a compilation unit found in a
16942 limited-with clause.
16943 It is use to avoid the circularity check.
16945 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
16946 we are parsing a compilation unit found in a limited-with clause. This
16947 is use to avoid the circularity check.
16949 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
16950 unit as a consequence of parsing a limited-with clause. This is used
16951 to avoid the circularity check.
16953 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
16954 (Analyze_Context): Limited-with clauses are now allowed
16955 in more compilation units.
16956 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
16957 againts previously reported critical errors in context clauses
16958 (Install_Limited_Withed_Unit): Code cleanup plus static detection
16959 of two further errors: renamed subprograms and renamed packages
16960 are not allowed in limited with clauses.
16961 (Install_Siblings): Do not install private_with_clauses on the package
16962 declaration for a non-private child unit.
16963 (Re_Install_Parents): When a parent of the subunit is reinstalled,
16964 reset visibility of child units properly.
16965 (Install_Withed_Unit): When a child unit appears in a with_clause of its
16966 parent, it is immediately visible.
16968 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16969 Emmanuel Briot <briot@adacore.com>
16971 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
16972 declared within an inlined body as referenced, to prevent spurious
16974 (Output_One_Ref): If an entity renames an array component, indicate in
16975 the ALI file that this aliases (renames) the array. Capture as well
16976 function renamings that rename predefined operations.
16977 Add information about generic parent for package and subprogram
16979 (Get_Type_Reference): For a subtype that is the renaming of an actual in
16980 an instantiation, use the first_subtype to ensure that we don't generate
16981 cross-reference information for internal types.
16982 For objects and parameters of a generic private type, retain the '*'
16983 indicator to distinguish such an entity from its type.
16985 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
16986 to store information about instantiated entities.
16988 * ali.adb (Scan_ALI): Add support for parsing the reference to the
16991 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
16992 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
16995 2005-06-10 Doug Rupp <rupp@adacore.com>
16996 Arnaud Charlet <charlet@adacore.com>
16997 Olivier Hainque <hainque@adacore.com>
16998 Jose Ruiz <ruiz@adacore.com>
17000 * Make-lang.in: Add initialize.o when needed.
17001 Remove obsolete references to RT_FLAGS.
17002 Add missing dependencies for sdefault.o
17004 * initialize.c: New file.
17006 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
17007 [VMS] cond_signal_table: Fix problem in declaration.
17008 [VMS] __gnat_error_handler: rewrite.
17009 Move all __gnat_initialize() routines to initialize.c
17010 Specialize the former "hpux" section to "hppa hpux", as this is what the
17011 section really is here for and we now have other hpux ports that need
17012 different contents.
17013 (__gnat_adjust_context_for_raise) i386-linux: First version of this
17014 function for this target. Adjust PC by one in the machine context. This
17015 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
17016 it is more reliable to do that in the signal handler itself.
17017 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
17018 flags, so that the handler is passed the context structure to adjust
17019 prior to the raise.
17020 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
17021 SA_SIGINFO sigaction should look like. Call
17022 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
17023 Machine_State_Operations stuff.
17024 Add conditional code so that the x86_64 is also supported.
17026 2005-06-14 Pascal Obry <obry@adacore.com>
17028 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
17031 2005-06-14 Robert Dewar <dewar@adacore.com>
17033 * opt.ads, opt.adb: New flags for persistent_bss mode
17034 Add Ada_Version_Explicit, for implementation of AI-362
17035 Add Assertions_Enabled_Config and associated handling
17036 Needed since setting can be changed with Assertion_Policy pragma
17037 Add new flag Warn_On_Ada_2005_Compatibility
17039 * switch-c.adb: Recognize -gnatwy/Y
17040 Set Ada_Version_Explicit, for implementation of AI-362
17041 The -gnatg switch now includes -gnatyu
17043 * usage.adb: Add -gnatwy/Y
17044 Remove wrong asterisk on -gnatwX line
17045 Add line for -gnatyu switch
17047 2005-06-14 Vincent Celier <celier@adacore.com>
17049 * osint.adb (Add_Default_Search_Dirs): Put source and object
17050 directories of project files before directories coming from
17051 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
17053 2005-06-14 Robert Dewar <dewar@adacore.com>
17056 * par-ch2.adb (Scan_Pragma_Argument): New procedure
17057 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
17059 2005-06-14 Vincent Celier <celier@adacore.com>
17061 * prep.adb (Preprocess): Ignore error when scanning the first token of
17064 2005-06-14 Vincent Celier <celier@adacore.com>
17066 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
17067 (Check_Stand_Alone_Library): If the specified reference symbol file does
17068 not exist, only issue a warning when the symbol policy is not
17069 Controlled. And, when symbol policy is Compliant, set the symbol
17070 policy to Autonomous.
17072 2005-06-14 Vincent Celier <celier@adacore.com>
17074 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
17075 when the project file in a with clause is not the last one, that is the
17076 project file name is followed by a comma.
17077 * prj-pp.adb: (First_With_In_List): New Boolean global variable
17078 (Print): Issue list of project files separated by commas in with clauses
17079 according to the values returned by Is_Not_Last_In_List.
17080 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
17081 (Set_Is_Not_Last_In_List): New procedure
17083 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
17085 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
17087 2005-06-14 Robert Dewar <dewar@adacore.com>
17089 * scng.adb: Add call to new Check_EOF routine
17090 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
17091 Add some comments regarding wide character handling
17093 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
17095 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
17097 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
17098 characters are now considered graphic characters and hence yield false
17101 * nmake.adt: Modify header so that xnmake does not generate output
17102 files with multiple blank lines.
17104 * treeprs.adt: Remove a blank line so that output from xtreeprs does
17105 not have an extra blank line
17107 2005-06-14 Gary Dismukes <dismukes@adacore.com>
17109 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
17110 expression when the component type is an anonymous access type to
17111 ensure that appropriate accessibility checks are done.
17113 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
17114 expression of an assignment when the target object is of an anonymous
17115 access type. This ensures that required accessibility checks are done.
17116 (One_Bound): Move the check for type Universal_Integer to
17118 (Process_Bounds): Check whether the type of the preanalyzed range is
17119 Universal_Integer, and in that case set Typ to Integer_Type prior
17120 to setting the type of the original range and the calls to One_Bound.
17122 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17124 * sem_case.adb (Expand_Others_Choice): Improve warning.
17126 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17128 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
17129 constraint of full view if present, when other type is discriminated.
17130 (Eval_Relational_Op): Recognize tests of pointer values against Null,
17131 when the pointer is known to be non-null, and emit appropriate warning.
17133 2005-06-14 Robert Dewar <dewar@adacore.com>
17134 Ed Schonberg <schonberg@adacore.com>
17137 * sem_prag.adb: Implement pragma Persistent_BSS
17138 Remove obsolete pragma Persistent_Data, Persistent_Object
17139 Set Ada_Version_Explicit, for implementation of AI-362
17140 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
17141 Add processing for pragma Pure_05 and Preelaborate_05
17142 Add processing for Assertion_Policy pragma
17143 Add pragma identifiers for Assert
17144 (Analyze_Pragma, case Assert): Check number of arguments
17145 (Process_Inline): Additional guard against an illegal program, where the
17146 argument of the pragma is undefined, and warnings on redundant
17147 constructs are enabled.
17148 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
17149 Ada_05 to this pragma, specifying that the pragma is only active in
17151 (Check_Arg_Order): New procedure
17152 Add appropriate calls to this procedure throughout
17153 Also throughout, check entity name before doing any other checks
17155 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
17156 Remove obsolete pragma Persistent_Data, Persistent_Object
17157 Add entries for pragma Pure_05 and Preelaborate_05
17158 Add entries for Assertion_Policy pragma and associated names
17159 Add some names for pragma argument processing
17161 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
17163 2005-06-14 Ed Schonberg <schonberg@adacore.com>
17165 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
17166 appears within a negation (either from source or as a rewriting of
17167 inequality) adjust text of warning accordingly.
17169 2005-06-14 Thomas Quinot <quinot@adacore.com>
17171 * s-strxdr.adb: Follow AI95-00132
17173 2005-06-14 Arnaud Charlet <charlet@adacore.com>
17175 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
17177 2005-06-14 Arnaud Charlet <charlet@adacore.com>
17178 Jose Ruiz <ruiz@adacore.com>
17180 * s-tposen.adb, s-tpobop.adb
17181 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
17183 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
17184 there is no violation of the Max_Entry_Queue_Length restriction (if it
17185 has been set); Program_Error is raised otherwise.
17186 (Requeue_Call): Before requeuing the task on the target entry queue we
17187 check that there is no violation of the Max_Entry_Queue_Length
17188 restriction (if it has been set); Program_Error is raised otherwise.
17190 2005-06-14 Robert Dewar <dewar@adacore.com>
17192 * styleg.adb: Fix several remaining problems in -gnatyu switch
17193 Blank line count not reset at start
17194 Scanning outside source buffer in some cases
17195 Confusing message for blanks at end of file
17196 Non-empty blank lines not recognized
17198 * nmake.adt: Modify header so that xnmake does not generate output
17199 files with multiple blank lines.
17201 * treeprs.adt: Remove a blank line so that output from xtreeprs does
17202 not have an extra blank line
17204 2005-06-14 Sergey Rybin <rybin@adacore.com>
17206 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
17208 2005-06-14 Doug Rupp <rupp@adacore.com>
17209 Vincent Celier <celier@adacore.com>
17211 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
17214 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
17215 Remove "Library" command.
17216 Change keyword for style check -gnatyd from NOCRLF to
17218 Remove useless second style check keyword NONE
17219 Remove help documentation for inexistent style check keyword
17221 Add help documentation for style check keywords DOS_LINE_ENDINGS,
17222 UNNECESSARY_BLANK_LINES and XTRA_PARENS
17223 Add UNNECESSARY_BLANK_LINES for -gnatyu
17224 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
17226 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
17228 2005-06-14 Vincent Celier <celier@adacore.com>
17230 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
17231 gprmake was invoked with -d.
17232 (Compile_Sources): If -d was used, output the "completed ..." message
17233 for each compilation.
17234 (Scan_Arg): Recognize new switch -d
17235 When -c and at least one main is specified, set
17236 Unique_Compile to True to guarantee that no other sources will be
17239 2005-06-14 Matthew Heaney <heaney@adacore.com>
17241 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
17242 * a-swuwha.ads, a-swuwha.adb: New files
17244 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
17245 * a-szuzha.ads, a-szuzha.adb: New files.
17247 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
17248 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
17249 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
17250 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
17251 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
17252 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
17253 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
17254 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
17255 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
17256 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
17259 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
17260 Olivier Hainque <hainque@adacore.com>
17261 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17262 Pascal Obry <obry@adacore.com>
17264 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
17266 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
17267 making a temporary around a procedure call because of non-addressable
17269 (process_freeze_entity): If entity is a private type, capture size
17270 information that may have been computed for the full view.
17271 (tree_transform, case N_Allocator): If have initializing expression,
17272 check type for Has_Constrained_Partial_View and pass that to
17274 (tree_transform, case N_Return_Statement): Pass extra arg to
17277 * decl.c (annotate_value): Remove early return if -gnatR is not
17279 (gnat_to_gnu_field): Don't make a packable type for a component clause
17280 if the position is byte aligned, the field is aliased, and the clause
17281 size isn't a multiple of the packable alignment. It serves no useful
17282 purpose packing-wise and would be rejected later on.
17283 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
17286 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
17287 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
17289 (create_concat_name): Idem.
17291 2005-06-10 Robert Dewar <dewar@adacore.com>
17292 Eric Botcazou <ebotcazou@adacore.com>
17293 Ben Brosgol <brosgol@adacore.com>
17294 Cyrille Comar <comar@adacore.com>
17295 Sergey Rybin <rybin@adacore.com>
17296 Pascal Obry <obry@adacore.com>
17298 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
17299 Document second argument (Ada_05) of pragma Obsolescent
17300 Add note that call to subprogram marked with pragma Obsolescent
17301 is now considered to be a violation of program Restrictions
17302 (No_Obsolescent_Features).
17303 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
17304 that only machine-dependent attributes are supported.
17307 Commented out menu lines and empty section for gnatclean examples
17309 Fix some over long lines
17310 Clarify and enhance documentation of ADA_PROJECT_PATH.
17311 Rework section 2.11.2(3) about linking with a non-GNU compiler.
17312 Mention new switch -fcallgraph-info.
17313 Mention new switch -fstack-usage.
17314 For gnatpp, replace '-notab' with '-N' and add this option to Index
17315 Corrected VMS example.
17316 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
17318 Add documentation for -gnatyu switch (unnecessary blank lines)
17319 Document new switch -U for GNAT PRETTY and GNAT METRIC
17320 Add note about Stdcall being handled as C convention on non Windows OS.
17321 Remove some junk typo in description of gnatbind -S switch
17322 Remove reference to Extensions_Allowed pragma
17323 Document the new order of the directories to be searched (source and
17324 object directories of project files before directories in ADA_*_PATH
17325 environment variables.
17327 * g-trasym.ads: Document that IRIX is supported
17329 2005-06-10 Arnaud Charlet <charlet@adacore.com>
17331 * Makefile.in: Add initialize.o when needed.
17332 Adapt to new VMS package body Symbols and subunits
17333 No specialized version of a-sytaco is needed for VxWorks.
17335 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
17336 * a-zchara.ads, a-widcha.ads: New files.
17338 * system-hpux-ia64.ads: New file.
17340 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
17341 is imported from the VxWorks kernel.
17343 2005-06-14 Robert Dewar <dewar@adacore.com>
17345 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
17346 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
17347 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
17348 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
17349 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
17350 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
17351 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
17352 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
17353 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
17354 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
17355 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
17356 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
17358 2005-06-14 Thomas Quinot <quinot@adacore.com>
17360 * xeinfo.adb: Fix typo in comment
17362 2005-06-14 Javier Miranda <miranda@adacore.com>
17364 * repinfo.ads: Fix typo in comment
17366 2005-06-14 Gary Dismukes <dismukes@adacore.com>
17368 * s-finimp.adb (Parent_Tag): Delete this imported function (function
17369 Parent_Tag is now in the visible part of Ada.Tags).
17370 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
17371 using imported function.
17373 2005-06-14 Bernard Banner <banner@adacore.com>
17375 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
17376 also apply for handling support for VxSim 653.
17378 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
17380 * xsnames.adb: Add automatic generation of snames.h.
17382 2005-06-14 Thomas Quinot <quinot@adacore.com>
17384 * gen-soccon.c: Add IP_MULTICAST_IF constant
17385 Minor reformatting and adjustments to prevent warnings.
17387 2005-06-14 Pascal Obry <obry@adacore.com>
17389 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
17391 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
17393 * trans.c (gnat_gimplify_expr): Call
17394 recompute_tree_invarant_for_addr_expr when we change
17395 the operand of the ADDR_EXPR.
17397 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17399 * misc.c: Don't include errors.h.
17401 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17403 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
17405 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
17407 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
17409 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
17411 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
17414 * Makefile.in: Make TGT_LIB behave correctly.
17416 2005-04-23 DJ Delorie <dj@redhat.com>
17418 * misc.c: Adjust warning() callers.
17420 2005-04-16 Laurent GUERBY <laurent@guerby.net>
17423 * a-nudira.adb (Value): Check for valid string.
17424 * a-nuflra.adb (Value): Likewise.
17426 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
17428 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
17430 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
17432 * adaint.c, init.c, tracebak.c: Fix comment typos.
17433 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
17435 2005-04-07 Laurent GUERBY <laurent@guerby.net>
17436 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17438 * Makefile.in: Add make ifeq define for hppa linux tasking support.
17439 * system-hpux.ads: Define Signed_Zeros to be True.
17440 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
17442 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
17444 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
17445 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
17448 2005-03-30 Tom Tromey <tromey@redhat.com>
17450 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
17452 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17454 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
17456 2005-03-29 Robert Dewar <dewar@adacore.com>
17458 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
17459 fixed-point expression has value that is not a multiple of the Small
17462 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
17464 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
17467 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
17469 2005-03-29 Vincent Celier <celier@adacore.com>
17471 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
17472 (Build_Dynamic_Library.Version_String): Return the empty string when
17473 Lib_Version is empty or when the symbol policy is not Autonomous.
17475 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
17476 a symbol is not in the reference symbol file, increase the Major ID
17477 and set the Minor ID to 0.
17478 Use gsmatch=lequal instead of gsmatch=equal
17480 2005-03-29 Doug Rupp <rupp@adacore.com>
17482 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
17483 name and translate.
17485 2005-03-29 Javier Miranda <miranda@adacore.com>
17487 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
17488 (Inherit_DT): The first formal has been redefined as a Tag.
17489 This allows us the removal of the subprogram Get_TSD.
17490 (TSD): Replace the call to Get_TSD by the actual code.
17492 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
17493 (Make_DT): Upgrade the call to Inherit_TSD according to the
17494 new interface: the first formal is now a Tag.
17496 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
17497 redefined as a Tag.
17498 This change allows us to remove the subprogram Get_TSD.
17499 (CPP_Get_TSD): Subprogram removed.
17500 (TSD): Replace the call to CPP_Get_TSD by the actual code.
17502 * rtsfind.ads: Remove support to call the run-time
17505 2005-03-29 Robert Dewar <dewar@adacore.com>
17507 * errutil.adb, errout.adb:
17508 Minor comment updates on Line_Terminator references
17510 * par-ch10.adb: Add ??? comment about line terminator
17512 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
17513 (check dos line terminator).
17514 (Check_Line_Max_Length): New procedure, split off from the existing
17515 Check_Line_Terminator routine. Separating this out allows -gnatyf to
17516 be properly recognized.
17518 * styleg.adb: Add ??? comment for line terminator reference
17520 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
17521 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
17523 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
17524 (check dos line terminator).
17525 (Check_Line_Max_Length): New procedure, split off from the existing
17526 Check_Line_Terminator routine. Separating this out allows -gnatyf to
17527 be properly recognized.
17529 * stylesw.ads, stylesw.adb:
17530 Add handling for new -gnatyd switch (check dos line terminator)
17532 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
17533 Recognize -gnatwb/-gnatwB switches
17534 Include Warn_On_Bad_Fixed_Value for -gnatg
17537 Add line for new -gnatyd switch (check dos line terminator)
17539 * usage.adb: Add lines for -gnatwb/-gnatwB
17541 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
17543 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
17545 * gnat_ugn.texi: Fix overlong lines
17546 Document new -gnatyd switch
17547 Document new -gnatwb/-gnatwB switches
17549 2005-03-29 Ed Schonberg <schonberg@adacore.com>
17551 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
17552 order to retrieve the component list of the type, before examining
17553 individual components.
17555 * sem_type.adb (Covers): Types are compatible if one is the base type
17556 of the other, even though their base types might differ when private
17557 views are involved.
17559 2005-03-29 Thomas Quinot <quinot@adacore.com>
17561 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
17562 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
17563 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
17564 analyzed if expansion is disabled (which could otherwise cause spurious
17565 error messages if expansion has been disabled due to previous
17566 (unrelated) errors).
17568 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
17569 is disabled, the entity denoted by the argument is the access type
17570 itself, not an underlying record type, so there is no need to go back
17571 to the Corresponding_Remote_Type.
17573 2005-03-29 Gary Dismukes <dismukes@adacore.com>
17574 Robert Dewar <dewar@adacore.com>
17576 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
17577 expand a call to an instance of
17578 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
17579 Constructor actual of the instance. A class-wide membership
17580 check is also generated, to ensure that the tag passed to the instance
17581 denotes a type in the class.
17582 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
17583 of Name_Generic_Dispatching_Constructor.
17585 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
17586 05 unit for AI-260-02).
17588 * a-tgdico.ads: New file.
17590 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
17591 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
17593 * snames.ads, snames.adb (Preset_Names): Add entry for
17594 Generic_Dispatching_Constructor.
17597 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
17598 character type cases.
17599 (Analyze_Subprogram_Renaming): Add special handling for
17600 the case of renaming of stream attributes when the renaming denotes a
17601 generic formal subprogram association for an abstract formal subprogram.
17602 Check that the attribute is a primitive stream attribute (and not
17603 a class-wide stream attribute) and then rewrite the attribute name
17604 as the name of the appropriate compiler-generated stream primitive.
17606 2005-03-29 Robert Dewar <dewar@adacore.com>
17608 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
17610 (Is_Possibly_Unaligned_Object): Correct typo that
17611 resulted in inaccurate result for unaligned scalars within records.
17613 2005-03-29 Ed Schonberg <schonberg@adacore.com>
17615 * freeze.adb (Freeze_Record_Type): If the type of the component is an
17616 itype whose parent is controlled and not yet frozen, do not create a
17617 freeze node for the itype if expansion is disabled.
17619 2005-03-29 Vincent Celier <celier@adacore.com>
17621 * make.adb (Gnatmake): Don't fail if the main project file is declared
17622 as having no Ada sources. Do not display message "no sources to
17623 compile" in quiet output.
17625 2005-03-29 Doug Rupp <rupp@adacore.com>
17627 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
17630 2005-03-29 Robert Dewar <dewar@adacore.com>
17632 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
17635 2005-03-29 Robert Dewar <dewar@adacore.com>
17637 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
17638 missing TYPE Improve the error message generated when compiling a
17639 limited interface in Ada83 or Ada95 mode.
17641 2005-03-29 Robert Dewar <dewar@adacore.com>
17643 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
17644 rather than proceed ahead using a junk attribute name.
17646 2005-03-29 Vincent Celier <celier@adacore.com>
17648 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
17650 * prj-part.adb (Parse_Single_Project): Set the location of a project
17651 on its defining identifier, rather than on the reserved word "project".
17653 * prj-proc.adb (Expression): Adapt to the fact that default of external
17654 references may be string expressions, not always literal strings.
17655 (Recursive_Process): Set Display_Name equal to Name
17656 when Location is No_Location, that is when there is no actual file.
17657 Get the Display_Name of the project from the source, when it is not a
17659 (Process): Use the Display_Name in error messages
17661 * prj-strt.adb (External_Reference): Allow default to be string
17662 expressions, not only literal strings.
17664 2005-03-29 Vincent Celier <celier@adacore.com>
17666 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
17667 file and the reference symbol file to be the same file.
17669 2005-03-29 Thomas Quinot <quinot@adacore.com>
17671 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
17672 forbid conversion of a local access-to-subprogram type to a remote one.
17674 * sem_util.adb (Wrong_Type): For a record type that is the expanded
17675 equivalent type for a remote access-to-subprogram type, go back to the
17676 original RAS entity when displaying an error message, so the casing is
17677 the original source casing.
17679 2005-03-29 Robert Dewar <dewar@adacore.com>
17681 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
17684 2005-03-29 Ed Schonberg <schonberg@adacore.com>
17686 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
17687 subtype if code is being pre-analyzed, to prevent un-expanded
17688 references to protected formals, among others.
17689 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
17690 interpretation that can be a call, include the result of the call as a
17691 possible interpretation of the dereference.
17693 * sem_ch5.adb (Process_Bounds): Determine type of range by
17694 pre-analyzing a copy of the original range, and then analyze the range
17695 with the expected type.
17697 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
17698 with an overloaded prefix where not all interpretations yield an
17699 access to subprogram, do not rewrite node as a call.
17700 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
17701 the node as a call once the context identifies the interpretation of
17702 the prefix whose call yields the context type.
17703 (Valid_Conversion): For the case of a conversion between
17704 local access-to-subprogram types, check subtype conformance using
17705 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
17706 detailed error message.
17708 2005-03-29 Ed Schonberg <schonberg@adacore.com>
17710 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
17711 indicator, indicate that the formal can never be null.
17712 (Process_Formals): If a formal has a non_null indicator, insert the
17713 resulting subtype immediately before the enclosing subprogram decl,
17714 and not at the beginning of the corresponding declarative part, to
17715 prevent access before elaboration (Ada2005).
17717 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17720 * utils.c (finish_record_type): Use variable_size when setting sizes.
17722 2005-03-29 Robert Dewar <dewar@adacore.com>
17724 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
17725 guarantee Unix style line terminators for the output files, even when
17726 running on windows.
17728 2005-03-29 Robert Dewar <dewar@adacore.com>
17730 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
17731 buffer if an exception is raised.
17733 2005-03-29 Ed Falis <falis@adacore.com>
17735 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
17738 2005-03-29 Robert Dewar <dewar@adacore.com>
17740 * sem_util.ads: Minor reformatting
17741 * gnat_rm.texi: Minor editing.
17743 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
17745 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
17746 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
17748 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
17750 * adaint.c (__gnat_portable_spawn): Adjust cast.
17752 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
17754 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
17756 2005-03-17 Pascal Obry <obry@adacore.com>
17758 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
17761 * expect.c (__gnat_waitpid): Moved here from adaint.c.
17762 Reimplement under Win32 using Win32 API.
17764 (__gnat_kill) [Win32]: Properly close the process handle before leaving
17767 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
17769 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
17770 (DECL_RENAMED_OBJECT): New accessor macro.
17771 (SET_DECL_RENAMED_OBJECT): New setter macro.
17773 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
17774 object in all cases. Attach the renamed object to the VAR_DECL.
17775 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
17776 field is not prescribed.
17778 * misc.c (gnat_handle_option): Handle -gnatO separately.
17779 (gnat_print_decl) <VAR_DECL>: New case.
17780 Print the DECL_RENAMED_OBJECT node.
17782 * lang.opt: Declare separate -gnatO option.
17784 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
17785 pointer, replace it with the renamed object.
17786 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
17787 pointer type if the source is not a fat pointer type whose underlying
17788 array has the same non-zero alias set as that of the destination array.
17790 2005-03-17 Javier Miranda <miranda@adacore.com>
17792 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
17793 (Get_Inheritance_Depth): Removed.
17794 (Set_Inheritance_Depth): Removed.
17796 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
17797 subprogram Get_Expanded_Name because it is not referenced by the
17800 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
17801 (CPP_Get_Inheritance_Depth): Removed.
17802 (CPP_Set_Inheritance_Depth): Removed.
17804 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
17806 2005-03-17 Robert Dewar <dewar@adacore.com>
17808 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
17809 3, since we now expect GCC 3 to do all the work.
17811 2005-03-17 Javier Miranda <miranda@adacore.com>
17813 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
17814 of one barrier to avoid wrong usage of this attribute.
17816 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
17817 First_Private_Entity.
17819 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
17820 the subprogram against wrong usage.
17821 Adapt the code to traverse the entities in the
17822 scope of a record_type because in addition to its usage regarding
17823 packages, this subprogram is also called by Expand_N_Freeze_Entity
17824 to install the visible declarations of the enclosing scope of a
17825 record_type_with_private to establish the proper visibility before
17826 freezing the entity and related subprograms.
17828 2005-03-17 Ed Schonberg <schonberg@adacore.com>
17830 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
17833 2005-03-17 Thomas Quinot <quinot@adacore.com>
17835 * exp_ch3.adb (Check_Attr): New subprogram.
17836 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
17837 into a new Check_Attr subprogram, in order to provide a more
17838 explanatory error message (including the name of the missing attribute).
17839 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
17840 subprogram determines whether a default implementation exists for a
17841 given stream attribute.
17842 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
17843 Determine whether to generate a default implementation for each stream
17844 attribute separately, as this depends on the specific attribute.
17846 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
17847 limited extension where a stream attribute is missing for a limited
17848 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
17849 generate a bogus reference to the missing attribute to prevent
17850 cascaded errors. Instead, generate a null statement.
17852 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
17853 available for a limited type if it has been specified for an ancestor
17856 2005-03-17 Ed Schonberg <schonberg@adacore.com>
17858 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
17859 entity is an operator.
17861 2005-03-17 Thomas Quinot <quinot@adacore.com>
17863 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
17864 spec, to make this predicate available to other units.
17866 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
17869 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
17870 when no distribution runtime library is available.
17872 * sem_res.adb, sem_dist.adb: Disable expansion of remote
17873 access-to-subprogram types when no distribution runtime library is
17875 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
17876 predicate available to other units.
17878 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
17879 spec, to make this predicate available to other units.
17881 2005-03-17 Vincent Celier <celier@adacore.com>
17883 * make.adb (Insert_Project_Sources): Make sure the Q is always
17886 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
17887 the default for the tree, not the global default naming.
17889 * prj-proc.adb (Recursive_Process): No need to put the default naming
17890 in the project data, it's already there.
17892 2005-03-17 Doug Rupp <rupp@adacore.com>
17894 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
17896 * 5xcrtl.ads: Renamed to...
17897 * s-crtl-vms64.ads: ...this new file
17899 2005-03-17 Robert Dewar <dewar@adacore.com>
17902 * namet.adb (Copy_One_Character): Set proper wide character encoding
17903 for upper half character if we have upper half encoding.
17905 2005-03-17 Robert Dewar <dewar@adacore.com>
17907 * par.adb (Par): Improved msg for attempt to recompile predefined unit
17909 2005-03-17 Thomas Quinot <quinot@adacore.com>
17911 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
17912 tagged limited type, the TSS is a newly built renaming declaration:
17913 insert it using Set_TSS, not Copy_TSS.
17915 2005-03-17 Javier Miranda <miranda@adacore.com>
17917 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
17918 Try_Object_Operation): Analyze the object that is accessible
17919 through the prefix of the subprogram call before we apply
17920 the transformation of the object-operation notation.
17922 2005-03-17 Jose Ruiz <ruiz@adacore.com>
17924 * s-taprob.adb (Initialize_Protection): Initialize the protected
17925 object's owner to Null_Task.
17926 (Lock): If pragma Detect_Blocking is in effect and the caller of this
17927 procedure is already the protected object's owner then Program_Error
17928 is raised. In addition the protected object's owner is updated.
17929 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
17930 of this procedure is already the protected object's owner then
17931 Program_Error is raised.
17932 In addition the protected object's owner is updated.
17933 (Unlock): Remove the ownership of the protected object.
17935 * s-taprob.ads (Protection): Add the field Owner, used to store the
17936 protected object's owner.
17937 This component is needed for detecting one type of potentially blocking
17938 operations (external calls on a protected subprogram with the same
17939 target object as that of the protected action). Document the rest of
17942 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
17943 Initialize the protected object's owner to Null_Task.
17944 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
17945 caller of this procedure is already the protected object's owner then
17946 Program_Error is raised.
17947 Do not raise Program_Error when this procedure is called from a
17949 (Unlock_Entries): Remove the ownership of the protected object.
17950 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
17951 of this procedure is already the protected object's owner then
17952 Program_Error is raised.
17953 Do not raise Program_Error when this procedure is called from
17954 a protected action.
17956 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
17957 used to store the protected object's owner.
17959 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
17960 effect and this procedure (a potentially blocking operation) is called
17961 from whithin a protected action, Program_Error is raised.
17962 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
17963 and this procedure (a potentially blocking operation) is called from
17964 whithin a protected action, Program_Error is raised.
17966 2005-03-17 Vincent Celier <celier@adacore.com>
17967 Nicolas Setton <setton@adacore.com>
17969 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
17970 switch, not supported by the linker on Darwin. Add '_' before
17971 <library>init, as this character is added unconditionally by the
17973 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
17974 correct one ".dylib". This fixes detection of the archive files when
17975 building library projects.
17977 2005-03-17 Vincent Celier <celier@adacore.com>
17979 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
17980 -gnat83, -gnat95 and -gnat05.
17982 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
17984 * gnat_ugn.texi: Document gnatmem restriction
17986 2005-03-17 Thomas Quinot <quinot@adacore.com>
17988 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
17991 2005-03-17 Robert Dewar <dewar@adacore.com>
17993 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
17994 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
17995 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
17997 * casing.adb: Comment improvements
17999 2005-03-17 Pascal Obry <obry@adacore.com>
18001 * g-expect.adb: Minor reformatting.
18003 2005-03-15 Zack Weinberg <zack@codesourcery.com>
18005 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
18006 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
18009 2005-03-15 Vincent Celier <celier@adacore.com>
18011 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
18012 Add new parameter In_Tree to specify the project tree: needed
18013 by the project manager. Adapt to changes in project manager
18014 using new parameter In_Tree.
18016 2005-03-15 Jakub Jelinek <jakub@redhat.com>
18018 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
18019 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
18020 ada/bldtools to avoid make -jN failures.
18022 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18024 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
18025 to NULL_TREE on entry.
18027 2005-03-15 Robert Dewar <dewar@adacore.com>
18029 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
18030 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
18031 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
18032 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
18033 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
18034 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
18035 system-interix.ads, system-solaris-sparc.ads,
18036 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
18037 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
18038 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
18039 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
18040 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
18041 Compiler_System_Version to be False.
18043 * opt.ads: Add new flag Opt.Address_Is_Private
18045 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
18046 Add new parameter Compiler_System_Version to avoid checking for
18047 completeness of parameters when compiler is compiling itself.
18048 Allows old versions of GNAT to be compiled with new compiler.
18050 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18052 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
18053 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
18055 (Stack_Base_Available): New flag.
18056 (Get_Page_Size): New overloaded functions imported from C.
18057 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
18058 PROT_ON, PROT_OFF): New constants.
18059 (mprotect): New function imported from C.
18060 (pthread_teb_t): New record type.
18062 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
18063 (Create_Task): Account for the Yellow Zone and the guard page.
18065 2005-03-15 Vincent Celier <celier@adacore.com>
18067 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
18068 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
18069 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
18070 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
18071 Library_File_Name_For): Add new parameter In_Tree
18072 to specify the project tree: needed by the project manager.
18073 Adapt to changes in project manager using new parameter In_Tree.
18074 Remove local imports, use functions in System.CRTL.
18076 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
18077 to use the project manager.
18079 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
18080 In_Tree to designate the project tree. Adapt to changes in the project
18081 manager, using In_Tree.
18083 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
18084 Copy_Interface_Sources): Add new parameter In_Tree to specify the
18085 project tree: needed by the project manager.
18086 (Build_Library): Check that Arg'Length >= 6 before checking if it
18087 contains "--RTS=...".
18089 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
18090 Library_File_Name_For): Add new parameter In_Tree to specify the
18091 project tree: needed by the project manager.
18093 * prj.ads, prj.adb: Major modifications to allow several project trees
18094 in memory at the same time.
18095 Change tables to dynamic tables and hash tables to dynamic hash
18096 tables. Move tables and hash tables from Prj.Com (in the visible part)
18097 and Prj.Env (in the private part). Move some constants from the visible
18098 part to the private part. Make other constants deferred.
18099 (Project_Empty): Make it a variable, not a function
18100 (Empty_Project): Add parameter Tree. Returns the data with the default
18101 naming data of the project tree Tree.
18102 (Initialize): After updating Std_Naming_Data, copy its value to the
18103 component Naming of Project Empty.
18104 (Register_Default_Naming_Scheme): Use and update the default naming
18105 component of the project tree, instead of the global variable
18107 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
18108 Tree is not defaulted, return the default naming data of the Tree.
18109 (Initial_Buffer_Size): Constant moved from private part
18110 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
18111 variables initialized in procedure Initialize.
18112 (Add_To_Buffer): Add two in out parameters to replace global variables
18113 Buffer and Buffer_Last.
18114 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
18116 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
18118 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
18119 for the project tree.
18120 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
18121 constant at the beginning of the package spec, so that they cane be used
18122 in subprograms before their full declarations.
18123 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
18124 (Empty_Project): Add parameter of type Project_Node_Ref
18125 (Private_Project_Tree_Data): Add component Default_Naming of type
18127 (Buffer, Buffer_Last): remove global variables
18128 (Add_To_Buffer): Add two in out parameters to replace global variables
18129 Buffer and Buffer_Last.
18130 (Current_Packages_To_Check): Remove global variable
18131 (Empty_Name): Move to private part
18132 (No-Symbols): Make it a constant
18133 (Private_Project_Tree_Data): New type for the private part of the
18135 (Project_Tree_Data): New type for the data of a project tree
18136 (Project_Tree_Ref): New type to designate a project tree
18137 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
18138 for the project tree.
18140 * prj-attr.ads: Add with Table; needed, as package Prj no longer
18141 imports package Table.
18143 * prj-com.adb: Remove empty, no longer needed body
18145 * prj-com.ads: Move most of the content of this package to package Prj.
18147 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
18148 designate the project node tree and Packages_To_Check to replace
18149 global variable Current_Packages_To_Check.
18150 Add new parameters In_Tree and Packages_To_Check to local subprograms,
18151 when needed. Adapt to changes in project manager with project node tree
18154 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
18155 project tree to most subprograms. Move tables and hash tables to
18156 private part of package Prj.
18157 Adapt to changes in project manager using project tree In_Tree.
18159 * prj-makr.adb (Tree): New constant to designate the project node tree
18160 Adapt to change in project manager using project node tree Tree
18162 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
18163 display the Library_Src_Dir and the Library_Dir.
18164 Add new parameter In_Tree to designate the project node tree to most
18165 subprograms. Adapt to changes in the project manager, using project tree
18167 (Check_Naming_Scheme): Do not alter the casing on platforms where
18168 the casing of file names is not significant.
18169 (Check): Add new parameter In_Tree to designate the
18171 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
18172 designate the project tree.
18173 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
18175 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
18176 to replace those that were in the private part of package Prj.
18177 Add new parameter In__Tree to designate the project node tree to most
18178 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
18179 (Post_Parse_Context_Clause): When specifying the project node of a with
18180 clause, indicate that it is a limited with only if there is "limited"
18181 in the with clause, not necessarily when In_Limited is True.
18182 (Parse): Add new parameter In_Tree to designate the project node tree
18184 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
18185 designate the project node tree. Adapt to change in Prj.Tree with
18186 project node tree In_Tree.
18188 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
18189 tree In_Tree in the call to function Empty_Process to give its initial
18190 value to the project data Processed_Data.
18191 Add new parameters In_Tree to designate the project tree and
18192 From_Project_Node_Tree to designate the project node tree to several
18193 subprograms. Adapt to change in project manager with project tree
18194 In_Tree and project node tree From_Project_Node_Tree.
18196 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
18197 to replace those that were in the private part of package Prj.
18198 Add new parameter In_Tree to designate the project node tree to most
18199 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
18201 * prj-tree.ads, prj-tree.adb: Add new parameter of type
18202 Project_Node_Tree_Ref to most subprograms.
18203 Use this new parameter to store project nodes in the designated project
18205 (Project_Node_Tree_Ref): New type to designate a project node tree
18206 (Tree_Private_Part): Change table to dynamic table and hash tables to
18207 dynamic hash tables.
18209 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
18210 the project tree to most subprograms. Adapt to changes in project
18211 manager using project tree In_Tree.
18213 * makegpr.adb (Project_Tree): New constant needed to use project
18216 2005-03-15 Olivier Hainque <hainque@adacore.com>
18218 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
18219 for sigactions with SA_SIGINFO set. Call
18220 __gnat_adjust_context_for_raise before raising, to perform the
18221 potentially required adjustments to the machine context for the GCC
18224 * raise.h (__gnat_adjust_context_for_raise): New prototype.
18226 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
18227 Adjust PC by one in the provided machine context.
18228 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
18229 so that the handler is passed the context structure to adjust prior to
18231 (__gnat_error_handler) HPUX: Adjust the signature to match what an
18232 SA_SIGINFO sigaction should look like. Call
18233 __gnat_adjust_context_for_raise before actually raising.
18234 (__gnat_adjust_context_for_raise): Default noop to help PC
18235 adjustments before raise from signal handlers.
18236 (__gnat_error_handler): Indirectly call a predicate function to
18237 determine if a condition should be resignaled or not.
18238 (__gnat_set_resignal_predicate): User interface to modify the predicate.
18239 (__gnat_default_resignal_p): Default GNAT predicate.
18241 2005-03-15 Doug Rupp <rupp@adacore.com>
18243 * adaint.c: Prefix #include of VMS system header files with vms/
18244 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
18245 Do not define a dummy function "convert_addresses" under Darwin,
18248 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
18251 2005-03-15 Nicolas Setton <setton@adacore.com>
18253 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
18256 2005-03-15 Robert Dewar <dewar@adacore.com>
18258 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
18261 * a-retide.ads: Minor comment changes
18263 2005-03-15 Robert Dewar <dewar@adacore.com>
18265 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
18266 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
18267 Realloc_For_Chunk to private part of package.
18268 New subprograms for AI-301
18270 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
18271 Get_Line procedure.
18272 Avoid unnecessary use of Get/Set_Wide_String
18274 2005-03-15 Robert Dewar <dewar@adacore.com>
18277 * a-stunau.ads, a-stunau.adb:
18278 Change interface to allow efficient (and correct) implementation
18279 The previous changes to allow extra space in unbounded strings had
18280 left this interface a bit broken.
18282 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
18284 * g-spipat.ads, g-spipat.adb: New interface for Get_String
18285 Minor reformatting (function specs)
18287 * g-spitbo.adb: New interface for Get_String
18289 * g-spitbo.ads: Minor reformatting
18291 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
18293 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
18295 2005-03-15 Javier Miranda <miranda@adacore.com>
18296 Robert Dewar <dewar@adacore.com>
18297 Thomas Quinot <quinot@adacore.com>
18298 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18300 * atree.ads, atree.adb: Add support for Elist24 field
18302 * atree.h: Fix wrong definition of Field27
18303 Add support for Elist16 field
18304 Add support for Elist24 field
18306 * einfo.ads, einfo.adb (Abstract_Interfaces,
18307 Set_Abstract_Interfaces): New subprograms.
18308 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
18310 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
18311 entities rather than a single node.
18312 (Is_Interface, Set_Is_Interface): New subprogram
18313 (First_Tag_Component): New syntesized attribute
18314 (Next_Tag_Component): New synthesized attribute
18315 (Write_Entity_Flags): Upgraded to write Is_Interface
18316 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
18317 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
18318 (Task_Body_Procedure): New subprogram to read this attribute.
18319 (Set_Task_Body_Procedure): New subprogram to set this attribute.
18320 (Has_Controlled_Component): Now applies to all entities.
18321 This is only a documentation change, since it always worked to apply
18322 this to other than composite types (yielding false), but now this is
18324 Update documentation on Must_Be_Byte_Aligned for new spec
18326 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
18327 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
18328 uses of the Access_Disp_Table attribute to reference the first dispatch
18329 table associated with a tagged type. As
18330 part of the implementation of abstract interface types,
18331 Access_Disp_Table has been redefined to contain a list of dispatch
18332 tables (rather than a single dispatch table).
18333 Similarly, upgrade all the references to Tag_Component by the
18334 new attribute First_Tag_Component.
18335 (Find_Inherited_TSS): Moved to exp_tss.
18336 Clean up test in Expand_N_Object_Declaration for cases
18337 where we need to do a separate assignment of the initial value.
18338 (Expand_N_Object_Declaration): If the expression in the
18339 declaration of a tagged type is an aggregate, no need to generate an
18340 additional tag assignment.
18341 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
18343 Bit packed array ops are only called if operands are known to be
18345 (Component_Equality): When returning an N_Raise_Program_Error statement,
18346 ensure that its Etype is set to Empty to avoid confusing GIGI (which
18347 expects that only expressions have a bona fide type).
18348 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
18349 determine the amount of data to be copied.
18351 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
18352 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
18353 INTERFACE_TYPE_DEFINITION ::=
18354 [limited | task | protected | synchronized] interface
18355 [AND interface_list]
18357 * par-ch3.adb (P_Type_Declaration): Modified to give support to
18359 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
18361 (P_Interface_Type_Definition): New subprogram that parses the new
18362 syntax rule of Ada 2005 interfaces
18363 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
18364 messages by the correct RENAMES (quotes removed).
18366 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
18367 attribute First_Tag_Component.
18369 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
18370 (Interface_List, Set_Interface_List): New subprograms.
18371 (Interface_Present, Set_Interface_Present): New subprograms.
18372 (Limited_Present, Set_Limited_Present): Available also in derived
18373 type definition nodes.
18374 (Protected_Present, Set_Protected_Present): Available also in
18375 record type definition and
18376 derived type definition nodes.
18377 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
18378 (Task_Present, Set_Task_Present): New subprogram.
18379 (Task_Body_Procedure): Removed.
18380 (Set_Task_Body_Procedure): Removed.
18381 These subprogram have been removed because the attribute
18382 Task_Body_Procedure has been moved to the corresponding task type
18383 or task subtype entity to leave a field free to store the list
18384 of interfaces implemented by a task (for AI-345)
18385 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
18386 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
18387 expression flag Do_Range_Check
18388 (Exception_Junk): Change to Flag7 to accomodate above change
18389 (Box_Present, Default_Name, Specification, Set_Box_Present,
18390 Set_Default_Name, Set_Specification): Expand the expression
18391 "X in N_Formal_Subprogram_Declaration" into the corresponding
18392 two comparisons. Required to use the csinfo tool.
18394 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
18395 "with string" given.
18397 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
18400 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
18403 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
18404 attribute Task_Body_Procedure rather than the old semantic field that
18405 was available in the task_type_declaration node.
18407 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
18408 interface type definitions.
18409 (P_Formal_Derived_Type_Definition): Modified to handle the list of
18412 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
18413 task type declaration.
18414 (P_Protected): Modified to handle the list of interfaces in a
18415 protected type declaration.
18417 2005-03-15 Doug Rupp <rupp@adacore.com>
18418 Vincent Celier <celier@adacore.com>
18420 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
18421 (Gen_Output_File_C): Likewise.
18422 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
18424 2005-03-15 Thomas Quinot <quinot@adacore.com>
18426 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
18427 is an N_Raise_Constraint_Error node, create a new copy of it without
18428 going through a call to Duplicate_Subexpr.
18430 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18431 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18432 Nicolas Setton <setton@adacore.com>
18433 Ed Schonberg <schonberg@adacore.com>
18439 * decl.c (gnat_to_gnu_field): Reject aliased components with a
18440 representation clause that prescribes a size not equal to the rounded
18441 size of their types.
18442 (gnat_to_gnu_entity, case E_Component): Always look at
18443 Original_Record_Component if Present and not the entity.
18444 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
18445 of tagged extension types by not making field for components that are
18447 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
18448 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
18449 expression to the type of the object when the object is constant.
18450 Reverse defer_debug_incomplete_list before traversing it, so that trees
18451 are processed in the order at which they were added to the list. This
18452 order is important when using the stabs debug format.
18453 If we are deferring the output of debug information, also defer this
18454 output for a function return type.
18455 When adding fields to a record, prevent emitting debug information
18456 for incomplete records, emit the information only when the record is
18458 (components_to_record): New parameter defer_debug.
18459 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
18460 (gnat_to_gnu_field_decl): New function.
18461 (substitution_list, annotate_rep): Call it.
18462 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
18463 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
18464 No longer update discriminants to not be a COMPONENT_REF.
18465 (copy_alias_set): Strip padding from input type; also handle
18466 unconstrained arrays properly.
18468 * gigi.h (write_record_type_debug_info): New function.
18469 Convert to use ANSI-style prototypes. Remove unused
18470 declarations for emit_stack_check, elab_all_gnat and
18471 set_second_error_entity.
18472 (gnat_to_gnu_field_decl): New decl.
18474 * utils.c (write_record_type_debug_info): New function.
18475 (finish_record_type): Delegate generation of debug information to
18476 write_record_type_debug_info.
18477 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
18478 (update_pointer_to): Fix pasto.
18479 (convert) <UNION_TYPE>: Accept slight type variations when
18480 converting to an unchecked union type.
18482 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
18483 replace the N_Freeze_Entity with a null statement.
18485 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
18486 within a constrained subcomponent of an enclosing record, place the
18487 freeze nodes in the scope stack entry for the enclosing record.
18488 (Undelay_Type): New Subprogram.
18489 (Set_Small_Size): Pass T, the type to modify; all callers changed.
18490 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
18491 within records; allow them to have freeze nodes if their base types
18494 * exp_util.adb (Remove_Side_Effects): Properly test for
18495 Expansion_Delayed and handle case when it's inside an
18496 N_Qualified_Expression.
18498 * sem_ch3.adb (Derived_Type_Declaration): New predicate
18499 Comes_From_Generic, to recognize accurately that the parent type in a
18500 derived type declaration can be traced back to a formal type, because
18501 it is one or is derived from one, or because its completion is derived
18503 (Constrain_Component_Type): If component comes from source and has no
18504 explicit constraint, no need to constrain in in a subtype of the
18506 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
18507 Minor change to propagate Is_Ada_2005 flag
18509 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
18510 Expansion_Delayed is False.
18511 (assoc_to_constructor): Ignore fields that have a
18512 Corresponding_Discriminant.
18513 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
18514 function returns "by target", dereference the target pointer using the
18515 type of the actual return value.
18516 <all>: Be prepared for a null gnu_result.
18517 (processed_inline_subprograms): Check flag_really_no_inline
18518 instead of flag_no_inline.
18519 (set_second_error_entity): Remove unused function.
18520 (gnat_to_gnu, case N_Selected_Component): Call
18521 gnat_to_gnu_field_decl.
18522 (assoc_to_constructor): Likewise.
18524 2005-03-15 Robert Dewar <dewar@adacore.com>
18525 Ed Schonberg <schonberg@adacore.com>
18526 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18528 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
18529 Must_Be_Byte_Aligned for cases where we do not need to use a
18530 System.Pack_nn unit.
18532 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
18534 Needed now that we do some processing for IN parameters as well. This
18535 may well fix some unrelated errors.
18536 (Expand_Call): Handle case of unaligned objects (in particular those
18537 that come from packed arrays).
18538 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
18539 renamed entity is an inherited operation, re-expand the call using the
18540 original operation, which is the one to call.
18541 Detect attempt to inline parameterless recursive subprogram.
18542 (Represented_As_Scalar): Fix to work properly with private types
18543 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
18544 accurate estimate. Yields True in far fewer cases than before,
18545 improving the quality of code that depends on this test.
18547 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
18548 over both visible and private declarations to remove them from tree,
18549 and mark subprograms declared in package as eliminated, to prevent
18550 spurious use in subsequent compilation of generic units in the context.
18552 * exp_util.ads: Minor cleanup in variable names
18554 * sem_eval.ads, sem_eval.adb: Minor reformatting
18555 (Compile_Time_Known_Bounds): New function
18557 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18559 * exp_ch7.adb (Convert_View): Use base types of underlying types when
18560 determining whether an unchecked conversion is needed for the argument
18561 of an initialization call.
18563 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18565 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
18566 that appears in the instantiation rather than the internal subtype
18567 generated in the wrapper package, to avoid anomalies in gigi when the
18568 target is derived from a private type whose full view is an access type.
18570 2005-03-15 Robert Dewar <dewar@adacore.com>
18572 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
18574 Add documentation to replace the use of this flag
18575 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
18578 2005-03-15 Thomas Quinot <quinot@adacore.com>
18580 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
18581 here from exp_attr so it can be shared between exp_attr and exp_dist.
18582 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
18583 all TSS names, not a subset thereof, and the previous name introduced
18584 an unnecessarily confusion that a distinction might exist between
18585 "OK" TSS names and some "not OK" TSS names.
18587 2005-03-15 Doug Rupp <rupp@adacore.com>
18589 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
18592 2005-03-15 Pascal Obry <obry@adacore.com>
18593 Eric Botcazou <ebotcazou@adacore.com>
18597 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
18598 when IN_RTS. This is to work around a bootstrap path problem.
18600 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
18601 table and pass it to __gnat_install_SEH_handler().
18602 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
18604 * lang.opt: Fix specification of -fRTS=.
18606 2005-03-15 Doug Rupp <rupp@adacore.com>
18607 Bernard Banner <banner@adacore.com>
18608 Vincent Celier <celier@adacore.com>
18609 Arnaud Charlet <charlet@adacore.com>
18612 This change works fine when gnatlib is built from the gcc directory,
18613 but does not work when using the libada Makefile, since GCC_FOR_TARGET
18614 is not passed to ada/Makefile.in, so more work is needed by a
18615 Makefile/configure expert.
18617 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
18618 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
18619 Setup gnatlink switch -M for x86_64 linux, as it is already setup
18621 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
18622 Run ranlib on libgccprefix.a
18623 Define PREFIX_OBJS for Darwin, to build libgccprefix.
18624 (ADA_INCLUDE_SRCS): Split Ada packages.
18626 2005-03-15 Robert Dewar <dewar@adacore.com>
18628 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
18630 * impunit.adb: Add GNAT.UTF_32
18632 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
18634 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
18635 now uses GNAT.UTF_32).
18637 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
18638 capabilities for categorizing characters using Unicode categories
18640 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18642 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
18643 instantiation that has been rewritten as a package body, retrieve spec
18644 to generate proper name for implicit_with_clause.
18645 (Install_Parents): Recognize a parent that is an instantiation but has
18646 been rewritten as a package declaration during analysis.
18648 2005-03-15 Javier Miranda <miranda@adacore.com>
18649 Ed Schonberg <schonberg@adacore.com>
18651 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
18652 parameter reported some error we immediately return. This improves the
18653 behaviour of the frontend in case of errors.
18654 (Install_Parent, Remove_Parent): Introduce new flag
18655 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
18656 ancestor of a generic child unit, when the child is being instantiated.
18657 (Inline_Instance_Body): If we are compiling the private
18658 part or the body of a child unit, restore the proper visibility of the
18659 parents after compiling the instance body.
18661 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18662 Javier Miranda <miranda@adacore.com>
18665 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
18666 of a private type, in which case it is underlying_type that denotes
18667 the proper task. Also modified to use the new entity attribute
18668 that is directly available in the task type and task subtype entities
18669 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
18670 arrays when other dimensions than the first are constrained by
18671 discriminants of an enclosing record.
18672 (Insert_Explicit_Dereference): If the prefix is an indexed component or
18673 a combination of indexed and selected components, find ultimate entity
18674 and generate the appropriate reference for it, to suppress spurious
18676 (Note_Possible_Modification): If an entity name has no entity, return.
18677 (Is_Variable): A function call never denotes a variable.
18678 (Requires_Transient_Scope): For record types, recurse only on
18679 components, not on internal subtypes that may have been generated for
18680 constrained components.
18682 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18684 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
18685 Eliminated as candidates for resolution. Both efficient, and avoids
18686 anomalies with operators declared in deleted code.
18687 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
18688 expansion is disabled (as when compiling a generic) to prevent spurious
18689 warnings on prefixes of selected components.
18691 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18693 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
18694 attached to a list before checking whether it appears in the private
18695 declarations of the current package.
18696 (Make_Inequality_Operator): Insert declaration in proper declarative
18697 list rather than just setting the Parent field, so that
18698 Is_Private_Declaration can handle it properly.
18700 2005-03-15 Ed Schonberg <schonberg@adacore.com>
18702 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
18703 a renaming a body, check that the renamed subprogram in not intrinsic.
18704 (Find_Direct_Name): If several use_visible entities hide
18705 each other, and the context is a predefined file compiled through
18706 rtsfind, keep only the entity that comes from a predefined file.
18708 2005-03-15 Geert Bosch <bosch@adacore.com>
18710 * s-fatgen.adb (Valid): Extend special exceptions to account for long
18711 long float padding to also cover AMD64 and IA64.
18713 2005-03-15 Gary Dismukes <dismukes@adacore.com>
18715 * s-imgwch.adb: Add with and use of Interfaces.
18716 (Img_Wide_Character): Change type of Val to Unsigned_16.
18717 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
18719 2005-03-15 Matthew Gingell <gingell@adacore.com>
18721 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
18723 2005-03-15 Robert Dewar <dewar@adacore.com>
18725 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
18727 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
18729 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
18731 2005-03-15 Robert Dewar <dewar@adacore.com>
18733 * s-bitops.adb, s-bitops.ads,
18734 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
18735 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
18736 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
18737 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
18738 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
18739 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
18740 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
18741 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
18744 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
18746 * utils2.c (build_binary_op): Fix typo.
18748 2005-03-15 Doug Rupp <rupp@adacore.com>
18750 * s-crtl.ads (popen,pclose): New imports.
18752 2005-03-15 Cyrille Comar <comar@adacore.com>
18754 * comperr.adb (Compiler_Abort): remove references to obsolete
18755 procedures in the bug boxes for various GNAT builds.
18757 2005-03-15 Vincent Celier <celier@adacore.com>
18759 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
18761 2005-03-15 Geert Bosch <bosch@adacore.com>
18762 Arnaud Charlet <charlet@adacore.com>
18763 Robert Dewar <dewar@adacore.com>
18764 Cyrille Comar <comar@adacore.com>
18765 Sergey Rybin <rybin@adacore.com>
18767 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
18768 too specific and long-winded to be appropriate for the GNAT User's
18770 Warn about use of GCC switches not documented in the GNAT User's Guide,
18771 as these may cause generated code to not conform to Ada semantics.
18772 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
18773 Add documentation for -gnat95 and -gnat05 switches
18774 Remove paragraph documenting obsolete way to refer to third party
18776 Add a few references to Ada_05 that were missing.
18777 Update documentation on -gnatZ/-gnatL.
18778 Document limitation when using -m64 under Solaris.
18779 Change the "Name Casing" subsection of the pretty-printer section
18780 according to the changes in the dictionary processing.
18782 * gnat_rm.texi: Document the Ada_05 pragma.
18783 Section on record representation clauses describes the new more
18784 relaxed rules about placement of large packed bit array components.
18785 Add documentation of GNAT.UTF_32
18787 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
18789 * misc.c (gnat_post_options): Turn off structural
18792 2005-03-08 Laurent Guerby <laurent@guerby.net>
18794 * system-linux-sparc.ads: Fix typo in previous commit.
18796 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
18797 Laurent Guerby <laurent@guerby.net>
18800 * system-linux-sparc.ads: New.
18801 * Makefile.in: Add sparc linux entry.
18803 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
18805 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
18806 parameters as unused.
18808 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
18809 Partial merge from libada-gnattools-branch:
18811 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
18812 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
18813 into code in gnattools/Makefile.in. Remove direct dependencies on
18814 stamp-tools by tools clauses.
18815 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
18816 * config-lang.in: Add gnattools to $lang_dirs.
18818 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
18821 * utils.c (gnat_type_for_mode): Return null instead of ICE because
18822 we asked for an unknown mode.
18824 2005-02-12 Richard Henderson <rth@redhat.com>
18826 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
18827 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
18829 2005-02-10 Andreas Jaeger <aj@suse.de>
18831 * init.c (__gnat_initialize): Mark parameter as unused.
18833 2005-02-09 Doug Rupp <rupp@adacore.com>
18835 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
18836 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
18838 2005-02-09 Doug Rupp <rupp@adacore.com>
18840 * gnatchop.adb (dup, dup2),
18841 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
18843 * gnatlbr.adb (mkdir),
18844 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
18846 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
18848 2005-02-09 Doug Rupp <rupp@adacore.com>
18850 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
18852 2005-02-09 Robert Dewar <dewar@adacore.com>
18853 Thomas Quinot <quinot@adacore.com>
18854 Javier Miranda <miranda@adacore.com>
18855 Pascal Obry <obry@adacore.com>
18856 Ed Schonberg <schonberg@adacore.com>
18857 Doug Rupp <rupp@adacore.com>
18858 Gary Dismukes <dismukes@adacore.com>
18859 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18861 * g-zstspl.ads: New file.
18863 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
18865 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
18867 Add definition of Wide_Wide_Space for AI-285
18869 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
18870 interface (to support Ada 95 and Ada 2005 units).
18871 Add Unbounded_IO files
18872 Add entries for Wide_Wide packages for AI-285
18873 Add list of containers packages to Ada 2005 unit list
18875 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
18876 support new Unbounded_IO package cleanly.
18878 * g-utf_32.ads, g-utf_32.adb: New files.
18880 * Makefile.rtl: Add entry for g-utf_32
18881 Add new files for Unbounded_IO
18882 Adjust make file for new AI-285 wide wide packages
18883 Add AI-302 containers to the run time.
18885 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
18886 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
18887 subprograms for AI-301.
18889 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
18891 * a-stunau.ads: Minor comment correction
18893 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
18895 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
18896 (Check_RPC): Update to match changes in expanded code.
18897 Clean up unused entity.
18899 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
18900 was not taken into account.
18901 This includes proper initialization with Normalize_Scalars.
18902 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
18903 normalize scalars cases (particularly the latter) to do a better job
18904 of finding invalid representations.
18906 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
18908 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
18911 * exp_dist.adb: Add support for wide wide character type
18912 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
18913 private part, generate stub bodies at the end of the private part,
18914 not the visible part.
18915 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
18917 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
18918 generic wrapper to execute final processing after completing the
18919 expansion of the RPC receiver for an RACW.
18921 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
18922 packages and attributes.
18923 (Preset_Names): Addition of the new reserved words of Ada 2005,
18924 that is interface, overriding and synchronized.
18925 (Get_Pragma_Id): Give support to the use of the new reserved word
18926 "interface" as a pragma name.
18927 (Is_Pragma_Name): Give support to the use of the new reserved word
18928 "interface" as a pragma name.
18929 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
18930 attribute implementation.
18932 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
18933 checks to entities that are output parameters of Asm operations.
18934 Handle the Stream_Size attribute.
18935 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
18937 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
18939 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
18940 for second parameter being 0.0.
18941 Add support for wide wide character type.
18942 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
18944 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
18945 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
18946 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
18947 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
18948 for wide wide character cases.
18950 * cstand.adb: Create entities for Wide_Wide_Character and
18953 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
18954 accordance with AI-258.
18955 Add new declarations for 16/32 bit C character types (Part of AI285)
18957 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
18958 (Obsolescent_Warning): New field
18959 (Rep_Clause): New local subprogram used to share code. Returns the rep
18960 clause for which the name is given in parameter.
18961 (Has_Stream_Size_Clause): New routine.
18962 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
18963 (Address_Clause): Implementation is now using Rep_Clause.
18964 (Alignment_Clause): Idem.
18965 (Size_Clause): Idem.
18967 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
18968 entity in non-Ada 2005 mode and generate warning.
18970 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
18971 (Prag): Code cleanup. Remove old gnat pragma "overriding"
18973 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
18974 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
18975 on the named unit if the pragma is not in the current compilation unit,
18976 so that elaboration calls in the current unit can set up an elaboration
18977 dependency on the named unit, as needed.
18978 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
18979 subprogram as well as for subprograms declared within a package.
18980 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
18983 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
18984 to z) to avoid some instances of duplication for Wide_Wide packages.
18986 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
18989 * scn.adb: Char_Literal_Value field is now a Uint
18991 * scng.adb: Significant rewrite to handle new Ada 2005 features
18992 allowing wide and wide wide characters in program text, e.g. for
18993 identifiers, as described in AI-285.
18994 (Set_Reserved): New procedure, makes setting up keywords cleaner.
18995 (Initialize_Scanner): Register the new reserved words of Ada 2005.
18996 (Scan): Give support to the new reserved words.
18998 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
18999 warning notifying that interface, overriding, and synchronized are
19000 new reserved words.
19001 (P_Pragma): Allow the use of the new reserved word "interface" as
19004 * gnatls.adb, gnatbind.adb,
19005 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
19006 identifiers named "interface" to "SAL_Interface".
19008 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
19009 (Structured Exception handling).
19010 (Gen_Main_C): Idem.
19013 (Gen_Main_Ada): Set the default exit code if specified.
19014 (Gen_Main_C): Likewise.
19016 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
19017 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
19019 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
19022 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
19023 has a collision with the new Ada 2005 "interface" reserved word.
19025 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
19026 generate a warning notifying that interface, overriding, and
19027 synchronized are new reserved words.
19029 * scans.ads (Token_Type): Addition of the tokens corresponding to the
19030 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
19031 and Tok_Synchronized.
19033 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
19034 "dispatching" rather than "primitive" operations, since dispatching
19035 calls are now allowed to abstract formal subprograms (which are not
19037 Char_Literal_Value field is now a Uint
19038 (Resolve_Slice): If the prefix is an access to an unconstrained array,
19039 compute the actual subtype of the designated object to impose the proper
19041 (Resolve_Selected_Component): Do not insert an access check if the
19042 prefix is an access type: such a node is expanded into an explicit
19043 dereference, on which the access check is performed anyway. Removes
19044 expensive duplicate checks.
19045 (Resolve_Call): Use new flag Is_Obsolescent and field
19046 Obsolescent_Warning so that pragma Obsolescent works on library
19048 Add support for wide wide character type
19049 (Resolve_Allocator): Replace the error message on wrong null-exclusion
19050 value by a warning message.
19051 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
19052 as fixed-point, and one of the operands is non-static and universal, it
19053 can only be an illegal exponentiation operation, in which case there is
19054 no real value to retrieve.
19056 * exp_strm.adb: Add support for wide wide character type
19057 (Build_Elementary_Input_Call): Compute the size of the stream element by
19058 querying the rep chain to find the Stream_Attribute attribute value.
19059 (Build_Elementary_Write_Call): Ditto.
19061 * sem_aggr.adb: Char_Literal_Value field is now a Uint
19062 Add support for wide wide character type
19063 Replace the error messages on wrong null-exclusion value by warnings
19064 as described in Ada 2005.
19065 (Resolve_Extension_Aggregate): Document the fact that the error
19066 message on class-wide expressions in extensions aggregates.
19068 * sem_case.adb: Add support for wide wide character type
19070 * sem_ch13.adb: Add support for wide wide character type
19071 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
19073 * sem_ch3.adb: Add support for wide wide character type
19074 (Process_Subtype): If constraint is illegal for the type, set Ekind of
19075 now-useless Itype, to prevent cascaded errors on a compiler built
19078 * sem_ch8.adb: Add with and use of Sem_Disp.
19079 (Analyze_Subprogram_Renaming): Replace unclean uses of
19080 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
19081 of Corresponding_Spec to Empty).
19082 (Attribute_Renaming): Replace use of Corresponding_Spec with
19083 Corresponding_ Formal_Spec and simplify condition.
19084 (Use_One_Package): Check that scope of homonym of identifier is defined,
19085 before checking whether it is a wrapper package.
19086 Add support for wide wide character type
19088 * sem_eval.adb: Add support for wide wide character type.
19089 (Eval_Arithmetic_Op): Check for compile time known signed integer
19090 overflow in the non-static case.
19091 (Subtypes_Statically_Match): A formal scalar type and its base type do
19092 not statically match.
19094 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
19095 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
19097 (Unit_Declaration_Node): Ditto.
19098 (Is_Variable_Prefix): For the case of an indexed component whose prefix
19099 has a packed array type, the prefix has been rewritten into a type
19100 conversion. Determine variable-ness from the converted expression.
19101 Handle wide wide character cases.
19103 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
19105 * stringt.ads, stringt.adb: Handle full UTF-32 range.
19106 Remove ["0A"] from comment, since it can look like a line terminator.
19107 Currently we don't permit this, but this is under discussion by the
19108 ARG, and it is easy enough to use a different example.
19110 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
19111 handling UTF-32 encoding for wide wide character.
19112 Implement new brackets coding ["hhhhhhhh"]
19113 Add UTF-8 encodings for full UTF-32 range
19115 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
19117 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
19118 bit range Add full UTF-32 support.
19119 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
19120 notify that constraint error will be raised at run-time
19121 because a null value is assigned to a null-excluding object.
19122 Remove some obsolete declarations and make Char_Code
19125 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
19126 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
19127 Rcheck subprograms.
19129 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
19130 wrong null-exclusion value by a warning message.
19131 (Enable_Range_Check): Do range check if the prefix is an
19132 explicit dereference whose designated object is an unconstrained array.
19133 Current algorithm for removing duplicate checks is over-eager in this
19136 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
19137 null-exclusion value by a warning message
19139 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
19140 completely. Add support for Uint2 field
19142 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
19143 exp_prag.adb: Char_Literal_Value field is now a Uint.
19145 * exp_util.adb (Insert_Actions): Replace
19146 N_Formal_Subprogram_Declaration by
19147 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
19148 Char_Literal_Value field is now a Uint.
19150 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
19151 defined for subprogram renaming declarations. When set, the field
19152 indicates the defining entity of a corresponding formal subprogram
19153 when the renaming corresponds to a formal subprogram association in an
19155 (Set_Corresponding_Formal_Spec): New procedure to return
19156 Corresponding_Formal_Spec field.
19157 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
19158 (which is now a subtype).
19159 Char_Literal_Value field is now a Uint
19161 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
19162 pointer to the base of the dispatch table.
19163 Minor changes to comments.
19164 (Controlling_Type): New function for determining the tagged type
19165 associated with a tagged primitive subprogram.
19166 (Expand_Dispatching_Call): Add support for a controlling actual that is
19167 directly a value of type Ada.Tag rather than a tagged object.
19169 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
19170 describing the new layout.
19171 (Dispatch_Table): The expander computes the actual array size, allocates
19172 the Dispatch_Table record accordingly, and generates code that displaces
19173 the base of the record after the Typeinfo_Ptr component. The access to
19174 these components is done by means of local functions.
19175 (Offset_To_Top): New function.
19176 (Typeinfo_Ptr): New function.
19177 (Get_TSD): Modified to access the new position of the TSD.
19178 (Set_TSD): Modified to save the TSD in its new position.
19180 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
19181 case of formal abstract subprograms. Add check and message for -gnat05.
19184 * sem_ch12.adb: Add with and use for Sem_Disp.
19185 (Analyze_Associations): Minor change from "=" to "in" for use of
19186 N_Formal_Subtype_Declaration (which is now a subtype).
19187 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
19188 N_Formal_Subtype_Declaration (which is now a subtype).
19189 (Analyze_Formal_Subprogram): Add handling for
19190 N_Formal_Abstract_Subprogram, marking the formal as abstract and
19191 dispatching, setting the controlling status of the formal parameters
19192 and result, and issuing an error if there is no controlling type for
19193 the formal subprogram.
19194 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
19195 which is an unclean use of that field, we set the new field
19196 Corresponding_Formal_Spec to make the formal subprogram available to
19197 processing in Analyze_Subprogram_Declaration.
19198 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
19199 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
19200 Constrained, so that it is is does not statically match its anonymous
19203 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
19204 abstract formal subprograms in error check for functions returning
19205 abstract types. Set scope of new designator for
19206 a parameterless subprogram, so that it is available when checking the
19207 body for nested subprograms, before full analysis of said body.
19208 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
19209 subprogram only if inner one comes from source.
19210 (Analyze_Function_Call): If the call is given in object notation, the
19211 analysis of the name rewrites the node and analyzes it with the proper
19212 argument list. After analyzing the name, if the call has been rewritten
19213 and the result type is set, no further analysis is needed.
19214 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
19215 mark in function specification, in a context where the formals are
19216 visible and hide outer homographs.
19218 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
19219 as the tagged type for the cases of abstract formal subprograms and
19220 renamings of those. Clean up spec comments.
19221 (Check_Dispatching_Context): Add error message to indicate "abstract
19222 procedure", covering the case of a call to a formal abstract procedure
19223 that has statically tagged operands.
19224 (Check_Dispatching_Call): Check for the case of an actual given by
19225 a tag-indeterminate function call whose type is an ancestor of the
19226 containing call's associated tagged type. This situation can occur
19227 for inherited primitives with function defaults. In this case we
19228 use the tagged type's tag directly as the controlling argument for
19230 (Expand_Call): Name change on call to Expand_Dispatch_Call.
19232 * sprint.adb (Sprint_Node_Actual): Split
19233 N_Formal_Subprogram_Declaration into two alternatives for the new
19234 cases N_Formal_Abstract_Subprogram_Declaration and
19235 N_Formal_Concrete_Subprogram_Declaration.
19236 Char_Literal_Value field is now a Uint.
19238 * trans.c: Get rid of junk Uint2 reference.
19239 Char_Literal_Value field is now a Uint.
19240 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
19241 (gigi): Correct third arg to gimplify_body.
19243 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
19244 (TYPE_LANG_FLAG_0): Check for record or union.
19246 * treepr.adb: Char_Literal_Value field is now a Uint
19248 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
19251 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
19252 Add full UTF-32 support
19253 Char_Code is now 32 bits
19255 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
19256 wide character UTF_32 line terminators.
19257 Initialize Main_Source_File to avoid error when no main
19260 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
19261 (Main_Source_File) when no main source has been loaded, to avoid
19264 2005-02-09 Robert Dewar <dewar@adacore.com>
19266 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
19267 Fix name of Set routine
19269 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
19272 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
19273 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
19276 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
19277 forms of Get_Line subprograms for AI-301.
19279 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
19280 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
19281 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
19282 a-stwima.ads: Minor reformatting.
19284 2005-02-09 Doug Rupp <rupp@adacore.com>
19285 Thomas Quinot <quinot@adacore.com>
19287 * adaint.c, adaint.h
19288 [VMS] (to_ptr32): New function.
19289 (MAYBE_TO_PTR32): New macro.
19290 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
19292 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
19293 [VMS] (#define fork()): Remove since unneccessary.
19294 (__gnat_set_close_on_exec): New routine to support
19295 GNAT.OS_Lib.Set_Close_On_Exec.
19297 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
19298 the parent side as close-on-exec so that they are not inherited by the
19301 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
19302 set or clear the FD_CLOEXEC flag on a file descriptor.
19304 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
19305 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19309 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
19310 on the field if Pragma Component_Alignment (Storage_Unit).
19311 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
19312 side-effects as if it were a constant; also make SAVE_EXPR to protect
19314 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
19316 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
19317 (components_to_record): Test it.
19318 Fix improper usage of REFERENCE_CLASS_P.
19320 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
19323 * utils2.c: Minor reformatting.
19325 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
19326 handle other cases like RECORD_TYPE.
19328 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
19330 2005-02-09 Ed Schonberg <schonberg@adacore.com>
19332 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
19333 component of an array of arrays in an assignment context, and the
19334 aggregate has component associations that require sliding on
19335 assignment, force reanalysis of the aggregate to generate a temporary
19336 before the assignment.
19337 (Must_Slide): Make global to the package, for use in Gen_Assign.
19339 2005-02-09 Ed Schonberg <schonberg@adacore.com>
19341 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
19342 unchecked union with no inferable discriminants, return a
19343 Raise_Program_Error node, rather than inserting it at the point the
19345 (Expand_Record_Equality, Component_Equality): Handle properly the case
19346 where some subcomponent is an unchecked union whose generated equality
19347 code raises program error.
19349 2005-02-09 Doug Rupp <rupp@adacore.com>
19351 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
19352 [VMS] (#define exit hack): Remove.
19354 2005-02-09 Pascal Obry <obry@adacore.com>
19355 Arnaud Charlet <charlet@adacore.com>
19357 * init.c (__gnat_initialize): Add a new parameter eh which contains the
19358 address of the exception registration. The Win32 version of this
19359 routine calls __gnat_install_SEH_handler() to initialize the SEH
19360 (Structured Exception Handling) handler.
19361 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
19362 SEH (Structured Exception Handling) now.
19363 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
19364 (__gnat_initialize for ppc-vxworks): Adjust comments and the
19365 preprocessor condition protecting the call to the extra eh setup
19366 subprogram, which is only available for the ppc target.
19367 (__gnat_clear_exception_count): replaced reference to
19368 variable taskIdCurrent by call to taskIdSelf(), cleaner.
19370 * seh_init.c: New file.
19372 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
19373 (GNATBIND_OBJS): Idem.
19375 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
19376 routine takes a new parameter (a pointer to the exception registration
19377 for the SEH (Structured Exception Handling) support.
19379 * raise.h: (__gnat_install_SEH_handler): New prototype.
19380 Update copyright notice.
19382 * s-tassta.adb (Task_Wrapper): Declare the exception registration
19383 record and initialize it by calling __gnat_install_SEH_handler.
19385 2005-02-09 Vincent Celier <celier@adacore.com>
19387 * make.adb (Gnatmake): Do not fail when the main project has no object
19390 2005-02-09 Doug Rupp <rupp@adacore.com>
19392 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
19393 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
19394 [VMS]: Add translations for g-enblsp.adb.
19396 * s-asthan-vms.adb: Removed.
19397 * s-asthan-vms-alpha.adb: Added.
19399 2005-02-09 Pascal Obry <obry@adacore.com>
19401 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
19402 (LIBGNAT_OBJS): Add seh_init.o.
19404 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19407 * Makefile.in: Link all gnat tools with -static-libgcc, since
19408 -shared-libgcc is now used by default on some systems (e.g. linux with
19410 Remove references to Makefile.prolog/generic, no longer used.
19412 2005-02-09 Vincent Celier <celier@adacore.com>
19414 * prj-makr.adb (Process_Directory): Put file name in canonical case
19415 before matching against the patterns.
19416 If gnatname has been invoked as <prefix>-gnatname
19417 then invoke the compiler as <prefix>-gcc, not just "gcc".
19419 2005-02-09 Ed Schonberg <schonberg@adacore.com>
19421 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
19422 with expansion disabled. The actual subtype is needed among other
19423 places when the selected component appears in the context of a loop
19424 bound, and denotes a packed array.
19425 (Operator_Check): Always use the first subtype in the
19426 error message, to avoid the appearance of internal base types.
19427 (Transform_Object_Operation): Copy each actual in full
19428 to the parameter associations of the constructed call, rather than
19429 using the shallow copy mechanism of New_Copy_List. This ensures that
19430 the chaining of named associations is done properly.
19431 (Complete_Object_Operation): Rewrite node, rather than
19432 replacing it, so that we can trace back to the original selected
19435 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
19436 and calls that use object notation, if the called function is not
19437 declared in a withed unit, place the elaboration constraint on the
19438 unit in the context that makes the function accessible.
19439 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
19440 imposes an elaboration constraint between two packages.
19442 2005-02-09 Ed Schonberg <schonberg@adacore.com>
19444 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
19445 views of a private type after handling its private dependents, to
19446 maintain proper stack discipline between entry and exit from the
19449 2005-02-09 Cyrille Comar <comar@adacore.com>
19451 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
19452 Minor reformatting.
19454 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19456 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
19457 fields for foreign threads.
19459 2005-02-09 Doug Rupp <rupp@adacore.com>
19461 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
19462 recursion warnings when compiled with -gnatdm.
19464 2005-02-09 Robert Dewar <dewar@adacore.com>
19466 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
19467 Slight fix to documentation of -gnaty with no parameters
19469 * xr_tabls.ads: Add ??? comment for missing overall comment
19471 * xsinfo.adb: Make default file name be sinfo.h, since this is what
19472 we now use by default.
19474 * xsnames.adb: Adjust end of file test to look for five space followed
19475 by '#' instead of six spaces. The format of xsnames.adb was modified
19476 in the last update.
19478 * a-numeri.ads: Add reference to AI-388 for greek letter pi
19481 * clean.adb: Minor reformatting.
19483 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
19484 gnatname.adb: Minor reformatting
19485 Add 2005 to copyright output when utility is run
19487 * csets.adb: Eliminate obsolete comment
19489 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
19492 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
19494 2005-02-09 Sergey Rybin <rybin@adacore.com>
19496 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
19497 the difference between compact and incompact layout and add the record
19498 representation clause to the example illustrating different layouts.
19499 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
19500 component clauses").
19502 2005-02-09 Florian Villoing <villoing@adacore.com>
19504 * gnat_ugn.texi: Fix typos.
19505 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
19507 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
19508 in the generated documentation.
19510 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19512 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
19514 Update linker wrapper when linking with non GNU C++.
19516 2005-02-09 Pascal Obry <obry@adacore.com>
19519 Document the procedure to debug the DllMain routine on Windows.
19520 Add note about -funwind-tables and mixed Ada and C/C++ programming in
19522 Document new BIND qualifer /RETURN_CODES=VMS.
19524 2005-02-09 Ben Brosgol <brosgol@adacore.com>
19526 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
19527 Edited gnatmetric chapter
19529 2005-02-09 Robert Dewar <dewar@adacore.com>
19532 Changes to document new wide wide character support
19534 Update documentation on Normalize_Scalars and Initialize_Scalars
19536 2005-02-09 Pascal Obry <obry@adacore.com>
19538 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
19540 2005-02-09 Jose Ruiz <ruiz@adacore.com>
19542 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
19543 from the VxWorks kernel) that is needed for getting the active
19544 priority of the different tasks.
19546 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
19547 Use a pragma Elaborate_Body in the spec file instead.
19548 Noticed by code reading.
19550 2005-02-09 Thomas Quinot <quinot@adacore.com>
19552 * exp_util.ads: Minor correction in comment.
19554 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19556 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
19557 since this procedure is now too complex to be worth inlining.
19559 2005-02-09 Richard Henderson <rth@redhat.com>
19561 * utils.c (gnat_define_builtin): Remove.
19562 (gnat_install_builtins): Use build_common_builtin_nodes.
19564 2005-02-09 Arnaud Charlet <charlet@adacore.com>
19566 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
19567 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
19568 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
19569 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
19570 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
19571 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
19572 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
19573 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
19574 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
19575 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
19576 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
19577 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
19578 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
19579 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
19580 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
19581 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
19582 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
19583 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
19584 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
19585 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
19586 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
19587 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
19588 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
19589 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
19590 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
19591 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
19592 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
19593 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
19594 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
19595 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
19596 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
19597 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
19598 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
19599 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
19602 2005-01-27 Laurent GUERBY <laurent@guerby.net>
19604 * Makefile.in: Fix a-intnam.ads from previous commit,
19605 add 2005 to copyright.
19606 * a-intman-rtems.ads: Renamed to...
19607 * a-intnam-rtems.ads:
19609 2005-01-27 Laurent GUERBY <laurent@guerby.net>
19611 * Makefile.in: Rename GNAT RTEMS specific files.
19612 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
19613 5rosinte.ads, 5rparame.adb: Replaced by files below.
19614 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
19615 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
19617 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
19618 Laurent GUERBY <laurent@guerby.net>
19621 * 5rosinte.ads: Add No_Key constant.
19622 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
19623 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
19625 2005-01-26 Laurent GUERBY <laurent@guerby.net>
19628 * i-cobol.adb (Valid_Numeric): Handle zero length case.
19630 2005-01-20 Richard Henderson <rth@redhat.com>
19632 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
19633 a-intnam-linux.ads and system-linux-alpha.ads.
19634 * a-intnam-linux-alpha.ads: Remove file.
19635 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
19636 * system-linux-alpha.ads: New file.
19638 2005-01-18 Jakub Jelinek <jakub@redhat.com>
19641 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
19642 set to the new string.
19644 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
19646 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
19649 2005-01-18 Richard Henderson <rth@redhat.com>
19651 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
19652 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
19654 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
19656 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
19658 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
19659 (GCC_ZCX_Support): Likewise.
19661 2005-01-11 Bastian Blank <waldi@debian.org>
19663 * system-linux-s390.ads: Define Preallocated_Stacks.
19664 * system-linux-s390x.ads: Likewise.
19666 2005-01-04 Arnaud Charlet <charlet@adacore.com>
19668 * gnat_ugn.texi: Fix texi errors with null variables.
19670 2005-01-03 Thomas Quinot <quinot@adacore.com>
19672 * gen-soccon.c: New utility program to generate g-soccon.ads
19675 * socket.c, gsocket.h: Split inclusion of system header files into a
19676 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
19678 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
19679 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
19680 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
19681 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
19682 should not be edited by hand anymore, but should be regenerated using
19685 2005-01-03 Robert Dewar <dewar@adacore.com>
19686 Ed Schonberg <schonberg@adacore.com>
19687 Vincent Celier <celier@adacore.com>
19689 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
19690 on/off, since this is an obsolescent feature, for which we now generate
19693 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
19694 warning mode is set and obsolescent usage of this attribute occurs.
19695 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
19696 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
19697 predates, and partly motivates, the adoption of the AI.
19698 Implement new Ada 2005 attribute Mod
19700 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
19703 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
19705 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
19706 pragma restrictions.
19707 New entry for Ada 2005 attribute Mod.
19710 Add recognition of new pragma Restrictions No_Dependence
19711 Recognize restriction No_Obsolescent_Features at parse time
19713 * bcheck.adb: Add circuitry for checking for consistency of
19714 No_Dependence restrictions.
19716 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
19719 * restrict.ads, restrict.adb: Add subprograms to deal with
19720 No_Dependence restrictions.
19722 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
19725 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
19726 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
19728 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
19729 dummy parameter to scng instantiation.
19730 Needed for new restriction No_Obsolescent_Features
19732 * scn.adb: (Obsolescent_Check): New procedure
19733 Needed for new restriction No_Obsolescent_Features
19735 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
19736 specified by AI-285, needed for implementation of AI-388 (adding greek
19737 pi to Ada.Numerics).
19738 Add new generic formal to scng, needed for new restriction
19739 No_Obsolescent_Features.
19741 * s-rident.ads: Add new restriction No_Obsolescent_Features.
19743 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
19744 restrictions lines.
19745 (Scan_ALI): When finding an unexpected character on an R line, raise
19746 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
19747 Ignore_Errors is True, default restrictions are set and scanning of the
19748 ALI file continues with the next line. Also, when Bad_R_Line is raised
19749 and Ignore_Errors is True, skip to the end of le line.
19751 * sem_ch10.adb: Check that explicit with's do not violate
19752 No_Dependence restrictions.
19753 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
19754 illegal context clauses containing child units of instance.
19756 * sem_prag.adb: Processing and checking for new No_Dependence
19758 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
19759 analyze and check the External argument.
19761 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
19763 2005-01-03 Robert Dewar <dewar@adacore.com>
19765 * atree.adb: Add a fifth component to entities
19766 This allows us to add 32 flags and four new fields
19768 * atree.ads: Add a fifth component to entities
19769 This allows us to add 32 flags and four new fields
19771 * einfo.ads, einfo.adb: Document new fields and new flags now available
19772 Add routines for printing new fields
19774 * treepr.adb: Call routines to print out additional fields if present
19776 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19778 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
19779 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
19781 * Makefile.in: Add support to build shared Ada libraries on solaris x86
19782 Remove gpr2make, replaced by gprmake.
19783 Remove references to gnatmem and libaddr2line.
19784 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
19785 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
19786 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
19787 a-numaux-darwin.ads and a-numaux-darwin.adb
19788 Enable mlib-tgt-lynxos.adb on lynxos.
19790 * Make-lang.in: Remove rules for gpr2make.
19791 When generating sdefault.adb, do not call Relocate_Path
19792 on S3 for function Target_Name, as it is not a path.
19793 Remove references to gnatmem and libaddr2line.
19795 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
19798 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
19800 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
19801 address is incompatible with its base type alignment constraints when
19802 this can be decided statically.
19804 2005-01-03 Olivier Hainque <hainque@adacore.com>
19806 * decl.c (compatible_signatures_p): New function. The intended purpose
19807 is to check if two function signatures for a call-site and a callee are
19808 compatible enough for the call to be valid. The underlying purpose is
19809 to check if a call to a mapped builtin is using the right interface.
19810 The current code actually does not check antyhing - this a placeholder
19811 for future refinements.
19812 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
19813 builtin calls for convention Intrinsic.
19815 * gigi.h (builtin_decl_for): Declare (new function).
19817 * utils.c (gnat_install_builtins): Install the target specific builtins.
19818 (builtin_decl_for): New function, provide a dummy body for now.
19820 2005-01-03 Geert Bosch <bosch@adacore.com>
19822 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
19823 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
19824 (Pred): Implement in terms of Succ.
19826 * trans.c (convert_with_check): Reimplement conversion of float to
19829 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19830 Vincent Celier <celier@adacore.com>
19832 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
19833 bounds can be negative, and must be declared Int, not Nat.
19835 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
19836 array is checked after using the index in the array.
19838 * makegpr.adb (Add_Switches): Check if there is a package for the
19839 processor. If there is no package, do not look for switches.
19841 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19843 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
19844 generation of predefined stream operations (specs and bodies) should
19845 proceed. Under various restrictions these subprograms must not be
19848 2005-01-03 Thomas Quinot <quinot@adacore.com>
19851 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
19852 amount of PCS-specific code in RACW stubs generation.
19853 (Copy_Specification): Set Etype on copied formal parameter entities, as
19854 this information is needed for PolyORB stubs generation.
19855 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
19856 variable Dynamic_Async.
19857 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
19858 (Build_RPC_Receiver_Specification): Make generic again, as recent
19859 changes have allowed RPC receivers to have the same profile for both
19860 variants of the PCS.
19861 Reorganise RPC receiver generation to reduce differences between the
19862 structure of GARLIC and PolyORB RPC receivers.
19863 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
19865 Simplify elaboration code for RCI packages.
19867 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
19868 generation to reduce differences between the structure of GARLIC and
19869 PolyORB RPC receivers.
19871 * s-stratt.adb: Fix typo in comment.
19873 2005-01-03 Thomas Quinot <quinot@adacore.com>
19875 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
19876 copied from Make_Init_Call).
19878 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
19879 reads and assignments on a temporary variable declared with appropriate
19882 2005-01-03 Robert Dewar <dewar@adacore.com>
19884 * i-c.adb (To_C): Raise CE if string is null and Append_Null
19886 2005-01-03 Robert Dewar <dewar@adacore.com>
19888 * i-cstrin.adb (Update): Do not append a null in form called with a
19889 String. This avoids unintended behavior.
19891 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19894 * init.c: Fix warnings on Free BSD section.
19896 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19899 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
19902 2005-01-03 Vincent Celier <celier@adacore.com>
19904 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
19905 libraries when Unique_Compile is True (-u switch).
19908 2005-01-03 Robert Dewar <dewar@adacore.com>
19910 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
19911 upper case letter or underscore after W, as allowed by spec.
19913 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19915 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
19916 darwin port by using proper type definitions from header files.
19917 Use SIGTERM instead of SIGABRT for SIGADAABORT.
19919 2005-01-03 Robert Dewar <dewar@adacore.com>
19921 * par.adb: Enhance error message handling for configuration file
19924 2005-01-03 Robert Dewar <dewar@adacore.com>
19926 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
19927 removed during the previous update (test properly for case of dividing
19928 largest negative number by -1, which generates overflow).
19930 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19931 Sergey Rybin <rybin@adacore.com>
19933 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
19934 to use as the defining identifier for a formal package.
19935 (Remove_Parent): If the instance takes place within (an instance of)
19936 a sibling, preserve private declarations of common parent.
19938 2005-01-03 Ed Schonberg <schonberg@adacore.com>
19940 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
19941 to determine whether one of the operands is a fixed-point type for
19942 which a user-defined multiplication or division operation might be
19945 * sem_res.adb (Valid_Conversion): The legality rules for conversions
19946 of access types are symmetric in Ada 2005: either designated type can
19949 2005-01-03 Vincent Celier <celier@adacore.com>
19951 * s-fileio.adb (Temp_File_Record): Change length of string component
19952 Name from L_tmpnam + 1 to max_path_len + 1.
19954 2005-01-03 Arnaud Charlet <charlet@adacore.com>
19956 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
19957 Self_Id.Deferral_Level = 0.
19958 (Do_Pending_Action): Move this function to the spec.
19960 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
19961 Do_Pending_Action explicitely when needed, in case we're using
19962 No_Abort restrictions.
19964 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
19965 deferral level since it will not get changed by the generated code.
19966 Keeping a default value of 1 would prevent some operations (e.g.
19967 select or delay) to proceed successfully.
19969 2005-01-03 Ben Brosgol <brosgol@adacore.com>
19970 Robert Dewar <dewar@adacore.com>
19971 Cyrille Comar <comar@adacore.com>
19973 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
19974 porting guide chapter (vms version).
19975 Revised doc title (removed "for native platforms") and subtitle.
19976 Add discussion on warning flag for obsolescent features. First we
19977 note that it applies to obsolete GNAT features, which was previously
19978 omitted. Second we contrast the behavior with that of the new
19979 Ada 2005 AI-368 restriction No_Obsolescent_Features.
19980 Preliminary rewriting of GNAT & libraries chapter in order to take
19981 into account default project locations & new project manager
19984 2005-01-03 Robert Dewar <dewar@adacore.com>
19986 * cstand.adb (Create_Operators): Clean up format and documentation of
19987 unary and binary operator result tables. No change in code, just
19988 reformatting and addition of comments.
19990 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
19991 sem_ch2.adb: Minor reformatting
19993 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
19994 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
19995 comments for Tree_Read and Tree_Write.
19997 2005-01-03 Pascal Obry <obry@adacore.com>
19999 * exp_attr.ads: Minor reformatting.
20001 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
20003 * comperr.adb (Compiler_Abort): Add specialized message for GAP
20006 2005-01-03 Ed Schonberg <schonberg@adacore.com>
20008 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
20009 whether the ancestor type is private, as may be the case with nested
20012 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
20015 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
20017 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
20019 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
20020 * utils2.c (build_unary_op): Likewise.
20022 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20024 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
20026 2004-12-19 Richard Henderson <rth@redhat.com>
20028 * trans.c (gigi): Update gimplify_body call.
20030 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
20032 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
20034 2004-12-07 Ed Falis <falis@adacore.com>
20036 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
20037 current task being suspended.
20039 * init.c (__gnat_clear_exception): added to reset VxWorks exception
20041 (__gnat_map_signal): removed test for current task being suspended.
20043 2004-12-07 Gary Dismukes <dismukes@adacore.com>
20045 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
20046 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
20047 targets (such as AAMP).
20049 2004-12-07 Ed Schonberg <schonberg@adacore.com>
20051 * atree.adb (Visit_Itype): Create a new name for the generated itype,
20052 because the back-end may otherwise treat it as a redefinition of the
20055 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
20057 * back_end.adb (Scan_Back_End_Switches): Accept --param.
20059 * lang-specs.h: Accept --param.
20061 2004-12-07 Vincent Celier <celier@adacore.com>
20063 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
20064 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
20065 Current_Body_Suffix => Ada_Body_Suffix).
20066 Take into account Externally_Built attribute.
20068 * clean.adb (In_Extension_Chain): Always return False when one of the
20069 parameter is No_Project.
20070 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
20071 Ada_Language_Index).
20072 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
20073 Process_Languages for procedure Parse).
20075 * gnatcmd.adb (Carg_Switches): New table.
20076 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
20077 Adapt to name changes in package Prj (Current_Spec_Suffix =>
20078 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
20080 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
20081 Header_Num and function Hash are now declared in package Prj,
20084 * prj.adb (Suffix_Of): New function.
20085 (Set (Suffix)): New procedure.
20086 (Hash): One function moved from Prj.Com
20087 (Is_Present, Language_Processing_Data_Of): New functions
20088 (Set): Two new procedures
20089 (Add_Language_Name, Display_Language_Name): New procedures
20091 * prj.ads: (Suffix_Of): New function
20092 (Set (Suffix)): New procedure
20093 Add several types and tables for multi-language support.
20094 (Header_Num): Type moved from Prj.Com
20095 (Hash): Two functions moved from Prj.Com
20096 (Is_Present, Language_Processing_Data_Of): New functions
20097 (Set): Two new procedures
20098 (Add_Language_Name, Display_Language_Name): New procedures
20099 (Naming): Component name changes:
20100 Current_Spec_Suffix => Ada_Spec_Suffix,
20101 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
20102 Impl_Suffixes, Supp_Suffixes.
20103 (Project_Data): New components: Externally_Built, Supp_Languages,
20104 First_Language_Processing, Supp_Language_Processing, Default_Linker,
20105 Default_Linker_Path.
20107 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
20108 new package Language_Processing with its attributes (Compiler_Driver,
20109 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
20110 Binder_Driver, Default_Linker).
20112 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
20113 (Header_Num): Type moved to package Prj
20115 * prj-env.adb: Adapt to name changes in package Prj
20116 (Current_Spec_Suffix => Ada_Spec_Suffix,
20117 Current_Body_Suffix => Ada_Body_Suffix).
20119 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
20120 default to the project path, except the "-" is one of the directories
20121 in env var ADA_PROJECT_PATH.
20122 (Current_Project_Path): Global variable, replacing Project_Path
20123 that was in the body of Prj.Part.
20124 (Project_Path): New function
20125 (Set_Project_Path): New procedure
20126 Initialize Current_Project_Path during elaboration of the package
20127 Remove dependency on Prj.Com, no longer needed
20129 * prj-ext.ads (Project_Path): New function
20130 (Set_Project_Path): New procedure
20132 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
20133 suffix is defined for language <lang>.
20134 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
20135 accessing directly the components of Naming.
20136 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
20137 Reorganise of this package.
20138 Break procedure Check in several procedures.
20140 * prj-nmsc.ads: Replace all procedures (Ada_Check,
20141 Other_Languages_Check and Language_Independent_Check) with a single
20144 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
20145 Process_Languages, no longer needed.
20147 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
20148 Current_Project_Path.
20149 Remove elaboration code, moved to the body of Prj.Ext
20150 Use new function Prj.Ext.Project_Path instead of old variable
20152 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
20153 When comparing with project paths on the stack, first put the resolved
20154 path in canonical case.
20155 (Parse_Single_Project): Set the path name of the project file in the
20156 tree to the normalized path.
20158 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
20159 parameter Process_Languages, no longer needed.
20160 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
20161 Other_Languages_Check.
20163 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
20164 to store the resolved canonical path of the project file.
20165 Remove dependency to Prj.Com, no longer needed
20167 * prj-util.adb: Adapt to name changes in package Prj
20168 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
20171 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
20172 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
20173 Externally_Built, Include_Option, Language_Processing.
20175 * makegpr.adb: Numerous changes due to changes in packages
20178 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
20179 default to the project path, except whe "-" is one of the directories
20180 in env var ADA_PROJECT_PATH.
20181 (Gnatls): In verbose mode, add the new section "Project Search Path:"
20183 2004-12-07 Robert Dewar <dewar@adacore.com>
20185 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
20187 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
20190 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
20191 flag. No longer needed now that we handle this in gnat1drv.adb.
20193 * repinfo.ads: Minor reformatting
20195 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20196 Olivier Hainque <hainque@adacore.com>
20197 Eric Botcazou <ebotcazou@adacore.com>
20199 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
20200 TYPE_SIZE_UNIT of result type if SIZE is not specified.
20201 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
20202 of a bitfield, which we know is useless and causes trouble because of
20203 alignment implications.
20205 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
20207 (process_attributes): Clear DECL_COMMON again when a section attribute
20209 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
20210 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
20211 (create_field_decl): Special case ADDRESSABLE negative to mean
20212 "no bitfield creation", to be used by make_aligning_type. Don't
20213 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
20214 fields claimed addressable still have to be bitfields. Use
20215 value_factor_p instead of a raw binop construction to check for the
20216 position's alignment.
20218 2004-12-07 Geert Bosch <bosch@adacore.com>
20220 * eval_fat.adb: Revert previous change.
20222 2004-12-07 Thomas Quinot <quinot@adacore.com>
20223 Ed Schonberg <schonberg@adacore.com>
20225 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
20226 with an implicit dereference as its prefix, use
20227 Insert_Explicit_Dereference instead of merely rewriting the prefix into
20228 an explicit dereference. This ensures that a reference to the original
20229 prefix is generated, if appropriate.
20231 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
20232 dereference is rewritten to an explicit one, generate a reference to
20233 the entity denoted by its prefix using the original prefix node, so
20234 the dereference can be properly recorded as a read of the denoted
20235 access value, if appropriate.
20237 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
20238 emitting 'assigned but never read' warning on a variable on the basis
20239 that it has an access type.
20240 (Check_References): Emit unreferenced warning when the scope is a
20243 2004-12-07 Robert Dewar <dewar@adacore.com>
20244 Ed Schonberg <schonberg@adacore.com>
20246 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
20249 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
20250 leaving call unchanged.
20251 This deals with the case where the pragma Import specified
20252 an external name, to be handled by the back end.
20254 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
20255 subprogram which is Imported with convention Intrinsic if an
20256 External_Name argument is specified.
20257 (Process_Import_Or_Interface): Properly diagnose link name argument.
20258 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
20259 with Sem_Ch6.Cannot_Inline.
20260 (Process_Inline): Provide separate warning for inapplicable inline
20262 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
20263 treatment is uniform on different targets.
20265 2004-12-07 Ed Schonberg <schonberg@adacore.com>
20267 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
20268 construct is rewritten, preserve end label to permit source navigation.
20270 2004-12-07 Thomas Quinot <quinot@adacore.com>
20272 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
20273 Specific_Build_Stub_Target): New subprograms.
20274 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
20275 the PCS implementation used, using the above PCS-customized subprograms.
20276 Minor reformatting.
20277 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
20278 for generation of DSA code targeted to the PolyORB PCS.
20279 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
20280 implementation of the partition communication subsystem in ancillary
20282 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
20283 PolyORB_Support.Build_Stub_Type): New subrograms containing the
20284 PCS-specific part of Add_Stub_Type.
20285 (Insert_Partition_Check): Use runtime library function to perform
20288 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
20289 (RE_Same_Partition): New entity, from s-parint.
20291 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
20293 2004-12-07 Gary Dismukes <dismukes@adacore.com>
20295 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
20296 Output the copyright message on a separate line from the version
20299 2004-12-07 Joel Brobecker <brobecker@adacore.com>
20301 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
20302 compile-time warning.
20304 2004-12-07 Robert Dewar <dewar@adacore.com>
20306 * g-regpat.adb: (Match): Change a misuse of or to or else
20308 2004-12-07 Ed Schonberg <schonberg@adacore.com>
20311 (Generate_Reference): Handle properly a reference to an entry formal,
20312 when an accept statement has a pragma Unreferenced for it.
20314 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
20315 and the Has_Pragma_Unreferenced flag for each formal before analyzing
20316 the body, to ensure that warnings are properly emitted for each accept
20317 statement of a given task entry.
20319 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
20321 * Makefile.in: Add support for foreign threads on VMS.
20323 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20325 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
20327 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
20329 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
20331 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
20333 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
20335 2004-12-07 Robert Dewar <dewar@adacore.com>
20337 * nlists.adb (Prepend_Debug): Remove parameters and nest within
20339 (Remove_Next_Debug): Same fix
20341 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
20342 maintain back pointers now, though we did not used to, and comments
20344 (Prepend): Remove pragma Inline.
20345 (Remove_Next): Same cleanup
20347 2004-12-07 Thomas Quinot <quinot@adacore.com>
20349 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
20350 used to record an implicit dereference as a read operation on its
20351 prefix when operating under -gnatc. Necessary to avoid spurious
20352 'variable assigned but never read' warnings in that mode.
20353 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
20354 is a non-overloaded implicit dereference, call the above subprogram to
20355 ensure proper recording of references.
20357 2004-12-07 Gary Dismukes <dismukes@adacore.com>
20359 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
20360 to be resolved later as part of Analyze_Iteration_Scheme's call to
20363 2004-12-07 Ed Schonberg <schonberg@adacore.com>
20365 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
20366 prefix is not a scalar type, place error message on prefix, not on
20369 2004-12-07 Bernard Banner <banner@adacore.com>
20371 * vxaddr2line.adb: Add support for x86 vxworks
20373 2004-12-07 Thomas Quinot <quinot@adacore.com>
20375 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
20376 documentation of the behaviour of these functions when passed an IP
20377 address that has no record in the system hosts database and no reverse
20380 * cstand.adb, a-tags.ads: Fix typos in comment.
20382 2004-12-07 Robert Dewar <dewar@adacore.com>
20384 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
20385 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
20386 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
20387 s-poosiz.ads: Minor reformatting
20389 * make.adb: Minor reformatting
20390 Add some ??? comments asking for more comments
20392 * s-poosiz.adb: Minor reformatting
20393 Add comments on alignment requirement
20395 * sinfo.ads: Remove obsolete comment and fix typo.
20397 2004-12-07 Vincent Celier <celier@adacore.com>
20398 Sergey Rybin <rybin@adacore.com>
20400 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
20401 Files" with the new tool and package names.
20402 Reformatting to suppress most of the warnings for line too long
20403 Document the new section "Project Search Path:" in the output of
20405 Add gnatmetric section
20407 2004-12-07 Vincent Celier <celier@adacore.com>
20409 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
20410 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
20411 and -eit to -ept. Added qualifier
20412 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
20414 2004-11-27 Andreas Schwab <schwab@suse.de>
20416 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
20418 2004-11-25 Arnaud Charlet <charlet@adacore.com>
20420 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
20421 internal implementation unit GNAT.Sockets.Thin,
20422 as their usage for sockets is non-portable (using the read and write
20423 functions from the system runtime library is fine on UNIX but won't
20424 work under Windows).
20426 * mingw32.h: Update copyright notice.
20428 2004-11-25 Arnaud Charlet <charlet@adacore.com>
20430 * ada-tree.h: Minor reformatting of previous change to avoid lines
20431 longer than 79 characters.
20433 2004-11-25 Olivier Hainque <hainque@adacore.com>
20435 * tb-gcc.c: GCC infrastructure based implementation of
20438 2004-11-24 Steven Bosscher <stevenb@suse.de>
20440 * misc.c (gnat_post_options): Don't clear
20441 flag_inline_functions.
20443 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
20446 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
20449 2004-11-21 Andreas Jaeger <aj@suse.de>
20451 * stylesw.adb: Change Style_Check_Subprogram_Order to
20452 Style_Check_Order_Subprograms.
20454 2004-11-18 Arnaud Charlet <charlet@adacore.com>
20456 * adaint.h, adaint.c
20457 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
20459 Add also a cast to kill another warning.
20460 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
20461 parameter with the priority class of the parent process instead of
20462 always using the NORMAL_PRIORITY_CLASS.
20463 (__gnat_dup): New function.
20464 (__gnat_dup2): New function.
20465 (__gnat_is_symbolic_link): Enable the effective body of this
20466 function when __APPLE__ is defined.
20468 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
20471 2004-11-18 Olivier Hainque <hainque@adacore.com>
20473 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
20474 address of which may be used to represent "others" and "all others"
20475 choices in exception tables, instead of the current harcoded
20476 (void *)0 and (void *)1.
20477 (Setup_Exception): Do nothing in the GNAT SJLJ case.
20479 * gigi.h (others_decl, all_others_decl): New decls representing the
20480 new Others_Value and All_Others_Value objects.
20481 (struct attrib): Rename "arg" component as "args", since GCC expects a
20482 list of arguments in there.
20484 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
20485 corresponding objects exported by a-exexpr, instead of hardcoded dummy
20488 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
20489 others_decl and all_others_decl instead of hardcoded dummy addresses
20490 to represent "others" and "all others" choices, which is cleaner and
20491 more flexible with respect to the possible eh pointer encoding policies.
20493 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
20494 (process_attributes): Account for the naming change of the "args"
20495 attribute list entry component.
20497 * decl.c (build_attr_list): Rename into prepend_attributes to allow
20498 cumulating attributes for different entities into a single list.
20499 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
20500 attributes for the current entity and propagate first subtype
20501 attributes to other subtypes.
20502 <E_Procedure>: Attribute arguments are attr->args and not
20503 attr->arg any more.
20504 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
20505 argument provided, as this is what GCC expects. Use NULL_TREE instead
20508 2004-11-18 Robert Dewar <dewar@adacore.com>
20510 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
20511 Minor reformatting througout (including new function specs)
20512 Add ??? comments asking for clarification.
20514 2004-11-18 Thomas Quinot <quinot@adacore.com>
20516 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
20517 incomplete duplicate implementation of this subprogram from butil.
20519 2004-11-18 Thomas Quinot <quinot@adacore.com>
20521 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
20522 procedures factors the common processing for building an RPC receiver
20523 for an RCI package or an RACW type.
20524 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
20525 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
20526 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
20528 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
20530 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
20532 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
20533 distribution subprogram identifiers that are either subprogram numbers
20535 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
20536 string distribution identifiers assigned to a given subprogram.
20537 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
20538 (Add_RAS_Dereference_TSS): Add comments.
20539 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
20540 is not referenced yet because it will be used by the PolyORB DSA
20542 (Insert_Partition_Check): Remove fossile code.
20543 (First_RCI_Subprogram_Id): Document this constant.
20544 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
20546 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
20547 replaced with calls to Get_Library_Unit_Name_String. Previously there
20548 were several instances of the same code in different locations in the
20549 compiler; this checkin completes the replacement of all of these
20550 instances with calls to a common subprogram.
20551 Minor reformatting.
20553 * sem_dist.adb: Remove comment noting that RPC receiver generation
20554 should be disabled for RACWs that implement RASs.
20555 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
20557 * sem_util.ads, sem_util.adb (Has_Stream): New function
20558 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
20559 qualified name of a library unit into the name buffer.
20560 (Note_Possible_Modification): Generate a reference only
20561 if the context comes from source.
20563 * snames.ads (PCS_Names): New subtype corresponding to names of
20564 supported implementations of the Partition Communication Subsystem
20565 (PCS) (i.e. the runtime library support modules for the distributed
20568 2004-11-18 Robert Dewar <dewar@adacore.com>
20569 Ed Schonberg <schonberg@adacore.com>
20571 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
20572 (Has_Rep_Pragma): New function
20573 (Has_Attribute_Definition_Clause): New function
20574 (Record_Rep_Pragma): Moved here from sem_ch13.adb
20575 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
20577 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
20579 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
20580 (Expand_Pragma_Psect_Object): New procedure
20581 These procedures contain the revised and cleaned up processing for
20582 these two pragmas. This processing was formerly in Sem_Prag, but
20583 is more appropriately moved here. The cleanup involves making sure
20584 that the pragmas are properly attached to the tree, and that no
20585 nodes are improperly shared.
20587 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
20588 pragmas to Exp_Prag, which is more appropriate.
20589 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
20590 check for duplicates Remove use of Is_Psected flag, no longer needed.
20591 Use new Make_String_Literal function with string.
20593 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
20594 that are functions return universal values, that have to be converted
20595 to the context type.
20596 Use new Make_String_Literal function with string.
20597 (Get_Stream_Convert_Pragma): New function, replaces the use of
20598 Get_Rep_Pragma, which had to be kludged to work in this case.
20600 * freeze.adb: Use new Has_Rep_Pragma function
20602 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
20603 function with string.
20604 Use new Has_Rep_Pragma function.
20606 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
20609 2004-11-18 Robert Dewar <dewar@adacore.com>
20611 * errout.ads, errout.adb: (First_Sloc): New function
20613 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
20614 check (-gnatyx) instead of being included as a redundant construct
20617 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
20618 Style_Check_Order_Subprograms.
20620 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
20621 stylesw.adb: Add Style_Check_Xtra_Parens
20623 * usage.adb: Add line for -gnatyx (check extra parens)
20625 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
20627 2004-11-18 Ed Schonberg <schonberg@adacore.com>
20628 Robert Dewar <dewar@adacore.com>
20630 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
20631 discriminant of a constrained subtype, analyze the copy of the
20632 corresponding constraint, because in some cases it may be only
20633 partially analyzed.
20634 Removes long-lived ??? comments.
20636 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
20637 handled controlled or secondary-stack expressions within the
20638 iteration_scheme of a loop.
20640 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
20641 bounds that may contain functions calls, to prevent memory leaks when
20642 the bound contains a call to a function that uses the secondary stack.
20643 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
20644 generate temporaries for loop bounds that might contain function calls
20645 that require secondary stack and/or finalization actions.
20647 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
20648 selected component and the selector is overloadable (not just a
20649 function) treat as function call, Analyze_Call will disambiguate if
20651 (Analyze_Selected_Component): Do not generate an actual subtype for the
20652 selected component if expansion is disabled. The actual subtype is only
20653 needed for constraint checks.
20654 (Analyze_Allocator): If restriction No_Streams is set, then do
20655 not permit objects to be declared of a stream type, or of a
20656 composite type containing a stream.
20658 * restrict.ads: Remove the a-stream entry from Unit_Array, since
20659 No_Streams no longer prohibits with'ing this package.
20661 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
20662 discriminants, but the parent base has unknown discriminants, there is
20663 no discriminant constraint to inherit. Such a discrepancy can arise
20664 when the actual for a formal type with unknown discriminants is a
20665 similar private type whose full view has discriminants.
20666 (Analyze_Object_Declaration): If restriction No_Streams is set, then
20667 do not permit objects to be declared of a stream type, or of a
20668 composite type containing a stream.
20670 2004-11-18 Ed Schonberg <schonberg@adacore.com>
20672 * exp_dbug.ads: Update documentation to reflect simpler encoding for
20673 protected operations.
20675 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
20676 generated name, it complicates decoding in gdb and hinders debugging
20677 of protected operations.
20678 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
20679 flag for the protected entry barrier function.
20680 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
20681 flag for the protected entry function.
20683 2004-11-18 Nicolas Setton <setton@adacore.com>
20685 * expect.c: Define __unix__ when __APPLE__ is defined.
20687 * Makefile.in: Inform the value of the variable GMEM_LIB in the
20688 Darwin-specific section.
20690 * lang-specs.h: Change the placement of the %1 marker.
20691 Works around the fact that gcc adds -fPIC by default under Darwin.
20693 2004-11-18 Ed Schonberg <schonberg@adacore.com>
20695 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
20696 type of the object with the packed array type, set the Analyzed flag
20697 on the object if it is an entity or simple indexed component, to avoid
20698 spurious type errors.
20700 2004-11-18 Gary Dismukes <dismukes@adacore.com>
20702 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
20703 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
20704 separate line from the version message.
20706 2004-11-18 Ed Falis <falis@adacore.com>
20708 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
20710 (init_float): Eliminate initialization of floating point status for
20711 AE653. The instructions have no effect for vThreads.
20713 2004-11-18 Vincent Celier <celier@adacore.com>
20715 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
20716 gnatbind is invoked with -shared.
20718 2004-11-18 Jose Ruiz <ruiz@adacore.com>
20720 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
20721 for Detect_Blocking which is redundant with the check done within the
20722 procedure Protected_Single_Entry_Call.
20723 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
20724 Detect_Blocking which is redundant with the check done within the
20725 procedure Protected_Single_Entry_Call.
20727 2004-11-18 Vincent Celier <celier@adacore.com>
20729 * makegpr.adb (Compile): Put the compiling switches (in package
20730 Compiler and on the command line) immediately after "-c", instead of
20731 at the end of the command line invocation of the compiler, when
20732 compiling a non-Ada file.
20733 (Build_Global_Archive): When there is no need to rebuild the archive,
20734 set Global_Archive_Exists, so that the archive is passed to the linker
20737 2004-11-18 Robert Dewar <dewar@adacore.com>
20738 Sergey Rybin <rybin@adacore.com>
20741 Remove extra paren check from list of checks for redundant constructs
20742 Add documentation of new -gnatyx style check (check extra parens)
20743 Remove paragraph about gnatelim debug options.
20745 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
20746 objects rather than forbidding dependencies on the package Ada.Streams.
20748 * sinfo.ads: Add ??? note that we should document pragmas passed to
20751 * g-expect.ads: Fix a few typos in the comments.
20753 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
20755 * misc.c (gnat_handle_option): Use %< and %> for quoting in
20758 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20760 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
20762 2004-11-07 Andreas Schwab <schwab@suse.de>
20764 * Makefile.in (install-gnatlib): Remove spurious hyphen.
20766 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
20769 * Makefile.in (darwin): Set soext to .dylib.
20771 2004-10-26 Vincent Celier <celier@gnat.com>
20772 Thomas Quinot <quinot@act-europe.fr>
20774 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
20775 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
20776 there is no use of GNAT.Sockets.Constants.
20777 Remove remaining pragma Import for C_Write
20778 Remove C_Read and C_Write from internal implementation unit
20779 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
20780 the read and write functions from the system runtime library is fine
20781 on UNIX but won't work under Windows).
20783 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
20784 (Check_Selector): Use C_Recv instead of C_Read.
20785 Selectors are the GNAT.Sockets abstraction to perform a select()
20786 call on a set of descriptors. To allow abortion of an ongoing
20787 select operation, some data is written to a dedicated socket that
20788 is always monitored.
20789 Under Windows, the write and read library functions cannot operate
20790 on sockets, so we need to use send and recv instead, which is portable
20791 across all supported platforms.
20793 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
20794 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
20795 (using the read and write functions from the system runtime library is
20796 fine on UNIX but won't work under Windows).
20798 2004-10-26 Nicolas Setton <setton@act-europe.fr>
20800 * mlib-tgt-darwin.adb: New file.
20802 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20803 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20804 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
20805 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
20808 * Makefile.in: Add support for building shared libraries under Darwin.
20809 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
20810 the low level EH init subprogram to be called from __gnat_initialize.
20812 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
20813 indicates which options to pass to the archive indexer.
20815 * mlib-utl.adb: Add support for calling ranlib with additional
20816 options. This is needed for instance under Mac OS X.
20817 (Ranlib_Options): New global variable, used to store the potential
20818 options to pass to ranlib.
20819 (Ar): Use Ranlib_Options when spawning ranlib.
20820 (Initialize): Set the value of ranlib option.
20822 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
20824 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
20825 instead of 8K, to reflect the real potential needs for stack-checking
20828 2004-10-26 Pascal Obry <obry@gnat.com>
20830 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
20832 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
20833 Windows only the initial thread stack size can be set so it is good to
20834 start we a low stack size.
20835 The OS will adjust the size as needed.
20837 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
20838 Nicolas Setton <setton@act-europe.fr>
20840 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
20841 "__unix__" instead of "unix".
20842 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
20843 sections were just mistakenly ignored. The former is
20844 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
20845 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
20846 of hpux. This prevents an unwanted definition of the symbol
20847 convert_addresses in adaint.o.
20849 2004-10-26 Gary Dismukes <dismukes@gnat.com>
20851 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
20852 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
20854 2004-10-26 Cyrille Comar <comar@act-europe.fr>
20856 * a-filico.ads, a-filico.adb: fix incorrect header.
20858 2004-10-26 Javier Miranda <miranda@gnat.com>
20860 * a-ststio.ads: Fix typo in identifier
20862 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
20864 * sem_ch4.adb: Minor reformatting.
20866 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20868 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
20869 enabled, check the result of unary and binary operations when the
20870 expression is the right-hand side of an assignment.
20872 2004-10-26 Vincent Celier <celier@gnat.com>
20874 * clean.adb (Delete): Do not output warnings when in quiet output and
20875 not in verbose mode.
20876 (Force_Deletions): New Boolean flag, defaulted to False
20877 (Delete): Only delete a file if it is writable, and when
20878 Force_Deletions is True.
20879 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
20880 (Usage): Line for new switch -f
20881 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
20884 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
20886 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
20887 JM type only if its size matches that of the wrapper. When a size is
20888 prescribed and the field is not aliased, remove the wrapper of a JM
20889 type only if the size is not greater than that of the packed array.
20890 (gnat_to_gnu_entity): Change the extension of packed array wrappers
20893 2004-10-26 Geert Bosch <bosch@gnat.com>
20895 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
20896 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
20897 (Pred): Implement in terms of Succ.
20899 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20901 * exp_aggr.adb (Safe_Component): An aggregate component that is an
20902 unchecked conversion is safe for in-place use if the expression of the
20903 conversion is safe.
20904 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
20905 be expandable in place even if the aggregate does not come from source.
20906 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
20907 designated object of an allocator in place, rather than building it
20908 first on the stack. The previous scheme forces a full copy of the array,
20909 and may be altogether unsusable if the size of the array is too large
20910 for stack allocation.
20912 2004-10-26 Robert Dewar <dewar@gnat.com>
20914 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
20915 compares if the component is atomic.
20917 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
20918 array assignment if the component type is atomic.
20920 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20921 Eric Botcazou <ebotcazou@act-europe.fr>
20923 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
20924 is aliased and is a by_reference type, do not pass by copy.
20925 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
20926 detect whether the call is in the right side of an assignment or
20927 the expression of an object declaration. Recurse on component
20928 association within aggregates.
20929 Call it in the condition that determines whether the temporary is
20930 necessary for correct stack-checking.
20932 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
20934 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
20935 RACW_Type, used in the PolyORB version.
20936 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
20937 version and the GARLIC version.
20939 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
20940 Rename RCI_Info to RCI_Locator for better consistency between the
20941 GARLIC and PolyORB versions of the distributed systems annex.
20942 (DSA_Implementation_Name): This enumeration lists the possible
20943 implementations of the Partition Communication Subsystem for the
20944 Distributed Systems Annex (DSA). The three available implementations
20945 are the dummy stub implementation (No_DSA), and two versions based on
20946 two different distribution runtime libraries: GARLIC and PolyORB. Both
20947 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
20949 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
20952 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
20953 between the GARLIC and PolyORB versions of the distributed systems
20955 Remove RE_Unbounded_Reclaim_Pool since it is unused.
20957 2004-10-26 Gary Dismukes <dismukes@gnat.com>
20959 * gnat1drv.adb: Suppress calling the back end when
20960 Frontend_Layout_On_Target is true.
20962 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
20964 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
20965 Set_Read_Only): New subprograms.
20966 These new routines allow the user to set or unset the Owner execute
20967 and Owner write permission flags on a file.
20969 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
20970 GNAT.OS_Lib.Set_Executable instead of rolling our own.
20972 2004-10-26 Matthew Gingell <gingell@gnat.com>
20974 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
20976 2004-10-26 Pascal Obry <obry@gnat.com>
20978 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
20979 memory before the faulting page we properly test the process read
20980 access for this address using appropriate Win32 routine.
20981 (HPUX sections): guard with "__hpux__" instead of "hpux".
20983 2004-10-26 Robert Dewar <dewar@gnat.com>
20985 * lib-xref.adb (Generate_Reference): Don't complain about reference to
20986 entry parameter if pragma Unreferenced set, since we do not properly
20987 handle the case of multiple parameters.
20989 2004-10-26 Vincent Celier <celier@gnat.com>
20991 * prj-env.adb: (Contains_ALI_Files): New Boolean function
20992 (Ada_Objects_Path.Add): For a library project, add to the object path
20993 the library directory only if there is no object directory or if the
20994 library directory contains ALI files.
20995 (Set_Ada_Paths.Add.Recursive_Add): Ditto
20997 2004-10-26 Vincent Celier <celier@gnat.com>
20999 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
21000 extension of library projects.
21002 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
21003 path defaults to ".:<prefix>/lib/gnat".
21004 (Parse): For an extending all project, allow direct import of a project
21005 that is virtually extended.
21007 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
21008 the specified name is directly imported, return its ID. Otherwise, if
21009 an extension of this project is imported, return the ID of the
21012 2004-10-26 Robert Dewar <dewar@gnat.com>
21014 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
21015 (Sub3): New procedure, used by Scaled_Divide
21016 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
21017 correct more than one instance of failure to propagate carries
21019 (Double_Divide): Handle overflow case of largest negative number
21020 divided by minus one.
21022 * s-arit64.ads (Double_Divide): Document that overflow can occur in
21023 the case of a quotient value out of range.
21026 2004-10-26 Robert Dewar <dewar@gnat.com>
21028 * s-bitops.adb (Bit_Eq): Remove redundant check.
21030 * s-bitops.ads: Minor comment updates
21031 Change some occurrences of Address to System.Address
21033 * s-carsi8.ads: Fix minor cut-and-paste error in comments
21035 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21037 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
21038 accessibility check to prefix that is a protected operation.
21040 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21042 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
21043 empty, post message on stub.
21045 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21046 Javier Miranda <miranda@gnat.com>
21048 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
21049 current instance appears within a unit that is directly in the context
21051 Used to determine whether the body of the instance should be analyzed
21052 immediately after its spec, to make its subprogram bodies available
21053 for front-end inlining.
21054 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
21055 constraint is not allowed on the component type (AARM 12.5.3(3))
21057 2004-10-26 Cyrille Comar <comar@act-europe.fr>
21059 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
21060 'Storage_Pool): enhance, document & limit detection of non-sharable
21063 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
21065 * s-pooglo.ads: Add more documentation now that this pool is properly
21068 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21070 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
21071 or protected type with discriminants, do not constrain the
21072 corresponding record type if the subtype declaration has no
21073 discriminant constraints. This can be the case in source code, or in
21074 the subtype declaration created to rename an actual type within an
21077 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21079 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
21080 different kind of stub (possibly wrong name for file), do not check
21082 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
21083 includes call to some function that returns an unconstrained type, do
21086 2004-10-26 Ed Schonberg <schonberg@gnat.com>
21088 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
21089 appear in the code for the main unit. Dependencies among units in the
21090 context of the main unit are established when those other units are
21091 compiled. Otherwise spurious elaboration constraints can generate
21092 incorrect elaboration circularities.
21094 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
21095 Ed Schonberg <schonberg@gnat.com>
21097 * sem_util.adb (Is_Aliased_View): Defend against the case where this
21098 subprogram is called with a parameter that is not an object name. This
21099 situation arises for some cases of illegal code, which is diagnosed
21100 later, and in this case it is wrong to call Is_Aliased, as that might
21101 cause a compiler crash.
21102 (Explain_Limited_Type): Refine previous fix to include
21103 inherited components of derived types, to provide complete information.
21105 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
21106 is the prival for a protected object.
21107 It is necessary to mark this entity as a variable, in addition to
21108 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
21109 modified to avoid checking the Aliased flag on entities that are not
21110 objects. (Checking that flag for non-objects is erroneous and could
21111 lead to a compiler crash).
21113 2004-10-26 Robert Dewar <dewar@gnat.com>
21115 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
21116 X_Frac = 0.5, then we know that the number X must be positive.
21117 (Succ): Remove the same redundant test, and also fix the primary test
21118 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
21120 (Decompose): Add fuller comments to spec
21122 2004-10-26 Pascal Obry <obry@gnat.com>
21124 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
21125 validity (process must have read access). Set to 0 in all other cases.
21126 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
21127 violation on Win32.
21128 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
21129 segmentation violation.
21131 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
21133 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
21134 whose type is a constructed subtype of an aliased object with an
21135 unconstrained nominal subtype, convert the actual to the constructed
21136 subtype before taking its address.
21138 2004-10-26 Vincent Celier <celier@gnat.com>
21140 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
21141 (Is_Path_Name_Case_Sensitive): New function
21143 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
21144 (Base_Name, Simple_Name, Current_Directory, Compose,
21145 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
21148 2004-10-26 Cyrille Comar <comar@act-europe.fr>
21149 Vasiliy Fofanov <fofanov@act-europe.fr>
21150 Vincent Celier <celier@gnat.com>
21152 * gnat_ugn.texi: Generalize "finding memory problems" section into a
21153 "memory management issues" section and document some of the useful
21154 memory pools provided as part of the GNAT library.
21155 Remove "virtual" from declaration of A::method2 in
21156 the simple example of Ada/C++ mixed system.
21157 Library Projects may be virtually extended: their virtual extensions
21158 are not Library Projects.
21159 Added section on extending project hierarchies.
21161 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
21163 * adaint.c (__gnat_get_libraries_from_registry): Cast value
21165 (__gnat_portable_spawn): Remove const.
21167 * mingw32.h (MAXPATHLEN): Check for previous definition.
21169 2004-10-17 Matthias Klose <doko@debian.org>
21171 * gnatvsn.ads: Set gnat library version to 4.0.
21173 2004-10-05 Vincent Celier <celier@gnat.com>
21175 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
21177 2004-10-04 Laurent GUERBY <laurent@guerby.net>
21180 * Makefile.in: Define and use RANLIB_FLAGS.
21182 2004-10-04 Pascal Obry <obry@gnat.com>
21184 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
21185 other x86 platforms).
21187 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
21189 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
21190 in general and triggers stack alignment adjustment for thread entry
21191 points on targets where this is necessary.
21193 2004-10-04 Bernard Banner <banner@gnat.com>
21196 * Makefile.in: Add section for powerpc linux
21197 Add variant i-vxwork-x86.ads
21199 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
21201 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
21203 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
21204 table registration calls when need be. Ensures no reference to the crt
21205 ctors symbol are issued in the SJLJ case, which avoids possible
21206 undefined symbol errors in the case of modules to be statically linked
21209 2004-10-04 Javier Miranda <miranda@gnat.com>
21211 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
21212 in-line the code corresponding to subprogram Analyze_Actuals. In
21213 addition, analyze the actuals only in case of subprogram call.
21215 2004-10-04 Ed Falis <falis@gnat.com>
21217 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
21219 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
21221 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
21222 in the documentation.
21224 2004-10-04 Robert Dewar <dewar@gnat.com>
21226 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
21228 (Analyze_Block_Statement): Add circuitry to detect following dead code
21229 (Check_Unreachable_Code): Handle case of block exit
21231 2004-10-04 Robert Dewar <dewar@gnat.com>
21233 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
21234 (XMatchD): Avoid warning for Logic_Error call
21236 2004-10-04 Robert Dewar <dewar@gnat.com>
21238 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
21239 consider expressions buried within a procedure actual to be an actual.
21240 This caused some blowups with uses of packed slices within a procedure
21243 2004-10-04 Robert Dewar <dewar@gnat.com>
21245 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
21246 longer need to be initialized to zero.
21247 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
21248 initialized to zero.
21250 * checks.adb (Expr_Known_Valid): Packed arrays are now always
21251 considered valid, even if the representation is modular. That's correct
21252 now that we no longer initialize packed modular arrays to zero.
21254 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
21255 suffixes. These are now documented as the only cases in which the
21256 debugger ignores outer records.
21257 Previously, the spec allowed arbitrary suffixes for this purpose.
21258 Change name of LJM to JM for packed array pad records
21259 Create separate section on packed array handling, and add a whole new
21260 set of comments to this section describing the situation with packed
21261 modular types and justification requirements depending on endianness.
21263 2004-10-04 Robert Dewar <dewar@gnat.com>
21265 * a-except.adb: Add a comment for last change
21267 * einfo.ads: Minor spelling correction in comment
21269 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
21271 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
21274 * sem_util.ads: Minor comment update
21276 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21278 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
21279 Inline_Always when in Configurable_Run_Time mode.
21281 * sem_prag.adb (Process_Convention): If entity is an inherited
21282 subprogram, apply convention to parent subprogram if in same scope.
21283 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
21284 when in Configurable_Run_Time mode.
21286 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21288 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
21289 class_wide type after component list has been inherited.
21291 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21293 * sem_ch12.adb (Check_Generic_Actuals): New predicate
21294 Denotes_Previous_Actual, to handle properly the case of a private
21295 actual that is also the component type of a subsequent array actual.
21296 The visibility status of the first actual is not affected when the
21297 second is installed.
21298 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
21299 make fully recursive the treatment of formals of packages declared
21301 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
21302 the above on exit from an instantiation.
21303 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
21304 current instantiation which is now complete.
21305 (Analyze_Package_Instantiation): No instantiated body is needed if the
21306 main unit is generic. Efficient, and avoid anomalies when a instance
21307 appears in a package accessed through rtsfind.
21309 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21311 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
21312 do not generate a declaration for a temporary if the call is part of a
21313 library-level instantiation.
21315 2004-10-04 Ed Schonberg <schonberg@gnat.com>
21317 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
21318 searching for a limited component to flag.
21320 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
21321 expansion of Input, to account for the fact that the implicit call
21322 generated by the attribute reference must freeze the user-defined
21323 stream subprogram. This is only relevant to 'Input, because it can
21324 appear in an object declaration, prior to the body of the subprogram.
21326 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
21327 expansion can proceed and further errors uncovered.
21328 (Minor clean up): Fix cases of using | instead of \ for continuation
21331 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21333 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
21335 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
21336 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
21337 Use gcc_assert and gcc_unreachable.
21339 * decl.c (gnat_to_gnu_entity, case object): Check and process a
21340 specified alignment before validating size.
21341 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
21342 stripped-down declaration for the type of the inner field when making
21345 * utils.c (finish_record_type): Do not compute the size in units
21346 incrementally. Instead compute it once for the rep clause case.
21347 Use gcc_assert and gcc_unreachable.
21349 2004-10-04 Vincent Celier <celier@gnat.com>
21351 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
21353 (Is_Valid_Path_Name): Take '/' as a directory separator.
21355 2004-10-04 Vincent Celier <celier@gnat.com>
21357 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
21358 (Extended_Project) only if Extended_Project is defined, to avoid
21360 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
21362 (Parse_Single_Project): Ditto.
21364 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
21365 Add_To_Project_Path for virtual projects.
21367 2004-10-04 Vincent Celier <celier@gnat.com>
21369 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21370 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
21371 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
21372 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
21373 parameter Options_2.
21375 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
21376 Build_Dynamic_Library with an empty Options_2.
21378 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
21381 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
21382 directory separator, if any.
21383 (Gprmake): Do not allow mains on the command line for library projects.
21384 Do not attempt to link when the project is a library project.
21385 (Library_Opts): New table to store Library_Options.
21386 (Build_Library): If Library_Options is specified, pass these options
21387 when building a shared library.
21389 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
21391 * s-tposen.adb (Service_Entry): The object must be always unlocked at
21392 the end of this procedure now that the unlock operation was inserted
21395 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
21397 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
21398 corresponding to the Preallocated_Stacks flags in System.
21399 (Get_Target_Parameters): Including the processing for
21400 Preallocated_Stacks.
21402 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
21403 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
21404 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
21405 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
21406 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
21407 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
21408 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
21409 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
21410 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
21411 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
21412 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
21413 used to signal whether the compiler creates the required stacks and
21414 descriptors for the different tasks (when True) or it is done by the
21415 underlying operating system at run time (when False).
21416 It is initially set to False in all targets.
21418 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
21419 if it is supported by the target.
21420 (Make_Task_Create_Call): Pass the stack address if it has been
21421 previously created. Otherwise pass a Null_Address.
21423 * snames.adb: Add _stack.
21425 * snames.ads: Add Name_uStack. Required to allow the expander to
21426 statically allocated task stacks.
21428 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
21429 Stack_Address argument.
21430 Check that its value is equal to Null_Address because this target does
21431 not support the static stack allocation.
21433 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
21435 * usage.adb: Change "pragma inline" to "pragma Inline" in information
21438 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
21440 * exp_dist.adb: Split declaration of asynchronous flag out of
21441 Add_RACW_Read_Attribute.
21442 Minor reformatting for better alignment with PolyORB version.
21443 Store the entity for the asynchronous flag of an RACW, rather than the
21444 expression, in the asynchronous flags table. This will allow this flag
21445 to be used in other subprograms beside Add_RACW_Read_Attribute.
21447 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
21449 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
21450 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21451 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
21452 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
21453 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
21454 sockets constant MSG_NOSIGNAL (Linux-specific).
21455 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
21456 all Send operations.
21457 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
21458 from trigerring SIGPIPE.
21459 Rename components to avoid clash with Ada 2005 possible reserved
21461 (Check_Selector): When the select system call returns with an error
21462 condition, propagate Socket_Error to the caller.
21464 2004-10-01 Jan Hubicka <jh@suse.cz>
21466 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
21468 2004-09-23 Robert Dewar <dewar@gnat.com>
21471 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
21472 instead do this at freeze time (we won't do it if there is an address
21474 Change "pragma inline" to "pragma Inline" in information and error
21476 Minor reformatting.
21478 * freeze.adb (Check_Address_Clause): Remove previous change, not the
21479 right way of doing things after all.
21480 (Freeze_Entity): For object, set Is_Public for imported entities
21481 unless there is an address clause present.
21483 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
21485 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
21486 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
21487 ensures proper handling of types with rep clauses, which might have
21488 their TYPE_SIZE set already.
21490 2004-09-21 Robert Dewar <dewar@gnat.com>
21492 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
21493 packed array types in both little- and big-endian cases. This change
21494 ensures that we no longer count on the unused bits being initialized
21495 for such types (and in particular ensures that equality testing will
21496 only read the relevant bits).
21497 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
21498 These changes mean that we no longer need to initialize small packed
21500 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
21501 optimization to an LJM field as to its parent field.
21503 * ada-tree.h, trans.c, utils.c, utils2.c:
21504 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
21506 2004-09-20 Jan Hubicka <jh@suse.cz>
21508 * utils.c (gnat_finalize): Remove.
21509 (end_subprog_body): Directly call cgraph_finalize_function;
21510 do not lower the nested functions.
21512 2004-09-20 Robert Dewar <dewar@gnat.com>
21515 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
21516 if an address clause is present, since that means that the Import
21519 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
21521 * 5tsystem.ads: Removed, no longer used.
21523 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
21524 Zack Weinberg <zack@codesourcery.com>
21526 * ada-tree.def: Use tree_code_class enumeration constants
21527 instead of code letters.
21528 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
21529 Update for new tree-class enumeration constants.
21531 2004-09-17 Vincent Celier <celier@gnat.com>
21533 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
21534 capabilities of the general project manager.
21536 2004-09-09 Vincent Celier <celier@gnat.com>
21538 * a-direct.ads: Add pragma Ada_05
21539 (Directory_Entry_Type): Give default value to component Kind to avoid
21540 not initialized warnings.
21542 * a-direct.adb (Current_Directory): Remove directory separator at the
21544 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
21545 an existing directory.
21546 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
21547 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
21548 Convert the result to File_Size.
21550 * prj.ads: (Project_Error): New exception
21552 * prj-attr.adb: Except in procedure Initialize, Fail comes from
21553 Prj.Com, not from Osint.
21554 (Attrs, Package_Attributes): Tables moved to private part of spec
21555 (Add_Attribute, Add_Unknown_Package): Moved to new child package
21557 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
21558 Prj.Project_Error after call to Fail.
21559 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
21560 Fail. Check that package name is not already in use.
21562 * prj-attr.ads: Comment updates to indicate that all subprograms may be
21563 used by tools, not only by the project manager, and to indicate that
21564 exception Prj.Prj_Error may be raised in case of problem.
21565 (Add_Unknown_Package, Add_Attribute): Moved to new child package
21567 (Attrs, Package_Attributes): Table instantiations moved from the body to
21568 the private part to be accessible from Prj.Attr.PM body.
21570 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
21571 from new package Prj.Attr.PM.
21572 (Parse_Attribute_Declaration): Call Add_Attribute from new package
21575 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
21577 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
21578 instead of Elaboration_Checks).
21580 * a-calend.adb: Minor reformatting
21582 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21584 * gigi.h (maybe_pad_type): New declaration.
21585 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
21587 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
21589 * cuintp.c: Convert to use buildN.
21591 * decl.c (maybe_pad_type): No longer static.
21592 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
21594 Convert to use buildN.
21596 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
21597 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
21598 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
21600 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
21601 (gnat_gimplify_expr, case ADDR_EXPR): New case.
21602 Convert to use buildN.
21604 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
21605 TREE_READONLY for const.
21606 Convert to use buildN.
21608 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
21609 (create_var_decl): Refine when TREE_STATIC is set.
21610 Convert to use buildN.
21612 2004-09-09 Gary Dismukes <dismukes@gnat.com>
21614 * gnat_ugn.texi: Delete text relating to checking of ali and object
21617 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
21620 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
21622 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
21623 pragmas recognized by GNAT.
21625 * gnat_rm.texi: Document pragma Detect_Blocking.
21627 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
21628 raise Program_Error if called from a protected operation.
21630 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
21631 the protected action nesting level.
21632 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
21633 protected action nesting level.
21634 (Unlock): When pragma Detect_Blocking is active decrease the protected
21635 action nesting level.
21637 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
21638 Protected_Action_Nesting.
21640 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
21641 Common_ATCB record. It contains the dynamic level of protected action
21642 nesting for each task. It is needed for checking whether potentially
21643 blocking operations are called from protected operations.
21644 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
21645 Detect_Blocking is active or not in the partition.
21647 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
21648 raise Program_Error if called from a protected operation.
21649 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
21650 Program_Error if called from a protected operation.
21651 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
21652 Program_Error if called from a protected operation.
21654 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
21655 raise Program_Error if called from a protected operation.
21657 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
21658 raise Program_Error if called from a protected operation, and increase
21659 the protected action nesting level.
21660 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
21661 Program_Error if called from a protected operation, and increase the
21662 protected action nesting level.
21663 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
21664 protected action nesting level.
21666 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
21667 raise Program_Error if called from a protected operation, and increase
21668 the protected action nesting level.
21669 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
21670 Program_Error if called from a protected operation, and increase the
21671 protected action nesting level.
21672 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
21673 raise Program_Error if called from a protected operation.
21674 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
21675 active, raise Program_Error if called from a protected operation.
21676 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
21677 protected action nesting level.
21679 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
21680 insertion of the statement raising Program_Error. The run time
21681 contains the required machinery for handling that.
21683 * sem_util.ads: Change comment associated to procedure
21684 Check_Potentially_Blocking_Operation.
21685 This procedure does not insert a call for raising the exception because
21686 that is currently done by the run time.
21688 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
21690 * init.c: Add the global variable __gl_detect_blocking that indicates
21691 whether pragma Detect_Blocking is active (1) or not (0). Needed for
21692 making the pragma available at run time.
21693 (__gnat_set_globals): Pass and update the detect_blocking parameter.
21695 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
21696 pragma Detect_Blocking is active.
21698 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
21700 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
21701 DB is found in the ali file. Any unit compiled with pragma
21702 Detect_Blocking active forces its effect in the whole partition.
21704 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
21705 Detect_Blocking is active and delay is called from a protected
21708 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
21709 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
21710 Detect_Blocking is active (0 otherwise).
21711 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
21712 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
21715 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
21717 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
21718 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
21721 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
21722 (Register_Receiving_Stub): Add Subp_Info formal parameter.
21723 Update API in placeholder implemetation of s-parint to reflect changes
21724 in distribution runtime library.
21726 * sem_ch3.adb (Expand_Derived_Record): Rename to
21727 Expand_Record_Extension.
21729 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
21730 primitive operations of potentially distributed object types that have
21731 non-controlling anonymous access formals.
21733 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
21735 New implementation of expansion for remote access-to-subprogram types,
21736 based on the RACW infrastructure.
21737 This version of sem_dist is compatible with PolyORB/DSA as well as
21740 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
21741 Asynchrronous that applies to a remote access-to-subprogram type, mark
21742 the underlying RACW type as asynchronous.
21744 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
21745 __gnat_using_gnu_linker to 1.
21747 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
21748 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
21749 GNAT.Perfect_Hash_Generators, and remove the empty
21750 GNAT.Perfect_Hash package.
21752 * atree.adb: Minor reformatting
21754 * exp_ch3.adb (Expand_Derived_Record): Rename to
21755 Expand_Record_Extension.
21756 (Build_Record_Init_Proc.Build_Assignment): The default expression in
21757 a component declaration must remain attached at that point in the
21758 tree so New_Copy_Tree copies it if the enclosing record type is derived.
21759 It is therefore necessary to take a copy of the expression when building
21760 the corresponding assignment statement in the init proc.
21761 As a side effect, in the case of a derived record type, we now see the
21762 original expression, without any rewriting that could have occurred
21763 during expansion of the ancestor type's init proc, and we do not need
21764 to go back to Original_Node.
21766 * exp_ch3.ads (Expand_Derived_Record): Rename to
21767 Expand_Record_Extension.
21769 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
21770 Returns the RACW type used to implement a remote access-to-subprogram
21772 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
21773 New subprograms. Used to create a proxy tagged object for a remote
21774 subprogram. The proxy object is used as the designated object
21775 for RAS values on the same partition (unless All_Calls_Remote applies).
21776 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
21777 System.Partition_Interface.Get_Unique_Remote_Pointer.
21778 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
21779 Renamed from Add_RAS_*_Attribute.
21780 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
21782 New implementation of expansion for remote access-to-subprogram types,
21783 based on the RACW infrastructure.
21785 * exp_dist.ads (Copy_Specification): Update comment to note that this
21786 function can copy the specification from either a subprogram
21787 specification or an access-to-subprogram type definition.
21789 2004-09-09 Ed Schonberg <schonberg@gnat.com>
21791 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
21792 in an instance, between an explicit subprogram an one inherited from a
21793 type derived from an actual.
21795 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
21796 add a polling call if the subprogram is to be inlined by the back-end,
21797 to avoid repeated calls with multiple inlinings.
21799 * checks.adb (Apply_Alignment_Check): If the expression in the address
21800 clause is a call whose name is not a static entity (e.g. a dispatching
21801 call), treat as dynamic.
21803 2004-09-09 Robert Dewar <dewar@gnat.com>
21805 * g-trasym.ads: Minor reformatting
21807 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
21808 packed arrays, since unused bits are expected to be zero for a
21811 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
21813 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
21816 2004-09-09 Pascal Obry <obry@gnat.com>
21818 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
21819 enable map file generation. Add the right option to generate the map
21820 file if Map_File is set to True.
21822 * gnatdll.adb (Gen_Map_File): New variable.
21823 (Syntax): Add info about new -m (Map_File) option.
21824 (Parse_Command_Line): Add support for -m option.
21825 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
21826 Minor reformatting.
21828 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
21830 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
21831 new gnatdist implementation.
21832 Define a subpackage isolating the output routines specific to this
21835 2004-09-09 Joel Brobecker <brobecker@gnat.com>
21837 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
21839 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
21841 2004-09-09 Cyrille Comar <comar@act-europe.fr>
21843 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
21846 * opt.ads: Add Ada_Version_Runtime constant used to decide which
21847 version of the language is used to compile the run time.
21849 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
21851 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
21852 of variable length temporaries for function return now that the
21853 back-end and gigi support it.
21855 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21857 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
21859 * trans.c (struct stmt_group): Delete field GLOBAL.
21860 (gnat_init_stmt_group): Do not initialize it.
21861 (call_to_gnu): Use save_expr, not protect_multiple_eval.
21862 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
21863 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
21864 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
21865 (start_stmt_group): Likewise.
21866 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
21868 * utils2.c (ggc.h): Include.
21869 (build_call_raise): Call build_int_cst, not build_int_2.
21871 * utils.c (gnat_init_decl_processing): Fix arg to
21872 build_common_tree_nodes.
21873 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
21874 (gnat_define_builtin): Set built_in_decls.
21875 (init_gigi_decls): Call build_int_cst, not build_int_2.
21877 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
21878 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
21879 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
21880 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
21881 SET_TYPE_MODULE): Use them.
21882 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
21883 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
21884 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
21885 SET_TYPE_ADA_SIZE): Likewise.
21886 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
21887 (DECL_CONST_CORRESPONDING_VAR,
21888 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
21889 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
21890 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
21891 (TYPE_RM_SIZE_NUM): New macro.
21892 (TYPE_RM_SIZE): Modified to use above.
21894 * cuintp.c: (build_cst_from_int): New function.
21895 (UI_To_gnu): Use it.
21897 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
21898 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
21899 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
21900 MIN_EXPR for the size, copy it into new.
21902 2004-09-01 Robert Dewar <dewar@gnat.com>
21904 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
21905 packed indexed component where array is an IN OUT formal. This
21906 generated garbage code previously.
21908 * gnat_ugn.texi: Document -fverbose-asm
21910 * gnat-style.texi: Minor updates (note that boolean constants and
21911 variables are joined with AND/OR rather than short circuit forms).
21913 2004-09-01 Ed Schonberg <schonberg@gnat.com>
21915 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
21916 it is an upward conversion of an untagged type with no representation
21919 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
21921 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
21922 System.Partition_Interface.
21924 * checks.adb (Apply_Access_Checks): Do not generate checks when
21925 expander is not active (but check for unset reference to prefix of
21928 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
21929 pragma Debug as an if statement with a constant condition, for
21930 consistent treatment of entity references contained within the
21931 enclosed procedure call.
21933 2004-09-01 Vincent Celier <celier@gnat.com>
21935 * bindgen.adb: (Set_EA_Last): New procedure
21936 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
21938 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
21939 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
21940 linked without errors.
21941 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
21943 (Gen_Exception_Table_C): Correct same bugs
21945 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
21947 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
21948 on Windows, make sure that the drive letter is in upper case.
21950 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
21951 Windows, when the drive letter is added and Case_Sensitive is True, the
21952 drive letter is forced to upper case.
21954 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
21955 to Options_2 for the call to MLib.Utl.Gcc.
21957 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
21958 directory separator when defining BASE_DIR.
21960 2004-09-01 Pascal Obry <obry@gnat.com>
21962 * gprcmd.adb (Extend): Do not output trailing directory separator. This
21963 is not needed and it confuses Windows GNU/make which does not report
21964 directory terminated by a slash as a directory.
21965 (gprcmd): Idem for "pwd" internal command.
21967 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
21968 target names rewrite to fix regressions with recent version of
21969 GNU/make. Starting with GNU/make 3.80 the pipe character was not
21970 handled properly anymore.
21972 2004-09-01 Andreas Schwab <schwab@suse.de>
21974 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
21975 * raise.c [!IN_RTS]: Undef abort.
21977 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
21979 * utils2.c (build_allocator): Use ssize_int.
21981 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
21983 2004-08-27 Andreas Schwab <schwab@suse.de>
21985 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
21987 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
21988 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21990 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
21992 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
21994 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
21995 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
21996 * utils.c (init_gigi_decls): Likewise.
21997 * utils2.c (build_call_raise, build_allocator): Likewise.
21999 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
22001 * utils.c (gnat_init_decl_processing): Adjust
22002 build_common_tree_nodes call.
22004 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
22006 * utils2.c (build_allocator): Use build_int_cst for negative
22009 2004-08-18 Richard Henderson <rth@redhat.com>
22011 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
22013 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
22015 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
22017 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
22018 (gnat_to_gnu): Likewise.
22020 2004-08-16 Pascal Obry <obry@gnat.com>
22022 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
22023 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
22024 option and not mdll anymore. Update comment.
22026 2004-08-16 Pascal Obry <obry@gnat.com>
22028 * bld.adb (Put_Include_Project): Properly handle directory separators
22031 2004-08-16 Ed Schonberg <schonberg@gnat.com>
22033 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
22034 decreasing the number of allocated junk nodes while searching for the
22035 appropriate subprogram.
22037 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
22039 * cuintp.c (UI_To_gnu): Use build_int_cst..
22040 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
22041 * utils.c (init_gigi_decls): Likewise.
22042 * utils2.c (build_call_raise): Likewise.
22044 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
22046 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
22047 for a global aliased object with a variable size and an unconstrained
22048 nominal subtype, pretend there is no initializer if the one we have is
22049 incomplete, and avoid referencing an inexistant component in there. The
22050 part we have will be rebuilt anyway and the reference may confuse
22051 further operations.
22053 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
22055 * einfo.ads: Minor reformatting
22057 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
22058 restrictions in the ALI if we only want to warn about violations.
22060 2004-08-13 Vincent Celier <celier@gnat.com>
22062 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
22063 when creating a new Unit_Record in table Units.
22065 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
22066 that are violated, if any.
22068 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
22069 add directory separator if path already ends with a directory separator.
22071 2004-08-13 Ed Schonberg <schonberg@gnat.com>
22073 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
22074 unit, this is an attempt to inline a construct that is not available in
22075 the current restricted mode, so abort rather than trying to continue.
22077 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
22078 discriminants that rename those of the parent, recover names of
22079 original discriminants for the constraint on the full view of the
22081 (Complete_Private_Subtype): Do not create a subtype declaration if the
22082 subtype is an itype.
22084 * gnat_rm.texi: Added section on implementation of discriminated
22085 records with default values for discriminants.
22087 2004-08-13 Ed Schonberg <schonberg@gnat.com>
22090 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
22091 the second operand is overloaded.
22093 2004-08-10 Richard Henderson <rth@redhat.com>
22095 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
22096 add __builtin_alloca.
22098 2004-08-10 Richard Henderson <rth@redhat.com>
22100 * config-lang.in (boot_language): Yes.
22102 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
22104 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
22105 from complaining on potential uninitialized reference.
22106 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
22107 new specification and test explicitly for non-zero return value.
22109 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
22110 returning C.int, to avoid using a derived boolean type.
22112 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
22113 Duplicate_Subexpr_No_Checks in preference to direct use of
22114 Remove_Side_Effects and New_Copy_Tree.
22115 Clear Comes_From_Source on prefix of 'Size attribute reference.
22117 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
22118 g-socthi-vxworks.adb: Change calls to
22119 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
22120 and test explicitly for non-zero return value.
22122 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
22123 (Is_Socket_In_Set): Declare imported function as returning C.int, to
22124 avoid using a derived boolean type.
22126 2004-08-09 Albert Lee <lee@gnat.com>
22128 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
22130 2004-08-09 Pascal Obry <obry@gnat.com>
22132 * gnat_ugn.texi: Document new way to build DLLs on Windows using
22133 GCC's -shared option.
22135 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
22136 Options_2 parameter (options put after object files).
22138 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
22140 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
22141 ignore overflows on low and high bounds of an index to also account for
22142 differences in signedness between sizetype and gnu_index_subtype.
22143 These are as legitimate as the ones caused by a lower TYPE_PRECISION
22146 2004-08-09 Robert Dewar <dewar@gnat.com>
22148 * s-solita.ads, s-solita.adb: Minor reformatting
22150 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
22151 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
22152 obsolescent section
22153 Add note that No_Implicit_Conditionals does not suppress
22154 run time constraint checks.
22156 * vms_conv.ads: Minor reformatting
22158 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
22159 and necessary for following change).
22160 (Mark): Return new format Mark_Id containing sec stack address
22161 (Release): Use sec stack address from Mark_Id avoiding Self call
22163 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
22164 pointer (cleanup and necessary for following change).
22165 Define Mark_Id as record containing address of secondary stack, that way
22166 Release does not need to find the stack again, decreasing the number of
22167 calls to Self and improving efficiency.
22169 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
22171 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
22172 case variable into the individual case branches when possible.
22174 * sem_ch11.adb: Minor reformatting
22176 * prj.ads: Correct spelling of suffixs
22178 * prj-nmsc.adb: Minor reformatting
22179 Correct spelling suffixs throughout (also in identifiers)
22181 * freeze.adb: Minor spelling correction
22183 * exp_ch2.adb: Cleanups to handling of Current_Value
22184 (no functional effect).
22186 * bld.adb: Correct spelling of suffixs
22188 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
22190 2004-08-09 Ed Schonberg <schonberg@gnat.com>
22193 * sem_ch7.adb (Install_Private_Declarations): In the body of the
22194 package or of a child, private entities are both immediately_visible
22197 2004-08-09 Ed Schonberg <schonberg@gnat.com>
22199 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
22200 there are no range checks on the value of the literal.
22202 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
22203 wrapped is the triggering alternative of an asynchronous select, action
22204 statements mustbe inserted before the select itself.
22206 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
22207 case where the prefix is a protected function call.
22208 (Resolve_Attribute, case 'Access): The attribute reference on a
22209 subprogram is legal in a generic body if the subprogram is declared
22212 2004-08-09 Vincent Celier <celier@gnat.com>
22214 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
22215 languages, otherwise building the library may fail with unresolved
22217 (Compile_Sources): Do not build libraries if -c switch is used
22219 * gnatlink.adb (Process_Args): New switches -M and -Mmap
22220 (Write_Usage): If map file creation is supported, output new switches
22222 (Gnatlink): When -M is specified, add the necessary switch(es) to the
22223 gcc call, when supported.
22225 * Makefile.in: Added indepsw.o to the object list for gnatlink
22226 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
22228 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
22229 indepsw.adb, indepsw.ads: New files.
22231 2004-08-09 Bernard Banner <banner@gnat.com>
22233 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
22235 * Makefile.in: add section for vxworks x86
22237 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
22239 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
22240 per-object constrained components where the discriminant is of an
22242 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
22243 the parent initialization procedure for derived Unchecked_Unions.
22244 Instead, derived Unchecked_Unions build their own initialization
22246 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
22247 Check the body of the subprogram for details.
22248 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
22249 functions for derived Unchecked_Union types by introducing a condition.
22250 Allow the creation of TSS equality functions for Unchecked_Unions.
22251 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
22252 Add formal parameter Discr to function signature. Discr is used to
22253 control the generated case statement for Unchecked_Union types.
22254 (Make_Eq_If): Rename formal parameter Node to E in function signature.
22256 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
22258 Check the body of the subprogram for details.
22259 (Expand_Composite_Equality): Augment composite type equality to include
22260 correct handling of Unchecked_Union components.
22261 (Expand_N_In): Add condition to detect illegal membership tests when the
22262 subtype mark is a constrained Unchecked_Union and the expression lacks
22263 inferable discriminants, and build a Raise_Program_Error node.
22264 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
22265 to detect types that contain components of unconstrained Unchecked_Union
22266 subtype. Add condition to detect equality between types that have an
22267 unconstrained Unchecked_Union component, and build a Raise_Program_Error
22268 node. Add condition to detect equality between Unchecked_Union types
22269 that lack inferable discriminants, and build a Raise_Program_Error node.
22270 Otherwise build a TSS equality function call.
22271 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
22272 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
22273 with the operand lacking inferable discriminants, and build a Raise_
22274 Program_Error node.
22275 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
22276 composite equality.
22277 (Has_Inferable_Discriminants): Implement new predicate for objects and
22278 expressions of Unchecked_Union type. Check the body of subprogram for
22280 (Has_Unconstrained_UU_Components): Add function
22281 Component_Is_Unconstrained_UU. It is used to detect whether a single
22282 component is of an unconstrained Unchecked_Union subtype. Add function
22283 Variant_Is_Unconstrained_UU. It is used to detect whether a single
22284 component inside a variant is of an unconstrained Unchecked_Union type.
22286 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
22287 inferred discriminant values. Add condition to generate a case
22288 statement with an inferred discriminant as the switch.
22289 (Make_Component_List_Assign): Introduce a Boolean flag that determines
22290 the behaviour of the subprogram in the presence of an Unchecked_Union.
22291 Add condition to trigger the usage of the inferred discriminant value
22292 as the generated case statement switch.
22293 (Make_Field_Assign): Introduce a Boolean flag that determines the
22294 behaviour of the subprogram in the presence of an Unchecked_Union. Add
22295 condition to trigger the usage of the inferred discriminant value as
22296 the right-hand side of the generated assignment.
22298 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
22299 parameter generation when dealing with Unchecked_Unions.
22301 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
22302 checks for Unchecked_Unions.
22304 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
22306 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
22307 Raise_Program_Error nodes for the execution of Read and Write
22308 attributes of Unchecked_Union types and the execution of Input and
22309 Output attributes of Unchecked_Union types that lack default
22310 discriminant values.
22312 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
22313 Unchecked_Union. Add procedure Check_Component. It is used to inspect
22314 per-object constrained components of Unchecked_Unions for being
22315 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
22316 check individual components withing a variant.
22318 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
22319 comparison of Unchecked_Unions.
22320 (Resolve_Equality_OP): Remove guard that prevents equality between
22323 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
22324 of component subtypes for Unchecked_Union components.
22325 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
22326 since it is the actual subtype.
22328 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
22329 pass of Unchecked_Union subtypes as generic actuals to formal types
22330 that lack known_discriminant_parts or that are derived Unchecked_Union
22331 types, and do nothing. In any other case, produce an error message.
22333 * sem_ch3.adb (Analyze_Component_Declaration): Add function
22334 Contains_POC. It determines whether a constraint uses the discriminant
22335 of an enclosing record type.
22336 Add condition to detect per-object constrained component and set the
22338 (Derived_Type_Declaration): Remove guard that prevents derivation from
22339 Unchecked_Union types.
22340 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
22343 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
22344 references to Unchecked_Union discriminants.
22346 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
22347 formal generation when dealing with Unchecked_Unions.
22348 (Set_Actual_Subtypes): Add condition to prevent generation of actual
22349 subtypes for Unchecked_Unions.
22351 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
22352 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
22353 completions of discriminated partial views by Unchecked_Unions and
22354 produce an error message.
22356 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22358 * trans.c (struct stmt_group): New field, GLOBAL.
22359 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
22360 (struct elab_info): New struct.
22361 (elab_info_list, gnu_elab_proc_stack): New variables.
22362 (Compilation_Unit_to_gnu): New procedure.
22363 (gigi): Call it and also handle elaboration procs we've saved.
22364 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
22365 global field from parent.
22366 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
22367 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
22368 (start_stmt_group): Initialize global field from parent.
22369 (add_decl_expr): Set to global for current statement group.
22370 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
22373 * utils.c (global_bindings_p): True when no current_function_decl; no
22374 longer check current_binding_level.
22376 2004-08-09 Ben Brosgol <brosgol@gnat.com>
22378 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
22381 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
22383 2004-08-06 Andreas Schwab <schwab@suse.de>
22385 * utils.c (gnat_define_builtin): Remove second parameter of
22387 (begin_subprog_body): Likewise.
22389 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
22391 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
22392 optimization, not supported by the tree-ssa back-end.
22394 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
22396 * s-mastop-irix.adb: Update comments.
22398 * a-except.adb (Exception_Information): Raise Constraint_Error if
22399 exception Id is Null_Id.
22400 This is required behavior, which is more reliably and clearly checked
22401 at the top level interface level.
22403 2004-07-26 Javier Miranda <miranda@gnat.com>
22405 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
22406 call if a component has no default_expression and the box is used.
22408 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
22409 default_expression and you use box, it behaves as if you had declared a
22410 stand-alone object.
22411 (Resolve_Record_Aggregate): If a component has no default_expression and
22412 you use box, it behaves as if you had declared a stand-alone object.
22414 * sem_ch10.adb (Install_Siblings): Do not make visible the private
22415 entities of private-with siblings.
22417 2004-07-26 Ed Schonberg <schonberg@gnat.com>
22419 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
22420 for a component of an itype, set the parent pointer for analysis,
22421 there is no list in which to insert it.
22423 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
22424 bona-fide renamings, not for inherited operations.
22426 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
22427 actual for a formal that is an access parameter, create local
22428 finalization list even if the expression is not an aggregate.
22430 2004-07-26 Ed Schonberg <schonberg@gnat.com>
22433 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
22434 Diagnose properly illegal subprogram renamings that are library units.
22436 2004-07-26 Ed Schonberg <schonberg@gnat.com>
22439 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
22440 conversion rewritten as an unchecked conversion, check that original
22441 expression is a variable.
22443 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
22444 unchecked_conversion, create new node rather than rewriting in place,
22445 to preserve original construct.
22447 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22449 * gigi.h (gnat_expand_body): Deleted.
22451 * Make-lang.in: (trans.o): Depends on function.h.
22453 * misc.c: (gnat_expand_body): Moved to here.
22455 * trans.c (gnat_expand_body_1): Deleted.
22456 (gnat_expand_body): Moved from here.
22457 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
22458 (add_stmt): Check for marked visited with global_bindings_p.
22459 (gnat_gimplify_expr, case COMPONENT_REF): New case.
22460 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
22462 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
22463 VIEW_CONVERT_EXPR if not operation type.
22465 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
22468 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
22469 changes: reformatting of negation operators, removing unneeded
22470 inequality comparison with zero, converting equality comparisons with
22471 zero to negations, changing int/0/1 to bool/false/true, replace calls
22472 to gigi_abort with abort, and various other similar changes.
22474 2004-07-26 Vincent Celier <celier@gnat.com>
22476 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
22479 * make.adb (Gnatmake): Fail when a library is not present and there is
22480 no object directory.
22482 * mlib-prj.adb (Check_Library): No need to check if the library needs
22483 to be rebuilt if there is no object directory, hence no object files
22484 to build the library.
22486 * opt.ads (Setup_Projects): New Boolean flag.
22488 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
22490 Create directory when Kind /= "" and in "gnat setup". Report error if
22491 directory cannot be created.
22492 (Ada_Check): Create library interface copy dir if it does not exist
22493 and we are in "gnat setup".
22494 (Find_Sources): No error if in "gnat setup" and no Ada sources were
22496 (Language_Independent_Check): Create object directory, exec directory
22497 and/or library directory if they do not exist and we are in
22500 * vms_conv.ads: (Command_Type): New command Setup.
22502 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
22504 * vms_data.ads: Add qualifiers/switches for new built-in command
22507 2004-07-25 Richard Henderson <rth@redhat.com>
22509 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
22510 DECL_IGNORED_P on RESULT_DECL.
22512 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
22514 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
22515 allocation and potentially overflowing update with
22516 Tailored_Exception_Information. Use the sec-stack free procedural
22517 interface to output Exception_Information instead.
22519 * a-except.adb (To_Stderr): New subprogram for character, and string
22520 version moved from a-exextr to be visible from other separate units.
22521 (Tailored_Exception_Information): Remove the procedural version,
22522 previously used by the default Last_Chance_Handler and not any more.
22523 Adjust various comments.
22525 * a-exexda.adb: Generalize the exception information procedural
22526 interface, to minimize the use of secondary stack and the need for
22527 local buffers when the info is to be output to stderr:
22528 (Address_Image): Removed.
22529 (Append_Info_Character): New subprogram, checking for overflows and
22530 outputing to stderr if buffer to fill is of length 0.
22531 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
22532 (Append_Info_Address, Append_Info_Exception_Name,
22533 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
22534 Append_Info_Basic_Exception_Traceback,
22535 Append_Info_Exception_Information): New subprograms.
22536 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
22537 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
22538 Exception_Info_Maxlength, Exception_Name_Length,
22539 Exception_Message_Length): New subprograms.
22540 (Exception_Information): Use Append_Info_Exception_Information.
22541 (Tailored_Exception_Information): Use
22542 Append_Info_Basic_Exception_Information.
22543 Export services for the default Last_Chance_Handler.
22545 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
22546 other separate units.
22548 2004-07-20 Vincent Celier <celier@gnat.com>
22550 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
22552 2004-07-20 Ed Schonberg <schonberg@gnat.com>
22554 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
22555 emit itype references for the designated types of component types that
22556 are declared outside of the full record declaration, and that may
22557 denote a partial view of that record type.
22559 2004-07-20 Ed Schonberg <schonberg@gnat.com>
22562 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
22563 which is the designated type in an access component declaration, to the
22564 list of incomplete dependents of the parent type, to avoid elaboration
22565 issues with out-of-scope subtypes.
22566 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
22567 full view of the parent.
22569 2004-07-20 Ed Schonberg <schonberg@gnat.com>
22572 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
22573 entities that are hidden, such as references to generic actuals
22574 outside an instance.
22576 2004-07-20 Javier Miranda <miranda@gnat.com>
22578 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
22579 support to the new notation.
22580 (Analyze_Selected_Component): Add call to Try_Object_Operation.
22582 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
22584 * s-taprob.adb: Adding the elaboration code required for initializing
22585 the tasking soft links that are common to the full and the restricted
22588 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
22589 restricted run time has been moved to the package
22590 System.Soft_Links.Tasking.
22592 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
22593 restricted run time has been moved to the package
22594 System.Soft_Links.Tasking.
22596 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
22598 * s-solita.ads, s-solita.adb: New files.
22600 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22602 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
22603 Case_Statement_to_gnu): Split off from gnat_to_gnu.
22604 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
22605 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
22606 Exception_Handler_to_gnu_zcx): Likewise.
22608 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
22610 * gigi.h (builtin_function): Declare.
22612 2004-07-15 Robert Dewar <dewar@gnat.com>
22614 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
22617 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
22618 access values as an example of a warning.
22620 * gnat_rm.texi: Document new attribute Has_Access_Values
22622 * gnat-style.texi: Document that box comments belong on nested
22625 * sem_util.ads (Has_Access_Values): Improved documentation
22627 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
22629 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
22630 (Process_Interface_Name): Call to this new procedure
22631 (Set_Extended_Import_Export_External_Name): Call to this new procedure
22633 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
22635 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
22637 * einfo.ads: Minor comment typo fixed
22639 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
22641 * snames.adb: Add _atcb.
22643 * snames.ads: Add Name_uATCB.
22645 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
22646 (in the expanded code) when using the restricted run time.
22648 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
22649 a in parameter in order to allow ATCBs to be preallocated (in the
22652 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
22653 order to allow ATCBs to be preallocated. In case of error, the ATCB is
22654 deallocated in System.Tasking.Stages.
22656 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
22657 order to allow ATCBs to be preallocated.
22659 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
22660 here. It was previously done in Initialize_ATCB.
22662 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
22664 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
22665 Restricted run time.
22667 * exp_ch3.adb: When using the Restricted run time, pass the
22668 preallocated Ada_Task_Control_Block when creating a task.
22670 2004-07-15 Ed Schonberg <schonberg@gnat.com>
22672 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
22673 function call that is itself an actual in an enclosing call, diagnose
22674 problem here rather than assuming that resolution will catch it.
22676 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
22677 the local copy of a generic unit for a formal package, and the generic
22678 is a child unit, install private part of ancestors before compiling
22679 private part of spec.
22681 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
22682 use scope entities rather than tree structures, to handle properly
22683 parent units that are instances rewritten as bodies for inlining
22686 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
22687 Remove_Parents): Handle properly a parent unit that is an
22688 instantiation, when the unit has been rewritten as a body for inlining
22691 * par.adb (Goto_List): Global variable to collect goto statements in a
22692 given unit, for use in detecting natural loops.
22694 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
22695 use in detecting natural loops.
22697 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
22698 backwards goto's, and rewrite as a infinite loop, to improve locality
22701 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
22702 subcomponent that includes an indexed reference, to prevent the
22703 generation of copies that would miscompile the desired assignment
22705 (Build_Task_Image_Decls): Add a numeric suffix to
22706 generated name for string variable, to avoid spurious conflicts with
22707 the name of the type of a single protected object.
22709 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
22710 loop with an explicit exit statement, to avoid generating an
22711 out-of-range value with 'Succ leading to spurious constraint_errors
22712 when compiling with -gnatVo.
22714 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
22716 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
22717 might not be analyzed yet, even if its Etype is already set (case of an
22718 unchecked conversion built using Unchecked_Convert_To, for example).
22719 If the prefix has already been analyzed, this will be a nop anyway.
22721 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
22722 controller type, or an assignment of a record type with controlled
22723 components, copy only user data, and leave the finalization chain
22724 pointers untouched.
22726 2004-07-15 Vincent Celier <celier@gnat.com>
22728 * make.adb (Collect_Arguments): Improve error message when attempting
22729 to compile a source not part of any project, when -x is not used.
22731 * prj.ads: (Defined_Variable_Kind): New subtype
22733 * prj-attr.adb (Register_New_Package): Two new procedures to register
22734 a package with or without its attributes.
22735 (Register_New_Attribute): Mew procedure to register a new attribute in a
22737 New attribute oriented subprograms: Attribute_Node_Id_Of,
22738 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
22739 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
22741 New package oriented subprograms: Package_Node_Id_Of,
22742 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
22744 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
22746 (Package_Node_Id): Now a private, self initialized type
22747 (Register_New_Package): New procedure to register a package with its
22749 New attribute oriented subprograms: Attribute_Node_Id_Of,
22750 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
22751 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
22753 New package oriented subprograms: Package_Node_Id_Of,
22754 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
22756 * prj-dect.adb (Parse_Attribute_Declaration,
22757 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
22759 * prj-makr.adb (Make): Parse existing project file before creating
22760 other files. Fail if there was an error during parsing.
22762 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
22763 new spec of Prj.Attr.
22765 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
22766 to new spec of Prj.Attr.
22768 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22770 * utils2.c: Fix typo in comment.
22772 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22774 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
22775 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
22777 2004-07-14 Andreas Schwab <schwab@suse.de>
22779 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
22781 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22783 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
22785 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
22788 * misc.c (gnat_types_compatible_p): New function.
22789 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
22790 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
22792 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
22793 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
22794 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
22795 (mark_visited): Don't mark dummy type.
22796 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
22797 parameter, we must remove any LJM building from GNU_NAME.
22798 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
22799 (pos_to_constructor): Use int_const_binop.
22800 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
22803 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
22804 (gnat_pushlevel): Set TREE_USE on BLOCK node.
22805 (gnat_install_builtins): Add __builtin_memset.
22807 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
22809 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
22810 for a renaming, stabilize the initialization expression if we are at a
22811 local level. At the local level, uses of the renaming may be performed
22812 by a direct dereference of the initializing expression, and we don't
22813 want possible variables there to be evaluated for every use.
22815 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
22816 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
22817 them on the way. Account for the fact that we may introduce side
22818 effects in the process.
22820 2004-07-13 Richard Henderson <rth@redhat.com>
22822 * misc.c (default_pass_by_ref): Use pass_by_reference.
22824 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
22826 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
22827 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22829 2004-07-08 Richard Henderson <rth@redhat.com>
22831 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
22834 2004-07-06 Vincent Celier <celier@gnat.com>
22836 * vms_conv.ads: Minor reformatting.
22837 Alphabetical order for enumerated values of type Command_Type, to have
22838 the command in alphabetical order for the usage.
22840 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
22841 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
22843 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
22845 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
22846 (Add_Archive_Path): Only add the global archive if there is one.
22847 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
22848 or not any object file to put in the global archive, and don't build
22849 a global archive if there is none.
22850 (X_Switches): New table
22851 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
22852 in the X_Switches table, if any.
22853 (Initialize): Make sure the X_Switches table is empty
22854 (Scan_Arg): Record -X switches in table X_Switches
22856 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
22858 * make.adb: Minor comment fix
22860 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
22861 invoked with directory information, add the directory in front of the
22864 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
22865 invoked with directory information, add the directory in front of the
22868 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
22869 when Keep_Temporary_Files is False.
22870 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
22871 directory information, add the directory in front of the path.
22872 When not on VMS, handle new switch -dn before the command to set
22873 Keep_Temporary_Files to True.
22874 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
22877 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
22878 invoked with directory information, add the directory in front of the
22881 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
22883 * snames.ads, snames.adb (Name_Stub): New name for the distributed
22886 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
22887 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
22889 * g-socket.adb (To_Timeval): Fix incorrect conversion of
22890 Selector_Duration to Timeval for the case of 0.0.
22892 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
22893 documentation from Evolve_And_Then.
22895 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
22897 * s-taprop-tru64.adb, s-taprop-os2.adb,
22898 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
22900 2004-07-06 Robert Dewar <dewar@gnat.com>
22902 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
22903 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
22904 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
22905 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
22906 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
22907 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
22908 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
22909 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
22910 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
22911 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
22912 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
22913 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
22914 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
22915 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
22916 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
22917 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
22918 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
22919 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
22920 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
22921 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
22922 vms_data.ads: Minor reformatting,
22923 Fix bad box comment format.
22925 * gnat_rm.texi: Fix minor grammatical error
22927 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
22929 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
22930 more cases of discriminated records to be recognized as not needing a
22932 (Has_Access_Values): New function.
22934 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
22936 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
22937 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
22938 with LRM terminology).
22939 Change terminology in comments primitive type => elementary type.
22941 2004-07-06 Ed Schonberg <schonberg@gnat.com>
22944 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
22945 parameters do not impose any requirements on the presence of a body.
22947 2004-07-06 Ed Schonberg <schonberg@gnat.com>
22950 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
22951 compilation unit and is in an open scope at the point of instantiation,
22952 assume that a body may be present later.
22954 2004-07-06 Ed Schonberg <schonberg@gnat.com>
22956 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
22957 Improve error message when specified size is not supported.
22959 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
22960 is never a primitive operation.
22962 2004-07-05 Andreas Schwab <schwab@suse.de>
22964 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
22965 RECORD_OR_UNION_CHECK.
22966 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
22968 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
22970 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
22971 dependency on xgnatugn, instead build it via a submake.
22972 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
22974 2004-07-04 Richard Henderson <rth@redhat.com>
22976 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
22978 2004-07-01 Richard Henderson <rth@redhat.com>
22980 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
22981 * utils.c (max_size): Likewise.
22983 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22985 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
22986 and rest_of_type_compilation; add arg to create_*_decl.
22987 (annotate_decl_with_node): Deleted.
22988 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
22989 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
22990 (get_current_block_context, gnat_pushdecl): New declarations.
22991 (gnat_init_stmt_group): Likewise.
22992 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
22993 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
22994 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
22995 (gnat_init): Call gnat_init_stmt_group.
22996 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
22997 (gnu_pending_elaboration_list): Deleted.
22998 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
22999 (gigi): Rearrange initialization calls and move some to last above.
23000 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
23001 Delete calls to add_decl_expr; add arg to create_*_decl.
23002 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
23003 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
23004 begin_subprog_body and call it.
23005 Don't push and pop ggc context.
23006 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
23007 (add_stmt): Remove handling of DECL_EXPR from here.
23008 If not in function, mark visited.
23009 (add_decl_expr): Put global at top level.
23010 Check for cases of DECL_INITIAL we have to handle here.
23011 (process_type): Add extra arg to create_type_decl.
23012 (build_unit_elab): Rework to just gimplify.
23013 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
23014 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
23015 (get_pending_elaborations, pending_elaborations_p): Likewise.
23016 (push_pending_elaborations, pop_pending_elaborations): Likewise.
23017 (get_elaboration_location, insert_elaboration_list): Likewise.
23018 (gnat_binding_level): Renamed from ada_binding_level.
23019 (init_gnat_to_gnu): Don't clear pending_elaborations.
23020 (global_bindings_p): Treat as global if no current_binding_level.
23021 (set_current_block_context): New function.
23022 (gnat_pushdecl): Renamed from pushdecl; major rework.
23023 All callers changed.
23024 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
23025 (finish_record_type): Call call pushdecl for stub decl.
23026 (function_nesting_depth): Deleted.
23027 (begin_subprog_body): Delete obsolete code.
23028 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
23030 2004-06-28 Robert Dewar <dewar@gnat.com>
23032 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23033 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
23034 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
23035 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
23036 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
23038 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
23039 deal with problem of inefficient slices on machines with strict
23040 alignment, when the slice is a component of a composite.
23042 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
23043 machines, we need the check there as well.
23045 2004-06-28 Ed Schonberg <schonberg@gnat.com>
23047 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
23048 determine safe copying direction for overlapping slice assignments
23049 when component is controlled.
23051 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
23052 formal derived type in the actual for a formal package are visible in
23053 the enclosing instance.
23055 2004-06-28 Ed Schonberg <schonberg@gnat.com>
23058 * sem_util.adb (Trace_Components): Diagnose properly an illegal
23059 circularity involving a private type whose completion includes a
23060 self-referential component.
23061 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
23062 renaming or an instantiation from an implicit derived operation.
23064 2004-06-28 Pascal Obry <obry@gnat.com>
23066 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
23068 (Library_File_Name_For): Idem.
23070 2004-06-28 Matthew Gingell <gingell@gnat.com>
23072 * g-traceb.ads: Add explanatory note on the format of addresses
23073 expected by addr2line.
23075 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
23077 * Makefile.in: Force debugging information on s-tasdeb.adb,
23078 a-except.adb and s-assert.adb needed by the debugger.
23080 2004-06-28 Vincent Celier <celier@gnat.com>
23082 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
23086 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
23088 * prj.adb: Minor reformatting
23089 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
23091 * prj.ads: Comment updates
23093 (Project_Data): Change Flag1 to Need_To_Build_Lib.
23094 Remove Flag2: not used.
23096 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
23099 * gnat_ugn.texi: Put a "null;" declaration in one project file example
23101 * gnat_rm.texi: Document Empty declarations "null;".
23103 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
23104 front of the linker options.
23105 (Link_Foreign): Put the global archives and the libraries in front of
23106 the linker options.
23108 2004-06-28 Javier Miranda <miranda@gnat.com>
23110 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
23111 (RTU_Loaded): Code cleanup
23112 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
23113 withed predefined units.
23115 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
23116 explicitly withed predefined units.
23117 Fix typo in comment
23119 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
23120 explicitly withed predefined units.
23122 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23124 * ada-tree.def (DECL_STMT): Deleted.
23125 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
23126 (DECL_STMT_VAR): Deleted.
23127 * decl.c: add_decl_stmt now add_decl_expr.
23128 * gigi.h: Likewise.
23129 * trans.c: Likewise.
23130 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
23131 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
23132 (add_stmt): Only handle padded type here.
23133 (add_stmt_with_node): Allow gnat_node to not be present.
23134 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
23135 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
23136 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
23137 make a SAVE_EXPR for the entire fat pointer.
23138 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
23139 (create_index_type): Make a DECL_EXPR.
23140 (end_subprog_body): Don't call allocate_struct_function here but
23143 2004-06-25 Pascal Obry <obry@gnat.com>
23145 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
23146 Relocatable from Build_Dynamic_Library call.
23148 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
23149 Relocatable are now synonym.
23151 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
23153 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
23154 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
23157 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
23158 Lib_Address and Relocatable.
23159 (Default_DLL_Address): Removed.
23161 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23162 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23163 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
23164 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
23165 (Default_DLL_Address): Removed.
23167 * mlib-tgt-mingw.adb: Ditto.
23168 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
23170 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
23171 the initial thread stack size.
23173 * a-strmap.ads: Move package L to private part as it is not used in
23174 the spec. Found while reading code.
23176 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
23178 * tracebak.c: Introduce support for a GCC infrastructure based
23179 implementation of __gnat_backtrace.
23181 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
23182 any more. Use accessors instead. This eases maintenance and relaxes
23183 some alignment constraints.
23184 (_GNAT_Exception structure): Remove the Ada specific fields
23185 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
23187 (is_handled_by, __gnat_eh_personality): Replace component references to
23188 exception structure by use of the new accessors.
23190 * init.c (__gnat_initialize): Adjust comments to match the just
23191 reverted meaning of the -static link-time option.
23193 * adaint.c (convert_addresses): Arrange not to define a stub for
23194 mips-irix any more, as we now want to rely on a real version from a
23195 recent libaddr2line.
23197 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
23198 the personality routine can use them and not have to rely on a C
23199 counterpart of the record anymore. This simplifies maintenance and
23200 relaxes the constraint of having Standard'Maximum_Alignment match
23202 Update comments, and add a section on the common header alignment issue.
23204 2004-06-25 Geert Bosch <bosch@gnat.com>
23206 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
23207 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
23209 2004-06-25 Robert Dewar <dewar@gnat.com>
23211 * gnat_rm.texi: Fix section on component clauses to indicate that the
23212 restriction on byte boundary placement still applies for bit packed
23214 Add comment on stack usage from Initialize_Scalars
23216 * gnat_ugn.texi: Add documentation for -gnatyLnnn
23218 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
23219 limiting nesting level.
23221 * usage.adb: Add line for -gnatyLnnn switch
23223 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
23224 sem_ch13.adb, exp_aggr.adb: Minor reformatting
23226 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
23227 type as well as on the subtype. This corrects a problem in freeze in
23228 setting alignments of atomic types.
23230 * sem_eval.ads: Minor comment typo fixed
23232 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
23233 level. Minor reformatting.
23235 * fname.adb (Is_Predefined_File_Name): Require a letter after the
23236 minus sign. This means that file names like a--b.adb will not be
23237 considered predefined.
23239 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
23240 record Test new flag and give diagnostic for bad component clause.
23241 (Freeze_Entity): Set alignment of array from component alignment in
23242 cases where this is safe to do.
23244 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
23247 * cstand.adb: (Create_Standard): Set alignment of String to 1
23249 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
23251 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
23252 code in the common constrained array cases.
23254 * a-storio.adb: Change implementation to avoid possible alignment
23255 problems on machines requiring strict alignment (data should be moved
23256 as type Buffer, not type Elmt).
23258 * checks.adb (Apply_Array_Size_Check): Improve these checks by
23259 killing the overflow checks which we really do not need (64-bits is
23262 2004-06-25 Vincent Celier <celier@gnat.com>
23264 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
23265 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
23266 inconditionally for the main project.
23267 (Recursive_Add_Archives.Add_Archive_Path): New procedure
23268 (Link_Executables.Check_Time_Stamps): New procedure
23269 (Link_Executables.Link_Foreign): New procedure
23270 Changes made to reduce nesting level of this package
23271 (Check): New procedure
23272 (Add_Switches): When not in quiet output, check that a switch is not
23273 the concatenation of several valid switches. If it is, issue a warning.
23274 (Build_Global_Archive): If the global archive is rebuilt, linking need
23276 (Compile_Sources): Rebuilding a library archive does not imply
23277 rebuilding the global archive.
23278 (Build_Global_Archive): New procedure
23279 (Build_Library): New name for Build_Archive, now only for library
23281 (Check_Archive_Builder): New procedure
23282 (Create_Global_Archive_Dependency_File): New procedure
23283 (Gprmake): Call Build_Global_Archive before linking
23284 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
23286 (Scan_Arg): Display the Copyright notice when -v is used
23288 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
23291 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
23293 Add new GNAT LIST qualifier /FILES=
23294 Added qualifier /DIRECTORY= to GNAT METRIC
23295 Added qualifier /FILES= to GNAT METRIC
23296 Added qualifier /FILES to GNAT PRETTY
23298 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
23299 to take into account both versions of the switch.
23301 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
23302 always be the last switch to the gcc driver. Disable switch storing so
23303 that switches automatically added by the gcc driver are not put in the
23306 * prj.adb (Project_Empty): Take into account changes in components of
23309 * prj.ads (Languages_Processed): New enumaration value All_Languages.
23311 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
23312 used. Split Boolean component Ada_Sources_Present in two Boolean
23313 components Ada_Sources_Present and Other_Sources_Present.
23316 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
23317 instead of Sources_Present.
23318 (Set_Ada_Paths.Add.Recursive_Add): Ditto
23320 * prj-nmsc.adb: Minor reformatting
23321 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
23322 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
23323 Check_Ada_Naming_Scheme.
23324 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
23327 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
23329 Make sure that all cycles where there is at least one "limited with"
23331 (Parse_Single_Project): New Boolean parameter In_Limited
23333 * prj-proc.adb (Recursive_Check): When Process_Languages is
23334 All_Languages, call first Prj.Nmsc.Ada_Check, then
23335 Prj.Nmsc.Other_Languages_Check.
23337 * prj-proc.adb (Process): Use Ada_Sources_Present or
23338 Other_Sources_Present (instead of Sources_Present) depending on
23341 * lang-specs.h: Keep -g and -m switches in the same order, and as the
23344 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
23345 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
23347 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
23350 * lib.ads (Disable_Switch_Storing): New procedure.
23352 * make.adb: Modifications to reduce nesting level of this package.
23353 (Check_Standard_Library): New procedure
23354 (Gnatmake.Check_Mains): New procedure
23355 (Gnatmake.Create_Binder_Mapping_File): New procedure
23356 (Compile_Sources.Compile): Add switch -gnatez as the last option
23357 (Display): Never display -gnatez
23359 * Makefile.generic:
23360 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
23362 * gnatcmd.adb (Check_Project): New function
23363 (Process_Link): New procedure to reduce nesting depth
23364 (Check_Files): New procedure to reduce the nesting depth.
23365 For GNAT METRIC, include the inherited sources in extending projects.
23366 (GNATCmd): When GNAT LS is invoked with a project file and no files,
23367 add the list of files from the sources of the project file. If this list
23368 is too long, put it in a temp text files and use switch -files=
23369 (Delete_Temp_Config_Files): Delete the temp text file that contains
23370 a list of source for gnatpp or gnatmetric, if one has been created.
23371 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
23372 in the project file is too large, create a temporary text file that
23373 list them and pass it to the tool with "-files=<temp text file>".
23374 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
23376 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
23377 generated file is in not in Ada.
23379 * gnatls.adb: Remove all parameters And_Save that are no longer used.
23380 (Scan_Ls_Arg): Add processing for -files=
23381 (Usage): Add line for -files=
23383 * g-os_lib.adb (On_Windows): New global constant Boolean flag
23384 (Normalize_Pathname): When on Windows and the path starts with a
23385 directory separator, make sure that the resulting path will start with
23388 * clean.adb (Clean_Archive): New procedure
23389 (Clean_Project): When there is non-Ada code, delete the global archive,
23390 the archive dependency files, the object files and their dependency
23391 files, if they exist.
23392 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
23394 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
23396 * sinfo.ads: Fix typo in comment.
23398 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
23399 the TSS for remote access-to-subprogram types, since these TSS are
23400 always present once the type has been analyzed.
23401 (RAS_E_Dereference): Same.
23403 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
23404 reference raises Bad_Attribute, mark the reference as analyzed so the
23405 node (and any children resulting from rewrites that could have occurred
23406 during the analysis that ultimately failed) is not analyzed again.
23408 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
23410 * exp_dist.adb: Minor comment fix.
23412 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
23413 type is an anonymous access type, no unchecked deallocation of the
23414 allocated object can occur. If the object is controlled, attach it with
23415 a count of 1. This allows attachment to the Global_Final_List, if
23416 no other relevant list is available.
23417 (Get_Allocator_Final_List): For an anonymous access type that is
23418 the type of a discriminant or record component, the corresponding
23419 finalisation list is the one of the scope of the type.
23421 2004-06-25 Ed Schonberg <schonberg@gnat.com>
23423 * sem_ch3.adb (Replace_Type): When computing the signature of an
23424 inherited subprogram, use the first subtype if the derived type
23425 declaration has no constraint.
23427 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
23428 before applying previous optimization. Minor code cleanup.
23430 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
23431 placed at the beginning of an unpacked record without explicit
23432 alignment, a slice of it will be aligned and does not need a copy when
23435 2004-06-25 Ed Schonberg <schonberg@gnat.com>
23439 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
23440 reference is written with expressions mimicking parameters.
23442 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
23445 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
23446 STEP 2a. The constraints of a full type declaration of a derived record
23447 type are checked for conformance with those declared in the
23448 corresponding private extension declaration. The message
23449 "not conformant with previous declaration" is emitted if an error is
23452 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
23454 * g-traceb.ads: Document the need for -E binder switch in the spec.
23456 * g-trasym.ads: Document the need for -E binder switch in the spec.
23458 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
23460 * sem_prag.adb: Add handling of pragma Detect_Blocking.
23462 * snames.h, snames.ads, snames.adb: Add entry for pragma
23465 * s-rident.ads: Change reference to pragma Detect_Blocking.
23467 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
23470 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
23471 to indicate whether pragma Detect_Blocking is active.
23473 * par-prag.adb: Add entry for pragma Detect_Blocking.
23475 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
23476 of not handling WITH.
23477 Note that this replaces the previous update which was incorrect.
23479 2004-06-25 Javier Miranda <miranda@gnat.com>
23481 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
23482 use-clauses to have a clean environment.
23484 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
23485 the installation of the use-clauses to stablish a clean environment in
23486 case of compilation of a separate unit; otherwise the call to
23487 use_one_package is protected by the barrier Applicable_Use.
23489 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
23490 the installation of the use-clauses to stablish a clean environment in
23491 case of compilation of a separate unit.
23492 (End_Use_Clauses): Minor comment cleanup.
23494 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
23496 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
23498 2004-06-23 Richard Henderson <rth@redhat.com>
23500 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
23502 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23504 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
23505 now bool instead of int.
23506 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
23507 * trans.c (gnu_switch_label_stack): New function.
23508 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
23509 elaboration of renamed entity returns.
23510 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
23511 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
23512 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
23513 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
23514 DECL_SIZE_UNIT and simplify variable-sized case.
23515 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
23516 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
23517 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
23518 (build_unit_elab): Disable for now.
23519 * utils.c (mark_visited): New function.
23520 (pushdecl): Walk tree to call it for global decl.
23521 (update_pointer_to): Update all variants of pointer and ref types.
23522 Add arg to COMPONENT_REF.
23523 (convert): Likewise.
23524 Move check for converting between variants lower down.
23525 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
23526 (build_allocator): Don't force type of MODIFY_EXPR.
23527 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
23528 put_var_into_stack.
23530 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23532 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
23533 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
23534 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
23536 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
23537 all callers changed.
23538 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
23539 the way that EXIT_STMT finds the loop label.
23540 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
23541 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
23542 (add_stmt): Use annotate_with_locus insted of setting directly.
23543 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
23544 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
23545 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
23546 (build_vms_descriptor): Add extra args to ARRAY_REF.
23547 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
23548 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
23550 (build_binary_op): Don't make explicit CONVERT_EXPR.
23551 Add extra rgs to ARRAY_REF.
23553 2004-06-14 Pascal Obry <obry@gnat.com>
23555 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
23556 Windows. Fix minor typo.
23558 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
23559 which is now supported on Windows. With this implementation using the
23560 Library Project feature is no different on Windows than on UNIX.
23562 2004-06-14 Vincent Celier <celier@gnat.com>
23564 * makegpr.adb (Compile_Sources): Nothing to do when there are no
23567 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
23569 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
23570 found, show the project name and the path of the previously parsed
23573 2004-06-14 Ed Schonberg <schonberg@gnat.com>
23575 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
23576 array, avoid copying the actual before the call.
23578 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
23580 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
23581 Instead, allocate memory on worst-case alignment assumptions, and then
23582 return an aligned address within the allocated zone.
23584 2004-06-14 Robert Dewar <dewar@gnat.com>
23586 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
23587 elab entities in predefined units in No_Run_Time_Mode.
23588 (Gen_Adainit_C): Same fix
23589 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
23590 units in No_Run_Time_Mode
23591 (Gen_Elab_Calls_C): Same fix
23593 * symbols-vms-alpha.adb: Minor reformatting
23595 * g-debpoo.ads: Minor reformatting
23597 * lib.adb (In_Same_Extended_Unit): Version working on node id's
23599 * lib.ads (In_Same_Extended_Unit): Version working on node id's
23601 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
23604 * make.adb: Minor reformatting
23606 * par-ch12.adb: Minor reformatting
23608 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
23610 * prj-strt.adb: Minor reformatting
23612 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
23615 * sem_attr.adb: Minor reformatting
23617 * sem_ch7.adb: Minor reformatting
23619 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
23620 for type in the same unit as the object declaration.
23622 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
23623 static string expressions and not just string literals.
23625 (Set_Warning): Reset restriction warning flag for restriction pragma
23626 Implement pragma Profile_Warnings
23627 Implement pragma Profile (Restricted)
23628 Give obolescent messages for old restrictions and pragmas
23630 * snames.h, snames.ads, snames.adb: Add new entry for pragma
23633 * s-rident.ads: Add declarations for restrictions required by profile
23634 Restricted and profile Ravenscar.
23636 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
23638 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
23639 configuration pragmas.
23641 2004-06-11 Vincent Celier <celier@gnat.com>
23643 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
23644 gnatsym, when symbol policy is Restricted.
23646 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
23647 gnatsym, when symbol policy is Restricted.
23649 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
23650 read the symbol file.
23651 (Finalize): Fail in symbol policy Restricted if a symbol in the original
23652 symbol file is not in the object files. Do not create a new symbol file
23653 when symbol policy is Restricted.
23655 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
23658 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
23660 (Usage): Line for new switch -R
23662 * make.adb (Initialize): When the platform is not VMS, add the
23663 directory where gnatmake is invoked in the front of the path, if
23664 gnatmake is invoked with directory information. Change the Scan_Args
23665 while loop to a for loop.
23666 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
23667 if Depth is equal or greater than the proposed depth, there is nothing
23669 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
23672 * prj.ads: Add new symbol policy Restricted.
23674 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
23675 with the new parameters Check_All_Labels and Case_Location.
23677 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
23678 (Library_Symbol_File needs to be defined).
23680 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
23681 and Case_Location If Check_All_Labels is True, check that all values of
23682 the string type are used, and output warning(s) if they are not.
23684 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
23687 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
23689 * gnat_ugn.texi: Update documentation about the library directory in
23692 * makegpr.adb (Display_Command): In verbose mode, also display the
23693 value of the CPATH env var, when the compiler is gcc.
23694 (Initialize): Change the Scan_Args while loop to a for loop
23695 (Compile_Individual_Sources): Change directory to object directory
23696 before compilations.
23698 * symbols.ads: New symbol policy Restricted.
23700 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
23702 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
23703 is now taken care of internally in the Exception_Propagation package
23704 and does not require clients assistance any more.
23706 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
23707 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
23708 functions. Helpers to maintain a predicate required in the handling of
23709 occurrence transfer between tasks.
23710 This is now handled internally and does not require clients assistance
23711 for the setup/propagate separation anymore.
23712 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
23713 allocation strategy, handle the Setup_And_Not_Propagated predicate and
23716 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
23717 raise_after_setup, now that everything is handled internally within the
23718 setup/propagation engine.
23720 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
23722 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
23723 Add additional conditions for the case of an actual being a simple
23724 name or literal. Improve inlining by preventing the generation
23725 of temporaries with a short lifetime (one use).
23727 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
23730 * einfo.ads: Minor comment updates for Has_Completion and
23731 E_Constant list of flags.
23733 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
23734 and constant redeclarations now set the Has_Completion flag of their
23735 defining identifiers.
23737 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
23738 Inspect_Deferred_Constant_Completion.
23739 Used to detect private deferred constants that have not been completed
23740 either by a constant redeclaration or pragma Import. Emits error message
23741 "constant declaration requires initialization expression".
23743 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
23744 completes a deferred constant.
23746 2004-06-11 Geert Bosch <bosch@gnat.com>
23748 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
23750 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
23751 calculating exponent for scaling denormal numbers.
23752 (Leading_Part): Properly raise Constraint_Error for zero or negative
23754 (Remainder): Properly raise Constraint_Error for zero divisor.
23756 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
23758 * sem_util.adb: Minor reformatting.
23760 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
23761 dereference when accessing the entry parameter record.
23762 (Check_Array_Type): Always check for possible implicit dereference.
23763 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
23764 Abort if a pointer is still present (denoting that an implicit
23765 dereference was left in the tree by the front-end).
23767 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
23768 dereference when accessing the entry parameter record.
23769 (Check_Array_Type): Always check for possible implicit dereference.
23770 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
23771 Abort if a pointer is still present (denoting that an implicit
23772 dereference was left in the tree by the front-end).
23774 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
23776 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
23777 message, like the compiler itself does. Easier to parse the output.
23779 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
23781 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
23782 be base names, and not includes directories.
23784 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
23786 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
23787 so that dependencies are properly taken into account by make.
23789 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
23792 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
23793 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
23795 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
23797 * Makefile.in (install-gnatlib): install target-specific run-time files.
23799 * Make-lang.in: Remove obsolete targets.
23801 2004-06-11 Ed Schonberg <schonberg@gnat.com>
23803 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
23804 specification, to catch misuses of program unit names.
23806 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
23807 superfluous conversions in an instance.
23809 2004-06-11 Ed Schonberg <schonberg@gnat.com>
23812 * sem_ch12.adb (Save_References): If operator node has been folded to
23813 enumeration literal, associated_node must be discarded.
23815 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
23817 * s-stchop-vxworks.adb: Add required pragma Convention to
23818 Task_Descriptor because it is updated by a C function.
23820 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
23823 * Makefile.in: Remove target specific SO_OPT on IRIX
23825 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23827 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
23828 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
23829 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
23830 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
23831 (STMT_STMT, USE_STMT): New statement codes.
23832 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
23833 * ada-tree.h: Reflect above changes.
23834 (struct tree_loop_id): Deleted.
23835 (union lang_tree_node, struct lang_decl, struct lang_type):
23836 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
23837 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
23838 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
23839 (IS_ADA_STMT): New macro.
23840 * decl.c (annotate_decl_with_node): New function.
23841 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
23842 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
23843 Call add_stmt_with_node to do needed assignments.
23844 Add call to update setjmp buffer directly, not via EXPR_STMT.
23845 (maybe_variable): Argment GNAT_NODE deleted.
23846 * gigi.h (maybe_variable): Likewise.
23847 (make_transform, add_stmt_with_node, set_block_for_group): New.
23848 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
23849 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
23850 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
23851 (set_lineno, set_lineno_from_sloc): Likewise.
23852 (record_code_position, insert_code_for): Likewise.
23853 (gnat_poplevel): Now returns void.
23854 (end_subprog_body): Now takes argument.
23855 * misc.c (cgraph.h, tree-inline.h): New includes.
23856 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
23857 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
23858 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
23859 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
23860 (gnat_parse_file): Don't set immediate_size_expand.
23861 Call cgraph functions.
23862 (gnat_expand_expr): Remove most cases.
23863 (record_code_position, insert_code_for): Remove from here.
23864 * trans.c (toplev.h, tree-gimple.h): Now included.
23865 (discard_file_names): Deleted.
23866 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
23867 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
23868 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
23869 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
23870 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
23871 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
23872 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
23873 (set_block_for_group, add_stmt_list): Likewise.
23874 (start_stmt_group): Renamed from start_block_stmt.
23875 (end_stmt_group): Likewise, from end_block_stmt.
23876 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
23877 (gigi): Don't set discard_file_names or call set_lineno.
23878 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
23879 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
23880 Numerous changes throughout to reflect new names and complete
23881 function-at-a-time implementation.
23882 (gnat_expand_stmt): Delete or comment out all cases.
23883 (process_inlined_subprograms): Use add_stmt.
23884 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
23885 call set_lineno; also remove unneeded block handling.
23886 (process_type): Remove unneeded block handling.
23887 (build_unit_elab): Remove calls to deleted functions.
23888 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
23889 (tree-dump.h): Likewise.
23890 (struct ada_binding_level): Add field jmpbuf_decl.
23891 (gnat_define_builtin, gnat_install_builtins): New.
23892 (gnat_gimplify_function, gnat_finalize): Likewise.
23893 (gnat_poplevel): No longer return BLOCK, set it instead.
23894 Remove code dealing with nested functions.
23895 (gnat_init_decl_processing): Also set size_type_node.
23896 Call gnat_install_builtins.
23897 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
23898 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
23899 Remove special-case for "main".
23900 (end_subprog_body): Add arg and rework for tree-ssa.
23901 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
23902 Add case for BOOLEAN_TYPE.
23903 * utils2.c (rtl.h): Now include.
23904 (build_call_raise): Test Debug_Flag_NN directly.
23905 (build_call_alloc_dealloc): Don't use local stack allocation for now.
23906 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
23907 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
23909 2004-06-07 Robert Dewar <dewar@gnat.com>
23911 * a-direct.ads, einfo.ads: Minor comment updates
23913 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
23914 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
23915 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
23916 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
23917 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
23919 * s-interr-sigaction.adb: Remove unreferenced variable
23920 (Attached_Interrupts). Minor reformatting.
23921 Avoid use of variable I (replace by J).
23923 * par-ch10.adb: Fix text of one error message
23925 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
23926 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
23927 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
23928 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
23929 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
23930 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
23931 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
23932 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
23933 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
23934 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
23935 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
23938 2004-06-07 Doug Rupp <rupp@gnat.com>
23940 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
23942 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
23944 * mlib-tgt-vms-ia64.adb: New file.
23946 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
23947 Add mlib-tgt-vms-ia64.adb
23948 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
23949 Move to alpha specific ifeq section.
23950 Add VMS specific versions of symbols.adb
23951 Renaming of 5q vms files.
23953 * 5qsystem.ads renamed to system-vms_64.ads.
23955 2004-06-07 Vincent Celier <celier@gnat.com>
23957 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
23958 explain that when a time of day corresponding to the non existing hour
23959 on the day switching to DST is specified, Split may return a different
23962 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
23965 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
23966 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
23968 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
23970 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
23971 the linking options.
23972 (Build_Library.Check_Libs): On VMS, if there is a dependency on
23973 g-trasym.ads, set Gtrasymobj_Needed to True.
23975 * prj-attr.adb: Add new package Metrics for gnatmetric
23977 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
23978 canonical case to take into account files with upper case characters on
23980 (Ada_Check): Load the reference symbol file name in the name buffer to
23981 check it, not the symbol file name.
23983 * snames.ads, snames.adb: Add standard name Metrics (name of project
23984 file package for gnatmetric).
23986 * vms_conv.ads: Add Metric to Comment_Type
23988 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
23990 * vms_data.ads: Add qualifiers for GNAT METRIC
23992 * makegpr.adb (Link_Executables): Take into account the switches
23993 specified in package Linker of the main project.
23995 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
23997 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
23998 the index of the last element is Units.Last, not Units.Table'Last
23999 (which is usually not a valid index within the actually allocated
24000 storage for the table).
24002 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
24003 determines whether to generate a call to a checked storage pool
24004 Dereference action.
24005 Generate such a call only for a dereference that either comes from
24006 source, or is the result of rewriting a dereference that comes from
24009 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
24011 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
24013 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
24015 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
24016 file level, elaborate the stride for inner dimensions in alignment
24019 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
24022 2004-06-07 Javier Miranda <miranda@gnat.com>
24024 * exp_ch6.adb: Correct wrong modification in previous patch
24026 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
24028 * g-trasym.ads: Corrected comment to properly reflect level of support
24031 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
24033 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
24034 includes case of a variable referenced on the left hand side of an
24035 assignment, therefore remove redundant code. Variables and prefixes of
24036 indexed or selected components are now marked as referenced on left
24037 hand side. Warnings are now properly emitted when variables or prefixes
24038 are assigned but not read.
24040 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
24041 left hand side referenced variables. Private access types do not
24042 produce the warning "variable ... is assigned but never read".
24043 Add also additional checks to left hand side referenced variables.
24044 Aliased, renamed objects and access types do not produce the warning
24045 "variable ... is assigned but never read" since other entities may read
24046 the memory location.
24048 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
24050 * Makefile.in: In the powerpc/vxworks-specific section, restore
24051 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
24054 2004-06-07 Ed Schonberg <schonberg@gnat.com>
24056 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
24057 predefined operators.
24058 Removes spurious type errors from g-trasym-vms.adb.
24060 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
24061 distinct from the operator appearing in the source, call appropriate
24062 routine to insert conversions when needed, and complete resolution of
24064 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
24065 interpretations for rewritten right operand.
24066 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
24067 the other operand is overloaded and the context is a type conversion.
24069 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24071 * ada-tree.def (BLOCK_STMT): Now has two operands.
24074 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
24076 * gigi.h: (gnat_poplevel): Now returns a tree.
24078 * trans.c (end_block_stmt): Add arg; all callers changed.
24079 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
24080 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
24081 (add_stmt): Set TREE_TYPE.
24082 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
24083 (gnat_expand_stmt, case BREAK_STMT): New case.
24085 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
24087 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
24089 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
24090 procedure Set_Stack_Size that is not needed.
24092 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
24094 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
24095 used for gnatpp input file and for the files upon which it depends
24097 2004-06-07 Ben Brosgol <brosgol@gnat.com>
24099 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
24101 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
24103 * gnatvsn.ads: Bump version numbers appropriately.
24104 Add new build type.
24106 2004-06-07 Pascal Obry <obry@gnat.com>
24108 * gnat_ugn.texi: Improve comments about imported names and link names
24109 on Windows. Add a note about the requirement to use -k gnatdll's option
24110 when working with a DLL which has stripped stdcall symbols (no @nn
24113 2004-05-27 Vincent Celier <celier@gnat.com>
24115 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
24116 COMMENTS_LAYOUT=UNTOUCHED
24118 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
24119 symbols-vms-alpha.adb
24121 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
24123 * sem.ads: Clarify documentation on checks suppression.
24125 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
24127 2004-05-27 Ed Schonberg <schonberg@gnat.com>
24129 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
24130 the case of multiple derivations.
24131 (Is_Object_Reference): For a selected component, verify that the prefix
24132 is itself an object and not a value.
24134 * sem_ch12.adb (Same_Instantiated_Constant): New name for
24135 Same_Instantiated_Entity.
24136 (Same_Instantiated_Variable): Subsidiary to
24137 Check_Formal_Package_Instance, to recognize actuals for in-out generic
24138 formals that are obtained from a previous formal package.
24139 (Instantiate_Subprogram_Body): Emit proper error when
24140 generating code and the proper body of a stub is missing.
24142 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
24143 has a universal interpretation, do the disambiguation here.
24145 * exp_ch4.adb (Expand_N_Type_Conversion,
24146 Expand_N_Unchecked_Type_Conversion): Special handling when target type
24147 is Address, to avoid typing anomalies when Address is a visible integer
24150 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
24151 to determine whether a subprogram should not be marked Pure, even when
24152 declared in a pure package.
24154 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
24156 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
24158 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
24159 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
24160 Update the documentation about the Ravenscar profile, following the
24161 definition found in AI-249.
24163 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
24164 setting the Profile (Ravenscar). This must be done in addition to
24165 setting the required restrictions.
24167 * rtsfind.ads: Add the set of operations defined in package
24170 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
24173 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
24175 lang-specs.h: Always require -c or -S and always redirect to /dev/null
24176 if -gnatc or -gnats is passed.
24178 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
24180 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
24181 a significant reference. Warnings are now properly emitted when a
24182 discriminated type is not referenced.
24184 * lib-xref.adb (Generate_Reference): A deferred constant completion,
24185 record representation clause or record type discriminant does not
24186 produce a reference to its corresponding entity. Warnings are now
24187 properly emitted when deferred constants and record types are not
24190 2004-05-27 Geert Bosch <bosch@gnat.com>
24192 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
24193 Fixes ACATS Annex G tests.
24195 2004-05-27 Robert Dewar <dewar@gnat.com>
24197 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
24200 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
24202 * s-interr.adb (Server_Task): Take into account case of early return
24203 from sigwait under e.g. linux.
24205 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
24207 * gnat_ugn.texi: Add description for the new gnatpp options:
24208 -rnb - replace the original source without creating its backup copy
24209 -c0 - do not format comments
24211 2004-05-24 Geert Bosch <bosch@gnat.com>
24213 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
24214 with 192 bits of precision, sufficient to reduce a double-extended
24215 arguments X with a maximum relative error of T'Machine_Epsilon, for X
24216 in -2.0**32 .. 2.0**32.
24217 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
24218 reduction by the processor, which only uses a 68-bit approximation of
24220 (Tan): Always reduce arguments and compute function either using
24221 the processor's fptan instruction, or by dividing sin and cos as needed.
24223 2004-05-24 Doug Rupp <rupp@gnat.com>
24225 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
24226 gcc error on 32/64 bit VMS.
24228 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
24230 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
24231 since this is what we get for stack overflows although not documented
24233 Document the issues which may require adjustments to our signal
24236 2004-05-24 Ed Schonberg <schonberg@gnat.com>
24238 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
24239 enclosing dynamic scope if the instantiation is within a generic unit.
24241 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
24243 * exp_dbug.ads: Fix typo.
24245 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
24246 Rename it to its proper name: system-linux-ia64.ads
24247 (stamp-gnatlib1): Remove extra target specific run time files when
24248 setting up the rts directory.
24250 2004-05-24 Javier Miranda <miranda@gnat.com>
24252 * einfo.ads, einfo.adb (Limited_Views): Removed.
24253 (Limited_View): New attribute that replaces the previous one. It is
24254 now a bona fide package with the limited-view list through the
24255 first_entity and first_private attributes.
24257 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
24258 limited-private-with clause.
24259 (Install_Limited_Withed_Unit): Install the private declarations of a
24260 limited-private-withed package. Update the installation of the shadow
24261 entities according to the new structure (see Build_Limited_Views)
24262 (Build_Limited_Views): Replace the previous implementation of the
24263 limited view by a package entity that references the first shadow
24264 entity plus the first shadow private entity (required for limited-
24265 private-with clause)
24266 (New_Internal_Shadow_Entity): Code cleanup.
24267 (Remove_Limited_With_Clause): Update the implementation to undo the
24268 new work carried out by Build_Limited_Views.
24269 (Build_Chain): Complete documentation.
24270 Replace Ada0Y by Ada 0Y in comments
24273 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
24274 types the level of accessibility depends on the enclosing type
24277 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
24278 entities. Complete documentation of previous change.
24280 2004-05-24 Robert Dewar <dewar@gnat.com>
24282 * namet.adb: Minor reformatting
24283 Avoid use of name I (replace by J)
24284 Minor code restructuring
24286 * sem_ch6.adb: Minor reformatting
24288 * lib-writ.adb: Do not set restriction as active if this is a
24289 Restriction_Warning case.
24291 * sem_prag.adb: Reset restriction warning flag if real pragma
24292 restriction encountered.
24294 * s-htable.adb: Minor reformatting
24295 Change rotate count to 3 in Hash (improves hash for small strings)
24297 * 5qsystem.ads: Add comments for type Address (no literals allowed).
24299 * gnat_ugn.texi: Add new section of documentation "Code Generation
24300 Control", which describes the use of -m switches.
24302 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
24304 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
24305 through the DECL_INITIAL for renamed variables.
24307 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
24309 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
24311 2004-05-19 Joel Brobecker <brobecker@gnat.com>
24313 * exp_dbug.ads: Correct comments concerning handling of overloading,
24314 since we no longer use $ anymore.
24316 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
24318 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
24319 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
24320 with illegal subunits.
24322 2004-05-19 Ed Schonberg <schonberg@gnat.com>
24324 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
24325 body with front-end inlining enabled, check whether an inline pragma
24326 appears immediately after the body and applies to it.
24328 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
24329 enabled and the pragma appears after the body of the subprogram.
24331 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24333 Part of function-at-a-time conversion
24335 * misc.c (adjust_decl_rtl): Deleted.
24336 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
24339 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
24340 (add_decl_stmt, add_stmt, block_has_vars): New functions.
24341 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
24343 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
24344 when making a decl.
24345 (gnat_to_gnu_entity): Likewise.
24346 Use add_stmt to update setjmp buffer.
24347 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
24349 No longer call adjust_decl_rtl.
24350 (DECL_INIT_BY_ASSIGN_P): New macro.
24351 (DECL_STMT_VAR): Likewise.
24353 * trans.c (gigi): Call start_block_stmt to make the outermost
24355 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
24356 Call start_block_stmt and end_block_stmt temporarily.
24357 Use gnat_expand_stmt instead of expand_expr_stmt.
24358 (add_decl_stmt): New function.
24359 (tree_transform): Call it.
24360 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
24361 (end_block_stmt): Set type and NULL_STMT.
24362 (gnat_expand_stmt): Make recursize call instead of calling
24364 (gnat_expand_stmt, case DECL_STMT): New case.
24365 (set_lineno_from_sloc): Do nothing if global.
24366 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
24367 (start_block_stmt, add_stmt, end_block_stmt): New functions.
24368 (build_block_stmt): Call them.
24369 (gnat_to_code): Don't expand NULL_STMT.
24370 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
24372 (tree_transform): Likewise.
24373 (tree_transform, case N_Null_Statement): Return NULL_STMT.
24374 (gnat_expand_stmt, case NULL_STMT): New case.
24375 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
24378 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
24381 * utils.c (create_var_decl): Do not call expand_decl or
24383 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
24384 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
24386 (struct e_stack): Add chain_next to GTY.
24387 (struct binding_level): Deleted.
24388 (struct ada_binding_level): New struct.
24389 (free_block_chain): New.
24390 (global_binding_level, clear_binding_level): Deleted.
24391 (global_bindings_p): Rework to see if no chain.
24392 (kept_level_p, set_block): Deleted.
24393 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
24394 new data structure and work directly on BLOCK node.
24395 (gnat_poplevel): Similarly.
24396 (get_decls): Look at BLOCK_VARS.
24397 (insert_block): Work directly on BLOCK node.
24398 (block_has_var): New function.
24399 (pushdecl): Rework for new binding structures.
24400 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
24402 (build_subprog_body): Likewise.
24403 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
24405 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
24407 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
24408 (DECL_STMT_VAR): Likewise.
24410 2004-05-17 Robert Dewar <dewar@gnat.com>
24412 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
24415 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
24416 of restriction synonyums by using
24417 Restrict.Process_Restriction_Synonyms.
24419 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
24421 * s-restri.ads (Tasking_Allowed): Correct missing comment
24423 * s-rident.ads: Add entries for restriction synonyms
24425 * ali.adb: Fix some problems with badly formatted ALI files that can
24426 result in infinite loops.
24428 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
24429 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
24430 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
24431 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
24432 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
24433 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
24434 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
24435 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
24436 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
24437 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
24438 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
24439 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
24440 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
24441 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
24442 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
24443 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
24444 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
24445 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
24446 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
24447 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
24448 to Task_Id (minor cleanup).
24450 2004-05-17 Vincent Celier <celier@gnat.com>
24452 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
24453 directory separator.
24455 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
24456 project being extended, if Languages is not declared in extending
24459 2004-05-17 Javier Miranda <miranda@gnat.com>
24461 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
24462 limited view of a visible sibling.
24464 2004-05-14 Robert Dewar <dewar@gnat.com>
24466 * gnat_ugn.texi: Minor change to -gnatS documentation
24468 * sprint.adb: Remove some instances of Assert (False) and for this
24469 purpose replace them by output of a ??? string.
24471 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
24474 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
24475 flag processing. This was suppressing required dependencies in
24476 No_Run_Time mode and is not needed since the binder does not generate
24477 references for things in libgnat anyway.
24479 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
24482 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
24484 * gnat_ugn.texi: Document AIX-specific issue with initialization of
24487 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
24488 action for the case of an actual parameter in an init proc call.
24490 2004-05-14 Ed Schonberg <schonberg@gnat.com>
24492 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
24493 subtype, check visible entities in base type.
24495 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
24496 actions if the object is a renaming.
24498 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
24499 Check_Formal_Package_Instance, to determine more precisely when the
24500 formal and the actual denote the same entity.
24502 2004-05-14 Javier Miranda <miranda@gnat.com>
24504 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
24506 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
24507 corresponding to a private_with must be removed from visibility; it
24508 will be made visible later, just before we analyze the private part of
24510 (Check_Private_Child_Unit): Allow private_with clauses in public
24512 (Install_Siblings): Make visible the private entities of private-withed
24514 (Install_Withed_Unit): Do not install the private withed unit if we
24515 are compiling a package declaration and the Private_With_OK flag was
24516 not set by the caller. These declarations will be installed later,
24517 just before we analyze the private part of the package.
24519 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
24520 during the evaluation of the expression that initializes the object,
24521 decorate it with the expected type to avoid cascade errors.
24524 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
24525 subprogram we have to install the private_with clauses after its
24526 specification has been analyzed (as documented in AI-262.TXT).
24528 * sem_ch8.adb (Has_Private_With): New function. Determines if the
24529 current compilation unit has a private with on a given entity.
24530 (Find_Direct_Name): Detect the Beaujolais problem described in
24533 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
24534 provides the functionality of the function Is_Ancestor that was
24535 previously available in sem_ch10. It has been renamed to avoid
24538 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
24540 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24542 * utils.c (build_vms_descriptor): Use SImode pointers.
24544 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
24546 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
24548 2004-05-14 GNAT Script <nobody@gnat.com>
24550 * Make-lang.in: Makefile automatically updated
24552 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
24554 Renaming of target specific files for clarity
24556 * Makefile.in: Rename GNAT target specific files.
24558 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
24559 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
24560 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
24561 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
24562 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
24563 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
24564 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
24565 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
24566 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
24567 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
24568 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
24569 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
24570 51osinte.adb, 51osinte.ads, 51system.ads,
24571 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
24572 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
24573 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
24574 56tpopsp.adb, 57system.ads, 58system.ads,
24575 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
24576 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
24577 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
24578 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
24579 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
24580 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
24581 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
24582 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
24583 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
24584 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
24585 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
24586 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
24587 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
24588 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
24589 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
24590 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
24591 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
24592 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
24593 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
24594 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
24595 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
24596 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
24597 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
24598 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
24599 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
24600 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
24601 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
24602 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
24603 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
24604 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
24605 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
24606 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
24607 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
24608 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
24609 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
24610 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
24611 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
24612 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
24613 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
24614 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
24616 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
24617 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
24618 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
24619 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
24620 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
24621 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
24622 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
24623 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
24624 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
24625 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
24626 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
24627 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
24628 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
24629 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
24630 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
24631 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
24632 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
24633 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
24634 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
24635 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
24636 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
24637 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
24638 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
24639 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
24640 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
24641 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
24642 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
24643 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
24644 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
24645 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
24646 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
24647 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
24648 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
24649 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
24650 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
24651 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
24652 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
24653 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
24654 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
24655 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
24656 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
24657 s-osinte-vms.ads, s-osinte-vxworks.adb,
24658 s-osinte-vxworks.ads, s-osprim-mingw.adb,
24659 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
24660 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
24661 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
24662 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
24663 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
24664 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
24665 s-stchop-vxworks.adb, s-taprop-dummy.adb,
24666 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
24667 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
24668 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
24669 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
24670 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
24671 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
24672 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
24673 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
24674 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
24675 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
24676 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
24677 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
24678 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
24679 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
24680 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
24681 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
24682 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
24683 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
24684 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
24685 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
24686 system-irix-o32.ads, system-linux-x86_64.ads,
24687 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
24688 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
24689 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
24690 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
24691 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
24692 system-vxworks-mips.ads, system-vxworks-ppc.ads,
24693 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
24696 2004-05-13 Zack Weinberg <zack@codesourcery.com>
24698 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
24700 2004-05-13 Diego Novillo <dnovillo@redhat.com>
24702 Merge from tree-ssa-20020619-branch.
24704 * config-lang.in (boot_language, build_by_default): Set
24706 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
24707 (max_size): Add static chain op for call_expr.
24709 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
24712 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
24714 2004-05-11 Roger Sayle <roger@eyesopen.com>
24716 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
24719 2004-05-10 Doug Rupp <rupp@gnat.com>
24721 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
24724 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
24726 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
24728 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
24729 Fixes undefined symbols in IA64 gnatlib.
24731 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
24733 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
24734 Short_Address). This will be moved to system.auxdec.
24736 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
24738 * sem_util.adb: Replace test for presence of a node that is always
24739 present with a call to Discard_Node.
24741 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
24742 Analyze on the library unit node after generation of distribution stub
24743 constructs. The call was a no-op because Unit_Node has already been
24744 Analyzed, and the tree fragments for the distribution stubs are
24745 analyzed as they are inserted in Exp_Dist.
24746 Update comment regarding to distribution stubs to reflect that we
24747 do not generate stub in separate files anymore.
24749 * einfo.ads: Clarify the fact that a tagged private type has the
24750 E_Record_Type_With_Private Ekind.
24752 * erroutc.adb: Minor reformatting
24754 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
24755 values if line length is increased using -gnatyM (noticed during code
24758 * eval_fat.adb: Minor reformatting
24759 Put spaces around exponentiation operator
24761 2004-05-10 Ed Schonberg <schonberg@gnat.com>
24764 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
24765 has been rewritten as an explicit dereference, retrieve type of
24766 original node to check for possibly unconstrained record type.
24768 2004-05-10 Ed Schonberg <schonberg@gnat.com>
24770 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
24771 overriding, use the operation of the parent unconditionally.
24773 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
24774 operation when either operand is a literal, to avoid further
24777 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
24778 overridden by a previous explicit declaration, mark the previous entity
24781 * sem_disp.adb (Check_Dispatching_Operation): New predicate
24782 Is_Visibly_Controlled, to determine whether a declaration of a
24783 primitive control operation for a derived type overrides an inherited
24784 one. Add warning if the explicit declaration does not override.
24786 2004-05-10 Vincent Celier <celier@gnat.com>
24788 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
24789 some cases when the sources are no longer present.
24791 * make.adb (Collect_Arguments): Fail if an external source, not part
24792 of any project need to be compiled, when switch -x has not been
24795 * makeusg.adb: Document new switch -x
24797 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
24798 defaulted to False.
24800 * switch-m.adb (Scan_Make_Switches): New switch -x
24802 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
24803 gnatmake switch -x.
24805 * gnat_ugn.texi: Document new gnatmake switch -x
24807 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
24809 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
24811 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
24812 (process_attributes): Likewise.
24814 2004-05-10 Joel Brobecker <brobecker@gnat.com>
24816 * s-inmaop.ads: Fix spelling mistake in one of the comments.
24818 2004-05-10 Robert Dewar <dewar@gnat.com>
24820 * gnat_ugn.texi: Document that for config pragma files, the maximum
24821 line length is always 32767.
24823 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
24824 literals is now allowed.
24826 * gnat-style.texi: Remove statement about splitting long lines before
24827 an operator rather than after, since we do not follow this rule at all.
24828 Clarify rule (really lack of rule) for spaces around exponentiation
24830 * sem_elim.adb: Allow concatenation of string literals as well as a
24831 single string literal for pragma arguments.
24833 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
24835 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
24836 written for append case.
24838 * frontend.adb: Changes to avoid checking max line length in config
24841 * g-os_lib.ads: Minor reformatting
24843 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
24844 wrong in any case. Instead use standard value. Noticed during code
24847 * opt.ads (Max_Line_Length): New field, used to implement removal of
24848 limitation on length of lines when scanning config pragma files.
24850 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
24851 makeutl.ads, makeutl.adb: Minor reformatting
24853 * scn.adb: Do not check line length while scanning config pragma files
24854 Do not check line length while scanning out license information
24856 * scng.adb: Changes to avoid line length checks while parsing config
24859 2004-05-10 GNAT Script <nobody@gnat.com>
24861 * Make-lang.in: Makefile automatically updated
24863 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
24865 * osint.adb (Find_Program_Name): Fix handling of VMS version
24868 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
24870 * g-os_lib.ads (Invalid_Time): New constant
24872 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
24873 return OS_Time instead of time_t to match what is imported by Ada.
24874 Now return -1 if the file doesn't exist, instead of a random value
24876 2004-05-05 Robert Dewar <dewar@gnat.com>
24878 * usage.adb: Add line for -gnatR?s switch
24880 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
24882 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
24883 and for Match (Data_First, Data_last)
24885 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
24886 written when we are dealing with multi-unit files.
24888 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
24890 * Makefile.in: Remove unused targets and variables.
24892 2004-05-05 Vincent Celier <celier@gnat.com>
24894 * switch-m.adb: New gnatmake switch -eI
24896 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
24897 of new gnatmake switch -eInnn.
24899 * makegpr.adb: Take into account new parameters Index and Src_Index in
24902 * clean.adb: Implement support for multi-unit sources, including new
24905 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
24908 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
24909 (Extract_From_Q): New out parameter Index
24910 (Mark, Is_Marked): Subprograms moved to Makeutl
24911 (Switches_Of): New parameter Source_Index
24912 (Add_Switch): New parameter Index
24913 (Check): New parameter Source_Index
24914 (Collect_Arguments): New parameter Source_Index
24915 (Collect_Arguments_And_Compile): New parameter Source_Index
24916 (Compile): New parameter Source_Index
24917 Put subprograms in alphabetical order
24918 Add support for multi-source sources, including in project files.
24920 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
24921 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
24924 * makeusg.adb: New gnatmake switch -eInnn
24926 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
24929 * opt.ads (Main_Index): New variable, defaulted to 0.
24931 * osint.ads, osinte.adb (Add_File): New parameter Index
24932 (Current_Source_Index): New function
24934 * prj.adb: Take into account new components Index and Src_Index
24936 * prj.ads (String_Element): New component Index
24937 (Variable_Value): New component Index
24938 (Array_Element): New component Src_Index
24940 * prj-attr.adb: Indicate that optional index may be specified for
24941 attributes Main, Executable, Spec, Body and some of Switches.
24943 * prj-attr.ads (Attribute_Kind): New values for optional indexes
24944 (Attribute_Record): New component Optional_Index
24946 * prj-com.ads (File_Name_Data): New component Index
24948 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
24950 * prj-env.adb (Put): Output optional index
24952 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
24953 attributes Spec and Body.
24955 * prj-nmsc.adb: Process optional indexes
24957 * prj-pp.adb: Ouput "at" for optional indexes
24959 * prj-proc.adb: Take into account optional indexes
24961 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
24962 Optional_Index. For string literal,
24963 process optional index when Optional_Index is True.
24964 (Parse_Expresion): New Boolean parameter Optional_Index
24966 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
24967 (Set_Source_Index_Of): New procedure
24969 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
24972 * prj-util.ads (Executable_Of): New parameter Index
24973 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
24974 New parameter Src_Index, defaulted to 0.
24976 2004-05-05 Ed Schonberg <schonberg@gnat.com>
24979 * sem_ch3.adb (Access_Definition): If this is an access parameter
24980 whose designated type is imported through a limited_with clause, do
24981 not add the enclosing subprogram to the list of private dependents of
24984 2004-05-05 Ed Schonberg <schonberg@gnat.com>
24987 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
24988 a limited_with clause, and the other is its non-limited view.
24990 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
24992 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
24994 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
24995 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
24996 Stand.Boolean_Literals to produce references to entities
24997 Standard_False and Standard_True from compile-time computed boolean
25000 * stand.ads (Boolean_Literals): New variable, provides the entity
25001 values for False and True, for use by the expander.
25003 2004-05-05 Doug Rupp <rupp@gnat.com>
25005 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
25006 5vinmaop.adb: Unchecked convert Short_Address vice Address
25008 * adaint.c, raise.c: Caste CRTL function return value
25009 to avoid gcc error on 32/64 bit IVMS.
25011 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
25014 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
25016 * 5qsystem.ads (Address): Declare as Long_Integer
25017 (Short_Address): Declare as 32 bit subtype of Address
25018 Declare abstract address operations to avoid gratuitous ambiguities.
25020 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
25022 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
25023 instead of the old Boolean_Entry_Barriers.
25024 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
25026 2004-05-05 GNAT Script <nobody@gnat.com>
25028 * Make-lang.in: Makefile automatically updated
25030 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
25032 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
25034 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
25037 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
25038 alone. Replacing object references by literals is inappropriate in a
25039 so low level context.
25041 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
25043 * a-exexpr.adb: Add comments
25045 2004-05-03 Joel Brobecker <brobecker@gnat.com>
25047 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
25048 declare the Ancestor_Tags array in Type_Specific_Data with a small size
25049 without risking a bounds check error when accessing one of its
25051 (Type_Specific_Data): Define Ancestor_Tags as a small array.
25052 This prevents us from hitting a limitation during the debug info
25053 generation when using stabs.
25055 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
25057 This prevents us from hitting a limitation during the debug info
25058 generation when using stabs.
25060 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
25062 lang-specs.h: Remove -gnatz* from specs.
25064 2004-05-03 Vincent Celier <celier@gnat.com>
25066 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
25068 * Make-lang.in, Makefile.in: Add gprmake
25070 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
25072 * sem_aggr.adb: Fix typo in comment.
25074 2004-05-03 Robert Dewar <dewar@gnat.com>
25076 * make.adb: Minor reformatting
25078 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
25080 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
25081 so that it works when address is not a private type.
25083 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
25084 properly with rewritten unchecked conversions. This prevents
25085 order-of-elaboration issues that can otherwise arise.
25086 (Minimum_Size): Don't check size of access types under VMS
25088 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
25089 interpretations of integer literals as type System.Address.
25091 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
25092 (Is_Descendent_Of): New function
25094 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
25096 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
25097 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
25098 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
25100 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
25101 of the old Max_Entry_Queue_Depth.
25103 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
25104 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
25105 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
25107 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
25108 New entry for proper handling of Max_Entry_Queue_Depth.
25109 New entry for proper handling of No_Dynamic_Interrupts.
25111 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
25112 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
25113 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
25114 the GNAT specific restriction Max_Entry_Queue_Depth.
25115 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
25116 the GNAT specific restriction No_Dynamic_Interrupts.
25118 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
25119 instead of the old Boolean_Entry_Barriers.
25120 Use the new restriction No_Dynamic_Attachment instead of the old
25121 No_Dynamic_Interrupts.
25123 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
25124 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
25126 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
25127 of the old Max_Entry_Queue_Depth.
25129 2004-05-03 GNAT Script <nobody@gnat.com>
25131 * Make-lang.in: Makefile automatically updated
25133 2004-04-29 Ed Schonberg <schonberg@gnat.com>
25135 * checks.adb (Enable_Range_Check): If the prefix of an index component
25136 is an access to an unconstrained array, perform check unconditionally.
25138 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25140 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
25143 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
25145 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
25146 alternate stack setting. There was no support for the tasking cases
25147 and the changes eventually caused a number of side-effect failures in
25148 the non-tasking case too.
25150 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
25152 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
25155 2004-04-29 Vincent Celier <celier@gnat.com>
25157 * make.adb (Gnatmake): Increase max size of argument array for
25158 gnatbind for the potential addition of -F.
25159 If there are Stand-Alone Library projects, invoke gnatbind with -F to
25160 be sure that elaboration flags will be checked.
25162 * switch-c.adb: Correct call to Scan_Pos for -gnateI
25164 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
25166 * sem_warn.adb (Check_References): Move '<access-variable> may be
25167 null' warning out of under Warn_On_No_Value_Assigned.
25169 2004-04-29 Ed Falis <falis@gnat.com>
25171 * gnat_ugn.texi: Fixed texi error
25173 2004-04-29 Robert Dewar <dewar@gnat.com>
25175 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
25176 abstract operations if they come from predefined files.
25178 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
25181 * s-addope.adb: Correct obvious error in mod function
25183 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
25185 * Makefile.in: Add target pairs for powerpc darwin*
25188 * a-intnam-darwin.ads, s-osinte-darwin.adb,
25189 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
25191 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
25193 * Makefile.in: Add target macro definitions for s390*-linux*.
25194 * system-linux-s390.ads: New file.
25195 * system-linux-s390x.ads: New file.
25197 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
25199 * gnat_ugn.texi: Correct argument to @setfilename.
25201 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
25203 * a-exexpr.adb (Unwind_Word): New data type.
25204 (Unwind_Exception): Use it as type of Private1 and Private2.
25206 * raise.c (db_action_for): Fix debug printf.
25208 2004-04-27 Ed Schonberg <schonberg@gnat.com>
25210 * a-wtmoio.ads: Formal type must be a modular type, not a signed
25213 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25215 * decl.c (gnat_to_gnu_entity, case object): Call
25216 __builtin_update_setjmp_buf.
25218 * gigi.h (update_setjmp_buf): Deleted.
25219 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
25221 * misc.c: (update_setjmp_buf): Deleted.
25223 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
25224 around block of RTL.
25226 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
25228 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
25230 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
25231 subprogram for which no pragma All_Calls_Remote applies, store the
25232 address of the real subprogram in the underlying record type, so local
25233 dereferences do not go through the PCS.
25235 2004-04-26 Robert Dewar <dewar@gnat.com>
25237 * i-c.ads: Add some type qualifications to avoid ambiguities when
25238 compiling with s-auxdec.ads and a non-private address type.
25240 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
25242 * Makefile.rtl: Fix error in previous check-in:
25243 Add s-addope.o to non tasking object list (rather than tasking object
25246 2004-04-26 Javier Miranda <miranda@gnat.com>
25248 * sem_aggr.adb: Fix typo in comments
25249 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
25250 Required to check the null-exclusion attribute.
25252 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
25253 case of anonymous access types in record and array components. For a
25254 component definition the level is the same of the enclosing composite
25257 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
25258 that are anonymous access types the level of accessibility depends on
25259 the enclosing type declaration. In order to have this information, set
25260 the scope of the anonymous access type to the enclosing record type
25262 (Array_Type_Declaration): In case of components that are anonymous
25263 access types the level of accessibility depends on the enclosing type
25264 declaration. In order to have this information, set the scope of the
25265 anonymous access type to the enclosing array type declaration.
25267 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
25270 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
25271 renaming of anonymous access-to-constant types allowed if and only if
25272 the renamed object is access-to-constant.
25274 * sem_util.adb (Type_Access_Level): In case of anonymous access types
25275 that are component_definition or discriminants of a nonlimited type,
25276 the level is the same as that of the enclosing component type.
25278 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
25280 * sem_elim.adb: Some minor code reorganization from code reading. Fix
25281 misprint in the function name (File_Name_Match).
25283 2004-04-23 Laurent GUERBY <laurent@guerby.net>
25285 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
25288 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25290 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
25292 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
25294 * adaint.c (__gnat_try_lock): No longer requires that the parent
25295 directory be writable, the directory itself is enough.
25296 (gnat_is_absolute_path): Change profile, so that the call from
25297 GNAT.OS_Lib can be made more efficient.
25299 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
25300 from GNAT.OS_Lib can be made more efficient.
25302 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
25303 one copy of the file name. Found by code reading.
25305 2004-04-23 Vincent Celier <celier@gnat.com>
25307 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
25308 Correct documentation on gnatmake switches transmitted to the compiler
25310 * ali.ads: Minor comment fix
25312 2004-04-23 Javier Miranda <miranda@gnat.com>
25314 * sem_ch6.adb: (Confirming Types): Code cleanup
25316 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
25317 subprogram types: E_Anonymous_Access_Subprogram_Type and
25318 E_Anonymous_Access_Protected_Subprogram_Type.
25320 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
25322 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
25323 whether a pragma All_Calls_Remote applies to the subprogram on which
25325 No functional change is introduced by this revision; the new parameter
25326 will be used to allow calls to local RCI subprograms to be optimized
25327 to not use the PCS in the case where no pragma All_Calls_Remote applies,
25328 as is already done in the PolyORB implementation of the DSA.
25330 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
25331 whether a pragma All_Calls_Remote applies to the subprogram on which
25333 No functional change is introduced by this revision; the new parameter
25334 will be used to allow calls to local RCI subprograms to be optimized
25335 to not use the PCS in the case where no pragma All_Calls_Remote applies,
25336 as is already done in the PolyORB implementation of the DSA.
25338 2004-04-23 Robert Dewar <dewar@gnat.com>
25340 * Makefile.rtl: Add entry for s-addope.o in run time library list
25341 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
25342 * s-addope.ads, s-addope.adb: New files.
25344 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
25345 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
25346 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
25347 System.Address to be non-private and signed.
25349 * sem_elim.adb: Minor reformatting (fairly extensive)
25350 Some minor code reorganization from code reading
25351 Add a couple of ??? comments
25353 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25355 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
25356 (tree_transform, case N_If_Statement): Remove non-determinism.
25358 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
25360 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
25362 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
25363 Eliminate' section.
25365 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
25366 no longer used as a parameter name for Eliminate pragma).
25368 2004-04-22 Laurent GUERBY <laurent@guerby.net>
25370 PR optimization/14984
25371 PR optimization/14985
25372 * trans.c (gigi): Fix non determinism leading to bootstrap
25373 comparison failures.
25375 2004-04-21 Pascal Obry <obry@gnat.com>
25377 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
25378 passed to spawnvp() to properly handle program pathname with spaces on
25381 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
25383 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
25384 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
25385 unlocked in case of exceptions.
25387 2004-04-21 Joel Brobecker <brobecker@gnat.com>
25389 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
25390 This function does not exist anymore.
25392 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
25394 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
25396 * link.c: Move variables to the __gnat name space.
25398 * Makefile.in: list link.o explicitly when needed.
25400 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
25402 2004-04-21 Javier Miranda <miranda@gnat.com>
25404 * einfo.adb (Original_Access_Type): New subprogram
25405 (Set_Original_Access_Type): New subprogram
25406 (Write_Field21_Name): Write the name of the new field
25408 * einfo.ads (Original_Access_Type): New field present in access to
25410 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
25411 E_Anonymous_Access_Protected_Subprogram_Type.
25413 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
25416 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
25417 to anonymous access to subprogram types.
25419 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
25420 to subprogram types.
25422 * sem_ch3.adb (Access_Definition): Complete decoration of entities
25423 corresponding to anonymous access to subprogram types.
25424 (Analyze_Component_Declaration): Add new actual to the call to
25425 subprogram replace_anonymous_access_to_protected_subprogram.
25426 (Array_Type_Declaration): Add new actual to the call to subprogram
25427 replace_anonymous_access_to_protected_subprogram.
25428 (Process_Discriminants): Add new actual to the call to subprogram
25429 replace_anonymous_access_to_protected_subprogram.
25430 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
25432 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
25435 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
25436 access to subprogram types.
25438 * sem_util.adb (Has_Declarations): Addition of package_specification
25441 2004-04-21 Ed Schonberg <schonberg@gnat.com>
25443 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
25444 inlined flags to renamed entity only if in current unit.
25446 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
25448 * s-parint.ads: Add DSA implementation marker.
25450 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
25451 value of System.Partition_Interface.DSA_Implementation to determine
25452 what version of the distributed systems annex is available (no
25453 implementation, GLADE, or PolyORB).
25455 2004-04-21 Joel Brobecker <brobecker@gnat.com>
25457 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
25459 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25461 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
25462 with new type if alias sets differ.
25463 Fixes ACATS c41103b.
25465 2004-04-21 Vincent Celier <celier@gnat.com>
25467 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
25468 Add array Lang_Args for the language specific compiling argument
25471 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
25473 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
25475 * gnat_rm.texi: Update the descripton of the Eliminate pragma
25476 according to the recent changes in the format of the parameters of the
25477 pragma (replacing Homonym_Number with Source_Location).
25479 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
25481 * 5isystem.ads: Removed, unused.
25483 * gnat_rm.texi: Redo 1.13 change.
25485 2004-04-19 Robert Dewar <dewar@gnat.com>
25487 * s-stoele.ads: Clean up definition of Storage_Offset (the new
25488 definition is cleaner, avoids the kludge of explicit Standard operator
25489 references, and also is consistent with a visible System.Address with
25490 no visible operations.
25492 * s-geveop.adb: Add declarations to avoid assumption of visible
25493 operations on type System.Address (since these might not be available
25494 if Address is a non-private type for which the operations
25495 are made abstract).
25497 * sem_eval.adb: Minor reformatting
25499 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
25500 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
25501 reformatting (new function spec format).
25503 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
25504 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
25505 s-caun64.adb: Add declarations to avoid assumption of visible
25506 operations on type System.Address (since these might not be available
25507 if Address is a non-private type for which the operations are made
25510 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
25512 * exp_intr.adb: Minor comment update
25514 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
25516 * 5omastop.adb: Add declarations to avoid assumption of visible
25517 operations on type System.Address (since these might not be available
25518 if Address is a non-private type for which the operations
25519 are made abstract).
25521 2004-04-19 Vincent Celier <celier@gnat.com>
25523 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
25525 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
25528 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
25530 Call Check with Process_Languages.
25531 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
25532 with Process_Languages.
25533 (Recursive_Check): New Boolean parameter Process_Languages. Call
25534 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
25537 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
25539 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
25540 parameter Ada_Main, defaulted to True.
25541 Check for Ada specific characteristics only when Ada_Main is True.
25543 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
25545 * prj.adb: (Project_Empty): Add new Project_Data components.
25547 * prj.ads: New types and tables for non Ada languages.
25548 (Project_Data): New components Languages, Impl_Suffixes,
25549 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
25550 Include_Path, Include_Data_Set.
25552 * prj-env.ads, prj-env.adb: Minor reformatting
25554 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
25555 Put subprograms in alphabetical order
25557 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
25558 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
25561 * mlib-prj.adb: Back out modification in last version, as they are
25563 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
25565 * make.adb: (Mains): Moved to package Makeutl
25566 (Linker_Opts): Moved to package Makeutl
25567 (Is_External_Assignment): Moved to package Makeutl
25568 (Test_If_Relative_Path): Moved to package Makeutl
25569 (Gnatmake): Move sorting of linker options to function
25570 Makeutl.Linker_Options_Switches.
25572 * makeutl.ads, makeutl.adb: New files.
25574 * Makefile.in: Add makeutl.o to the object files for gnatmake
25576 * makeusg.adb: Add line for new switch -eL.
25578 * gnatls.adb (Image): New function.
25579 (Output_Unit): If in verbose mode, output the list of restrictions
25580 specified by pragmas Restrictions.
25582 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
25585 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
25586 needed, to put it in the range 1970 (included) - 2026 (excluded).
25587 (Time_Of): Do not shift Unix_Min_Year (1970).
25588 Shift the date by multiple of 56 years, if needed, to put it in the
25589 range 1970 (included) - 2026 (excluded).
25591 * adaint.h, adaint.c (__gnat_set_executable): New function.
25593 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25595 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
25596 and pop GC context.
25597 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
25598 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
25599 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
25600 (tree_transform, case N_Code_Statement): Likewise.
25601 (gnat_expand_stmt, case LABEL_STMT): Don't look at
25602 LABEL_STMT_FIRST_IN_EH.
25603 (gnat_expand_stmt, case ASM_STMT): New case.
25605 * utils2.c (build_unary_op): Properly set TREE_READONLY of
25606 UNCONSTRAINED_ARRAY_REF.
25608 * utils.c (poplevel): Temporarily push/pop GC context around inline
25609 function expansion.
25611 * decl.c (maybe_variable): Properly set TREE_READONLY of
25612 UNCONSTRAINED_ARRAY_REF.
25613 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
25615 * ada-tree.def: (ASM_STMT): New.
25617 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
25618 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
25619 ASM_STMT_INPUT): New.
25620 (ASM_STMT_CLOBBER): Likewise.
25622 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
25624 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
25625 general rcheck mechanism to raise Program_Error for E.4(18), instead
25626 of a custom raiser in System.Partition_Interface.
25627 Part of general cleanup work before PolyORB integration.
25629 * snames.ads, snames.adb: Add new runtime library entities and names
25632 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
25634 (Build_Subprogram_Id): New subprogram provided by exp_dist
25635 Code reorganisation in preparation for PolyORB integration.
25637 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
25639 (Build_Subprogram_Id): New subprogram provided by exp_dist
25641 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
25642 actual parameter types for call to dereference of an
25643 access-to-subprogram type.
25645 * rtsfind.ads: Add new runtime library entities and names for PolyORB
25648 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
25649 instead, which has the same behaviour here since we never pass it a
25652 * link.c (run_path_option, Solaris case): Use -Wl, as for other
25655 * Makefile.in: adjust object file lists for gnatlink and gnatmake
25656 to account for new dependency upon Interfaces.C.Strings + link.o
25657 For x86 FreeBSD, use 86numaux.
25659 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
25660 from Mlib.Tgt to Mlib.
25662 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
25663 target-independent.
25665 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
25666 target-specific versions of this subprogram, now implemented as a
25667 target-independent function in Mlib.
25669 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
25670 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
25671 (Linker_Library_Path_Option): Remove target-specific versions of this
25672 subprogram, now implemented as a target-independent function in Mlib.
25674 * atree.adb: (Allocate_Initialize_Node): New subprogram.
25675 Factors out node table slots allocation.
25676 (Fix_Parents): New subprogram.
25677 Encapsulate the pattern of fixing up parent pointers for syntactic
25678 children of a rewritten node.
25679 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
25680 (Rewrite): Use New_Copy when creating saved copy of original node.
25681 (Replace): Use Copy_Node to copy nodes.
25683 2004-04-19 Javier Miranda <miranda@gnat.com>
25685 * sprint.adb (Sprint_Node_Actual): Give support to the new
25686 Access_To_Subprogram node available in Access_Definition nodes. In
25687 addition, give support to the AI-231 node fields: null-exclusion,
25688 all-present, constant-present.
25690 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
25692 * sinfo.ads, sinfo.adb:
25693 New field Access_To_Subprogram_Definition in Access_Definition nodes
25695 * sem_ch6.adb (Process_Formals): Move here the code that creates and
25696 decorates internal subtype declaration corresponding to the
25697 null-excluding formal. This code was previously in Set_Actual_Subtypes.
25698 In addition, carry out some code cleanup on this code. In case of
25699 access to protected subprogram call
25700 Replace_Anonymous_Access_To_Protected_Subprogram.
25701 (Set_Actual_Subtypes): Code cleanup.
25703 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
25704 Find_Type in case of anonymous access renamings. Add warning in case of
25705 null-excluding attribute used in anonymous access renaming.
25707 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
25710 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
25712 (Access_Definition): In case of anonymous access to subprograms call
25713 the corresponding semantic routine to decorate the node.
25714 (Access_Subprogram_Declaration): Addition of some comments indicating
25715 some code that probably should be added here. Detected by comparison
25716 with the access_definition subprogram.
25717 (Analyze_Component_Declaration): In case of access to protected
25718 subprogram call Replace_Anonymous_Access_To_Protected.
25719 (Array_Type_Declaration): In case of access to protected subprogram call
25720 Replace_Anonymous_Access_To_Protected_Subprogram.
25721 (Process_Discriminants): In case of access to protected subprogram call
25722 Replace_Anonymous_Access_To_Protected_Subprogram.
25724 * par.adb (P_Access_Definition): New formal that indicates if the
25725 null-exclusion part was present.
25726 (P_Access_Type_Definition): New formal that indicates if the caller has
25727 already parsed the null-excluding part.
25729 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
25730 (P_Identifier_Declarations): Code cleanup and give support to renamings
25731 of anonymous access to subprogram types.
25732 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
25733 (P_Array_Type_Definition): Give support to AI-254.
25734 (P_Component_Items): Give support to AI-254.
25735 (P_Access_Definition): New formal that indicates if the header was
25736 already parsed by the caller.
25737 (P_Access_Type_Definition): New formal that indicates if the caller has
25738 already parsed the null-excluding part.
25740 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
25741 call to P_Access_Definition.
25743 2004-04-19 Geert Bosch <bosch@gnat.com>
25745 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
25746 the delicate semantics of floating-point to integer conversion.
25747 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
25749 * eval_fat.adb (Machine_Mantissa): Moved to spec.
25750 (Machine_Radix): New function.
25752 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
25754 (Machine_Radix): New function also for use in conversion checks.
25756 2004-04-19 Ed Schonberg <schonberg@gnat.com>
25758 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
25760 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
25761 to decorate the access-to-protected subprogram and the equivalent type.
25763 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
25764 to anonymous access to subprogram types.
25766 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
25767 constant-folding, for legality checks in contexts that require an RM
25770 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
25771 temporary but stack checking is not enabled, increment serial number
25772 to so that symbol generation is consistent with and without stack
25775 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
25776 independent on whether stack checking is enabled, caller must check
25777 the corresponding flag.
25779 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
25781 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
25782 parent if it has discriminants.
25783 (Build_Derived_Private_Type): Constructed full view does
25784 not come from source.
25785 (Process_Discriminants): Default discriminants on a tagged type are
25786 legal if this is the internal completion of a private untagged
25789 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
25790 no constraint checks, because it corresponds to an existing object.
25792 * sem_prag.adb (Process_Convention): Pragma applies
25793 only to subprograms in the same declarative part, i.e. the same unit,
25794 not the same scope.
25796 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
25797 ignore type mismatch on a numeric conversion if expression comes from
25800 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
25802 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
25803 Homonym_Number parameter, add processing for Source_Location parameter
25805 (Check_Eliminated): Remove the check for homonym numbers, add the check
25806 for source location traces.
25808 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
25809 with Arg_Source_Location corresponding to the changes in the format of
25812 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
25813 Eliminate pragma corresponding to the changes in the format of the
25814 pragma: Homonym_Number is replaced with Source_Location, two ways of
25815 distinguishing homonyms are mutially-exclusive.
25817 2004-04-19 Joel Brobecker <brobecker@gnat.com>
25819 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
25821 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
25822 No_Dollar_In_Label, no longer necessary, as it is always True.
25823 (Strip_Suffixes): Likewise.
25825 2004-04-19 Gary Dismukes <dismukes@gnat.com>
25827 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
25828 modulus for compatibility with size clause on targets with 16-bit
25831 * layout.adb (Discrimify): In the case of private types, set Vtyp to
25832 full type to fix type mismatches on calls to size functions for
25833 discriminant-dependent array components.
25835 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
25837 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
25840 2004-04-19 Pascal Obry <obry@gnat.com>
25842 * mdll-utl.adb (Locate): New version is idempotent.
25844 2004-04-17 Laurent Guerby <laurent@guerby.net>
25846 PR ada/14988 (partial)
25847 * impunit.adb: Fix typo.
25849 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
25851 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
25852 and install-rts-cert targets. Remove all gnatlib and gnattools
25853 targets and all other rts-* targets (moved to libada). Remove (now)
25854 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
25855 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
25857 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25859 * trans.c (tree_transform): Shortcut returning error_mark_node for
25860 statements in annotate_only_mode.
25861 (tree_transform, case N_Label, case N_Return_Statement,
25862 N_Goto_Statement): Make statement tree instead of generating code.
25863 (tree_transform, case N_Assignment_Statement): No longer check
25864 type_annotate_only.
25865 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
25867 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
25869 (gnat_to_gnu): Collect any RTL generated and deal with it.
25870 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
25871 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
25872 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
25874 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
25876 * ada-tree.def (EXPR_STMT): Fix typo in name.
25877 (BLOCK_STMT, IF_STMT): New nodes.
25879 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
25880 LABEL_STMT_FIRST_IN_EH): New macros.
25881 (RETURN_STMT_EXPR): Likewise.
25883 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
25884 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
25886 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
25888 * atree.ads: Correct documentation on extended nodes.
25890 * link.c: Set run_path_option for FreeBSD.
25892 2004-04-08 Vincent Celier <celier@gnat.com>
25894 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
25895 one of the ALI file, do not link with DEC lib.
25897 * par.adb Remove the last two characters ("%s" or "%b") when checking
25898 if a language defined unit may be recompiled.
25900 2004-04-08 Ed Schonberg <schonberg@gnat.com>
25902 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
25903 removal of abstract operation leaves no possible interpretation for
25906 * sem_eval.adb (Eval_Qualified_Expression): Use
25907 Set_Raises_Constraint_Error on node when needed, so that it does not
25908 get optimized away by subsequent optimizations.
25910 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
25911 operands even when they are not wrapped in a type conversion.
25913 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
25915 * sem_prag.adb (Set_Exported): Warn about making static as result of
25916 export only when the export is coming from source. This may be not
25917 be true e.g. on VMS where we expand export pragmas for exception codes
25918 together with imported or exported exceptions, and we don't want the
25919 user to be warned about something he didn't write.
25921 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
25923 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
25924 duplication between normal entities and those declared as renamings.
25925 No functional change.
25927 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
25928 inline functions returning an unconstrained result.
25930 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
25932 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
25933 conform to what other front-ends do.
25935 2004-04-08 Doug Rupp <rupp@gnat.com>
25937 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
25940 2004-04-06 Pascal Obry <obry@gnat.com>
25942 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
25944 * osint.adb (Program_Name): Do not look past a directory separator.
25946 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
25948 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
25950 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
25951 requirement for preserving a copy of the original assignment node.
25953 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
25955 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
25957 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
25960 2004-04-06 Ed Schonberg <schonberg@gnat.com>
25962 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
25963 operator calls in functional notation, and apply
25964 Universal_Interpretation to operands, not to their type.
25966 2004-04-06 Robert Dewar <dewar@gnat.com>
25968 * 5wdirval.adb: Minor reformatting
25970 2004-04-06 Ed Falis <falis@gnat.com>
25972 * gnat_rm.texi: Improve a reference to the GCC manual
25974 2004-04-05 Vincent Celier <celier@gnat.com>
25976 * adaint.h, adaint.c: Add function __gnat_named_file_length
25978 * impunit.adb: Add Ada.Directories to the list
25980 * Makefile.in: Add VMS and Windows versions of
25981 Ada.Directories.Validity package body.
25983 * Makefile.rtl: Add a-direct and a-dirval
25985 * mlib-tgt.ads: Minor comment update.
25987 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
25988 a-direct.ads, a-direct.adb: New files.
25990 2004-04-05 Vincent Celier <celier@gnat.com>
25993 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
25994 just to the compiler.
25996 2004-04-05 Robert Dewar <dewar@gnat.com>
25998 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
25999 returned string is 1.
26001 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
26003 * eval_fat.ads: Minor reformatting
26005 * g-curexc.ads: Document that lower bound of returned string values
26008 * gnatlink.adb: Add ??? comment for previous change
26009 (need to document why this is VMS specific)
26011 * s-stoele.ads: Minor reformatting
26013 * tbuild.ads: Minor reformatting throughout (new function specs)
26015 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
26018 * scng.adb: Minor reformatting
26020 2004-04-05 Geert Bosch <bosch@gnat.com>
26022 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
26023 (Leading_Part): Still perform truncation to machine number if the
26024 specified radix_digits is greater or equal to machine_mantissa.
26026 2004-04-05 Javier Miranda <miranda@gnat.com>
26028 * par-ch3.adb: Complete documentation of previous change
26029 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
26030 (aliased must appear before constant).
26032 * par-ch4.adb: Complete documentation of previous change.
26034 * par-ch6.adb: Complete documentation of previous change.
26036 * sinfo.ads: Fix typo in commment.
26038 2004-04-05 Ed Schonberg <schonberg@gnat.com>
26040 * sem_ch3.adb (Inherit_Components): If derived type is private and has
26041 stored discriminants, use its discriminants to constrain parent type,
26042 as is done for non-private derived record types.
26044 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
26045 Ada 2005 AI-310: an abstract non-dispatching operation is not a
26046 candidate interpretation in an overloaded call.
26048 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
26049 expression is Null and target type is not an access type (e.g. a
26050 non-private address type).
26052 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
26054 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
26055 statement whose right-hand side is an inlined call, save a copy of the
26056 original assignment subtree to preserve enough consistency for
26057 Analyze_Assignment to proceed.
26059 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
26060 complete assignment subtree which is now unnecessary, as the expansion
26061 of inlined call has been improved to preserve a consistent assignment
26062 tree. Note_Possible_Modification must be called only
26063 after checks have been applied, or else unnecessary checks will
26066 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
26067 of explicit dereferences that do not Come_From_Source:
26068 - be selective on cases where we must go back to the dereferenced
26069 pointer (an assignment to an implicit dereference must not be
26070 recorded as modifying the pointer);
26071 - do not rely on Original_Node being present (Analyze_Assignment
26072 calls Note_Possible_Modification on a copied tree).
26074 * sem_warn.adb (Check_References): When an unset reference to a pointer
26075 that is never assigned is encountered, prefer '<pointer> may be null'
26076 warning over '<pointer> is never assigned a value'.
26078 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
26080 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
26083 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
26085 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
26086 libexc. We currently don't reference anything in this library and
26087 linking it in triggers linker warnings we don't want to see.
26089 * init.c: Update comments.
26091 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26093 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
26094 * utils.c (create_field_decl): Likewise.
26095 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
26097 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
26099 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
26100 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
26101 Add info directory entry and category.
26103 2004-04-02 Jan Hubicka <jh@suse.cz>
26105 * utils.c: Include function.h
26106 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
26108 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
26111 * Make-lang.in: Clean up generation of documentation
26113 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
26115 * xgnatug.adb: Removed, replaced by xgnatugn.adb
26117 * xgnatugn.adb: Replaces xgnatug.adb
26119 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
26121 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
26123 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
26124 gnat_ug_wnt.texi: Removed.
26126 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
26128 * utils2.c: Update copyright notice.
26130 2004-04-01 Robert Dewar <dewar@gnat.com>
26132 * checks.adb: Minor reformatting throughout
26133 Note that prev checkin added RM reference to alignment warning
26135 2004-04-01 Ed Schonberg <schonberg@gnat.com>
26137 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
26138 non-static when building aggregate for bit-packed array.
26140 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
26141 function call that is itself the actual in a procedure call, build
26144 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
26145 a string literal, create a temporary for it, constant folding only
26146 handles scalars here.
26148 2004-04-01 Vincent Celier <celier@gnat.com>
26150 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
26151 Error_Msg_SP): New empty procedures to instantiate the Scanner.
26152 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
26154 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
26155 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
26156 and get the checksum.
26158 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
26160 Increase the Marking_Label at the end of the Multiple_Main_Loop,
26161 instead of at the beginning.
26163 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
26165 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
26168 * osint.ads (Multi_Unit_Index_Character): New Character global variable
26170 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
26173 * par.adb: Remove test on file name to detect language defined units.
26174 Add test on unit name, after parsing, to detect language defined units
26175 that are not compiled with -gnatg (except System.RPC and its children)
26177 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
26178 following units without style checking.
26180 * switch-c.adb: Change -gnatC to -gnateI
26182 * usage.adb: Document new switch -gnateInnn
26184 * scng.adb (Accumulate_Token_Checksum): New procedure
26185 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
26186 word or literal number.
26187 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
26190 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
26193 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
26194 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
26195 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
26196 5vtpopde.adb: Add missing 'constant' keywords.
26198 2004-04-01 Javier Miranda <miranda@gnat.com>
26200 * par-ch4.adb: (P_Allocator): Code cleanup
26202 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
26205 * sinfo.ads: Complete documentation of previous change
26207 2004-04-01 Pascal Obry <obry@gnat.com>
26209 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
26210 only on VMS. This special handling was done because an old GNU/ld bug
26211 on Windows which has been fixed.
26213 2004-04-01 GNAT Script <nobody@gnat.com>
26215 * Make-lang.in: Makefile automatically updated
26217 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26219 * decl.c (gnat_to_gnu_entity, make_type_from_size):
26220 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
26221 * trans.c (tree_transform, convert_with_check): Likewise.
26222 * utils.c (gnat_signed_or_unsigned_type): Likewise.
26223 (build_vms_descriptor, unchecked_convert): Likewise.
26224 * utils2.c (nonbinary_modular_operation): Likewise.
26226 2004-03-29 Javier Miranda <miranda@gnat.com>
26228 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
26229 (Install_Null_Excluding_Check): Local subprogram that determines whether
26230 an access node requires a runtime access check and if so inserts the
26231 appropriate run-time check.
26232 (Apply_Access_Check): Call Install_Null_Excluding check if required
26233 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
26235 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
26237 * einfo.ads: Fix typo in comment
26239 * exp_ch3.adb (Build_Assignment): Generate conversion to the
26240 null-excluding type to force the corresponding run-time check.
26241 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
26242 type to force the corresponding run-time check.
26244 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
26245 the null-excluding type to force the corresponding run-time check.
26247 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
26248 case of access types unless they have the null-excluding attribute.
26250 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
26253 * exp_util.ads: Fix typo in comment
26255 * par.adb (P_Null_Exclusion): New subprogram
26256 (P_Subtype_Indication): New formal that indicates if the null-excluding
26257 part has been scanned-out and it was present
26259 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
26261 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
26262 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
26263 type to force the corresponding run-time check
26264 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
26266 (Resolve_Array_Aggregate): Carry out some static checks
26267 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
26269 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
26270 attribute must be set only if specified by means of the null-excluding
26271 part. In addition, we must also propagate the access-constant attribute
26273 (Access_Subprogram_Declaration, Access_Type_Declaration,
26274 Analyze_Component_Declaration, Analyze_Object_Declaration,
26275 Array_Type_Declaration, Process_Discriminants,
26276 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
26277 and carry out some static checks.
26278 (Build_Derived_Access_Type): Set the null-excluding attribute
26279 (Derived_Type_Declaration, Process_Subtype): Carry out some static
26282 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
26284 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
26286 * sem_ch6.adb (Process_Formals): Carry out some static checks.
26287 (Set_Actual_Subtypes): Generate null-excluding subtype if the
26288 null-excluding part was present; it is not required to be done here in
26289 case of anonymous access types.
26290 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
26293 * sem_res.adb (Resolve_Actuals): Carry out some static check
26294 (Resolve_Null): Allow null in anonymous access
26296 * sinfo.adb: New subprogram Null_Exclusion_Present
26297 All_Present and Constant_Present available on access_definition nodes
26299 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
26300 object_declaration, derived_type_definition, component_definition,
26301 discriminant_specification, access_to_object_definition,
26302 access_function_definition, allocator, access_procedure_definition,
26303 access_definition, parameter_specification, All_Present and
26304 Constant_Present flags available on access_definition nodes.
26306 2004-03-29 Robert Dewar <dewar@gnat.com>
26308 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
26309 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
26310 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
26311 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
26312 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
26313 sem_prag.adb: Updates to handle multiple units/file
26315 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
26317 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
26318 sem_util.adb: Minor reformatting
26320 * sem_ch12.adb: Add comment for previous change
26322 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
26324 * osint.adb (Executable_Prefix): Set Exec_Name to the current
26325 executable name when not initialized. Otherwise, use its current value.
26327 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
26328 initialize it to another executable name than the current one. This
26329 allows to configure paths for an executable name (gnatmake) different
26330 from the current one (gnatdist).
26332 2004-03-29 Ed Schonberg <schonberg@gnat.com>
26334 * exp_ch6.adb (Expand_Call): A call to a function declared in the
26335 current unit cannot be inlined if it appears in the body of a withed
26336 unit, to avoid order of elaboration problems in gigi.
26338 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
26339 information for protected (wrapper) operation as well, to simplify gdb
26342 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
26343 protected body, indicate that the entity for the generated spec comes
26344 from source, to ensure that references are properly generated for it.
26345 (Build_Body_To_Inline): Do not inline a function that returns a
26348 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
26349 apply convention to homonyms that are declared explicitly.
26351 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
26352 that renames an equality operator and the operands are overloaded,
26353 resolve them with the declared formal types, before rewriting as an
26356 2004-03-29 GNAT Script <nobody@gnat.com>
26358 * Make-lang.in: Makefile automatically updated
26360 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
26362 * memtrack.adb: Log realloc calls, which are treated as free followed
26365 2004-03-25 Vincent Celier <celier@gnat.com>
26367 * prj-makr.adb (Process_Directories): Detect when a file contains
26368 several units. Do not include such files in the config pragmas or
26369 in the naming scheme.
26371 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
26372 Resolve links only when not in Trusted_Mode.
26373 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
26374 Do not resolve links for the display names.
26376 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
26377 resolve links when computing the display names.
26379 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
26381 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
26382 attribute reference does not denote a subtype, it can be any
26383 expression that has a classwide type, potentially after an implicit
26384 dereference. In particular, the prefix can be a view conversion for
26385 a classwide type (for which Is_Object_Reference holds), but it can
26386 also be a value conversion for an access-to-classwide type. In the
26387 latter case, there is an implicit dereference, and the original node
26388 for the prefix does not verify Is_Object_Reference.
26390 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
26391 conversion of a discriminant-dependent component of a mutable object
26394 2004-03-25 Ed Schonberg <schonberg@gnat.com>
26396 * freeze.adb (Freeze_Entity): When an inherited subprogram is
26397 inherited, has convention C, and has unconstrained array parameters,
26398 place the corresponding warning on the derived type declaration rather
26399 than the original subprogram.
26401 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
26402 indication on renaming declaration, if formal has a box and actual
26405 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
26406 determine whether to generate an implicit or explicit reference to
26407 the renamed entity.
26409 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
26410 subprogram renaming comes from a defaulted formal subprogram in an
26413 2004-03-25 Gary Dismukes <dismukes@gnat.com>
26415 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
26416 value expressions to ensure that calls within a component definition
26417 will be checked (since those are evaluated during the record type's
26420 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
26422 * s-tpobop.adb: Code clean up:
26423 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
26425 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
26427 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
26429 * Makefile.in: Clean up in the ravenscar run time.
26431 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26433 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
26434 of No_Strict_Aliasing to build_pointer_type_for_mode.
26435 * utils.c (update_pointer_to): Walk pointer and ref chains.
26437 2004-03-22 Cyrille Comar <comar@act-europe.fr>
26439 * ali.ads: Fix Comment about Dynamic_Elab.
26441 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
26442 Has_RACW, Is_Generic, etc.)
26443 (Output_Object, Gnatls): Take into account ALI files not attached to
26446 2004-03-22 Vincent Celier <celier@gnat.com>
26448 * gprep.adb: Change all String_Access to Name_Id
26449 (Is_ASCII_Letter): new function
26450 (Double_File_Name_Buffer): New procedure
26451 (Preprocess_Infile_Name): New procedure
26452 (Process_Files): New procedure
26453 (Gnatprep): Check if output and input are existing directories.
26454 Call Process_Files to do the real job.
26456 2004-03-22 Robert Dewar <dewar@gnat.com>
26458 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
26459 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
26461 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
26463 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
26464 case when the source contains only comments.
26466 2004-03-22 Ed Schonberg <schonberg@gnat.com>
26468 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
26469 declaration for a child subprogram body that acts as a spec, indicate
26470 that the entity in the declaration needs debugging information.
26472 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
26473 full view if the subtype is created for a constrained record component;
26474 gigi has enough information to construct the record, and there is no
26475 place in the tree for the declaration.
26477 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
26478 serial number for the dummy body that is built for analysis, to avoid
26479 inconsistencies in the generation of internal names when compiling
26482 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
26484 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
26487 2004-03-22 GNAT Script <nobody@gnat.com>
26489 * Make-lang.in: Makefile automatically updated
26491 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26493 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
26494 * trans.c (tree_transform, emit_index_check): Likewise.
26495 * utils.c (build_template): Likewise.
26496 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
26497 (maybe_unconstrained_array, unchecked_convert): Likewise.
26498 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
26499 (build_unary_op): Likewise.
26500 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
26501 (fill_vms_descriptor): Likewise.
26502 (build_call_alloc_dealloc): Likewise.
26504 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
26506 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
26509 * gnat_ug.texi: Add info directory category and entry.
26510 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
26511 gnat_ug_wnt.texi: Regenerate.
26513 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
26515 * ada-tree.h: Update copyright notice.
26516 Minor reformatting.
26518 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
26520 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
26521 as regular exception objects and not as mere integers representing the
26522 condition code. The latter approach required some dynamics to mask off
26523 severity bits, which did not fit well into the GCC table based model.
26524 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
26525 exception data objects. We don't it and it would conflict with the other
26526 external symbol we have to generate for such exceptions.
26528 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
26529 the special code for VMS exceptions, since these are now represented
26530 as regular exceptions objects.
26532 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26534 * decl.c (debug_no_type_hash): Remove.
26535 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
26536 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
26538 2004-03-19 Laurent Guerby <laurent@guerby.net>
26540 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
26541 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
26543 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26545 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
26546 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
26547 (TYPE_RM_SIZE_INT): Directly use type.values.
26548 (TREE_LOOP_ID): Clean up check.
26549 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
26550 TYPE_VALUES, not TYPE_FIELDS.
26551 * trans.c (convert_with_check): Delay access of bounds of basetype
26552 until sure is numeric.
26554 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
26556 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
26559 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
26560 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
26561 Specific.Set instead of direct call to e.g pthread_setspecific.
26563 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
26565 * adaint.c: Update comments.
26567 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
26568 GNATLIB_SHARED for FreeBSD.
26570 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
26572 * init.c [VxWorks]: Do not fix the stack size for the environment task.
26573 When needed (stack checking) the stack size is retrieved
26574 from the VxWorks kernel.
26576 * Makefile.in: Flag -nostdinc is required when building the run time
26577 for avoiding looking for files in the base compiler.
26578 Add the VxWorks specific version of the package body for
26579 System.Stack_checking.Operations (5zstchop.adb).
26581 * Make-lang.in: Add the object file for
26582 System.Stack_Checking.Operations.
26584 * Makefile.rtl: Add object file for the package
26585 System.Stack_Checking.Operations.
26587 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
26589 * s-stache.ads, s-stache.adb: Move the operations related to stack
26590 checking from this package to package System.Stack_Checking.Operations.
26591 This way, stack checking operations are only linked in the final
26592 executable when using the -fstack-check flag.
26594 2004-03-18 Doug Rupp <rupp@gnat.com>
26596 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
26599 * 5qsystem.ads, 5xcrtl.ads: New files.
26601 2004-03-18 Vincent Celier <celier@gnat.com>
26603 * prj.adb (Reset): Reset hash table Files_Htable
26605 * prj-env.adb (Source_Paths, Object_Paths): New tables.
26606 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
26607 the procedures Add_To_Path_File.
26608 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
26609 making sure that each directory is present only once and, for object
26610 dirs, when a directory already present is added, the duplicate is
26611 removed and the directory is always put as the last in the table.
26612 Write the path files at the end of these accumulations.
26614 * prj-nmsc.adb (Record_Source): Add source file name in hash table
26615 Files_Htable for all sources.
26617 * prj-proc.adb (Process): Remove restrictions between not directly
26618 related extending projects.
26620 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
26622 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
26623 (Find_Sources): Minor speed optimization.
26625 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
26626 parameter Trusted_Mode.
26628 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
26630 * scn.adb (Determine_License): Take into account a degenerated case
26631 when the source contains only comments.
26633 2004-03-18 Ed Schonberg <schonberg@gnat.com>
26635 * sem_warn.adb (Check_References): For a warning on a selected
26636 component that does not come from source, locate an uninitialized
26637 component of the record type to produce a more precise error message.
26639 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
26641 * 3zsoccon.ads: Fix multicast options.
26643 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
26646 2004-03-15 Robert Dewar <dewar@gnat.com>
26648 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
26649 pragma used for a private type.
26651 * lib-xref.adb (Generate_Reference): Do not generate warning if
26652 reference is in a different unit from the pragma Unreferenced.
26654 * 5vtpopde.adb: Minor reformatting
26655 Fix casing of To_Task_ID
26657 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
26658 flag if we have an unchecked conversion to an access type in the same
26661 2004-03-15 Geert Bosch <bosch@gnat.com>
26663 * a-ngcoty.adb (Modulus): In alternate formula for large real or
26664 imaginary parts, use Double precision throughout.
26666 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
26667 we want to be able to compile run-time with -gnata for testing, but
26668 this may also be instantiated in user code that is compiled with -gnata.
26670 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
26672 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
26673 codes. Having a separate type for this is useful to enforce consistency
26674 throughout the various run-time units.
26675 (Exception_Data): Use Exception_Code for Import_Code.
26677 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
26678 Natural and Integer in various places.
26679 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
26680 with the severity bits masked off.
26681 (Register_VMS_Exception): Handle the additional exception data pointer
26684 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
26685 component, now reflected by an exported accessor.
26686 (is_handled_by): New routine to compute whether the propagated
26687 occurrence matches some handler choice specification. Extracted out of
26688 get_action_description_for, and expanded to take care of the VMS
26690 (get_action_description_for): Use is_handled_by instead of an explicit
26691 complex condition to decide if the current choice at hand catches the
26692 propagated occurrence.
26694 * raise.h (Exception_Code): New type for C.
26696 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
26697 System.Standard_Library.Exception_Code, to allow references from the
26698 pragma import/export expander.
26700 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
26701 New accessors to allow easy access to GNAT exception data
26703 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
26704 redundant Handled_By_Others component, helper for the personality
26705 routine which will now be able to call the appropriate exception data
26708 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
26709 component of Standard_Exception_Type to be the closest possible to
26710 Exception_Code in System.Standard_Library, that we cannot get at this
26711 point. Expand a ??? comment to notify that this type node should
26712 probably be rewritten later on.
26714 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
26715 registration call to include a pointer to the exception object in the
26718 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
26719 instead of int and explicit bitmasks.
26721 2004-03-15 Vincent Celier <celier@gnat.com>
26723 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
26724 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
26726 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
26727 longer needed now that it is in the spec of
26728 System.Tasking.Task_Attributes.
26730 * adaint.h, adaint.c: (__gnat_create_output_file): New function
26732 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
26734 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
26736 * make.adb (Gnatmake): Do not check the executable suffix; it is being
26737 taken care of in Scan_Make_Arg.
26738 (Scan_Make_Arg): Add the executable suffix only if the argument
26739 following -o, in canonical case, does not end with the executable
26740 suffix. When in verbose mode and executable file name does not end
26741 with executable suffix, output the executable name, in canonical case.
26743 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
26744 to avoid warnings when instantiating Ada.Task_Attributes.
26747 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
26748 in the correct order.
26750 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
26751 redirect standard output and error to a file for the invocation of the
26752 compiler, then read the file.
26754 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
26755 directory, instead of the Value.
26756 (Find_Source_Dirs): Remove useless code & comments.
26758 2004-03-15 Ed Schonberg <schonberg@gnat.com>
26760 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
26761 tagged type is inherited, and the parent operation is not frozen yet,
26762 force generation of a freeze node for the inherited operation, so the
26763 corresponding dispatch entry is properly initialized.
26764 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
26765 when looking for user-defined equality operation.
26767 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
26768 boolean when locating primitive equality of tagged component.
26770 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
26771 bit-aligned field and the right-hand side a string literal, introduce
26772 a temporary before expanding assignment into a loop.
26774 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
26775 priority in full, to ensure that any expanded subepxressions of it are
26776 elaborated in the scope of the init_proc.
26778 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
26779 after object declaration, skipping over code that may have been
26780 generated for validity checks.
26782 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
26783 discriminants, ignore the known discriminants of its full view, if
26784 any, to check legality.
26786 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
26787 component if type has unknown discriminants.
26788 (Analyze_Private_Extension_Declaration): Discriminant constraint is
26789 null if type has unknown discriminants.
26791 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
26792 for end label when present.
26794 * s-fileio.adb (Open): When called with a C_Stream, use given name for
26795 temporary file, rather than an empty string.
26797 2004-03-15 Ed Falis <falis@gnat.com>
26799 * s-thread.adb: Removed, no longer used.
26801 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26803 * decl.c (target.h): Now include.
26804 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
26805 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
26806 (validate_size): For POINTER_TYPE, get smallest size permitted on
26809 * fe.h: Sort Einfo decls and add Set_Mechanism.
26811 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
26812 (ada/decl.o): Depends on target.h.
26814 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
26815 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
26817 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
26819 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
26821 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
26822 Insert_Dereference_Action when rewriting an implicit dereference into
26823 an explicit one, this will be taken care of during expansion of the
26824 explicit dereference.
26825 (Expand_N_Slice): Same. Always do the rewriting, even for the case
26826 of non-packed slices, since the dereference action generated by
26827 expansion of the explicit dereference is needed in any case.
26828 (Expand_N_Selected_Component): When rewriting an implicit dereference,
26829 analyze and resolve the rewritten explicit dereference so it is seen
26831 (Insert_Dereference_Action): This procedure is now called only for the
26832 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
26833 dereferences that do not come from source (including explicit
26834 dereferences resulting from rewriting implicit ones), but do not
26835 recursively insert a check for the dereference nodes contained within
26837 (Insert_Dereference_Action): Clarify and correct comment.
26839 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
26842 Move language detection to the top level.
26843 * config-lang.in: Build by default.
26845 2004-03-05 Robert Dewar <dewar@gnat.com>
26847 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
26849 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
26850 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
26851 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
26852 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
26853 unchecked conversion to spec to avoid warnings.
26855 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
26858 * 7stpopsp.adb: Correct casing in To_Task_ID call
26860 * a-strsea.ads, a-strsea.adb: Minor reformatting
26862 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
26864 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
26865 Adjust Max_Msg_Length to be clearly large enough.
26867 * fe.h: Define In_Same_Source_Unit
26869 * osint.adb: Add pragma Warnings Off to suppress warnings
26870 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
26873 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
26875 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
26877 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
26879 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
26881 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
26883 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
26884 node. We now do generate them for gcc back end.
26886 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
26889 * sinput-c.adb: Fix bad name in header.
26890 Add pragma Warnings Off to suppress aliasing warning.
26892 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
26894 * snames.h, snames.ads, snames.adb: Add entry for pragma
26895 No_Strict_Aliasing.
26897 2004-03-05 Vincent Celier <celier@gnat.com>
26899 * prj-com.ads: Add hash table Files_Htable to check when a file name
26900 is already a source of another project.
26902 * prj-nmsc.adb (Record_Source): Before recording a new source, check
26903 if its file name is not already a source of another project. Report an
26906 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
26907 source file name, call gnatpp with all the sources of the main project.
26909 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
26912 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
26913 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
26914 /RUNTIME_SYSTEM=, converted to --RTS=
26915 /NOTABS, converted to -notabs
26917 2004-03-05 Pascal Obry <obry@gnat.com>
26919 * make.adb: Minor reformatting.
26921 2004-03-05 Ed Schonberg <schonberg@gnat.com>
26923 Part of implemention of AI-262.
26924 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
26926 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
26929 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
26930 when component type is a partially constrained class-wide subtype.
26931 (Constrain_Discriminated_Type): If parent type has unknown
26932 discriminants, a constraint is illegal, even if full view has
26934 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
26935 with unknown discriminants whose full view is a discriminated record.
26937 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
26938 flag, to handle properly derivations of tagged types with unknown
26940 (Analyze_Package_Spec, Analyze_Package_Body): Install
26941 Private_With_Clauses before analyzing private part or body.
26943 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
26944 Has_Discriminants can be true for a given type (documentation).
26946 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
26948 * s-restri.ads: Fix license (GPL->GMGPL).
26950 * s-tassta.adb: Minor reformatting.
26952 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
26953 by calls to Exit_One_ATC_Level, since additional clean up is performed
26956 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
26957 by calls to Exit_One_ATC_Level, since additional clean up is performed
26960 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26962 * trans.c: Reflect GCC changes to fix bootstrap problem.
26963 Add warning for suspicious aliasing unchecked conversion.
26965 2004-03-05 GNAT Script <nobody@gnat.com>
26967 * Make-lang.in: Makefile automatically updated
26969 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
26971 * ali.adb (Read_Instantiation_Instance): Do not modify the
26972 current_file_num when reading information about instantiations, since
26973 this corrupts files in later references.
26975 2004-03-02 Vincent Celier <celier@gnat.com>
26977 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
26978 before checking if it is read-only.
26980 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
26981 of SRC_DIRS and eliminate duplicates.
26983 * gprcmd.adb: Replace command "path" with command "path_sep" to return
26984 the path separator.
26985 (Usage): Document path_sep
26987 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
26988 C++ compiler. No need for a script.
26989 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
26990 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
26993 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
26994 where there are Ada sources.
26995 (Set_Ada_Paths): Only add to the include path the source dirs of project
26997 (Add_To_Path): Add the Display_Values of the directories, not their
27000 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
27003 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
27005 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
27006 Value is canonicalized.
27007 (Language_Independent_Check): Do not copy Value to Display_Value when
27008 canonicalizing Value.
27010 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
27011 path to find limited with cycles.
27012 (Parse_Single_Project): Use canonical cased path to find the end of a
27015 2004-03-02 Ed Schonberg <schonberg@gnat.com>
27017 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
27018 and not a child unit.
27020 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
27021 appear in a with_clause.
27023 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
27024 only happen in type_annotate mode, do not try to elaborate it.
27026 * exp_util.adb (Force_Evaluation): If expression is a selected
27027 component on the left of an assignment, use a renaming rather than a
27028 temporary to remove side effects.
27030 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
27031 inlined instance body, which is analyzed before the end of the
27034 2004-03-02 Robert Dewar <dewar@gnat.com>
27036 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
27037 sem_ch4.adb: Use new feature for substitution of keywords in VMS
27039 * errout.ads, errout.adb: Implement new circuit for substitution of
27042 * sem_case.adb (Analyze_Choices): Place message properly when case is
27043 a subtype reference rather than an explicit range.
27045 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
27047 2004-03-02 Doug Rupp <rupp@gnat.com>
27049 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
27051 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
27053 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
27055 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27057 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
27060 2004-02-25 Robert Dewar <dewar@gnat.com>
27062 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
27063 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
27064 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
27065 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
27066 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
27067 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
27068 the defining instance of the type to avoid aliasing problems.
27069 Fix copyright header. Fix bad comments in package header.
27071 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
27073 2004-02-25 Ed Schonberg <schonberg@gnat.com>
27075 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
27076 rewritten as references when aliased through an address clause.
27078 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
27079 whether call can be interpreted as an indirect call to the result of a
27080 parameterless function call returning an access subprogram.
27082 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
27085 * exp_ch7.adb (Make_Clean): Remove generation of calls to
27086 Unlock[_Entries], since this is now done by Service_Entries directly.
27088 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
27090 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
27091 Requeue_Call for better code readability. Change spec and update calls:
27092 PO_Service_Entries now unlock the PO on exit.
27093 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
27094 PO_Service_Entries.
27096 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
27098 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
27100 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
27102 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
27103 protected subprogram call and analyzing the result of such expanding
27104 in case when the called protected subprogram is eliminated.
27106 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
27109 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
27111 * Makefile.in: Clean ups.
27113 2004-02-23 Ed Schonberg <schonberg@gnat.com>
27115 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
27116 protected operations if original subprogram is flagged as eliminated.
27117 (Expand_N_Subprogram_Body): For a protected operation, create
27118 discriminals for next operation before checking whether the operation
27121 * exp_ch9.adb (Expand_N_Protected_Body,
27122 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
27123 for internal protected operations if the original subprogram is
27126 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
27127 declared in a single protected object.
27129 2004-02-23 Vincent Celier <celier@gnat.com>
27131 * prj-attr.adb: Make attribute Builder'Executable an associative array,
27132 case insensitive if file names are case insensitive, instead of a
27133 standard associative array.
27135 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
27136 them as case insensitive on platforms where the file names are case
27139 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
27140 project file has already been parsed that canonical path are compared.
27142 2004-02-23 Robert Dewar <dewar@gnat.com>
27144 * sinput-c.ads: Correct bad unit title in header
27146 * freeze.adb: Minor reformatting
27148 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27150 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
27151 nonaddressable COMPONENT_REF that is removing padding that we are
27152 taking the address of, take the address of the padded record instead
27153 if item is variable size.
27155 2004-02-20 Robert Dewar <dewar@gnat.com>
27157 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
27159 2004-02-20 Ed Schonberg <schonberg@gnat.com>
27161 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
27162 itype references for the constrained designated type of a component
27163 whose base type is already frozen.
27165 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
27167 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
27168 avoid GCC warnings.
27170 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
27172 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
27173 identifier for a phantom package that rewrites the formal package
27174 declaration with a box. The Add semantic decorations for the defining
27175 identifier from the original node (that represents the formal package).
27177 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
27179 * Make-lang.in (ada/stamp-sdefault): Use the top level
27182 2004-02-19 Richard Henderson <rth@redhat.com>
27184 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
27186 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
27188 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
27189 Scan_ALI can be used for multiple ALI files without reinitializing
27192 2004-02-18 Robert Dewar <dewar@gnat.com>
27194 * debug.adb: Minor reformatting.
27196 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27198 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
27199 to zero if there is an address clause.
27201 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
27203 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
27205 2004-02-18 Gary Dismukes <dismukes@gnat.com>
27207 * layout.adb (Layout_Component_List): Revise generation of call to
27208 discriminant-checking function to pass selections of all of the type's
27209 discriminants rather than just the variant-controlling discriminant.
27211 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
27213 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
27214 fail in the current setup and triggers spurious system error messages.
27215 Pretend it occurred and failed instead.
27217 2004-02-18 Vincent Celier <celier@gnat.com>
27219 * bld.adb: Mark FLDFLAGS as saved
27220 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
27221 it is not the root project. Put each directory to be
27222 extended between double quotes to prevent it to be expanded on Windows.
27223 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
27224 the project file. Set them back to their initial values if they have not
27225 been set in the project file.
27227 * gprcmd.adb: (Gprdebug, Debug): New global variables
27228 (Display_Command): New procedure
27229 (Usage): Document new command "linkopts"
27230 Call Display_Command when env var GPRDEBUG has the value "TRUE"
27231 Implement new command "linkopts"
27232 Remove quotes that may be around arguments for "extend"
27233 Always call Normalize_Pathname with arguments formatted for the platform
27235 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
27236 Change @echo to @$(display) in target clean to be able to clean silently
27238 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
27240 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
27243 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
27244 = Extending_All when current project is an extending all project.
27246 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
27247 set to True only for LINK command, after Unix switch -o.
27248 (Process_Arguments): Set Output_File_Expected to True for LINK command
27249 after Unix switch -o. When Output_File_Expected is True, never add an
27250 extension to a file name.
27252 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
27253 option file name, only to the --for-linker= switch.
27254 (Option_File_Name): If option file name do not end with ".opt", append
27257 2004-02-18 GNAT Script <nobody@gnat.com>
27259 * Make-lang.in: Makefile automatically updated
27261 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
27263 * Make-lang.in (stamp-sdefault): Do not depend on
27266 2004-02-12 Zack Weinberg <zack@codesourcery.com>
27268 * config-lang.in: Disable Ada by default until probe logic for
27269 a bootstrap Ada compiler can be moved to the top level configure
27272 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
27274 * decl.c (components_to_record): Don't claim that the internal fields
27275 we make to hold the variant parts are semantically addressable, because
27278 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
27279 adjust the comment describing the modular type form when we can use it.
27280 (Install_PAT): Account for the Esiz renaming.
27282 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
27283 sc_onstack context indication before raising the exception to which
27284 the signal is mapped. Allows better handling of later signals possibly
27285 triggered by the resumed user code if the exception is handled.
27287 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
27289 * 5zinit.adb: Removed, no longer used.
27291 2004-02-12 Robert Dewar <dewar@gnat.com>
27293 * ali.adb: Remove separating space between parameters on R line. Makes
27294 format consistent with format used by the binder for Set_Globals call.
27296 * atree.ads, atree.adb: Minor reformatting (new function header format)
27298 * bindgen.adb: Add Run-Time Globals documentation section containing
27299 detailed documentation of the globals passed from the binder file to
27302 * gnatls.adb: Minor reformatting
27304 * init.c (__gnat_set_globals): Add note pointing to documentation in
27307 * lib-writ.ads, lib-writ.adb: Remove separating space between
27308 parameters on R line.
27309 Makes format consistent with format used by the binder for Set_Globals
27312 * osint.ads: Add 2004 to copyright notice
27315 * snames.ads: Correct capitalization of FIFO_Within_Priorities
27316 Noticed during code reading, documentation issue only
27318 * usage.adb: Remove junk line for obsolete C switch
27319 Noticed during code reading
27321 2004-02-12 Vincent Celier <celier@gnat.com>
27323 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
27324 extend for each directory, so that multiple /** directories are
27325 extended individually.
27326 (Recursive_Process): Set the default for LANGUAGES to ada
27328 * gprcmd.adb: Define new command "ignore", to do nothing.
27329 Implement new comment "path".
27331 * Makefile.generic: Suppress output when SILENT is set
27332 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
27333 used, so that the correct compiler is invoked.
27334 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
27335 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
27337 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
27339 * Makefile.in: Clean ups and remove obsolete targets.
27341 2004-02-12 Ed Schonberg <schonberg@gnat.com>
27343 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
27344 predicate declared in exp_util.
27346 * exp_util.adb: Add comments.
27348 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
27349 visibility before compiling context of the subunit.
27351 * sem_res.adb (Check_Parameterless_Call): If the context expects a
27352 value but the name is a procedure, do not attempt to analyze as a call,
27353 in order to obtain more telling diagnostics.
27355 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
27356 'Access on parameterless function calls.
27357 (Normalize_Actuals): For a parameterless function call with missing
27358 actuals, defer diagnostic until resolution of enclosing call.
27360 * sem_util.adb (Wrong_Type): If the context type is an access to
27361 subprogram and the expression is a procedure name, suggest a missing
27364 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
27365 Nathanael Nerode <neroden@gcc.gnu.org>
27369 Merge with libada-branch:
27370 * config-lang.in: Build libada only when ada is built.
27372 2004-02-09 Ed Schonberg <schonberg@gnat.com>
27374 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
27375 for a tagged type, verify that both formals have the same type.
27377 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
27378 temporary when the formal is an in-parameter and the actual a possibly
27381 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
27382 when expansion is disabled, to ensure proper name capture with
27383 overloaded literals. Condition can be of any boolean type, resolve
27386 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
27387 renaming is for a formal subprogram with a default operator name, and
27388 there is a usable operator that is visible at the point of
27391 2004-02-09 Robert Dewar <dewar@gnat.com>
27393 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
27394 rewrite to ignore errors in ali files, intended to allow tools downward
27395 compatibility with new versions of ali files.
27397 * ali.ads: Add new parameter Ignore_Errors
27399 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
27400 duplicating the error message giving the file with restrictions.
27402 * debug.adb: Add debug flag I for gnatbind
27404 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
27405 operators for the case where the operator is a defining operator.
27407 * exp_ch3.adb: Minor reformatting (new function spec format).
27409 * exp_ch4.adb: Add comment for previous change, and make minor
27410 adjustment to loop to always check for improper loop termination.
27411 Minor reformatting throughout (new function spec format).
27413 * gnatbind.adb: Implement -di debug flag for gnatbind
27415 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
27417 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
27419 * lib-load.adb: Fix bad assertion.
27420 Found by testing and code reading.
27421 Minor reformatting.
27423 * lib-load.ads: Minor reformatting.
27425 * lib-writ.adb: There is only one R line now.
27427 * lib-writ.ads: Add documentation on making downward compatible changes
27428 to ali files so old tools work with new ali files.
27429 There is only one R line now.
27430 Add documentation on format incompatibilities (with special GPS note)
27432 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
27434 * par-load.adb: Minor reformatting
27436 * sem_ch8.adb: Fix to error message from last update
27437 Minor reformatting and restructuring of code from last update
27439 * par-prag.adb, snames.adb, snames.ads, snames.h,
27440 sem_prag.adb: Implement pragma Profile.
27442 * stylesw.adb: Implement -gnatyN switch to turn off all style check
27445 * usage.adb: Add line for -gnatyN switch
27447 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
27449 2004-02-09 Albert Lee <lee@gnat.com>
27451 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
27453 2004-02-09 Ed Schonberg <schonberg@gnat.com>
27455 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
27458 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
27459 is nested in an instance that is not frozen yet, to avoid
27460 order-of-elaboration problems in gigi.
27462 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
27463 body the attribute is legal.
27465 2004-02-09 Robert Dewar <dewar@gnat.com>
27467 * s-rident.ads: Minor comment correction
27469 * targparm.adb: Remove dependence on uintp completely. There was
27470 always a bug in Make in that it called Targparm before initializing
27471 the Uint package. The old code appeared to get away with this, but
27472 the new code did not! This caused an assertion error in gnatmake.
27474 * targparm.ads: Fix bad comment, restriction pragmas with parameters
27475 are indeed fully supported.
27477 2004-02-06 Alan Modra <amodra@bigpond.net.au>
27479 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
27481 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
27483 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
27484 with targetm.calls.promote_prototypes.
27486 2004-02-04 Robert Dewar <dewar@gnat.com>
27488 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
27489 ali.ads, gprcmd.adb: Minor reformatting
27491 * bindgen.adb: Output restrictions string for new style restrictions
27494 * impunit.adb: Add s-rident.ads (System.Rident) and
27495 s-restri (System.Restrictions)
27497 * lib-writ.adb: Fix bug in writing restrictions string (last few
27500 * s-restri.ads, s-restri.adb: Change name Restrictions to
27501 Run_Time_Restrictions to avoid conflict with package name.
27502 Add circuit to read and acquire run time restrictions.
27504 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
27506 * restrict.ads, restrict.adb: Use the new restriction
27507 No_Task_Attributes_Package instead of the old No_Task_Attributes.
27509 * sem_prag.adb: No_Task_Attributes is a synonym of
27510 No_Task_Attributes_Package.
27512 * snames.ads, snames.adb: New entry for proper handling of
27513 No_Task_Attributes.
27515 * s-rident.ads: Adding restriction No_Task_Attributes_Package
27516 (AI-00249) that supersedes the GNAT specific restriction
27517 No_Task_Attributes.
27519 2004-02-04 Ed Schonberg <schonberg@gnat.com>
27522 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
27523 body, an identifier may be wrapped in an unchecked conversion.
27525 2004-02-04 Vincent Celier <celier@gnat.com>
27527 * lib-writ.ads: Comment update for the W lines
27529 * bld.adb: (Expression): An empty string list is static
27531 * fname-uf.adb: Minor comment update
27533 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
27535 * gnatbind.adb: Initialize Cumulative_Restrictions with the
27536 restrictions on the target.
27538 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
27540 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
27543 2004-02-02 Arnaud Charlet <charlet@gnat.com>
27545 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
27547 2004-02-02 Vincent Celier <celier@gnat.com>
27549 * gprcmd.adb (Check_Args): If condition is false, print the invoked
27550 comment before the usage.
27551 Gprcmd: Fail when command is not recognized.
27552 (Usage): Document command "prefix"
27554 * g-md5.adb (Digest): Process last block.
27555 (Update): Do not process last block. Store remaining characters and
27558 * g-md5.ads (Update): Document that several call to update are
27559 equivalent to one call with the concatenated string.
27560 (Context): Add fields to allow new Update behaviour.
27562 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
27563 defaulted to False.
27564 When May_Fail is True and no existing file can be found, return No_File.
27566 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
27569 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
27570 spec file name instead on the W line.
27572 2004-02-02 Robert Dewar <dewar@gnat.com>
27574 * ali.adb: Read and acquire info from new format restrictions lines
27576 * bcheck.adb: Add circuits for checking restrictions with parameters
27578 * bindgen.adb: Output dummy restrictions data
27579 To be changed later
27581 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
27582 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
27583 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
27584 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
27585 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
27587 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
27588 the warning message on access to possibly uninitialized variable S)
27589 Minor changes for new restrictions handling.
27591 * gnatbind.adb: Minor reformatting
27592 Minor changes for new restrictions handling
27593 Move circuit for -r processing here from bcheck (cleaner)
27595 * gnatcmd.adb, gnatlink.adb: Minor reformatting
27597 * lib-writ.adb: Output new format restrictions lines
27599 * lib-writ.ads: Document new R format lines for new restrictions
27602 * s-restri.ads/adb: New files
27604 * Makefile.rtl: Add entry for s-restri.ads/adb
27606 * par-ch3.adb: Fix bad error messages starting with upper case letter
27609 * restrict.adb: Major rewrite throughout for new restrictions handling
27610 Major point is to handle restrictions with parameters
27612 * restrict.ads: Major changes in interface to handle restrictions with
27613 parameters. Also generally simplifies setting of restrictions.
27615 * snames.ads/adb: New entry for proper handling of No_Requeue
27617 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
27618 restriction counting.
27619 Other minor changes for new restrictions handling
27621 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
27622 Restriction_Warnings now allows full parameter notation
27623 Major rewrite of Restrictions for new restrictions handling
27625 2004-02-02 Javier Miranda <miranda@gnat.com>
27627 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
27628 syntax rule for object renaming declarations.
27629 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
27630 component definitions.
27632 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
27634 (Array_Type_Declaration): Give support to access components. In addition
27635 it was also modified to reflect the name of the object in anonymous
27636 array types. The old code did not take into account that it is possible
27637 to have an unconstrained anonymous array with an initial value.
27638 (Check_Or_Process_Discriminants): Allow access discriminant in
27640 (Process_Discriminants): Allow access discriminant in non-limited types
27641 Initialize the new Access_Definition field in N_Object_Renaming_Decl
27642 node. Change Ada0Y to Ada 0Y in comments
27644 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
27645 equality operators.
27646 Change Ada0Y to Ada 0Y in comments
27648 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
27649 renamings Change Ada0Y to Ada 0Y in comments
27651 * sem_type.adb (Find_Unique_Type): Give support to the equality
27652 operators for universal access types
27653 Change Ada0Y to Ada 0Y in comments
27655 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
27657 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
27659 (N_Object_Renaming_Declaration): Addition of Access_Definition field
27660 Change Ada0Y to Ada 0Y in comments
27662 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
27663 component definition and object renaming nodes
27664 Change Ada0Y to Ada 0Y in comments
27666 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
27668 * restrict.adb: Use the new restriction identifier
27669 No_Requeue_Statements instead of the old No_Requeue for defining the
27670 restricted profile.
27672 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
27673 No_Requeue_Statements.
27675 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
27676 that supersedes the GNAT specific restriction No_Requeue. The later is
27677 kept for backward compatibility.
27679 2004-02-02 Ed Schonberg <schonberg@gnat.com>
27681 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
27682 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
27683 pragma and fix incorrect ones.
27685 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
27686 warning if the pragma is redundant.
27688 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
27690 * 5staprop.adb: Add missing 'constant' keywords.
27692 * Makefile.in: use consistent value for SYMLIB on
27693 platforms where libaddr2line is supported.
27695 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27697 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
27700 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
27702 * init.c (__gnat_install_handler): Setup an alternate stack for signal
27703 handlers in the environment thread. This allows proper propagation of
27704 an exception on stack overflows in this thread even when the builtin
27705 ABI stack-checking scheme is used without support for a stack reserve
27708 * utils.c (create_field_decl): Augment the head comment about bitfield
27709 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
27710 here, because the former is not accurate enough at this point.
27711 Let finish_record_type decide instead.
27712 Don't make a bitfield if the field is to be addressable.
27713 Always set a size for the field if the record is packed, to ensure the
27714 checks for bitfield creation are triggered.
27715 (finish_record_type): During last pass over the fields, clear
27716 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
27717 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
27718 from DECL_BIT_FIELD.
27720 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
27722 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
27723 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
27724 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
27726 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27728 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
27730 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
27731 (ZCX_By_Default): Likewise.
27732 (Front_End_ZCX_Support): Likewise.
27734 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
27735 (Initialize_Lock): Mark Level unreferenced.
27736 (Sleep): Mark Reason unreferenced.
27737 (Timed_Sleep): Likewise.
27738 (Wakeup): Likewise.
27739 (Exit_Task): Use Result.
27740 (Check_No_Locks): Mark Self_ID unreferenced.
27742 * 5gtasinf.adb (New_Sproc): Make Attr constant.
27743 (Bound_Thread_Attributes): Make Sproc constant.
27744 (New_Bound_Thread_Attributes): Likewise.
27746 2004-01-26 Ed Schonberg <schonberg@gnat.com>
27748 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
27749 one-dimensional array an slice assignments, when component type is
27752 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
27753 component type is controlled, and control_actions are in effect, use
27754 TSS procedure rather than generating inline code.
27756 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
27757 arrays with controlled components.
27759 2004-01-26 Vincent Celier <celier@gnat.com>
27761 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
27762 command line for the non VMS case.
27764 * gnatlink.adb (Process_Binder_File): When building object file, if
27765 GNU linker is used, put all object paths between quotes, to prevent ld
27766 error when there are unusual characters (such as '!') in the paths.
27768 * Makefile.generic: When there are sources in Ada and the main is in
27769 C/C++, invoke gnatmake with -B, instead of -z.
27771 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
27772 from VMS_Conversion.
27773 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
27774 specification of argument file on the command line.
27776 2004-01-26 Bernard Banner <banner@gnat.com>
27778 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
27780 2004-01-26 Ed Schonberg <schonberg@gnat.com>
27782 * snames.adb: Update copyright notice.
27783 Add info on slice assignment for controlled arrays.
27785 2004-01-23 Robert Dewar <dewar@gnat.com>
27787 * exp_aggr.adb: Minor reformatting
27789 * exp_ch9.adb: Minor code clean up
27791 Fix bad character in comment
27794 * targparm.adb (Get_Target_Parameters): Give clean abort error on
27795 unexpected end of file, along with more detailed message.
27797 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27799 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
27802 * decl.c (copy_alias_set): New function.
27803 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
27805 2004-01-23 Doug Rupp <rupp@gnat.com>
27807 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
27808 lib$${file} in case subsequent character is not a separator.
27810 2004-01-23 Vincent Celier <celier@gnat.com>
27812 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
27813 when the GCC version is at least 3.
27815 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
27816 Remove all "Opt.", to prepare for opt split
27818 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
27819 Extends_All. Set to True when the project parsed is an extending all
27820 project. Fails for importing an extending all project only when the
27821 imported project is an extending all project.
27822 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
27823 depending on the value of Extends_All returned.
27825 * prj-proc.adb (Process): Check that no project shares its object
27826 directory with a project that extends it, directly or indirectly,
27827 including a virtual project.
27828 Check that no project extended by another project shares its object
27829 directory with another also extended project.
27831 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
27832 Kind = N_With_Clause
27834 * prj-tree.ads: Minor reformatting
27835 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
27837 2004-01-23 Ed Schonberg <schonberg@gnat.com>
27839 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
27840 applies to a type with an incomplete view, use full view in Name of
27841 clause, for consistency with uses of Get_Attribute_Definition_Clause.
27843 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
27845 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
27846 SCHED_RR, since other values are not supported by this policy.
27847 (Initialize): Move initialization of mutex attribute to package
27848 elaboration, to prevent early access to this variable.
27850 * Makefile.in: Remove mention of Makefile.adalib, unused.
27852 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
27853 1ssecsta.ads: Removed, unused.
27855 2004-01-21 Javier Miranda <miranda@gnat.com>
27857 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
27858 entity if already built in the current scope.
27860 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
27861 reminder in internal scopes. Required for nested limited aggregates.
27863 2004-01-21 Doug Rupp <rupp@gnat.com>
27865 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
27866 VMS. Replace all occurences of libgnat- and libgnarl- with
27867 libgnat$(hyphen) and libgnarl$(hyphen).
27868 Fixed shared library build problem on VMS.
27870 2004-01-21 Robert Dewar <dewar@gnat.com>
27872 * mlib-prj.adb: Minor reformatting
27874 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
27876 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
27877 'constant' keywords for declaration of pointers that are not modified.
27879 * exp_pakd.adb: Fix English in comment.
27881 2004-01-21 Ed Schonberg <schonberg@gnat.com>
27884 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
27885 copy all attributes of the parent, including the foreign language
27888 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
27891 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
27892 for 'delay until' statement.
27894 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
27896 * Make-lang.in: Replace $(docdir) with doc.
27897 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
27898 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
27899 to use consistent MAKEINFO rule.
27900 (ada.man, ada.srcman): Dummy entry.
27901 (ADA_INFOFILES): Define.
27902 (ada.info, ada.srcinfo): New rules.
27904 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
27906 * utils.c: Update copyright notice, missed in previous change.
27908 2004-01-19 Vincent Celier <celier@gnat.com>
27910 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
27911 args if Bind is True. Set First_ALI, if not already done.
27912 (Build_Library): For Stand Alone Libraries, extract from one ALI file
27913 an eventual --RTS switch, for gnatbind, and all backend switches +
27914 --RTS, for linking.
27916 2004-01-19 Robert Dewar <dewar@gnat.com>
27918 * sem_attr.adb, memtrack.adb: Minor reformatting
27920 2004-01-19 Ed Schonberg <schonberg@gnat.com>
27922 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
27923 that rename enumeration literals. This is properly done in sem_eval.
27925 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
27926 to functions that rename enumeration literals.
27928 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
27929 functions that rename enumeration literals.
27931 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
27933 * Make-lang.in (utils.o): Depend on target.h.
27934 * utils.c: Include target.h.
27935 (process_attributes): Use targetm.have_named_sections instead
27936 of ASM_OUTPUT_SECTION_NAME.
27938 2004-01-16 Andreas Jaeger <aj@suse.de>
27940 * Makefile.in: Add $(DESTDIR).
27942 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
27944 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
27945 also when not defining if a Size clause applies. That information is
27948 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
27950 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
27951 symbolic links for the shared gnat run time when needed.
27953 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
27955 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
27956 for writing, and terminate with an error message if not.
27958 2004-01-15 Ed Schonberg <schonberg@gnat.com>
27960 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
27961 warning on an access to subprogram in an instance, when the target
27962 type is declared in the same generic unit.
27963 (Eval_Attribute): If 'access is known to fail accessibility check,
27964 rewrite as a raise statement.
27966 2004-01-15 GNAT Script <nobody@gnat.com>
27968 * Make-lang.in: Makefile automatically updated
27970 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
27972 * Make-lang.in (ada.srcextra): Dummy entry.
27974 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
27976 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
27978 2004-01-13 Ed Schonberg <schonberg@gnat.com>
27980 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
27981 components that are initialized with aggregates.
27983 2004-01-13 Vincent Celier <celier@gnat.com>
27985 * gnatlink.adb (Process_Binder_File): To find directory of shared
27986 libgcc, if "gcc-lib" is not a subdirectory, look for the last
27987 subdirectory "lib" in the path of the shared libgnat or libgnarl.
27989 * make.adb (Gnatmake): If GCC version is at least 3, link with
27990 -shared-libgcc, when there is at least one shared library project.
27992 * opt.ads (GCC_Version): New integer constant.
27994 * adaint.c (get_gcc_version): New function.
27996 2004-01-13 Robert Dewar <dewar@gnat.com>
27998 * sem_dist.adb, sem_res.adb, sem_util.adb,
27999 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
28000 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
28002 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
28004 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
28005 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
28008 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
28010 * misc.c: Remove trailing spaces.
28011 Update copyright notice missed in previous change.
28014 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
28017 * Makefile.generic: Update copyright.
28018 Add license notice.
28020 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
28021 of prefix/share/make.
28023 * Makefile.prolog: Update copyright.
28024 Add license notice.
28026 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
28028 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
28029 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
28030 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
28033 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
28036 2004-01-12 Javier Miranda <miranda@gnat.com>
28038 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
28039 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
28040 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
28041 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
28042 Component_Definition node.
28044 2004-01-12 Ed Falis <falis@gnat.com>
28046 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
28048 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
28050 * link.c: Change default libgnat kind to STATIC for FreeBSD.
28052 2004-01-12 Bernard Banner <banner@gnat.com>
28054 * Makefile.in: map 86numaux to a-numaux for x86_64
28056 2004-01-12 Ed Schonberg <schonberg@gnat.com>
28058 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
28059 generated to rename a generic actual, go to the actual itself, the
28060 subtype is not a user-visible entity.
28062 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
28063 part is a private subtype, reset the visibility of its full view, if
28064 any, to be consistent.
28067 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
28068 to use a generic package G as a formal package for another generic
28071 2004-01-12 Robert Dewar <dewar@gnat.com>
28073 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
28075 * usage.adb: Remove mention of obsolete -gnatwb switch
28076 Noticed during code reading
28078 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
28080 * 1ssecsta.adb: Minor changes for -gnatwa warnings
28082 2004-01-12 GNAT Script <nobody@gnat.com>
28084 * Make-lang.in: Makefile automatically updated
28086 2004-01-09 Mark Mitchell <mark@codesourcery.com>
28088 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
28090 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28092 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
28094 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
28096 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
28097 Update comment and copyright date.
28098 * stamp-xgnatug: Delete.
28100 2004-01-05 Robert Dewar <dewar@gnat.com>
28102 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
28103 be modified by the binder generated main program if the -D switch is
28106 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
28107 imported functions (since now we expect this to be done for imported
28110 * 5vtaprop.adb: Add several ??? for sections requiring more comments
28111 Minor reformatting throughout
28113 * 5zinit.adb: Minor reformatting
28114 Add 2004 to copyright date
28115 Minor changes to avoid -gnatwa warnings
28116 Correct some instances of using OR instead of OR ELSE (noted while
28117 doing reformatting)
28119 * sprint.adb: Minor updates to avoid -gnatwa warnings
28121 * s-secsta.ads, s-secsta.adb:
28122 (SS_Get_Max): New function to obtain high water mark for ss stack
28123 Default_Secondary_Stack is not a constant since it may be modified by
28124 the binder generated main program if the -D switch is used.
28126 * switch-b.adb: New -Dnnn switch for binder
28129 Make -gnatg imply all warnings currently in -gnatwa
28131 * vms_conv.adb: Minor reformatting
28132 Add 2004 to copyright notice
28133 Add 2004 to printed copyright notice
28135 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
28136 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
28137 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
28138 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
28139 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
28140 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
28141 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
28142 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
28143 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
28144 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
28145 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
28146 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
28147 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
28148 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
28149 checks.adb, clean.adb, cstand.adb, einfo.ads,
28150 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
28151 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
28152 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
28153 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
28154 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
28155 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
28156 Minor reformatting and code clean ups.
28157 Minor changes to prevent -gnatwa warnings
28159 * ali.adb: Minor reformatting and cleanup of code
28160 Acquire new SS indication of secondary stack use from ali files
28162 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
28163 (since now we expect this to be done for imported functions)
28165 * bindgen.adb: Generate call to modify default secondary stack size if
28168 * bindusg.adb: Add line for new -D switch
28170 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
28171 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
28172 Add circuitry for both records and arrays to avoid gigi
28173 processing if the type involved has non-bit-aligned components
28175 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
28176 N_String_Literal node always references an E_String_Literal_Subtype
28177 entity. This may not be true in the future.
28178 (Possible_Bit_Aligned_Component): Move processing of
28179 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
28181 * exp_ch6.adb (Expand_Thread_Body): Pick up
28182 Default_Secondary_Stack_Size as variable so that we get value modified
28183 by possible -Dnnn binder parameter.
28185 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
28186 (Type_May_Have_Bit_Aligned_Components): New function.
28188 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
28189 (Type_May_Have_Bit_Aligned_Components): New function.
28191 * fe.h: (Set_Identifier_Casing): Fix prototype.
28192 Add declaration for Sem_Elim.Eliminate_Error_Msg.
28193 Minor reformatting.
28195 * freeze.adb (Freeze_Entity): Add RM reference to error message about
28196 importing constant atomic/volatile objects.
28197 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
28198 unless explicit Pure_Function pragma given, to avoid insidious bug of
28199 call to non-pure imported function getting eliminated.
28201 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
28202 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
28203 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
28204 Add 2004 to printed copyright notice
28206 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
28209 * Makefile.rtl: Add entry for g-sestin.o
28210 g-sestin.ads: New file.
28212 * mdll.adb: Minor changes to avoid -gnatwa warnings
28214 * mlib-tgt.adb: Minor reformatting
28216 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
28217 New switch Sec_Stack_Used (GNAT, GNATBIND)
28218 Make Default_Secondary_Stack_Size a variable instead of a constant,
28219 so that it can be modified by the new -Dnnn bind switch.
28221 * rtsfind.adb (Load_Fail): Give full error message in configurable
28222 run-time mode if all_errors mode is set. This was not done in the case
28223 of a file not found, which was an oversight.
28224 Note if secondary stack unit is used by compiler.
28226 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
28227 ineffective elaborate all pragmas on non-visible packages (this
28228 happened when a renamed subprogram was called). Now the elaborate all
28229 always goes on the package containing the renaming rather than the one
28230 containing the renamed subprogram.
28232 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
28233 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
28235 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
28236 has an Etype that references an E_String_Literal.
28237 (Eval_String_Literal): Avoid assumption that N_String_Literal node
28238 always references an E_String_Literal_Subtype entity. This may not
28239 be true in the future.
28241 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
28244 * sem_res.adb (Resolve): Specialize msg for function name used in proc
28247 2004-01-05 Ed Falis <falis@gnat.com>
28249 * g-debuti.adb: Replaced direct boolean operator with short-circuit
28252 2004-01-05 Vincent Celier <celier@gnat.com>
28254 * bld.adb: Minor comment updates
28255 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
28258 * make.adb (Gnatmake): Special process for files to compile/check when
28259 -B is specified. Fail when there are only foreign mains in attribute
28260 Main of the project file and -B is not specified. Do not skip bind/link
28261 steps when -B is specified.
28263 * makeusg.adb: Document new switch -B
28265 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
28267 * switch-m.adb: (Scan_Make_Switches): Process -B switch
28269 * vms_data.ads: Add new GNAT PRETTY qualifier
28270 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
28272 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28274 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
28277 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
28278 Set_Identifier_Casing.
28280 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
28281 has size that overflows.
28283 2004-01-05 Gary Dismukes <dismukes@gnat.com>
28285 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
28286 -gnatwa warning on static condition.
28288 2004-01-05 Doug Rupp <rupp@gnat.com>
28290 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
28292 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
28294 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
28295 all attributes, including read-only attribute.
28297 2004-01-05 Pascal Obry <obry@gnat.com>
28299 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
28300 library naming scheme.
28302 * mlib-prj.adb (Build_Library): Generate different names for the static
28303 or dynamic version of the GNAT runtime. This is needed to support the
28304 new shared library naming scheme.
28305 (Process_Binder_File): Add detection of shared library in binder file
28306 based on the new naming scheme.
28308 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
28309 scheme for the shared runtime libraries.
28312 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
28314 (install-gnatlib): Do not create symlinks for shared libraries.
28315 (gnatlib-shared-default): Idem.
28316 (gnatlib-shared-dual-win32): New target. Not used for now as the
28317 auto-import feature does not support arrays/records.
28318 (gnatlib-shared-win32): Do not create copy for the shared libraries.
28319 (gnatlib-shared-vms): Fix shared runtime libraries names.
28321 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
28322 dependent runtime shared library name.
28324 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
28326 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
28329 2004-01-05 Ed Schonberg <schonberg@gnat.com>
28331 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
28332 protected objects when allocator has a subtype indication, not a
28333 qualified expression. Note that qualified expressions may have to be
28334 checked when limited aggregates are implemented.
28336 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
28337 pure, emit warning.
28338 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
28339 subprogram is imported, remove warning.
28341 2004-01-05 Geert Bosch <bosch@gnat.com>
28343 * s-poosiz.adb: Update copyright notice.
28344 (Allocate): Use Task_Lock to protect against concurrent access.
28345 (Deallocate): Likewise.
28347 2004-01-05 Joel Brobecker <brobecker@gnat.com>
28349 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
28352 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
28354 * gnat_ug.texi: Force a CVS commit by updating copyright.
28355 * gnat_ug_vxw.texi: Regenerate.
28356 * gnat_ug_wnt.texi: Regenerate.
28357 * gnat_ug_vms.texi: Regenerate.
28358 * gnat_ug_unx.texi: Regenerate.
28360 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
28362 * trans.c: Remove uses of "register" specifier in
28363 declarations of local variables.
28365 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
28367 * stamp-xgnatug: New stamp file.
28368 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
28369 (ada/doctools/xgnatug): Add $(build_exeext).
28370 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
28371 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
28373 2003-12-17 Ed Falis <falis@gnat.com>
28375 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
28378 * a-exextr.adb: Add context clause for
28379 Ada.Exceptions.Last_Chance_Handler.
28381 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
28383 * cstand.adb (Create_Standard): Change the way how the declaration of
28384 the Duration type is created (making it the same way as it is for all
28385 the other standard types).
28387 2003-12-17 Robert Dewar <dewar@gnat.com>
28389 * s-crtl.ads: Fix header format
28390 Change Pure to Preelaborate
28392 2003-12-17 Ed Schonberg <schonberg@gnat.com>
28394 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
28395 the expression type only if it is declared in the current unit.
28397 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
28398 are universal and already analyzed, as can occur in constrained
28399 subcomponents that depend on discriminants, when one constraint is a
28402 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
28403 type Any_Fixed is legal as the argument of a conversion, if only one
28404 fixed-point type is in context.
28406 2003-12-17 GNAT Script <nobody@gnat.com>
28408 * Make-lang.in: Makefile automatically updated
28410 2003-12-15 Robert Dewar <dewar@gnat.com>
28412 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
28415 2003-12-15 Vincent Celier <celier@gnat.com>
28417 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
28418 (Gnatchop): Do not set failure status when reporting the number of
28421 2003-12-15 Doug Rupp <rupp@gnat.com>
28423 * s-ctrl.ads: New file.
28425 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
28427 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
28428 (GNATBIND_OBJS): Add ada/s-crtl.o.
28430 * Makefile.in [VMS]: Clean up ifeq rules.
28432 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
28433 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
28434 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
28435 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
28436 s-tasdeb.adb: Update copyright.
28437 Import System.CRTL.
28438 Make minor modifications to use System.CRTL declared functions instead
28439 of importing locally.
28441 2003-12-15 GNAT Script <nobody@gnat.com>
28443 * Make-lang.in: Makefile automatically updated
28445 2003-12-11 Ed Falis <falis@gnat.com>
28447 * 5zinit.adb: Clean up.
28449 * 5zintman.adb (Notify_Exception): replaced case statement with a call
28450 to __gnat_map_signal, imported from init.c to support
28451 signal -> exception mappings that depend on the vxWorks version.
28454 Created and exported __gnat_map_signal to support signal -> exception
28455 mapping that is dependent on the VxWorks version.
28456 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
28458 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
28460 * 5wosinte.ads: Link with -mthreads switch.
28462 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
28464 * init.c (__gnat_install_handler [NetBSD]): Set
28465 __gnat_handler_installed, as done on all other platforms.
28466 Remove duplicated code.
28468 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
28470 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
28472 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
28474 * sinfo.ads: Fix inconsistent example code in comment.
28476 2003-12-11 Robert Dewar <dewar@gnat.com>
28478 * a-tiinau.adb: Add a couple of comments
28480 * sem_ch3.adb: Minor reformatting
28483 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
28484 Minor reformatting throughout
28486 2003-12-11 Ed Schonberg <schonberg@gnat.com>
28488 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
28489 bounds of a loop, create a separate block in order to generate proper
28490 cleanup actions to prevent memory leaks.
28492 * sem_res.adb (Resolve_Call): After a call to
28493 Establish_Transient_Scope, the call may be rewritten and relocated, in
28494 which case no further processing is needed.
28496 * sem_util.adb: (Wrong_Type): Refine previous fix.
28497 Fixes ACATS regressions.
28500 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
28503 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
28505 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
28506 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
28509 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
28512 2003-12-08 Robert Dewar <dewar@gnat.com>
28514 * 7sintman.adb: Minor reformatting
28516 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
28517 standard linker options to get standard libraries linked. We now plan
28518 to provide dummy versions of these libraries to match the appropriate
28519 configurable run-time (e.g. if a library is not needed at all, provide
28520 a dummy empty library).
28522 * targparm.ads: Configurable_Run_Time mode no longer affects linker
28523 options (-L parameters and standard libraries). What we plan to do is
28524 to provide dummy libraries where the libraries are not required.
28526 * gnatbind.adb: Minor comment improvement
28528 2003-12-08 Javier Miranda <miranda@gnat.com>
28530 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
28531 aggregate in the parent. Otherwise constants with limited aggregates
28532 are not supported. Add new formal to pass the component type (Ctype).
28533 It is required to call the corresponding IP subprogram in case of
28534 default initialized components.
28535 (Gen_Assign): In case of default-initialized component, generate a
28536 call to the IP subprogram associated with the component.
28537 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
28538 of aggregate with default initialized components.
28539 (Has_Default_Init_Comps): Improve implementation to recursively check
28540 all the present expressions.
28542 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
28543 to indicate that the initialization call corresponds to a
28544 default-initialized component of an aggregate.
28545 In case of default initialized aggregate with tasks this parameter is
28546 used to generate a null string (this is just a workaround that must be
28547 improved later). In case of discriminants, this parameter is used to
28548 generate a selected component node that gives access to the discriminant
28551 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
28552 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
28553 allocated aggregates with default-initialized components.
28555 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
28556 the box notation is used in positional aggregates.
28558 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
28560 * lib.ads: Fix typo in comment
28562 2003-12-08 Vincent Celier <celier@gnat.com>
28564 * prj.adb (Project_Empty): New component Unkept_Comments
28565 (Scan): Remove procedure; moved to Prj.Err.
28567 * prj.ads (Project_Data): New Boolean component Unkept_Comments
28568 (Scan): Remove procedure; moved to Prj.Err.
28570 * prj-dect.adb: Manage comments for the different declarations.
28572 * prj-part.adb (With_Record): New component Node
28573 (Parse): New Boolean parameter Store_Comments, defaulted to False.
28574 Set the scanner to return ends of line and comments as tokens, if
28575 Store_Comments is True.
28576 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
28577 comments are associated with these nodes. Store the node IDs in the
28579 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
28581 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
28582 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
28583 current project. Call Tree.Restore afterwards. Set the various nodes
28584 for comment storage (Next_End, End_Of_Line, Previous_Line,
28587 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
28588 defaulted to False.
28590 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
28591 to False. When Truncated is True, truncate the string, never go to the
28593 (Write_End_Of_Line_Comment): New procedure
28594 (Print): Process comments for nodes N_With_Clause,
28595 N_Package_Declaration, N_String_Type_Declaration,
28596 N_Attribute_Declaration, N_Typed_Variable_Declaration,
28597 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
28598 Process nodes N_Comment.
28600 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
28601 without comments and there are some comments, set the flag
28602 Unkept_Comments to True.
28603 (Scan): If there are comments, set the flag Unkept_Comments to True and
28604 clear the comments.
28605 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
28606 (Next_End_Nodes: New table
28607 (Comment_Zones_Of): New function
28608 (Scan): New procedure; moved from Prj. Accumulate comments in the
28609 Comments table and set end of line comments, comments after, after end
28611 (Add_Comments): New procedure
28612 (Save, Restore, Seset_State): New procedures
28613 (There_Are_Unkept_Comments): New function
28614 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
28615 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
28617 (First_Comment_After, First_Comment_After_End): New functions
28618 (First_Comment_Before, First_Comment_Before_End): New functions
28619 (Next_Comment): New function
28620 (End_Of_Line_Comment, Follows_Empty_Line,
28621 Is_Followed_By_Empty_Line): New functions
28622 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
28623 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
28624 (Set_Next_Comment): New procedure
28625 (Default_Project_Node): Associate comment before if the node can store
28628 * scans.ads (Token_Type): New enumeration value Tok_Comment
28629 (Comment_Id): New global variable
28631 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
28632 defaulted to False.
28633 (Scan): Store position of start of comment. If comments are tokens, set
28634 Comment_Id and set Token to Tok_Comment when scanning a comment.
28635 (Set_Comment_As_Token): New procedure
28637 * sinput-p.adb: Update Copyright notice
28638 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
28639 that no longer exists.
28641 2003-12-08 Javier Miranda <miranda@gnat.com>
28643 * sem_aggr.adb: Add dependence on Exp_Tss package
28644 Correct typo in comment
28645 (Resolve_Aggregate): In case of array aggregates set the estimated
28646 type of the aggregate before calling resolve. This is needed to know
28647 the name of the corresponding IP in case of limited array aggregates.
28648 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
28649 in case of default initialized array components.
28651 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
28652 types. Required to give support to limited aggregates in generic
28655 2003-12-08 Ed Schonberg <schonberg@gnat.com>
28657 * sem_ch3.adb (Check_Initialization): For legality purposes, an
28658 inlined body functions like an instantiation.
28659 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
28660 until bounds are analyzed, to diagnose premature use of type.
28662 * sem_util.adb (Wrong_Type): Improve error message when the type of
28663 the expression is used prematurely.
28665 2003-12-08 GNAT Script <nobody@gnat.com>
28667 * Make-lang.in: Makefile automatically updated
28669 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
28671 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
28672 they are automatically generated by Make-lang.in and cause nothing but
28673 maintenance troubles.
28675 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
28677 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
28678 version of this unit).
28680 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
28682 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
28683 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
28684 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
28685 the body of System.Interrupt_Management common to several targets.
28686 Update copyright notice when appropriate.
28688 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
28691 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
28692 to ensure that the kernel fills in the interrupted context structure
28693 before calling a signal handler, which is necessary to be able to
28694 unwind past it. Update the copyright notice.
28696 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
28698 * a-elchha.ads: New file.
28700 * a-elchha.adb: New default last chance handler. Contents taken from
28701 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
28703 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
28704 is moved to a-elchha.adb to provide a target-independent default last
28707 * Makefile.rtl: Add a-elchha.o
28709 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
28711 2003-12-05 Ed Schonberg <schonberg@gnat.com>
28713 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
28714 declared in an instance, do not inline the call if the instance is not
28715 frozen yet, to prevent order of elaboration problems.
28717 * sem_prag.adb: Add comments for previous fix.
28719 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
28721 * g-table.adb: Use the right variable in Set_Item.
28722 Update copyright notice.
28724 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
28726 * Makefile.in: Remove unused rules.
28728 2003-12-05 Vincent Celier <celier@gnat.com>
28730 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
28731 -nostdlib. Not needed here after all.
28733 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
28736 * adaint.h, adaint.c, g-os_lib.ads:
28737 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
28738 on some platforms (including FreeBSD), it is a 64 bit value.
28739 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
28741 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
28743 * gnatvsn.ads (Library_Version): Now contain only the relevant
28745 (Verbose_Library_Version): New constant.
28747 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
28748 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
28749 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
28751 * gnatlbr.adb: Clean up: replace Library_Version by
28752 Verbose_Library_Version.
28754 * make.adb, lib-writ.adb, exp_attr.adb:
28755 Clean up: replace Library_Version by Verbose_Library_Version.
28757 * 5lintman.adb: Removed.
28760 Update and simplify computation of LIBRARY_VERSION.
28761 Fix computation of GSMATCH_VERSION.
28762 5lintman.adb is no longer used: replaced by 7sintman.adb.
28764 2003-12-03 Robert Dewar <dewar@gnat.com>
28767 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
28768 name. Modified to consider small non-bit-packed arrays as troublesome
28769 and in need of component-by-component assigment expansion.
28771 2003-12-03 Vincent Celier <celier@gnat.com>
28773 * lang-specs.h: Process nostdlib as nostdinc
28775 * back_end.adb: Update Copyright notice
28776 (Scan_Compiler_Arguments): Process -nostdlib directly.
28778 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
28781 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
28782 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
28783 included in HIE_NONE_TARGET_PAIRS.
28785 2003-12-03 Ed Schonberg <schonberg@gnat.com>
28788 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
28789 is legal in an instance, because legality is cheched in the template.
28792 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
28793 appplied to an unchecked conversion of a formal parameter.
28796 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
28799 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
28801 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
28802 routines. The second one is new functionality to deal with backtracing
28803 through signal handlers.
28804 (unwind): Split into the two separate subroutines above.
28805 Update the documentation, and deal properly with sizeof (REG) different
28806 from sizeof (void*).
28808 2003-12-01 Nicolas Setton <setton@act-europe.fr>
28810 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
28811 so that the debugger can reliably access the value of the parameter,
28812 and therefore is able to display the exception name when an exception
28813 breakpoint is reached.
28815 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
28817 * fmap.adb: Fix typo in warning message.
28819 * g-socket.ads, g-socket.adb: Make Free a visible instance of
28820 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
28822 2003-12-01 Vincent Celier <celier@gnat.com>
28824 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
28826 (Build_Library): Get the switches only if Default_Switches is declared
28829 2003-12-01 Ed Schonberg <schonberg@gnat.com>
28831 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
28832 actuals that are indexed components, reanalyze actual to ensure that
28833 packed array references are properly expanded.
28835 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
28836 attempted assignment to a discriminant.
28838 2003-12-01 Robert Dewar <dewar@gnat.com>
28840 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
28843 * switch-c.adb: Minor reformatting of comments
28845 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
28847 * Makefile.in: Clean ups.
28849 2003-12-01 GNAT Script <nobody@gnat.com>
28851 * Make-lang.in: Makefile automatically updated
28853 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
28855 * 5wsystem.ads: Disable zero cost exception, not ready yet.
28857 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
28859 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
28860 to force serialization.
28862 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
28864 * g-socket.ads, g-socket.adb:
28865 Clarify documentation of function Stream. Introduce a Free procedure
28866 to release the returned Stream once it becomes unused.
28868 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
28870 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
28872 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
28873 since NT 4 cannot handle timeout values that are too large,
28874 e.g. DWORD'Last - 1.
28876 2003-11-26 Ed Schonberg <schonberg@gnat.com>
28879 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
28880 in procedure calls and whose expansion must be deferred.
28882 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
28886 (Build_Derived_Array_Type): Create operator for unconstrained type
28887 if ancestor is unconstrained.
28889 2003-11-26 Vincent Celier <celier@gnat.com>
28891 * make.adb (Project_Object_Directory): New global variable
28892 (Change_To_Object_Directory): New procedure
28893 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
28894 of Change_Dir directly. Do not change working directory to object
28895 directory of main project after each compilation.
28896 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
28898 Change to object directory of main project before binding step.
28899 (Initialize): Initialize Project_Object_Directory to No_Project
28902 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
28903 binding a Stand-Alone Library.
28905 * output.adb: Update Copyright notice
28906 (Write_Char): Output buffer when full
28908 2003-11-26 Robert Dewar <dewar@gnat.com>
28910 * sem_ch13.adb: (Check_Size): Reset size if size is too small
28913 (Check_Size): Fix documentation to include bit-packed array case
28915 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
28917 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
28919 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
28921 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
28924 * utils.c (init_gigi_decls): Change name of built-in setjmp to
28925 __builtin_setjmp, since this is apparently needed by recent
28928 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28930 * adadecode.c: Only include ctype.h if not IN_GCC.
28931 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
28933 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
28936 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
28937 signals and interrupts.
28939 * 5zintman.ads: New File.
28941 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
28942 add exception signals to the set of unmasked signals.
28945 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
28946 between signals and interrupts.
28947 Add to Unblocked_Signal_Mask the set of signals that are in
28951 Adding a check to see whether the Interrupt_ID we want to unmask is in
28952 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
28953 reason is that the index type of the Keep_Unmasked array is not always
28954 Interrupt_ID; it may be a subtype of Interrupt_ID.
28956 2003-11-24 Gary Dismukes <dismukes@gnat.com>
28959 (Remove_Side_Effects): Condition constantness of object created for a
28960 an unchecked type conversion on the constantness of the expression
28961 to ensure the correct value for 'Constrained when passing components
28962 of view-converted class-wide objects.
28964 2003-11-24 Robert Dewar <dewar@gnat.com>
28966 * par-load.adb (Load): Improve handling of misspelled and missing units
28967 Removes several cases of compilation abandoned messages
28969 * lib.adb: (Remove_Unit): New procedure
28971 * lib.ads: (Remove_Unit): New procedure
28973 * lib-load.adb: Minor reformatting
28975 2003-11-24 Vincent Celier <celier@gnat.com>
28978 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
28979 (Marking_Label): Label to mark processed source files. Incremented for
28981 (Gnatmake): Increase Marking_Labet for each executable
28982 (Is_Marked): Compare against marking label
28983 (Mark): Mark with marking label
28985 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
28988 Move the declaration of the TSD for System.Threads to System.Soft_Links.
28991 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
28992 (rts-cert): build a single relocatable object for the run-time lib.
28995 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
28998 Use gnatls rather than gcc to obtain the location of GNAT RTL for
29001 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
29003 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
29004 can not use it as before (that is, as a variable) when dumping it into
29005 the tree file. Add a local variable to store the result of this
29006 function and to be used as the string to be written into the tree.
29008 * scn.adb (Initialize_Scanner): Add comments explaining the recent
29011 * sinput.adb (Source_First, Source_Last): In case of
29012 Internal_Source_File, replace returning attributes of
29013 Internal_Source_Ptr (which is wrong) with returning attributes of
29016 2003-11-24 Ed Schonberg <schonberg@gnat.com>
29019 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
29020 used for implicit concatenation operators.
29024 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
29025 task bodies that are in the scope of a Suppress pragma.
29026 (Check_A Call): Use the flag to prevent spurious elaboration checks.
29028 * sinfo.ads, sinfo.adb:
29029 New flag No_Elaboration_Check on function/procedure calls, to properly
29030 suppress checks on calls in task bodies that are within a local suppress
29034 (Expand_Concatenate_Other): Use the proper integer type for the
29035 expression for the upper bound, to avoid universal_integer computations
29038 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
29040 * .cvsignore: Delete.
29042 2003-11-21 Andreas Schwab <schwab@suse.de>
29044 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
29046 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
29048 * 5wsystem.ads: Enable zero cost exception.
29050 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
29052 * 5ztiitho.adb: Remove an unreferenced variable.
29054 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
29056 * adaint.c: For FreeBSD, use mkstemp.
29058 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
29060 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
29062 2003-11-21 Robert Dewar <dewar@gnat.com>
29064 * bld.adb: Remove useless USE of gnatvsn
29066 * gnatchop.adb: Minor reformatting
29067 Clean up version handling to be more consistent
29069 * gnatxref.adb: Minor reformatting
29071 * gprcmd.adb: Minor reformatting
29072 Fix output of copyright to be more consistent with other tools
29074 2003-11-21 Vincent Celier <celier@gnat.com>
29076 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
29078 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
29080 * atree.adb (Initialize): Add initializations for global variables
29081 used in New_Copy_Tree.
29083 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
29084 Internal_Source_File as the actual).
29085 Put the set of statements creating Any_Character before the set of
29086 statements creating Any_Array to have Any_Character fully initialized
29087 when it is used in creating Any_Array.
29089 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
29090 not call Scan in case if the actual is Internal_Source_File
29091 Add 2003 to copyright note.
29093 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
29094 processing Internal_Source_File.
29096 * types.ads: Add the constant Internal_Source_File representing the
29097 source buffer for artificial source-code-like strings created within
29098 the compiler (the definition of Source_File_Index is changed).
29100 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
29102 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
29103 56system.ads: New file, FreeBSD version.
29105 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
29107 * Make-lang.in (ada.extraclean): Delete.
29109 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
29111 * gnatmem.adb: Clean up verbose output.
29113 * gprcmd.adb: Change copyright to FSF.
29115 2003-11-19 Vincent Celier <celier@gnat.com>
29117 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
29118 and Version (ignored).
29120 * symbols.ads: (Policy): New type
29121 (Initialize): New parameter Reference, Symbol_Policy and
29123 Remove parameter Force.
29124 Minor reformatting.
29126 * snames.ads, snames.adbadb: New standard names
29127 Library_Reference_Symbol_File and Library_Symbol_Policy
29130 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
29134 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
29136 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
29138 * prj.adb: (Project_Empty): New component Symbol_Data
29140 * prj.ads: (Policy, Symbol_Record): New types
29141 (Project_Data): New component Symbol_Data
29144 New attributes Library_Symbol_File, Library_Symbol_Policy and
29145 Library_Reference_Symbol_File.
29148 (Ada_Check): When project is a Stand-Alone library project, process
29149 attribute Library_Symbol_File, Library_Symbol_Policy and
29150 Library_Reference_Symbol_File.
29152 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
29153 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
29154 5sml-tgt.adb (Build_Dynamic_Library): New parameter
29155 Symbol_Data (ignored).
29157 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
29158 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
29159 functions Option_File_Name and Version_String. Set new options of
29160 gnatsym related to symbol file, symbol policy and reference symbol
29164 Extensive modifications to take into account the reference symbol file,
29165 the symbol policy, the library version and to put in the symbol file the
29166 minor and major IDs.
29168 * bld.adb (Process_Declarative_Items): Put second argument of
29169 gprcmd to_absolute between single quotes, to avoid problems with
29172 * bld-io.adb: Update Copyright notice.
29173 (Flush): Remove last character of a line, if it is a back slash, to
29174 avoid make problems.
29177 Implement new scheme with reference symbol file and symbol policy.
29179 * g-os_lib.ads: (Is_Directory): Clarify comment
29181 2003-11-19 Robert Dewar <dewar@gnat.com>
29183 * atree.adb: Move New_Copy_Tree global variables to head of package
29185 * errout.adb: Minor reformatting
29187 2003-11-19 Javier Miranda <miranda@gnat.com>
29189 * sem_ch4.adb: (Diagnose_Call): Improve error message.
29190 Add reference to Ada0Y (AI-50217)
29192 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
29193 sem_util.adb: Add reference to AI-50217
29195 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
29197 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
29199 * sem_aggr.adb: Complete documentation of AI-287 changes
29201 * par-ch4.adb: Document previous changes.
29203 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
29204 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
29207 * exp_aggr.adb: Add references to AI-287 in previous changes
29209 2003-11-19 Ed Schonberg <schonberg@gnat.com>
29212 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
29213 in the rewriting is the result of an inlined call.
29215 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
29216 parameter is a type conversion, use original node to construct the
29217 post-call assignment, because expression may have been rewritten, e.g.
29218 if it is a packed array.
29221 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
29222 body, just as it is in an instance.
29223 Categorization routines
29225 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
29226 Instantiate_Object): Set proper sloc reference for message on missing
29229 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
29231 * Makefile.in: Add FreeBSD libgnat pairs.
29233 * usage.adb: Fix typo in usage message.
29235 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
29237 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
29238 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
29239 pragma Thread_Body.
29240 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
29242 * s-thread.adb: This file is now a dummy implementation of
29245 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
29247 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
29249 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
29251 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
29252 instanciation references in the parent type description.
29254 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29256 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
29258 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
29259 TYPE_PRECISION directly from esize.
29261 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
29264 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
29266 * init.c: Initialization routines for FreeBSD
29268 * link.c: Link info for FreeBSD
29270 * sysdep.c: Add the case of FreeBSD
29272 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
29274 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
29275 already called in System.Threads.
29277 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
29278 environment task, as it has been moved to System.Threads.Initialization.
29280 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
29282 * adaint.c (__gnatlib_install_locks): Only reference
29283 __gnat_install_locks on VMS, since other platforms can avoid using
29284 --enable-threads=gnat
29286 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29288 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
29290 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
29291 TYPE_PACKED_ARRAY_TYPE_P.
29292 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
29294 Part of PR ada/12806
29295 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
29296 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
29298 2003-11-17 Vincent Celier <celier@gnat.com>
29300 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
29302 Do not set exit status to Failure when Warning is True.
29303 (Gnatchop): Make errors "no compilation units found" and
29304 "no source files written" warnings only.
29306 * make.adb (Gnatmake): When using a project file, set
29307 Look_In_Primary_Dir to False.
29308 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
29309 and Local_Configuration_Pragmas in the project where they are declared
29310 not an extending project which might have inherited them.
29312 * osint.adb (Locate_File): If Name is already an absolute path, do not
29313 look for a directory.
29315 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
29316 -gnats (Check_Syntax) is used, issue only a warning, not an error.
29318 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
29319 in objects of type Variable_Value.
29321 * prj.ads: (Variable_Value): New component Project
29323 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
29324 is in a project extended by Project.
29326 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
29327 Project of Variable_Values to this new parameter value.
29328 (Expression): Set component Project of Variable_Values.
29329 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
29330 Set the component Project in array elements.
29332 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
29334 * errout.adb: (Initialize): Add initialization for error nodes.
29336 * sem_ch12.adb (Initialize): Add missing initializations for
29337 Exchanged_Views and Hidden_Entities.
29339 2003-11-17 Ed Schonberg <schonberg@gnat.com>
29341 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
29342 already instantiated tree for use in subsequent inlining.
29343 (Analyze_Associations, Instantiate_Formal_Subprogram,
29344 Instantiate_Object): improve error message for mismatch in
29347 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
29348 instantiations of subprograms declared in instances.
29350 2003-11-17 Javier Miranda <miranda@gnat.com>
29352 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
29353 executed only under the Extensions_Allowed flag.
29355 2003-11-17 Robert Dewar <dewar@gnat.com>
29357 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
29359 (Address_Image): Fix bug of returning 0x instead of 0x0
29360 Minor reformatting (function specs).
29362 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
29363 (missed case of 33-63)
29365 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
29367 * s-thread.adb: Add comments for pragma Restriction
29369 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
29370 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
29372 2003-11-17 Ed Falis <falis@gnat.com>
29374 * s-thread.adb: Added No_Tasking restriction for this implementation.
29376 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
29378 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
29379 instanciation references in the parent type description.
29381 2003-11-17 GNAT Script <nobody@gnat.com>
29383 * Make-lang.in: Makefile automatically updated
29385 2003-11-16 Jason Merrill <jason@redhat.com>
29387 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
29388 and TAGS files that include them for each front end.
29390 2003-11-14 Andreas Jaeger <aj@suse.de>
29392 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
29393 is the canonical version.
29394 * misc.c (gnat_handle_option): Likewise.
29396 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
29398 * 5nsystem.ads: New file for x86_64-linux-gnu.
29400 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
29402 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
29404 * comperr.adb: Fix logic in previous change.
29406 2003-11-13 Vincent Celier <celier@gnat.com>
29408 * 5bml-tgt.adb (Build_Dynamic_Library): Use
29409 Osint.Include_Dir_Default_Prefix instead of
29410 Sdefault.Include_Dir_Default_Name.
29412 * gnatlbr.adb: Update Copyright notice
29413 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
29414 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
29415 instead of Sdefault.Object_Dir_Default_Name
29418 (Process_Binder_File): Never suppress the option following -Xlinker
29421 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
29422 Sdefault.Object_Dir_Default_Name.
29424 * osint.ads, osint.adb:
29425 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
29426 Minor reformatting.
29428 * vms_conv.ads: Minor reformating
29429 Remove GNAT STANDARD and GNAT PSTA
29432 Allow GNAT MAKE to have several files on the command line.
29433 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
29434 Sdefault.Object_Dir_Default_Name.
29436 Remove data for GNAT STANDARD
29439 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
29440 Remove data for GNAT STANDARD
29441 Remove options and documentation for -gnatwb/-gnatwB: these warning
29442 options no longer exist.
29444 2003-11-13 Ed Falis <falis@gnat.com>
29446 * 5zthrini.adb: (Init_RTS): Made visible
29449 (Register): Removed unnecessary call to taskVarGet that checked whether
29450 an ATSD was already set as a task var for the argument thread.
29453 Updated comment to reflect that this is a VxWorks version
29454 Added context clause for System.Threads.Initialization
29455 Added call to System.Threads.Initialization.Init_RTS
29457 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
29460 (Init_RTS): New procedure, for the initialization of the run-time lib.
29463 Remove dependancy on System.Init, so that this file can be used in the
29464 AE653 sequential run-time lib.
29466 2003-11-13 Robert Dewar <dewar@gnat.com>
29468 * bindgen.adb: Minor reformatting
29470 2003-11-13 Ed Schonberg <schonberg@gnat.com>
29473 (Apply_Discriminant_Check): Do no apply check if target type is derived
29474 from source type with no applicable constraint.
29477 (Ensure_System_Dependency): Do not apply the style checks that may have
29478 been specified for the main unit.
29481 (Find_Selected_Component): Further improvement in error message, with
29485 (Resolve): Handle properly the case of an illegal overloaded protected
29488 2003-11-13 Javier Miranda <miranda@gnat.com>
29491 (Has_Default_Init_Comps): New function to check the presence of
29492 default initialization in an aggregate.
29493 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
29494 extension aggregate of a limited record. In addition, a new formal
29495 was added to do not initialize the record controller (if any) during
29496 this recursive expansion of ancestors.
29497 (Init_Controller): Add support for limited record components.
29498 (Expand_Record_Aggregate): In case of default initialized components
29499 convert the aggregate into a set of assignments.
29501 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
29502 describing the new syntax.
29503 Nothing else needed to be done because this subprogram delegates part of
29504 its work to P_Precord_Or_Array_Component_Association.
29505 (P_Record_Or_Array_Component_Association): Give support to the new
29506 syntax for default initialization of components.
29509 (Resolve_Aggregate): Relax the strictness of the frontend in case of
29510 limited aggregates.
29511 (Resolve_Record_Aggregate): Give support to default initialized
29513 (Get_Value): In case of default initialized components, duplicate
29514 the corresponding default expression (from the record type
29515 declaration). In case of default initialization in the *others*
29516 choice, do not check that all components have the same type.
29517 (Resolve_Extension_Aggregate): Give support to limited extension
29521 (Check_Initialization): Relax the strictness of the front-end in case
29522 of aggregate and extension aggregates. This test is now done in
29523 Get_Value in a per-component manner.
29525 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
29526 expression corresponds to a limited aggregate. This test is now done
29529 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
29532 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
29533 present in an N_Component_Association node
29535 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
29537 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
29538 type-conformant entry only if they are homographs.
29540 2003-11-13 GNAT Script <nobody@gnat.com>
29542 * Make-lang.in: Makefile automatically updated
29544 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29546 * adadecode.c: Use <> form of include for ctype.h.
29547 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
29549 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29551 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
29552 Works around PR middle-end/6552.
29554 2003-11-10 Ed Falis <falis@gnat.com>
29556 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
29558 * 5zinit.adb: (Install_Handler): Moved back to spec
29559 (Install_Signal_Handlers): Deleted
29561 * 5zthrini.adb: Added context clause for System.Storage_Elements
29562 (Register): Only handles creation of taskVar; initialization moved to
29564 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
29565 Added declaration of environment task secondary stack and
29568 * s-thread.adb: Implement bodies for thread body processing
29571 Added comment identifying supported targets for pragma Thread_Body.
29573 2003-11-10 Pascal Obry <obry@gnat.com>
29575 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
29579 (Open): Properly check for string length before copying into the buffer.
29580 Raises Name_Error if buffer is too small. Note that this was a potential
29583 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
29585 * bindgen.adb, comperr.adb: Code clean ups.
29586 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
29588 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
29590 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
29592 2003-11-10 Vincent Celier <celier@gnat.com>
29595 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
29598 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
29600 * prj.adb: (Project_Empty): Add new boolean component Virtual
29602 * prj.ads: (Virtual_Prefix): New constant string
29603 (Project_Data): New boolean component Virtual
29605 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
29606 a library project is extended by a virtual extending project.
29609 Modifications throughout to implement extending-all project, including:
29610 (Virtual_Hash, Processed_Hash): New hash tables
29611 (Create_Virtual_Extending_Project): New procedure
29612 (Look_For_Virtual_Projects_For): New procedure
29615 (Process): After checking the projects, if main project is an
29616 extending-all project, set the object directory of all virtual extending
29617 project to the object directory of the main project.
29618 Adjust error message when a virtual extending project has the same
29619 object directory as an project being extended.
29620 (Recursive_Process): If name starts with the virtual prefix, set Virtual
29621 to True in the project data.
29624 (Default_Project_Node): Add new boolean component Extending_All
29625 (Is_Extending_All): New function
29626 (Set_Is_Extending_All): New procedure
29628 * prj-tree.ads: (Is_Extending_All): New function
29629 (Set_Is_Extending_All): New procedure
29630 (Project_Node_Record): New boolean component Extending_All
29632 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
29635 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
29637 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
29638 "gprcmd prefix" to define it.
29640 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
29642 * einfo.ads: Fix a typo and remove an extraneous word in comments.
29645 (Create_Dummy_Package_Unit): Set the scope of the entity for the
29646 created dummy package to Standard_Standard, not to itself, to
29647 defend other parts of the front-end against encoutering a cycle in
29651 (Analyze_With_Clause): When setting the entities for the successive
29652 N_Expanded_Names that constitute the name of a child unit, do not
29653 attempt to go further than Standard_Standard in the chain of scopes.
29654 This case arises from the placeholder units created by
29655 Create_Dummy_Package_Unit in the case of a with_clause for a
29656 nonexistent child unit.
29658 2003-11-10 Ed Schonberg <schonberg@gnat.com>
29661 (Expand_Thread_Body): Place subprogram on scope stack, so that new
29662 declarations are given the proper scope.
29665 (Check_Expr_Constants): Reject an expression that contains a constant
29666 created during expansion, and that appears after the object to which
29667 the address clause applies.
29669 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
29670 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
29671 that uses 'Range of a function call with controlled components, so
29672 that the function result can be finalized before starting the loop.
29675 (Find_Selected_Component): Improve error message when prefix is
29676 an implicit dereference of an incomplete type.
29678 2003-11-10 Robert Dewar <dewar@gnat.com>
29680 * opt.ads: New Print_Standard flag for -gnatS switch
29682 * sem_ch13.adb: Remove some additional checks for unaligned arrays
29684 * cstand.adb (Create_Standard): Print out package standard if -gnatS
29687 * debug.adb: Update doc for -gnatds to discuss relationship with new
29690 * sinfo.adb: Add new field Entity_Or_Associated_Node
29692 * sinfo.ads: Add new field Entity_Or_Associated_Node
29693 Update documentation for Associated_Node and Entity fields to clarify
29694 relationship and usage.
29697 (Write_Id): Properly process Associated_Node field in generic template
29700 Recognize new -gnatS switch for printing package Standard
29701 This replaces gnatpsta
29704 Add line for new -gnatS switch for printing package Standard
29705 This replaces gnatpsta
29707 2003-11-10 Andreas Jaeger <aj@suse.de>
29709 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
29712 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
29714 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
29717 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
29719 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
29722 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
29724 * sysdep.c: Add handling of cygwin.
29726 2003-11-10 GNAT Script <nobody@gnat.com>
29728 * Make-lang.in: Makefile automatically updated
29730 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
29733 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
29734 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
29735 Replace GNAT_ROOT by GCC_ROOT.
29737 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
29739 2003-11-06 Zack Weinberg <zack@codesourcery.com>
29741 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
29742 and update for changed meaning of GET_MODE_BITSIZE.
29744 2003-11-04 Doug Rupp <rupp@gnat.com>
29746 * sysdep.c: Problem discovered during IA64 VMS port.
29747 [VMS] #include <unixio.h> to get proper prototypes.
29750 Issues discovered/problems fixed during IA64 VMS port.
29751 [VMS] #define _POSIX_EXIT for proper semantics.
29752 [VMS] #include <unixio.h> for proper prototypes.
29753 [VMS] (fork): #define IA64 version.
29754 (__gnat_os_exit): Remove unnecessary VMS specific code.
29756 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29758 Part of PR ada/12806
29759 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
29763 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
29766 * targtyps.c, decl.c, misc.c,
29767 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
29768 routines to work around change in FP sizing semantics in GCC.
29771 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
29773 * gigi.h: (enumerate_modes): New function.
29775 * Make-lang.in: (ada/misc.o): Add real.h.
29777 * misc.c: (enumerate_modes): New function.
29779 2003-11-04 Robert Dewar <dewar@gnat.com>
29781 * 3vtrasym.adb: Minor reformatting
29782 Use terminology encoded/decoded name, rather than C++ specific notion
29783 of mangling (this is the terminology used throughout GNAT).
29785 * einfo.h: Regenerated
29787 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
29790 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
29792 * par-prag.adb: Add dummy entry for Thread_Body pragma
29795 Add entries for System.Threads entities for thread body processing
29798 (Analyze_Pragma, Access attributes): Check these are not applied to a
29799 thread body, since this is not permitted
29801 * sem_prag.adb: Add processing for Thread_Body pragma.
29805 (Resolve_Call): Check for incorrect attempt to call a thread body
29806 procedure with a direct call.
29808 * snames.ads, snames.adb: Add entry for Thread_Body pragma
29809 Add names associated with thread body expansion
29811 * snames.h: Add entry for Thread_Body pragma
29813 * s-thread.adb: Add entries for thread body processing
29814 These are dummy bodies so far
29816 * s-thread.ads: Add documentation on thread body handling.
29817 Add entries for thread body processing.
29819 2003-11-04 Javier Miranda <miranda@gnat.com>
29822 (Build_Limited_Views): Return after posting an error in case of limited
29823 with_clause on subprograms, generics, instances or generic renamings
29824 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
29825 on subprograms, generics, instances or generic renamings
29827 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
29829 * raise.c (setup_to_install): Correct mistake in last revision; two
29830 arguments out of order.
29832 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
29833 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
29834 notice, missed in previous change.
29835 Remove trailing blanks and other style errors introduced in previous
29838 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
29840 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
29841 rid of the wrapper for a LJM type, ensuring we don't do that if the
29842 field is addressable. This avoids potential low level type view
29843 mismatches later on, for instance in a by-reference argument passing
29846 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29848 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
29849 aligned at byte boundary.
29851 2003-11-04 Joel Brobecker <brobecker@gnat.com>
29853 * decl.c (components_to_record): Do not delete the empty variants from
29854 the end of the union type.
29856 2003-11-04 Ed Schonberg <schonberg@gnat.com>
29858 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
29859 operation for a derived type, an explicit declaration may use a local
29860 subtype of Boolean.
29862 2003-11-04 Vincent Celier <celier@gnat.com>
29864 * make.adb (Gnatmake): Allow main sources on the command line with a
29865 library project when it is only for compilation (no binding or
29868 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29870 * Makefile.in: Remove many duplicate variables.
29872 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
29874 * Make-lang.in (dvi): Move targets to $(docobjdir).
29875 (gnat_ug_vms.dvi): Simplify rule and adjust target.
29876 (gnat_ug_wnt.dvi): Likewise.
29877 (gnat_ug_unx.dvi): Likewise.
29878 (gnat_ug_vxw.dvi): Likewise.
29879 (gnat_rm.dvi): Likewise.
29880 (gnat-style.dvi): Likewise.
29882 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
29884 * gigi.h: Missed commit from update for C90.
29886 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
29888 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
29890 2003-10-31 Andreas Schwab <schwab@suse.de>
29892 * raise.c (get_action_description_for): Fix typo in last change.
29894 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
29897 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
29898 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
29900 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
29902 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
29903 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
29904 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
29905 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
29906 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
29908 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
29911 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
29912 numbers when symbol name is too long.
29914 2003-10-30 Ed Falis <falis@gnat.com>
29916 * g-signal.ads, g-signal.adb: New files
29918 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
29920 * Makefile.rtl: Introduce GNAT.Signals
29922 2003-10-30 Robert Dewar <dewar@gnat.com>
29924 * freeze.adb: Minor reformatting
29926 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
29928 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
29929 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
29930 New handling of Id_Check parameter to improve recognition of keywords
29931 used as identifiers.
29932 Update copyright notice to include 2003
29934 2003-10-29 Robert Dewar <dewar@gnat.com>
29936 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
29937 sem_ch10.adb: Minor reformatting
29939 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
29940 (Expand_Assign_Record): Test right hand side for bit unaligned as well
29942 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
29944 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
29945 Support for TBK$SYMBOLIZE-based symbolic traceback.
29947 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
29950 Revert previous change, that did not work well when pragma No_Run_Time
29951 was used in conjunction with a run-time other than ZFP.
29953 2003-10-29 Vincent Celier <celier@gnat.com>
29956 (Gnatmake): When there are no Ada mains in attribute Main, disable the
29957 bind and link steps only is switch -z is not used.
29959 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
29961 * Makefile.generic: Remove duplicated setting of CC.
29963 * Makefile.prolog: Set CC to gcc by default, to override make's
29966 * einfo.h: Regenerated.
29968 2003-10-29 Ed Schonberg <schonberg@gnat.com>
29970 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
29971 current body, after compiling subunit.
29973 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
29974 when in deleted code, because gigi needs properly ordered freeze
29975 actions to annotate types.
29977 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
29978 prevent the premature freezing of record type that contains
29979 subcomponents with a private type that does not yet have a completion.
29981 2003-10-29 Javier Miranda <miranda@gnat.com>
29984 (Analyze_Package_Instantiation): Check that instances can not be used in
29985 limited with_clauses.
29988 (Analyze_Package_Renaming): Check that limited withed packages cannot
29989 be renamed. Improve text on error messages related to limited
29992 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
29994 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
29995 Update copyright notice.
29997 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
29998 (Install_Limited_Context_Clauses): New subprogram that isolates all the
29999 checks required for limited context_clauses and installs the limited
30001 (Install_Limited_Withed_Unit): Complete its documentation.
30002 (Analyze_Context): Check that limited with_clauses are only allowed in
30004 (Install_Context): Call Install_Limited_Context_Clauses after the
30005 parents have been installed.
30006 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
30007 package as 'From_With_Type'; this mark indicates that the limited view
30008 is installed. Used to check bad usages of limited with_clauses.
30009 (Build_Limited_Views): Do not add shadow entities to the scope's list
30010 of entities. Do not add real entities to the Non_Limited_Views chain.
30011 Improve error notification.
30012 (Remove_Context_Clauses): Remove context clauses in two phases:
30013 limited views first and regular views later (to maintain the
30015 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
30016 its visible entities.
30018 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
30020 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
30021 with any type that Is_Fixed_Point_Type.
30023 * sinfo.ads: Fix documentation for Associated_Node attribute.
30025 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
30027 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
30028 both '-gnatc' and '-gnatt' are specified.
30030 * atree.adb (Initialize): Add initialization for Node_Count (set to
30033 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30035 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
30036 do not consider as Pure.
30038 Part of implementation of function-at-a-time:
30040 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
30041 (tree_transform): Add new argument to build_component_ref.
30042 (tree_transform, case N_Assignment_Statement): Make and return an
30044 (tree_transform): If result IS_STMT, set flags and return it.
30045 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
30047 * utils2.c (build_simple_component_ref, build_component_ref): Add new
30049 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
30050 (build_allocator): Likewise.
30052 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
30053 Add new arg to build_component_ref.
30054 (maybe_unconstrained_array, unchecked_convert): Likewise.
30056 * ada-tree.def (EXPR_STMT): New code.
30058 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
30060 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
30061 build_component_ref calls.
30063 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
30065 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
30066 (build_component_ref): Add new argument, NO_FOLD_P.
30068 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
30070 * Makefile.generic: Add missing substitution on object_deps handling.
30073 * Make-lang.in (check-ada): Enable ACATS test suite.
30075 2003-10-27 Robert Dewar <dewar@gnat.com>
30078 (Freeze_Array_Type): We do not need an initialization routine for types
30079 derived from String or Wide_String. They should be treated the same
30080 as String and Wide_String themselves. This caused problems with the
30081 use of Initialize_Scalars.
30084 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
30085 composites. This allows use of component clauses that are not byte
30089 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
30090 is an attempt to pack an array of atomic objects.
30092 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
30094 2003-10-27 Pascal Obry <obry@gnat.com>
30097 (Basename): Check for drive letters in a pathname only on DOS based OS.
30099 2003-10-27 Vincent Celier <celier@gnat.com>
30102 (Gnatmake): When unable to change dir to the object dir, display the
30103 content of the parent dir of the obj dir, to try to understand why this
30106 2003-10-27 GNAT Script <nobody@gnat.com>
30108 * Make-lang.in: Makefile automatically updated
30110 2003-10-27 Ed Schonberg <schonberg@gnat.com>
30113 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
30114 should not be done in Save/Restore_Scope_Stack, because it is performed
30118 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
30119 whether use clauses should be removed/restored.
30122 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
30123 whether use clauses should be removed/restored.
30125 2003-10-26 Andreas Jaeger <aj@suse.de>
30127 * Makefile.in: Remove duplicated lines.
30129 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
30131 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
30132 minimize the differences with ACT tree.
30134 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
30135 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
30136 Gnatvsn.Gnat_Static_Version_String to reduce differences between
30139 2003-10-24 Pascal Obry <obry@gnat.com>
30142 * adadecode.c (ostrcpy): New function.
30143 (__gnat_decode): Use ostrcpy of strcpy.
30144 (has_prefix): Set first parameter a const.
30145 (has_suffix): Set first parameter a const.
30146 Update copyright notice. Fix source name in header.
30147 Removes a trailing space.
30149 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
30152 Remove the test against being in No_Run_Time_Mode before generating a
30153 call to Register_Tag. It is redundant with the test against the
30154 availability of the function Register_Tag.
30156 2003-10-24 Vincent Celier <celier@gnat.com>
30158 * g-catiio.adb: (Month_Name): Correct spelling of February
30160 * make.adb: (Mains): New package
30161 (Initialize): Call Mains.Delete
30162 (Gnatmake): Check that each main on the command line is a source of a
30163 project file and, if there are several mains, each of them is a source
30164 of the same project file.
30165 (Gnatmake): When a foreign language is specified in attribute Languages,
30166 no main is specified on the command line and attribute Mains is not
30167 empty, only build the Ada main. If there is no Ada main, just compile
30168 the Ada sources and their closure.
30169 (Gnatmake): If a main is specified on the command line with directory
30170 information, check that the source exists and, if it does, that the path
30171 is the actual path of a source of a project.
30174 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
30175 Full_Path is True, return the full path instead of the simple file name.
30176 (Project_Of): New function
30179 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
30180 defaulted to False.
30181 (Project_Of): New function
30183 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
30185 * Makefile.generic:
30186 Ensure objects of main project are always checked and rebuilt if needed.
30187 Set CC to gcc by default.
30188 Prepare new handling of link by creating a global archive (not activated
30191 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
30192 stringt.h: Update copyright notice. Remove trailing blanks.
30193 Fix source name in header.
30195 2003-10-24 Robert Dewar <dewar@gnat.com>
30197 * sem_ch12.adb: Minor reformatting
30200 Minor reformatting (including new function return style throughout)
30203 Minor reformatting (including new function return style throughout)
30205 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
30207 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
30208 stringt.h: Update copyright notice. Remove trailing blanks.
30209 Fix source name in header.
30211 2003-10-24 GNAT Script <nobody@gnat.com>
30213 * Make-lang.in: Makefile automatically updated
30215 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
30217 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
30218 stringt.h: Convert to ISO C90 declarations and definitions.
30220 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
30223 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
30224 External_Tag attribute definition clauses.
30226 2003-10-23 Ed Schonberg <schonberg@gnat.com>
30229 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
30230 child unit, generate a fully qualified name to avoid spurious errors
30231 when the context contains renamings of different child units with
30232 the same simple name.
30234 * exp_dbug.ads: Add documentation on name qualification for renamings
30237 2003-10-23 Robert Dewar <dewar@gnat.com>
30239 * g-regpat.ads, g-regpat.adb: Minor reformatting
30241 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
30243 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
30245 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30247 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
30250 * urealp.h: (Machine): Update to proper definition.
30252 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
30254 * init.c, adaint.c: Minor reformatting.
30256 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
30258 * adaint.c (w32_epoch_offset): Define static const at file level.
30259 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
30260 rather than t_create, t_access in call to GetFileTime. Use union
30261 to convert between FILETIME and unsigned long long.
30262 (__gnat_file_time_name): Test for invalid file handle.
30263 (__gnat_set_filetime_name): Support win32 targets using
30264 w32api SetFileTime.
30266 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
30268 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
30270 * ctrl_c.c (__gnat_int_handler): Remove declaration.
30272 * decl.c (creat_concat_name): Const-ify prefix.
30274 * adaint.c: Include ctype.h if __MINGW32__.
30275 (__gnat_readlink): Mark arguments as possibly unused.
30276 (__gnat_symlink): Likewise.
30277 (__gnat_is_symbolic_link): Likewise.
30278 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
30280 (__gnat_file_time_name): Don't declare struct stat statbuf when
30282 (__gnat_is_absolute_path): Add parenthesis around condition of
30283 'if' statement to avoid warning.
30284 (__gnat_plist_init): Specify void as parameter.
30285 (plist_enter): Likewise.
30286 (plist_leave): Likewise.
30287 (remove_handle): Make static. Initialize prev.
30289 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
30292 * Makefile.in: Disable build of gnatpsta.
30293 * cstreams.c (__gnat_full_name): Minor improvements and clean up
30294 of previous change.
30296 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30298 * tracebak.c (MAX): Avoid redefinition warning.
30300 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
30301 Change msg to const char *.
30302 (__gnat_install_handler): Remove ss, unused.
30303 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
30305 * cstreams.c (__gnat_full_name): Declare p only when used.
30306 (__gnat_full_name) [sgi] Return buffer.
30308 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
30310 * mingw32.h: New file.
30311 * gnat_wrapper.adb: New file.
30313 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
30315 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
30316 string match a pre compiled regular expression (the corresponding
30317 version of the function working on a raw regular expression)
30318 Fix typos in various comments
30319 Update copyright notice in spec
30321 2003-10-21 Gary Dismukes <dismukes@gnat.com>
30324 (Component_Needs_Simple_Initialization): Return False when the type is a
30325 packed bit array. Revise spec comments to document this case.
30328 (Expand_Pragma_Import): Set any expression on the imported object to
30329 empty to avoid initializing imported objects (in particular this
30330 covers the case of zero-initialization of bit arrays).
30331 Update copyright notice.
30333 2003-10-21 Ed Schonberg <schonberg@gnat.com>
30336 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
30337 a subunit is missing.
30338 (Instantiate_Subprogram_Body): If body of function is missing, set type
30339 of return expression explicitly in dummy body, to prevent cascaded
30340 errors when a subunit is missing.
30344 (Access_Subprogram_Declaration): Verify that return type is valid.
30348 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
30353 (Corresponding_Discriminant): If the scope of the discriminant is a
30354 private type without discriminant, use its full view.
30357 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
30359 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
30360 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
30361 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
30362 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
30363 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
30364 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
30365 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
30366 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
30367 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
30368 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
30369 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
30370 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
30371 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
30372 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
30373 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
30374 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
30375 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
30376 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
30377 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
30378 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
30379 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
30380 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
30381 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
30382 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
30383 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
30384 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
30385 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
30386 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
30387 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
30388 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
30389 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
30390 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
30391 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
30392 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
30393 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
30394 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
30395 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
30396 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
30397 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
30398 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
30399 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
30400 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
30401 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
30402 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
30403 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
30404 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
30405 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
30406 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
30407 vms_conv.ads, vms_conv.adb, vms_data.ads,
30408 vxaddr2line.adb: Files added. Merge with ACT tree.
30410 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
30411 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
30412 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
30413 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
30414 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
30415 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
30416 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
30417 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
30418 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
30419 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
30421 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
30422 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
30423 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
30424 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
30425 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
30426 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
30427 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
30428 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
30429 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
30430 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
30431 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
30432 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
30433 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
30434 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
30435 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
30436 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
30437 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
30438 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
30439 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
30440 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
30441 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
30442 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
30443 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
30444 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
30445 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
30446 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
30447 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
30448 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
30449 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
30450 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
30451 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
30452 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
30453 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
30454 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
30455 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
30456 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
30457 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
30458 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
30459 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
30460 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
30461 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
30462 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
30463 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
30464 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
30465 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
30466 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
30467 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
30468 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
30469 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
30470 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
30471 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
30472 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
30473 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
30474 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
30475 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
30476 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
30477 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
30478 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
30479 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
30480 checks.adb, checks.ads, cio.c, comperr.adb,
30481 comperr.ads, csets.adb, cstand.adb, cstreams.c,
30482 debug_a.adb, debug_a.ads, debug.adb, decl.c,
30483 einfo.adb, einfo.ads, errout.adb, errout.ads,
30484 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
30485 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
30486 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
30487 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
30488 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
30489 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
30490 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
30491 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
30492 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
30493 fe.h, fmap.adb, fmap.ads, fname.adb,
30494 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
30495 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
30496 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
30497 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
30498 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
30499 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
30500 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
30501 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
30502 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
30503 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
30504 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
30505 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
30506 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
30507 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
30508 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
30509 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
30510 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
30511 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
30512 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
30513 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
30514 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
30515 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
30516 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
30517 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
30518 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
30519 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
30520 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
30521 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
30522 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
30523 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
30524 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
30525 layout.adb, lib.adb, lib.ads, lib-list.adb,
30526 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
30527 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
30528 link.c, live.adb, make.adb, make.ads,
30529 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
30530 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
30531 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
30532 misc.c, mkdir.c, mlib.adb, mlib.ads,
30533 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
30534 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
30535 namet.adb, namet.ads, namet.h, nlists.ads,
30536 nlists.h, nmake.adt, opt.adb, opt.ads,
30537 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
30538 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
30539 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
30540 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
30541 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
30542 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
30543 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
30544 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
30545 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
30546 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
30547 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
30548 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
30549 prj-util.adb, prj-util.ads, raise.c, raise.h,
30550 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
30551 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
30552 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
30553 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
30554 scans.ads, scn.adb, scn.ads, s-crc32.adb,
30555 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
30556 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
30557 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
30558 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
30559 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
30560 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
30561 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
30562 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
30563 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
30564 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
30565 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
30566 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
30567 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
30568 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
30569 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
30570 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
30571 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
30572 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
30573 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
30574 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
30575 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
30576 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
30577 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
30578 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
30579 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
30580 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
30581 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
30582 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
30583 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
30584 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
30585 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
30586 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
30587 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
30588 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
30589 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
30590 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
30591 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
30592 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
30593 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
30594 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
30595 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
30596 stringt.adb, stringt.ads, stringt.h, style.ads,
30597 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
30598 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
30599 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
30600 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
30601 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
30602 table.adb, table.ads, targparm.adb, targparm.ads,
30603 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
30604 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
30605 ttypes.ads, types.ads, types.h, uintp.adb,
30606 uintp.ads, uintp.h, uname.adb, urealp.adb,
30607 urealp.ads, urealp.h, usage.adb, utils2.c,
30608 utils.c, validsw.adb, validsw.ads, widechar.adb,
30609 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
30610 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
30611 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
30612 gnatvsn.ads: Merge with ACT tree.
30614 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
30616 2003-10-20 Mark Mitchell <mark@codesourcery.com>
30618 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
30619 (gnat_ug_vmx.info): Likewise.
30620 (gnat_ug_vxw.info): Likewise.
30621 (gnat_ug_wnt.info): Likewise.
30622 (gnat_rm.info): Likewise.
30623 (gnat-style.info): Likewise.
30625 * Make-lang.in (ada.install-info): Remove target.
30626 (info): New target.
30627 (install-info): Likewise.
30628 (gnat_ug_unx.info): Simplify rule.
30629 (gnat_ug_vmx.info): Likewise.
30630 (gnat_ug_vxw.info): Likewise.
30631 (gnat_ug_wnt.info): Likewise.
30632 (gnat_rm.info): Likewise.
30633 (gnat-style.info): Likewise.
30635 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
30637 * Make-lang.in: Replace uses of $(target_alias) with
30638 $(target_noncanonical).
30639 * ada/Makefile.in: Remove unused mention of $(target_alias).
30641 2003-10-06 Mark Mitchell <mark@codesourcery.com>
30643 * Make-lang.in (ada.info): Replace with ...
30645 (ada.dvi): Replace with ...
30648 2003-09-29 Zack Weinberg <zack@codesourcery.com>
30650 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
30651 initialize dconstp5 and dconstmp5.
30653 2003-09-28 Richard Henderson <rth@redhat.com>
30655 * trans.c (tree_transform): Update call to expand_asm_operands.
30657 2003-09-21 Richard Henderson <rth@redhat.com>
30659 * trans.c, utils.c: Revert.
30661 2003-09-21 Richard Henderson <rth@redhat.com>
30663 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
30666 2003-09-04 Michael Matz <matz@suse.de>
30668 * misc.c: Include "target.h".
30669 * Make-lang.in (misc.o): Add dependency on target.h.
30671 2003-09-03 DJ Delorie <dj@redhat.com>
30673 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
30676 2003-08-30 Zack Weinberg <zack@codesourcery.com>
30678 * Makefile.in: Update substitutions to match changes to
30679 configure. Use include directives instead of @-insertions
30680 to read in host and target fragments. Add a rule to
30681 regenerate ada/Makefile.
30683 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
30685 * lang-options.h: Remove.
30686 * lang.opt: Add help text.
30688 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
30690 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
30693 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
30695 * misc.c (gnat_handle_option): Don't handle filenames.
30697 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
30699 * Make-lang.in: Replace PWD with PWD_COMMAND.
30700 * Makefile.adalib: Likewise.
30701 * Makefile.in: Likewise.
30703 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
30705 * misc.c (gnat_argv): Revert last change.
30706 (gnat_handle_option, gnat_init_options): Copy arguments.
30708 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
30710 * misc.c (gnat_argv): Make const.
30712 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
30714 * misc.c (save_argc, save_argv): Keep non-static!
30716 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
30718 * misc.c (save_argc, save_argv): Make static.
30719 (gnat_init_options): New prototype.
30720 (gnat_init_options): Update.
30722 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
30724 * gnat_ug.texi: Remove unlikely characters from @vars.
30725 * gnat_ug_vms.texi: Regenerate.
30727 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
30729 * misc.c (record_code_position): Adjust emit_note call.
30731 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
30733 * misc.c (gnat_handle_option): Don't check for missing arguments.
30735 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
30737 * utils.c (end_subprog_body): Adjust expand_function_end call.
30739 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
30741 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
30744 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
30746 * lang.opt: Declare Ada.
30747 * misc.c (gnat_init_options): Update.
30749 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
30751 * utils.c (begin_subprog_body): Adjust init_function_start call.
30753 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
30755 * Make-lang.in: Update to use options.c and options.h.
30756 * misc.c: Include options.h not aoptions.h.
30757 (gnat_handle_option): Abort on unrecognized switch.
30758 (gnat_init_options): Request Ada switches.
30760 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
30762 * lang.opt: Add -Wall.
30763 * misc.c (gnat_handle_option): Handle it.
30765 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
30767 * misc.c (gnat_handle_option): Fix warnings.
30769 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
30771 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
30773 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
30775 * Make-lang.in: Update to handle command-line options.
30776 * lang.opt: New file.
30777 * misc.c: Include aoptions.h.
30778 (cl_options_count, cl_options): Remove.
30779 (gnat_handle_option): New.
30780 (gnat_decode_option): Remove.
30781 (LANG_HOOKS_DECODE_OPTION): Remove.
30782 (LANG_HOOKS_HANDLE_OPTION): Override.
30784 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
30786 * init.c, misc.c, trans.c, utils.c: Remove dead code.
30788 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
30790 * Makefile.in: Replace "host_canonical" with "host" for autoconf
30793 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
30795 * Make-lang.in: Update.
30796 * misc.c: Include opts.h. Define cl_options_count and cl_options.
30798 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
30800 * misc.c (gnat_init_options): Update.
30802 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
30804 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
30805 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
30806 __attribute__ ((__unused__)).
30808 2003-06-05 Jan Hubicka <jh@suse.cz>
30810 * Make-lang.in: Add support for stageprofile and stagefeedback
30812 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
30814 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
30815 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
30817 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
30819 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
30820 Remove non-VMS directive.
30821 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
30823 (Examples of gnatls Usage): Remove VMS alternative.
30825 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
30828 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
30829 and turn ZCX_By_Default back to False since the underlying support
30830 is not quite there yet.
30832 2003-06-01 Andreas Jaeger <aj@suse.de>
30834 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
30835 and ROUND_TYPE_SIZE_UNIT.
30837 2003-05-22 Geert Bosch <bosch@gnat.com>
30839 * gnat_rm.texi : Remove reference to Ada Core Technologies.
30841 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
30843 * trans.c (tree_transform): Use location_t and input_location
30845 (build_unit_elab): Likewise.
30846 * utils.c (create_label_decl): Likewise.
30848 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
30850 * trans.c (tree_transform, build_unit_elab,
30851 set_lineno): Rename lineno to input_line.
30852 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
30853 end_subprog_body): Likewise.
30854 * utils2.c (build_call_raise): Likewise.
30856 2003-05-01 Laurent Guerby <guerby@acm.org>
30859 * 5iosinte.ads: Increase pthread_cond_t size to match recent
30860 LinuxThread and NPTL version, merge from ACT.
30862 2003-04-28 Zack Weinberg <zack@codesourcery.com>
30864 * utils.c (convert): No need to clear TREE_CST_RTL.
30866 2003-04-23 Geert Bosch <bosch@gnat.com>
30868 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
30869 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
30870 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
30871 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
30872 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
30873 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
30874 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
30875 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
30876 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
30877 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
30878 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
30879 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
30880 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
30881 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
30882 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
30883 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
30884 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
30885 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
30886 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
30887 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
30888 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
30889 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
30890 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
30891 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
30892 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
30893 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
30894 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
30895 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
30896 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
30897 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
30898 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
30899 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
30900 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
30901 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
30902 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
30903 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
30904 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
30905 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
30906 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
30907 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
30908 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
30909 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
30910 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
30911 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
30912 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
30913 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
30914 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
30915 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
30916 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
30917 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
30918 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
30919 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
30920 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
30921 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
30922 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
30923 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
30924 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
30925 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
30926 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
30927 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
30928 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
30929 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
30930 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
30931 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
30932 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
30933 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
30934 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
30935 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
30936 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
30937 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
30938 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
30939 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
30940 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
30941 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
30942 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
30943 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
30944 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
30945 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
30946 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
30947 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
30948 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
30949 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
30950 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
30951 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
30952 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
30953 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
30954 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
30955 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
30956 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
30957 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
30958 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
30959 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
30960 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
30961 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
30962 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
30963 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
30964 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
30965 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
30966 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
30967 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
30968 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
30969 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
30970 ali.adb, ali.ads, alloc.ads, argv.c,
30971 atree.adb, atree.ads, atree.h, aux-io.c,
30972 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
30973 binde.adb, binde.ads, binderr.adb, binderr.ads,
30974 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
30975 butil.adb, butil.ads, cal.c, calendar.ads,
30976 casing.adb, casing.ads, ceinfo.adb, checks.adb,
30977 checks.ads, cio.c, comperr.adb, comperr.ads,
30978 config-lang.in, csets.adb, csets.ads, csinfo.adb,
30979 cstand.adb, cstand.ads, cuintp.c, debug.adb,
30980 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
30981 dec-io.ads, dec.ads, deftarg.c, directio.ads,
30982 einfo.adb, einfo.ads, elists.adb, elists.ads,
30983 elists.h, errno.c, errout.adb, errout.ads,
30984 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
30985 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
30986 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
30987 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
30988 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
30989 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
30990 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
30991 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
30992 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
30993 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
30994 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
30995 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
30996 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
30997 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
30998 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
30999 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
31000 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
31001 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
31002 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
31003 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
31004 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
31005 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
31006 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
31007 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
31008 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
31009 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
31010 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
31011 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
31012 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
31013 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
31014 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
31015 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
31016 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
31017 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
31018 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
31019 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
31020 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
31021 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
31022 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
31023 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
31024 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
31025 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
31026 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
31027 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
31028 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
31029 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
31030 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
31031 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
31032 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
31033 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
31034 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
31035 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
31036 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
31037 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
31038 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
31039 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
31040 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
31041 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
31042 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
31043 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
31044 lib.adb, lib.ads, live.adb, live.ads,
31045 machcode.ads, make.adb, make.ads, makeusg.adb,
31046 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
31047 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
31048 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
31049 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
31050 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
31051 mlib.ads, namet.adb, namet.ads, nlists.adb,
31052 nlists.ads, opt.adb, opt.ads, osint-b.adb,
31053 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
31054 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
31055 osint.ads, output.adb, output.ads, par-ch10.adb,
31056 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
31057 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
31058 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
31059 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
31060 par-tchk.adb, par-util.adb, par.adb, par.ads,
31061 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
31062 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
31063 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
31064 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
31065 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
31066 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
31067 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
31068 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
31069 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
31070 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
31071 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
31072 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
31073 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
31074 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
31075 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
31076 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
31077 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
31078 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
31079 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
31080 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
31081 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
31082 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
31083 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
31084 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
31085 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
31086 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
31087 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
31088 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
31089 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
31090 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
31091 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
31092 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
31093 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
31094 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
31095 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
31096 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
31097 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
31098 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
31099 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
31100 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
31101 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
31102 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
31103 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
31104 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
31105 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
31106 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
31107 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
31108 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
31109 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
31110 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
31111 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
31112 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
31113 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
31114 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
31115 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
31116 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
31117 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
31118 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
31119 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
31120 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
31121 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
31122 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
31123 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
31124 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
31125 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
31126 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
31127 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
31128 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
31129 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
31130 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
31131 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
31132 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
31133 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
31134 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
31135 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
31136 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
31137 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
31138 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
31139 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
31140 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
31141 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
31142 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
31143 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
31144 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
31145 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
31146 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
31147 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
31148 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
31149 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
31150 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
31151 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
31152 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
31153 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
31154 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
31155 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
31156 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
31157 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
31158 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
31159 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
31160 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
31161 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
31162 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
31163 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
31164 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
31165 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
31166 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
31167 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
31168 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
31169 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
31170 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
31171 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
31172 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
31173 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
31174 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
31175 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
31176 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
31177 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
31178 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
31179 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
31180 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
31181 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
31182 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
31183 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
31184 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
31185 snames.ads, sprint.adb, sprint.ads, stand.adb,
31186 stand.ads, stringt.adb, stringt.ads, style.adb,
31187 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
31188 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
31189 switch-m.ads, switch.adb, switch.ads, system.ads,
31190 table.adb, table.ads, targparm.adb, targparm.ads,
31191 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
31192 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
31193 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
31194 ttypef.ads, ttypes.ads, types.adb, types.ads,
31195 uintp.adb, uintp.ads, uname.adb, uname.ads,
31196 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
31197 usage.adb, usage.ads, validsw.adb, validsw.ads,
31198 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
31199 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
31200 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
31201 formatting and other trivial changes from ACT.
31203 2003-04-12 Zack Weinberg <zack@codesourcery.com>
31205 * gigi.h, utils2.c (build_constructor):
31206 Rename gnat_build_constructor. Use build_constructor.
31207 * decl.c (gnat_to_gnu_entity)
31208 * trans.c (tree_transform, pos_to_constructor, extract_values)
31209 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
31210 (unchecked_convert)
31211 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
31212 (fill_vms_descriptor):
31215 2003-04-06 Zack Weinberg <zack@codesourcery.com>
31217 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
31218 * misc.c (gnat_tree_size): New function.
31219 (LANG_HOOKS_TREE_SIZE): Override.
31221 2003-04-03 Jason Merrill <jason@redhat.com>
31223 * misc.c (gnat_adjust_rli): #if 0.
31225 2003-03-31 Geert Bosch <bosch@gnat.com>
31228 * link.c : Fix misspelled "const" keyword
31230 2003-03-23 Mark Mitchell <mark@codesourcery.com>
31233 * utils2.c: Adjust calls to put_var_into_stack.
31235 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
31237 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
31239 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
31241 * misc.c (gnat_init): Update for new prototype.
31243 2003-03-05 Olivier Hainque <hainque@gnat.com>
31246 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
31247 warning, and fix return type for the IN_RTS && !SJLJ case.
31249 2003-03-04 Tom Tromey <tromey@redhat.com>
31251 * Make-lang.in (ada.tags): New target.
31253 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
31256 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
31257 wrapper, which name remains constant whatever underlying GCC
31260 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
31261 the stable interface needed for a-except.
31263 2003-03-02 Andreas Jaeger <aj@suse.de>
31265 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31266 gnat_ug_wnt.texi: Regenerate.
31268 2003-03-02 Laurent Guerby <guerby@acm.org>
31270 * Makefile.in (install-gnatlib): Match previous change there
31273 2003-02-28 Andreas Schwab <schwab@suse.de>
31275 * Make-lang.in (install-gnatlib): Change to ada directory before
31276 running make instead of using ada/Makefile directly.
31278 2003-02-18 Ben Elliston <bje@redhat.com>
31280 Part of PR ada/9406
31281 * gnat_ug.texi (Binder output file): Grammar fix.
31283 2003-02-18 Ben Elliston <bje@redhat.com>
31286 * 5qtaprop.adb (Sleep): Fix typo in comment.
31288 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
31290 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
31291 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31292 gnat_ug_wnt.texi: Regenerate.
31294 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
31296 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
31297 be created if necessary.
31298 (ada.install-common): Let $(DESTDIR)$(bindir) be created
31299 if necessary. Remove erroneous and redundant gnatchop
31300 installation commands. Test for gnatdll before attempting
31302 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
31303 and gnatdll from all plausible locations.
31305 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
31307 * utils2.c (build_unary_op): Don't check flag_volatile.
31308 * gnat_ug.texi: Remove -fvolatile from example.
31309 * gnat_ug_vxw.texi: Likewise.
31311 2003-01-29 Laurent Guerby <guerby@acm.org>
31314 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
31315 * Makefile.in: match previous change.
31316 * Make-lang.in: match previous change.
31318 2003-01-29 Joel Sherrill <joel@OARcorp.com>
31320 * 5rosinte.ads: Add SIGXCPU.
31321 * 5rtpopsp.adb: New file.
31322 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
31323 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
31324 specific file 5rtpopsp.adb.
31325 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
31326 is likely needed for all newlib targets.
31327 * init.c: Add RTEMS specific version of __gnat_initialize().
31329 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31331 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
31333 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31335 * init.c (__gnat_error_handler): Make msg const.
31337 * gmem.c (convert_addresses): Move declaration ...
31338 * adaint.h: ... here.
31339 * adaint.c (convert_addresses): Adapt addrs type to match
31342 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
31344 2003-01-24 Andreas Schwab <schwab@suse.de>
31346 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
31347 size_t to avoid warning.
31349 2003-01-21 Zack Weinberg <zack@codesourcery.com>
31351 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
31353 2003-01-09 Geoffrey Keating <geoffk@apple.com>
31355 * gnat_rm.texi: Remove RCS version number.
31357 * ada-tree.h (union lang_tree_node): Add chain_next option.
31359 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
31361 * Make-lang.in (ada.install-info, ada.install-common,
31362 ada.uninstall): Prepend $(DESTDIR) to the destination
31363 directory in all (un)installation commands.
31364 * Makefile.in (install-gnatlib, install-rts): Ditto.
31366 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
31368 * gnat_rm.texi, gnat_ug.texi: Use @copying.
31369 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31370 gnat_ug_wnt.texi: Regenerate.
31372 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
31374 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
31376 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
31377 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
31378 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
31379 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
31380 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
31381 $(srcdir)/doc/include/gcc-common.texi.
31383 2002-12-15 Geert Bosch <bosch@gnat.com>
31385 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
31387 2002-12-14 Geert Bosch <bosch@gnat.com>
31390 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
31391 case of a body created for a Renaming_As_Body, on which
31392 conformance checks are not performed.
31394 2002-11-30 Zack Weinberg <zack@codesourcery.com>
31396 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
31397 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
31398 not already included.
31399 * Make-lang.in: Update dependencies.
31401 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
31402 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
31403 solution to buffer overflow bug on GNU/Linux.
31405 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
31409 * bindgen.adb: Remove all references to Public_Version.
31410 * comperr.adb: Remove all references to Public_Version and
31411 GNATPRO_Version; correct bug reporting instructions.
31412 * comperr.ads: Change to match bug box.
31413 * gnatvsn.ads: Remove all references to Public version and
31416 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
31419 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
31423 * config-lang.in: Remove diff_excludes.
31425 2002-11-05 Graham Stott <graham.stott@btinternet.com>
31428 * trans.c (gnu_pending_elaboration_lists): New GC root.
31429 (build_unit_elab): Use..
31431 2002-10-30 Geert Bosch <bosch@gnat.com>
31434 * misc.c : Include optabs.h
31436 * Make-lang.in (misc.o): Add dependency on optabs.h
31438 2002-10-29 Geert Bosch <bosch@gnat.com>
31441 * Make-lang.in (gnatbind): Depend on CONFIG_H
31443 2002-10-29 Geert bosch <bosch@gnat.com>
31446 * misc.c: Unrevert misc.c (1.13)
31448 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
31450 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
31451 maintainership comments.
31453 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
31456 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
31457 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
31458 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
31459 7staprop.adb: Correct statements in comments about
31460 maintainership of GNAT.
31463 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
31464 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
31465 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
31466 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
31467 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
31468 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
31469 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
31470 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
31471 comments about maintainership of GNAT.
31473 PR ada/6919 (forward port of patch for PR ada/5904)
31474 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
31475 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
31476 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
31477 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
31478 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
31479 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
31480 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
31481 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
31482 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
31483 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
31484 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
31485 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
31486 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
31487 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
31488 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
31489 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
31490 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
31491 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
31492 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
31493 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
31494 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
31495 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
31496 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
31497 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
31498 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
31499 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
31500 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
31501 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
31502 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
31503 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
31504 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
31505 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
31506 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
31507 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
31508 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
31509 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
31510 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
31511 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
31512 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
31513 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
31514 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
31515 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
31516 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
31517 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
31518 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
31519 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
31520 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
31521 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
31522 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
31523 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
31524 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
31525 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
31526 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
31527 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
31528 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
31529 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
31530 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
31531 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
31532 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
31533 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
31534 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
31535 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
31536 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
31537 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
31538 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
31539 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
31540 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
31541 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
31542 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
31543 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
31544 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
31545 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
31546 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
31547 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
31548 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
31549 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
31550 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
31551 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
31552 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
31553 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
31554 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
31555 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
31556 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
31557 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
31558 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
31559 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
31560 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
31561 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
31562 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
31563 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
31564 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
31565 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
31566 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
31567 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
31568 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
31569 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
31570 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
31571 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
31572 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
31573 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
31574 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
31575 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
31576 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
31577 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
31578 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
31579 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
31580 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
31581 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
31582 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
31583 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
31584 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
31585 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
31586 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
31587 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
31588 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
31589 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
31590 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
31591 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
31592 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
31593 par-endh.adb par-labl.adb par-load.adb par-prag.adb
31594 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
31595 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
31596 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
31597 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
31598 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
31599 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
31600 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
31601 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
31602 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
31603 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
31604 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
31605 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
31606 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
31607 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
31608 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
31609 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
31610 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
31611 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
31612 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
31613 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
31614 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
31615 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
31616 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
31617 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
31618 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
31619 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
31620 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
31621 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
31622 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
31623 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
31624 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
31625 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
31626 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
31627 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
31628 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
31629 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
31630 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
31631 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
31632 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
31633 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
31634 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
31635 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
31636 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
31637 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
31638 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
31639 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
31640 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
31641 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
31642 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
31643 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
31644 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
31645 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
31646 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
31647 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
31648 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
31649 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
31650 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
31651 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
31652 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
31653 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
31654 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
31655 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
31656 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
31657 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
31658 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
31659 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
31660 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
31661 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
31662 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
31663 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
31664 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
31665 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
31666 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
31667 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
31668 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
31669 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
31670 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
31671 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
31672 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
31673 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
31674 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
31675 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
31676 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
31677 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
31678 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
31679 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
31680 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
31681 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
31682 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
31683 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
31684 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
31685 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
31686 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
31687 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
31688 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
31689 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
31690 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
31691 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
31692 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
31693 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
31694 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
31695 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
31696 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
31697 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
31698 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
31699 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
31700 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
31701 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
31702 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
31703 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
31704 stringt.ads stringt.h style.adb style.ads stylesw.adb
31705 stylesw.ads switch.adb switch.ads sysdep.c system.ads
31706 table.adb table.ads targparm.adb targparm.ads targtyps.c
31707 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
31708 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
31709 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
31710 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
31711 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
31712 usage.ads utils.c utils2.c validsw.adb validsw.ads
31713 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
31714 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
31715 xtreeprs.adb: Correct statements in comments about maintainership
31718 2002-09-23 Zack Weinberg <zack@codesourcery.com>
31720 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
31721 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
31722 * gnatvsn.ads: Gnat_Version_String is now a function.
31723 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
31724 copy the C version_string into a String and return it.
31725 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
31726 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
31727 Remove pragma Ident (Gnat_Version_String). If this was the
31728 sole use of package Gnatvsn, remove the with statement too.
31729 * gnat1drv.adb: Tweak -gnatv output.
31731 2002-09-17 Richard Henderson <rth@redhat.com>
31733 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
31734 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
31735 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
31736 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
31737 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
31738 and real_2expN instead of a loop.
31739 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
31740 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
31742 2002-08-25 Andre Leis <a.leis@gmx.net>
31743 David Billinghurst (David.Billinghurst@riotinto.com>
31745 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
31747 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31749 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
31750 Remove $(CONFIG_H) dependency.
31752 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
31754 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
31756 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31758 * adadecode.c (ada_demangle): Use xstrdup in lieu of
31760 * misc.c (gnat_decode_option): Likewise.
31762 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
31764 * make.adb (Add_Switch): Make Generic_Position a procedure. The
31765 function approach did not work well because of a side effect (the
31766 function call could reallocate the table which was being indexed
31767 using its result). Fixes ada/4851. [RESURRECTED]
31769 2002-07-01 Roger Sayle <roger@eyesopen.com>
31771 * ada/utils.c (builtin_function): Accept an additional parameter.
31773 2002-06-28 Andreas Jaeger <aj@suse.de>
31776 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
31779 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31781 * Makefile.in (SHELL): Set to @SHELL@.
31783 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31785 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
31786 array size calculation.
31788 2002-06-04 Andreas Jaeger <aj@suse.de>
31790 * Make-lang.in (gnatbind): Readd rule that has been lost in last
31793 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
31795 Merge from pch-branch:
31797 * config-lang.in (gtfiles): Add ada-tree.h.
31798 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
31799 (SET_TYPE_MODULUS): New.
31800 (SET_TYPE_INDEX): New.
31801 (SET_TYPE_DIGITS_VALUE): New.
31802 (SET_TYPE_RM_SIZE): New.
31803 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
31804 (SET_TYPE_ADA_SIZE): New.
31805 (SET_TYPE_ACTUAL_BOUNDS): New.
31806 (SET_DECL_CONST_CORRESPONDING_VAR): New.
31807 (SET_DECL_ORIGINAL_FIELD): New.
31808 (TREE_LOOP_ID): Correct typo.
31809 * decl.c: Use new macros.
31810 * utils.c: Include debug.h, use new macros.
31811 * utils2.c: Use new macros.
31813 * ada-tree.h: Update all macros for new tree description.
31814 (struct tree_loop_id): New.
31815 (union lang_tree_node): New.
31816 (struct lang_decl): New.
31817 (struct lang_type): New.
31818 * misc.c (gnat_mark_tree): Delete.
31819 (LANG_HOOKS_MARK_TREE): Delete.
31820 * trans.c (tree_transform): No longer any need to cast
31823 * utils.c (struct language_function): New dummy structure.
31825 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
31826 (misc.o): Likewise.
31827 (utils.o): Likewise; also gtype-ada.h.
31828 * Make-lang.in (gnat1): Add dependency on s-gtype.
31829 (gnatbind): Add dependency on $(CONFIG_H).
31830 * utils.c: Correct last #include.
31831 (stuct e_stack): Remove unnecessary 'static'.
31832 (mark_e_stack): Remove unused prototype.
31834 * scn-nlit.adb: Remove whitespace after version number to
31835 keep lines under 80 chars.
31836 * snames.adb: Likewise.
31837 * treepr.ads: Likewise.
31839 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
31840 (misc.o): Likewise.
31841 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
31842 * config-lang.in (gtfiles): New.
31843 * decl.c: Use gengtype for roots.
31844 * gigi.h: Use gengtype for roots.
31845 * trans.c: Use gengtype for roots.
31846 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
31848 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
31850 * misc.c (gnat_init): Adjust setting of internal_error_function.
31852 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
31854 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
31855 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31856 gnat_ug_wnt.texi: Regenerate.
31858 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
31860 * 5ntaprop.adb (with System.OS_Primitives): Remove.
31862 * cstreams.c (max_path_len): Move from here ...
31863 * adaint.c (__gnat_max_path_len): ... to here.
31864 * adaint.c (__gnat_max_path_len): Declare.
31865 * g-dirope.adb (Max_Path): Adjust.
31866 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
31867 * i-cstrea.ads (max_path_len): Adjust.
31868 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
31869 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
31871 * Makefile.in, Make-lang.in: Documentation is now built in
31872 Make-lang.in. Store Info and generated Texinfo files in the
31874 * gnat_ug.texi: Remove CVS keywords, correct version number.
31875 Set file name correctly.
31877 * gnat_ug_*.texi: Add.
31878 * .cvsignore: Ignore generated Texinfo files.
31880 2002-05-30 Zack Weinberg <zack@codesourcery.com>
31882 * ada.h: Add MI guard macro.
31883 (SUBTYPE): Define constants with an anonymous enum, not static
31885 (IN): Cast constants to appropriate type before use.
31887 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
31889 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
31892 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31894 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
31895 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
31896 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
31897 (ALL_ADA_CFLAGS): Likewise.
31898 (ADA_INCLUDES): Likewise.
31899 Adapt for new working dir.
31900 (GNATBIND): Use Makefile.in version.
31901 (.SUFFIXES): Copy from Makefile.in.
31902 (ada-warn): Define.
31903 (.adb.o, .ads.o): Copy from Makefile.in.
31904 Added $(OUTPUT_OPTION).
31905 (GNAT1_C_OBJS): Moved from Makefile.in.
31906 Prefix with ada subdir.
31907 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
31908 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
31909 Adapt for new working dir.
31910 (EXTRA_GNATBIND_OBJS): Likewise.
31911 (ADA_BACKEND): Moved from Makefile.in.
31912 Renamed to avoid conflict with global BACKEND.
31914 (TARGET_ADA_SRCS): Moved from Makefile.in.
31915 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
31917 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
31918 (ada_extra_files): Moved from Makefile.in.
31919 Prefix with ada subdir.
31920 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
31921 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
31922 (ada/nmake.ads): Likewise.
31923 (update-sources): Moved from Makefile.in.
31924 Prefix with ada subdir.
31925 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
31926 (ADA_TREE_H): Likewise.
31927 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
31928 (ada/memtrack.o): Likewise.
31929 (ada/adadecode.o): Likewise.
31930 Update dependencies.
31931 (ada/adaint.o): New.
31932 (ada/argv.o): Moved from Makefile.in.
31933 Prefix with ada subdir.
31934 Update dependencies.
31935 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
31936 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
31937 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
31938 Prefix with ada subdir.
31939 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
31940 (GNAT DEPENDENCIES): Regenerate.
31941 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
31942 toplevel Makefile.in.
31943 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
31944 (TARGET_ADA_SRCS): Removed.
31945 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
31946 (GNATBIND_OBJS): Likewise.
31947 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
31948 (BACKEND): Removed.
31949 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
31950 (TREE_H): Likewise.
31951 (ada_extra_files): Likewise.
31952 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
31953 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
31954 (update-sources): Likewise.
31955 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
31956 (ADA_TREE_H): Likewise.
31957 (adadecoce.o): Likewise.
31958 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
31959 (GNAT DEPENDENCIES): Likewise.
31961 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31963 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
31964 * Makefile.in: Likewise.
31966 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
31968 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
31969 Restore $(CONFIG_H) and prefix.o dependencies.
31970 (ada.stage[1-4]): Depend on stage?-start.
31972 * Makefile.in (b_gnatb.c): Depend on interfac.o.
31974 2002-05-02 Jim Wilson <wilson@redhat.com>
31976 * utils.c (finish_record_type): Change record_size to record_type.
31978 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
31980 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
31981 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
31982 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
31984 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
31986 * misc.c (gnat_parse_file): Update.
31988 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
31990 * misc.c (gnat_init): Don't set lang_attribute_common.
31992 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
31994 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
31996 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
31998 * gnat_ug.texi: New file.
32000 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
32001 instead of gfdl.texi
32003 * xgnatug.adb, ug_words: New files.
32005 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
32006 gnat_rm and gnat-style manuals.
32008 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
32010 * gigi.h (incomplete_type_error): Remove.
32011 * utils.c (incomplete_type_error): Remove.
32013 2002-04-16 Mark Mitchell <mark@codesourcery.com>
32015 * trans.c (tree_transform): Add has_scope argument to
32016 expand_start_stmt_expr.
32018 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
32020 * gigi.h (truthvalue_conversion): Rename.
32021 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
32022 * trans.c (tree_transform): Update.
32023 * utils2.c (truthvalue_conversion): Rename, update.
32024 (build_binary_op, build_unary_op): Update.
32026 2002-04-04 Laurent Guerby <guerby@acm.org>
32028 * make.adb: Implement -margs, remove restriction about file name placement.
32029 * makeusg.adb: Documentation update.
32030 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
32031 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
32033 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
32035 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
32036 (builtin_function): Similarly.
32038 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
32040 * decl.c (gnat_to_gnu_entity): Update.
32041 * gigi.h (mark_addressable): Rename.
32042 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
32043 * trans.c (tree_transform): Update.
32044 * utils.c (create_var_decl): Update.
32045 * util2.c (build_binary_op, build_unary_op,
32046 fill_vms_descriptor): Update.
32047 (mark_addressable): Rename, update.
32049 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
32051 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
32053 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
32054 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
32055 * trans.c (tree_transform, convert_with_check): Update.
32056 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
32059 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
32061 * gigi.h (finish_incomplete_decl): Rename.
32062 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
32063 * utils.c (gnat_init_decl_processing): Don't set hook.
32064 (finish_incomplete_decl): Rename.
32066 2002-03-29 Andreas Schwab <schwab@suse.de>
32068 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
32071 2001-03-28 Robert Dewar <dewar@gnat.com>
32074 (Remove_Checks): New procedure
32077 (Remove_Checks): New procedure
32080 Use new Duplicate_Subexpr functions
32081 (Duplicate_Subexpr_No_Checks): New procedure
32082 (Duplicate_Subexpr_No_Checks_Orig): New procedure
32083 (Duplicate_Subexpr): Restore original form (checks duplicated)
32084 (Duplicate_Subexpr): Call Remove_Checks
32087 (Duplicate_Subexpr_No_Checks): New procedure
32088 (Duplicate_Subexpr_No_Checks_Orig): New procedure
32089 Add 2002 to copyright notice
32091 * sem_util.adb: Use new Duplicate_Subexpr functions
32094 (Eval_Indexed_Component): This is the place to call
32095 Constant_Array_Ref and to replace the value. We simply merge
32096 the code of this function in here, since it is now no longer
32097 used elsewhere. This fixes the problem of the back end not
32098 realizing we were clever enough to see that this was
32100 (Expr_Val): Remove call to Constant_Array_Ref
32101 (Expr_Rep_Val): Remove call to Constant_Array_Ref
32103 (Constant_Array_Ref): Deal with string literals (patch
32104 suggested by Zack Weinberg on the gcc list)
32106 2001-03-28 Ed Schonberg <schonber@gnat.com>
32108 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
32109 Duplicate_Subexpr_Move_Checks.
32111 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
32112 Duplicate_Subexpr_Move_Checks.
32114 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
32115 value of array exists before retrieving it (it may a private
32116 protected component in a function).
32118 2002-03-28 Geert Bosch <bosch@gnat.com>
32120 * prj-pp.adb : New file.
32122 * prj-pp.ads : New file.
32124 2002-03-28 Andreas Jaeger <aj@suse.de>
32126 * Makefile.in (stamp-sdefault): Fix path for Makefile.
32128 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
32130 * misc.c (gnat_expand_expr): Move prototype.
32132 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
32134 * misc.c (insert_default_attributes): Remove.
32136 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
32138 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
32139 (gnat_init): Don't set hook.
32140 (gnat_expand_expr): Fix prototype.
32142 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
32144 * misc.c (ggc_p): Remove.
32146 2002-03-27 Geert Bosch <bosch@gnat.com>
32148 * prj-makr.ads, prj-makr.adb : New files.
32150 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
32152 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
32153 (lang_mark_tree): Make static, rename.
32155 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
32157 * misc.c (maybe_build_cleanup): Remove.
32159 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
32161 * gigi.h (yyparse): Remove.
32163 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
32165 * gnat_rm.texi: Sync with ACT version.
32166 (From Ben Brosgol <brosgol@gnat.com>)
32168 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
32170 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
32171 (gnat_init): Remove old hook.
32173 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
32175 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
32176 (yyparse): Rename gnat_parse_file.
32178 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
32180 Delete all lines containing "$Revision:".
32181 * xeinfo.adb: Don't look for revision numbers.
32182 * xnmake.adb: Likewise.
32183 * xsinfo.adb: Likewise.
32184 * xsnames.adb: Likewise.
32185 * xtreeprs.adb: Likewise.
32187 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32189 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
32190 gnat_tree_code_name): Delete.
32191 (tree_code_type, tree_code_length, tree_code_name): Define.
32192 (gnat_init): Don't try to copy into the various tree_code
32195 2002-03-11 Richard Henderson <rth@redhat.com>
32197 * Makefile.in (.NOTPARALLEL): Add fake tag.
32199 2002-03-07 Geert Bosch <bosch@gnat.com>
32201 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
32202 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
32203 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
32204 switch-m.adb, switch-m.ads : New files.
32206 2002-03-07 Geert Bosch <bosch@gnat.com>
32208 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
32209 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
32210 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
32211 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
32212 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
32213 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
32214 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
32215 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
32216 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
32217 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
32218 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
32219 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
32220 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
32221 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
32222 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
32223 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
32224 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
32225 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
32226 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
32227 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
32228 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
32229 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
32230 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
32231 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
32232 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
32233 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
32234 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
32235 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
32236 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
32237 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
32238 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
32239 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
32240 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
32241 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
32242 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
32243 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
32244 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
32245 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
32246 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
32247 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
32248 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
32249 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
32250 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
32251 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
32252 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
32253 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
32254 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
32255 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
32256 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
32257 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
32258 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
32259 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
32260 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
32261 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
32262 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
32263 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
32264 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
32265 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
32266 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
32267 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
32268 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
32269 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
32270 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
32271 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
32272 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
32273 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
32274 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
32275 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
32276 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
32277 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
32278 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
32279 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
32280 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
32281 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
32282 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
32283 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
32284 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
32285 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
32286 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
32287 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
32288 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
32289 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
32290 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
32291 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
32292 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
32293 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
32294 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
32295 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
32296 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
32297 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
32298 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
32299 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
32300 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
32301 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
32302 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
32303 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
32304 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
32306 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
32307 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
32308 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
32309 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
32311 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
32312 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
32314 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
32315 to mdll-fil.ad[bs] and mdll-util.ad[bs]
32317 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
32318 from mdllfile.ad[bs] and mdlltool.ad[bs]
32320 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32322 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
32323 lieu of explicit sizeof/sizeof.
32325 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
32327 * misc.c (copy_lang_decl): Remove.
32329 2002-02-27 Zack Weinberg <zack@codesourcery.com>
32331 * misc.c: Delete traditional-mode-related code copied from the
32332 C front end but not used, or used only to permit the compiler
32335 2002-02-07 Richard Henderson <rth@redhat.com>
32337 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
32338 * adaint.h (__gnat_to_gm_time): Update prototype.
32340 2002-01-30 Richard Henderson <rth@redhat.com>
32342 * trans.c (tree_transform) [N_Loop_Statement]: Use
32343 expand_exit_loop_top_cond.
32345 2001-12-23 Richard Henderson <rth@redhat.com>
32347 * utils.c (end_subprog_body): Push GC context around
32348 rest_of_compilation for nested functions.
32350 2001-12-23 Richard Henderson <rth@redhat.com>
32352 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
32354 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
32356 * gnat-style.texi (Declarations and Types): Remove ancient style
32357 rule which was mandated by code generation issues.
32359 * gnat-style.texi (header): Add @dircategory, @direntry.
32360 (title page): Remove date.
32361 (general) Add @./@: where approriate, and two spaces after the
32362 full stop at the end of a sentence. Use @samp markup when
32363 referring concrete lexical entities (keywords, attribute names
32364 etc.), and @syntax for ARM grammar elements. Use @r for English
32365 text in comments. Use @emph for emphasis. Change "if-statements"
32366 etc. to "if statements" (without @samp). Break long lines. Make
32367 casing of section names consistent.
32368 (Identifiers): Use @samp markup for variable names.
32369 (Comments): Use @samp markup for comment characters. Line-end
32370 comments may follow any Ada code, not just statements. Fix
32371 misspelling of "Integer" as "integer".
32372 (Loop statements): Do not use variable name "I", use "J".
32373 (Subprogram Declarations): Document alignment.
32374 (Subprogram Bodies, Block statements): Document empty line before
32377 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
32379 * make.adb (Add_Switch): Make Generic_Position a procedure. The
32380 function approach did not work well because of a side effect (the
32381 function call could reallocate the table which was being indexed
32382 using its result). Fixes ada/4851.
32384 2001-12-19 Robert Dewar <dewar@gnat.com>
32386 * bindgen.adb: Minor reformatting
32388 * cstand.adb: Minor reformatting
32390 * fmap.adb: Minor reformatting
32391 Change name from Add for Add_To_File_Map (Add is much too generic)
32392 Change Path_Name_Of to Mapped_Path_Name
32393 Change File_Name_Of to Mapped_File_Name
32394 Fix copyright dates in header
32397 Change name from Add for Add_To_File_Map (Add is much too generic)
32398 Change Path_Name_Of to Mapped_Path_Name
32399 Change File_Name_Of to Mapped_File_Name
32400 Fix copyright dates in header
32402 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
32403 Add use clause for Fmap.
32405 * make.adb: Minor reformatting
32407 * osint.adb: Minor reformatting. Change of names in Fmap.
32408 Add use clause for Fmap.
32410 * prj-env.adb: Minor reformatting
32412 * prj-env.ads: Minor reformatting
32414 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
32415 error found (there were odd exceptions to this general rule in
32416 -gnatec/-gnatem processing)
32418 2001-12-19 Olivier Hainque <hainque@gnat.com>
32420 * raise.c (__gnat_eh_personality): Exception handling personality
32421 routine for Ada. Still in rough state, inspired from the C++ version
32422 and still containing a bunch of debugging artifacts.
32423 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
32424 inspired from the C++ library.
32426 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
32427 exception handling integration.
32429 2001-12-19 Arnaud Charlet <charlet@gnat.com>
32431 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
32432 (HIE_SOURCES): Add s-secsta.ad{s,b}.
32433 (HIE_OBJS): Add s-fat*.o
32434 (RAVEN_SOURCES): Remove files that are no longer required. Add
32435 interrupt handling files.
32436 (RAVEN_MOD): Removed, no longer needed.
32438 2001-12-19 Robert Dewar <dewar@gnat.com>
32440 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
32441 Add 2001 to copyright date
32443 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
32444 need to force universal inlining for these cases.
32446 2001-12-19 Arnaud Charlet <charlet@gnat.com>
32448 * s-taprob.adb: Minor clean ups so that this unit can be used in
32451 * exp_ch7.adb: Allow use of secondary stack in HI mode.
32452 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
32454 2001-12-19 Vincent Celier <celier@gnat.com>
32456 * prj-tree.ads (Project_Node_Record): Add comments for components
32457 Pkg_Id and Case_Insensitive.
32459 2001-12-19 Pascal Obry <obry@gnat.com>
32461 * g-socket.adb: Minor reformatting. Found while reading code.
32463 2001-12-19 Robert Dewar <dewar@gnat.com>
32465 * prj-tree.ads: Minor reformatting
32467 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
32469 * config-lang.in (diff_excludes): Remove.
32471 2001-12-17 Ed Schonberg <schonber@gnat.com>
32473 * sem_res.adb (Resolve_Selected_Component): do not generate a
32474 discriminant check if the selected component is a component of
32475 the argument of an initialization procedure.
32477 * trans.c (tree_transform, case of arithmetic operators): If result
32478 type is private, the gnu_type is the base type of the full view,
32479 given that the full view itself may be a subtype.
32481 2001-12-17 Robert Dewar <dewar@gnat.com>
32483 * sem_res.adb: Minor reformatting
32485 * trans.c (tree_transform, case N_Real_Literal): Add missing third
32486 parameter in call to Machine (unknown horrible effects from this
32489 * urealp.h: Add definition of Round_Even for call to Machine
32490 Add third parameter for Machine
32492 2001-12-17 Ed Schonberg <schonber@gnat.com>
32494 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
32495 predefined units in No_Run_Time mode.
32497 2001-12-17 Richard Kenner <kenner@gnat.com>
32499 * misc.c (insn-codes.h): Now include.
32501 2001-12-17 Olivier Hainque <hainque@gnat.com>
32503 * a-except.adb: Preparation work for future integration of the GCC 3
32504 exception handling mechanism
32505 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
32506 to factorize previous code sequences and make them externally callable,
32507 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
32508 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
32509 Use the new notification routines.
32511 2001-12-17 Emmanuel Briot <briot@gnat.com>
32513 * prj-tree.ads (First_Choice_Of): Document the when others case
32515 2001-12-17 Arnaud Charlet <charlet@gnat.com>
32517 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
32518 HI-E mode, in order to support Ravenscar profile properly.
32520 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
32521 mode on 32 bits targets.
32523 2001-12-17 Vincent Celier <celier@gnat.com>
32525 * fmap.adb: Initial version.
32527 * fmap.ads: Initial version.
32529 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
32530 If search is successfully done, add to mapping.
32532 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
32535 (Gnatmake): Add new local variable Mapping_File_Name.
32536 Create mapping file when using project file(s).
32537 Delete mapping file before exiting.
32539 * opt.ads (Mapping_File_Name): New variable
32541 * osint.adb (Find_File): Use path name found in mapping, if any.
32543 * prj-env.adb (Create_Mapping_File): New procedure
32545 * prj-env.ads (Create_Mapping_File): New procedure.
32547 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
32550 * usage.adb: Add entry for new switch -gnatem.
32552 * Makefile.in: Add dependencies for fmap.o.
32554 2001-12-17 Ed Schonberg <schonber@gnat.com>
32556 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
32557 is a package instantiation rewritten as a package body.
32558 (Install_Withed_Unit): Undo previous change, now redundant.
32560 2001-12-17 Gary Dismukes <dismukes@gnat.com>
32563 (Compute_Length): Move conversion to Unsigned to callers.
32564 (Get_Max_Size): Convert Len expression to Unsigned after calls to
32565 Compute_Length and Determine_Range.
32566 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
32567 Compute_Length and Determine_Range.
32568 Above changes fix problem with length computation for supernull arrays
32569 where Max (Len, 0) wasn't getting applied due to the Unsigned
32570 conversion used by Compute_Length.
32572 2001-12-17 Arnaud Charlet <charlet@gnat.com>
32575 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
32576 System.Secondary_Stack.
32577 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
32579 Remove unused entity RE_Exception_Data.
32581 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
32583 * rident.ads (No_Secondary_Stack): New restriction.
32585 2001-12-17 Joel Brobecker <brobecke@gnat.com>
32587 * gnat_rm.texi: Fix minor typos. Found while reading the section
32588 regarding "Bit_Order Clauses" that was sent to a customer.
32589 Very interesting documentation!
32591 2001-12-17 Robert Dewar <dewar@gnat.com>
32593 * sem_case.adb (Choice_Image): Avoid creating improper character
32594 literal names by using the routine Set_Character_Literal_Name. This
32595 fixes bombs in certain error message cases.
32597 2001-12-17 Arnaud Charlet <charlet@gnat.com>
32599 * a-reatim.adb: Minor reformatting.
32601 2001-12-17 Ed Schonberg <schonber@gnat.com>
32603 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
32604 case where the formal is an extension of another formal in the current
32605 unit or in a parent generic unit.
32607 2001-12-17 Arnaud Charlet <charlet@gnat.com>
32609 * s-tposen.adb: Update comments. Minor reformatting.
32610 Minor code clean up.
32612 * s-tarest.adb: Update comments. Minor code reorganization.
32614 2001-12-17 Gary Dismukes <dismukes@gnat.com>
32616 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
32619 2001-12-17 Robert Dewar <dewar@gnat.com>
32621 * exp_attr.adb: Minor reformatting
32623 2001-12-17 Ed Schonberg <schonber@gnat.com>
32625 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
32626 derivations nested within a child unit: verify that the parent
32627 type is declared in an outer scope.
32629 2001-12-17 Robert Dewar <dewar@gnat.com>
32631 * sem_ch12.adb: Minor reformatting
32633 2001-12-17 Ed Schonberg <schonber@gnat.com>
32635 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
32636 warning if current unit is a predefined one, from which bodies may
32639 2001-12-17 Robert Dewar <dewar@gnat.com>
32641 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
32642 Fix header format. Add 2001 to copyright date.
32644 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
32645 which caused CE during compilation if checks were enabled.
32647 2001-12-17 Vincent Celier <celier@gnat.com>
32650 (Switches_Of): New function
32651 (Test_If_Relative_Path): New procedure
32652 (Add_Switches): Use new function Switches_Of
32653 (Collect_Arguments_And_Compile): Use new function Switches_Of.
32654 When using a project file, test if there are any relative
32655 search path. Fail if there are any.
32656 (Gnatmake): Only add switches for the primary directory when not using
32657 a project file. When using a project file, change directory to the
32658 object directory of the main project file. When using a project file,
32659 test if there are any relative search path. Fail if there are any.
32660 When using a project file, fail if specified executable is relative
32661 path with directory information, and prepend executable, if not
32662 specified as an absolute path, with the exec directory. Make sure
32663 that only one -o switch is transmitted to the linker.
32665 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
32668 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
32669 when using a non standard naming scheme.
32670 (Check_Ada_Naming_Scheme): Make sure that error messages
32671 do not raise exceptions.
32672 (Is_Illegal_Append): Return True if there is no dot in the suffix.
32673 (Language_Independent_Check): Check the exec directory.
32675 * prj.adb (Project_Empty): Add new component Exec_Directory
32678 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
32679 (Project_Data): Add component Exec_Directory
32681 * snames.adb: Updated to match snames.ads revision 1.215
32683 * snames.ads: Added Exec_Dir
32685 2001-12-17 Robert Dewar <dewar@gnat.com>
32687 * make.adb: Minor reformatting
32689 * prj-nmsc.adb: Minor reformatting
32691 * snames.adb: Updated to match snames.ads
32693 * snames.ads: Alphebetize entries for project file
32695 2001-12-17 Ed Schonberg <schonber@gnat.com>
32697 * trans.c (process_freeze_entity): Do nothing if the entity is a
32698 subprogram that was already elaborated.
32700 2001-12-17 Richard Kenner <kenner@gnat.com>
32702 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
32703 and Esize if object is referenced via pointer.
32705 2001-12-17 Ed Schonberg <schonber@gnat.com>
32707 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
32708 is discrete before analyzing choices.
32710 2001-12-17 Joel Brobecker <brobecke@gnat.com>
32712 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
32713 containing the name of the Ada Main Program. This string is mainly
32714 intended for the debugger.
32715 (Gen_Output_File_C): Do the equivalent change when generating a C file.
32717 2001-12-17 Robert Dewar <dewar@gnat.com>
32719 * ali.adb: Set new Dummy_Entry field in dependency entry
32721 * ali.ads: Add Dummy_Entry field to source dependency table
32723 * bcheck.adb (Check_Consistency): Ignore dummy D lines
32725 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
32727 * lib-writ.ads: Document dummy D lines for missing files.
32729 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
32731 2001-12-17 Robert Dewar <dewar@gnat.com>
32733 * ali.adb: Type reference does not reset current file.
32735 * ali.adb: Recognize and scan renaming reference
32737 * ali.ads: Add spec for storing renaming references.
32739 * lib-xref.ads: Add documentation for handling of renaming references
32741 * lib-xref.adb: Implement output of renaming reference.
32744 (Determine_Range): Document local variables
32745 (Determine_Range): Make sure Hbound is initialized. It looks as though
32746 there could be a real problem here with an uninitialized reference
32747 to Hbound, but no actual example of failure has been found.
32749 2001-12-17 Laurent Pautet <pautet@gnat.com>
32752 Fix comment of Shutdown_Socket and Close_Socket. These functions
32753 should not fail silently because if they are called twice, this
32754 probably means that there is a race condition in the user program.
32755 Anyway, this behaviour is consistent with the rest of this unit.
32756 When an error occurs, an exception is raised with the error message
32757 as exception message.
32759 2001-12-17 Robert Dewar <dewar@gnat.com>
32761 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
32762 that it happens before modification of Sloc values for -gnatD.
32764 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
32765 so that it happens before modification of Sloc values for -gnatD.
32767 * switch.adb: Minor reformatting
32769 2001-12-15 Richard Henderson <rth@redhat.com>
32771 * sem_ch7.adb: Wrap comment.
32773 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
32775 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
32776 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
32777 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
32778 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
32779 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
32780 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
32781 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
32782 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
32783 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
32784 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
32785 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
32786 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
32787 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
32788 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
32789 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
32790 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
32791 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
32792 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
32793 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
32794 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
32795 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
32796 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
32797 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
32798 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
32801 2001-12-14 Vincent Celier <celier@gnat.com>
32803 * osint.adb(Create_Debug_File): When an object file is specified,
32804 put the .dg file in the same directory as the object file.
32806 2001-12-14 Robert Dewar <dewar@gnat.com>
32808 * osint.adb: Minor reformatting
32810 * lib-xref.adb (Output_Instantiation): New procedure to generate
32811 instantiation references.
32813 * lib-xref.ads: Add documentation of handling of generic references.
32815 * ali.adb (Read_Instantiation_Ref): New procedure to read
32816 instantiation references
32818 * ali.ads: Add spec for storing instantiation references
32820 * bindusg.adb: Minor reformatting
32822 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32824 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32826 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32828 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
32832 Add 2001 to copyright date
32833 Add entry for Latin-5 (Cyrillic ISO-8859-5)
32835 2001-12-14 Matt Gingell <gingell@gnat.com>
32837 * adaint.c: mktemp is a macro on Lynx and can not be used as an
32840 2001-12-14 Richard Kenner <kenner@gnat.com>
32842 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
32843 if operand is CONSTRUCTOR.
32845 2001-12-14 Ed Schonberg <schonber@gnat.com>
32847 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
32848 before emiting check on right-hand side, so that exception information
32851 2001-12-14 Richard Kenner <kenner@gnat.com>
32853 * utils.c (create_var_decl): Throw away initializing expression
32854 if just annotating types and non-constant.
32856 2001-12-14 Vincent Celier <celier@gnat.com>
32858 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
32861 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
32863 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
32865 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
32867 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
32869 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
32871 * ChangeLog: Remove piece of diff output.
32873 2001-12-14 Geert Bosch <bosch@gnat.com>
32875 * config-lang.in: Update copyright notice
32877 * layout.adb: Remove commented out code.
32879 * mdllfile.ads: Update copyright notice. Fix header format.
32881 * sem_case.ads: Likewise.
32883 * sem_ch3.adb: Minor reformatting.
32885 2001-12-12 Geert Bosch <bosch@gnat.com>
32887 * freeze.ads: Update copyright date.
32889 * g-comlin.ads: Minor reformatting.
32891 * gnat-style.texi: Fix typo.
32893 2001-12-12 Geert Bosch <bosch@gnat.com>
32895 * einfo.h: Regenerate.
32897 2001-12-12 Ed Schonberg <schonber@gnat.com>
32899 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
32900 on known node types, rather than untyped fields. Further cleanups.
32902 2001-12-12 Robert Dewar <dewar@gnat.com>
32905 (Save_Entity_Descendant): Minor comment update.
32906 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
32907 of an N_Attribute_Reference node. As per note below, this does not
32908 eliminate need for Associated_Node in attribute ref nodes.
32909 (Associated_Node): Documentation explicitly mentions attribute
32910 reference nodes, since this field is used in such nodes.
32912 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
32914 2001-12-12 Robert Dewar <dewar@gnat.com>
32916 * s-stalib.adb: Add more comments on with statements being needed
32918 * par-ch12.adb: Minor reformatting
32920 * prj-dect.ads: Fix copyright header
32922 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
32923 inputs fit in 32 bits, but the result still overflows.
32925 * s-fatgen.ads: Minor comment improvement
32927 2001-12-12 Ed Schonberg <schonber@gnat.com>
32929 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
32930 formal derived type, look for an inherited component from the full
32931 view of the parent, if any.
32933 2001-12-12 Robert Dewar <dewar@gnat.com>
32935 * checks.ads (Apply_Alignment_Check): New procedure.
32937 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
32938 ensure that the alignment of objects with address clauses is
32939 appropriate, and raise PE if not.
32941 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
32942 Exp_Pakd.Known_Aligned_Enough
32944 * mdllfile.ads: Minor reformatting
32946 * mlib-fil.ads: Minor reformatting
32948 2001-12-12 Ed Schonberg <schonber@gnat.com>
32950 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
32951 fix to any component reference if enclosing record has non-standard
32954 2001-12-12 Vincent Celier <celier@gnat.com>
32956 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
32959 2001-12-12 Ed Schonberg <schonber@gnat.com>
32961 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
32964 2001-12-12 Robert Dewar <dewar@gnat.com>
32966 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
32968 2001-12-12 Emmanuel Briot <briot@gnat.com>
32970 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
32971 and it adds dependencies to system.io.
32973 2001-12-12 Pascal Obry <obry@gnat.com>
32975 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
32978 2001-12-11 Ed Schonberg <schonber@gnat.com>
32980 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
32981 that is the parent of other generics, the instance body replaces the
32982 instance node. Retrieve the instance of the spec, which is the one
32983 that is visible in clients and within the body.
32985 2001-12-11 Vincent Celier <celier@gnat.com>
32987 * gnatmain.adb: Initial version.
32989 * gnatmain.ads: Initial version.
32991 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
32993 * snames.adb: Updated to match snames.ads.
32995 * snames.ads: Added Gnatstub.
32997 2001-12-11 Vincent Celier <celier@gnat.com>
32999 * prj-attr.adb (Initialization_Data): Change name from
33000 Initialisation_Data.
33002 2001-12-11 Emmanuel Briot <briot@gnat.com>
33004 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
33005 + and * applied to backslashed expressions like \r.
33007 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
33009 * g-os_lib.ads: String_List type added, Argument_List type is now
33010 subtype of String_List.
33012 2001-12-11 Robert Dewar <dewar@gnat.com>
33014 * g-os_lib.ads: Change copyright to FSF
33015 Add comments for String_List type
33017 2001-12-11 Vincent Celier <celier@gnat.com>
33019 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
33020 string to the buffer).
33022 2001-12-11 Ed Schonberg <schonber@gnat.com>
33024 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
33027 * sem_attr.adb: Simplify previous fix for Address.
33028 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
33029 to avoid anomalies where the bound of the type appears to raise
33032 2001-12-11 Robert Dewar <dewar@gnat.com>
33034 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
33037 2001-12-11 Ed Schonberg <schonber@gnat.com>
33039 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
33040 renamed unit before checking for recursive instantiations.
33042 2001-12-11 Emmanuel Briot <briot@gnat.com>
33044 * prj.ads: Add comments for some of the fields.
33046 2001-12-11 Robert Dewar <dewar@gnat.com>
33048 * lib-xref.adb (Output_Refs): Don't output type references outside
33049 the main unit if they are not otherwise referenced.
33051 2001-12-11 Ed Schonberg <schonber@gnat.com>
33053 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
33054 code and diagnose additional illegal uses
33056 * sem_util.adb (Is_Object_Reference): An indexed component is an
33057 object only if the prefix is.
33059 2001-12-11 Vincent Celier <celier@gnat.com>
33061 * g-diopit.adb: Initial version.
33063 * g-diopit.ads: Initial version.
33066 (Expand_Path): Avoid use of Unbounded_String
33067 (Find, Wildcard_Iterator): Moved to child package Iteration
33069 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
33071 2001-12-11 Robert Dewar <dewar@gnat.com>
33073 * sem_attr.adb: Minor reformatting
33075 2001-12-11 Ed Schonberg <schonber@gnat.com>
33077 * sem_ch3.adb: Clarify some ???.
33079 2001-12-11 Robert Dewar <dewar@gnat.com>
33081 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
33082 Exp_Pakd.Known_Aligned_Enough
33084 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
33085 version is moved to Exp_Ch13.
33087 2001-12-11 Robert Dewar <dewar@gnat.com>
33089 * einfo.ads: Minor reformatting
33091 * exp_ch5.adb: Add comment for previous.change
33093 * ali.adb: New interface for extended typeref stuff.
33095 * ali.ads: New interface for typeref stuff.
33097 * checks.adb (Apply_Alignment_Check): New procedure.
33099 * debug.adb: Add -gnatdM for modified ALI output
33101 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
33103 * lib-xref.adb: Extend generation of <..> notation to cover
33104 subtype/object types. Note that this is a complete rewrite,
33105 getting rid of the very nasty quadratic algorithm previously
33106 used for derived type output.
33108 * lib-xref.ads: Extend description of <..> notation to cover
33109 subtype/object types. Uses {..} for these other cases.
33110 Also use (..) for pointer types.
33112 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
33114 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
33115 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
33117 2001-12-11 Vincent Celier <celier@gnat.com>
33120 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
33121 Changed /BIND_ONLY to /ACTIONS=BIND
33122 Changed /LINK_ONLY to /ACTIONS=LINK
33124 2001-12-11 Ed Schonberg <schonber@gnat.com>
33126 * sem_ch8.adb (Find_Selected_Component): improved search for a
33127 candidate package in case of error.
33129 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
33130 chain back on scope stack before reinstalling use clauses.
33132 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
33133 is enabled, do not kill the code for the condition, to preserve
33136 2001-12-11 Robert Dewar <dewar@gnat.com>
33138 * checks.adb (Insert_Valid_Check): Apply validity check to expression
33139 of conversion, not to result of conversion.
33141 2001-12-11 Ed Schonberg <schonber@gnat.com>
33143 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
33144 before freezing parent. If the declarations are mutually recursive,
33145 an access to the current record type may be frozen before the
33146 derivation is complete.
33148 2001-12-05 Vincent Celier <celier@gnat.com>
33150 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
33151 -c /COMPILE_ONLY, -l /LINK_ONLY
33154 (Bind_Only): New Flag
33155 (Link_Only): New flag
33157 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
33160 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
33163 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
33164 (Gnatmake): Set the step flags. Only perform a step if the
33165 corresponding step flag is True.
33166 (Scan_Make_Arg): Reset the bind and link step flags when -u
33167 or -gnatc has been specified.
33169 2001-12-05 Ed Schonberg <schonber@gnat.com>
33171 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
33172 get bounds from right operand.
33174 * sem_eval.adb: Minor reformatting
33176 * exp_util.adb (Make_Literal_Range): use bound of literal rather
33177 than Index'First, its lower bound may be different from 1.
33179 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
33182 2001-12-05 Vincent Celier <celier@gnat.com>
33184 * prj-nmsc.adb Minor reformatting
33186 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
33187 set and libraries are not supported.
33189 2001-12-05 Ed Schonberg <schonber@gnat.com>
33191 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
33192 private view explicitly, so the back-end can treat as a global
33195 2001-12-05 Ed Schonberg <schonber@gnat.com>
33197 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
33198 unit, always replace instance node with new body, for ASIS use.
33200 2001-12-05 Vincent Celier <celier@gnat.com>
33202 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
33203 libraries are not supported and both attributes Library_Name and
33204 Library_Dir are specified.
33206 * prj-proc.adb (Expression): Set location of Result to location of
33209 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
33210 (prj-nmsc is now importing MLib.Tgt)
33212 * prj-proc.adb: Put the change indicated above that was forgotten.
33214 2001-12-05 Robert Dewar <dewar@gnat.com>
33216 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
33218 2001-12-05 Ed Schonberg <schonber@gnat.com>
33220 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
33221 constraint, introduce explicit subtype declaration and derive from it.
33223 * sem_ch3.adb: Minor reformatting
33225 2001-12-05 Robert Dewar <dewar@gnat.com>
33227 * checks.adb (Determine_Range): Increase cache size for checks.
33230 * exp_ch6.adb: Minor reformatting
33231 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
33232 a parameter whose root type is System.Address, since treating such
33233 subprograms as pure in the code generator is almost surely a mistake
33234 that will lead to unexpected results.
33236 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
33237 change handling of conversions.
33239 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
33241 2001-12-05 Ed Schonberg <schonber@gnat.com>
33243 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
33244 aggregate with static wrong size, attach generated Raise node to
33247 2001-12-05 Robert Dewar <dewar@gnat.com>
33249 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
33250 Fixes compilation abandoned bomb in B24009B.
33252 2001-12-05 Ed Schonberg <schonber@gnat.com>
33255 Document use of Associated_Node on Selected_Components.
33256 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
33257 to clarify use of untyped descendant fields.
33259 2001-12-05 Robert Dewar <dewar@gnat.com>
33261 * prj-dect.ads: Add ??? comment
33262 Add 2001 to copyright notice (was not done in after all)
33264 * prj-part.adb: Minor reformatting. Reword one awkward error message.
33266 * prj.ads: Minor reformatting throughout, and add some ??? comments
33268 * snames.ads: Minor reformatting
33270 2001-12-05 Geert Bosch <bosch@gnat.com>
33272 * snames.adb: Autoupdate
33274 2001-12-05 Vincent Celier <celier@gnat.com>
33276 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
33278 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
33280 * prj-env.adb: Minor comment changes (modifying -> extends).
33282 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
33284 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
33287 * prj.adb (Initialize): Change Modifying to Extends.
33289 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
33291 * prj.ads: Minor comment change (Modifying -> extending).
33293 * snames.ads: Change modifying to extends.
33295 2001-12-05 Robert Dewar <dewar@gnat.com>
33297 * sem_warn.adb: Remove stuff for conditionals, we are not going to
33300 * sem_warn.ads: Remove stuff for conditionals, we are not going to
33301 do this after all. Add 2001 to copyright notice
33303 2001-12-04 Geert Bosch <bosch@gnat.com>
33305 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
33307 2001-12-04 Robert Dewar <dewar@gnat.com>
33309 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
33310 location if we already have errors. Stops some cases of cascaded
33313 * errout.adb: Improve comment.
33315 2001-12-04 Robert Dewar <dewar@gnat.com>
33318 (Analyze_Formal_Type_Definition): Defend against Error.
33319 (Analyze_Formal_Subprogram): Defend against Error.
33321 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
33322 remove following semicolon if present. Removes cascaded error.
33324 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
33327 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
33328 exceptions equals 0.
33329 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
33330 Fixes PIWG E tests (which have to be run with -gnatL).
33332 2001-12-04 Robert Dewar <dewar@gnat.com>
33334 * einfo.ads: Minor reformatting
33336 2001-12-04 Ed Schonberg <schonber@gnat.com>
33338 * einfo.ads: Block_Node points to the identifier of the block, not to
33339 the block node itself, to preserve the link when the block is
33340 rewritten, e.g. within an if-statement with a static condition.
33342 * inline.adb (Cleanup_Scopes): recover block statement from block
33343 entity using new meaning of Block_Node.
33345 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
33346 identifier of block node, rather than to node itself.
33348 2001-12-04 Gary Dismukes <dismukes@gnat.com>
33351 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
33352 (Discrimify): Go back to setting the Etypes of the selected component
33353 because the Vname component does not exist at this point and will
33354 fail name resolution. Also set Analyzed.
33355 Remove with and use of Sem_Res.
33357 2001-12-04 Arnaud Charlet <charlet@gnat.com>
33359 * Makefile.in: (HIE_SOURCES): add s-fat*.
33361 2001-12-04 Robert Dewar <dewar@gnat.com>
33364 (Compile_Time_Known_Attribute): New procedure.
33365 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
33366 proper range check.
33368 2001-12-04 Ed Schonberg <schonber@gnat.com>
33370 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
33371 processing discriminants to diagnose illegal default values.
33373 2001-12-04 Ed Schonberg <schonber@gnat.com>
33375 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
33376 access discriminant within a type extension that constrains its
33377 parent discriminants.
33379 2001-12-04 Ed Schonberg <schonber@gnat.com>
33381 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
33382 is malformed, use instance of Any_Id to allow analysis to proceed.
33384 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
33385 type definition is illegal.
33386 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
33389 2001-12-04 Ed Schonberg <schonber@gnat.com>
33391 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
33394 2001-12-04 Robert Dewar <dewar@gnat.com>
33396 * errout.adb: Minor reformatting
33398 2001-12-04 Robert Dewar <dewar@gnat.com>
33400 * exp_util.adb: Minor reformatting from last change
33402 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
33403 which is a rewriting of an expression, traverse the original
33404 expression to remove warnings that may have been posted on it.
33406 2001-12-04 Ed Schonberg <schonber@gnat.com>
33408 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
33409 record that has other packed components.
33411 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
33413 * adaint.c: Minor cleanups.
33415 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
33417 * adaint.c: Do not use utime.h on vxworks.
33419 2001-12-04 Arnaud Charlet <charlet@gnat.com>
33421 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
33422 more confusion than it solves.
33424 2001-12-04 Geert bosch <bosch@gnat.com>
33426 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
33428 2001-12-04 Geert Bosch <bosch@gnat.com>
33430 * Makefile.in (update-sources): New target.
33431 For use by gcc_release script.
33433 2001-12-04 Ed Schonberg <schonber@gnat.com>
33435 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
33436 a configuration pragma, it is now legal wherever a pragma can appear.
33438 2001-12-04 Zack Weinberg <zack@codesourcery.com>
33440 * Makefile.in: Don't set ALL. Delete @cross_defines@,
33441 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
33442 is now @CROSS@ -DIN_GCC; update comment.
33444 2001-12-04 Robert Dewar <dewar@gnat.com>
33446 * einfo.adb (Has_Pragma_Pure_Function): New flag.
33447 Fix problem that stopped ceinfo from working
33449 * einfo.ads (Has_Pragma_Pure_Function): New flag.
33451 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
33453 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
33456 (File_Time_Stamp): New procedure.
33457 (Preserve_Mode): New boolean.
33458 (Write_Unit): Pass time stamp.
33459 Implement -p switch (preserve time stamps).
33461 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
33463 * gnatchop.adb: Do usage info for -p switch
33465 * adaint.h (__gnat_set_file_time_name): New function
33467 * adaint.c (__gnat_set_file_time_name): Implement
33469 * adaint.h: Fix typo
33471 2001-12-03 Robert Dewar <dewar@gnat.com>
33473 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
33474 have Associated_Node.
33476 2001-12-03 Robert Dewar <dewar@gnat.com>
33478 * prj-proc.adb: Minor reformatting
33480 * make.adb: Minor reformatting
33482 2001-12-03 Geert Bosch <bosch@gnat.com>
33484 * make.adb: Minor reformatting.
33486 2001-12-03 Robert Dewar <dewar@gnat.com>
33488 * sem_ch12.adb: Minor reformatting
33490 2001-12-03 Ed Schonberg <schonber@gnat.com>
33492 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
33493 push Standard on the stack before analyzing the instance body,
33494 in order to have a clean visibility environment.
33496 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
33498 2001-12-03 Ed Schonberg <schonber@gnat.com>
33500 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
33501 instantiation of a body that contains an inlined body.
33503 2001-12-03 Ed Schonberg <schonber@gnat.com>
33506 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
33507 to prevent freezing within formal packages.
33508 (Freeze_Subprogram_Body): If body comes from another instance that
33509 appeared before its own body, place freeze node at end of current
33510 declarative part, to prevent a back-end crash.
33511 (Inline_Instance_Body): Handle properly a package instance within
33512 a subprogram instance that is a child unit.
33514 2001-12-01 Graham Stott <grahams@redhat.com>
33516 * Makefile.in (misc.o): Add missing $(srcdir) prefix
33517 and add optabs.h dependency.
33519 * misc.c: Include optabs.h
33520 (gnat_tree_code_type): Make static and const.
33521 (gnat_tree_code_length): Likewise.
33522 (gnat_tree_code_name): Likewise.
33523 (update_setjmp_buf): Obtain operands mode from insn_data.
33525 2001-11-29 Richard Henderson <rth@redhat.com>
33527 * init.c: Remove obsolete dwarf2 frame.h section.
33529 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
33531 * Make-lang.in (ada.generated-manpages): New dummy target.
33533 2001-11-29 Ed Schonberg <schonber@gnat.com>
33535 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
33536 into Command, an array conversion is illegal here. Uncovered by
33539 2001-11-28 Geert Bosch <bosch@gnat.com>
33541 * init.c: Minor whitespace changes.
33543 2001-11-28 Doug Rupp <rupp@gnat.com>
33545 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
33548 2001-11-28 Zack Weinberg <zack@codesourcery.com>
33550 * misc.c (gnat_expand_constant): Move declaration above
33551 definition of lang_hooks.
33552 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
33553 (gnat_init): lang_expand_constant no longer exists.
33555 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
33556 always have vprintf.
33557 (gnat_init): Always call set_internal_error_function.
33559 2001-11-27 Andreas Jaeger <aj@suse.de>
33561 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
33563 2001-11-27 Laurent Guerby <guerby@acm.org>
33565 * Makefile.in: Regenerate Ada dependencies.
33567 2001-11-26 Richard Henderson <rth@redhat.com>
33569 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
33570 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
33571 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
33573 2001-11-25 Laurent Guerby <guerby@acm.org>
33575 * sysdep.c (rts_get_*): Fix style.
33577 2001-11-19 Laurent Guerby <guerby@acm.org>
33579 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
33580 since it is of no apparent use and cause warnings.
33582 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
33584 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
33586 (gnat_init): Don't return NULL.
33587 (finish_parse): Remove.
33589 2001-11-17 Laurent Guerby <guerby@acm.org>
33591 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
33592 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
33593 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
33594 * lang-spec.h: Add missing struct field to silence warnings.
33595 * sysdep.c (rts_get_*): Provide K&R prototype.
33596 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
33597 * traceback.c (Unlock_Task, Lock_Task): Likewise.
33598 * tracebak.c (__gnat_backtrace): Remove unused variable.
33599 * utils.c (end_subprog_body): Move to K&R style.
33601 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33603 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
33605 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
33607 * misc.c (gnat_init): Change prototype. Include the
33608 functionality of the old init_parse and init_decl_processing.
33609 (gnat_init_decl_processing): New prototype.
33610 (init_parse): Remove.
33611 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
33613 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
33615 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
33616 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
33617 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
33618 set_yydebug): Remove.
33620 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
33622 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
33623 (struct lang_hooks): Constify.
33624 (language_string, lang_identify): Remove.
33625 * utils.c (init_decl_processing): Update.
33627 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
33629 * misc.c: Include langhooks-def.h.
33630 * Makefile.in: Update.
33632 2001-10-30 Robert Dewar <dewar@gnat.com>
33635 (Check_Identifier): Rewrite circuit to be compatible with use of letters
33636 in the upper half of ASCII.
33637 (Check_Identifier): Minor reformatting
33639 2001-10-30 Geert Bosch <bosch@gnat.com>
33641 * (Associated_Node, Set_Associated_Node): Do not check for
33644 2001-10-30 Robert Dewar <dewar@gnat.com>
33646 * a-reatim.ads: Minor reformatting
33648 2001-10-30 Robert Dewar <dewar@gnat.com>
33650 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
33651 undocumented declarations.
33653 2001-10-30 Pascal Obry <obry@gnat.com>
33655 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
33656 to the binder and linker.
33659 * mdll.ads: Fix layout. Update copyright notice.
33661 * mdll.adb: Fix layout. Update copyright notice.
33663 2001-10-30 Robert Dewar <dewar@gnat.com>
33665 * usage.adb: Minor fix to output for -gnaty.
33667 2001-10-30 Ed Schonberg <schonber@gnat.com>
33669 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
33670 to accommodate all its possible values.
33672 * a-reatim.adb (Split): Special-case handling of Time_Span_First
33673 and of small absolute values of T.
33675 2001-10-30 Richard Kenner <kenner@gnat.com>
33677 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
33678 set_mem_attributes since not needed and wrong if RESULT if a REG;
33679 fixes ACATS failures.
33681 2001-10-30 Geert Bosch <bosch@gnat.com>
33683 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
33684 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
33686 2001-10-30 Robert Dewar <dewar@gnat.com>
33688 * bindusg.adb: Undocument -f switch.
33690 * gnatcmd.adb: Remove /FULL_ELABORATION.
33692 * opt.ads (Force_RM_Elaboration_Order): Document that this is
33695 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
33697 * gnatbind.adb: Minor update of warning msg.
33699 2001-10-30 Vincent Celier <celier@gnat.com>
33701 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
33702 for project file switches (-P (/PROJECT_FILE=),
33703 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
33706 2001-10-30 Geert Bosch <bosch@gnat.com>
33708 * decl.c: Minor whitespace fixes.
33710 2001-10-30 Richard Kenner <kenner@gnat.com>
33712 * utils2.c (build_allocator): Test for SIZE overflow in array case too
33714 2001-10-30 Geert Bosch <bosch@gnat.com>
33716 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
33717 Found due to GCC 3.0 warning of using uninitialized value.
33720 (Get_Max_Size): Use variant record for tracking value/expression.
33721 Makes logic clearer and prevents warnings for uninitialized variables.
33722 (Layout_Array_Type): Use variant record for tracking value/expression.
33723 Makes logic clearer and prevents warnings for uninitialized variables.
33725 2001-10-30 Robert Dewar <dewar@gnat.com>
33727 * lib.adb: Minor reformatting
33729 * s-taprop.ads: Minor reformatting
33731 2001-10-29 Laurent Guerby <guerby@acm.org>
33734 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
33736 (_gnat_error_handler): Make MSG const.
33738 2001-10-29 Richard Kenner <kenner@gnat.com>
33740 * sysdep.c: Fix localtime_r problem on LynxOS.
33741 Also remove #elif to avoid warnings.
33743 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
33746 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
33748 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
33750 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
33751 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
33752 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
33753 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
33754 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
33755 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
33756 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
33757 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
33758 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
33759 types.ads, urealp.adb: Fix spelling errors.
33761 2001-10-27 Laurent Guerby <guerby@acm.org>
33763 * trans.c (gigi): Fix non determinism leading to bootstrap
33764 comparison failures for debugging information.
33766 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
33768 * gnat_rm.texi: Use @./@: where appropriate.
33770 2001-10-26 Robert Dewar <dewar@gnat.com>
33772 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
33774 2001-10-26 Richard Kenner <kenner@gnat.com>
33776 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
33778 2001-10-26 Richard Kenner <kenner@gnat.com>
33780 * decl.c (validate_size): Modify message for bad size to avoid
33781 implication that compiler is modifying the size.
33783 2001-10-26 Robert Dewar <dewar@gnat.com>
33785 * prj-util.adb: Minor reformatting. Fix bad header format.
33787 2001-10-26 Robert Dewar <dewar@gnat.com>
33789 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
33791 * sinfo.ads: Clarify use of Associated_Node (documentation only).
33793 * sem_ch12.adb: Change Node4 to Associated_Node. Change
33794 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
33795 much more narrowly in places where needed. These are cleanups.
33797 2001-10-26 Joel Brobecker <brobecke@gnat.com>
33799 * 5zosinte.ads (null_pthread): new constant.
33802 (Initialize_TCB): Initialize thread ID to null, to be able to verify
33803 later that this field has been set.
33804 (Finalize_TCB): ditto.
33805 (Suspend_Task): Verify that the thread ID is not null before using it.
33806 (Resume_Task): ditto.
33809 (Resume_All_Tasks): Lock the tasks list before using it.
33810 (Suspend_All_Tasks): ditto.
33812 2001-10-26 Richard Kenner <kenner@gnat.com>
33814 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
33815 Make constant variant of designated type for Is_Access_Constant.
33816 Call update_pointer_to with main variant.
33818 * trans.c (process_freeze_entity, process_type):
33819 Call update_pointer_to on main variant.
33821 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
33822 If main variant, update all other variants.
33824 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
33827 2001-10-26 Robert Dewar <dewar@gnat.com>
33829 * prj-util.adb: Minor reformatting
33831 2001-10-26 Robert Dewar <dewar@gnat.com>
33833 * prj-util.adb: Minor reformatting
33835 2001-10-26 Robert Dewar <dewar@gnat.com>
33837 * prj-attr.adb: Minor reformatting throughout
33839 2001-10-26 Robert Dewar <dewar@gnat.com>
33841 * prj-attr.ads: Minor reformatting
33842 Add ??? comment (this whole spec has almost no comments)
33844 2001-10-26 Vincent Celier <celier@gnat.com>
33846 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
33847 ("//") that precede the drive letter on Interix.
33849 2001-10-26 Geert Bosch <bosch@gnat.com>
33851 * gnat_rm.texi: Add GNAT Reference Manual.
33853 2001-10-25 Robert Dewar <dewar@gnat.com>
33855 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
33856 is Error. Similar change for other renaming cases.
33858 2001-10-25 Robert Dewar <dewar@gnat.com>
33860 * s-atacco.ads: Add pragma Inline_Always for functions.
33861 Fix header format. Add copyright 2001
33863 2001-10-25 Ed Schonberg <schonber@gnat.com>
33865 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
33866 return Error rather than Empty so that analysis can proceed.
33868 2001-10-25 Ed Schonberg <schonber@gnat.com>
33870 * sem_util.adb (Enter_Name): better handling of cascaded error
33871 messages when a unit appears in its own context.
33873 2001-10-25 Ed Schonberg <schonber@gnat.com>
33875 * sem_util.adb (Defining_Entity): in case of error, attach created
33876 entity to specification, so that semantic analysis can proceed.
33878 2001-10-25 Robert Dewar <dewar@gnat.com>
33881 (Defining_Entity): Deal with Error.
33882 (Process_End_Label): Deal with bad end label for.
33884 2001-10-25 Ed Schonberg <schonber@gnat.com>
33886 * sem_elab.adb (Check_A_Call): refine message when call is in an
33887 instance but callee is not declared in the generic unit.
33889 2001-10-25 Ed Schonberg <schonber@gnat.com>
33891 * sem_elab.adb (Check_A_Call): check for renaming before finding the
33892 enclosing unit, which may already be different from the calling unit.
33894 2001-10-25 Geert Bosch <bosch@gnat.com>
33896 * 4gintnam.ads: fix header format.
33898 2001-10-25 Ed Schonberg <schonber@gnat.com>
33900 * sem_res.adb (Resolve_Call): if the call is actually an indexing
33901 operation on the result of a parameterless call, perform elaboration
33902 check after the node has been properly rewritten.
33904 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
33905 inlined within the generic tree, the defining identifier is not a
33908 2001-10-25 Ed Schonberg <schonber@gnat.com>
33910 * sem_res.adb (Resolve): special-case resolution of Null in an
33911 instance or an inlined body to avoid view conflicts.
33913 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
33914 compatibility by retrieving the access type of the generic copy.
33916 2001-10-25 Robert Dewar <dewar@gnat.com>
33919 (Analyze_Number_Declaration): Handle error expression.
33920 (Signed_Integer_Type_Declaration): Handle error bound.
33921 (Analyze_Subtype_Indication): Handle error range.
33923 * sem_util.adb (Get_Index_Bounds): Check for Error.
33925 2001-10-25 Robert Dewar <dewar@gnat.com>
33927 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
33928 in no run time mode.
33930 2001-10-25 Pascal Obry <obry@gnat.com>
33932 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
33933 mode case for ALLOC case.
33935 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
33936 all platforms. Improvement of last change.
33938 2001-10-25 Robert Dewar <dewar@gnat.com>
33940 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
33942 2001-10-25 Geert Bosch <bosch@gnat.com>
33944 * osint.adb (Is_Relative): Remove duplicate.
33946 2001-10-25 Pascal Obry <obry@gnat.com>
33948 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
33949 pathnames in UNIX and DOS style with drive letter.
33950 (Is_Relative): new routine.
33952 * osint.adb: Minor reformatting
33954 * osint.adb (Is_Relative): implementation using
33955 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
33957 2001-10-25 Pascal Obry <obry@gnat.com>
33959 * g-dirope.adb (Basename): correctly compute offset between the
33960 original Path and the translated one.
33962 * g-dirope.adb: (Base_Name): add some comments.
33964 2001-10-25 Robert Dewar <dewar@gnat.com>
33966 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
33967 in HIE mode, avoids compilation abandoned message
33969 * exp_imgv.adb: Correct typo in previous change
33971 * exp_imgv.adb: Correct typo in previous change (not my day!)
33973 2001-10-25 Robert Dewar <dewar@gnat.com>
33975 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
33977 2001-10-25 Pascal Obry <obry@gnat.com>
33979 * g-awk.ads: Move all pragma inlines next to the routine
33980 declarations. This is more uniform with other GNAT spec.
33982 2001-10-22 Geert Bosch <bosch@gnat.com>
33984 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
33986 2001-10-19 Geert Bosch <bosch@gnat.com>
33988 * Makefile.in (tools, gnattools): Remove gnatmem.
33990 2001-10-17 Richard Henderson <rth@redhat.com>
33992 * Makefile.in (misc.o): Depend on langhooks.h.
33993 * misc.c: Include it.
33994 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
33995 (LANG_HOOKS_DECODE_OPTION): New.
33996 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
33998 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
34000 * trans.c (tree_transform): Adjust to recent change in
34001 expand_asm_operands to implement named asm operands.
34003 2001-10-11 Ed Schonberg <schonber@gnat.com>
34005 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
34006 renaming of discriminant for mutable record type.
34008 2001-10-11 Robert Dewar <dewar@gnat.com>
34010 * validsw.adb: Properly save -gnatVn status.
34012 2001-10-11 Robert Dewar <dewar@gnat.com>
34014 * usage.adb: Add lines for V switch.
34016 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
34017 (/VALIDITY_CHECKING).
34019 2001-10-11 Ed Schonberg <schonber@gnat.com>
34021 * sem_type.adb (Add_One_Interp): an operator for a type declared in
34022 an extension of System is known to be visible.
34024 2001-10-11 Ed Schonberg <schonber@gnat.com>
34026 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
34027 properly. Fixes regression on ACATS C34005G.
34029 2001-10-11 Robert Dewar <dewar@gnat.com>
34031 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
34032 loop in generic instance, since this is likely not very useful.
34034 2001-10-11 Robert Dewar <dewar@gnat.com>
34036 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
34037 the error message for high integrity mode.
34039 * rtsfind.adb (RTE): Give message if we try to find an entity that
34040 is not available in high integrity mode.
34043 (OK_To_Use_In_HIE_Mode): New array.
34044 (RTE): May return Empty in high integrity mode.
34046 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
34047 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
34049 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
34050 unit if not inlined always and in no runtime mode. Fixes problem
34051 caused by new Rtsfind changes.
34053 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
34056 * rtsfind.adb (RTE): Make sure we do not try to load unit after
34057 giving message for entity not available in high integrity mode.
34059 2001-10-11 Pascal Obry <obry@gnat.com>
34061 * impunit.adb: Add GNAT.CRC32.
34063 2001-10-11 Ed Schonberg <schonber@gnat.com>
34065 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
34066 properly the case where one universal operand in a non-static
34067 exponentiation of a real literal.
34069 2001-10-11 Ed Schonberg <schonber@gnat.com>
34071 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
34072 clause, return the gobal finalization list, for lack of anthing else.
34074 2001-10-11 Ed Schonberg <schonber@gnat.com>
34076 * exp_ch7.adb (Make_Transient_Block): if statement is within
34077 exception handler, always use new transient scope to place Clean
34080 2001-10-11 Pascal Obry <obry@gnat.com>
34083 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
34084 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
34085 (GNATLS_RTL_OBJS): add g-crc32.o
34086 (GNATMAKE_RTL_OBJS): add g-crc32.o
34089 (CRC_Match): new function.
34090 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
34091 instead of the previous simple checksum algorithm.
34092 (Time_Stamp_Mismatch): use CRC_Match for comparison.
34093 (Set_Source_Table): idem.
34096 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
34097 instead of simple checksum.
34098 (CRC_Match): new function.
34099 (CRC_Error): new constant.
34101 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
34102 a CRC now and not a simple checksum. A CRC uses lower-case hex
34103 letters, fixes ambiguity in parsing.
34105 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
34106 is what this variable will store.
34108 * bcheck.adb: Change reference to chechsum in comments by CRC.
34109 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
34110 rename All_Checksum_Match to All_CRC_Match. Change due to API
34111 renaming since now GNAT does not use a simple checksum but a
34112 CRC using GNAT.CRC32.
34114 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
34115 now and not anymore a simple checksum.
34117 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
34120 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
34123 (Restore_Scan_State): rename Checksum to CRC.
34124 (Save_Scan_State): idem.
34128 (Checksum): rename to CRC.
34129 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
34131 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
34132 GNAT.CRC32). Update copyright notice.
34134 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
34135 GNAT.CRC32). Update copyright notice.
34138 (Accumulate_Checksum): removed.
34139 (Update): new procedure. Add a wide-character into the CRC.
34142 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
34143 (Load_File): fix initialization of S (change Source_Checksum to
34146 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
34147 Source_CRC in S initialization.
34149 * sinput.adb (Source_Checksum): renamed to Source_CRC.
34151 * sinput.ads (Source_Checksum): renamed to Source_CRC.
34152 Update comments for the CRC.
34154 * types.adb (Hex): Use lowercase for the letter part.
34156 * types.ads (Get_Hex_String): Returns the hexadecimal representation
34157 for a word. This is currently used only for CRC. In previous version,
34158 the checksum was using a representation with all letter being
34159 upper-case. With the new implementation (using CRC) we do not remove
34160 the 32th bit of the CRC, so we can have an upper-case starting letter
34161 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
34162 It is ambigous since the CRC was optional and could be followed by
34163 options like EB, EE. So now this routines uses lower-case letter for
34164 the hexadecimal representation. Strange enough only lower case letters
34165 where checked in Scan_ALI (even if this was not a possible case).
34167 * gnatvsn.ads (Library_Version): changed to 3.15a.
34169 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
34172 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
34175 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
34176 Add 2001 to copyright notice
34177 (Accumulate_Checksum): Modify to use System.CRC32.
34179 * ali-util.ads: Redo changes of previous revision to continue to use
34180 the word Checksum. Add 2001 to copyright notice.
34182 * ali.adb: Undo some of previous changes, not needed.
34183 Keep the change for lower case letters in the checksum.
34185 * ali.ads: Undo previous change not needed.
34187 * bcheck.adb: Undo most of previous change, not needed.
34188 But do use Checksums_Match for checksum comparison.
34190 * gnatls.adb: Undo most of previous change, not needed.
34191 But do use Checksums_Match for comparing checksums.
34193 * lib-load.adb: Undo previous change, not needed.
34195 * lib-writ.adb: Undo previous change, not needed.
34197 * lib-writ.ads: Document that checksums use lower case,
34198 not upper case letters.
34200 * scans.adb: Undo previous change, not needed
34202 * scans.ads: Undo previous change, not needed.
34204 * scn-nlit.adb: Undo previous changes, not needed.
34206 * scn-slit.adb: Undo previous change, not needed. Fix header format.
34209 (Accumulate_Checksum): Use System.CRC32.
34210 (Initialize_Checksum): New procedure.
34211 Remove other changes of previous revision.
34213 * sinput-p.adb: Undo previous change, not needed.
34215 * sinput.adb: Undo previous change, not needed.
34217 * sinput-l.adb: Undo previous change, not needed.
34219 * sinput.ads: Undo previous change, not needed. Keep only comment
34220 on new checksum algorithm
34222 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
34223 Also remove a-tags and a-stream from GNAT sources.
34225 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
34227 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
34229 2001-10-11 Geert Bosch <bosch@gnat.com>
34231 * einfo.h: Regenerate.
34233 * nmake.ads: Regenerate.
34235 * nmake.adb: Regenerate.
34237 * sinfo.h: Regenerate.
34239 * treeprs.adb: Regenerate.
34241 2001-10-10 Geert Bosch <bosch@gnat.com>
34243 * gnat-style.texi: New file describing coding guidelines for Ada.
34245 2001-10-10 Ed Schonberg <schonber@gnat.com>
34247 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
34250 2001-10-10 Geert Bosch <bosch@gnat.com>
34252 * snames.ads: Add new names for project facility.
34254 * snames.adb: Update to reflect snames.ads changes.
34256 * snames.h: Update to reflect snames.ads changes.
34258 2001-10-10 Vincent Celier <celier@gnat.com>
34261 (Add_Switches): reflect the changes for the switches attributes
34262 Default_Switches indexed by the programming language,
34263 Switches indexed by the file name.
34264 (Collect_Arguments_And_Compile): Idem.
34265 Reflect the attribute name changes.
34268 (Initialisation_Data): Change the names of some packages and
34270 (Initialize): process case insensitive associative arrays.
34273 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
34276 (Parse_Attribute_Declaration): For case insensitive associative
34277 arrays, set the index string to lower case.
34280 Reflect the changes of the project attributes.
34283 Replace Check_Naming_Scheme by Ada_Check and
34284 Language_Independent_Check.
34287 Replaced Check_Naming_Scheme by 2 procedures:
34288 Ada_Check and Language_Independent_Check.
34291 (Process_Declarative_Items): For case-insensitive associative
34292 arrays, set the index string to lower case.
34293 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
34294 Prj.Nmsc.Check_Naming_Scheme.
34297 (Case_Insensitive): New function
34298 (Set_Case_Insensitive): New procedure
34301 (Case_Insensitive): New function
34302 (Set_Case_Insensitive): New procedure
34303 (Project_Node_Record): New flag Case_Insensitive.
34306 (Value_Of): new function to get the string value of a single
34307 string variable or attribute.
34310 (Value_Of): new function to get the string value of a single
34311 string variable or attribute.
34314 (Ada_Default_Spec_Suffix): New function
34315 (Ada_Default_Impl_Suffix): New function
34316 Change definitions of several constants to reflect
34317 new components of record types.
34320 (Naming_Data): Change several components to reflect new
34321 elements of naming schemes.
34322 (Project_Data): New flags Sources_Present and
34323 Language_Independent_Checked.
34324 (Ada_Default_Spec_Suffix): New function.
34325 (Ada_Default_Impl_Suffix): New function.
34328 Modification of predefined names for project manager: added
34329 Implementation, Specification_Exceptions, Implementation_Exceptions,
34330 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
34331 Default_Switches, _Languages, Builder, Cross_Reference,
34332 Finder. Removed Body_Part, Specification_Append, Body_Append,
34333 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
34336 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
34339 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
34340 not that it is Nil_Variable_Value.
34342 * prj.ads: Add ??? for uncommented declarations
34344 2001-10-10 Ed Schonberg <schonber@gnat.com>
34346 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
34347 constant, do not indicate possible modification, so that gigi can
34348 treat it as a bona fide constant.
34350 2001-10-10 Robert Dewar <dewar@gnat.com>
34352 * sem_prag.adb: Add processing for pragma External.
34354 * snames.ads: Add entry for pragma External.
34356 * par-prag.adb: Add pragma External.
34358 * snames.adb: Updated to match snames.ads.
34360 2001-10-10 Ed Schonberg <schonber@gnat.com>
34362 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
34363 a dynamic task if the allocator appears in an indexed assignment
34364 or selected component assignment.
34366 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
34367 For a dynamic task in an assignment statement, use target of
34368 assignment to generate meaningful name.
34370 2001-10-10 Ed Schonberg <schonber@gnat.com>
34372 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
34375 * einfo.ads: Body_Entity is also defined for generic package.
34376 Documentation change only
34378 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
34379 others_choice for a discriminated component initialization,
34380 convert discriminant references into the corresponding discriminals.
34382 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
34383 only if original type is private and expression has to be wrapped
34387 (Apply_Constraint_Check): Do not perform length check
34388 if expression is an aggregate with only an others_choice.
34389 (Length_N_Cond): two references to the same in_parameter
34390 (typically the discriminal in an init_proc) denote the same value.
34391 Two useful optimization uncovered by bugfixes above.
34393 2001-10-10 Robert Dewar <dewar@gnat.com>
34395 * xeinfo.adb: Change int to char in translation of enumeration types.
34396 This fixes a problem in the C representation of component alignment.
34397 Add 2001 to copyright notice
34399 2001-10-10 Richard Kenner <kenner@gnat.com>
34401 * decl.c: (validate_size): Do check size of object of integral type
34402 if it is a packed array type.
34404 2001-10-10 Richard Kenner <kenner@gnat.com>
34406 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
34407 VAR_DECL for constant if not Is_Public but -O0.
34409 2001-10-10 Richard Kenner <kenner@gnat.com>
34411 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
34413 2001-10-10 Geert Bosch <bosch@gnat.com>
34415 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
34416 use '/' as switch character, allowing for absolute file names.
34418 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
34420 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
34423 2001-10-08 Geert Bosch <bosch@gnat.com>
34425 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
34426 Automatically build utilities when files need to be regenerated.
34428 2001-10-08 Geert Bosch <bosch@gnat.com>
34430 * xsnames.adb: New utility for updating snames.ads and snames.adb
34432 2001-10-08 Zack Weinberg <zack@codesourcery.com>
34434 * Make-lang.in (ADAFLAGS): Add -W -Wall.
34435 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
34436 (gnat1): Also depend on attribs.o.
34437 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
34438 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
34439 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
34440 (ADAFLAGS): Add -W -Wall.
34441 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
34444 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
34445 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
34446 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
34447 Use $(ADAC), not $(CC), as compilation command.
34449 (gnattools): Depend directly on tools to build, don't use
34451 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
34453 * einfo.h, sinfo.h: New files (autogenerated).
34455 2001-10-08 Richard Henderson <rth@redhat.com>
34457 * comperr.adb (Abort_In_Progress): New.
34458 (Compiler_Abort): Use it to prevent recursion.
34460 2001-10-08 Robert Dewar <dewar@gnat.com>
34462 * atree.adb: Set Error_Posted in Error node, helps error recovery.
34464 * par-endh.adb (Output_End_Expected): We should also not test
34465 Error_Posted on the Error node, since now it is always set.
34467 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
34468 to help error recovery. Part of general work on 9407-004.
34470 * par.adb: Add ??? for misuse of error
34473 (Resolve): Defend against Error, fixes 9407-003.
34474 (Resolve_Discrete_Subtype_Indication): Defend against Error.
34476 * sinfo.ads (N_Error): Now has Etype field (which will be set
34477 to Any_Type to help error recovery).
34479 2001-10-08 Richard Kenner (kenner@gnat.com)
34481 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
34482 Consistently set MEM attributes from expression; fixes
34483 bootstrap failure on x86.
34485 2001-10-08 Geert Bosch (bosch@gnat.com)
34487 * 5oosinte.adb: Add 2001 to copyright notice.
34489 2001-10-08 Geert Bosch (bosch@gnat.com)
34491 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
34493 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
34495 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
34497 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
34499 2001-10-05 Geert Bosch (bosch@gnat.com)
34501 * adaint.h: Small formatting fix.
34503 2001-10-04 Geert Bosch <bosch@gnat.com>
34505 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
34506 Arg is int, not FILE *, in dummy version of functions.
34508 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
34509 Arg is int, not FILE *.
34511 2001-10-04 Geert Bosch <bosch@gnat.com>
34513 * 3lsoccon.ads: Added file, missed with initial check ins.
34515 * 4lintnam.ads: Fix header format.
34516 Change Linux to GNU/Linux.
34518 * 5iosinte.adb: Change Linux to GNU/Linux.
34520 * 5iosinte.ads: Change Linux to GNU/Linux.
34522 * 5itaprop.adb: Change Linux to GNU/Linux.
34524 * 5itaspri.ads: Change Linux to GNU/Linux.
34525 Update copyright notice.
34527 * 5lintman.adb: Change Linux to GNU/Linux.
34529 * 5lml-tgt.adb: Change Linux to GNU/Linux.
34531 * 5losinte.ads: Change Linux to GNU/Linux.
34533 * 5lsystem.ads: Change Linux to GNU/Linux.
34535 * 5qosinte.adb: Change Linux to GNU/Linux.
34537 * 5qosinte.ads: Change Linux to GNU/Linux.
34539 * 5qparame.ads: Change Linux to GNU/Linux.
34541 * 5qtaprop.adb: Change Linux to GNU/Linux.
34543 * 5qtaspri.ads: Change Linux to GNU/Linux.
34544 Add 2001 to copyright notice.
34546 * 5vintman.ads: Change Linux to GNU/Linux.
34547 Fix header format. Add 2001 to copyright notice.
34549 * g-soccon.ads: Change Linux to GNU/Linux.
34551 * g-trasym.ads: Change Linux to GNU/Linux.
34552 Add 2001 to copyright notice.
34554 * memtrack.adb: Change Linux to GNU/Linux.
34556 * s-intman.ads: Change Linux to GNU/Linux.
34557 Add 2001 to copyright notice. Fix header format.
34559 * s-stache.adb: Change Linux to GNU/Linux.
34561 * adaint.c: Change Linux to GNU/Linux.
34563 * cio.c: Change Linux to GNU/Linux.
34565 * cstreams.c: Change Linux to GNU/Linux.
34567 * init.c: Change Linux to GNU/Linux.
34569 * gmem.c: Change Linux to GNU/Linux.
34571 * tracebak.c: Change Linux to GNU/Linux.
34574 2001-10-02 Geert Bosch <bosch@gnat.com>
34576 * misc.c (insert_default_attributes): Add dummy version.