1 2008-08-05 Thomas Quinot <quinot@adacore.com>
3 * a-rttiev.adb: Minor reformatting (comments)
5 * gen-soccon.c: Rename to gen-oscons.c
7 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
8 GNAT.Sockets.Constants.
9 Add new constants for GNAT.Serial_Communications and System.File_IO.
11 2008-08-05 Javier Miranda <miranda@adacore.com>
13 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
14 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
15 implementation of this routine has been simplified.
17 2008-08-05 Pascal Obry <obry@adacore.com>
19 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
20 Set_Read_Only Win32 implementation.
22 2008-08-05 Thomas Quinot <quinot@adacore.com>
24 * exp_strm.adb: Minor reformatting (comments)
26 * sem_ch12.adb: Minor reformatting.
28 2008-08-05 Robert Dewar <dewar@adacore.com>
30 * sem_ch3.adb: Minor reformatting
32 * checks.adb: Minor reformatting
34 2008-08-05 Thomas Quinot <quinot@adacore.com>
36 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
37 restriction on Prefix.
39 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
41 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
42 methods needed to handle switch sections when building a command line.
43 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
44 Current_Section): New public methods or methods modified to handle
45 building command lines with sections.
46 (Set_Command_Line): Take into account sections when analysing a switch
48 (Start): Sort the switches by sections before iterating the command line
51 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
52 Is_New_Section, Current_Section): New methods or methods modified to
53 handle building command lines with sections.
55 2008-08-05 Ed Schonberg <schonberg@adacore.com>
57 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
58 discriminants, indicate that the corresponding object declaration has
59 no initialization, to prevent spurious warnings when the access type is
62 2008-08-05 Ed Schonberg <schonberg@adacore.com>
64 * sem_res.adb (Resolve_Call): If this is a call to the predefined
65 Abort_Task, warn if the call appears within a protected operation.
67 2008-08-04 Robert Dewar <dewar@adacore.com>
69 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
71 2008-08-04 Ed Schonberg <schonberg@adacore.com>
74 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
75 anonymous access to protected subprogram that is the return type of the
76 specification of a subprogram body.
79 (Analyze_Subprogram_Body): if the return type is an anonymous access to
80 subprogram, freeze it now to prevent access anomalies in the back-end.
82 * exp_ch9.adb: Minor code cleanup.
83 Make sure that new declarations are inserted into the tree before
84 analysis (from code reading).
86 2008-08-04 Robert Dewar <dewar@adacore.com>
89 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
92 2008-08-04 Thomas Quinot <quinot@adacore.com>
94 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
96 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
98 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
100 2008-08-04 Javier Miranda <miranda@adacore.com>
102 * sem_prag.adb (Process_Convention): Add missing support for
103 N_Private_Extension_Declaration nodes.
105 2008-08-04 Robert Dewar <dewar@adacore.com>
107 * exp_ch4.adb: Minor reformatting
109 2008-08-04 Pascal Obry <obry@adacore.com>
111 * adaint.h: Add missing prototype.
113 * adaint.c: Refine support for Windows file attributes.
115 2008-08-04 Robert Dewar <dewar@adacore.com>
118 (Valid_Conversion): Catch case of designated types having different
119 sizes, even though they statically match.
121 2008-08-04 Javier Miranda <miranda@adacore.com>
123 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
124 added in previous patch to handle access to subprograms.
126 2008-08-04 Robert Dewar <dewar@adacore.com>
129 (Freeze_Entity): Only check No_Default_Initialization restriction for
130 constructs that come from source
132 2008-08-04 Thomas Quinot <quinot@adacore.com>
134 * exp_ch6.adb: Minor comment fix.
136 * sem_ch4.adb: Minor reformatting.
138 2008-08-04 Robert Dewar <dewar@adacore.com>
140 * sem_res.adb: (Large_Storage_Type): Improve previous change.
142 2008-08-04 Pascal Obry <obry@adacore.com>
144 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
147 2008-08-04 Javier Miranda <miranda@adacore.com>
149 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
150 for N_Formal_Object_Declaration nodes. Adding kludge required by
151 First_Formal to provide its functionality with access to functions.
152 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
153 for anonymous access types returned by functions.
155 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
156 conversion of null-excluding access types (required only once to force
157 the generation of the required runtime check).
159 * sem_type.adb (Covers): minor reformating
161 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
162 with internally generated nodes. Avoid generating the error inside init
165 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
166 (Resolve_Null): Generate the null-excluding check in case of assignment
167 to a null-excluding object.
168 (Valid_Conversion): Add missing support for anonymous access to
171 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
172 anonymous access types whose designated type is an itype. This case
173 occurs with anonymous access to protected subprograms types.
174 (Analyze_Return_Type): Add missing support for anonymous access to
175 protected subprogram.
177 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
178 subprograms addition of missing check on matching convention. Required
179 to properly handle access to protected subprogram types.
181 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
182 null excluding access types.
184 2008-08-04 Ed Schonberg <schonberg@adacore.com>
186 * sem_ch12.adb: Add comments
188 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
189 access type and the allocator is not initialized, warn rather than
192 2008-08-04 Robert Dewar <dewar@adacore.com>
194 * exp_ch4.adb: Minor reformatting
196 * exp_dist.adb: Minor reformatting
198 * g-comlin.adb: Minor reformatting
200 2008-08-04 Gary Dismukes <dismukes@adacore.com>
202 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
203 target to the type of the aggregate in the case where the target object
206 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
207 result type is class-wide and inherently limited, and the expression
208 has a specific type, create a return object of the specific type, for
209 more efficient handling of returns of build-in-place aggregates (avoids
210 conversions of the class-wide return object to the specific type on
211 component assignments).
213 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
214 about a type mismatch for a class-wide function with a return object
215 having a specific type when the object declaration doesn't come from
216 source. Such an object can result from the expansion of a simple return.
218 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
220 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
222 * gcc-interface/Makefile.in: Use 64bit-specific system files when
223 compiling for 64bit windows.
225 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
227 * g-comlin.adb (Group_Switches): Preserve the switch order when
228 grouping and allow switch grouping of switches with more than one
229 character extension (e.g. gnatw.x).
230 (Args_From_Expanded): Remove this now obsolete method.
232 2008-08-04 Ed Schonberg <schonberg@adacore.com>
234 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
235 chain at once, to ensure that type is properly decorated for back-end,
236 when allocator appears within a loop.
238 2008-08-04 Kevin Pouget <pouget@adacore.com>
240 * snames.h, snames.adb, snames.ads:
241 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
243 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
244 Build_To_Any_Call and Build_TypeCode_Call procedures.
246 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
248 * rtsfind.ads: Add corresponding names.
250 * tbuild.adb: Update prefix restrictions to allow '_' character.
252 2008-08-04 Doug Rupp <rupp@adacore.com>
254 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
255 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
256 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
257 use it. Calculate pointer range overflow using 64bit types.
259 2008-08-04 Ed Schonberg <schonberg@adacore.com>
261 * sem_ch3.adb (Access_Definition): A formal object declaration is a
262 legal context for an anonymous access to subprogram.
264 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
265 indirect call, report success to the caller to include possible
268 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
270 of the extended return is an anonymous access_to_subprogram type.
273 (Resolve_Call): Insert a dereference if the type of the subprogram is an
274 access_to_subprogram and the context requires its return type, and a
275 dereference has not been introduced previously.
277 2008-08-04 Arnaud Charlet <charlet@adacore.com>
279 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
280 gnatcheck support in GPS.
282 2008-08-04 Vincent Celier <celier@adacore.com>
284 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
287 2008-08-04 Vincent Celier <celier@adacore.com>
289 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
290 variable, but don't check the resulting value as it has no impact on
294 (Generate_Processed_File): New Boolean flag, set to True in the compiler
295 when switch -gnateG is used.
298 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
299 when the source is modified by the preprocessor and there is no
300 preprocessing errors.
302 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
305 (Load_File): Output the result of preprocessing if the source text was
308 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
310 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
312 * ug_words: Add VMS equivalent for -gnateG
315 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
317 2008-08-04 Doug Rupp <rupp@adacore.com>
319 * gcc-interface/utils2.c:
320 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
323 2008-08-04 Robert Dewar <dewar@adacore.com>
325 * par-ch10.adb: Minor reformatting
327 * i-cobol.adb: Minor reformatting.
329 2008-08-04 Ed Schonberg <schonberg@adacore.com>
331 * sem_ch3.adb (Access_Definition): Create an itype reference for an
332 anonymous access return type of a regular function that is not a
335 2008-08-04 Vincent Celier <celier@adacore.com>
337 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
339 * snames.adb: New standard name Global_Compilation_Switches
341 * snames.ads: New standard name Global_Compilation_Switches
343 * make.adb: Correct spelling error in comment
345 2008-08-04 Arnaud Charlet <charlet@adacore.com>
347 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
350 2008-08-04 Thomas Quinot <quinot@adacore.com>
352 * sem_ch10.adb: Minor comment fix.
354 2008-08-04 Robert Dewar <dewar@adacore.com>
356 * restrict.adb: Improved messages for restriction warnings
358 * restrict.ads: Improved messages for restriction messages
360 * s-rident.ads (Profile_Name): Add No_Profile
362 2008-08-04 Robert Dewar <dewar@adacore.com>
364 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
366 2008-08-04 Robert Dewar <dewar@adacore.com>
368 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
370 2008-08-04 Vincent Celier <celier@adacore.com>
373 (Copy_Package_Declarations): When inheriting package Naming from a
374 project being extended, do not inherit source exception names.
376 2008-08-04 Ed Schonberg <schonberg@adacore.com>
378 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
379 list of declaration to find previous subprogram, do not go to the
380 original node of a generic unit.
382 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
384 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
385 New case. Convert BOOLEAN_TYPE operation to the default integer type.
387 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
389 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
390 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
391 and adjust for above renaming.
392 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
393 gnu_expr_alt_type parameter. Convert the expression to it instead
394 of changing its type in place.
395 (build_function_stub): Adjust call to above function.
397 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
399 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
400 code. Do not get full definition of deferred constants with address
401 clause for a use. Do not ignore deferred constant definitions with
402 address clause. Ignore constant definitions already marked with the
404 <object>: Remove obsolete comment. For a deferred constant with
405 address clause, get the initializer from the full view.
406 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
407 Rework and remove obsolete comment.
408 <N_Object_Declaration>: For a deferred constant with address clause,
409 mark the full view with the error node.
410 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
413 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
415 * rtsfind.ads: Add block IO versions of stream routines for Strings.
417 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
418 sem_prag.adb, snames.adb, snames.ads, snames.h,
419 par-prag.adb: Undo previous stream related changes.
421 * s-rident.ads: Add new restriction No_Stream_Optimizations.
423 * s-ststop.ads, s-ststop.adb: Comment reformatting.
424 Define enumeration type to designate different IO mechanisms.
425 Enchance generic package Stream_Ops_Internal to include an
426 implementation of Input and Output.
428 * exp_attr.adb (Find_Stream_Subprogram): If restriction
429 No_Stream_Optimization is active, choose the default byte IO
430 implementations of stream attributes for Strings.
431 Otherwise use the corresponding block IO version.
433 2008-08-01 Olivier Hainque <hainque@adacore.com>
435 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
436 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
438 2008-08-01 Robert Dewar <dewar@adacore.com>
440 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
441 convert plain identifier into defining identifier.
443 2008-08-01 Robert Dewar <dewar@adacore.com>
445 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
448 * lib-xref.adb: Add error defense.
450 2008-08-01 Bob Duff <duff@adacore.com>
452 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
454 2008-08-01 Gary Dismukes <dismukes@adacore.com>
456 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
457 correct accessibility levels. In the "when others" case, retrieve the
458 access level of the Etype of Prev rather than Prev_Orig, because the
459 original exression has not always been analyzed.
461 2008-08-01 Robert Dewar <dewar@adacore.com>
463 * prj-nmsc.adb: Minor reformatting
465 * sem_ch4.adb: Minor reformatting
466 Minor code reorganization
468 * prj.ads: Minor reformatting
470 * s-os_lib.adb: Minor reformatting
472 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
475 * scans.ads: Minor reformatting.
477 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
478 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
481 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
483 * sem_ch12.adb: Minor comment reformatting
485 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
488 2008-08-01 Robert Dewar <dewar@adacore.com>
490 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
493 2008-08-01 Ed Schonberg <schonberg@adacore.com>
495 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
496 converted is a real literal and the target type has static bounds,
497 perform the conversion exactly to prevent floating-point anomalies on
500 2008-08-01 Vincent Celier <celier@adacore.com>
502 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
504 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
506 * prj.adb (Object_Exist_For): Use Object_Generated, not
507 Objects_Generated that is removed and was never modified anyway.
510 (Path_Syntax_Kind): New enumeration type
511 (Language_Config): New component Path_Syntax, defaulted to Host.
512 Components PIC_Option and Objects_Generated removed, as they are not
515 * snames.adb: New standard name Path_Syntax
517 * snames.ads: New standard name Path_Syntax
519 2008-08-01 Vincent Celier <celier@adacore.com>
522 (Adalib_Path): New variable to store the path of the adalib directory
523 when procedure Specify_Adalib_Dir is called.
524 (Lib_Directory): If Adalib_Path is not null, return its value
525 (Specify_Adalib_Dir): New procedure
527 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
529 2008-08-01 Ed Schonberg <schonberg@adacore.com>
532 (Check_Precondition_Postcondition): If not generating code, analyze the
533 expression in a postcondition that appears in a subprogram body, so that
534 it is properly decorated for ASIS use.
536 2008-08-01 Gary Dismukes <dismukes@adacore.com>
538 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
539 Orig_Prev to Prev in the case where the actual is N_Function_Call or
540 N_Identifier. This was interfering with other cases that are rewritten
541 as N_Identifier, such as allocators, resulting in passing of the wrong
542 accessibility level, and based on testing this code is apparently no
543 longer needed at all.
545 2008-08-01 Ed Schonberg <schonberg@adacore.com>
547 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
548 procedure call whose prefix
549 is a parameterless function call that returns an access_to_procedure.
551 2008-08-01 Jose Ruiz <ruiz@adacore.com>
553 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
554 for RTX. Adding a suffix that is incremented at each iteration.
556 2008-08-01 Robert Dewar <dewar@adacore.com>
558 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
561 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
563 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
564 paths, which are authorized by Windows but can lead to errors when used
567 2008-08-01 Ed Schonberg <schonberg@adacore.com>
569 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
570 a pending instantiation for the body of a subprogram that is to be
574 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
576 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
577 create a pending instance for its body, so that calls to the subprogram
578 can be inlined by the back-end.
580 2008-08-01 Jose Ruiz <ruiz@adacore.com>
582 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
585 2008-08-01 Robert Dewar <dewar@adacore.com>
587 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
589 2008-08-01 Doug Rupp <rupp@adacore.com>
591 * gnat_rm.texi: Document new mechanism Short_Descriptor.
593 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
596 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
597 mechanism and Short_Descriptor mechanism values.
599 * snames.adb (preset_names): Add short_descriptor entry.
601 * snames.ads: Add Name_Short_Descriptor.
603 * types.h: Add new By_Short_Descriptor mechanism values.
605 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
606 mechanism and Short_Descriptor mechanism values.
608 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
610 (Descriptor_Codes): Modify range for new mechanism values.
612 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
615 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
616 (gnat_to_gnu_param): Handle By_Short_Descriptor.
618 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
619 (build_vms_descriptor32): New prototype.
620 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
622 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
623 argument in call fill_vms_descriptor.
625 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
626 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
627 (build_vms_descriptor): Renamed from build_vms_descriptor64.
628 (convert_vms_descriptor32): New function.
629 (convert_vms_descriptor64): New function.
630 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
633 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
636 2008-08-01 Jose Ruiz <ruiz@adacore.com>
638 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
639 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
642 2008-08-01 Jose Ruiz <ruiz@adacore.com>
644 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
645 current directory so only fully qualified names are allowed.
647 2008-08-01 Robert Dewar <dewar@adacore.com>
650 Minor editing, remove uncomfortable use of semicolon
652 * s-ststop.adb: Add some ??? comments
654 * sem_ch10.adb: Minor reformatting
657 Minor comment fixes, some pragmas were not properly
658 categorized in the comments, documentation change only
660 * xref_lib.adb: Minor reformatting
662 * sinput.adb: Minor reformatting
664 * gnatchop.adb: Minor reformatting
666 * sem_util.ads: Minor reformatting.
668 * opt.ads: Minor documentation fix
670 * scng.adb: Minor reformatting
672 * prj-part.adb: Update comments
674 2008-08-01 Ed Schonberg <schonberg@adacore.com>
676 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
677 tagged synchronized type, use corresponding record type.
679 2008-08-01 Doug Rupp <rupp@adacore.com>
681 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
682 dummy transfer address for debugging.
684 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
686 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
688 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
690 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
691 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
693 2008-07-31 Pascal Obry <obry@adacore.com>
695 * prj-nmsc.adb: Keep Object and Exec directory casing.
697 2008-07-31 Jose Ruiz <ruiz@adacore.com>
699 * system-rtx-rtss.ads
700 Change the default stack size. It is important to set the commit part.
703 (Initialize): Get the clock resolution.
704 (RT_Resolution): Return the clock resolution that is indicated by the
707 * s-parame-vxworks.adb
708 Document that this body is used for RTX in RTSS (kernel) mode.
710 * gcc-interface/Makefile.in
711 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
712 s-parame-vxworks.adb body in order to have reasonable stack sizes in
713 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
714 cannot ask for too big values.
716 2008-07-31 Robert Dewar <dewar@adacore.com>
718 * exp_aggr.adb: Minor reformatting
720 * makeutl.adb: Minor reformatting
722 * prj-env.adb: Minor reformatting
724 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
726 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
727 tagged type is completed by a concurrent type.
729 2008-07-31 Gary Dismukes <dismukes@adacore.com>
732 (Resolve_Record_Aggregate): Bypass error that a type without
733 components must have a "null record" aggregate when compiling for Ada
734 2005, since it's legal to give an aggregate of form (others => <>)
737 2008-07-31 Javier Miranda <miranda@adacore.com>
739 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
740 handle synchronized types. Required to handle well the object.operation
741 notation applied to synchronized types.
743 2008-07-31 Quentin Ochem <ochem@adacore.com>
745 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
746 anymore - just used internally.
747 Added handling of very small tasks - when the theoretical size is
748 already full at the point of the call.
749 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
750 not need to be added to the result.
752 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
754 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
755 corresponding spec is a primitive wrapper. Update comment.
757 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
759 * bindgen.adb Comment reformatting. Update the list of run-time globals.
760 (Gen_Adainit_Ada): Add the declaration, import and value set for
761 configuration flag Canonical_Streams.
762 (Gen_Adainit_C): Add the declaration and initial value of external
763 symbol __gl_canonical_streams.
765 * init.c: Update the list of global values computed by the binder.
767 * opt.ads: Add flag Canonical_Streams.
769 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
770 semantically handled pragmas.
772 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
773 (Analyze_Pragma): Add case for pragma Canonical_Streams.
775 * snames.adb: Add character value for name Canonical_Streams.
778 Add Name_Canonical_Streams to the list of configuration pragmas.
779 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
781 * snames.h: Add a definition for Pragma_Canonical_Streams.
784 Add a flag and import to seize the value of external symbol
785 __gl_canonical_streams. Update comment and initial value of constant
788 * gnat_rm.texi: Add section of pragma Canonical_Streams.
791 Add pragma Canonical_Streams to the list of configuration pragmas.
793 2008-07-31 Ed Schonberg <schonberg@adacore.com>
795 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
796 has the form A.B.C and B is a unit renaming, analyze its compilation
797 unit and add a with_clause on A.b to the context.
799 2008-07-31 Vincent Celier <celier@adacore.com>
801 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
802 return the empty string, instead of raising Constraint_Error.
804 2008-07-31 Gary Dismukes <dismukes@adacore.com>
806 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
808 * checks.adb (Apply_Accessibility_Check): Insert the check on
812 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
813 to new parameter Insert_Node on call to Apply_Accessibility_Check.
814 Necessary to distinguish the insertion node because the dereferenced
815 formal may come from a rename, but the check must be inserted in
816 front of the attribute.
819 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
820 call to Apply_Accessibility_Check.
821 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
822 on call to Apply_Accessibility_Check.
825 2008-07-31 Javier Miranda <miranda@adacore.com>
827 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
828 types when the candidate type is a synchronized type.
830 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
831 types, and complete management of synchronized types adding missing
832 code to handle formal that is a synchronized type.
834 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
835 are not available and cause the compiler to blowup. Found compiling
836 test with switch -gnatc
838 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
839 Has_Correct_Formal_Mode plus code cleanup.
841 2008-07-31 Bob Duff <duff@adacore.com>
843 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
844 recognized as two end-of-lines, but it should be just one.
846 2008-07-31 Thomas Quinot <quinot@adacore.com>
848 * exp_ch9.adb: Minor reformatting
850 * tbuild.ads: Fix several occurrences of incorrectly referring to
851 Name_Find as Find_Name.
853 2008-07-31 Ed Schonberg <schonberg@adacore.com>
855 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
856 and the context is an object declaration with non-static bounds, treat
857 the aggregate as non-static.
859 2008-07-31 Vincent Celier <celier@adacore.com>
861 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
862 Move back spec of Parse_Single_Project to body, as it is not called
863 outside of package Prj.Part.
864 (Project_Data): Remove components Linker_Name, Linker_Path and
865 Minimum_Linker_Options as they are no longer set.
866 Remove function There_Are_Ada_Sources from package Prj and move code
867 in the only place it was used, in Prj.Env.Set_Ada_Paths.
869 2008-07-31 Arnaud Charlet <charlet@adacore.com>
871 * mlib-utl.ads: Fix typo.
873 2008-07-31 Robert Dewar <dewar@adacore.com>
875 * sem_ch12.adb: Minor reformatting
877 2008-07-31 Sergey Rybin <rybin@adacore.com>
879 * gnat_ugn.texi: Change the description of the
880 Overly_Nested_Control_Structures: now the rule always requires a
881 positive parameter for '+R' option
883 2008-07-31 Thomas Quinot <quinot@adacore.com>
885 * g-pehage.adb: Minor reformatting
887 2008-07-31 Pascal Obry <obry@adacore.com>
889 * s-finimp.ads: Minor reformatting.
891 2008-07-31 Vincent Celier <celier@adacore.com>
893 * s-regexp.ads: Minor comment fix
895 2008-07-31 Arnaud Charlet <charlet@adacore.com>
897 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
898 so that we can compile this file successfully with -gnatc.
900 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
902 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
903 of the type when looking for stream subprograms for type String,
904 Wide_String and Wide_Wide_String.
906 * s-ststop.adb: Change the initialization expression of constant
909 2008-07-31 Geert Bosch <bosch@adacore.com>
912 New file implementing __gnat_mulv64 signed integer multiplication with
915 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
917 * gcc-interface/gigi.h:
918 (standard_types): Add ADT_mulv64_decl
919 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
921 * gcc-interface/utils.c:
922 (init_gigi_decls): Add initialization of mulv64_decl
924 * gcc-interface/trans.c:
925 (build_unary_op_trapv): New function
926 (build_binary_op_trapv): New function
927 (gnat_to_gnu): Use the above functions instead of
928 build_{unary,binary}_op
930 * gcc-interface/Makefile.in
931 (LIBGNAT_SRCS): Add arit64.c
932 (LIBGNAT_OBJS): Add arit64.o
934 2008-07-31 Vincent Celier <celier@adacore.com>
936 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
937 Linker'Default_Switches are declared. Warn if they are declared.
939 2008-07-31 Ed Schonberg <schonberg@adacore.com>
941 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
942 Insert_Actions to place the pointer declaration in the code, rather
943 than Insert_Before_And_Analyze, so that insertions of temporaries are
944 kept in the proper order when transient scopes are present.
947 2008-07-31 Robert Dewar <dewar@adacore.com>
949 * einfo.adb (Spec_PPC): Now defined for generic subprograms
951 * einfo.ads (Spec_PPC): Now defined for generic subprograms
953 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
956 2008-07-31 Vincent Celier <celier@adacore.com>
958 * s-os_lib.adb: Minor comment fix
960 2008-07-31 Ed Schonberg <schonberg@adacore.com>
962 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
963 transfer pre/postconditions from generic copy to original tree, so that
964 they will appear in each instance.
965 (Process_PPCs): Do not transform postconditions into a procedure in a
966 generic context, to prevent double expansion of check pragmas.
968 * sem_attr.adb: In an instance, the prefix of the 'result attribute
969 can be the renaming of the
970 current instance, so check validity of the name accordingly.
972 2008-07-31 Robert Dewar <dewar@adacore.com>
974 * mlib-utl.ads: Minor reformatting
976 2008-07-31 Ed Schonberg <schonberg@adacore.com>
978 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
979 from context. This attribute must be usable in Ada95 mode.
980 The attribute can appear in the body of a function marked
981 Inline_Always, but in this case the postocondition is not enforced.
983 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
984 of an inlined call pre- and postconditions are legal
986 2008-07-31 Vincent Celier <celier@adacore.com>
988 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
989 were for gprmake only
991 2008-07-31 Robert Dewar <dewar@adacore.com>
993 * gnat_ugn.texi: Update -gnatN documentation.
995 * gnat_rm.texi: Add note about pre/postcondition
996 pragmas not checked in conjunction with front-end inlining.
998 2008-07-31 Robert Dewar <dewar@adacore.com>
1000 * g-pehage.adb, g-pehage.ads: Minor reformatting
1002 2008-07-31 Arnaud Charlet <charlet@adacore.com>
1004 * mlib-utl.ads, prj-makr.ads: Add comments.
1006 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1008 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
1009 [WINDOWS]: Add s-winext.o.
1011 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
1014 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
1015 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
1016 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
1017 Set precision to 1 for subtype of BOOLEAN_TYPE.
1018 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
1019 (make_type_from_size): Deal with BOOLEAN_TYPE.
1020 * gcc-interface/misc.c (gnat_print_type): Likewise.
1021 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
1022 Set boolean_type_node as its translation in the table, as well
1023 as boolean_false_node for False and boolean_true_node for True.
1024 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
1025 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
1026 (create_param_decl): Deal with BOOLEAN_TYPE.
1027 (build_vms_descriptor): Likewise.
1028 (build_vms_descriptor64): Likewise.
1029 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
1031 2008-07-30 Robert Dewar <dewar@adacore.com>
1033 * exp_ch9.adb: Minor reformatting
1035 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
1036 if no primitive operation is found.
1038 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
1040 * sem_ch8.adb: Minor reformatting
1042 2008-07-30 Laurent Pautet <pautet@adacore.com>
1045 Remove a limitation on the length of the words handled by the minimal
1046 perfect hash function generator.
1049 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
1052 2008-07-30 Robert Dewar <dewar@adacore.com>
1054 * gnatlink.adb: Minor reformatting
1056 2008-07-30 Thomas Quinot <quinot@adacore.com>
1058 * rtsfind.adb (Check_RPC): Check version consistency even when not
1059 generating RCI stubs. Provide more detailed error message in case of
1062 2008-07-30 Ed Schonberg <schonberg@adacore.com>
1064 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
1065 as a actual in an instance, check for a missing attribute to prevent
1066 program_error on an illegal program.
1068 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
1069 error if primitive is not found, so that exception can be handled
1070 elsewhere on illegal programs.
1072 2008-07-30 Robert Dewar <dewar@adacore.com>
1074 * uintp.adb (UI_GCD): Fix potential overflow
1076 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
1078 * einfo.adb: Flag245 is now used.
1079 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
1080 check to include functions.
1081 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
1082 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
1084 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
1085 to the list of displayed flags.
1087 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
1088 Wrapped_Entity. These two flags are now present in functions.
1089 New flag Is_Private_Primitive.
1090 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
1093 (Build_Wrapper_Bodies): New subprogram.
1094 (Build_Wrapper_Body): The spec and body have been moved to in
1095 Build_Wrapper_ Bodies. Code cleanup.
1096 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
1097 Wrappers are now generated for primitives declared between the private
1098 and full view of a concurrent type that implements an interface.
1099 (Build_Wrapper_Specs): New subprogram.
1100 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
1101 creation mechanism with a call to Build_Wrapper_Bodies.
1102 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
1103 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
1104 (Expand_N_Task_Body): Replace the wrapper body creation
1105 mechanism with a call to Build_Wrapper_Bodies.
1106 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
1107 creation mechanism with a call to Build_Wrapper_Specs.
1108 (Is_Private_Primitive_Subprogram): New subprogram.
1109 (Overriding_Possible): Code cleanup.
1110 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
1112 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
1114 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
1115 (Process_Full_View): Build wrapper specs for all primitives
1116 that belong to a private view completed by a concurrent type
1117 implementing an interface.
1119 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
1121 concurrent type with a private view that implements an interface, try to
1122 find the proper spec.
1123 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
1124 primitive if the type of its first parameter is a non-generic tagged
1126 (Analyze_Subprogram_Specification): Code reformatting.
1127 (Disambiguate_Spec): New routine.
1128 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
1129 (Is_Private_Concurrent_Primitive): New routine.
1132 (Find_Corresponding_Spec): Add a formal to control the output of errors.
1134 2008-07-30 Doug Rupp <rupp@adacore.com>
1136 * gigi.h (build_vms_descriptor64): New function prototype.
1137 (fill_vms_descriptor): Modified function prototype.
1139 * utils.c (build_vms_descriptor64): New function.
1141 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
1143 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
1146 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
1147 64bit and 32bit descriptor and save the 64bit version as an alternate
1148 TREE_TYPE in the parameter.
1149 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
1152 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
1154 2008-07-30 Robert Dewar <dewar@adacore.com>
1156 * make.adb: Minor reformatting
1158 * mlib-utl.adb: Minor reformatting
1160 * osint.ads: Minor reformatting
1162 2008-07-30 Jose Ruiz <ruiz@adacore.com>
1165 (__gnat_file_exists): Do not use __gnat_stat for RTX.
1166 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
1167 avoid the use of this symbol from libgcc.a in RTX kernel mode.
1170 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
1171 the function RtPrintf for console output.
1173 * argv.c Do not use the environ variable for RTX.
1175 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
1176 been moved before the call to Osint.Add_Default_Search_Dirs in order
1177 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
1178 from the appropriate run time.
1181 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
1182 target is a RTSS module for RTX.
1184 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
1185 RTX_RTSS_Kernel_Module
1186 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
1188 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
1189 exception handling mechanism for Windows and RTX in Win32 mode, but
1190 not for RTX in kernel mode (RTSS).
1191 (LIBGNAT_SRCS): Remove ada.h
1193 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
1195 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
1196 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
1197 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
1198 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
1199 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
1200 ALL_ADA_CFLAGS): Remove.
1201 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
1202 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
1203 (GCC_CFLAGS): Remove X_CFLAGS.
1204 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
1205 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
1206 (ADA_CFLAGS): Substitute.
1208 2008-07-30 Laurent Guerby <laurent@guerby.net>
1211 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
1212 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
1213 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
1214 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
1215 by stamp-gnatlib2-rts.
1217 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1219 PR documentation/15479
1220 * gnat-style.texi: Remove AdaCore copyright statement and GPL
1221 statement for GNAT. Add @copying stanza, use it. Update to
1222 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
1223 title as Front-Cover Text.
1224 * gnat_rm.texi: Likewise.
1225 * gnat_ugn.texi: Likewise.
1227 2008-07-29 Jan Hubicka <jh@suse.cz>
1229 * trans.c (process_inlined_subprograms): Remove tree_really_inline
1232 2008-07-29 Arnaud Charlet <charlet@adacore.com>
1234 * gcc-interface: New directory.
1236 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
1237 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
1238 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
1239 to gcc-interface subdirectory.
1241 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1243 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
1245 2008-07-28 Jan Hubicka <jh@suse.cz>
1247 * misc.c (gnat_post_options): Do not set flag_no_inline.
1249 2008-07-28 Richard Guenther <rguenther@suse.de>
1251 Merge from gimple-tuples-branch.
1253 2008-07-22 Olivier Hainque <hainque@adacore.com>
1255 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
1256 this is called for an elab proc to be discarded if empty.
1257 * utils.c (end_subprog_body): Honor ELAB_P.
1258 (build_function_stub): Adjust call to end_subprog_body.
1259 * trans.c (Subprogram_Body_to_gnu): Likewise.
1260 (gigi): Reorganize processing of elab procs to prevent
1261 gimplifying twice, using the new end_subprog_body argument.
1263 2008-07-19 Richard Guenther <rguenther@suse.de>
1265 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
1266 (utils.o): Likewise.
1267 * trans.c: Include tree-iterator.h.
1268 (gnat_gimplify_expr): Adjust prototype. Fix typo.
1269 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
1270 (set_expr_location_from_node): Likewise.
1272 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
1274 * utils.c: Include tree-iterator.h.
1275 * gigi.h (gnat_gimplify_expr): Adjust prototype.
1277 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
1279 * trans.c: Include gimple.h instead of tree-gimple.h.
1282 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
1284 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
1286 2008-07-25 Jan Hubicka <jh@suse.cz>
1288 * utils.c (end_subprog_body): Remove inline trees check.
1289 * misc.c (gnat_post_options): Do not set flag_inline_trees.
1291 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1293 * raise-gcc.c: Move tsystem.h before tm.h.
1295 2008-07-20 Arnaud Charlet <charlet@adacore.com>
1297 * gnathtml.pl: New file.
1299 2008-07-19 Olivier Hainque <hainque@adacore.com>
1301 * targtyps.c (get_target_default_allocator_alignment): Use
1302 MALLOC_ABI_ALIGNMENT.
1304 2008-07-17 Olivier Hainque <hainque@adacore.com>
1306 * adaint.c (__MINGW32__ section): Include ctype.h and define
1307 a fallback ISALPHA if IN_RTS.
1308 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
1310 2008-07-17 Olivier Hainque <hainque@adacore.com>
1312 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
1313 argument, to apply to references in addition to definitions. Prevent
1314 setting TREE_STATIC on externals.
1315 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
1317 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1319 PR documentation/15479
1320 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
1321 Replace backets around optional parameters with @ovar
1322 where possible, use @r{[}, @r{]} otherwise.
1323 Replace some @r, @i, and @emph with @var where appropriate.
1325 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
1327 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
1329 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1331 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
1332 -Wc++-compat warnings.
1333 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
1334 __gnat_locate_exec_on_path): Likewise.
1335 * decl.c (annotate_value): Likewise.
1336 * misc.c (gnat_handle_option): Likewise.
1337 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
1338 post_error_ne_tree): Likewise.
1340 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
1342 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
1343 version of its type, attempt to first convert its elements.
1345 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
1347 * Makefile.in: Fix *86 kfreebsd target specific pairs.
1349 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
1351 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
1353 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
1355 * utils2.c (known_alignment): Derive the alignment from pointed-to
1356 types only if it is otherwise unknown.
1357 <INTEGER_CST>: Tidy.
1358 <MULT_EXPR>: Likewise.
1359 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
1362 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1365 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
1367 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1369 * gnat_rm.texi (Implementation Defined Characteristics)
1370 (Standard Library Routines): Use @smallexample for indented
1371 text. Drop Indentation outside examples.
1372 * gnat_ugn.texi: Likewise.
1374 2008-06-13 Olivier Hainque <hainque@adacore.com>
1376 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
1378 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
1379 realignment with force_align_arg_pointer attribute on foreign
1380 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
1382 2008-06-13 Olivier Hainque <hainque@adacore.com>
1384 * utils.c (rest_of_record_type_compilation): When computing
1385 encodings for the components of a variable size type, early
1386 strip conversions on the current position expression to make
1387 sure it's shape is visible. Use remove_conversions for this
1390 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
1392 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
1393 constrained subtype of a discriminated type, discard the fields that
1394 are beyond its limits according to its size.
1396 2008-06-10 Olivier Hainque <hainque@adacore.com>
1398 * utils.c (create_subprog_decl): If this is for the 'main' entry
1399 point according to the asm name, redirect main_identifier_node.
1401 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
1403 * decl.c (components_to_record): Adjust the packedness for the
1404 qualified union as well.
1406 2008-06-09 Arnaud Charlet <charlet@adacore.com>
1408 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
1411 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
1413 * sem_res.adb (Large_Storage_Type): A type is large if it
1414 requires as many bits as Positive to store its values and its
1415 bounds are known at compile time.
1416 * sem_ch13.adb (Minimum_Size): Note that this function returns
1417 0 if the size is not known at compile time.
1419 2008-06-06 Nicolas Setton <setton@adacore.com>
1420 Olivier Hainque <hainque@adacore.com>
1422 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
1423 attribute, parallel descriptive type attached to another
1424 type for debug info generation purposes.
1425 * utils.c (add_parallel_type): New function, register
1426 parallel type to be attached to a type.
1427 (get_parallel_type): New function, fetch a registered
1428 parallel type, if any.
1429 (rest_of_record_type_compilation): Register the parallel
1430 type we make for variable size records.
1431 * gigi.h (add_parallel_type, get_parallel_type): Declare.
1432 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
1433 parallel debug types we make.
1434 * trans.c (extract_encoding, decode_name): New functions.
1435 (gigi): If the DWARF attribute extensions are available, setup
1437 * lang.opt: Register language specific processing request
1439 * misc.c (gnat_dwarf_extensions): New global variable. How much
1440 do we want of our DWARF extensions. 0 by default.
1441 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
1442 (gnat_post_options): Map gnat_dwarf_extensions to the
1443 commonuse_gnu_debug_info_extensions for later processing.
1445 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
1447 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
1449 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1451 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
1452 * gnat_ugn.texi (Style Checking)
1453 (Adding the Results of Compiler Checks to gnatcheck Output)
1454 (Example of Binder Output File): Fix typos.
1455 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
1456 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
1457 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
1458 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
1459 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
1460 sinfo.ads, utils.c: Fix typos in comments.
1461 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
1463 2008-05-29 Thomas Quinot <quinot@adacore.com>
1465 * sem_eval.adb: Minor reformatting
1467 2008-05-29 Ed Schonberg <schonberg@adacore.com>
1469 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
1470 is abstract, do not apply abstractness check on subprogram if this is
1471 a renaming declaration.
1473 2008-05-29 Arnaud Charlet <charlet@adacore.com>
1476 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
1477 allow recognition of program suffix in addition to prefix.
1479 * gnatchop.adb (Locate_Executable): Add support for prefix.
1481 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
1482 mlib-utl.adb: Adjust calls to Program_Name.
1484 2008-05-29 Robert Dewar <dewar@adacore.com>
1486 * sem_ch3.adb: Minor reformatting
1487 * sem_prag.adb: Minor reformatting
1488 * sem_res.adb: Minor reformatting
1489 * sinput-p.ads: Minor reformatting
1491 2008-05-29 Javier Miranda <miranda@adacore.com>
1494 (Abstract_Interface_List): Add missing support for full type-declaration
1495 associated with synchronized types.
1497 2008-05-29 Robert Dewar <dewar@adacore.com>
1499 * sem_eval.adb (Is_Same_Value): Take care of several more cases
1501 2008-05-28 Ed Schonberg <schonberg@adacore.com>
1503 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
1504 access type, wrap the expression in a conversion to force an
1505 accessibility check.
1507 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
1508 accessibility checks even when expansion is disabled in order to
1509 generate messages in the presence of previous errors or in
1510 semantics-only mode.
1512 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
1514 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
1515 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
1517 2008-05-28 Vincent Celier <celier@adacore.com>
1520 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
1521 preprocessing expressions
1523 2008-05-28 Vincent Celier <celier@adacore.com>
1525 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
1528 * sinput-p.ads: Minor comment update and reformatting
1530 2008-05-28 Ed Schonberg <schonberg@adacore.com>
1532 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
1533 type has a deeper level than any master only when it is the type of an
1536 2008-05-28 Javier Miranda <miranda@adacore.com>
1538 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
1540 2008-05-28 Javier Miranda <miranda@adacore.com>
1542 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
1543 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
1544 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
1545 Add code that was previously located in
1546 Find_Overridden_Synchronized_Primitive because it is only used here.
1548 2008-05-28 Sergey Rybin <rybin@adacore.com>
1550 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
1551 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
1553 2008-05-28 Robert Dewar <dewar@adacore.com>
1556 Add missing restrictions, and properly label all GNAT defined ones
1559 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
1560 Add entry for Ada.Task_Termination.Set_Specific_Handler
1561 Add entry for Ada.Task_Termination.Specific_Handler
1564 Add missing restrictions and properly mark all gnat defined ones
1567 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
1570 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1572 * gnat_rm.texi: Add missing restrictions, and properly label all
1575 2008-05-28 Robert Dewar <dewar@adacore.com>
1578 (Check_Restriction): violation of restriction No_Finalization is
1579 treated as a serious error to stop expansion
1581 2008-05-28 Robert Dewar <dewar@adacore.com>
1583 * exp_util.adb: Minor reformatting
1584 * exp_util.ads: Minor reformatting.
1586 2008-05-28 Arnaud Charlet <charlet@adacore.com>
1588 * Make-lang.in: Remove gprmake.
1590 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
1592 2008-05-28 Ed Schonberg <schonberg@adacore.com>
1594 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
1595 improper progenitor names, and avoid cascaded errors.
1597 2008-05-28 Robert Dewar <dewar@adacore.com>
1599 * gnat_rm.texi: Add note on Old giving warning when applied to constant
1601 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
1604 2008-05-28 Robert Dewar <dewar@adacore.com>
1606 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
1609 2008-05-28 Robert Dewar <dewar@adacore.com>
1612 (Expand_Simple_Function_Return): Copy unaligned result into temporary
1614 2008-05-28 Javier Miranda <miranda@adacore.com>
1616 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
1617 for user-defined predefined primitives.
1619 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
1620 (Find_Overridden_Synchronized_Primitive): Ditto.
1622 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
1624 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1626 * a-ststio.adb, s-direio.adb:
1627 Further code clean up of previous change.
1630 2008-05-27 Vincent Celier <celier@adacore.com>
1632 * prj-nmsc.adb: Minor reformatting
1634 2008-05-27 Bob Duff <duff@adacore.com>
1636 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
1637 untagged private type with a tagged full type, where the full type has
1638 a self reference, create the corresponding class-wide type early, in
1639 case the self reference is "access T'Class".
1641 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1643 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
1644 tasks and context is an object declaration. create master entity before
1647 2008-05-27 Robert Dewar <dewar@adacore.com>
1649 * mlib-prj.adb: Minor reformatting
1651 * prj-part.adb: Minor reformatting
1653 * prj.ads: Minor reformatting
1655 * exp_ch3.adb: Minor reformatting.
1657 * sem_ch3.ads: Minor reformatting
1659 * sem_eval.adb: Minor reformatting
1661 2008-05-27 Vincent Celier <celier@adacore.com>
1664 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
1666 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1668 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
1669 tasks, create an activation chain now, before the expansion into
1670 assignments and build-in-place calls that require the presence of an
1672 (Backend_Processing_Possible): If the component type is inherently
1673 limited, the aggregate must be expanded into individual built-in-place
1676 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
1677 determine whether an allocation extra parameter must be built, to
1678 handle case of a private type whose full type is a discriminated type
1681 2008-05-27 Bob Duff <duff@adacore.com>
1684 Document the new behavior regarding trampolines.
1686 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1688 * a-direio.adb, a-sequio.adb: Replace address clause by
1689 unrestricted_access, simpler and compatible with .NET.
1691 2008-05-27 Vincent Celier <celier@adacore.com>
1694 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
1695 a project file, so that symbolic links are not resolved.
1697 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1699 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
1700 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
1701 portable across GNAT targets, since this kind of address clause is not
1702 supported by VM back-ends (.NET/JGNAT).
1704 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1706 * bindgen.adb: Update comments.
1708 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
1710 2008-05-27 Vincent Celier <celier@adacore.com>
1712 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
1713 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
1714 mlib-tgt.adb, prj-env.adb, prj-env.ads:
1715 (Path_Information): New record type
1716 Use component of type Path_Information when there are two paths, one in
1717 canonical format and one in display format.
1718 Update the project manager to these new components.
1720 2008-05-27 Robert Dewar <dewar@adacore.com>
1722 * makeutl.adb: Minor reformatting
1723 * prj-nmsc.adb: Minor reformatting
1724 * s-stausa.adb: Minor reformatting
1725 * s-stausa.ads: Minor reformatting
1726 * sem_ch6.adb: Minor reformatting
1728 2008-05-27 Thomas Quinot <quinot@adacore.com>
1730 * sem_res.adb: Minor comment fixes
1732 2008-05-27 Thomas Quinot <quinot@adacore.com>
1734 * makeutl.adb: Minor code reorganization
1736 * exp_aggr.adb: Add ??? comment
1739 * exp_ch6.adb: Minor reformatting
1741 2008-05-27 Quentin Ochem <ochem@adacore.com>
1743 * s-stausa.adb (Initialize): Updated result initialization, and
1744 initialization of environment stack.
1745 (Fill_Stack): Improved computation of the pattern zone, taking into
1746 account already filled at the calling point.
1747 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
1748 Measure and Overflow_Guard.
1749 (Report_Result): Fixed computation of the result using new fields of
1752 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
1753 params by more explicit Stack_Size / Max_Pattern_Size params.
1754 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
1755 Added Stack_Used_When_Filling field.
1756 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
1757 Min_Measure and Max_Measure fields.
1759 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
1761 2008-05-27 Vincent Celier <celier@adacore.com>
1764 (Check_File): Make sure that a unit that replaces the same unit in a
1765 project being extended is properly processed.
1767 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1770 (Get_Discr_Value): Remove obsolete code that failed to find the value
1771 of a discriminant for an inherited task component appearing in a type
1774 2008-05-27 Thomas Quinot <quinot@adacore.com>
1776 (System.File_IO.{Close, Delete, Reset}):
1777 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
1779 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
1780 Pass File parameter by reference.
1782 2008-05-27 Vincent Celier <celier@adacore.com>
1785 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
1786 sources of the same project that have the same object file name.
1787 (Find_Explicit_Sources): Always remove a source exception that was not
1790 2008-05-27 Thomas Quinot <quinot@adacore.com>
1792 * sem_ch3.adb: Minor reformatting
1794 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1797 (Is_Interface_Conformant): Handle properly a primitive operation that
1798 overrides an interface function with a controlling access result.
1799 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
1800 inherited and overriding operations, omit as well the conformance check
1801 on result types, to prevent spurious errors.
1803 2008-05-27 Vincent Celier <celier@adacore.com>
1805 * makeutl.ads, makeutl.adb:
1806 (Set_Location): New procedure
1807 (Get_Location): New function
1808 (Update_Main): New procedure
1810 2008-05-27 Vincent Celier <celier@adacore.com>
1813 (Check_Library): Allow standard project to be extended as a static
1815 (Get_Mains): Do not inherit attribute Main in an extending library
1818 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
1820 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
1821 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
1822 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
1823 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
1824 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
1825 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
1826 * system-mingw.ads (Always_Compatible_Rep): Likewise.
1827 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
1828 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
1829 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
1831 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1833 * sem_attr.adb: add guard to previous patch.
1835 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1837 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
1838 a synchronized tagged type, do not attempt to build dispatch table for
1839 full view. The table is built for the corresponding record type, which
1840 has its own declaration.
1842 2008-05-27 Gary Dismukes <dismukes@adacore.com>
1844 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
1845 to the known type entity E, rather than setting it to Any_Type. Fixes
1846 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
1847 for objects whose type had an illegal constraint.
1849 2008-05-27 Vincent Celier <celier@adacore.com>
1852 Add succinct documentation for attribute Excluded_Source_List_File
1854 2008-05-27 Vincent Celier <celier@adacore.com>
1856 * prj-attr.adb: Add new project level attribute Map_File_Option
1858 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
1860 * prj.ads: Minor reformatting and comment update
1861 (Project_Configuration): New component Map_File_Option
1863 * snames.adb: New standard name Map_File_Option
1865 * snames.ads: New standard name Map_File_Option
1867 2008-05-27 Vincent Celier <celier@adacore.com>
1869 * xsnames.adb: Remove unused variable Oname
1871 2008-05-27 Doug Rupp <rupp@adacore.com>
1874 (Expand_N_Function_Call): Fix comments. Minor reformatting.
1877 (Expand_Vax_Foreign_Return): Fix comments.
1879 2008-05-27 Thomas Quinot <quinot@adacore.com>
1881 * exp_dist.adb: Minor reformating
1883 2008-05-26 Gary Dismukes <dismukes@adacore.com>
1885 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
1886 No_Default_Initialization, which is now delayed until the freeze point
1887 of the object. Add a comment about deferral of the check.
1889 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
1890 on objects is moved here.
1892 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1894 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
1895 (Compare_Array_S16): Adjust for above change.
1896 * s-casi32.adb (Uword): Likewise.
1897 (Compare_Array_S32): Likewise.
1898 * s-casi64.adb (Uword): Likewise.
1899 (Compare_Array_S64): Likewise.
1900 * s-caun16.adb (Uhalf): Likewise.
1901 (Compare_Array_U16): Likewise.
1902 * s-caun32.adb (Uword): Likewise.
1903 (Compare_Array_U32): Likewise.
1904 * s-caun64.adb (Uword): Likewise.
1905 (Compare_Array_U64): Likewise.
1907 2008-05-26 Robert Dewar <dewar@adacore.com>
1909 * exp_ch6.adb: Add ??? comment for previous change
1911 * exp_vfpt.adb: Minor reformatting
1913 * exp_vfpt.ads: Add ??? comment for last change
1915 * sem_attr.adb: Add some ??? comments for previous change
1917 * s-vaflop.ads: Add comments for previous change
1919 2008-05-26 Doug Rupp <rupp@adacore.com>
1921 * s-vaflop-vms-alpha.adb:
1922 Remove System.IO use clause, to prevent spurious ambiguities when
1923 package is access through rtsfind.
1925 2008-05-26 Sergey Rybin <rybin@adacore.com>
1927 * tree_io.ads (ASIS_Version_Number): Update because of the changes
1930 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1933 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
1934 converted to S (A)'address only if A .. B is known to be a non-null
1937 2008-05-26 Doug Rupp <rupp@adacore.com>
1940 (Return_D, Return_F, Return_G): New functions.
1943 (Return_D, Return_F, Return_G): New functions.
1946 (Expand_Vax_Foreign_Return): New procedure
1949 (Expand_Vax_Foreign_Return): New procedure
1952 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
1953 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
1957 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
1959 * s-vaflop-vms-alpha.adb:
1960 (Return_D, Return_F, Return_G): New functions.
1962 2008-05-26 Gary Dismukes <dismukes@adacore.com>
1964 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
1965 init proc entity when there is actual default initialization associated
1966 with the component type, to avoid spurious errors on objects of scalar
1967 array types that are marked Is_Public when No_Default_Initialization
1970 2008-05-26 Thomas Quinot <quinot@adacore.com>
1972 * rtsfind.ads, rtsfind.adb:
1973 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
1974 (Check_RPC): Support per-PCS-kind API versioning.
1976 exp_dist.ads, exp_dist.adb:
1977 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
1978 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
1979 library function Get_RACW.
1980 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
1981 library function Get_Reference.
1982 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
1983 through an intermediate Any.
1984 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
1985 going through an intermediate Any.
1987 * sem_dist.adb: Minor reformatting.
1989 2008-05-26 Javier Miranda <miranda@adacore.com>
1991 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
1992 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1993 (Is_Internal): Adding documentation on internal entities that have
1994 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
1996 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
1997 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1998 Added assertion to force entities with this attribute to have
1999 attribute Is_Internal set to True.
2000 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
2002 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
2003 renamed as Derive_Progenitor_Subprograms. In addition, its code is
2004 a new implementation.
2005 (Add_Interface_Tag_Components): Remove special management of
2006 synchronized interfaces.
2007 (Analyze_Interface_Declaration): Minor reformating
2008 (Build_Derived_Record_Type): Minor reformating
2009 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
2010 predefined primitive inherited from interface type because the body of
2011 internally generated predefined primitives of tagged types are generated
2012 later by Freeze_Type
2013 (Derive_Subprogram): Avoid generating an internal name if the parent
2014 subprogram overrides an interface primitive.
2015 (Derive_Subprograms): New implementation that keeps separate the
2016 management of tagged types not implementing interfaces, from tagged
2017 types that implement interfaces.
2018 (Is_Progenitor): New implementation.
2019 (Process_Full_View): Add documentation
2020 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
2021 by call to Derive_Progenitor_Subprograms.
2023 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
2024 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
2025 Skip_Controlling_Formals.
2027 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
2028 (Check_Conventions): New implementation. Remove local subprogram
2029 Skip_Check. Remove formal Search_From of routine Check_Convention.
2030 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
2031 Skip_Controlling_Formals.
2032 (New_Overloaded_Entity): Enable addition of predefined dispatching
2036 (Find_Primitive_Covering_Interface): New subprogram.
2038 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
2039 the task body procedure as a primitive of the corresponding tagged
2041 (Check_Operation_From_Private_Type): Avoid adding twice an entity
2042 to the list of primitives.
2043 (Find_Primitive_Covering_Interface): New subprogram.
2044 (Override_Dispatching_Operation): Add documentation.
2046 * sem_type.adb (Covers): Minor reformatings
2048 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
2051 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
2052 (Implements_Interface): New subprogram.
2053 (Is_Parent): Removed.
2054 (Primitive_Names_Match): New subprogram.
2055 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
2056 (Ultimate_Alias): New subprogram.
2058 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
2060 Remove special management for synchronized types. Rename formal. Remove
2061 internal subprograms Interface_Present_In_Parent and Add_Interface.
2062 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
2063 on non-record types by code to return false in such case.
2064 (Implements_Interface): New subprogram.
2065 (Is_Parent): Removed. No special management is now required for
2066 synchronized types covering interfaces.
2067 (Primitive_Names_Match): New subprogram.
2068 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
2069 (Ultimate_Alias): New subprogram.
2071 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
2072 Add internal entities associated with secondary dispatch tables to
2073 the list of tagged type primitives that are not interfaces.
2074 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
2075 (Make_Predefined_Primitive_Specs): Code reorganization to improve
2076 the management of predefined equality operator. In addition, if
2077 the type has an equality function corresponding with a primitive
2078 defined in an interface type, the inherited equality is abstract
2079 as well, and no body can be created for it.
2081 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
2082 exp_util to exp_disp.
2083 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
2084 an entity corresponds with one of the predefined primitives required
2085 to implement interfaces.
2086 Update copyright notice.
2088 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
2089 final check on abstract subprograms all the primitives associated with
2090 interface primitives because they must be visible in the public and
2092 (Write_DT): Use Find_Dispatching_Type to locate the name of the
2093 interface type. This allows the use of this routine, for debugging
2094 purposes, when the tagged type is not fully decorated.
2095 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
2096 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
2097 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
2098 entity corresponds with one of the predefined primitives required to
2099 implement interfaces.
2101 * exp_util.adb (Find_Interface_ADT): New implementation
2102 (Find_Interface): Removed.
2104 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
2105 list of interfaces associated with nodes
2106 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
2108 2008-05-26 Thomas Quinot <quinot@adacore.com>
2110 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
2111 condition for assignment to temporary.
2113 2008-05-26 Ed Schonberg <schonberg@adacore.com>
2115 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
2116 checks on the upper bound if the index type is a modular type, to
2117 prevent wrap-around computations when size is close to upper bound of
2120 2008-05-26 Robert Dewar <dewar@adacore.com>
2122 * sem_ch3.adb: Minor reformatting
2124 2008-05-26 Ed Schonberg <schonberg@adacore.com>
2126 * sem_ch12.adb (Remove_Parent): Use specification of instance
2127 to retrieve generic parent,
2128 to handle properly the case where the instance is a child unit.
2129 Add guard to handle properly wrapper packages.
2132 2008-05-26 Thomas Quinot <quinot@adacore.com>
2134 * sinfo.ads: Minor reformatting
2136 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
2138 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
2139 Generate a tag check when the result subtype of a function, defined by
2140 an access definition, designates a specific tagged type.
2141 (Make_Tag_Check): New routine.
2143 2008-05-26 Arnaud Charlet <charlet@adacore.com>
2145 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
2147 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
2149 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
2150 (builtin_decl_for): Likewise.
2151 * trans.c (gigi): Likewise.
2152 * utils.c (def_builtin_1): Fix formatting.
2154 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
2156 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
2157 Create the statements which map a string name to protected or task
2160 * exp_ch9.adb: Add with and use clause for Stringt.
2161 Minor code reformatting.
2162 (Build_Entry_Names): New routine.
2163 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
2164 for flag Build_Entry_Names which controls the allocation of the data
2165 structure for the string names of entries.
2167 * exp_ch9.ads (Build_Entry_Names): New subprogram.
2169 * exp_util.adb (Entry_Names_OK): New function.
2171 * exp_util.ads (Entry_Names_OK): New function.
2173 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
2174 enumerations RE_Id and RE_Unit_Table.
2176 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
2177 (Free_Entry_Names_Array): New routine.
2179 * s-taskin.ads: Comment reformatting.
2180 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
2181 Add component Entry_Names to record Ada_Task_Control_Block.
2182 (Free_Entry_Names_Array): New routine.
2184 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
2185 dynamically allocate an array
2186 of string pointers. This structure holds string entry names.
2187 (Free_Entry_Names): New routine.
2188 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
2189 (Set_Entry_Names): New routine.
2192 (Create_Task): Add formal Build_Entry_Names. The flag is used to
2193 control the allocation of the data structure which stores entry names.
2194 (Set_Entry_Name): New routine.
2197 Add with and use clause for Ada.Unchecked_Conversion.
2198 (Finalize): Deallocate the entry names array.
2199 (Free_Entry_Names): New routine.
2200 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
2201 create an array of string pointers to hold the entry names.
2202 (Set_Entry_Name): New routine.
2205 Add field Entry_Names to record Protection_Entries.
2206 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
2207 (Set_Entry_Name): New routine.
2209 2008-05-26 Vincent Celier <celier@adacore.com>
2212 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
2215 (Project_Configuration): New component Shared_Lib_Driver
2217 2008-05-26 Ed Schonberg <schonberg@adacore.com>
2220 (Cleanup_Scopes): For a protected operation, transfer finalization list
2221 to protected body subprogram, to force cleanup actions when needed.
2223 2008-05-26 Robert Dewar <dewar@adacore.com>
2225 * sem_cat.adb: Minor reformatting
2227 * gnatname.adb: Minor reformatting
2229 * osint.ads: Minor reformatting
2231 * s-carun8.ads: Minor reformatting
2233 * g-heasor.ads: Minor comment fix (unit is now pure)
2235 2008-05-26 Robert Dewar <dewar@adacore.com>
2238 (Expand_Current_Value): Properly type generated integer literal
2240 2008-05-26 Sergey Rybin <rybin@adacore.com>
2242 * gnat_ugn.texi: Add description for the new gnatcheck rule -
2243 Separate_Numeric_Error_Handlers.
2245 2008-05-26 Pascal Obry <obry@adacore.com>
2247 * sem_aggr.adb: Minor reformatting.
2249 2008-05-26 Jose Ruiz <ruiz@adacore.com>
2252 (To_Target_Priority): Setting the time slice value to 0 or greater sets
2253 the scheduling policy to FIFO within priorities or round-robin
2255 Hence, the priority must be set in this case to the one selected by the
2258 2008-05-26 Ed Schonberg <schonberg@adacore.com>
2261 (Remove_Parent): If the enclosing scope is an instance whose generic
2262 parent is declared within some parent scope of the just completed
2263 instance, make full views of the entities in that parent visible, when
2266 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
2268 * mingw32.h (STD_MINGW): Set to true for target w64.
2270 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
2272 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
2273 instead of TREE_STATIC on the ADDR_EXPR.
2275 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
2277 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
2278 (Sloc_to_locus): Do not overwrite known GCC locations when translating
2279 GNAT standard locations.
2281 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
2283 * gigi.h (mark_visited): Declare.
2284 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
2285 only the topmost node of expressions.
2286 (elaborate_expression_1): Look deeper for read-only variables.
2287 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
2288 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
2289 (mark_visited_r): New function.
2291 2008-05-23 Vincent Celier <celier@adacore.com>
2293 * snames.adb: New standard name Excluded_Source_List_File.
2295 * snames.ads: New standard name Excluded_Source_List_File.
2297 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
2299 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
2300 Get excluded sources from
2301 file indicated by attribute Excluded_Source_List_File, when present and
2302 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
2304 2008-05-23 Robert Dewar <dewar@adacore.com>
2306 * exp_dist.adb: Minor reformatting
2308 2008-05-23 Ed Schonberg <schonberg@adacore.com>
2310 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
2311 slice, convert it to an indexed component, which is equivalent, more
2312 efficient, and usable even if the slice itself is not addressable.
2314 2008-05-23 Olivier Hainque <hainque@adacore.com>
2316 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
2317 convention also allows access to named compiler built-in subprograms
2318 such as the GCC __builtin family.
2320 2008-05-23 Vincent Celier <celier@adacore.com>
2322 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
2323 sep. If there are several possibilities, choose the one with the
2326 2008-05-23 Vincent Celier <celier@adacore.com>
2328 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
2329 back end switches when executable specified with --GCC= is same as
2330 default, even if there are additional options.
2333 Document when the back end switches from the ALI file are taken into
2334 account when gnatlink is invoked with --GCC=
2336 2008-05-23 Thomas Quinot <quinot@adacore.com>
2339 (copy_File): Do not open destination file if source file is unreadable.
2341 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
2343 * utils.c (handle_type_generic_attribute): Adjust to accept
2344 fixed arguments before an elipsis.
2346 2008-05-21 Thomas Quinot <quinot@adacore.com>
2348 * g-sothco.ads, g-sothco.adb: New files.
2350 2008-05-20 Thomas Quinot <quinot@adacore.com>
2352 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
2354 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
2355 Add missing "with" of Ada.Unchecked_Conversion
2357 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
2358 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
2359 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
2360 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
2361 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
2362 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
2363 Move common code out of GNAT.Sockets.Thin implementations and into
2365 New constant SIZEOF_fd_set
2366 New flag Has_Sockaddr_Len
2367 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2369 * g-stsifd-sockets.adb
2370 (Create): Remove call to Set_Length; use Set_Family to set the family
2371 and (on appropriate platforms) length fields in struct sockaddr.
2373 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
2374 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
2375 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
2376 Move common code out of GNAT.Sockets.Thin implementations and into
2379 * g-socket.ads, g-socket.adb:
2380 Move common code out of GNAT.Sockets.Thin implementations and into
2382 (Connect_Socket, Accept_Socket): Provide new versions of these two
2383 routines that operate with a user specified timeout.
2384 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
2385 this is now handled automatically by Set_Family on platforms that
2389 Move common code out of GNAT.Sockets.Thin implementations and into
2391 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
2392 this constant to 0 (not -1) because we use it to initialize an
2393 unsigned_char value.
2394 Align values for numeric constants only.
2395 Handle the case of systems that do not support AF_INET6.
2396 New constant SIZEOF_fd_set
2397 New flag Has_Sockaddr_Len
2398 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2400 * gsocket.h: New flag Has_Sockaddr_Len
2401 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2403 2008-05-20 Santiago Uruena <uruena@adacore.com>
2405 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
2407 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2409 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
2410 the underlying issue with malloc/free has been fixed. Remove associated
2413 Related to PR ada/24533
2415 2008-05-20 Robert Dewar <dewar@adacore.com>
2417 * ali.adb: Correct casing of ASCII.NUL
2419 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
2422 2008-05-20 Robert Dewar <dewar@adacore.com>
2423 Gary Dismukes <dismukes@adacore.com>
2425 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
2426 overflow if result converted to wider integer type.
2427 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
2428 discriminated types when discriminant checks are suppressed.
2430 2008-05-20 Vincent Celier <celier@adacore.com>
2432 * cstand.adb (Print_Standard): Issue the correct Size clause for type
2433 Wide_Wide_Character.
2435 2008-05-20 Tristan Gingold <gingold@adacore.com>
2437 * decl.c: Do not emit a variable for a object that has an address
2438 representation clause whose value is known at compile time.
2439 When a variable has an address clause whose value is known at compile
2440 time, refer to this variable by using directly the address instead of
2441 dereferencing a pointer.
2443 2008-05-20 Robert Dewar <dewar@adacore.com>
2446 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
2447 subtypes, always False for non-modular types.
2448 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
2449 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
2450 for Shared_Storage package.
2451 (Is_RACW_Stub_Type): New entity flag.
2454 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
2455 case where we have a modular type with a non-binary modules.
2456 Comments reformattings.
2458 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
2461 2008-05-20 Javier Miranda <miranda@adacore.com>
2464 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
2465 tests did not covered the case in which the type of the aggregate has
2466 no progenitors but some its parents has progenitors.
2468 2008-05-20 Gary Dismukes <dismukes@adacore.com>
2469 Hristian Kirtchev <kirtchev@adacore.com>
2472 (Expand_N_Object_Declaration): Correct the condition which triggers the
2473 generation of a call to Displace when initializing a class-wide object.
2474 (Build_Dcheck_Functions): Build discriminant-checking for null variants
2475 when Frontend_Layout_On_Target is true to ensure that they're available
2476 for calling when a record variant size function is built in Layout.
2478 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2480 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
2481 procedure for a derived type retrieve the discriminant values from the
2482 parent using the corresponding discriminant.
2483 (Expand_N_Assignment_Statement): Skip generation of implicit
2484 if-statement associated with controlled types if we are
2485 compiling with restriction No_Finalization.
2487 2008-05-20 Vincent Celier <celier@adacore.com>
2489 * prj.adb (Hash (Project_Id)): New function
2490 (Project_Empty): Add new component Interfaces_Defined
2492 * prj.ads (Source_Data): New component Object_Linked
2493 (Language_Config): New components Object_Generated and Objects_Linked
2494 (Hash (Project_Id)): New function
2495 (Source_Data): New Boolean components In_Interfaces and
2496 Declared_In_Interfaces.
2497 (Project_Data): New Boolean component Interfaces_Defined
2500 New project level attribute Object_Generated and Objects_Linked
2501 Add new project level attribute Interfaces
2503 * prj-dect.adb: Use functions Present and No throughout
2504 (Parse_Variable_Declaration): If a string type is specified as a simple
2505 name and is not found in the current project, look for it also in the
2506 ancestors of the project.
2509 Replace procedure Make with procedures Initialize, Process and Finalize
2510 to implement H414-023: process different directories with different
2512 Use functions Present and No throughout
2515 Replace procedure Make with procedures Initialize, Process and Finalize
2518 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
2519 the language configuration.
2520 (Process_Project_Level_Array_Attributes): Process new attributes
2521 Object_Generated and Object_Linked.
2522 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
2523 False, to indicate that the erreor/warning is a continuation.
2524 (Check): Call Report_No_Sources with Contnuation = True after the first
2526 (Error_Msg): Process successively contnuation character and warning
2528 (Find_Explicit_Sources): Check that all declared sources have been found
2529 (Check_File): Indicate in hash table Source_Names when a declared source
2531 (Check_File): Set Other_Part when found
2532 (Find_Explicit_Sources): In multi language mode, check if all exceptions
2533 to the naming scheme have been found. For Ada, report an error if an
2534 exception has not been found. Otherwise, disregard the exception.
2535 (Check_Interfaces): New procedure
2536 (Add_Source): When Other_Part is defined, set mutual pointers in spec
2538 (Check): In multi-language mode, call Check_Interfaces
2539 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
2540 for an excluded source.
2541 (Remove_Source): A source replacing a source in the interfaces is also
2544 * prj-pars.adb: Use function Present
2546 * prj-part.adb: Use functions Present and No throughout
2547 (Parse_Single_Project): Set the parent project for child projects
2548 (Create_Virtual_Extending_Project): Register project with no qualifier
2549 (Parse_Single_Project): Allow an abstract project to be extend several
2550 times. Do not allow an abstract project to extend a non abstract
2553 * prj-pp.adb: Use functions Present and No throughout
2554 (Print): Take into account the full associative array attribute
2557 * prj-proc.adb: Use functions Present and No throughout
2558 (Expression): Call itself with the same From_Project_Node for the
2559 default value of an external reference.
2561 * prj-strt.adb: Use functions Present and No throughout
2562 (Parse_Variable_Reference): If a variable is specified as a simple name
2563 and is not found in the current project, look for it also in the
2564 ancestors of the project.
2566 * prj-tree.ads, prj-tree.adb (Present): New function
2568 Use functions Present and No throughout
2569 (Parent_Project_Of): New function
2570 (Set_Parent_Project_Of): New procedure
2572 * snames.ads, snames.adb:
2573 Add new standard names Object_Generated and Objects_Linked
2575 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2577 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
2578 and the derived type are of the same kind.
2579 (Expand_Call): Generate type conversions for actuals of
2580 record or array types when the parent and the derived types differ in
2581 size and/or packed status.
2583 2008-05-20 Javier Miranda <miranda@adacore.com>
2584 Ed Schonberg <schonberg@adacore.com>
2586 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
2587 generating dispatch tables of locally defined tagged types statically.
2588 Remove implicit if-statement that is no longer required.
2589 (Expand_Dispatching_Call): If this is a call to an instance of the
2590 generic dispatching constructor, the type of the first argument may be
2591 a subtype of Tag, so always use the base type to recognize this case.
2593 2008-05-20 Thomas Quinot <quinot@adacore.com>
2596 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
2597 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
2598 assigning NULL into the result, to avoid a spurious warning.
2599 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
2601 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
2603 (Build_From_Any_Function, Build_To_Any_Function,
2604 Build_TypeCode_Function): For a type that has user-specified stream
2605 attributes, use an opaque sequence of octets as the representation.
2607 2008-05-20 Kevin Pouget <pouget@adacore.com>
2609 * exp_smem.ads, exp_smem.adb: Construction of access and assign
2610 routines has been replaced by an instantiation of
2611 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
2612 shared variable declaration.
2613 Calls to access and assign routines have been replaced by calls to
2614 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
2615 instantiated package.
2617 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
2618 It identifies the new generic package added in s-shasto.
2620 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
2621 is instantiated for each shared passive variable. It provides
2622 supporting procedures called upon each read or write access by the
2626 For this runtime unit (always compiled in GNAT mode), we allow
2627 stream attributes references for limited types for the case where
2628 shared passive objects are implemented using stream attributes,
2629 which is the default in GNAT's persistent storage implementation.
2631 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2634 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
2635 convention from its base type, do not set the type to that of integer,
2636 because it may inherit a size clause.
2637 Warn on a size clause with a size different
2638 from that of Integer, if the type has convention C.
2640 2008-05-20 Vincent Celier <celier@adacore.com>
2643 (Scan_Args): Rewrite to take into account new switch --and to separate
2644 arguments into sections.
2645 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
2646 section, then Finalize.
2648 2008-05-20 Tristan Gingold <gingold@adacore.com>
2650 * init.c: Enable stack probing on ppc-linux.
2652 * tracebak.c: Add symbolic traceback for ppc-linux.
2654 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
2656 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2659 (common-tools): New rule, to avoid parallel build failure on gnat tools.
2660 Reenable parallel builds on this Makefile.
2662 * Make-lang.in: Update dependencies.
2664 2008-05-20 Robert Dewar <dewar@adacore.com>
2666 * opt.ads (Treat_Restrictions_As_Warnings): New switch
2668 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
2669 Treat_Restrictions_As_Warnings.
2671 * switch-c.adb: Recognize new switch -gnatr
2673 * usage.adb: Add line for -gnatr
2675 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2678 (P_Access_Definition): Change the error message when parsing "access
2679 all" in Ada 95 mode. The message no longer forces the user to recompile
2680 in 05 mode only to discover that anonymous access types are not allowed
2683 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2686 (P_Protected): Update the error message on missing "-gnat05" switch when
2687 using interfaces in conjunction with protected types. Remove the
2688 incorrect error message associated with the presence of "private" after
2691 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2693 * sem_aggr.adb: Update comments.
2694 Improve previous change for PR ada/17985
2696 2008-05-20 Thomas Quinot <quinot@adacore.com>
2699 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
2700 the visible part of the spec of a remote types unit.
2701 (Validate_Remote_Access_Object_Type_Declaration):
2702 New local subprogram Is_Valid_Remote_Object_Type, replaces
2703 Is_Recursively_Limited_Private.
2704 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
2705 non-controlling formals (and the return type, even though this is not
2706 explicit in the standard) must support external streaming.
2707 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
2708 as above for of RAS types and RCI subprograms. (The return type is not
2710 Update comments related to RACWs designating limited interfaces per
2711 ARG ruling on AI05-060.
2713 * sem_util.ads, sem_util.adb
2714 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
2715 Is_Remote_Call_Interface to identify RACW types in a stable and
2716 consistent way. We used to rely in this predicate on the privateness of
2717 the designated type and its ancestors, but depending on the currently
2718 visible private parts, this caused false negatives. We now uniformly
2719 rely on checks made at the point where the RACW type is declared.
2720 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
2722 2008-05-20 Javier Miranda <miranda@adacore.com>
2723 Ed Schonberg <schonberg@adacore.com>
2724 Hristian Kirtchev <kirtchev@adacore.com>
2727 (Analyze_Object_Declaration): Fix over-conservative condition
2728 restricting use of predefined assignment with tagged types that have
2730 (Analyze_Object_Declaration): Relax the check regarding deferred
2731 constants declared in scopes other than packages since they can be
2732 completed with pragma Import.
2733 Add missing escaping of all-caps word 'CPP' in error messages.
2734 (Build_Discriminated_Subtype): Do not inherit representation clauses
2735 from parent type if subtype already carries them, because they are
2736 inherited earlier during derivation and already include those that may
2737 come from a partial view.
2739 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
2740 Check the declarations of a subprogram body for proper deferred
2741 constant completion.
2743 * sem_ch7.ads, sem_ch7.adb
2744 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
2746 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2747 Thomas Quinot <quinot@adacore.com>
2750 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
2751 F is a parameterless function that returns an array, and S is a subtype
2753 (Analyze_Call): Insert dereference when the prefix is a parameterless
2754 function that returns an access to subprogram and the call has
2756 Reject a non-overloaded call whose name resolves to denote
2757 a primitive operation of the stub type generated to support a remote
2758 access-to-class-wide type.
2760 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2763 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
2764 when there is a use clause for the same entity in the context.
2765 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
2766 created for a stream attribute of an abstract type or interface type.
2768 2008-05-20 Thomas Quinot <quinot@adacore.com>
2770 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
2774 (Add_One_Interp): Ignore any interpretation that is a primitive
2775 operation of an RACW stub type (these primitives are only executed
2776 through dispatching, never through static calls).
2777 (Collect_Interps): When only one interpretation has been found, set N's
2778 Entity and Etype to that interpretation, otherwise Entity and Etype may
2779 still refer to an interpretation that was ignored by Add_One_Interp,
2780 in which case would end up with being marked as not overloaded but with
2781 an Entity attribute not pointing to its (unique) correct interpretation.
2783 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2786 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
2787 denotes the whole array of its prefix.
2789 2008-05-20 Robert Dewar <dewar@adacore.com>
2791 * sem_res.adb (Resolve_Op_Not): Warn on double negation
2793 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2796 (Print_Itype): Do not modify the sloc of the component type of a
2797 (packed) array itype, because it is an unrelated type whose source
2798 location is independent of the point of creation of the itype itself.
2800 2008-05-20 Thomas Quinot <quinot@adacore.com>
2802 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
2805 2008-05-20 Robert Dewar <dewar@adacore.com>
2806 Vincent Celier <celier@adacore.com>
2808 * vms_data.ads: Add entry for -gnatr
2809 Put GNAT SYNC section in proper alpha order
2810 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
2812 * gnat_ugn.texi: Add documentation for new gnatname switch --and
2813 Update the style checks section
2814 Add documentation of -gnatr
2815 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
2816 subsection the explanation how compiler checks should be disabled for
2818 Update the list of Ada 95 reserved words used by in the project language
2819 Add documentation for project qualifiers.
2820 Document that abstract projects may be extended by different projects in
2821 the same project tree.
2822 Add documentation for gnatmake switch -d
2824 * ug_words: Add -gnatyy VMS equivalence string.
2825 Add entry for -gnatr
2827 2008-05-20 Bob Duff <duff@adacore.com>
2830 (Set_Handler): Remove code from both of these that implements
2831 RM-D.15(15/2), because it causes a race condition and potential
2833 (Process_Queued_Events): Add comment explaining "exception when others
2834 => null". Add clarifying ".all", even though implicit .all is legal
2837 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2839 * s-winext.ads: Replace representation clause by pragma Pack. Gives
2840 equivalent representation, but has the advantage of allowing
2841 compilation of this file under 64 bits platforms.
2843 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
2845 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
2848 Don't define dummy implementation of convert_addresses on ppc-linux.
2850 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2853 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
2854 if expression is aggregate component.
2856 2008-05-20 Robert Dewar <dewar@adacore.com>
2858 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
2859 sem_ch12.adb: Update comments. Minor reformatting.
2863 * s-unstyp.ads: Fixed some typos in comments.
2865 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2867 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
2870 * g-socthi-vxworks.ads: Update to latest socket changes.
2872 * a-caldel-vms.adb: Resync with a-caldel spec.
2874 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
2877 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2879 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
2880 for dummy types pointed to by the converted pointer types.
2882 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
2884 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
2885 of records and unions.
2886 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
2888 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
2889 Robert Dewar <dewar@adacore.com>
2891 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
2892 restrictions to the prefix of 'Old.
2893 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
2894 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
2897 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
2901 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
2902 expression to an integral type with lower precision, use NOP_EXPR
2903 directly in a couple of special cases.
2905 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
2906 Ed Schonberg <schonberg@adacore.com>
2908 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
2909 constraint expressions.
2911 2008-05-12 Tomas Bily <tbily@suse.cz>
2913 * utils2.c (known_alignment, contains_save_expr_p)
2914 (gnat_mark_addressable): Use CASE_CONVERT.
2915 * decl.c (annotate_value): Likewise.
2916 * trans.c (maybe_stabilize_reference): Likewise.
2917 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
2918 * utils.c (rest_of_record_type_compilation): Likewise.
2919 * trans.c (protect_multiple_eval, Attribute_to_gnu)
2920 (protect_multiple_eval): Likewise.
2922 2008-05-08 Andreas Schwab <schwab@suse.de>
2924 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
2925 DECL_IS_PURE to DECL_PURE_P.
2927 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
2929 * decl.c (maybe_pad_type): Add ??? comment.
2931 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
2933 * decl.c (components_to_record): Zero the alignment of the qualified
2934 union built for the variant part upon creating it.
2936 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
2938 * decl.c (maybe_pad_type): Try to get a form of the type with integral
2939 mode even if the alignment is not a factor of the original size. But
2940 make sure to create the inner field with the original size. Reorder.
2941 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
2942 record as always addressable.
2943 * utils.c (convert): Deal specially with conversions between original
2944 and packable versions of a record type.
2945 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
2946 recognizing an assignment between padded objects.
2948 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
2950 * decl.c (make_packable_type): Resize the last component to its RM size
2951 only if it is of an aggregate type.
2952 * trans.c (call_to_gnu): Fix nit in comment.
2953 (gnat_to_gnu): Likewise.
2955 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
2957 * Makefile.in: Adapt sh4-linux target.
2959 2008-04-29 Ed Schonberg <schonberg@adacore.com>
2962 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
2963 tagged type by an untagged protected or task type.
2965 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
2966 Tristan Gingold <gingold@adacore.com>
2969 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
2970 of aliased objects with an unconstrained nominal subtype.
2971 Cap the promotion to the effective alignment of the word mode.
2973 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2975 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
2976 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
2977 Use '&&' instead of ';'.
2979 2008-04-24 Olivier Hainque <hainque@adacore.com>
2981 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
2982 doesn't require signed arithmetic anymore.
2984 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
2986 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
2987 (call_to_gnu): Don't set TREE_INVARIANT.
2988 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
2990 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
2992 * s-osinte-rtems.adb: Add sigalstack function.
2993 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
2994 function. Add Alternate_Stack and Alternate_Stack_Size.
2995 Add missing process_shared field to pthread_condattr_t
2996 and change ss_low_priority to int from timespec.
2998 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
3000 * i-forbla.adb: Link against -llapack and -lblas by default
3001 instead of the private -lgnalasup.
3003 2008-04-21 Olivier Hainque <hainque@adacore.com>
3005 Access to most C builtins from Ada
3006 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
3007 (handle_pure_attribute, handle_novops_attribute,
3008 handle_nonnull_attribute, handle_sentinel_attribute,
3009 handle_noreturn_attribute, handle_malloc_attribute,
3010 handle_type_generic_attribute): New attribute handlers, from C fe.
3011 (gnat_internal_attribute_table): Map the new handlers.
3012 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
3013 (init_gigi_decls): ... here.
3014 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
3015 Move to a section dedicated to builtins processing.
3016 (build_void_list_node, builtin_type_for_size): New functions.
3017 (def_fn_type, get_nonnull_operand): Likewise.
3018 (install_builtin_elementary_type, install_builtin_function_types,
3019 install_builtin_attributes): Likewise.
3020 (fake_attribute_handler): Fake handler for attributes we don't
3022 (def_builtin_1): New function, worker for DEF_BUILTIN.
3023 (install_builtin_functions): New function.
3024 (gnat_install_builtins): Move to the builtins processing section.
3025 Now calling the newly introduced installers.
3027 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
3029 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
3030 constant objects, but not exceptions.
3031 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
3033 * utils.c (create_var_decl_1): Likewise.
3034 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
3035 the type when copying to padded object and the source is a constructor.
3037 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
3039 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
3040 alignment, reset it to zero if it would end up not being greater
3041 than that of the type.
3043 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
3045 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
3046 the padded type has a variable size.
3048 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
3050 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
3051 target pointer mechanism as soon as the size is not constant.
3053 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
3055 * gigi.h (create_var_decl_1): Declare.
3056 (create_var_decl): Turn into a macro invoking create_var_decl_1.
3057 (create_true_var_decl): Likewise.
3058 * utils.c (create_var_decl_1): Make global and reorder parameters.
3059 (create_var_decl): Delete.
3060 (create_true_var_decl): Likewise.
3062 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
3064 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
3066 * fe.h (Debug_Flag_Dot_A): Delete.
3067 * debug.adb (-gnatd.a): Update documentation.
3069 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
3071 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
3072 "not null" parameter.
3074 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
3076 * g-socket.adb: Add a message "IPv6 not supported" to the
3077 Socket_Error exception.
3079 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
3082 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
3083 the type is known instead of the underlying type.
3085 2008-04-15 Ed Schonberg <schonberg@adacore.com>
3088 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3089 procedure for a derived type retrieve the discriminant values from
3090 the parent using the corresponding discriminant.
3092 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
3093 Gary Dismukes <dismukes@adacore.com>
3096 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
3097 which is not an entity (and hence not a package).
3098 (End_Use_Package): Ditto.
3100 2008-04-15 Ed Schonberg <schonberg@adacore.com>
3103 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
3104 protected operation that matches the signature, not only an entry, a
3105 regular subprogram or a literal.
3107 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
3109 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
3110 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
3111 if a size or alignment is specified. Do not take into account
3112 alignment promotions for the computation of the object's size.
3113 <type>: Call maybe_pad_type only if a size or alignment is specified.
3114 (maybe_pad_type): Really reuse the RM_Size of the original type if
3116 * trans.c (Attribute_to_gnu): Fix a couple of nits.
3117 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
3118 statements. Use the padded view of the type when copying between
3119 padded objects of the same underlying type.
3121 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3123 * vms_data.ads: Fix typo in constant.
3124 * gen-soccon.c: Fix typo in error string.
3125 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
3127 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
3128 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
3129 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
3130 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
3131 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
3132 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
3133 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
3134 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
3135 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
3136 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
3137 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
3138 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
3139 sinfo.ads: Fix typos in comments.
3141 2008-04-14 Robert Dewar <dewar@adacore.com>
3143 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
3144 to every non-object and change error message.
3146 2008-04-14 Robert Dewar <dewar@adacore.com>
3148 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
3149 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
3152 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
3155 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
3156 apply pragma Linker_Section on type.
3158 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
3161 * sem_prag.adb (Error_Pragma_Ref): New.
3162 (Process_Convention): Specialized message for non-local
3163 subprogram renaming. Detect the problem in homonyms as well.
3165 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
3168 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
3169 * sem_ch12.adb (Instantiate_Object): Use it.
3170 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
3171 storage pool denotes a variable as per RM 13.11(15).
3173 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
3175 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
3176 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
3178 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
3181 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
3182 line endings even on non-Unix platforms.
3184 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
3187 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
3188 renaming information.
3190 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
3193 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
3196 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3198 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
3199 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
3200 snames.ads, sprint.adb, stand.ads, stringt.ads,
3201 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
3202 switch.ads, sysdep.c, table.adb, table.ads,
3203 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
3204 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
3205 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
3206 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
3207 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
3208 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
3211 * sem_ch10.adb, sem_ch10.ads,
3212 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
3213 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
3214 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
3215 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
3216 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
3217 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
3218 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
3219 sem_warn.ads: Fix comment typos.
3221 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
3222 s-soflin.ads, s-stalib.ads, s-stausa.adb,
3223 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
3224 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3225 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
3226 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3227 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
3228 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
3229 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
3230 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
3231 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
3232 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
3233 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
3234 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
3235 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
3236 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
3237 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
3238 sem_cat.adb, sem_cat.ads: Fix comment typos.
3240 2008-04-12 Joel Sherrill <joel@oarcorp.com>
3243 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
3245 2008-04-12 Arnaud Charlet <charlet@adacore.com>
3247 * s-linux-hppa.ads: Fix syntax errors.
3249 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3251 * gnat_ugn.texi: Fix typos.
3252 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
3253 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
3254 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
3255 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
3256 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
3257 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
3258 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
3259 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
3260 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
3261 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
3262 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
3263 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
3264 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
3265 s-osinte-darwin.ads, s-osinte-freebsd.ads,
3266 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
3267 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
3268 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
3269 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
3270 s-parame-hpux.ads, s-parame-vms-alpha.ads,
3271 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
3272 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
3273 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
3274 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
3275 s-rident.ads: Fix comment typos.
3277 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
3280 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
3281 environment if generic instance is a top-level one.
3283 2008-04-09 Doug Rupp <rupp@adacore.com>
3285 * decl.c (validate_size): Set minimum size for fat pointers same as
3286 access types. Code clean ups.
3288 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
3289 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
3291 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
3293 * s-crtl.ads (malloc32) New function, alias for malloc
3294 (realloc32) New function, alias for realloc
3296 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
3298 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
3299 allocator size is 32 and default pointer size is 64.
3300 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
3301 lhs type if smaller, whatever the modes.
3303 * gigi.h (malloc32_decl): New macro definition
3305 * utils.c (init_gigi_decls): New malloc32_decl
3306 Various code clean ups.
3308 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3309 Task_Address vice System.Address.
3311 * s-taspri-vms.ads: Import System.Aux_DEC
3312 (Task_Address): New subtype of System.Aux_DEC.Short_Address
3313 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
3315 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3316 Task_Address vice System.Address.
3318 * s-inmaop-vms.adb: Import System.Task_Primitives
3319 (To_Address): Unchecked convert to Task_Address vice System.Address
3321 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
3323 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
3324 (To_Address) Unchecked convert to Task_Address vice System.Address
3326 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
3328 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
3330 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3332 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
3333 (fdesc_type_node): Define.
3334 (null_fdesc_node): Likewise.
3335 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
3336 uses descriptors for vtables and the type comes from a dispatch table,
3337 return the descriptor type.
3338 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
3339 uses descriptors for vtables and the type comes from a dispatch table,
3340 build a descriptor in the static case and copy the existing one in the
3342 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
3343 the type is a pointer-to-subprogram coming from a dispatch table,
3344 return the null descriptor.
3345 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
3346 vtables, the source type is the descriptor type and the target type
3347 is a pointer type, first build the pointer.
3348 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
3349 build the descriptor type and the null descriptor.
3351 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3353 * decl.c (prepend_attributes): Fix typo.
3354 * trans.c (Pragma_to_gnu): Likewise.
3355 * utils.c (gnat_genericize): Likewise.
3357 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3358 Richard Kenner <kenner@adacore.com>
3360 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
3361 * decl.c (gnat_to_gnu_entity): Adjust for above change.
3362 <E_Record_Type>: Try to get a better form of the component for
3363 packing, even if it has an integral mode.
3364 <E_Record_Subtype>: Likewise.
3365 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
3366 exception suppressing the final conversion between record types.
3368 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3370 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
3371 alignment for space, promote the alignment of non-scalar variables with
3372 no size and alignment.
3373 * gigi.h (gnat_types_compatible_p): Declare.
3374 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
3375 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
3376 * utils.c (gnat_types_compatible_p) : New predicate.
3377 (convert): Use it throughout to test for cases where a mere view
3378 conversion is sufficient.
3379 * utils2.c (build_binary_op): Minor tweaks.
3380 (build_unary_op): Likewise.
3382 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3384 * decl.c (adjust_packed): Expand comment.
3386 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3388 * s-tasuti.ads: Use Task_Address instead of System.Address.
3390 * makeutl.adb (Path_Or_File_Name): New function
3392 * nlists.ads, itypes.ads: Update comments.
3394 * s-crtl.ads (malloc32, realloc32): New functions.
3396 * s-auxdec.ads (Short_Address_Size): New constant.
3398 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
3400 * s-ststop.ads, s-ststop.adb: New file.
3402 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
3405 2008-04-08 Pascal Obry <obry@adacore.com>
3407 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
3408 (Stop_Bits_Number): New type.
3409 (Parity_Check): Likewise.
3410 (Set): Add parameter to set the number of stop bits and
3411 the parity. Parameter timeout is now a duration instead
3414 * g-sercom-linux.adb:
3415 Implement the stop bits and parity support for GNU/Linux.
3416 Fix handling of timeout, it must be given in tenth of seconds.
3418 * g-sercom-mingw.adb:
3419 Implement the stop bits and parity support for Windows.
3420 Use new s-win32.ads unit instead of declaring Win32 services
3421 directly into this body.
3422 Update handling of timeout as now a duration.
3424 * s-win32.ads, s-winext.ads: New files.
3426 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3427 Arnaud Charlet <charlet@adacore.com>
3429 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
3431 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
3432 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
3434 * s-osinte-lynxos-3.ads,
3435 (Alternate_Stack): Remove when not needed. Simplify declaration
3437 (Alternate_Stack_Size): New constant.
3439 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
3440 'Unrestricted_Access.
3442 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
3443 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
3444 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
3445 s-osinte-solaris.ads, s-osinte-vms.ads
3446 (SA_ONSTACK): New constant.
3447 (stack_t): New record type.
3448 (sigaltstack): New imported function.
3449 (Alternate_Stack): New imported variable.
3450 (Alternate_Stack_Size): New constant.
3452 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
3454 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
3455 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
3456 s-taspri-vms.ads (Task_Address): New subtype of System.Address
3457 (Task_Address_Size): New constant size of System.Address
3458 (Alternate_Stack_Size): New constant.
3460 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
3461 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
3462 Establish the alternate stack if the platform makes use of n alternate
3463 signal stack for stack overflows.
3464 (Create_Task): Take into account the alternate stack in the stack size.
3465 (Initialize): Save the address of the alternate stack into the ATCB for
3466 the environment task.
3467 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
3469 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
3471 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
3473 * s-intman-posix.adb:
3474 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
3475 alternate signal stack for stack overflows.
3477 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
3478 x86-64, adjust the saved value of the stack pointer if the signal was
3479 raised by a stack checking probe.
3480 (HP-UX section): Use global __gnat_alternate_stack as signal handler
3481 stack and only for SIGSEGV.
3482 (Linux section): Likewise on x86 and x86-64.
3484 (__gnat_map_signal): Now static.
3485 (__gnat_error_handler): Not static any more.
3486 (__gnat_adjust_context_for_raise): New function. Signal context
3487 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
3488 propagation circuitry.
3489 (__gnat_error_handler): Second argument of a sigaction handler is a
3490 pointer, not an int, and is unused.
3491 Adjust signal context before mapping to exception.
3492 Install signal handlers for LynxOS case.
3494 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
3495 (Task_Id): Set size to Task_Address_Size
3496 (To_Task_id): Unchecked convert from Task_Address vice System.Address
3497 (To_Address): Unchecked convert to Task_Address vice System.Address
3499 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
3500 address into the ATCB if the platform makes use of an alternate signal
3501 stack for stack overflows.
3502 (Free_Task): Add call to Finalize_Attributes_Link.
3503 Add argument Relative_Deadline to pass the value specified for
3504 the task. This is not yet used for any target.
3506 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
3507 the value specified for the task.
3509 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3511 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
3512 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
3513 s-vxwext-rtp.adb): New files.
3515 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
3516 Minor updates to accomodate changes above.
3518 2008-04-08 Pascal Obry <obry@adacore.com>
3520 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
3521 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
3522 Use new s-win32.ads unit instead of declaration
3523 from s-osinte-mingw.ads.
3525 * s-osinte-mingw.ads:
3526 Move all non tasking based interface to s-win32.ads.
3528 * s-osprim-mingw.adb:
3529 Remove duplicated declarations and use s-win32.ads
3532 2008-04-08 Vincent Celier <celier@adacore.com>
3533 Arnaud Charlet <charlet@adacore.com>
3535 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
3536 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
3537 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3538 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3539 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
3541 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
3542 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
3543 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
3544 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
3545 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
3546 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
3547 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
3548 mlib-tgt-specific-mingw.adb: New names.
3551 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
3553 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
3554 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
3555 Minor updates for VMS
3557 * gnatbl.c: Removed.
3559 2008-04-08 Thomas Quinot <quinot@adacore.com>
3561 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
3562 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
3563 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
3564 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
3565 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
3566 ASCII.NUL throughout.
3568 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3569 Matthew Heaney <heaney@adacore.com>
3571 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
3574 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
3575 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
3576 to convention for non-RM specs.
3577 Add descriptive header, and documented each operation
3578 document each operation
3580 2008-04-08 Robert Dewar <dewar@adacore.com>
3581 Bob Duff <duff@adacore.com>
3582 Gary Dismukes <dismukes@adacore.com>
3583 Ed Schonberg <schonberg@adacore.com>
3585 * alloc.ads: Add entries for Obsolescent_Warnings table
3587 * einfo.ads, einfo.adb: Minor reformatting.
3588 (Is_Discriminal): New subprogram.
3589 (Is_Prival): New subprogram.
3590 (Is_Protected_Component): New subprogram.
3591 (Is_Protected_Private): Removed.
3592 (Object_Ref, Set_Object_Ref): Removed.
3593 (Prival, Set_Prival): Change assertion.
3594 (Privals_Chain, Set_Privals_Chain): Removed.
3595 (Prival_Link, Set_Prival_Link): New subprogram.
3596 (Protected_Operation, Set_Protected_Operation): Removed.
3597 (Protection_Object, Set_Protection_Object): New subprogram.
3598 (Write_Field17_Name): Remove case for Object_Ref.
3599 (Write_Field20_Name): Add case for Prival_Link.
3600 (Write_Field22_Name): Remove case for Protected_Operation,
3602 Add case for Protection_Object.
3603 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
3605 (Overlays_Constant): New flag
3606 (Is_Constant_Object): New predicate
3607 (Is_Standard_Character_Type): New predicate
3608 (Optimize_Alignment_Space): New flag
3609 (Optimize_Alignment_Time): New flag
3610 (Has_Postconditions): New flag
3611 (Obsolescent_Warrning): Field removed
3612 (Spec_PPC_List): New field
3613 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
3614 subprograms to get and set the relative deadline associated to a task.
3616 * exp_attr.adb (May_Be_External_Call): Account for the case where the
3617 Access attribute is part of a named parameter association.
3618 (Expand_Access_To_Protected_Op): Test for the attribute occurring
3619 within an init proc and use that directly as the scope rather than
3620 traversing up to the protected operation's enclosing scope. Only apply
3621 assertion on Is_Open_Scopes in the case the scope traversal is done.
3622 For the init proc case use the address of the first formal (_init) as
3623 the protected object reference.
3624 Implement Invalid_Value attribute
3625 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
3626 contents of the dispatch table there is no need to duplicate the
3627 itypes associated with record types (i.e. the implicit full view
3629 Implement Enum_Val attribute
3630 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
3631 within _Postconditions procedure
3632 (Expand_N_Attribute_Reference, case Result): Implement new attribute
3634 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
3635 a return statement calls a function that is not available in
3636 configurable runtime.
3637 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
3638 (Expand_Non_Function_Return): Generate call to _Postconditions proc
3639 (Expand_Simple_Function_Return): Ditto
3641 * frontend.adb: Add call to Sem_Aux.Initialize
3643 * sem_aux.ads, sem_aux.adb: New file.
3645 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
3646 Add new Pragma_Relative_Deadline.
3647 Add support for pragmas Check and Check_Policy
3649 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
3650 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
3651 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
3652 missing check because they are not allowed in CPP tagged types.
3653 Add Sure parameter to Note_Possible_Modification calls
3654 Add implementation of Invalid_Value attribute
3655 Implement new attribute Has_Tagged_Values
3656 Implement Enum_Val attribute
3657 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
3658 generated attributes.
3659 (Analyze_Attribute, case Result): If prefix of the attribute is
3660 overloaded, it always resolves to the enclosing function.
3661 (Analyze_Attribute, case Result): Properly deal with analysis when
3662 Postconditions are not active.
3663 (Resolve_Attribute, case Result): Properly deal with appearence during
3664 preanalysis in spec.
3665 Add processing for attribute Result
3667 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
3669 (Analyze_Subprogram_Body): Install private_with_clauses when the body
3671 (Check_Inline_Pragma): recognize an inline pragma that appears within
3672 the subprogram body to which it applies.
3673 (Analyze_Function_Return): Check that type of the expression of a return
3674 statement in a function with a class-wide result is not declared at a
3675 deeper level than the function.
3676 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
3677 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
3678 user- defined operators.
3679 (Install_Formals): Moved to spec to allow use from Sem_Prag for
3680 analysis of precondition/postcondition pragmas.
3681 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
3682 Last_Formal, along with lots of comments on what this is about
3683 (Analyze_Subprogram_Body): Fix case where we move entities from the
3684 spec to the body when there are no body entities (now possible with
3685 precondition and postcondition pragmas).
3686 (Process_PPCs): New procedure
3687 (Analyze_Subprogram_Body): Add call to Process_PPCs
3689 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
3691 (Pop_Scope): Restore Check_Policy_List on scope exit
3692 (Push_Scope): Save Check_Policy_List on scope entry
3693 Change name In_Default_Expression => In_Spec_Expression
3694 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3695 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3696 (Analyze_Object_Renaming): Allow 'Reference as object
3697 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
3698 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
3699 of restriction identifier.
3700 Add Sure parameter to Note_Possible_Modication calls
3702 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
3703 Don't check for primitive operations when calling Rep_Item_Too_Late.
3704 (Process_Import_Or_Interface): Do not place flag on formal
3706 (Analyze_Pragma, case Export): If the entity is a deferred constant,
3707 propagate information to full view, which is the one elaborated by the
3709 (Make_Inline): the pragma is effective if it applies to an internally
3710 generated subprogram declaration for a body that carries the pragma.
3711 (Analyze_Pragma, case Optimize_Alignment): Set new flag
3712 Optimize_Alignment_Local.
3713 (Analyze_PPC_In_Decl_Part): New procedure
3714 (Get_Pragma_Arg): Moved to outer level
3715 (Check_Precondition_Postcondition): Change to allow new visibility
3716 rules for package spec
3717 (Analyze_Pragma, case Check_Policy): Change placement rules to be
3718 same as pragma Suppress/Unsuppress.
3719 Change name In_Default_Expression => In_Spec_Expression
3720 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3721 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3722 (Check_Precondition_Postcondition): Do proper visibility preanalysis
3723 for the case of these pragmas appearing in the spec.
3724 (Check_Enabled): New function
3725 (Initialize): New procedure
3726 (Tree_Read): New procedure
3727 (Tree_Write): New procedure
3728 (Check_Precondition_Postcondition): New procedure
3729 Implement pragmas Check and Check_Policy
3730 Merge Assert processing with Check
3732 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
3733 New warning flag -gnatw.e
3735 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
3736 returning whether a task (or main procedure) has a pragma
3738 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
3739 (or main procedure) has a pragma Relative_Deadline.
3740 Add Next_Pragma field to N_Pragma node
3741 (PPC_Enabled): New flag
3742 (Next_Pragma): Now used for Pre/Postcondition processing
3744 * snames.h, snames.ads, snames.adb: New standard name
3746 Add entry for 'Invalid_Value attribute
3747 Add entry for new attribute Has_Tagged_Values
3748 Add entry for Enum_Val attribute
3749 Add new standard names Aggregate, Configuration and Library.
3752 Add Pragma_Precondition
3753 Add Pragma_Postcondition
3754 Add Attribute_Result
3755 New standard name Archive_Builder_Append_Option
3756 (Preset_Names): Add _relative_deadline and relative_deadline definitions
3757 There was also a missing non_preemptive_within_priorities.
3758 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
3760 Add support for pragmas Check and Check_Policy
3762 * tree_gen.adb: Call Sem_Aux.Tree_Write
3764 * tree_in.adb: Call Sem_Aux.Tree_Read
3766 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
3769 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
3772 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
3773 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
3775 (Expand_Pragma_Check): New procedure
3777 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
3780 * sinfo.adb (PPC_Enabled): New flag
3782 2008-04-08 Robert Dewar <dewar@adacore.com>
3783 Gary Dismukes <dismukes@adacore.com>
3784 Javier Miranda <miranda@adacore.com>
3785 Ed Schonberg <schonberg@adacore.com>
3787 * fe.h: Remove global Optimize_Alignment flag, no longer used
3789 * layout.adb: Test Optimize_Alignment flags rather than global switch
3791 * lib.ads, lib.adb: New OA_Setting field in library record
3793 * lib-load.adb: New OA_Setting field in library record
3795 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
3796 units mentioned in limited_with_ clauses in the ali file, with an
3798 New Ox fields in U line
3800 * opt.adb: New flag Optimize_Alignment_Local
3801 (Check_Policy_List[_Config]): New flags
3803 * opt.ads (Invalid_Value_Used): New flag
3804 New switch Optimize_Alignment_Local
3805 (Warn_On_Parameter_Order): New flag
3806 (Check_Policy_List[_Config]): New flags
3808 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
3809 limited_with clauses.
3810 New data structures for Optimize_Alignment
3812 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
3814 (Check_Consistent_Optimize_Alignment): Rework for new structure
3815 (Check_Consistent_Restrictions): Fix incorrect error message
3817 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
3818 created class-wide type (to the Parent field of the specific type).
3819 (Install_Siblings): Handle properly private_with_clauses on subprogram
3820 bodies and on generic units.
3821 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
3822 illegal limited_with_clause that names a non-existent package.
3823 (Check_Body_Required): Determine whether a unit named a limited_with
3824 clause needs a body.
3825 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
3826 Capture Optimize_Alignment settings to set new OA_Setting field in
3828 (Build_Limited_Views): Include task and protected type declarations.
3830 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
3831 case of a possible constant redeclaration where the current object is
3832 an entry index constant.
3833 (Analyze_Object_Declaration): Generate an error in case of CPP
3834 class-wide object initialization.
3835 (Analyze_Object_Declaration): Add extra information on warnings for
3836 declaration of unconstrained objects.
3837 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
3838 conflicts with the setting of Stored_Constraint in the case where the
3839 access type entity has already been created as an E_Incomplete_Type due
3840 to a limited with clause.
3841 Use new Is_Standard_Character_Type predicate
3842 (Analyze_Object_Declaration): Apply access_constant check only after
3843 expression has been resolved, given that it may be overloaded with
3844 several access types.
3845 (Constant_Redeclaration): Additional legality checks for deferred
3846 constant declarations tha involve anonymous access types and/or null
3847 exclusion indicators.
3848 (Analyze_Type_Declaration): Set Optimize_Alignment flags
3849 (Analyze_Subtype_Declaration): Ditto
3850 (Analyze_Object_Declaration): Ditto
3851 (Analyze_Object_Declaration): Don't count tasks in generics
3852 Change name In_Default_Expression => In_Spec_Expression
3853 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3854 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3855 (Process_Discriminants): Additional check for illegal use of default
3856 expressions in access discriminant specifications in a type that is not
3858 (Check_Abstract_Overriding): If an inherited function dispaches on an
3859 access result, it must be overridden, even if the type is a null
3861 (Derive_Subprogram): The formals of the derived subprogram have the
3862 names and defaults of the parent subprogram, even if the type is
3863 obtained from the actual subprogram.
3864 (Derive_Subprogram): In the presence of interfaces, a formal of an
3865 inherited operation has the derived type not only if it descends from
3866 the type of the formal of the parent operation, but also if it
3867 implements it. This is relevant for the renamings created for the
3868 primitive operations of the actual for a formal derived type.
3869 (Is_Progenitor): New predicate, to determine whether the type of a
3870 formal in the parent operation must be replaced by the derived type.
3872 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
3873 predicate recursive to handle components that have a user-defined
3874 Initialize procedure. Handle controlled derived types whose ancestor
3875 has a user-defined Initialize procedured.
3876 (Note_Possible_Modification): Add Sure parameter, generate warning if
3877 sure modification of constant
3878 Use new Is_Standard_Character_Type predicate
3879 (Find_Parameter_Type): when determining whether a protected operation
3880 implements an interface operation, retrieve the type of the formal from
3881 the entity when the formal is an access parameter or an
3882 anonymous-access-to-subprogram.
3883 Move Copy_Parameter_List to sem_util, for use when building stubbed
3885 (Has_Access_Values): Tagged types now return False
3886 (Within_HSS_Or_If): New procedure
3887 (Set_Optimize_Alignment_Flags): New procedure
3888 Change name In_Default_Expression => In_Spec_Expression
3889 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3890 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3892 2008-04-08 Tristan Gingold <gingold@adacore.com>
3894 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
3896 2008-04-08 Tristan Gingold <gingold@adacore.com>
3900 * cuintp.c: Fix 16 bits issue for AVR.
3901 On AVR, integer is 16 bits, so it can't be used to do math with
3903 So use long_integer instead.
3905 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3907 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
3908 System.OS_Primitives.
3909 Change type of various constants, parameters and local variables from
3910 Time to representation type OS_Time.
3911 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
3912 Remove the declaration of constant Mili_F from several routines. New
3913 body for internal package Conversions_Operations.
3914 (Time_Of): Add default parameters for several formals.
3916 * a-caldel.adb: Minor reformatting
3918 * a-calend.ads, a-calend.adb: New body for internal package
3919 Conversions_Operations.
3920 (Time_Of): Add default parameters for several formals.
3922 * Makefile.rtl: Add a-ststop
3923 Add Ada.Calendar.Conversions to the list of runtime files.
3926 * a-calcon.adb, a-calcon.ads: New files.
3928 2008-04-08 Jose Ruiz <ruiz@adacore.com>
3929 Tristan Gingold <gingold@adacore.com>
3931 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
3932 (Install_Restricted_Handlers): New procedure
3933 which is a simplified version of Install_Handlers that does not store
3934 previously installed.
3936 * s-interr-vxworks.adb: Fix ACATS cxc3001
3937 On VxWorks interrupts can't be detached.
3938 (Install_Restricted_Handlers): New procedure.
3940 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
3943 2008-04-08 Olivier Hainque <hainque@adacore.com>
3945 * s-intman-vxworks.ads, s-intman-vxworks.adb
3946 (Map_And_Raise_Exception): Remove. Was an import of only part of the
3947 required services already implemented elsewhere.
3948 (Notify_Exception): Delete body, import __gnat_error_handler instead.
3949 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
3950 argument passed to the handler, which we need for ZCX propagation
3953 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3955 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
3957 * g-timsta.adb, g-timsta.ads: New files.
3959 2008-04-08 Robert Dewar <dewar@adacore.com>
3961 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
3962 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
3963 (Raise_Exception_Always): Fix documentation accordingly
3965 2008-04-08 Robert Dewar <dewar@adacore.com>
3967 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
3970 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
3973 2008-04-08 Javier Miranda <miranda@adacore.com>
3974 Robert Dewar <dewar@adacore.com>
3975 Ed Schonberg <schonberg@adacore.com>
3977 * a-tags.adb (Register_Interface_Offset): New subprogram.
3978 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
3979 (To_Predef_Prims_Table_Ptr): Removed.
3980 (Acc_Size): Removed.
3981 (To_Acc_Size): Removed.
3982 (Parent_Size): Modified to the call the subprogram returning the size of
3983 the parent by means of the new TSD component Size_Func.
3985 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
3986 (DT_Offset_To_Top_Offset): New constant value that is used to generate
3987 code referencing the Offset_To_Top component of the dispatch table's
3989 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
3990 use of 'address to initialize dispatch table slots.
3991 (Size_Func): New component of the TSD. Used by the run-time to call the
3992 size primitive of the tagged type.
3994 * checks.adb (Apply_Access_Check): Avoid check when accessing the
3995 Offset_To_Top component of a dispatch table.
3996 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
3997 deferred constant declaration. do not add a null expression, to prevent
3998 spurious errors when full declaration is analyzed.
3999 (Apply_Discriminant_Check): If both discriminant constraints share a
4000 node which is not static but has no side effects, do not generate a
4001 check for that discriminant.
4002 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
4003 subexpr, since the prefix of an attribute is a name.
4005 * checks.ads: Fix nit in comment.
4007 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
4008 and body of predefined primitives in case of CPP tagged type
4010 (Freeze_Type): Deal properly with no storage pool case
4011 (Make_Predefined_Primitive_Specs): Generate specification of abstract
4012 primitive Deep_Adjust if a nonlimited interface is derived from a
4014 (Build_Dcheck_Functions): Create discriminant-checking functions only
4015 for variants that have some component(s).
4016 (Build_Slice_Assignment): In expanded code for slice assignment, handle
4017 properly the case where the slice bounds extend to the last value of the
4018 underlying representation.
4019 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
4020 (Is_Variable_Size_Record): An array component has a static size if
4021 index bounds are enumeration literals.
4023 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
4024 an external tag has been specified for the type.
4025 (Building_Static_DT): Add missing support for private types.
4026 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
4027 to the entity associated with the parent of Typ. This is done to
4028 avoid wrong access when the parent is a private type.
4029 (Expand_Interface_Conversion): Improve error message when the
4030 configurable runtime has no support for dynamic interface conversion.
4031 (Expand_Interface_Thunk): Add missing support to interface types in
4032 configurable runtime.
4033 (Expand_Dispatching_Call): remove obsolete code.
4034 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
4035 ensure that all subtypes and aggregates associated with dispatch
4036 tables have the attribute Is_Dispatch_Table_Entity set to true.
4037 (Register_Primitive): Rename one variable to improve code reading.
4038 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
4039 of the pointer to the 'size primitive in the TSD.
4041 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
4042 (RE_Offset_To_Top_Ptr): New entity.
4043 (RE_Register_Interface_Offset): New entity.
4044 (RE_Set_Dynamic_Offset_To_Top): New entity.
4045 (RE_Set_Offset_To_Top): Removed entity.
4046 (RE_Prim_Ptr): New entity
4047 (RE_Size_Func): New entity
4048 (RE_Size_Ptr): New entity
4049 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
4050 (Ada_Dispatching_Child): Define this new subrange.
4051 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
4052 RE_Time_Span, and RE_Time_Span_Zero).
4053 (RE_Unit_Table): Add new required run-time calls
4055 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
4058 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
4059 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
4060 initializes the Offset_To_Top component of a dispatch table.
4061 (Build_Predef_Prims): Removed.
4062 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
4064 (Build_Set_Size_Function): New subprogram.
4066 * exp_ch13.adb: Do not generate storage variable for storage_size zero
4067 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
4069 2008-04-08 Robert Dewar <dewar@adacore.com>
4071 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
4072 computing Fore when Exp > 0
4074 2008-04-08 Robert Dewar <dewar@adacore.com>
4076 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
4078 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
4079 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
4081 * fmap.adb: Remove Big_String declarations (now in Types)
4082 (No_Mapping_File): New Boolean global variable
4083 (Initialize): When mapping file cannot be read, set No_Mapping_File to
4085 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
4086 tables were empty before adding entries, open the mapping file
4087 with Truncate = True, instead of delete/re-create.
4089 * fname-sf.adb: Remove Big_String declarations (now in Types)
4091 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
4092 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
4095 * table.ads: Add for Table_Ptr'Storage_Size use 0
4097 * types.ads: Add Big_String declarations
4098 Add Size_Clause of zero for big pointer types
4100 2008-04-08 Vincent Celier <celier@adacore.com>
4102 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
4103 (Usage): Add line for switch --subdirs=
4104 Add new switch -eL, to follow symbolic links when processing project
4107 * gnatcmd.adb: Process switches -eL and --subdirs=
4108 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
4109 Program_Name to get proper tool names when AAMP_On_Target is set.
4110 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
4111 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
4112 Osint.Program_Name).
4114 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
4115 (Usage): Add lines for switches -eL and --subdirs=
4117 * makeusg.adb: Add line for switch --subdirs=
4120 (Source_Data): New Boolean component Compiled, defaulted to True
4121 (Empty_File_Name: New global variable in private part, initialized in
4122 procedure Initialize.
4123 (Subdirs_Option): New constant string
4124 (Subdirs): New String_Ptr global variable
4125 (Language_Config): New component Include_Compatible_Languages
4126 (Project_Qualifier): New type for project qualifiers
4127 (Project_Data): New component Qualifier
4128 (Project_Configuration): New component Archive_Builder_Append_Option
4130 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
4131 another imported project indicate the name of this imported project.
4132 (Check_File): When a unit is in two project files, indicate the project
4133 names and the paths of the source files for each project.
4134 (Add_Source): Set Compiled to False if compiler driver is empty. Only
4135 set object, dependency and switches file names if Compiled is True.
4136 (Process_Compiler): Allow the empty string for value of attribute Driver
4137 (Get_Directories): When Subdirs is not null and Object_Dir is not
4138 specified, locate and create if necessary the actual object dir.
4139 (Locate_Directory): When Subdirs is not empty and Create is not the
4140 empty string, locate and create if necessary the actual directory
4141 as a subdirectory of directory Name.
4142 (Check_Library_Attributes.Check_Library): Allow a project where the only
4143 "sources" are header files of file based languages to be imported by
4144 library projects, in multi-language mode (gprbuild).
4145 (Check_Library_Attributes.Check_Library): In multi-language mode
4146 (gprbuild), allow a library project to import a project with no
4147 sources, even when this is not declared explicitly.
4148 (Check_If_Externally_Built): A virtual project extending an externally
4149 built project is also externally built.
4150 (Check_Library_Attributes): For a virtual project extending a library
4151 project, inherit the library directory.
4152 (Process_Project_Level_Array_Attributes): Process new attribute
4153 Inherit_Source_Path.
4154 For projects with specified qualifiers "standard", "library" or
4155 "abstract", check that the project conforms to the qualifier.
4156 (Process_Project_Level_Simple_Attributes): Process new attribute
4157 Archive_Builder_Append_Option.
4159 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
4160 (Normalize_Compiler_Switches): Only keep compiler switches that are
4161 passed to gnat1 by the gcc driver and that are stored in the ALI file
4163 Do not take into account switc -save-temps
4165 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
4166 gprmake is called with -eL.
4167 (Scan_Arg): Recognize switch -eL
4168 (Usage): Add line for switch -eL
4170 * prj.adb (Initialize): Initialize Empty_File_Name
4171 (Project_Empty): New component Qualifier
4173 * prj-attr.ads, prj-attr.adb: New project level attribute
4174 Inherit_Source_Path.
4175 New project level attribute Archive_Builder_Append_Option
4177 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
4179 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
4180 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
4181 upward compatibility.
4183 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
4184 each Trying ..." on different lines.
4185 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
4186 is "configuration" when not in configuration. Fail when in configuration
4187 when a specified qualifier is other than "configuration".
4189 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
4190 full associative array together.
4191 (Recursive_Process): Put the project qualifier in the project data
4193 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
4194 (Set_Project_Qualifier_Of): New procedure
4196 2008-04-08 Robert Dewar <dewar@adacore.com>
4198 * errout.ads: Update comments for new handling of info: messages
4200 * erroutc.adb (Matches): New procedure
4201 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
4202 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
4203 info messages as well as style messages.
4205 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
4207 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
4209 (Check_A_Call): Special "info: " warnings now have ? in the text
4210 (Elab_Warning): Use info message in static case
4212 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4214 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
4215 whether an array aggregate with static bounds and scalar components
4216 should be expanded into a static constant.
4218 2008-04-08 Gary Dismukes <dismukes@adacore.com>
4219 Ed Schonberg <schonberg@adacore.com>
4220 Robert Dewar <dewar@adacore.com>
4222 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
4223 Has_Stream_Attribute_ Definition when checking for available stream
4224 attributes on parameters of a limited type in Ada 2005. Necessary for
4225 proper recognition of visible stream attribute clauses.
4226 (Has_Stream_Attribute_Definition): If the type is derived from a
4227 private type, then use the derived type's underlying type for checking
4228 whether it has stream attributes.
4229 (Validate_Object_Declaration): The check for a user-defined Initialize
4230 procedure applies also to types with controlled components or a
4231 controlled ancestor.
4232 Reject an object declaration in a preelaborated unit if the type is a
4233 controlled type with an overriding Initialize procedure.
4234 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
4235 checking when the parent of a dereference is a selected component and
4236 the name has not been analyzed.
4238 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
4239 prefixes that are invalid explicit dereferences of remote
4240 access-to-class-wide values, first checking whether the selected
4241 component is a prefixed form of call to a tagged operation.
4242 (Analyze_Call): Remove code that issues an error for limited function
4243 calls in illegal contexts, as we now support all of the contexts that
4244 were forbidden here.
4245 Allow a function call that returns a task.and appears as the
4246 prefix of a selected component.
4247 (Analyze_Reference): Give error message if we try to make a 'Reference
4248 for an object that is atomic/aliased without its type having the
4249 corresponding attribute.
4250 (Analyze_Call): Remove condition checking for attributes to allow
4251 calls to functions with inherently limited results as prefixes of
4252 attributes. Remove related comment about Class attributes.
4253 (Analyze_Selected_Component): If the prefix is a remote type, check
4254 whether this is a prefixed call before reporting an error.
4255 (Complete_Object_Operation): If the controlling formal is an access to
4256 variable reject an actual that is a constant or an access to one.
4257 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4258 primitive operations from base type.
4260 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
4262 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4263 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
4264 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
4265 (Expand_N_Slice): Test for prefix that is a build-in-place function call
4266 and call Make_Build_In_Place_Call_In_Anonymous_Context.
4267 (Analyze_Call): Remove code that issues an error for limited function
4268 calls in illegal contexts, as we now support all of the contexts that
4269 were forbidden here.
4270 New calling sequence for Get_Simple_Init_Val
4271 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
4272 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
4274 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4275 Ed Schonberg <schonberg@adacore.com>
4276 Robert Dewar <dewar@adacore.com>
4278 * exp_ch2.adb: Minor reformatting.
4279 (Expand_Entry_Index_Parameter): Set the type of the identifier.
4280 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
4281 (Expand_Protected_Component): New routine.
4282 (Expand_Protected_Private): Removed.
4283 Add Sure parameter to Note_Possible_Modification calls
4285 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
4286 generated subprogram declaration must inherit the overriding indicator
4287 from the instantiation node.
4288 (Validate_Access_Type_Instance): If the designated type of the actual is
4289 a limited view, use the available view in all cases, not only if the
4290 type is an incomplete type.
4291 (Instantiate_Object): Actual is illegal if the formal is null-excluding
4292 and the actual subtype does not exclude null.
4293 (Process_Default): Handle properly abstract formal subprograms.
4294 (Check_Formal_Package_Instance): Handle properly defaulted formal
4295 subprograms in a partially parameterized formal package.
4296 Add Sure parameter to Note_Possible_Modification calls
4297 (Validate_Derived_Type_Instance): if the formal is non-limited, the
4298 actual cannot be limited.
4299 (Collect_Previous_Instances): Generate instance bodies for subprograms
4302 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
4304 Add Sure parameter to Note_Possible_Modification calls
4305 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
4306 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
4307 constant overlaid by variable and issue warning.
4308 Use new Is_Standard_Character_Type predicate
4309 (Analyze_Record_Representation_Clause): Check that the specified
4310 Last_Bit is not less than First_Bit - 1.
4311 (Analyze_Attribute_Definition_Clause, case Address): Check for
4312 self-referential address clause
4314 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
4315 detection mechanism when the lhs is a prival.
4316 (Analyze_Assignment): Call Check_Unprotected_Access to detect
4317 assignment of a pointer to protected data, to an object declared
4318 outside of the protected object.
4319 (Analyze_Loop_Statement): Check for unreachable code after loop
4320 Add Sure parameter to Note_Possible_Modication calls
4321 Protect analysis from previous syntax error such as a scope mismatch
4323 (Analyze_Assignment_Statement): The assignment is illegal if the
4324 left-hand is an interface.
4326 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
4327 violation of restriction No_Implicit_Conditionals
4328 Add Sure parameter to Note_Possible_Modication calls
4329 Use new Is_Standard_Character_Type predicate
4330 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
4331 call as operator. Fixes problems (e.g. validity checking) which
4332 come from the result looking as though it does not come from source).
4333 (Resolve_Call): Check case of name in named parameter if style checks
4335 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
4336 from the checking that such calls should not occur from an entry body.
4337 (Resolve_Call): If the return type of an Inline_Always function
4338 requires the secondary stack, create a transient scope for the call
4339 if the body of the function is not available for inlining.
4340 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
4341 that are actuals for in-out formals.
4342 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4343 primitive operations from base type.
4344 (Analyze_Selected_Component): If the context is a call to a protected
4345 operation the parent may be an indexed component prior to expansion.
4346 (Resolve_Actuals): If an actual is of a protected subtype, use its
4347 base type to determine whether a conversion to the corresponding record
4349 (Resolve_Short_Circuit): Handle pragma Check
4351 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
4352 Use new Is_Standard_Character_Type predicate
4353 (Eval_Relational_Op): Catch more cases of string comparison
4355 2008-04-08 Robert Dewar <dewar@adacore.com>
4356 Gary Dismukes <dismukes@adacore.com>
4358 * s-rident.ads: Add No_Default_Initialization restriction
4361 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
4362 (Set_TSS): Handle No_Default_Initialization case
4364 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
4365 No_Default_Initialization
4366 (Expand_N_Subprogram_Body): Remove redundant initialization of out
4367 parameters when Normalize_Scalars is active.
4368 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
4369 Fix casing error in formal parameter name in call
4370 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
4371 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4372 dispatching call on VM targets.
4374 2008-04-08 Gary Dismukes <dismukes@adacore.com>
4375 Thomas Quinot <quinot@adacore.com>
4377 * exp_ch7.adb (Find_Final_List): Change the test for generating a
4378 selected component from an access type's Associated_Final_Chain to
4379 check for the presence of that field, rather than assuming it exists
4380 for all named access types.
4381 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
4382 procedure to call at the end of the generated cleanup procedure.
4383 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
4384 and an At_End_Proc already exists in the handled sequence of statements
4385 for which cleanup actions are being expanded, the original cleanup
4386 action must be preserved.
4388 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4389 Ed Schonberg <schonberg@adacore.com>
4390 Robert Dewar <dewar@adacore.com>
4391 Gary Dismukes <dismukes@adacore.com>
4393 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
4394 Build_Unprotected_Subprogram_Body): Generate debug info for
4395 declarations related to the handling of private data in task and
4397 (Debug_Private_Data_Declarations): New subprogram.
4398 (Install_Private_Data_Declarations): Remove all debug info flagging.
4399 This is now done by Debug_Private_Data_Declarations at the correct
4401 (Build_Simple_Entry_Call): If the task name is a function call, expand
4402 the prefix into an object declaration, and make the surrounding block a
4404 (Build_Master_Entity): An internal block is a master if it wraps a call.
4405 Code reformatting, update comments. Code clean up.
4406 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
4407 (Replicate_Entry_Formals): If the formal is an access parameter or
4408 anonymous access to subprogram, copy the original tree to create new
4409 entities for the formals of the subprogram.
4410 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
4411 for tasks to store the value passed using pragma Relative_Deadline.
4412 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
4413 run-time call to create a task.
4414 (Build_Wrapper_Spec): If the controlling argument of the interface
4415 operation is an access parameter with a non-null indicator, use the
4416 non-null indicator on the wrapper.
4418 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
4419 present, which it may not be in the case where the type entity is an
4420 incomplete view brought in by a limited with.
4421 (Analyze_Task_Type): Only retrieve the full view when present, which it
4422 may not be in the case where the type entity is an incomplete view brought
4423 in by a limited with.
4424 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
4425 private components of a protected type, to prevent the generation of freeze
4426 nodes for which there is no proper scope of elaboration.
4428 * exp_util.ads, exp_util.adb
4429 (Remove_Side_Effects): If the expression is a function call that returns a
4430 task, expand into a declaration to invoke the build_in_place machinery.
4431 (Find_Protection_Object): New routine.
4432 (Remove_Side_Effects): Also make a copy of the value
4433 for attributes whose result is of an elementary type.
4434 (Silly_Boolean_Array_Not_Test): New procedure
4435 (Silly_Boolean_Array_Xor_Test): New procedure
4436 (Is_Volatile_Reference): New function
4437 (Remove_Side_Effects): Use Is_Volatile_Reference
4438 (Possible_Bit_Aligned_Component): Handle slice case properly
4440 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
4441 case test to Exp_Util
4442 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
4444 2008-04-08 Thomas Quinot <quinot@adacore.com>
4446 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
4448 (Add_RACW_Features): When processing an RACW in another unit than the
4449 main unit, set Body_Decls to No_List to indicate that the bodies of
4450 the type's TSS must not be generated.
4451 (GARLIC_Support.Add_RACW_Read_Attribute,
4452 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
4453 Body_Decls is No_List.
4454 (PolyORB_Support.Add_RACW_Read_Attribute,
4455 PolyORB_Support.Add_RACW_Write_Attribute,
4456 PolyORB_Support.Add_RACW_From_Any,
4457 PolyORB_Support.Add_RACW_To_Any,
4458 PolyORB_Support.Add_RACW_TypeCode): Same.
4459 (Transmit_As_Unconstrained): New function.
4460 (Build_Ordered_Parameters_List): Use the above to order parameters.
4461 (GARLIC_Support.Build_General_Calling_Stubs):
4462 Use the above to determine which parameters to unmarshall using 'Input
4463 at the point where their temporary is declared (as opposed to later on
4465 (PolyORB_Support.Build_General_Calling_Stubs):
4466 Use the above to determine which parameters to unmarshall using From_Any
4467 at the point where their temporary is declared (as opposed to later on
4468 with an assignment).
4470 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4472 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
4473 an Input function for an access type, do not perform default
4474 initialization on the local variable that receives the value, to
4475 prevent spurious warnings when the type is null-excluding.
4477 2008-04-08 Robert Dewar <dewar@adacore.com>
4478 Ed Schonberg <schonberg@adacore.com>
4480 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
4482 (Size_Known): Generic formal scalar types have known at compile
4483 time size, so remove check.
4484 Fix casing error in formal parameter name in call
4485 (Freeze_Subprogram): If the subprogram is a user-defined operator,
4486 recheck its overriding indication.
4488 2008-04-08 Vincent Celier <celier@adacore.com>
4490 * gnat1drv.adb: Send all messages indicating an error to standard error
4492 2008-04-08 Robert Dewar <dewar@adacore.com>
4494 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
4495 (List_Applicable_Restrictions): Do not list existing restrictions
4497 2008-04-08 Thomas Quinot <quinot@adacore.com>
4499 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
4500 add a pointer to generic sockets literature
4501 do not mention that the given example is "typical" usage.
4502 Remove obsolete comment about multicast not being supported on Windows.
4503 (Connect_Socket): Make Server mode IN rather than IN OUT
4504 since this formal is never modified.
4506 2008-04-08 Robert Dewar <dewar@adacore.com>
4508 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
4509 the declaration for some different entity.
4510 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
4511 list is precent (following the parent subtype indication), display
4512 appropriate "and" keyword.
4514 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
4515 Remove unnecessary calls to Init_Size_Align and Init_Esize.
4516 Add notes on use of Parent field of an Itype
4518 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4519 Robert Dewar <dewar@adacore.com>
4520 Gary Dismukes <dismukes@adacore.com>
4522 * lib-xref.adb (Is_On_LHS): Remove dead code
4523 (Output_Overriden_Op): If the overridden operation is itself inherited,
4524 list the ancestor operation, which is the one whose body or absstract
4525 specification is actually being overridden. For source navigation
4528 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
4529 operation is primitive for the type.
4530 (Declare_Inherited_Private_Subprograms): If the new operation overrides
4531 an inherited private subprogram, set properly the Overridden_Operation
4532 attribute, for better cross-reference information.
4533 (Analyze_Package_Specification): Do late analysis of spec PPCs
4534 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
4535 properly the full view and underlying full views of a private type in a
4536 child unit, whose full view is derived from a private type in a parent
4537 unit, and whose own full view becomes visible in the child body.
4539 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
4540 primitive operation after the type has been frozen, add an explicit
4541 reference to the type and the operation, because other primitive
4542 references have been emitted already.
4543 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4544 dispatching call on VM targets.
4546 2008-04-08 Vincent Celier <celier@adacore.com>
4547 Thomas Quinot <quinot@adacore.com>
4549 * make.adb: (Gnatmake_Called): Remove, no longer necessary
4550 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
4551 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
4552 (Insert_Project_Sources): Take into account index in multi-unit source
4554 After building a library project, delete all temporary files.
4555 (Initialize): Reset current output after parsing project file.
4556 (Collect_Arguments_And_Compile): Never insert in the queue the sources
4557 of library projects that are externally built.
4558 Put file name in error and inform messages if -df is used
4559 (Display): If invoked with -d7, do not display path names, but only
4562 * makeutl.ads (Path_Or_File_Name): New function
4563 (Path_Or_File_Name): New function
4565 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4567 * Make-lang.in: Disable warnings during first stage of bootstrap
4569 Update dependencies.
4571 2008-04-08 Vincent Celier <celier@adacore.com>
4573 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
4574 case to decide if ALI object file is included in library.
4575 (Build_Library): Never attempt to build a library if the project is
4578 2008-04-08 Thomas Quinot <quinot@adacore.com>
4580 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
4581 (No_List) is defined to return Empty.
4583 2008-04-08 Jose Ruiz <ruiz@adacore.com>
4585 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
4588 (Read_Default_Search_Dirs): Do not consider spaces as path separators
4589 because spaces may be part of legal paths.
4591 2008-04-08 Robert Dewar <dewar@adacore.com>
4593 * par-ch11.adb (P_Exception_Handler): Check indentation level for
4596 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4598 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
4599 in a type declaration, if this is not an interface declaration or
4600 private type extension.
4602 2008-04-08 Vincent Celier <celier@adacore.com>
4604 * prj-util.adb (Executable_Of): New String parameter Language. When
4605 Ada_Main is False and Language is not empty, attempt to remove the body
4606 suffix or the spec suffix of the language to get the base of the
4607 executable file name.
4608 (Put): New Boolean parameter Lower_Case, defauilted to False. When
4609 Lower_Case is True, put the value in lower case in the name list.
4610 (Executable_Of): If there is no executable suffix in the configuration,
4611 then do not modify Executable_Extension_On_Target.
4613 * prj-util.ads (Executable_Of): New String parameter Language,
4614 defaulted to the empty string.
4615 (Put): New Boolean parameter Lower_Case, defauilted to False
4617 2008-04-08 Robert Dewar <dewar@adacore.com>
4619 * scng.adb (Scan_Identifier): Handle case of identifier starting with
4620 wide character using UTF-8 encoding.
4622 2008-04-08 Javier Miranda <miranda@adacore.com>
4624 * sem.adb (Analyze): Consider case in which we analyze an empty node
4625 that was generated by a call to a runtime function that is not
4626 available under the configurable runtime.
4628 * sem.ads (Inside_Freezing_Actions): New flag.
4629 (Save_Check_Policy_List): New field in scope stack entry
4631 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4632 Robert Dewar <dewar@adacore.com>
4634 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
4635 the ancestor part of an extension aggregate for a limited type.
4636 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
4637 enumeration index bounds.
4638 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
4639 when array is too short.
4640 (Check_Expr_OK_In_Limited_Aggregate): Move function
4641 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
4643 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
4644 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
4645 component associations.
4646 (Check_Non_Limited_Type): Moved to outer level and renamed.
4647 (Resolve_Record_Aggregate): In an extension aggregate, an association
4648 with a box initialization can only designate a component of the
4649 extension, not a component inherited from the given ancestor
4651 * sem_case.adb: Use new Is_Standard_Character_Type predicate
4653 2008-04-08 Robert Dewar <dewar@adacore.com>
4655 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
4657 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
4658 Properly handle case where Aft > Scale and input number is less than
4661 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4663 * s-stoele.ads, s-soflin.ads: Move the location of
4664 Dummy_Communication_Block from System.Storage_Elements to
4667 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
4668 emulate Communication_Block in certain scenarios.
4670 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4672 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
4674 Add new subtype S_WWC, unchecked conversion routines From_WWC and
4676 (I_WWC, O_WWC): New routines for input and output of
4677 Wide_Wide_Character.
4679 2008-04-08 Robert Dewar <dewar@adacore.com>
4681 * stringt.adb (Write_String_Table_Entry): Handle wide characters
4684 2008-04-08 Robert Dewar <dewar@adacore.com>
4686 * styleg.adb (Check_Comment): Allow special char after -- in
4687 non-end-of-line case
4689 2008-04-08 Robert Dewar <dewar@adacore.com>
4691 * stylesw.adb: Implement -gnaty + - y options
4692 (Set_GNAT_Style_Check_Options): Includ I in style check string
4694 * stylesw.ads: Add comments for new style switch options
4696 2008-04-08 Sergey Rybin <rybin@adacore.com>
4698 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
4699 to the set of the GNAT components needed by ASIS.
4701 2008-04-08 Bob Duff <duff@adacore.com>
4703 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
4705 2008-04-08 Tristan Gingold <gingold@adacore.com>
4707 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
4708 Improve error message generation.
4710 2008-04-08 Vincent Celier <celier@adacore.com>
4712 * a-direct.adb (Start_Search): Check for Name_Error before checking for
4713 Use_Error, as specified in the RM. Check if directory is open and raise
4714 Use_Error if it is not.
4716 2008-04-08 Vincent Celier <celier@adacore.com>
4717 Robert Dewar <dewar@adacore.com>
4719 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
4720 AAMP_On_Target is set.
4722 * vms_data.ads: Add NOxxx to style check switch list
4723 Add entry COMPONENTS for -gnatVe
4724 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
4726 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
4727 Add qualifiers for gnatmetric coupling options
4728 Add note that -gnata enables all checks
4729 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
4730 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
4731 New warning flag -gnatw.e
4733 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
4734 Add entry for -gnatyN (forgotten before)
4735 Line for new warning switch -gnatw.p
4736 New warning flag -gnatw.e
4738 * gnat_ugn.texi: Add documentation fpr project file switch -aP
4739 Document -gnaty - + y
4740 Replace occurences of "package specification" with "package spec"
4741 Define preprocessing symbols in documentation of gnatprep
4742 Clarify reason for distinguishing overflow checking
4743 Add documentation for project-aware tool switches -eL and --subdirs=
4744 Complete list of configuration pragmas
4745 Specify that, even when gnatmake switch -x is used, mains on the command
4746 line need to be sources of project files.
4747 Editing of gnatcheck/gnatmetric doc.
4748 Add documentation for -gnatw.p/-gnatw.P
4749 Add missing documentation for -fno-inline-functions.
4750 Add documentation for -gnatw.e
4752 * gnat_rm.texi: Add documentation for No_Default_Initialization
4753 Replace occurences of "package specification" with "package spec"
4754 Document use of * in Warnings Off string
4755 Update documentation of alignment/component clauses.
4756 Add documentation for Invalid_Value
4757 Document new consistency rule for Optimize_Alignment
4758 Add documentation for Precondition and Postcondition pragmas
4759 Add documentation for Check and Check_Policy pragmas
4760 Document new Enum_Val attribute
4761 Remove requirement for static string in pragma Assert
4762 Add documentation on GNAT.Time_Stamp
4764 * ug_words: add entry for -gnatVe
4765 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
4766 Add entry for -gnatw.e
4768 * debug.adb: Add missing documentation for d.a flag
4769 Document new -gnatd.a switch.
4770 Add documentation for new gnatmake debug switch -df
4772 2008-04-08 Thomas Quinot <quinot@adacore.com>
4774 * gen-soccon.c: Bump year in copyright notices.
4776 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
4778 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4780 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
4783 2008-04-08 Robert Dewar <dewar@adacore.com>
4784 Bob Duff <duff@adacore.com>
4786 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
4787 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
4789 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
4791 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
4793 * g-trasym.ads: Minor comment improvements
4795 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
4797 * a-sequio.ads, a-direio.ads: improve message for tagged type
4799 * a-strunb.ads: Minor reformatting
4801 * a-tifiio.adb: Minor reformatting
4803 * atree.adb (Fix_Parents): Use clearer names for formals
4804 Cleanup and simplify code
4805 Use named notation in calls
4807 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
4810 * uintp.adb: Used named notation for some confusing calls
4812 * bindusg.adb: Minor change in one line of output
4814 * cstand.adb: Minor reformatting of src representation of Standard
4816 * a-assert.ads: Add comment.
4818 * g-decstr.adb: Fix bad indentation
4820 * expander.ads, expander.adb: Code clean up.
4822 * sem_dist.ads: Minor comment improvement
4824 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
4825 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
4827 * i-cstrin.adb: Fix casing error in formal parameter name in call
4829 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4831 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
4832 mentioned in limited_with_clauses to do create semantic dependencies
4833 even though they appear in the ali file.
4835 2008-04-08 Emmanuel Briot <briot@adacore.com>
4837 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
4839 (Get_Configuration): New subprogram.
4841 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
4842 These optional parameters help preserve the casing of the project's name
4843 when pretty-printing.
4845 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
4846 Arnaud Charlet <charlet@adacore.com>
4848 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
4849 then use __gnat_set_exit_status to report the returned status code.
4851 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
4852 messages on .NET, since some constructs of the language are not
4855 * gnatlink.adb (Gnatlink): In case the command line is too long for the
4856 .NET linker, gnatlink now concatenate all .il files and pass this to
4859 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4860 Xavier Grave <grave@ipno.in2p3.fr>
4862 * Makefile.in: Add make ifeq define for mips/mipsel support.
4863 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
4864 system-linux-mips.ads: New files.
4866 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4868 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
4869 detect systems using GNU libc.
4875 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4877 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
4878 constant constant for sysconf call.
4879 (bit_field): New packed boolean type used by cpu_set_t.
4880 (cpu_set_t): New type corresponding to the C type with
4881 the same name. Note that on the Ada side we use a bit
4882 field array for the affinity mask. There is not need
4883 for the C macro for setting individual bit.
4884 (pthread_setaffinity_np): New imported routine.
4885 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
4888 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4890 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
4892 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4894 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
4895 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
4896 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
4897 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
4898 Return by Depressed Stack Pointer.
4900 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
4902 * decl.c (is_variable_size): Do not unconditionally return false
4903 on non-strict alignment platforms.
4905 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
4907 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
4908 used to process all the variants of the specified type.
4909 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
4910 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
4911 (rest_of_type_decl_compilation): Likewise.
4912 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
4914 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
4916 * gigi.h (insert_block): Kill.
4917 * utils.c (insert_block): Kill.
4919 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
4921 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
4922 type has self-referential size, get the size from the initializing
4923 expression directly if it is also a constant whose nominal type
4924 has self-referential size.
4926 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4929 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
4932 * env.c: Always include crt_externs.h if __APPLE__ is defined.
4933 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
4935 2008-04-01 Andreas Jaeger <aj@suse.de>
4937 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
4940 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4942 * g-table.adb, g-tasloc.adb, g-traceb.ads,
4943 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
4944 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
4945 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
4946 gnatlink.adb, gnatmem.adb, gprep.adb,
4947 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
4948 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
4949 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
4950 lib-xref.ads, lib.adb, link.c, live.ads,
4951 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
4952 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
4953 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
4954 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
4955 namet.adb, namet.h, nlists.adb, nlists.ads,
4956 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
4957 osint-c.ads, osint.adb, osint.ads, output.ads,
4958 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
4959 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
4960 par-endh.adb, par-labl.adb, par-prag.adb,
4961 par-sync.adb, par-tchk.adb, par-util.adb,
4962 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
4963 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
4964 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
4965 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
4967 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
4969 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
4970 size if it has overflowed.
4972 2008-03-31 Olivier Hainque <hainque@adacore.com>
4973 Eric Botcazou <ebotcazou@adacore.com>
4975 * utils2.c (find_common_type): Document assumption on t1/t2 vs
4976 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
4978 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4980 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
4981 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
4982 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
4983 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
4984 exp_tss.ads, exp_util.adb, exp_util.ads,
4985 exp_vfpt.adb, freeze.adb, freeze.ads,
4986 frontend.adb, g-alleve.adb, g-altcon.adb,
4987 g-altive.ads, g-alveop.ads, g-alvevi.ads,
4988 g-arrspl.adb, g-busorg.ads, g-calend.adb,
4989 g-calend.ads, g-casuti.ads, g-cgideb.adb,
4990 g-comlin.adb, g-comlin.ads, g-curexc.ads,
4991 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
4992 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
4993 g-dyntab.adb, g-encstr.ads, g-excact.ads,
4994 g-except.ads, g-expect.ads, g-heasor.adb,
4995 g-hesora.adb, g-hesorg.adb, g-htable.ads,
4996 g-locfil.ads, g-md5.adb, g-md5.ads,
4997 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
4998 g-pehage.adb, g-pehage.ads, g-regexp.adb,
4999 g-regexp.ads, g-regpat.adb, g-regpat.ads,
5000 g-soccon-aix.ads, g-soccon-darwin.ads,
5001 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
5002 g-soccon-hpux.ads, g-soccon-irix.ads,
5003 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
5004 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
5005 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
5006 g-soccon-solaris.ads, g-soccon-tru64.ads,
5007 g-soccon-vms.ads, g-soccon-vxworks.ads,
5008 g-soccon.ads, g-socket.adb, g-socket.ads,
5009 g-socthi-mingw.adb, g-socthi-vms.adb,
5010 g-socthi-vxworks.adb, g-soliop-mingw.ads,
5011 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
5012 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
5015 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
5017 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
5018 if the procedure is imported.
5020 2008-03-26 Arnaud Charlet <charlet@adacore.com>
5022 * adaint.c: Fix warnings.
5024 2008-03-26 Arnaud Charlet <charlet@adacore.com>
5026 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
5028 2008-03-26 Arnaud Charlet <charlet@adacore.com>
5030 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
5031 Fix problem of status check for null file
5033 2008-03-26 Arnaud Charlet <charlet@adacore.com>
5035 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
5036 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
5037 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
5038 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
5039 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
5042 2008-03-26 Thomas Quinot <quinot@adacore.com>
5045 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
5046 Get_Socket_Option): Add support for Receive_Packet_Info.
5048 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
5049 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
5050 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
5051 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
5052 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
5053 new constants SO_REUSEPORT and IP_PKTINFO
5055 2008-03-26 Robert Dewar <dewar@adacore.com>
5057 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
5058 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
5059 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
5060 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
5061 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
5062 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
5063 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
5064 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5065 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
5066 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
5067 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
5068 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
5069 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
5070 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
5071 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
5072 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
5073 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
5074 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
5075 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
5076 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
5077 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
5078 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
5079 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
5080 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
5081 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
5082 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
5083 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
5084 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
5085 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
5086 s-tasloc.adb: Minor reformatting.
5088 Remove "used for" sections from comments.
5090 2008-03-26 Robert Dewar <dewar@adacore.com>
5092 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
5093 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
5094 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
5095 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
5096 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
5097 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5098 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5099 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
5100 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
5101 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
5102 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
5103 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
5104 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
5105 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
5106 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
5107 double spaced if it fits on one line and otherwise single spaced.
5109 2008-03-26 Arnaud Charlet <charlet@adacore.com>
5111 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
5112 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
5113 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
5114 or task info if the thread could not be created.
5116 2008-03-26 Arnaud Charlet <charlet@adacore.com>
5118 * gnatvsn.ads (Library_Version): Bump to 4.4.
5119 (Current_Year): Bump to 2008.
5121 2008-03-26 Robert Dewar <dewar@adacore.com>
5123 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
5125 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
5127 * debug.adb: Add debug flags d.r and d.v
5128 Add debug flag .T (Optimize_Alignment (Time))
5129 Add debug flag .S (Optimize_Alignment (Space))
5131 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
5132 depending on setting of relevant debug flags.
5133 Replace use of Warnings_Off by Has_Warnings_Off
5134 (Freeze_Entity): In circuit for warning on suspicious convention
5135 actuals, do not give warning if subprogram has same entity as formal
5136 type, or if subprogram does not come from source.
5137 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
5138 if Optimize_Alignment set to Space.
5140 * frontend.adb: Add call to Sem_Warn.Initialize
5141 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
5142 Reset Optimize_Alignment mode from debug switches .S and .T
5144 * layout.adb (Layout_Composite_Object): Rewritten for
5145 Optimize_Aligment pragma.
5147 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
5150 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
5152 * par-prag.adb (N_Pragma): Chars field removed, use Chars
5153 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
5154 this change. Add entry for pragma Optimize_Alignment
5156 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
5157 (Pragma_Identifier (..
5158 instead, adjustments throughout to accomodate this change.
5159 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
5160 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
5161 Add implementation of pragma Optimize_Alignment
5163 2008-03-26 Vincent Celier <celier@adacore.com>
5165 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
5166 Improve memory usage to avoid use of stack.
5168 2008-03-26 Robert Dewar <dewar@adacore.com>
5170 * a-teioed.ads: Correct value of Default_Fill
5172 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
5174 2008-03-26 Robert Dewar <dewar@adacore.com>
5176 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
5177 with Current_Output (introduce Self).
5179 2008-03-26 Robert Dewar <dewar@adacore.com>
5181 * checks.adb (Ensure_Valid): Capture valid status if possible
5184 2008-03-26 Robert Dewar <dewar@adacore.com>
5186 * stand.ads: Deal with reordering of package standard declarations
5188 * cstand.adb: Put package Standard declarations in proper order
5190 2008-03-26 Robert Dewar <dewar@adacore.com>
5192 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
5193 (Pragma_Identifier (.. instead.
5194 (OK_To_Reorder_Components): New flag
5195 (Has_Entries): Code cleanup.
5196 (Warnings_Off_Used): New flag
5197 (Warnings_Off_Used_Unmodified): New flag
5198 (Warnings_Off_Used_Unreferenced): New flag
5199 (Has_Warnings_Off): New function
5200 (Has_Unmodified): New function
5201 (Has_Unreferenced): New function
5202 (Is_Trivial_Subprogram): New flag
5203 (Is_Static_Dispatch_Table_Entity): New attribute.
5204 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
5205 (more consistent with other similar names)
5206 (Access_Subprogram_Type): New classification function
5208 2008-03-26 Robert Dewar <dewar@adacore.com>
5210 * errout.ads: Document new !! insertion sequence
5212 * errout.adb (N_Pragma): Chars field removed, use Chars
5213 (Pragma_Identifier (.. instead.
5214 Replace use of Warnings_Off by Has_Warnings_Off
5215 (Error_Msg_Internal): Don't delete warning ending in !!
5217 2008-03-26 Robert Dewar <dewar@adacore.com>
5219 * par.adb (Check_No_Right_Paren): Removed no longer used
5221 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
5222 (Pragma_Identifier (.. instead.
5224 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
5226 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
5227 par-ch4.adb: Minor improvements in error recovery and messages.
5229 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
5232 * par-ch9.adb: Minor improvements in error recovery and messages
5233 (P_Protected): Better error recovery for "protected type x;"
5235 * par-util.adb: Minor improvements in error recovery and messages
5236 (Check_No_Right_Paren): Removed no longer used
5238 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5240 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
5241 that the prefix of an attribute is the type of the aggregate being
5244 2008-03-26 Javier Miranda <miranda@adacore.com>
5245 Robert Dewar <dewar@adacore.com>
5247 * exp_attr.adb (N_Pragma): Chars field removed.
5248 (Expand_N_Attribute_Reference): If the designated type associated with
5249 attribute 'Unrestricted_Access is a subprogram entity then replace it
5250 by an E_Subprogram_Type itype.
5251 Implement attribute Old
5253 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
5255 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
5257 New_Internal_Entity by call to Create_Itype to centralize calls
5258 building itypes, ad propagate the convention of the designated
5259 subprogram. In addition, disable the machinery cleaning constant
5260 indications from all entities in current scope when 'Unrestricted_Access
5261 corresponds with a node initializing a dispatch table slot.
5262 (Analyze_Attribute): Parameterless attributes returning a string or a
5263 type will not be called with improper arguments, so we can remove junk
5264 code that was dealing with this case.
5265 Implement attribute Old
5267 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
5268 Add entry for pragma Optimize_Alignment
5269 New standard names Sync and Synchronize
5271 2008-03-26 Robert Dewar <dewar@adacore.com>
5272 Arnaud Charlet <charlet@adacore.com>
5274 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
5276 (No_Exception_Propagation_Active): New function.
5277 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5278 Update comments, and review all uses of No_Exception_Propagation, which
5279 are now correct and in sync with what gigi expects.
5281 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
5283 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
5284 Update comments, and review all uses of No_Exception_Propagation, which
5285 are now correct and in sync with what gigi expects.
5287 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5289 * sem_ch3.adb (Access_Definition): If the access type is the return
5290 result of a protected function, create an itype reference for it
5291 because usage will be in an inner scope from the point of declaration.
5292 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
5293 OK_To_Reorder_Components.
5294 (Make_Index): If an overloaded range includes a universal integer
5295 interpretation, resolve to Standard.Integer.
5296 (Analyze_Subtype_Indication): Copy Convention to subtype
5297 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
5298 limited an synchronized progenitors in type declaration and private
5299 extension declarations.
5301 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
5302 protected subprogram body, determine proper scope from subprogram
5305 2008-03-26 Robert Dewar <dewar@adacore.com>
5307 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
5310 2008-03-26 Gary Dismukes <dismukes@adacore.com>
5312 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
5313 of a heap allocator for a limited unconstrained function return when
5314 resstriction No_Allocators is active.
5315 (Analyze_Allocator): The restriction No_Allocators is now only checked
5316 on allocators that have Comes_From_Source set, as per RM-H.4(7).
5318 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
5319 of a heap allocator for a limited unconstrained function return when
5320 resstriction No_Allocators is active.
5321 (Analyze_Allocator): The restriction No_Allocators is now only checked
5322 on allocators that have Comes_From_Source set, as per RM-H.4(7).
5323 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
5324 operands are fixed-point types, the universal_fixed predefined operation
5325 is used, regardless of whether the operand type (s) have a primitive
5326 operation of the same name.
5328 2008-03-26 Javier Miranda <miranda@adacore.com>
5330 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
5331 Is_Static_Dispatch_Table
5332 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
5333 to Exchange_Declarations to exchange the private and full-view. Bug
5334 found working in this issue.
5335 (Expand_Dispatching_Call): Propagate the convention of the subprogram
5336 to the subprogram pointer type.
5337 (Make_Secondary_DT): Replace generation of Prim'Address by
5338 Address (Prim'Unrestricted_Access)
5339 (Make_DT): Replace generation of Prim'Address by
5340 Address (Prim'Unrestricted_Access)
5341 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
5342 simple call form for single entry.
5343 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
5344 tables of predefined primitives).
5345 (Make_Secondary_DT): Add support to handle access to dispatch tables of
5346 predefined primitives.
5347 (Make_Tags): Add entities to Access_Dispatch_Table associated with
5348 access to dispatch tables containing predefined primitives.
5350 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
5351 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
5353 (Register_Predefined_DT_Entry): Updated to handle the new contents
5354 of attribute Access_Disp_Table (pointers to dispatch tables containing
5355 predefined primitives).
5357 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
5359 (Find_Interface_ADT): Updated to skip the new contents of attribute
5360 Access_Dispatch_Table (pointers to dispatch tables containing predefined
5363 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
5365 (Set_Convention): Use new function Is_Access_Subprogram_Type
5366 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
5367 Access_Dispatch_Table (pointers to dispatch tables containing predefined
5370 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
5371 expanded code avoiding calls to Build_Predef_Prims.
5372 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
5373 call to Build_Get_Predefined_Prim_Op_Address.
5375 2008-03-26 Javier Miranda <miranda@adacore.com>
5377 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
5378 subprogram Corresponding_Runtime_Package to know the runtime package
5379 that will provide support to a given protected type.
5381 * exp_ch9.adb (Add_Private_Declarations,
5382 Build_Protected_Subprogram_Call,
5383 Build_Protected_Entry, Build_Simple_Entry_Call,
5384 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
5385 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
5386 cleanup using the new centralized subprogram Corresponding_Runtime
5387 Package to know the runtime package that provides support to
5388 a given protected type.
5390 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5392 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
5393 assignment is within the initialization procedure for a packed array,
5394 and Initialize_Scalars is enabled, compile right-hand side with checks
5395 off, because the value is purposely out of range.
5397 2008-03-26 Vincent Celier <celier@adacore.com>
5399 * gnatcmd.adb: Add processing for GNAT SYNC
5401 * vms_conv.ads: (Command_Type): Add command Sync
5403 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
5405 * vms_data.ads: Add entries for -gnatw.w
5406 Add qualifier for gnatstub --header-file option
5407 Add switches for GNAT SYNC
5409 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
5410 (Add_Package_Name): New procedure
5411 (Package_Name_List): New function
5412 (Initialize): Add known package names to the list
5413 (Register_New_Package): Add the new package name to the list
5415 2008-03-26 Robert Dewar <dewar@adacore.com>
5417 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
5418 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
5419 Raise_Exception by "raise with" construct.
5421 2008-03-26 Pascal Obry <obry@adacore.com>
5423 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
5424 supported platforms.
5426 * Makefile.rtl: Add g-sercom.o.
5428 * impunit.adb: Add g-sercom.adb.
5430 * s-crtl.ads (open): New routine.
5434 * s-osinte-mingw.ads (BYTE): New type.
5436 (OVERLAPPED): Likewise.
5437 (GENERIC_READ): New constant.
5438 (GENERIC_WRITE): Likewise.
5439 (OPEN_EXISTING): Likewise.
5440 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
5442 (CreateFile): New routine.
5443 (WriteFile): Likewise.
5444 (ReadFile): Likewise.
5445 (CloseHandle): Move next to the other file oriented routines.
5447 * g-sercom.ads: New unit.
5449 * g-sercom.adb: Default implementation, calls to this unit will raise
5450 a program error exception.
5452 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
5453 GNU/Linux implementations.
5455 2008-03-26 Robert Dewar <dewar@adacore.com>
5457 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
5459 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
5460 unchecked conversion for different conventions only for subprogram
5463 2008-03-26 Vincent Celier <celier@adacore.com>
5465 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
5466 to check if the specified object file is correct.
5468 2008-03-26 Thomas Quinot <quinot@adacore.com>
5470 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
5471 Comes_From_Source to exclude primitives from being checked. We want to
5472 exclude predefined primitives only, so use the appropriate specific
5473 predicate. Also, flag a formal parameter of an anonymous
5474 access-to-subprogram type as illegal for a primitive operation of a
5475 remote access to class-wide type.
5477 2008-03-26 Vincent Celier <celier@adacore.com>
5479 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
5480 known, check if it may be a missspelling of a known package name. In
5481 not verbose, not mode, issue warnings only if the package name is a
5482 possible misspelling.
5483 In verbose mode, always issue a warning for a not known package name,
5484 plus a warning if the name is a misspelling of a known package name.
5486 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
5487 limited withs or limited withs are parse during one call.
5488 (Parse_Single_Project): Post parse context clause in two passes: non
5489 limited withs before current project and limited withs after current
5492 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
5493 project with the name With_Name, even if it is only extended indirectly.
5494 (Recursive_Process): Process projects in order: first single withs, then
5495 current project, then limited withs.
5497 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
5498 project with the name With_Name, even if it is only extended indirectly.
5500 2008-03-26 Robert Dewar <dewar@adacore.com>
5502 * scn.adb (Initialize_Scanner): Format messages belong on standard error
5504 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5506 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
5507 a generic subprogram that is imported, do not attempt to compile
5510 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
5511 imported, do not generate a raise_program_error for the non-existent
5513 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
5514 perform minimal name resolution on the generic to avoid spurious
5516 (Find_Actual_Type): the designated type of the actual in a child unit
5517 may be declared in a parent unit without being an actual.
5519 2008-03-26 Robert Dewar <dewar@adacore.com>
5521 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
5522 * sinfo.ads, sinfo.adb (From_At_End): New flag
5524 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5526 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
5527 operations that have an interface parameter.
5528 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
5529 Don't treat No_Return call as raise.
5531 * sem_disp.adb (Check_Dispatching_Operations): apply check for
5532 non-primitive interface primitives to access parameters, not to all
5533 parameters of an access type.
5535 2008-03-26 Ed Schonberg <schonberg@adacore.com>
5537 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
5538 declarations of a parent unit are made visible when compiling a child
5539 instance, the parent is not a hidden open scope, even though it may
5540 contain other pending instance.
5542 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
5543 hidden open scope for some child instance, it does affect the
5544 visibility status of other stach entries.
5545 (Analyze_Object_Renaming): Check that a class-wide object cannot be
5546 renamed as an object of a specific type.
5548 2008-03-26 Robert Dewar <dewar@adacore.com>
5550 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
5551 recursion and raise SE directly.
5552 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
5553 set for formal type for IN mode parameter.
5555 2008-03-26 Robert Dewar <dewar@adacore.com>
5557 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
5558 (Initialize): New procedure
5559 (Output_Warnings_Off_Warnings): New procedure
5560 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
5561 (Output_Non_Modifed_In_Out_Warnings): Ditto
5562 (Warn_On_Unreferenced_Entity): Ditto
5564 2008-03-26 Vincent Celier <celier@adacore.com>
5566 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
5569 2008-03-26 Matthew Heaney <heaney@adacore.com>
5571 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
5572 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
5573 Marked with clauses as private, and controlled operations as overriding
5575 2008-03-26 Robert Dewar <dewar@adacore.com>
5577 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
5579 2008-03-26 Robert Dewar <dewar@adacore.com>
5581 * back_end.adb, back_end.ads: Minor reformatting
5583 * bindgen.adb: Minor clarification of comments
5585 * fname.ads: Minor comment fixes
5587 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
5588 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
5590 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
5591 xsnames.adb: Remove warnings off pragma no longer needed
5593 * a-catizo.ads, a-calari.ads, a-calfor.adb,
5594 a-calfor.ads: Fix header.
5596 2008-03-26 Tristan Gingold <gingold@adacore.com>
5598 * init.c: Do not adjust pc for HPARITH on alpha/vms.
5600 2008-03-26 Robert Dewar <dewar@adacore.com>
5602 * lib-xref.adb: (OK_To_Set_Reference): New function
5603 (Generate_Reference): Don't set referenced from occurrence in Warnings,
5604 Unmodified, or Unreferenced pragma
5606 2008-03-26 Robert Dewar <dewar@adacore.com>
5608 * alloc.ads: Add entries for Warnings_Off_Pragmas table
5610 2008-03-26 GNAT Script <nobody@adacore.com>
5612 * Make-lang.in: Makefile automatically updated
5614 2008-03-26 Robert Dewar <dewar@adacore.com>
5616 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
5617 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
5618 removed, use Chars (Pragma_Identifier (.. instead, adjustments
5619 throughout to accomodate this change.
5621 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
5623 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
5624 Einfo.Set_Needs_Debug_Info)
5626 2008-03-26 Robert Dewar <dewar@adacore.com>
5628 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
5629 Add description for the new gnatstub option '--header-file'
5630 clarification of -gnatwz/-gnatwZ
5631 Add a "Irix-Specific Considerations" section to document the need to
5632 set LD_LIBRARY_PATH when using the default shared runtime library.
5633 Added documentation for both gcov and gprof.
5635 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
5636 messages that are not suppressed when clients are compiled.
5637 Add documentation of s-pooglo s-pooloc
5638 Document the new GNAT.Serial_Communications API.
5639 Add documentation for 'Old attribute
5640 Add description of pragma Optimize_Alignment
5642 * ug_words: Add entries for -gnatw.w -gnatw.W
5644 * usage.adb: Add line for -gnatw.w (warn on warnings off)
5646 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
5649 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
5651 * decl.c (maybe_pad_type): Avoid padding an integral type when
5652 bumping its alignment is sufficient.
5654 2008-03-25 Arnaud Charlet <charlet@adacore.com>
5656 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
5657 Fix wrong formatting (lines too long)
5659 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5661 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
5662 a-calend-vms.adb, a-calend.adb, a-calend.ads,
5663 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
5664 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
5665 a-cohama.ads, a-comlin.ads, a-coorse.adb,
5666 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
5667 a-except-2005.ads, a-except.adb, a-except.ads,
5668 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
5669 a-exextr.adb, a-filico.ads, a-finali.ads,
5670 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
5671 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
5672 a-sequio.ads, a-strbou.ads, a-strfix.adb,
5673 checks.adb, exp_ch3.adb, exp_ch4.adb,
5674 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
5675 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
5676 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
5677 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
5678 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
5680 2008-03-24 Robert Dewar <dewar@adacore.com>
5682 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
5683 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
5684 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
5685 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
5686 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
5687 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5688 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5689 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
5690 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
5691 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
5692 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
5693 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
5694 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
5695 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
5696 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
5697 double spaced if it fits on one line and otherwise single spaced.
5699 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5701 PR documentation/15479
5702 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
5703 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
5704 (doc/gnat_ugn.info): Renamed from ...
5705 (doc/gnat_ugn_unw.info): ... this.
5706 (doc/gnat_ugn.dvi): Renamed from ...
5707 (doc/gnat_ugn_unw.dvi): ... this.
5708 (doc/gnat_ugn.pdf): Renamed from ...
5709 (doc/gnat_ugn_unw.pdf): ... this.
5710 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
5712 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
5713 unconditionally to gnat_ugn.info. Fix cross references to the
5714 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
5715 and GNU make manuals to be proper texinfo links.
5716 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
5718 2008-03-21 Olivier Hainque <hainque@adacore.com>
5720 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
5721 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
5723 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
5725 * trans.c (addressable_p): Add notes on addressability issues.
5727 2008-03-21 Olivier Hainque <hainque@adacore.com>
5728 Ed Schonberg <schonberg@adacore.com>
5730 * trans.c (addressable_p): Accept COND_EXPR when both arms
5732 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
5733 (call_to_gnu): Do not use name reference in the error message
5734 for a misaligned by_reference_parameter. The actual may be a
5737 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
5739 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
5741 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5743 * gnat_rm.texi (Implementation Defined Characteristics)
5744 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
5746 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
5747 (Switches for gnatchop, Installing a library): Likewise.
5749 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
5751 * trans.c (emit_range_check): Do not emit the check if the base type
5752 of the expression is the type against which its range must be checked.
5754 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5756 * decl.c (maybe_pad_type): Use value_factor_p.
5758 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5760 * lang.opt (nostdlib): Move around.
5761 * misc.c (gnat_handle_option): Fix formatting.
5762 (gnat_dwarf_name): Move around.
5763 * trans.c (Case_Statement_to_gnu): Fix formatting.
5764 (gnat_to_gnu): Likewise.
5765 * utils.c (aggregate_type_contains_array_p): Likewise.
5766 (create_subprog_decl): Likewise.
5768 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5770 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
5771 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
5773 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5775 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
5776 BIGGEST_ALIGNMENT when capping the alignment of records with
5777 strict alignment and size clause.
5779 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5781 * lang-specs.h: Pass -gnatwa if -Wall is passed.
5782 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
5783 and -Wuninitialized.
5784 (gnat_post_options): Clear warn_unused_parameter.
5786 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5788 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
5789 aligned bit-fields, bumping the alignment of the record type if deemed
5791 (value_factor_p): Return false instead of 0.
5793 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5795 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
5796 for scalar types with small alignment.
5798 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5800 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
5801 from that of the front-end's end label.
5802 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
5803 from that of the loop label.
5805 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5807 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
5808 comment for the packed array type case.
5809 * utils.c (build_template): Use a loop to strip padding or
5810 containing records for justified modular types.
5812 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5814 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
5815 large alignments specified for types.
5816 (validate_alignment): Minor cleanup.
5818 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5820 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
5821 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
5822 the component for packing, if possible, as well as if a component
5823 size clause is specified.
5824 <E_Record_Subtype>: For an array type used to implement a packed
5825 array, get the component type from the original array type.
5826 Try to get a smaller form of the component for packing, if possible,
5827 as well as if a component size clause is specified.
5828 (round_up_to_align): New function.
5829 (make_packable_type): Add in_record parameter.
5830 For a padding record, preserve the size. If not in_record and the
5831 size is too large for an integral mode, attempt to shrink the size
5832 by lowering the alignment.
5833 Ditch the padding bits of the last component.
5834 Compute sizes and mode manually, and propagate the RM size.
5835 Return a BLKmode record type if its size has shrunk.
5836 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
5837 Use Original_Array_Type to retrieve the type in case of an error.
5838 Adjust call to make_packable_type.
5839 (gnat_to_gnu_field): Likewise.
5840 (concat_id_with_name): Minor tweak.
5841 * trans.c (larger_record_type_p): New predicate.
5842 (call_to_gnu): Compute the nominal type of the object only if the
5843 parameter is by-reference. Do the conversion actual type -> nominal
5844 type if the nominal type is a larger record.
5845 (gnat_to_gnu): Do not require integral modes on the source type to
5846 avoid the conversion for types with identical names.
5847 (addressable_p): Add gnu_type parameter. If it is specified, do not
5848 return true if the expression is not addressable in gnu_type.
5849 Adjust recursive calls.
5850 * utils.c (finish_record_type): Remove dead code.
5852 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
5855 * decl.c (maybe_pad_type): Avoid padding an integral type when
5856 bumping its alignment is sufficient.
5858 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5860 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
5861 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
5863 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
5864 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
5865 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
5866 code output strings.
5867 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
5868 system-vms_64.ads: Fix typos in ada source code comments.
5869 * sinfo-cn.adb: Remove incomplete sentence.
5871 PR documentation/15479
5872 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
5874 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
5877 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
5879 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
5882 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
5883 that underlying type is present.
5885 2008-02-26 Tom Tromey <tromey@redhat.com>
5887 * misc.c (internal_error_function): Remove test of
5888 USE_MAPPED_LOCATION.
5889 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
5890 (Sloc_to_locus): Remove old location code.
5892 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5894 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
5895 `i.e.' by adding comma or `@:' as appropriate.
5896 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
5897 plain characters `C', use `@samp{C}'.
5898 * gnat_ugn.texi (File Naming Rules, About gnatkr)
5899 (Krunching Method): Likewise.
5901 * gnat_ugn.texi (Conventions): List environment variables and
5902 metasyntactic variables.
5903 (Compiling Programs): Fix notation of metasyntactic variables.
5904 Add @file where appropriate. Use @file for file extensions,
5906 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
5907 instead of @file, @env instead of @code.
5909 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5911 PR documentation/15479
5912 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
5913 and `...' with `@dots{}' or `@enddots{}'.
5915 PR documentation/15479
5916 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
5917 use @command instead of @code, @option instead of @samp or @code,
5918 @code instead of @var, @samp instead of @file.
5920 PR documentation/15479
5921 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
5922 in Makefile rules, by using `&&' rather than `;'.
5924 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5926 PR documentation/15479
5927 * gnat_ugn.texi: In non-code, avoid space before colon.
5928 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
5929 (Examples of gnatxref Usage): Use @command{vi} instead of
5931 (Character Set Control): Do not use @code for UTF-8.
5932 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
5934 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
5936 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
5938 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
5941 * env.c: Add __rtems__ to if defined.
5942 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
5943 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
5944 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
5945 pragma Convention as required.
5946 * gsocket.h: Make compile in and out of RTS.
5947 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
5948 Use g-soccon-rtems.ads.
5949 * g-soccon-rtems.ads, system-rtems.ads: New files.
5951 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5954 * Make-lang.in (gnat1): Add $(GMPLIBS).
5956 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
5958 * decl.c (components_to_record): Improve comment.
5960 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
5962 * decl.c (components_to_record): Do not reuse the empty union type
5963 if there is a representation clause on the record.
5964 * trans.c (addressable_p): Return true for INTEGER_CST.
5966 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
5968 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
5969 in pointer arithmetics.
5970 * utils2.c (build_allocator): Likewise.
5972 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
5974 * utils.c (build_function_stub): Properly build the call expression.
5976 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
5978 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
5979 before converting the expression to the type of the object.
5980 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
5981 Stabilize constructors for special wrapping types.
5983 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
5985 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
5986 when necessary. Merge some conditional statements. Update comments.
5987 Rename unchecked_convert_p local variable to suppress_type_conversion.
5988 Do not suppress conversions in the In case.
5989 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
5990 into account on non strict-alignment platforms.
5992 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
5994 * utils.c (aggregate_type_contains_array_p): New predicate.
5995 (create_field_decl): In a packed record, force byte alignment
5996 for fields without specified position that contain an array.
5998 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
6000 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
6002 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
6005 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
6007 (bit_field): New packed boolean type used by cpu_set_t.
6008 (cpu_set_t): New type corresponding to the C type with
6009 the same name. Note that on the Ada side we use a bit
6010 field array for the affinity mask. There is not need
6011 for the C macro for setting individual bit.
6012 (pthread_setaffinity_np): New imported routine.
6014 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
6017 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
6018 on OpenBSD as is done on other BSD systems.
6021 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
6022 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
6026 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
6030 * init.c (__gnat_error_handler, __gnat_install_handler,
6031 __gnat_init_float): Define for OpenBSD.
6033 * initialize.c (__gnat_initialize): Define for OpenBSD.
6035 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
6038 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
6039 instead of mktemp() or tmpnam() on NetBSD.
6041 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
6043 * trans.c (call_to_gnu): Make the temporary for non-addressable
6044 In parameters passed by reference.
6045 (addressable_p): Return true for STRING_CST and CALL_EXPR.
6047 2007-12-19 Robert Dewar <dewar@adacore.com>
6049 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
6050 Add pragma Warnings (Off) for unassigned IN OUT arguments
6052 * sem_warn.adb (Output_Reference): Suppress messages for internal names
6053 (Check_References): Extensive changes to tune up warnings
6054 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
6055 (Has_Pragma_Unmodifed_Check_Spec): New function
6056 (Check_References): Implement pragma Unmodified
6057 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
6059 * par-prag.adb: Dummy entry for pragma Unmodified
6061 * sem_prag.adb: Implement pragma Unmodified
6063 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
6064 (Proc_Next_Component_Or_Discriminant): Fix typo.
6067 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
6069 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
6070 because the former already takes care of discarding the result.
6071 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
6074 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
6076 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
6078 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
6079 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
6080 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
6081 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
6082 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
6083 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
6084 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
6085 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
6086 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
6087 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
6088 (Dynamic_Trampolines_Used): Delete.
6090 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
6091 Turn on stack probing mechanism on LynxOS.
6093 2007-12-19 Bob Duff <duff@adacore.com>
6095 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
6096 the resulting tail recursion by hand. This prevents running out of
6097 memory on deeply nested concatenations, since Field2 is where the left
6098 operand of concatenations is stored.
6099 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
6100 clarify that it can only return OK or Abandon.
6102 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
6103 operand by iteration, in order to avoid running out of memory on
6104 deeply-nested concatenations. Use the Parent pointer to get back up the
6106 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
6107 Resolve_Op_Concat_Rest): New procedures split out of
6108 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
6111 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
6112 Traverse_Func, because the former already takes care of discarding the
6115 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
6116 because the former already takes care of discarding the result.
6117 (Remove_Warning_Messages): Use appropriate subtype for Status and
6120 2007-12-19 Ed Schonberg <schonberg@adacore.com>
6122 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
6123 discriminants forces expansion of the aggregate into assignments.
6124 (Init_Record_Controller): If the type of the aggregate is untagged and
6125 is not inherently limited, the record controller is not limited either.
6127 2007-12-19 Robert Dewar <dewar@adacore.com>
6129 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
6130 handling compile time known size of record or array (case of front end
6131 layout active, e.g. in GNAAMP).
6133 2007-12-19 Javier Miranda <miranda@adacore.com>
6135 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
6136 that forces the construction of static dispatch tables in case of
6139 2007-12-19 Robert Dewar <dewar@adacore.com>
6141 * exp_ch9.adb (Null_Statements): Moved to library level
6142 (Trivial_Accept_OK): New function
6143 (Expand_Accept_Declaration): Use Trivial_Accept_OK
6144 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
6146 2007-12-19 Robert Dewar <dewar@adacore.com>
6148 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
6149 in complex case where array is Volatile.
6151 2007-12-19 Ed Schonberg <schonberg@adacore.com>
6153 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
6154 properly the Ada2005 rules concerning when the current instance of a
6155 record type is aliased.
6157 2007-12-19 Ed Schonberg <schonberg@adacore.com>
6159 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
6161 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
6163 (P_Variant_Part): Cleaner patch for parenthesized discriminant
6165 2007-12-19 Vincent Celier <celier@adacore.com>
6167 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
6168 package is not known
6170 * prj-attr.ads (Unknown_Package): New constant
6171 Do not crash when an unknown package is in several projects
6173 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
6176 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
6177 existing package Language_Processing.
6179 2007-12-19 Ed Schonberg <schonberg@adacore.com>
6180 Gary Dismukes <dismukes@adacore.com>
6181 Samuel Tardieu <sam@rfc1149.net>
6183 PR ada/15803, ada/15805
6184 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
6185 illegal access subtypes when there is a constrained partial view.
6186 (Check_For_Premature_Usage): New procedure inside
6187 Access_Subprogram_Declaration for checking that an access-to-subprogram
6188 type doesn't reference its own name within any formal parameters or
6189 result type (including within nested anonymous access types).
6190 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
6191 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
6192 context is an access_to_variable, the expression cannot be an
6195 2007-12-19 Bob Duff <duff@adacore.com>
6197 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
6198 (Analyze_Concatenation): Use iteration instead of recursion in order
6199 to avoid running out of stack space for deeply nested concatenations.
6201 2007-12-19 Ed Schonberg <schonberg@adacore.com>
6202 Gary Dismukes <dismukes@adacore.com>
6204 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
6205 whose renamed entity is a subprogram that requires overriding.
6206 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
6207 issuing an error for premature usage and issue a message that says
6208 'type' rather than 'object'.
6210 2007-12-19 Gary Dismukes <dismukes@adacore.com>
6213 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
6214 presence of a statically tagged operand (Present (Static_Tag)) with
6215 test for Indeterm_Ancestor_Call when determining whether to propagate
6216 the static tag to tag-indeterminate operands (which forces dispatching
6218 (Check_Controlling_Formals): Ada2005, access parameters can have
6220 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
6221 not insert subprogram in list of primitive operations if already there.
6223 2007-12-19 Tristan Gingold <gingold@adacore.com>
6225 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
6228 2007-12-19 Thomas Quinot <quinot@adacore.com>
6230 Part of PR ada/33688
6231 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
6232 datagram info on Linux.
6234 2007-12-19 Vincent Celier <celier@adacore.com>
6236 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
6237 that the source path name is always found in the dependencies.
6239 2007-12-19 Robert Dewar <dewar@adacore.com>
6241 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
6242 Fix name of Wide_Wide_Latin_1/9 file names
6243 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
6244 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
6245 Add missing documentation for Ada.Command_Line.Response_File
6246 Update list of warning letters for Warnings pragma
6247 Add documentation for pragma Unmodified
6249 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
6251 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
6253 2007-12-17 Arnaud Charlet <charlet@adacore.com>
6255 * s-vxwork-alpha.ads: Removed, no longer used.
6257 2007-12-15 Jakub Jelinek <jakub@redhat.com>
6259 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
6261 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
6264 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
6265 mlib-tgt-specific.adb.
6267 2007-12-13 Bob Duff <duff@adacore.com>
6269 * trans.c (Attribute_to_gnu): Check for violations of the
6270 No_Implicit_Dynamic_Code restriction. This checking used to be done in
6271 the front end, but is moved here so we can make it more accurate.
6273 2007-12-13 Pascal Obry <obry@adacore.com>
6275 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
6276 version is provided for older GNU/Linux distribution not
6277 supporting thread affinity sets.
6279 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
6281 (bit_field): New packed boolean type used by cpu_set_t.
6282 (cpu_set_t): New type corresponding to the C type with
6283 the same name. Note that on the Ada side we use a bit
6284 field array for the affinity mask. There is not need
6285 for the C macro for setting individual bit.
6286 (pthread_setaffinity_np): New imported routine.
6288 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
6290 (Create_Task): Set the processor affinity mask if information
6293 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
6295 2007-12-13 Robert Dewar <dewar@adacore.com>
6297 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6298 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
6299 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
6300 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
6301 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
6302 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
6303 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
6304 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
6305 for subprogram pointers.
6307 * g-ctrl_c.adb: New file.
6309 * g-ctrl_c.ads (Install_Handler): New body.
6311 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
6312 instead of obsolete function Is_Always_Inlined.
6313 (Freeze_Entity): check for tagged type in imported C subprogram
6314 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
6315 (Freeze_Entity): check for convention Ada subprogram pointer in
6316 imported C subprogram.
6317 (Freeze_Fixed_Point_Type): In the case of a base type where the low
6318 bound would be chopped off and go from negative to zero, force
6319 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
6320 bound) so that the size computation for the base type will take
6321 negative values into account.
6323 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
6324 Bob Duff <duff@adacore.com>
6325 Tristan Gingold <gingold@adacore.com>
6327 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
6328 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
6329 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
6330 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
6331 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
6332 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
6333 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
6334 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
6335 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
6336 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
6337 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
6338 (Always_Compatible_Rep): New flag to control trampolines globally.
6339 (Dynamic_Trampolines_Used): New flag for implementing the
6340 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
6341 and not yet set correctly for some targets).
6343 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
6344 Simply indirectly call s-stchop when a task is created.
6347 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
6348 appears as an argument (entries A) in an ALI file.
6350 * fe.h (Stack_Check_Limits): Declare new target parameter.
6351 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
6353 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
6354 This variable is declared in C to be sure not subject to elaboration
6356 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
6359 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
6360 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
6362 * s-stchop.ads: Add comments.
6364 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
6365 limit method of stack checking.
6367 * s-stchop-limit.ads: New file.
6369 2007-12-13 Robert Dewar <dewar@adacore.com>
6371 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
6372 a-cihama.adb, g-awk.adb,
6373 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
6376 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
6378 * sem.adb: Update handling of assigned value/unreferenced warnings
6380 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
6382 * lib-xref.ads: Improve documentation for k xref type
6385 Update handling of assigned value/unreferenced warnings
6386 (Generate_Reference): Warning for reference to entity for which a
6387 pragma Unreferenced has been given should be unconditional.
6388 If the entity is a discriminal, mark the original
6389 discriminant as referenced.
6391 * sem_warn.ads, sem_warn.adb
6392 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
6393 no entities referenced in package
6394 (Check_One_Unit): Don't give message about no entities referenced in
6395 a package if a pragma Unreferenced has appeared.
6396 Handle new warning flag -gnatw.a/-gnatw.A
6397 Update handling of assigned value/unreferenced warnings
6399 * atree.h: Add flags up to Flag247
6400 (Flag231): New macro.
6402 2007-12-13 Jose Ruiz <ruiz@adacore.com>
6404 * adaint.h: (__gnat_plist_init): Not defined for RTX.
6406 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
6409 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
6410 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
6411 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
6412 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
6415 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
6417 * sysdep.c (winflush_function for RTX): Procedure that does nothing
6418 since we only have problems with Windows 95/98, which are not
6420 (__gnat_ttyname): Return the empty string on Nucleus, just as
6423 2007-12-13 Robert Dewar <dewar@adacore.com>
6425 * a-textio.adb, a-textio.ads:
6426 Extensive changes to private part for wide character encoding
6428 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
6429 (Look_Ahead): Fix mishandling of encoded sequences
6430 Move declaration of Wch_Con to private part (should not be visible)
6432 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
6433 UTF-8. Probably this is never used, but if it is, brackets is
6436 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
6437 setting wide character encoding for no main program case and when
6438 encoding is specified using -W?
6439 Initialize stack limit of environment task if stack limit method of
6440 stack checking is enabled.
6441 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
6442 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
6443 (Get_Main_Unit_Name): New function.
6444 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
6445 (Gen_Output_File): Set Bind_Main_Program to True for .NET
6447 * bindusg.adb: Add line for -Wx switch
6449 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
6451 Add new useful constant WC_Longest_Sequences
6453 * switch-b.adb: Clean up handling of -Wx switch
6454 For -gnatWx, set Wide_Character_Encoding_Method_Specified
6456 * switch-c.adb: -gnatg activates warning on assertion errors
6457 For -gnatWx, set Wide_Character_Encoding_Method_Specified
6459 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
6461 2007-12-13 Robert Dewar <dewar@adacore.com>
6462 Ed Schonberg <schonberg@adacore.com>
6464 * a-ngcoty.adb: New pragma Fast_Math
6466 * opt.adb: New pragma Fast_Math
6469 Add Implemented_By_Entry to the list of pragmas which do not require any
6471 (Favor_Top_Level): New pragma.
6472 New pragma Fast_Math
6474 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
6475 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6476 Expand_Allocator_Expression): Take into account VM_Target
6477 (Expand_Attribute, case 'Identity): Handle properly the case where
6478 the prefix is a task interface.
6479 New pragma Fast_Math
6481 * par.adb (Next_Token_Is): New function
6482 (P_Pragma): Add Skipping parameter
6483 (U_Left_Paren): New procedure
6484 (U_Right_Paren): New procedure
6485 New pragma Fast_Math
6487 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
6489 New pragma Fast_Math
6491 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
6492 Implemented_By_Entry.
6493 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
6494 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
6495 items, since it can apply to more than one overloadable entity. Set
6496 new flag Has_Pragma_Inline_Always for Inline_Always case.
6497 (Analyze_Pragma, case Complex_Representation): Improve error message.
6498 (Analyze_Pragma, case Assert): When assertions are disabled build the
6499 rewritten code with Sloc of expression rather than pragma, so new
6500 warning about failing is not deleted.
6501 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
6502 protected types and update error message to reflect that. Test whether
6503 the protected type is allowed for the pragma (an error is issued if the
6504 type has any entries, or components that do not have preelaborable
6506 New pragma Fast_Math
6507 (Analyze_Pragma, case No_Return): Handle generic instance
6509 * snames.h, snames.ads, snames.adb:
6510 Add new predefined name for interface primitive _Disp_Requeue.
6511 New pragma Fast_Math
6513 * a-tags.ads, a-tags.adb: New calling sequence for
6514 String_To_Wide_[Wide_]String
6515 (Secondary_Tag): New subprogram.
6517 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
6519 New calling sequence for String_To_Wide_[Wide_]String
6520 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
6521 the use of the secondary stack for image routines.
6523 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
6524 calling sequence for String_To_Wide_[Wide_]String
6526 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
6528 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
6529 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6531 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
6532 (P_Formal_Part): Use Skipping parameter in P_Pragma call
6533 to improve error recovery
6535 * par-util.adb (Next_Token_Is): New function
6536 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
6538 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
6539 semicolon if missing
6540 (P_Pragma): Implement new Skipping parameter
6541 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6542 Fix location of flag for unrecognized pragma message
6544 * par-tchk.adb (U_Left_Paren): New procedure
6545 (U_Right_Paren): New procedure
6547 2007-12-13 Geert Bosch <bosch@adacore.com>
6550 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
6551 the second or later Scaled_Divide would omit leading zeroes,
6552 resulting in too few digits produced and a Layout_Error as result.
6553 (Put): Initialize Pos.
6555 2007-12-13 Robert Dewar <dewar@adacore.com>
6557 atree.ads, atree.adb (Flag231..Flag247): New functions
6558 (Set_Flag231..Set_Flag247): New procedures
6559 (Basic_Set_Convention): Rename Set_Convention to be
6560 Basic_Set_Convention
6561 (Nkind_In): New functions
6562 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6564 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
6566 of obsolete function Is_Always_Inlined
6567 (Register_Predefined_DT_Entry): Initialize slots of the second
6568 secondary dispatch table.
6569 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6570 (Expand_N_Function_Call): Remove special provision for stack checking.
6572 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
6573 Include _Disp_Requeue in the list of predefined operations.
6574 (Find_Interface_ADT): Modified to fulfill the new specification.
6575 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6577 * par-ch4.adb, nlists.ads, nlists.adb:
6578 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6580 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
6581 Fix location of flag for unrecognized pragma message
6583 * sem_ch7.adb: Use Nkind_In
6585 2007-12-13 Vincent Celier <celier@adacore.com>
6588 Indicate what flags are used by the Project Manager, gprbuild and
6590 (Opt.Follow_Links_For_Dirs): New flag
6591 (Warn_On_Assertion_Failure): New flag
6592 (Wide_Character_Encoding_Method_Specified): New flag
6593 (Suppress_All_Inlining): New switch set by -fno-inline
6594 (Real_VMS_Target): New flag
6595 New pragma Fast_Math
6597 2007-12-13 Robert Dewar <dewar@adacore.com>
6599 * back_end.adb: Recognize -fno-inline
6601 2007-12-13 Robert Dewar <dewar@adacore.com>
6603 * checks.adb: Fix optimization problem with short-circuited form
6605 2007-12-13 Bob Duff <duff@adacore.com>
6607 * clean.adb (Usage): Add line for -aP
6608 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
6609 with a parameter "procedure Usage", instead of passing a pointer to a
6610 procedure. This is to eliminate trampolines (since the Usage procedure
6611 is often nested in a main procedure, and it would be inconvenient to
6614 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
6615 to be generic, with a parameter "procedure Callback (...)", instead of
6616 passing a pointer to a procedure. This is to eliminate trampolines
6617 (since the Callback procedure is usually nested).
6619 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
6620 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
6621 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
6623 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
6624 Use the generic Heap_Sort_G instead of Heap_Sort_A.
6626 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6628 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
6629 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
6630 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
6631 (Renamed_In_Spec): New flag
6632 (Has_Pragma_Inline_Always): New flag
6633 Add missing doc for pragma Obsolescent_Warning
6634 Add missing doc for 17 additional unused flags (230-247)
6635 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
6636 Alphabetize with clauses.
6637 Separate Is_Thunk and Has_Thunks flags
6638 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
6639 (Related_Interface): Renamed to Related_Type.
6640 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
6641 (Set_Is_Flag): Restrict the assertion.
6643 2007-12-13 Vincent Celier <celier@adacore.com>
6645 * errout.adb (Output_Source_Line): Do not keep a trailing space after
6646 the source line number if the source line is empty.
6648 2007-12-13 Geert Bosch <bosch@adacore.com>
6650 * eval_fat.adb (Decompose_Int): Handle argument of zero.
6651 (Compose): Remove special casing of zero.
6652 (Exponent): Likewise.
6653 (Fraction): Likewise.
6654 (Machine): Likewise.
6655 (Decompose): Update comment.
6657 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6659 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
6660 limited ancestor part, initialize controllers of enclosing record
6661 before expanding ancestor aggregate.
6662 (Gen_Assign): If a component of the aggregate is box-initialized, add
6663 code to call Initialize if the component is controlled, and explicit
6664 assignment of null if the component is an access type.
6666 Handle properly aggregates for limited types that appear in object
6667 declarations when the aggregate contains controlled values such as
6669 When expanding limited aggregates into individual components, do not
6670 call Adjust on controlled components that are limited.
6672 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6674 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
6676 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6678 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
6679 predefined primitive _Disp_Requeue.
6680 (Make_Predefined_Primitive_Specs): Create the spec for predefined
6681 primitive _Disp_Requeue.
6682 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
6683 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
6684 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
6685 an interface type. In case of limited interfaces we now declare all the
6686 predefined primitives associated with synchronized interfaces as
6688 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
6690 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
6691 tagged type is an interface type and there is no user-defined equality
6693 Add also bodies of predefined primitives associated with synchronized
6695 (Freeze_Record_Type): Do not build bodies of predefined primitives of
6696 interface types because they are now defined abstract.
6697 Add missing documentation.
6698 (Expand_Record_Controller): Update occurrence of Related_Interface
6700 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
6701 (Expand_N_Object_Declaration): Take into account VM_Target when handling
6702 class wide interface object declaration.
6703 (Expand_Previous_Access_Type): Do not create a duplicate master entity
6704 if the access type already has one.
6705 (Expand_N_Object_Declaration): Defend against attempt to validity check
6706 generic types. Noticed for -gnatVcf specified with previous errors.
6708 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6710 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6711 Expand_Allocator_Expression): Take into account VM_Target
6713 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
6714 secondary stack when VM_Target /= No_VM
6716 2007-12-13 Javier Miranda <miranda@adacore.com>
6717 Ed Schonberg <schonberg@adacore.com>
6719 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
6720 Is_Complation_Unit by Is_Library_Level_Entity in the code
6721 that decides if the static dispatch tables need to be built.
6722 (Wrap_Transient_Declaration): Do not generate a finalization call if
6723 this is a renaming declaration and the renamed object is a component
6724 of a controlled type.
6726 2007-12-13 Gary Dismukes <dismukes@adacore.com>
6728 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
6729 In the case where the renamed subprogram is a dereference, call
6730 Force_Evaluation on the prefix.
6732 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6733 Ed Schonberg <schonberg@adacore.com>
6735 * exp_ch9.adb (Expand_N_Asynchronous_Select,
6736 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
6737 comment reformatting.
6738 (Set_Privals): Inherit aliased flag from formal. From code reading.
6739 (Build_Simple_Entry_Call): Out parameters of an access type are passed
6740 by copy and initialized from the actual. This includes entry parameters.
6741 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
6742 and Ada 2005 models of requeue.
6743 (Null_Statements): Still connsider do-end block null if it contains
6744 Unreferenced and Warnings pragmas.
6745 (Expand_N_Accept_Statement): Do not optimize away null do end if
6746 dispatching policy is other than defaulted.
6747 (Expand_N_Timed_Entry_Call): When the triggering statement is a
6748 dispatching call, manually analyze the delay statement.
6749 (Find_Parameter_Type): Move subprogram to Sem_Util.
6751 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6752 Javier Miranda <miranda@adacore.com>
6754 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
6755 _Disp_Requeue occupies dispatch table slot number 15. Move
6756 _Disp_Timed_Select to slot 16.
6757 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
6758 generate the spec and body of _Disp_Reqeueue.
6759 (Make_DT): Build and initialize the second dispatch table.
6760 Handle initialization of RC_Offset when the parent
6761 is a private type with variable size components.
6762 (Make_Secondary_DT): Complete documentation. Add support to
6763 initialize the second dispatch table.
6764 (Make_Tags): Generate the tag of the second dispatch table.
6765 (Register_Primitive): Add support to register primitives in the
6766 second dispatch table.
6768 2007-12-13 Pascal Obry <obry@adacore.com>
6770 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
6771 Windows. This signal is used by gnatmake to kill child processes for
6774 2007-12-13 Javier Miranda <miranda@adacore.com>
6776 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
6777 support for generic dispatching constructor calls in which we need to
6778 locate the tag of a secondary dispatch table associated with an
6779 interface type to properly dispatch the call.
6780 (Expand_N_Attribute_Reference [case Address],
6781 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
6782 handling of VM targets.
6784 2007-12-13 Robert Dewar <dewar@adacore.com>
6785 Ed Schonberg <schonberg@adacore.com>
6787 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
6790 * ug_words: Add entries for -gnatw.a -gnatw.A
6792 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
6793 literal is a subtype with non-static constraints, use the base type of
6794 the context as the base of the string subtype, to prevent type
6796 (Resolve_Actuals): If the actual is an entity name, generate a
6797 reference before the actual is resolved and expanded, to prevent
6798 spurious warnings on formals of enclosing protected operations.
6799 (Analyze_Overloaded_Selected_Component): If type of prefix if
6800 class-wide, use visible components of base type.
6801 (Resolve_Selected_Component): Ditto.
6802 (Resolve_Short_Circuit): Detect case of pragma Assert argument
6803 evaluating to False, and issue warning message.
6805 * usage.adb: Add lines for -gnatw.a and -gnatw.A
6807 2007-12-13 Emmanuel Briot <briot@adacore.com>
6809 * g-calend.ads (No_Time): New constant, to represent an uninitialized
6812 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
6814 (Month_Name_To_Number): New subprogram
6816 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
6817 letter to upper-case.
6819 2007-12-13 Robert Dewar <dewar@adacore.com>
6820 Ed Schonberg <schonberg@adacore.com>
6822 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
6824 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
6825 context is a limited view, use non-limited view when available. If the
6826 non-limited view is an unconstrained array, this enforces consistency
6827 requirements in 3.10.2 (27).
6828 (Layout_Type): For an access type whose designated type is a limited
6829 view, examine its declaration to determine if it is an unconstrained
6830 array, and size the access type accordingly.
6831 (Layout_Type): Do not force 32-bits for convention c subprogram
6832 pointers in -gnatdm mode, only if real vms target.
6834 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
6835 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6836 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
6837 violations of the No_Implicit_Dynamic_Code restriction.
6838 (Resolve_Attribute, case 'Access): If designated type of context is a
6839 limited view, use non-limited view when available. If the non-limited
6840 view is an unconstrained array, this enforces consistency requirements
6842 (Layout_Type): For an access type whose designated type is a limited
6843 view, examine its declaration to determine if it is an unconstrained
6844 array, and size the access type accordingly.
6846 2007-12-13 Vincent Celier <celier@adacore.com>
6848 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
6849 object directory of main project does not exist.
6850 On VMS, correctly set then environment variable for the source
6853 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
6855 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
6856 set to True this procedure will create the value of type REG_EXPAND_SZ.
6857 It was only possible to create REG_SZ values before.
6859 2007-12-13 Robert Dewar <dewar@adacore.com>
6861 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
6862 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
6863 namet-sp.adb, namet-sp.ads: New files.
6865 * g-speche.adb: Use generic routine in g-spchge
6867 * s-wchcnv.ads, s-wchcnv.adb:
6868 Minor code cleanup (make formal type consistent with spec)
6870 * namet.adb: Update comments.
6872 * par-endh.adb (Evaluate_End_Entry): Use new
6873 Namet.Sp.Is_Bad_Spelling_Of function
6875 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
6877 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
6878 ancestor is an access type initialized with a box, set its type
6879 explicitly, for use in subsequent expansion.
6880 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
6883 2007-12-13 Robert Dewar <dewar@adacore.com>
6885 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
6888 2007-12-13 Robert Dewar <dewar@adacore.com>
6890 * inline.adb (Back_End_Cannot_Inline): Use new flag
6891 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6893 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
6894 Has_Pragma_Inline_Always instead.
6895 of obsolete function Is_Always_Inlined
6896 (Build_Body_To_Inline): Same change
6897 (Cannot_Inline): Same change
6898 Do not give warning on exception raise in No_Return function
6900 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
6901 component has two inconsistent component clauses in the same record
6902 representation clause, favor the message that complains about
6903 duplication rather than inconsistency.
6905 (Record_Representation_Clause): Do not warn on missing component
6906 clauses for inherited components of a type extension.
6907 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
6908 an overloadable item if it is a pragma that can apply to multiple
6909 overloadable entities (e.g. Inline) because a pragma cannot be on
6910 more than one chain at a time.
6911 (Validate_Unchecked_Conversion): Add code to warn on unchecked
6912 conversion where one of the operands is Ada.Calendar.Time.
6913 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
6914 For now, ignore Component_Size clause on VM targets, as done for
6917 2007-12-13 Emmanuel Briot <briot@adacore.com>
6918 Vincent Celier <celier@adacore.com>
6920 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
6922 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
6924 (Hash): Move instantiation of System.HTable.Hash from spec to body
6925 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
6926 systems, since we do not need to recompute the Name_Id for the canonical
6928 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6929 as a parameter. This parameter is in fact always "ada" in all calls, and
6930 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
6931 while loading a project with 40000 files
6933 * prj-attr.adb: Fix name of attribute Dependency_Driver
6934 Change the kind of indexing for attribute Root
6936 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
6937 variables already declared, in case constructions.
6939 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
6940 Current_Object_Path_File to No_Path.
6942 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
6943 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
6945 * prj-makr.adb: new parameter Current_Dir
6947 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
6948 Ada sources when language is not Ada.
6949 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
6950 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
6951 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
6952 (Locate_Directory): Always resolve links when computing Canonical_Path
6953 (Look_For_Sources): Make sure that Name_Buffer contains the file name
6954 in Source_Files before checking for the presence of a directory
6956 Optimize calls to Name_Find when on case sensitive systems.
6957 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6959 (Prj.Nmsc.Check): new parameter Current_Dir
6960 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
6961 cannot be empty and the spec suffix cannot be the same as the body or
6963 (Get_Unit): When a file name can be of several unit kinds (spec, body or
6964 subunit), always consider the longest suffix.
6965 (Check_Configuration): Do not issue an error if there is no compiler
6966 for a language. Just issue a warning and ignore the sources for the
6968 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
6970 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
6971 (Unit_Exceptions): New hash table
6972 (Check_Naming_Schemes): Check if a file that could be a unit because of
6973 the naming scheme is not in fact a source because there is an exception
6975 (Look_For_Sources): Put the unit exceptions in hash table
6977 (Get_Unit_Exceptions): Give initial value No_Source to local variable
6978 Other_Part to avoid exception when code is compiled with validity
6980 (Get_Sources_From_File): Check that there is no directory information
6982 (Look_For_Sources): Check that there is no directory information in the
6983 list of file names in Source_Files.
6984 (Look_For_Sources): In multi-language mode, do not allow exception file
6985 names that are excluded.
6986 (Excluded_Sources_Htable): New hash table
6987 (Search_Directories.Check_File): New procedure to simplify
6989 (Search_Directories): Do not consider excluded sources
6990 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
6992 (Get_Exceptions): Set component Lang_Kind of Source_Data
6993 (Get_Unit_Exceptions): Ditto
6994 (Search_Directories): Ditto
6996 * prj-pars.adb: new parameter Current_Dir
6998 * prj-part.ads, prj-part.adb:
6999 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
7000 (Opt.Follow_Links_For_Dirs): New flag
7001 (Project_Path_Name_Of): Cache information returned by this routine as
7002 Locate_Regular_File is a costly routine. The code to output a log
7003 information and the effective call to Locate_Regular_File is now
7004 factorized into a routine (code clean-up).
7005 (Parse, Parse_Single_Project): new parameter Current_Dir
7006 When main project file cannot be found, indicate in the error
7007 message the project path that was used to do the search.
7009 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
7010 (Prj.Proc.Process*): new parameter Current_Dir
7012 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
7014 2007-12-13 Bob Duff <duff@adacore.com>
7016 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
7017 procedure to be called from the back end to check the
7018 No_Implicit_Dynamic_Code restriction.
7020 2007-12-13 Arnaud Charlet <charlet@adacore.com>
7022 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
7023 Fixes another case where RTE_Available_Call was ignored instead of being
7027 * rtsfind.ads: Add new entries.
7029 2007-12-13 Robert Dewar <dewar@adacore.com>
7031 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
7032 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
7034 * scn.adb: Implement BOM recognition
7036 2007-12-13 Thomas Quinot <quinot@adacore.com>
7037 Ed Schonberg <schonberg@adacore.com>
7039 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
7040 subprogram body that acts as its own spec may not have a non-private
7041 WITH clause on a private sibling.
7042 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
7043 child unit is a renaming, create an implicit with_clause on that
7044 parent, and not on the unit it renames, to prevent visibility errors
7045 in the current unit.
7047 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7049 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
7050 renaming declaration, use the Slocs of the formal parameters from the
7051 declaration of the formal subprogram when creating the formal parameter
7052 entities in the renaming declaration.
7053 (Analyze_Formal_Type_Declaration): Change the placement of the error
7054 message concerning illegal known discriminants. It is now posted on the
7055 type rather than on the first discriminant. This change ensures early
7057 (Freeze_Subprogram_Body): If the generic subprogram is nested within
7058 the package body that contains the instance, do not generate an
7059 out-of-place freeze node for the enclosing package.
7060 (Collect_Previous_Instantiations): Ignore internal instantiations
7061 generated for formal packages.
7062 (Validate_Derived_Type_Instance): Add a check that when a formal
7063 derived type is Known_To_Have_Preelab_Init then the actual type must
7064 have preelaborable initialization, and issue an error when this
7065 condition is violated.
7067 2007-12-13 Robert Dewar <dewar@adacore.com>
7069 * s-imenne.adb, s-imenne.ads: New files.
7071 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
7072 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
7073 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
7074 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
7075 s-imgwch.ads: New calling sequence for Image routines to avoid sec
7078 2007-12-13 Javier Miranda <miranda@adacore.com>
7079 Ed Schonberg <schonberg@adacore.com>
7081 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
7082 generation of spurious error if parent is an interface type; caused
7083 because predefined primitive bodies will be generated later by
7085 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
7087 (Derive_Subprograms): Handle derivations of predefined primitives
7088 after all the user-defined primitives to ensure that they are
7089 found in proper order in instantiations.
7090 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
7091 of Related_Interface to Related_Type.
7092 (Record_Type_Declaration): Minor reordering of calls to decorate the
7093 Tag component because the entity must have set its Ekind attribute
7094 before setting its Is_Tag attribute.
7095 (Analyze_Subtype_Declaration): In the case of subtypes with
7096 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
7098 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7099 Ed Schonberg <schonberg@adacore.com>
7101 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
7102 statement to the list of contexts where a selected component with a
7103 concurrent tagged type prefix should yield a primitive operation.
7104 (Find_Primitive_Operation): Handle case of class-wide types.
7105 (Analyze_Overloaded_Selected_Component): If type of prefix is
7106 class-wide, use visible components of base type.
7107 (Resolve_Selected_Component): Ditto.
7108 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
7109 formal of a generic subprogram. find candidate interpretations by
7110 scanning the list of generic formal declarations.:
7111 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
7112 type from a limited_with_clause, and the full view is available, use it
7113 for subsequent semantic checks.
7114 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
7115 (Find_Primitive_Operation): New function.
7116 (Analyze_Overloaded_Selected_Component): insert explicit dereference
7117 only once if several interpretations of the prefix yield an access type.
7118 (Try_Object_Operation): Code and comment cleanup.
7119 (Analyze_Selected_Component): Reorder local variables. Minot comment and
7120 code reformatting. When the type of the prefix is tagged concurrent, a
7121 correct interpretation might be available in the primitive and
7122 class-wide operations of the type.
7124 2007-12-13 Robert Dewar <dewar@adacore.com>
7125 Ed Schonberg <schonberg@adacore.com>
7127 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
7128 renaming entry as subprogram using rename-as-body if subprogram spec
7130 (Use_One_Type): The clause is legal on an access type whose designated
7131 type has a limited view.
7132 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
7133 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
7134 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
7135 operation denoted by a selected component.
7136 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
7137 it can be an expression, possibly overloaded, that returns a task or
7140 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7141 Gary Dismukes <dismukes@adacore.com>
7143 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
7144 requeue statement is dispatching. Do not emit an error when the name is
7145 not an entry and the context is a dispatching select. Add code to
7146 perform subtype conformance between the formals of the current entry
7147 and those of the target interface primitive.
7148 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
7149 Timed_Entry_Call): Analyze the triggering statement as the first step of
7150 the processing. If this is a dispatching select, postpone the analysis
7151 of all select statements until the Expander transforms the select. This
7152 approach avoids generating duplicate identifiers after the Expander has
7153 replicated some of the select statements. In case the Expander is
7154 disabled, perform regular analysis.
7155 (Check_Triggering_Statement): New routine.
7156 (Analyze_Requeue): Exclude any interpretations that are not entries when
7157 checking overloaded names in a requeue. Also test type conformance for
7158 matching interpretations rather than requiring subtype conformance at
7159 that point to conform with the RM's resolution rule for requeues.
7161 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7163 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
7164 inherited operation is a defaulted tag-indeterminate call, and there is
7165 a statically tagged actual, use the static tag as a controlling actual
7166 for the defaulted actual.
7168 2007-12-13 Geert Bosch <bosch@adacore.com>
7170 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
7171 context, so do not call Check_Non_Static_Context.
7173 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7175 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
7176 whether formal E is an entity which may have parameters.
7178 2007-12-13 Bob Duff <duff@adacore.com>
7179 Javier Miranda <miranda@adacore.com>
7180 Robert Dewar <dewar@adacore.com>
7182 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
7183 (Set_Convention): New procedure to set the Convention flag, and in
7184 addition make sure the Favor_Top_Level flag is kept in sync (all
7185 foreign-language conventions require Favor_Top_Level = True).
7186 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
7188 (Collect_Interfaces_Info): Minor update to handle the two secondary
7189 dispatch tables. Update occurrence of Related_Interface to Related_Type.
7190 (Generate_Parent_Ref): Add parameter to specify entity to check
7191 (Is_Preelaborable_Expression): Allow the name of a discriminant to
7192 initialize a component of a type with preelaborable initialization.
7193 This includes the case of a discriminal used in such a context.
7194 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
7195 latest Ada 2005 rules about renaming and 'Access of
7196 discriminant-dependent components.
7197 (Check_Nested_Access): Add handling when there are no enclosing
7198 subprograms (e.g. case of a package body).
7199 (Find_Parameter_Type): Factor routine from several other compiler files.
7200 Remove routine from Find_Overridden_Synchronized_Primitive.
7202 2007-12-13 Thomas Quinot <quinot@adacore.com>
7204 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
7205 an invalid access to an uninitialized slot in the
7206 Source_File_Index_Table.
7208 2007-12-13 Thomas Quinot <quinot@adacore.com>
7210 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
7212 2007-12-13 Bob Duff <duff@adacore.com>
7214 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
7215 access-to-subprogram types in this package.
7217 2007-12-13 Olivier Hainque <hainque@adacore.com>
7219 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
7220 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
7221 Stack_Overlay_Address and document that we are using an internal
7223 (Byte_Size, Unsigned_32_Size): Remove, now useless.
7224 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
7225 consistently throughout the various implementation pieces.
7227 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
7228 overlay we are using to fill the stack area with patterns.
7229 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
7230 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
7231 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
7233 2007-12-13 Robert Dewar <dewar@adacore.com>
7235 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
7237 2007-12-13 Arnaud Charlet <charlet@adacore.com>
7240 (Create_Task): Take into account tasks created by foreign threads.
7241 Code clean up: use constants instead of hard coded values.
7243 2007-12-13 Robert Dewar <dewar@adacore.com>
7245 * styleg.adb (Check_Comment): More liberal rules for comment placement
7247 2007-12-13 Olivier Hainque <hainque@adacore.com>
7249 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
7250 of Procedure Value instead of Frame Pointer as the invocation
7251 identifier associated with the instruction pointer in each traceback
7254 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
7255 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
7256 Pointer as the invocation identifier passed to tbk$symbolize.
7258 * s-traent-vms.ads, s-traent-vms.adb
7259 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
7260 Procedure Value instead of Frame Pointer as the invocation identifier
7261 passed to tbk$symbolize.
7263 2007-12-13 Robert Dewar <dewar@adacore.com>
7265 * tbuild.ads, tbuild.adb:
7266 Fix location of flag for unrecognized pragma message
7268 2007-12-13 Robert Dewar <dewar@adacore.com>
7270 * treepr.ads, treepr.adb: (pl): implement use of positive value
7273 2007-12-13 Robert Dewar <dewar@adacore.com>
7275 * xeinfo.adb: Remove warnings
7276 * xnmake.adb: Remove warnings
7277 * xsinfo.adb: Remove warnings
7278 * xtreeprs.adb: Remove warnings
7279 * xsnames.adb: Remove warnings
7281 * a-ngcoar.adb: Fix typo.
7282 * s-interr.adb: Minor reformatting
7283 * env.c: Minor reformatting.
7284 * g-bytswa.adb: Minor reformatting.
7285 * g-rannum.ads: Minor documentation improvements
7286 * s-tasinf-mingw.adb: Minor header fix
7287 * a-clrefi.adb: Minor reformatting
7288 * g-sttsne.ads: Minor documentation improvement
7289 * g-sttsne-locking.ads: Minor documentation improvement
7290 * g-soliop-solaris.ads: Minor documentation improvement
7291 * g-soliop-mingw.ads: Minor documentation improvement
7292 * g-soliop.ads: Minor documentation improvement
7293 * exp_aggr.ads: Minor reformatting
7294 * debug.adb: Add documentation for the gprbuild debug flags
7295 * exp_ch2.adb: Use Nkind_In to simplify code throughout
7296 * exp_pakd.adb: Minor reformatting
7298 * g-altive.ads, g-alleve.adb: Remove assertions.
7299 Add comment about minor differences between targets regarding
7300 floating-point operations.
7302 * g-thread.adb: Remove pragma unreferenced.
7303 * lib.ads: Minor reformatting
7304 * par-ch9.adb: Minor reformatting of error messages
7305 * sem_case.adb: Minor reformatting
7306 * s-fileio.adb: Minor reformattinng
7307 * s-vmexta.ads: Minor typo
7309 Take into account 'Success' value as per new GNAT warning.
7311 2007-12-13 Vincent Celier <celier@adacore.com>
7313 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
7316 2007-12-13 Robert Dewar <dewar@adacore.com>
7317 Bob Duff <duff@adacore.com>
7319 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
7320 Document that suffixes may be terminations of each others
7321 Add doc for -gnatw.a and -gnatw.A
7322 Document gnatbind -Wx switch
7323 Document BOM recognition
7324 Document pragma Implemented_By_Entry.
7327 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
7328 Add doc for pragma Unreferenced suppressing no entities referenced msg
7329 Add documentation of GNAT.Directory_Operations.Iteration
7330 Add documentation of GNAT.Random_Numbers
7331 Add documentation for pragma Shared.
7332 Correct documentation for Bit_Order
7333 Add documentation for the Pool_Address attribute.
7334 Fix and improve documentation of pragma machine_attribute.
7335 New pragma Fast_Math
7336 Document BOM recognition
7338 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
7339 Add /Wide_Character_Encoding for binder
7340 Add qualifier for the new gnatpp option --no-separate-loop-then
7342 2007-12-13 Matthew Heaney <heaney@adacore.com>
7344 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
7345 which generic formal operations are called for each operation.
7347 2007-12-13 Olivier Hainque <hainque@adacore.com>
7349 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
7350 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
7352 2007-12-13 Emmanuel Briot <briot@adacore.com>
7354 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
7355 Reference_Dir unless we actually need it.
7357 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
7358 Tristan Gingold <gingold@adacore.com>
7360 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
7363 a-calend-vms.adb: Remove pragma warning off and add pragma
7366 2007-12-13 Robert Dewar <dewar@adacore.com>
7368 * impunit.adb: Add entries for missing units
7370 * Makefile.rtl: Add new run-time units.
7372 * Make-lang.in: Update dependencies.
7374 2007-12-13 Bob Duff <duff@adacore.com>
7376 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
7377 types, set Can_Use_Internal_Rep appropriately, based on
7378 Always_Compatible_Rep_On_Target.
7380 2007-12-13 Gary Dismukes <dismukes@adacore.com>
7381 Arnaud Charlet <charlet@adacore.com>
7383 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
7384 it to the front end and setting the aamp_target environment variable
7385 to the switch's argument to ensure that gnaampbind and gnaamplink will
7386 take the specified library into account.
7387 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
7388 target, since the CIL compiler supports an "object" file (.il files).
7390 2007-12-13 Vincent Celier <celier@adacore.com>
7392 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
7393 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
7395 2007-12-13 Geert Bosch <bosch@adacore.com>
7397 * s-parame-vxworks.adb:
7398 Update comments to reflect usage of this package by Nucleus.
7400 2007-12-13 Arnaud Charlet <charlet@adacore.com>
7402 * i-vxwork.ads: Kill new warning on Convention C, since changing the
7403 spec would break code.
7405 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
7407 * system-vxworks-alpha.ads: Removed.
7409 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
7411 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
7413 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
7416 * sem_ch3.adb (Designates_T): New function.
7417 (Mentions_T): Factor reusable part of the logic into Designates_T.
7418 Consider non-access parameters and access and non-access result.
7419 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
7420 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
7422 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
7424 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
7427 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
7428 the new implementation of target-specific calls.
7430 2007-12-07 Olivier Hainque <hainque@adacore.com>
7432 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
7433 the designated full view, only follow a second level Full_View link
7434 for Non_Limited_Views of from_limited_with references.
7436 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
7439 * sem_ch6.adb (Process_Formals): Prevent an access type formal
7440 to be initialized with an access to constant object.
7442 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
7443 when an access to constant is used to initialize an access
7447 * a-direct.adb (Compose): Containing_Directory can be an empty string.
7449 2007-12-07 Olivier Hainque <hainque@adacore.com>
7452 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
7453 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
7454 this is from an alignment clause on the GNAT entity.
7455 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
7456 to distinguish the case where we set it from the type's alignment.
7457 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
7458 whether this alignment was set from an explicit alignment clause.
7460 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
7462 * decl.c (make_packable_type): Revert last change.
7463 (gnat_to_gnu_field): Avoid setting size and position multiple times.
7464 * utils.c (finish_record_type): Retrieve the real name of the type.
7466 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
7468 * trans.c (lvalue_required_p): Take base node directly instead
7469 of its parent. Rename second parameter to 'gnu_type'.
7470 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
7471 <N_Slice>: Likewise.
7472 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
7473 Adjust calls to lvalue_required_p.
7475 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
7478 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
7479 parameters of an entry call.
7481 2007-12-03 Robert Dewar <dewar@adacore.com>
7482 Samuel Tardieu <sam@rfc1149.net>
7485 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
7486 of variables declared in a library-level package.
7488 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
7490 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
7491 of Empty_String'Unchecked_Access.
7493 * Makefile.in: Add support for sh4-linux.
7495 * system-linux-sh4.ads: New file.
7497 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
7500 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
7501 and its argument must not be free()ed.
7503 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
7505 * decl.c (make_packable_type): Retrieve the real name of the type.
7506 (maybe_pad_type): Simplify similar code.
7508 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
7511 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
7512 than an identifier is used after "case" in a variant_part.
7515 * par-ch4.adb (Is_Parameterless_Attribute): New map.
7516 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
7517 attribute name or not depending on the new map.
7519 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
7520 returning a string or a type will not be called with improper
7523 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
7525 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
7528 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
7529 Signal an error when attribute argument is a fixed-point value of
7533 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
7534 a derived ordinary fixed point type.
7536 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
7537 RM_Size when a Small clause is found.
7539 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
7542 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
7543 Pass 'false' for the new allocate_struct_function parameter.
7544 * utils.c (build_function_stub): Likewise.
7546 2007-11-25 Richard Guenther <rguenther@suse.de>
7548 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
7549 (gnat_poplevel): Likewise.
7551 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
7553 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
7554 strict alignment, no alignment clause and a known static size, cap
7555 the type alignment to the greatest power of 2 factor of the size.
7556 (gnat_to_gnu_field): If the field has a component clause, is aliased
7557 or of a type with strict alignment, require that its size be equal to
7559 (validate_size): Use the type size as the minimum size for a type with
7562 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
7564 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
7565 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
7566 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
7567 Use 'Access instead of 'Unchecked_Access in second and third
7568 arguments of pthread_sigmask.
7570 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
7572 * decl.c (ceil_alignment): New function.
7573 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
7574 (make_packable_type): Likewise.
7576 2007-11-22 Olivier Hainque <hainque@adacore.com>
7578 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
7579 to fit in 80 columns.
7581 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
7583 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
7584 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
7586 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
7589 * misc.c (gnat_adjust_rli): Delete.
7590 (gnat_init): Do not initialize the translation code here.
7591 Do not call set_lang_adjust_rli.
7592 * trans.c (init_code_table): Make static.
7593 (gnat_init_stmt_group): Delete.
7594 (gigi): Initialize the translation code entirely here.
7595 Emit debug info for the common types here instead of...
7596 * utils.c (gnat_init_decl_processing): ...here.
7597 * gigi.h (init_code_table): Delete.
7598 (gnat_init_stmt_group): Likewise.
7600 2007-11-16 Olivier Hainque <hainque@adacore.com>
7602 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
7603 retrieving an allocator return value from a super-aligned address from
7605 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
7606 expect a super-aligned address for a fat or thin pointer.
7608 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
7610 * trans.c (call_to_gnu): Always set the source location on the call
7611 expression. If the function returns-by-target, also set it on the
7614 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
7616 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
7617 sections of non-supported Interix target.
7619 * s-osinte-interix.ads: Removed.
7621 * i-cstrin.ads (chars_ptr): Make it a C convention type.
7623 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
7625 * a-tasatt.adb: Add a comment at the beginning of the package
7626 explaining why in general 'Unchecked_Access must be used instead
7629 * sem_prag.adb (Process_Convention): Move the test for the
7630 entity on which the Convention pragma applies down to also
7631 forbid pragma Convention on enumeration literals reached
7634 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
7636 * a-tasatt.adb: Revert previous change for this file as it will
7637 generate an error when this package is instantiated from a
7640 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
7642 * a-tasatt.adb: Type Wrapper should be declared in comment instead
7643 of already declared type Node_Access.
7644 Use 'Access instead of 'Unchecked_Access when applicable. Local
7645 lifetime is the one of the package.
7646 (Set_Value): W is allocated on the heap.
7648 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
7650 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
7652 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
7655 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
7657 (elaboration code): Timer_Queue lifetime is the one of the
7660 * tracebak.c (i386 alternative): Remove useless comparaison
7661 which is always false; LOWEST_ADDRESS is 0 and is never greater
7662 than an unsigned integer.
7664 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
7665 embedded check for "Ada_Version >= Ada_05".
7667 2007-11-07 Olivier Hainque <hainque@adacore.com>
7669 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
7670 craft and expand comment.
7672 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
7674 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
7676 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
7678 * misc.c (gnat_handle_option): Replace call to abort with
7679 call to gcc_unreachable.
7680 (gnat_init): Likewise.
7681 (gnat_expand_expr): Likewise.
7682 (fp_prec_to_size): Likewise.
7683 (fp_size_to_prec): Likewise.
7685 2007-10-23 Richard Guenther <rguenther@suse.de>
7688 * tracebak.c: #undef abort after including system.h.
7690 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
7692 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
7693 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
7695 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
7697 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
7699 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
7700 Set the protection status of the guard page based on the value of On.
7702 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
7704 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
7705 (Exit_Task): Pass False to Hide_Yellow_Zone.
7707 2007-10-15 Robert Dewar <dewar@adacore.com>
7709 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
7710 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
7711 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
7712 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
7713 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
7714 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
7715 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
7716 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
7717 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
7718 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
7719 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
7720 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
7721 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
7722 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
7723 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
7724 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
7726 Add Unreferenced and Warnings (Off) pragmas for cases of
7727 variables modified calls where they are IN OUT or OUT parameters and
7728 the resulting values are not subsequently referenced. In a few cases,
7729 we also remove redundant code found by the new warnings.
7731 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
7732 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
7733 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
7734 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
7735 warning controlled by -gnatw.o that warns on cases of out parameter
7736 values being ignored.
7738 2007-10-15 Geert Bosch <bosch@adacore.com>
7740 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
7742 * expect.c: Initial port to arm-mentor-nucleus.
7743 Use kill for __gnat_kill() on VMS.
7745 2007-10-15 Emmanuel Briot <briot@adacore.com>
7747 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
7749 (Xref_Record): Change type for Line, since in the case of a reference to
7750 a predefined entity (as happens for array index types), the line is set
7752 Add support for parsing multiple array index types info, or
7753 multiple inherited interfaces info. This information cannot be stored
7754 in Xref_Entity_Record, which only supports a single instance of Tref_*,
7755 and is therefore stored in the list of references instead. It has a
7756 special treatement later on in tools that use this information.
7758 2007-10-15 Tristan Gingold <gingold@adacore.com>
7760 * debug.adb: Document use of -gnatd.a and -gnatd.I
7762 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
7764 2007-10-15 Javier Miranda <miranda@adacore.com>
7766 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
7767 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
7768 care of access to class-wide interface types plus removal of bizarre
7769 conversion of tagged object to access type (reported by Gary
7770 Dismukes). After this patch there is no need to perform any
7771 additional management on these nodes in Expand_Interface_Actuals.
7773 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
7774 that handles use of 'Access and 'Unchecked_Access applied to
7775 actuals covering interface types. Such code is now
7776 centralized in Expand_N_Attribute_Reference.
7778 2007-10-15 Ed Schonberg <schonberg@adacore.com>
7780 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
7781 of tagged types whose ultimate ancestor is a CPP type.
7782 (Freeze_Array_Type): For a packed array type, generate an initialization
7783 procedure if the type is public, to handle properly a client that
7784 specifies Normalize_Scalars.
7786 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7788 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
7789 inside a generic body, retrieve the full view of the entry family
7790 discrete subtype if available.
7792 2007-10-15 Thomas Quinot <quinot@adacore.com>
7794 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
7795 attempt to generate stubs for hidden primitive operations.
7797 2007-10-15 Vincent Celier <celier@adacore.com>
7799 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
7800 returning None, used when there is no platform specific body for
7803 2007-10-15 Bob Duff <duff@adacore.com>
7805 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
7806 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
7807 the generic Heap_Sort_G, in order to avoid trampolines.
7809 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
7810 Jose Ruiz <ruiz@adacore.com>
7812 * vx_stack_info.c: New file.
7814 * i-forbla-unimplemented.ads: New file.
7816 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
7817 for unsupported configurations; use it on VMS targets instead of the
7819 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
7820 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
7821 used by VxWorks targets to have access to task-specific data and be
7822 able to extract the stack boundaries for stack checking.
7823 Use system-vms-ia64.ads on ivms.
7825 * Make-lang.in: Update dependencies.
7827 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
7830 2007-10-15 Vincent Celier <celier@adacore.com>
7832 * snames.adb, snames.ads: Add new standard name runtime_library_dir
7834 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
7836 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
7838 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
7839 the source is unknown.
7841 * prj-ext.adb: Spelling error fix
7843 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
7844 95 reserved word in its name.
7845 (Process_Project_Level_Array_Attributes): Process new attribute
7846 Runtime_Library_Dir.
7848 * prj-part.adb (Parse_Single_Project): Do not check the name of the
7849 config project against the user project names.
7851 * prj-proc.adb (Expression): In multi-language mode, indexes that do
7852 not include a dot are always case insensitive.
7853 (Process_Declarative_Items): Ditto
7854 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
7857 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
7858 True, compare both indexes in lower case.
7860 2007-10-15 Robert Dewar <dewar@adacore.com>
7862 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
7864 2007-10-15 Gary Dismukes <dismukes@adacore.com>
7866 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
7867 association for an access component, add an association with null as
7868 the expression. Remove testing for array subtypes and the setting in
7869 that case of Ctyp to the array component type, which prevented proper
7870 inclusion of an association for null-initialized arrays. Collapse
7871 condition that tests for array subtypes into just a test of
7872 Is_Partially_Initialized_Type (which already covers arrays anyway).
7874 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7876 * sem_ch12.adb: Minor code reformatting.
7877 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
7878 find the parent package which may have been hidden by local
7881 2007-10-15 Gary Dismukes <dismukes@adacore.com>
7883 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
7884 flag of derived concurrent types, taking into account the flag setting
7885 on the parent subtype and any new set of discriminants.
7887 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7889 * sem_ch4.adb: Minor code and comment reformatting.
7890 (Analyze_Allocator): When the designated type of an unconstrained
7891 allocator is a record with unknown discriminants or an array with
7892 unknown range bounds, emit a detailed error message depending on the
7893 compilation mode and whether the designated type is limited.
7895 2007-10-15 Tristan Gingold <gingold@adacore.com>
7897 * system-vms-ia64.ads: New file.
7899 * system-vms_64.ads: Minor comment fix.
7901 2007-10-15 Ed Schonberg <schonberg@adacore.com>
7903 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
7904 body generated for a function with a controlling result that is a null
7905 extension, discard the generated body in favor of the current explicit
7908 2007-10-15 Ed Schonberg <schonberg@adacore.com>
7910 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
7911 examining its original form, to handle properly operator calls that
7912 have been rewritten.
7914 2007-10-15 Olivier Hainque <hainque@adacore.com>
7916 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
7917 instead of a procedure value in each traceback entry.
7919 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
7920 instead of procedure value to TBK$SYMBOLIZE.
7922 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
7924 (TB_Entry_For): Account for the PV/FP renaming.
7926 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
7928 (Null_TB_Entry): Account for change of component name.
7929 (PV_For): Rename as FP_For.
7931 2007-10-15 Tristan Gingold <gingold@adacore.com>
7933 * trans.c (gnat_to_gnu): Remove the padding structure more often.
7934 This optimize assignment to over-aligned record.
7936 2007-10-15 Emmanuel Briot <briot@adacore.com>
7938 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
7941 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
7942 type, for dispatching calls.
7944 2007-10-15 Vincent Celier <celier@adacore.com>
7945 Robert Dewar <dewar@adacore.com>
7947 * gnat_ugn.texi: Add documentation for switches --version and --help
7948 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
7949 gnatxref, gnatfind, gnatls, and gnatclean.
7951 Mention attribute Excluded_Source_Dirs
7952 Replace obsolescent attribute Locally_Removed_Files with attribute
7953 Excluded_Source_Files.
7954 Improve documentation of -u (gnatbind)
7955 Document how to do reliable stack checking for the environmental task
7958 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
7959 Document attribute Excluded_Source_Files and indicate that attribute
7960 Locally_Removed_Files is obsolescent.
7962 2007-10-15 Thomas Quinot <quinot@adacore.com>
7964 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
7967 Update documentation to note that OpenVMS 8.3 or later must be used
7968 to generate g-soccon-vms.ads.
7970 * atree.adb: Add ??? comment
7972 * exp_util.adb: Minor reformatting.
7973 Add ??? comment in Kill_Dead_Code.
7975 2007-10-15 Robert Dewar <dewar@adacore.com>
7977 * errout.ads: Comment clarification
7979 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
7980 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
7982 * lib.ads: Comment update
7984 * init.c: Minor reformatting.
7986 * sem_attr.adb: Minor formatting
7988 * osint-b.ads: Minor reformatting
7990 * sem_ch9.adb: Implement -gnatd.I switch
7992 * g-comlin.adb: (Start): Fix handling of empty command line.
7994 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
7995 even when -rules follows the -cargs section.
7997 2007-10-08 Ollie Wild <aaw@google.com>
7999 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
8001 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
8003 (gnat_eh_runtime_type): Removed.
8004 (gnat_return_tree): New function.
8006 2007-10-08 Ben Elliston <bje@au.ibm.com>
8010 2007-08-31 Ben Elliston <bje@au.ibm.com>
8012 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
8013 when compiling for powerpc64-*-linux.
8014 * system-linux-ppc64.ads: New file.
8016 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
8018 Mapped location support
8019 * back_end.adb (Call_Back_End): Pass information about source
8020 files instead of units to gigi.
8021 * gigi.h (struct File_Info_Type): New.
8022 (gigi): Rename and change type of number_units parameter, change
8023 type of file_info_ptr parameter.
8024 * trans.c (number_files): New global variable.
8025 (gigi): Rename and change type of number_units parameter, change
8026 type of file_info_ptr parameter.
8027 If mapped location support is enabled, create the isomorphic mapping
8028 between source files and line maps.
8029 (Sloc_to_locus): If mapped location support is enabled, translate
8030 source location into mapped location.
8031 (annotate_with_node): Rename into set_expr_location_from_node.
8032 Call set_expr_location instead of annotate_with_locus.
8033 (Pragma_to_gnu): Adjust for above change.
8034 (Loop_Statement_to_gnu): Likewise.
8035 (call_to_gnu): Likewise.
8036 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
8037 (gnat_to_gnu): Likewise.
8038 (add_stmt_with_node): Likewise.
8039 (add_cleanup): Likewise.
8040 * utils.c (gnat_init_decl_processing): Do not set input_line.
8042 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
8044 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
8045 (Applicable_Use): Emit a warning when a package tries to use itself.
8046 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
8047 is already in use or the package where it is declared is in use or is
8048 declared in the current package.
8049 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
8051 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
8052 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
8053 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
8055 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
8057 * a-calend-vms.adb, a-calend.adb:
8058 Add a section on leap seconds control along with two entities used to
8059 enable and disable leap seconds support. The array Leap_Second_Times is
8060 now constant and contains hard time values pre-generated. Remove
8061 all elaboration code used to populate the table of leap seconds.
8064 Add entity Leap_Seconds_Support to the list of global run-time variables
8065 along with a comment on its usage and values.
8066 (Gen_Adainit_Ada): Add code to generate the declaration and import of
8067 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
8068 or one (enabled) depending on the presence of binder switch "-y".
8069 (Gen_Adainit_C): Add code to generate the declaration of external int
8070 __gl_leap_seconds_support. Set is value to zero (disabled) or one
8071 (enabled) depending on the presence of binder switch "-y".
8073 * init.c: Add __gl_leap_seconds_support to the list of global values
8074 computed by the binder.
8076 2007-09-26 Jerome Guitton <guitton@adacore.com>
8078 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
8079 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
8080 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
8081 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
8083 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
8085 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
8086 function which can be called by the debugger to interrupt the tasks of
8087 an Ada application asynchronously, as needed on VxWorks.
8088 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
8090 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
8091 renamed from Stop_All_Tasks. Update comments.
8092 (Stop_All_tasks): New function declaration.
8094 2007-09-26 Olivier Hainque <hainque@adacore.com>
8096 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
8097 #include <utime.h> and #define GCC_RESOURCE_H before
8098 #include <sys/wait.h>.
8099 Add more protections in __gnat_translate_vms.
8101 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
8102 #include <sys/wait.h>.
8104 2007-09-26 Thomas Quinot <quinot@adacore.com>
8105 Sergey Rybin <rybin@adacore.com>
8107 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
8109 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
8112 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
8114 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
8117 * sem_dist.ads: Minor comment fix
8119 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
8121 2007-09-26 Javier Miranda <miranda@adacore.com>
8122 Eric Botcazou <ebotcazou@adacore.com>
8125 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
8126 indirection added to the HT_Link component of the TSD. This is required
8127 to statically allocate the TSD.
8130 Minor reordering of the declarations in the private part. Required to
8131 add a level of indirection to the contents of the TSD component HT_Link.
8132 This is required to statically allocate the TSD.
8134 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
8135 Is_Statically_Allocated set from constant objects.
8136 Do not make exported constants created by the compiler volatile.
8137 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
8140 * trans.c (Identifier_to_gnu): For constants, unshare initializers
8141 before returning them.
8143 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
8144 public part of the package.
8145 (Make_DT): Move HT_Link component out of the TSD record. For this
8146 purpose Make_DT now declares a separate object that stores the
8147 HT_Link value, and initializes the TSD component with the address
8148 of this new object. The addition of this level of indirection is
8149 required to statically allocate the TSD because the TSD cannot
8150 have variable components.
8151 (Expand_Interface_Conversion): Improve the expanded code.
8152 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
8154 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
8155 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
8156 if we are building static dispatch tables then we must not generate
8157 extra code to register the primitive because the dispatch table will
8158 be built at the end of the library package; otherwise we notify that
8159 we cannot build the static dispatch table.
8161 2007-09-26 Robert Dewar <dewar@adacore.com>
8163 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
8166 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
8167 (Analyze_Record_Representation_Clause): Suppress junk warning for
8168 missing component clause.
8169 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
8170 tests for controlled type overlay to composites with controlled
8172 (Analyze_Record_Representation_Clause): Add reference for component name
8174 2007-09-26 Javier Miranda <miranda@adacore.com>
8175 Gary Dismukes <dismukes@adacore.com>
8177 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
8178 for thunks associated with interface types.
8180 * einfo.ads: Improve documentatation of Is_Internal
8181 (Is_Thunk): New attribute applicable to subprograms. True for thunks
8182 associated with interface types.
8183 Extensive comment fixes regarding flags that appear in all entities. The
8184 documentation is now consistent for all such flags (there were a number
8185 of errors in the documentation in this regard).
8187 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
8189 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
8190 of these procedures are passed a function call that already has
8191 build-in-place actuals (testing new flag
8192 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
8193 the case where processing continues.
8194 (Expand_Call): If the call is generated from a thunk body then we
8195 propagate the extra actuals associated with the accessibility
8196 level of the access type actuals.
8198 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
8199 of each extra formal of a protected operation to reference the
8200 corresponding extra formal of the subprogram denoted by the
8201 operation's Protected_Body_Subprogram.
8203 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
8204 N_Function_Call nodes.
8206 2007-09-26 Robert Dewar <dewar@adacore.com>
8208 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
8210 * debug.adb: Add d.s flag.
8212 2007-09-26 Gary Dismukes <dismukes@adacore.com>
8214 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
8215 debug variable so that it won't be initialized when pragma
8216 Initialize_Scalars is in effect.
8218 2007-09-26 Gary Dismukes <dismukes@adacore.com>
8220 * freeze.adb (Freeze_Entity): Remove check for preelaborable
8221 initialization of a full view. This is moved to
8222 Analyze_Package_Specification.
8224 * sem_ch7.adb (Analyze_Package_Specification): Add check for
8225 preelaborable initialization of a full view in entity loop.
8226 (Uninstall_Declarations): If entity is a use-visible compilation unit,
8227 its child units are use-visible only if they are visible child units.
8229 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
8230 whether an expression can be used within a type declaration that
8231 requires preelaborable init.
8232 (Check_Components): Replace inline code that does partial checking for
8233 preelaborable default expressions with call to
8234 Is_Preelaborable_Expression.
8235 (Has_Preelaborable_Initialization): In the case of a generic actual
8236 subtype, (that is, Is_Generic_Actual is True), return the result of
8237 applying Has_Preelaborable_Initialization to the generic actual's base
8240 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
8242 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
8243 call to Jan_1_Day _Of_Week to optimize its performance.
8244 (Is_Leap): Move the routine to the scope of Week_In_Year.
8245 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
8246 weekday on which January 1 falls of Year - 1 and Year + 1. This function
8247 avoids calling Time_Of and Split, thus making it more efficent.
8248 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
8250 * g-calend.ads (Week_In_Year): Change comment to reflect new
8253 2007-09-26 Emmanuel Briot <briot@adacore.com>
8255 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
8256 Command_Line): New types
8257 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
8258 support for defining how switches can be grouped on a command line (as
8259 is the case for -gnatw... for GNAT), and how simple switches can be
8260 used as aliases for more complex switches (-gnatwa is same as
8262 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
8263 (Start, Current_*): New subprograms
8264 Added support for parsing an array of strings in addition to the real
8266 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
8267 be moved from the body to the private part of the spec.
8268 (*): All subprograms now have an extra parameter with default value to
8269 specify which parser should be used. For backward compatibility, it
8270 defaults to parsing the command line of the application. They were also
8271 modified to properly handle cases where each of the argument does not
8272 start at index 1 (which is always true for Ada.Command_Line, but not
8273 when processing any Argument_List).
8274 (Free): New subprogram
8275 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
8276 Argument): New subprograms
8277 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
8278 special characters like ':', '=',... are now handled in a single place,
8279 which makes the code more extensible eventually.
8280 (Getopt, Full_Switch): When the switch was returned as part of the
8281 special character '*', make sure it is prepended by the switch character
8282 ('-' in general), so that the application knows whether "foo" or "-foo"
8283 was specified on the command line.
8285 2007-09-26 Florian Villoing <villoing@adacore.com>
8287 * g-dirope.adb (Remove_Dir): In case we are removing directories
8288 recursively, make sure that if an exception is raised during the
8289 processing, the current working directory is reset to its initial
8290 value before propagating the exception.
8292 2007-09-26 Vincent Celier <celier@adacore.com>
8294 * gnatbind.adb: If there are several ALI files specified and there is
8295 a main program to bind, the first ALI is expected to contain the main
8296 subprogram and the names of the binder generated files will be derived
8297 from the first ALI file name.
8298 (Gnatbind): Fix insertion character in invocation of Error_Msg
8300 2007-09-26 Vincent Celier <celier@adacore.com>
8302 * gnatcmd.adb (Check_Files): Do not include sources that have been
8303 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
8305 2007-09-26 Ed Schonberg <schonberg@adacore.com>
8307 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
8308 information about each of its index types, following the type
8309 reference for its component type.
8311 2007-09-26 Vincent Celier <celier@adacore.com>
8313 * make.adb: (Kill): New procedure (__gnat_kill imported)
8314 (Running_Compile, Outstanding_Compiles): Global variables that
8315 were previously local to procedure Compile_Sources.
8316 (Sigint_Intercepted): Send signal SIGINT to all outstanding
8317 compilation processes.
8319 (Gnatmake): If project files are used, create the mapping of all the
8320 sources, so that the correct paths will be found.
8322 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
8324 2007-09-26 Vincent Celier <celier@adacore.com>
8326 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
8328 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
8329 Replace components Compiler_Min_Options and Binder_Min_Options with
8330 Compiler_Required_Switches and Binder_Required_Switches in record
8332 Remove components Default_Language and Config in Project_Tree_Data,
8335 * prj-attr.adb: New attributes Required_Switches (<language>) in
8336 packages Compiler and Binder.
8338 * prj-nmsc.adb: Major rewrite of the processing of configuration
8339 attributes for gprbuild. No impact on GNAT tools.
8341 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
8342 process configuration attributes: this is done in Prj.Nmsc.Check.
8343 (Recursive_Process): Make a full copy of packages inherited from project
8344 being extended, instead of a shallow copy.
8345 (Process_Project_Tree_Phase_1): New procedure
8346 (Process_Project_Tree_Phase_1): New procedure
8347 (Process): Implementation now uses the two new procedures
8349 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
8350 from the project config, not the tree config that no longer exists.
8352 2007-09-26 Vincent Celier <celier@adacore.com>
8354 * Make-lang.in: Update dependencies..
8356 2007-09-26 Vincent Celier <celier@adacore.com>
8358 * osint.adb, osint.ads: Minor reformatting
8360 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
8362 2007-09-26 Gary Dismukes <dismukes@adacore.com>
8364 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
8365 message to cite use of <> in aggregate component associations rather
8366 than wrongly indicating use of limited aggregates.
8368 2007-09-26 Robert Dewar <dewar@adacore.com>
8370 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
8373 2007-09-26 Ed Schonberg <schonberg@adacore.com>
8375 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
8376 ancestor of the derived type, the operations are inherited from the
8377 primary dispatch table of the parent.
8378 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
8379 when the context is an explicit type conversion.
8381 2007-09-26 Ed Schonberg <schonberg@adacore.com>
8383 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
8384 rule for qualified expressions properly, to detect improper conversions
8385 and resolve some cases of overloading.
8387 2007-09-26 Ed Schonberg <schonberg@adacore.com>
8389 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
8390 proper kind of reference to the primitive operation, for better source
8392 (Valid_Conversion): A tagged conversion is legal if both operands are
8395 2007-09-26 Robert Dewar <dewar@adacore.com>
8397 * sem_warn.adb (Check_References): Catch more cases of unreferenced
8400 2007-09-26 Vincent Celier <celier@adacore.com>
8402 * snames.adb, snames.ads: Change Include_Option to Include_Switches
8404 2007-09-26 Robert Dewar <dewar@adacore.com>
8406 * s-wchstw.adb: provide messages for run time unit exceptions
8408 * a-witeio.adb: Minor reformatting
8410 * exp_ch13.adb: Minor reformatting
8412 2007-09-26 Sergey Rybin <rybin@adacore.com>
8414 * vms_data.ads: Revise gnatmetric qualifiers.
8415 Add qualified for the new gnatbind option '-y'
8417 * gnat_ugn.texi: Revise the gnatmetric section.
8418 Add entry for new gnatbind option '-y'.
8420 * gnat_rm.texi: Minor spelling correction.
8421 Document restriction on overlaying controlled types
8423 2007-09-26 Vincent Celier <celier@adacore.com>
8425 * makegpr.adb (Link_Executables): Do not fail when the root project has
8426 no sources, but is an extending project.
8428 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
8430 * trans.c: Fix misplaced #define.
8432 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
8434 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
8435 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
8437 2007-09-21 Olivier Hainque <hainque@adacore.com>
8439 * utils.c (type_for_nonaliased_component_p): Return false for
8440 all AGGREGATE_TYPEs.
8442 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
8444 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
8445 object covered by 13.3(19) volatile.
8447 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
8451 * utils.c (unchecked_convert): Use a subtype as the intermediate type
8452 in the special VIEW_CONVERT_EXPR case.
8454 2007-09-12 Robert Dewar <dewar@adacore.com>
8456 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
8458 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
8459 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
8460 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
8461 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
8462 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
8463 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
8464 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
8465 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
8466 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
8467 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
8468 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
8469 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
8470 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
8471 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
8472 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
8473 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
8474 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
8475 pragma Compiler_Unit and adds it to relevant library units.
8477 2007-09-12 Ed Schonberg <schonberg@adacore.com>
8479 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
8480 a box need not correspond to any component.
8482 2007-09-12 Robert Dewar <dewar@adacore.com>
8484 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
8485 the tasking version of the Ada run time when foreign threads are
8486 present and there are no explicit Ada tasks or tasking constructs.
8488 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
8490 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
8492 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
8493 the usage of switch -y.
8495 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
8496 when switch -y is present.
8498 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
8499 leap seconds in Ada.Calendar and its children.
8501 2007-09-12 Jose Ruiz <ruiz@adacore.com>
8503 * a-extiti.ads (Timer): The discriminant is a "not null access
8504 constant" in the Reference Manual.
8505 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
8507 2007-09-12 Robert Dewar <dewar@adacore.com>
8509 * a-swuwha.adb: Remove junk RM header
8511 2007-09-12 Vincent Celier <celier@adacore.com>
8513 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
8516 * g-bytswa.ads: Minor reformatting
8518 2007-09-12 Thomas Quinot <quinot@adacore.com>
8520 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
8521 Add new constant Thread_Blocking_IO, always True by default, set False
8522 on a per-runtime basis.
8523 (Need_Netdb_Buffer): New constant.
8525 2007-09-12 Arnaud Charlet <charlet@adacore.com>
8527 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
8528 Added renames for corresponding functions in System.Partition_Interface.
8530 2007-09-12 Doug Rupp <rupp@adacore.com>
8532 * Makefile.in: Remove VMS specific System.CRTL packages which are no
8535 * s-crtl-vms64.ads: Removed.
8537 2007-09-12 Olivier Hainque <hainque@adacore.com>
8539 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
8540 with discriminant constraints, generalize the code for BIT_FIELDs
8541 to PACKED fields of constant size and propagate DECL_PACKED.
8543 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
8545 * decl.c (array_type_has_nonaliased_component): New predicate.
8546 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
8547 set the TYPE_NONALIASED_COMPONENT flag on the type.
8548 <E_Array_Subtype>: Likewise.
8549 * gigi.h (type_for_nonaliased_component_p): Declare.
8550 * utils.c (type_for_nonaliased_component_p): New predicate.
8551 (create_field_decl): Invoke the above predicate to set the
8552 DECL_NONADDRESSABLE_P flag on the field.
8554 2007-09-11 Javier Miranda <miranda@adacore.com>
8556 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
8557 in library level record type entities if we are generating statically
8558 allocated dispatch tables.
8560 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
8561 importing/exporting the _tag declaration by new code
8562 importing/exporting the dispatch table wrapper. This change allows us
8563 to statically allocate of the TSD.
8564 (Make_DT.Export_DT): New procedure.
8565 (Build_Static_DT): New function.
8566 (Has_DT): New function.
8568 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
8569 True_Constant and Current_Value. Required to statically
8570 allocate the dispatch tables.
8571 (Check_Allocator): Make function iterative instead of recursive.
8572 Also return inner allocator node, when present, so that we do not have
8573 to look for that node again in the caller.
8575 2007-09-11 Jan Hubicka <jh@suse.cz>
8577 * misc.c (gnat_expand_body): Kill.
8578 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
8580 2007-09-10 Robert Dewar <dewar@adacore.com>
8582 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
8583 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8584 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8585 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
8586 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
8587 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
8588 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
8589 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
8590 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
8591 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
8592 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
8593 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
8594 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
8595 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
8596 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
8597 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
8598 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
8599 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
8600 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
8601 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
8602 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
8603 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
8604 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
8605 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
8606 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
8607 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
8608 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
8609 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
8610 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
8611 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
8612 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
8613 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
8614 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
8615 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
8616 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
8617 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
8618 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
8619 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
8620 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
8621 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
8622 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
8623 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
8624 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
8625 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
8626 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
8627 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
8628 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
8629 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
8630 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
8631 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
8632 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
8633 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
8634 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
8635 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
8636 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
8637 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
8638 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
8639 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
8640 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
8641 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
8642 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
8643 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
8644 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
8645 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
8646 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
8647 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
8648 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
8649 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
8650 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
8651 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
8652 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
8653 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
8654 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
8655 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
8656 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
8657 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
8658 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
8659 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
8660 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
8661 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
8662 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
8663 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
8664 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
8666 2007-09-10 Emmanuel Briot <briot@adacore.com>
8668 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
8671 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
8673 * adaint.c (__gnat_translate_vms): new function.
8675 2007-09-10 Gary Dismukes <dismukes@adacore.com>
8676 Thomas Quinot <quinot@adacore.com>
8678 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
8679 create an abstract subprogram in the case of 'Input. For 'Output we now
8680 create a real spec/body when the type is abstract, since it can
8681 potentially be called.
8682 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
8683 body for 'Output when the type is abstract (only the creation of the
8684 body for 'Input is excluded when the type is abstract).
8685 (Stream_Operation_OK): Add an additional condition in the return
8686 statement, so that False will be returned for TTS_Stream_Input if the
8687 associated tagged type is an abstract extension. Add comments for
8689 (Expand_N_Object_Declaration): For the case of a shared passive
8690 variable, insert init proc call only after the shared variable
8691 procedures have been processed, because the IP call needs to undergo
8692 shared passive variable reference expansion, which requires these
8693 procedures to be available (and elaborated).
8695 2007-09-10 Vincent Celier <celier@adacore.com>
8697 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
8698 parameter Runtime_Project.
8700 2007-09-10 Ed Schonberg <schonberg@adacore.com>
8702 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
8703 given a box association, the type of the component is discriminated,
8704 and the value of the discriminant is the discriminant of the enclosing
8705 type, retrieve its value from the aggregate itself, where it must have
8708 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
8709 to remove other spurious ambiguities on arithmetic operations involving
8710 literals and addresses, on systems where Address is a visible integer
8711 type, when the operator is called in functional notation.
8712 (Try_Primitive_Operation): Within an instance, a call in prefixed form
8713 is legal when the types match, even if the operation is currently
8716 2007-09-10 Ed Schonberg <schonberg@adacore.com>
8718 * sem_ch12.adb (Build_Local_Package): A formal package with no
8719 associations is legal if all formals have defaults. It is not
8720 equivalent to a formal declared with a box.
8722 2007-09-10 Sergey Rybin <rybin@adacore.com>
8724 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
8726 2007-09-10 Sergey Rybin <rybin@adacore.com>
8728 * gnat_ugn.texi: Add description of the new '-lratio' option
8729 Update 7.3.1 section about availability of the feature.
8731 2007-09-10 Thomas Quinot <quinot@adacore.com>
8733 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
8736 2007-09-10 Olivier Hainque <hainque@adacore.com>
8738 * Makefile.in: (mips-irix section): Activate build of libgmem.
8740 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
8742 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
8745 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
8747 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
8748 a debug renaming declaration specially.
8750 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
8752 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
8753 which a constant renaming is treated as a normal object declaration.
8754 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
8755 the N_Indexed_Component case.
8756 <N_Indexed_Component>: Fall through to above case.
8757 <N_Object_Renaming_Declaration>: Return true for all composite types.
8759 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
8761 * decl.c (make_packable_type): If the new type has been given BLKmode,
8762 try again to get an integral mode for it.
8764 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
8766 Re-apply accidentally reverted change:
8768 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
8770 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
8771 get_action_description_for): Replace _Unwind_Word with _uleb128_t
8772 and _Unwind_SWord with _sleb128_t.
8774 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
8776 * trans.c (convert_with_check): Update call to real_2expN.
8778 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
8780 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
8781 * utils.c (end_subprog_body): Likewise.
8783 2007-09-03 Nick Clifton <nickc@redhat.com>
8785 * Make-lang.in: Change copyright header to refer to version 3 of
8786 the GNU General Public License and to point readers at the
8787 COPYING3 file and the FSF's license web page.
8788 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
8789 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
8790 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
8791 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
8794 2007-08-31 Vincent Celier <celier@adacore.com>
8798 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
8799 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
8800 (Check_Version_And_Help): New procedure in package Switch to process
8801 switches --version and --help.
8802 Use Check_Version_And_Help in GNAT tools
8805 (Compile_Sources): Make sure that sources that are "excluded" are not
8807 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
8808 project file is used.
8809 (Version_Switch): Remove, moved to Switch
8810 (Help_Switch): Remove, moved to Switch
8811 (Display_Version): Remove, moved to Switch
8813 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
8814 package Switch to process switches --version and --help.
8815 (Display_Version): New procedure
8817 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
8819 2007-08-31 Javier Miranda <miranda@adacore.com>
8821 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
8824 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8826 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
8827 (Mark_Non_Null): If the node for which we just generated an access check
8828 is a reference to an *in* parameter and the reference appears in the
8829 declarative part of a subprogram body, mark the node as known non null.
8831 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8833 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
8834 structure of E_Exception to reflect the new flag.
8835 (Is_Raised, Set_Is_Raised): New inlined routines.
8836 Update the usage of available flag to reflect the addition of Is_Raised.
8837 (Is_Raised, Set_Is_Raised): Bodies of new routines.
8838 (Write_Entity_Flags): Write the status of flag Is_Raised.
8839 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
8840 spurious ambiguities when integer literals appear in the context of an
8841 address type that is a visible integer type.
8843 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
8844 exceptions never being raised.
8845 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
8848 2007-08-31 Javier Miranda <miranda@adacore.com>
8850 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
8851 statement when compiling under restriction No_Exceptions_Proparation.
8853 2007-08-31 Ed Schonberg <schonberg@adacore.com>
8855 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
8856 initialization aggregate for the type, generate itype references for
8857 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
8859 2007-08-31 Gary Dismukes <dismukes@adacore.com>
8861 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
8862 library-level package renaming, pass the declaration associated with
8863 the renaming's special debug variable to Qualify_Entity_Names to ensure
8864 that its encoded name is properly qualified.
8866 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
8867 occurring in the list of entities to qualify, and do not attempt to
8868 traverse an entity list in that case. Variables associated with
8869 ` library-level package renamings can now occur in the table.
8871 * exp_dbug.ads: Revise documentation of the encoding for renaming
8874 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8876 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
8877 access type points to an unconstrained array.
8879 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8881 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
8884 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
8885 simple redundant qualifications. The check is performed whenever the
8886 expression is a non-overloaded identifier.
8887 (Resolve_Type_Conversion): Enchance the redundant type conversion check
8888 to include loop parameters.
8889 (Valid_Conversion): Avoid generation of spurious error message.
8891 2007-08-31 Bob Duff <duff@adacore.com>
8893 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
8894 concatenations of string literals into a single literal, in order to
8895 avoid very deep recursion in the front end, which was causing stack
8898 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
8899 string, and the right operand is a string literal (the case of "" &
8900 "..."), optimize by avoiding copying the right operand -- just use the
8901 value of the right operand directly.
8903 * stringt.adb (Store_String_Chars): Optimize by growing the
8904 String_Chars table all at once, rather than appending characters one by
8906 (Write_String_Table_Entry): If the string to be printed is very long,
8907 just print the first few characters, followed by the length. Otherwise,
8908 doing "pn(n)" in the debugger can take an extremely long time.
8910 * sem_prag.adb (Process_Interface_Name): Replace loop doing
8911 Store_String_Char with Store_String_Chars.
8913 2007-08-31 Vincent Celier <celier@adacore.com>
8915 * prj-attr.adb: Add new attribute Excluded_Source_Files
8917 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
8918 Locally_Removed_Files.
8920 * snames.ads, snames.adb: New standard name Excluded_Source_Files
8922 2007-08-31 Ed Schonberg <schonberg@adacore.com>
8924 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
8925 clauses of subunits, ignore limited_with_clauses that are illegal and
8926 have not been fully analyzed.
8928 2007-08-31 Ed Schonberg <schonberg@adacore.com>
8930 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
8931 flag, for effiency. It is called when analyzing arithmetic operators
8932 and also for actuals in calls that are universal_integers. The flag is
8933 set for the predefined type address, and for any type or subtype
8936 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
8937 Universal_Integer, when the formal is a descendent of address and the
8938 call appears in user code.
8939 (Analyze_Selected_Component): if the prefix is a private extension, the
8940 tag component is visible.
8942 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
8945 2007-08-31 Robert Dewar <dewar@adacore.com>
8947 * s-fileio.adb (Open): Normalize file name to lower case in non-case
8948 sensitive file name systems to avoid unexpected mismatch in Vista.
8950 2007-08-31 Vincent Celier <celier@adacore.com>
8952 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
8954 2007-08-31 Vincent Celier <celier@adacore.com>
8956 * symbols-vms.adb (Initialize): Read symbol files with continuation
8958 (Finalize): If symbol is long, split the line
8960 2007-08-31 Vincent Celier <celier@adacore.com>
8962 * fmap.ads: Minor comment updates
8964 2007-08-31 GNAT Script <nobody@adacore.com>
8966 * Make-lang.in: Makefile automatically updated
8968 2007-08-31 Bob Duff <duff@adacore.com>
8970 * sinfo.ads: Minor comment fix.
8972 2007-08-31 Thomas Quinot <quinot@adacore.com>
8974 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
8975 with implementation.
8976 Documentation cleanup only.
8978 2007-08-31 Sergey Rybin <rybin@adacore.com>
8980 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
8981 gnatpp '--separate-stmt-name' option.
8982 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
8985 * gnat_ugn.texi: Add description for the new gnatpp
8986 '--separate-stmt-name' and '--use-on-new-line' options.
8988 2007-08-31 Ben Elliston <bje@au.ibm.com>
8990 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
8991 when compiling for powerpc64-*-linux.
8992 * system-linux-ppc64.ads: New file.
8994 2007-08-22 Krister Walfridsson <cato@df.lth.se>
8996 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
8999 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9001 * misc.c (gnat_type_max_size): Constify.
9003 2007-08-16 Gary Dismukes <dismukes@adacore.com>
9005 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
9006 associated with Standard_Debug_Renaming_Type, to be used as the type of
9007 the special variables whose names provide debugger encodings for
9008 renaming declarations.
9010 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
9011 (Set_Debug_Renaming_Link): Change to set Node25.
9012 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
9013 (Write_Field25_Name): Add case for E_Variable to output
9014 "Debug_Renaming_Link".
9015 (Write_Field23_Name): Correct the output string for "Limited_View".
9017 * exp_dbug.adb: Add with and use of Tbuild.
9018 (Debug_Renaming_Declaration): Replace creation of an enumeration type
9019 and literal with creation of a variable of type
9020 Standard_Debug_Renaming_Type whose name encodes both the renamed object
9021 and the entity of the renaming declaration.
9022 (Qualify_Entity_Name): Add the delayed qualification of the entity name
9023 part of the name of a variable that has a Debug_Renaming_Link.
9025 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
9026 special type to be associated with variables that provide debugger
9027 encodings for renaming declarations.
9029 2007-08-16 Gary Dismukes <dismukes@adacore.com>
9030 Ed Schonberg <schonberg@adacore.com>
9031 Javier Miranda <miranda@adacore.com>
9033 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
9034 ancestor part given by an aggregate to test for an unchecked conversion,
9035 since this can occur in some cases when the ancestor part is a function
9036 call, and we don't want to fall into the recursive call to this
9037 procedure in that case.
9039 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
9040 stream attributes on limited types to account for user-specified
9041 attributes as well as whether Input (resp. Output) becomes available
9042 due to Read (resp. Write) being available for the type. Change Boolean
9043 variable to the more accurate name
9044 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
9045 double-"not" predicate at beginning of return statement to more
9046 understandable form.
9048 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
9049 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
9050 in a block statement and use that as the first statement of the
9051 expanded return rather than incorrectly using the handled sequence as
9052 the first statement.
9054 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
9055 operation, generate an explicit freeze node for it rather than
9056 generating extra formals, to ensure that gigi has the proper order of
9057 elaboration for anonymous subtypes in the signature of the subprograms.
9058 (Build_In_Place_Formal): Move assertion to beginning of loop.
9059 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
9060 applied to a function call (occurs for some cases of 'Input).
9061 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
9062 applied to a function call (occurs for some cases of 'Input).
9064 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
9065 2005, generate an extended return statement enclosing the result object
9068 * freeze.adb (Freeze_Record_Type): Extend the current management of
9069 components that are access type with an allocator as default value: add
9070 missing support to the use of qualified expressions of the
9071 allocator (which also cause freezing of the designated type!)
9072 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
9073 dispatching operation, since extra formals may be needed by calls to
9074 build-in-place functions (such as stream 'Input).
9076 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
9077 formals for 'Constrained and accessibility level in the case of a
9078 predefined dispatching operation.
9080 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
9081 point, no need to find the parent node.
9083 2007-08-16 Javier Miranda <miranda@adacore.com>
9085 * exp_attr.adb (Attribute_Priority): Add missing support for entries
9088 2007-08-16 Javier Miranda <miranda@adacore.com>
9090 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
9091 is not really required and can introduce regression with the debugger.
9092 The original problem is fixed with the patch written for checks.adb.
9094 2007-08-16 Thomas Quinot <quinot@adacore.com>
9096 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
9097 Range_Check on Allocated_Table.
9099 2007-08-16 Vincent Celier <celier@adacore.com>
9101 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
9102 Including_Non_Switch set to False.
9103 (Gnatmake): For the compiler, call Test_If_Relative_Path with
9104 Including_Non_Switch set to False.
9106 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
9107 parameter Including_Non_Switch, defaulted to True. When
9108 Including_Non_Switch is False, options that are not switches and
9109 appear as relative path are not converted to absolute paths.
9111 2007-08-16 Nicolas Roche <roche@adacore.com>
9113 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
9116 * Make-lang.in: Update dependencies
9118 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
9120 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
9121 currently inspected is a selected component, retrieve the entity of
9123 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
9124 from the immediate ancestor of Main_Unit_Entity.
9125 (Install_Limited_Withed_Unit): Do not install the limited view of
9126 package P if P is reachable through an ancestor chain from package C
9127 and C also has a with clause for P in its body.
9128 (Has_Limited_With_Clause): New routine.
9129 (Has_With_Clause): New routine.
9131 2007-08-16 Ed Schonberg <schonberg@adacore.com>
9133 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
9134 generic for an enclosing instance is a global reference, even though
9135 its scope is the enclosing instance.
9137 2007-08-16 Gary Dismukes <dismukes@adacore.com>
9138 Javier Miranda <miranda@adacore.com>
9140 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
9141 initialize a limited object.
9142 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
9144 Make sure Has_Complex_Representation is inherited by derived type.
9146 2007-08-16 Robert Dewar <dewar@adacore.com>
9148 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
9151 2007-08-16 Ed Schonberg <schonberg@adacore.com>
9153 * sem_disp.adb (Check_Dispatching_Operation): If the operation
9154 implements an operation inherited from a progenitor interface, verify
9155 that they are subtype-conformant.
9157 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
9158 Bob Duff <duff@adacore.com>
9159 Nicolas Setton <setton@adacore.com>
9161 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
9162 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
9163 the statement which is being resolved comes from a predefined library
9164 unit, all non-predefined library interpretations are skipped.
9165 (Resolve_Op_Concat): If string concatenation was folded in the parser,
9166 but the "&" is user defined, give an error, because the folding would
9169 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
9170 the parser has folded a long sequence of concatenations of string
9173 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
9174 and "JMP_BUF" variables as artificial.
9175 (N_String_Literal): Do not use alloca for very long string literals. Use
9176 xmalloc/free instead. Otherwise the stack might overflow.
9178 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
9181 2007-08-16 Vincent Celier <celier@adacore.com>
9183 * vms_conv.adb (Process_Argument): Ensure that project related options
9184 are not put in the -cargs section when using GNAT COMPILE.
9186 2007-08-16 Robert Dewar <dewar@adacore.com>
9188 * gnat_ugn.texi: Add note on preprocessing (output file not written)
9190 2007-08-16 Thomas Quinot <quinot@adacore.com>
9192 * a-tags.adb: Minor reformatting.
9194 2007-08-16 Bob Duff <duff@adacore.com>
9196 * sem_type.ads, sem_ch4.adb: Minor reformatting.
9198 2007-08-14 Thomas Quinot <quinot@adacore.com>
9200 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
9201 s-osinte-interix.ads, system-interix.ads: Removed.
9203 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9205 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
9206 calls to Check_Within_Time_Bounds.
9207 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
9208 (Difference): Account for possible rounding of the resulting difference
9210 2007-08-14 Robert Dewar <dewar@adacore.com>
9212 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
9213 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
9214 s-osinte-solaris.adb, s-osinte-solaris.ads,
9215 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
9217 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
9218 switch -gnatyS. Enable -gnatyS in GNAT style check mode
9220 2007-08-14 Robert Dewar <dewar@adacore.com>
9221 Ed Schonberg <schonberg@adacore.com>
9223 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
9224 Suppress unmodified in-out parameter warning in some cases
9225 This patch is a also fairly significant change to the way suppressible
9228 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
9229 needed for access to concurrent record types generated by the expander.
9230 (Generate_Range_Check): When generating a temporary to capture the
9231 value of a conversion that requires a range check, set the type of the
9232 temporary before rewriting the node, so that the type is always
9233 properly placed for back-end use.
9234 (Apply_Float_Conversion_Check): Handle case where the conversion is
9236 (Get_Discriminal): Code reformatting. Climb the scope stack looking
9237 for a protected type in order to examine its discriminants.
9239 2007-08-14 Robert Dewar <dewar@adacore.com>
9240 Gary Dismukes <dismukes@adacore.com>
9241 Ed Schonberg <schonberg@adacore.com>
9242 Thomas Quinot <quinot@adacore.com>
9244 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
9245 a-stwisu.adb, a-strsup.adb: Fix warnings for range
9246 tests optimized out.
9248 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
9249 (Get_Allocator_Final_List): For the case of an anonymous access type
9250 that has a specified Associated_Final_Chain, do not go up to the
9252 (Expand_N_Type_Conversion): Test for the case of renamings of access
9253 parameters when deciding whether to apply a run-time accessibility
9255 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
9256 aggregate code before allocator, and ahead of declaration for
9257 temporary, to prevent access before elaboration when the allocator is
9258 an actual for an access parameter.
9259 (Expand_N_Type_Conversion): On an access type conversion involving an
9260 access parameter, do not apply an accessibility check when the
9261 operand's original node was an attribute other than 'Access. We now
9262 create access conversions for the expansion of 'Unchecked_Access and
9263 'Unrestricted_Access in certain cases and clearly accessibility should
9264 not be checked for those.
9266 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
9267 includes a type conversion of a packed component that has been expanded,
9268 recover the original expression for the object, and use this expression
9269 in the post-call assignment statement, so that the assignment is made
9270 to the object and not to a back-end temporary.
9271 (Freeze_Subprogram): In case of primitives of tagged types not defined
9272 at the library level force generation of code to register the primitive
9273 in the dispatch table. In addition some code reorganization has been
9274 done to leave the implementation clear.
9275 (Expand_Call): When expanding an inherited implicit conversion,
9276 preserve the type of the inherited function after the intrinsic
9277 operation has been expanded.
9279 * exp_ch2.ads, exp_ch2.adb
9280 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
9281 of an entry formal appearing in an assignment statement does not assign
9283 (Expand_Current_Value): Instead of calling a routine to determine
9284 whether the prefix of an attribute reference should be optimized or
9285 not, prevent the optimization of such prefixes all together.
9287 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
9288 component whose prefix is known to be of an access type is an implicit
9289 dereference and does not assign to the prefix.
9291 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9292 Robert Dewar <dewar@adacore.com>
9294 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
9295 itype is visited, make an entry into table to link associated node and
9297 Add comments and correct harmless error in Build_NCT_Hash_Tables
9298 (Array_Aggr_Subtype): Associate each itype created for an index type to
9299 the corresponding range construct, and not to the aggregate itself. to
9300 maintain a one-to-one correspondence between itype and its associated
9301 node, to prevent errors when complex expression is copied.
9302 Fix mishandling of multiple levels of parens
9304 * sem_aggr.adb: Create a limited view of an incomplete type, to make
9305 treatment of limited views uniform for all visible declarations in a
9306 limited_withed package.
9307 (New_Copy_Tree): If hash table is being used and itype is visited,
9308 make an entry into table to link associated node and new itype.
9309 (Resolve_Record_Aggregate): Do not add an others box association for a
9310 discriminated record component that has only discriminants, when there
9311 is a box association for the component itself.
9313 * par-ch4.adb: Fix mishandling of multiple levels of parens
9315 2007-08-14 Robert Dewar <dewar@adacore.com>
9317 * comperr.adb: Fix problem with suppressing warning messages from gigi
9319 * erroutc.ads, erroutc.adb, errout.ads,
9320 errout.adb (Write_Eol): Remove trailing spaces before writing the line
9321 (Write_Eol_Keep_Blanks): New procedure to write a line, including
9322 possible trailing spaces.
9323 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9324 Fix problem with suppressing warning messages from back end
9325 Improve handling of deleted warnings
9328 Fix problem with suppressing warning messages from back end
9329 Handle setting of Static_Dispatch_Tables flag.
9332 Fix problem with suppressing warning messages from back end
9334 * exp_intr.adb: Improve handling of deleted warnings
9336 2007-08-14 Robert Dewar <dewar@adacore.com>
9338 * debug.adb: Improve -gnatdI to cover all cases of serialization
9339 Add documentation of dZ, d.t
9341 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
9343 (Sprint_Node_Actual): Generate new output associated with implicit
9344 importation and implicit exportation of object declarations.
9346 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9347 Robert Dewar <dewar@adacore.com>
9348 Javier Miranda <miranda@adacore.com>
9349 Gary Dismukes <dismukes@adacore.com>
9351 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
9352 to make treatment of limited views uniform for all visible declarations
9353 in a limited_withed package.
9354 Improve warnings for in out parameters
9355 (Set_Related_Interaface/Related_Interface): Allow the use of this
9356 attribute with constants.
9357 (Write_Field26_Name): Handle attribute Related_Interface in constants.
9358 Warn on duplicate pragma Preelaborable_Initialialization
9360 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
9361 generation of a freezing node to ensure proper management of null
9362 excluding access types in the backend.
9363 (Create_Extra_Formals): Test base type of the formal when checking for
9364 the need to add an extra accessibility-level formal. Pass the entity E
9365 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
9366 originally being done in a couple of cases), to ensure that the
9367 Extra_Formals list gets set on the entity E when the first entity is
9369 (Conforming_Types): Add missing calls to Base_Type to the code that
9370 handles anonymous access types. This is required to handle the
9371 general case because Process_Formals builds internal subtype entities
9372 to handle null-excluding access types.
9373 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9374 functions that need it, even when not marked Requires_Overriding.
9375 Improve warnings for in out parameters
9376 (Analyze_Function_Return): Warn for disallowed null return
9377 Warn on return from procedure with unset out parameter
9378 Ensure consistent use of # in error messages
9379 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
9380 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
9381 the implicit conversion of the expression done for anonymous access
9382 types. This is required to generate the code of the null excluding
9383 check (if required).
9385 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
9386 A formal parameter is never publicly referenceable outside of its body.
9387 (Check_References): For an unreferenced formal parameter in an accept
9388 statement, use the same warning circuitry as for subprogram formal
9390 (Warn_On_Unreferenced_Entity): New subprogram, taken from
9391 Output_Unreferenced_Messages, containing the part of that routine that
9392 is now reused for entry formals as described above.
9393 (Goto_Spec_Entity): New function
9394 (Check_References): Do not give IN OUT warning for dispatching operation
9395 Improve warnings for in out parameters
9396 (Test_Ref): Check that the entity is not undefinite before calling
9397 Scope_Within, in order to avoid infinite loops.
9398 Warn on return from procedure with unset out parameter
9399 Improved warnings for unused variables
9401 2007-08-14 Robert Dewar <dewar@adacore.com>
9402 Javier Miranda <miranda@adacore.com>
9403 Gary Dismukes <dismukes@adacore.com>
9405 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
9406 (Expand_N_Attribute_Reference): Further unify the handling of the
9407 three forms of access attributes, using common code now for all three
9408 cases. Add a test for the case of applying an access attribute to
9409 an explicit dereference when the context is an access-to-interface
9410 type. In that case we need to apply the conversion to the prefix
9411 of the explicit dereference rather than the prefix of the attribute.
9412 (Attribute_Version, UET_Address): Set entity as internal to ensure
9413 proper dg output of implicit importation.
9414 (Expand_Access_To_Type): Removed.
9415 (Expand_N_Attribute_Reference): Merge the code from the three cases
9416 of access attributes, since the processing is largely identical for
9417 these cases. The substantive fix here is to process the case of a
9418 type name prefix (current instance case) before handling the case
9419 of interface prefixes.
9421 2007-08-14 Thomas Quinot <quinot@adacore.com>
9422 Ed Schonberg <schonberg@adacore.com>
9423 Javier Miranda <miranda@adacore.com>
9424 Robert Dewar <dewar@adacore.com>
9426 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
9427 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
9428 type that is an anonymous access to controlled object, establish
9429 an associated finalization chain to avoid corrupting the global
9430 finalization list when a dynamically allocated object designated
9431 by such a component is deallocated.
9432 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9433 functions that need it, even when not marked Requires_Overriding.
9434 (Initialize_Tag): Replace call to has_discriminants by call to
9435 Is_Variable_Size_Record in the circuitry that handles the
9436 initialization of secondary tags.
9437 (Is_Variable_Size_Record): New implementation.
9438 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
9439 Suppress_Initialization pragma for a derived type.
9440 (Is_Variable_Size_Record): New subprogram.
9441 (Build_Offset_To_Top_Functions): New implementation that simplifies the
9442 initial version of this routine and also fixes problems causing
9443 incomplete initialization of the table of interfaces.
9444 (Build_Init_Procedure): Improve the generation of code to initialize the
9445 the tag components of secondary dispatch tables.
9446 (Init_Secondary_Tags): New implementation that simplifies the previous
9447 version of this routine.
9448 (Make_DT): Add parameter to indicate when type has been frozen by an
9449 object declaration, for diagnostic purposes.
9450 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
9451 diagnose attemps to freeze a subprogram when some untagged type of its
9452 profile is a private type whose full view has not been analyzed yet.
9453 (Freeze_Array_Type): Generate init proc for packed array if either
9454 Initialize or Normalize_Scalars is set.
9455 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
9456 constructing the new profile, copy the null_exclusion indicator for each
9457 parameter, to ensure full conformance of the new body with the spec.
9459 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
9460 Create wrappers for constructor functions that need it, even when not
9461 marked Requires_Overriding.
9462 (Covers): Handle properly designated types of anonymous access types,
9463 whose non-limited views are themselves incomplete types.
9464 (Add_Entry): Use an entity to store the abstract operation which hides
9466 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
9467 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
9468 initialization aggregate.
9469 (Function_Interp_May_Be_Hidden): Rename to
9470 Function_Interp_Has_Abstract_Op.
9471 (Has_Compatible_Type): Remove machinery that skips interpretations if
9472 they are labeled as potentially hidden by an abstract operator.
9473 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
9474 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
9475 (Write_Overloads): Output the abstract operator if present.
9476 (Add_Entry): Before inserting a new entry into the interpretation table
9477 for a node, determine whether the entry will be disabled by an abstract
9479 (Binary_Op_Interp_May_Be_Hidden): New routine.
9480 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
9482 (Function_Interp_May_Be_Hidden): New routine.
9483 (Has_Compatible_Type): Do not consider interpretations hidden by
9484 abstract operators when trying to determine whether two types are
9486 (Has_Hidden_Interp): New routine.
9487 (Set_May_Be_Hidden_Interp): New routine.
9488 (Write_Overloads): Write the status of flag May_Be_Hidden.
9490 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9491 Javier Miranda <miranda@adacore.com>
9493 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
9494 types declared in the declarative part of a nested package body or in
9495 the proper body of a stub.
9496 (Set_All_DT_Position): Add missing check to avoid wrong assignation
9497 of the same dispatch table slot to renamed primitives.
9498 (Make_Select_Specific_Data_Table): Handle private types.
9499 (Tagged_Kind): Handle private types.
9500 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
9501 output of implicit importation and exportation.
9502 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
9503 first formal of the thunk is always associated with the controlling
9504 type. In addition perform the following code cleanup: remove formal
9505 Thunk_Alias which is no longer required, cleanup evaluation of the
9506 the controlling type, and update the documentation.
9507 Replace occurrence of Default_Prim_Op_Count by
9508 Max_Predef_Prims. Addition of compile-time check to verify
9509 that the value of Max_Predef_Prims is correct.
9510 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
9511 (Make_DT): Add parameter to indicate when type has been frozen by an
9512 object declaration, for diagnostic purposes.
9513 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
9514 construction of statically allocated dispatch tables.
9515 (Make_DT): In case of library-level tagged types export the declaration
9516 of the primary tag. Remove generation of tags (now done by Make_Tags).
9517 Additional modifications to handle non-static generation of dispatch
9518 tables. Take care of building tables for asynchronous interface types
9519 (Make_Tags): New subprogram that generates the entities associated with
9520 the primary and secondary tags of Typ and fills the contents of Access_
9521 Disp_Table. In case of library-level tagged types imports the forward
9522 declaration of the primary tag that will be declared later by Make_DT.
9523 (Expand_Interface_Conversion): In case of access types to interfaces
9524 replace an itype declaration by an explicit type declaration to avoid
9525 problems associated with the scope of such itype in transient blocks.
9527 2007-08-14 Robert Dewar <dewar@adacore.com>
9528 Ed Schonberg <schonberg@adacore.com>
9529 Javier Miranda <miranda@adacore.com>
9531 * exp_util.ads, exp_util.adb:
9532 This patch replaces a number of occurrences of explicit tests for N_Null
9533 with calls to Known_Null. This improves tracking of null values, since
9534 Known_Null also catches null constants, and variables currently known to
9535 be null, so we get better tracking.
9536 (Ensure_Defined): create an itype reference only in the scope of the
9538 (Side_Effect_Free): A selected component of an access type that
9539 denotes a component with a rep clause must be treated as not
9540 side-effect free, because if it is part of a linked structure its
9541 value may be affected by a renaming.
9542 (Expand_Subtype_From_Expr): For limited objects initialized with build
9543 in place function calls, do nothing; otherwise we prematurely introduce
9544 an N_Reference node in the expression initializing the object, which
9545 breaks the circuitry that detects and adds the additional arguments to
9546 the called function. Bug found working in the new patch for statically
9547 allocated dispatch tables.
9548 (Is_Library_Level_Tagged_Type): New subprogram.
9549 (Remove_Side_Effects): If the expression of an elementary type is an
9550 operator treat as a function call.
9551 (Make_Literal_Range): If the index type of the array is not integer, use
9552 attributes properly to compute the constraint on the resulting aggregate
9555 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
9556 class-wide type whose base type is an incomplete private type, leave
9557 class-wide type unfrozen so that freeze nodes can be generated
9558 properly at a later point.
9559 (Freeze_Entity, array case): Handle case of pragma Pack and component
9560 size attributre clause for same array.
9562 2007-08-14 Vincent Celier <celier@adacore.com>
9564 * prj.ads, prj.adb: Update Project Manager to new attribute names for
9566 Allow all valid declarations in configuration project files
9567 (Reset): Initialize all tables and hash tables in the project tree data
9568 Major update of the Project Manager and of the project aware tools,
9569 including gprmake, so that the same sources in the GNAT repository
9570 can be used by gprbuild.
9571 (Slash_Id): Change type to be Path_Name_Type
9572 (Slash): Return a Path_Name_Type instead of a File_Name_Type
9574 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
9576 Update Project Manager to new attribute names for ghprbuild
9577 Allow all valid declarations in configuration project files
9578 Major update of the Project Manager and of the project aware tools,
9579 including gprmake, so that the same sources in the GNAT repository
9580 can be used by gprbuild.
9583 Major update of the Project Manager and of the project aware tools,
9584 including gprmake, so that the same sources in the GNAT repository
9585 can be used by gprbuild.
9587 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9588 insensitive flag for attributes with optional index.
9589 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9590 array attribute, put the index in lower case.
9591 Update Project Manager to new attribute names for ghprbuild
9592 Allow all valid declarations in configuration project files
9593 Major update of the Project Manager and of the project aware tools,
9594 including gprmake, so that the same sources in the GNAT repository
9595 can be used by gprbuild.
9597 * prj-env.ads, prj-env.adb:
9598 Major update of the Project Manager and of the project aware tools,
9599 including gprmake, so that the same sources in the GNAT repository
9600 can be used by gprbuild.
9601 (Get_Reference): Change type of parameter Path to Path_Name_Type
9603 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
9604 removing '-' from the path to start with the first character of the
9606 Major update of the Project Manager and of the project aware tools,
9607 including gprmake, so that the same sources in the GNAT repository
9608 can be used by gprbuild.
9609 Major update of the Project Manager and of the project aware tools,
9610 including gprmake, so that the same sources in the GNAT repository
9611 can be used by gprbuild.
9613 * prj-nmsc.ads, prj-nmsc.adb:
9614 Update Project Manager to new attribute names for ghprbuild
9615 Allow all valid declarations in configuration project files
9616 (Search_Directories): Detect subunits that are specified with an
9617 attribute Body in package Naming. Do not replace a source/unit in the
9618 same project when the order of the source dirs are known. Detect
9619 duplicate sources/units in the same project when the order of the
9620 source dirs are not known.
9621 (Check_Ada_Name): Allow all identifiers that are not reserved words
9623 Major update of the Project Manager and of the project aware tools,
9624 including gprmake, so that the same sources in the GNAT repository
9625 can be used by gprbuild.
9626 (Look_For_Sources): If the list of sources is empty, set the object
9627 directory of non extending project to nil.
9628 Change type of path name variables to be Path_Name_Type
9629 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
9630 otherwise creating missing directories will fail.
9632 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
9633 prj-part.ads, prj-part.adb:
9634 Major update of the Project Manager and of the project aware tools,
9635 including gprmake, so that the same sources in the GNAT repository
9636 can be used by gprbuild.
9638 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9639 insensitive flag for attributes with optional index.
9640 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9641 array attribute, put the index in lower case.
9642 (Parse_Variable_Reference): Allow the current project name to be used in
9643 the prefix of an attribute reference.
9645 * prj-util.ads, prj-util.adb
9646 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
9647 defaulted to False. When True, always check against indexes in lower
9650 * snames.ads, snames.h, snames.adb:
9651 Update Project Manager to new attribute names for gprbuild
9652 Allow all valid declarations in configuration project files
9654 2007-08-14 Robert Dewar <dewar@adacore.com>
9655 Ed Schonberg <schonberg@adacore.com>
9657 * opt.ads: Warning for non-local exception propagation now off by
9659 New switch -gnatI to disable representation clauses
9660 Implement new pragma Implicit_Packing
9663 Warning for non-local exception propagation now off by default
9664 Add warning for unchecked conversion of pointers wi different
9666 New switch -gnatI to disable representation clauses
9668 * usage.adb: new switch -gnatyS
9670 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
9671 note that aggregates of anonymous array types are not flagged.
9672 -gnatwc now includes membership tests optimized away
9673 -gnatw.x warnings are now off by default
9674 Added conditional compilation Appendix
9675 Add documentation of -gnatI
9676 Add documentation for new -gnatyS style check
9677 Update documentation about SAL and auto-init on Windows.
9680 Add documentation for pragma Check_Name and 'Enabled attribute
9681 Document that Eliminate on dispatching operation is ignored
9682 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
9683 Document pragma Main
9684 Document pragma Implicit_Packing
9686 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
9687 different conventions
9688 New switch -gnatI to disable representation clauses
9690 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
9691 recognized, report the invalid characters including "-gnat" instead of
9692 just the first character in the switch.
9693 New switch -gnatI to disable representation clauses
9694 Set Warn_On_Object_Renames_Function true for -gnatg
9696 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
9697 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
9698 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
9699 to switch -aP (add directory to project search dir).
9701 * par-prag.adb: Implement new pragma Implicit_Packing
9703 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
9704 type as having a non-standard representation, to force expansion on
9705 conversion to related types.
9706 (Analyze_Pragma): Warn on misspelled pragma
9707 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
9708 Ensure consistent use of # in error messages
9709 Implement pragma Implicit_Packing
9711 2007-08-14 Olivier Hainque <hainque@adacore.com>
9712 Eric Botcazou <ebotcazou@adacore.com>
9714 * targtyps.c (get_target_maximum_default_alignment): New function.
9716 that the compiler might choose by default for a type or object.
9717 (get_target_default_allocator_alignment): New function. Alignment known
9718 to be honored by the target default allocator.
9719 (get_target_maximum_allowed_alignment): New function. Maximum alignment
9720 we might accept for any type or object on the target.
9721 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
9723 * gigi.h (get_target_maximum_default_alignment): Declare new function.
9724 (get_target_default_allocator_alignment): Likewise.
9725 (get_target_maximum_allowed_alignment): Likewise.
9728 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
9729 result of a function call, first try to use a stabilized reference for
9730 a constant renaming too.
9731 (validate_alignment): Use target_maximum_allowed_alignment instead of
9732 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
9733 (gnat_to_gnu_entity): Use common nodes directly.
9734 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
9735 alignment and size for the object.
9736 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
9737 and N_Procedure_Call_Statement.
9738 (takes_address): Rename to lvalue_required_p, add third parameter
9739 'aliased' and adjust recursive calls.
9740 <N_Indexed_Component>: Update 'aliased' from the array type.
9741 <N_Selected_Component>: New case.
9742 <N_Object_Renaming_Declaration>: New Likewise.
9743 (Identifier_to_gnu): Adjust for above changes.
9744 (maybe_stabilize_reference) <CONST_DECL>: New case.
9746 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
9747 between type variants.
9748 (build_simple_component_ref): Likewise.
9749 (build_call_alloc_dealloc): Use target_default_allocator_alignment
9750 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
9751 aligning type circuitry for allocations from the default storage pool.
9752 (build_allocator): Likewise.
9753 (build_simple_component_ref): Manually fold the reference for a
9754 constructor if the record type contains a template.
9756 * utils.c (value_zerop): Delete.
9757 (gnat_init_decl_processing): Emit debug info for common types.
9758 (rest_of_record_type_compilation): If a union contains a field
9759 with a non-constant qualifier, treat it as variable-sized.
9760 (finish_record_type): Give the stub TYPE_DECL a name.
9761 (rest_of_record_type_compilation): Likewise.
9762 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
9763 types are equivalent array types.
9764 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
9765 even if the type is not passed by reference.
9766 (static_ctors, static_dtors): Delete.
9767 (end_subprog_body): Do not record constructors and destructors.
9768 (build_global_cdtor): Delete.
9769 (gnat_write_global_declarations): Do not call build_global_cdtor.
9771 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
9772 -fRTS=rtp is specified.
9773 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
9776 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
9777 of the personality function with SJLJ exceptions.
9779 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
9780 the name of the personality function with SJLJ exceptions.
9782 2007-08-14 Robert Dewar <dewar@adacore.com>
9783 Ed Schonberg <schonberg@adacore.com>
9785 * par.ads, par.adb: Improve handling of extra right parens.
9786 (Par): Remove flag From_Limited_With_Clause.
9788 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
9789 Improve handling of extra right parens.
9791 2007-08-14 Robert Dewar <dewar@adacore.com>
9793 * par-tchk.adb (TF_Semicolon): Improve error recovery
9795 2007-08-14 Robert Dewar <dewar@adacore.com>
9796 Ed Schonberg <schonberg@adacore.com>
9798 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
9799 enumeration type, mark all literals as referenced.
9800 (Eval_Attribute, case 'Image): If the argument is an enumeration
9801 literal and names are available, constant-fold but mark nevertheless as
9803 Clean up function names.
9804 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
9806 (Requires_Simple_Name_Prefix): Removed.
9808 2007-08-14 Robert Dewar <dewar@adacore.com>
9809 Ed Schonberg <schonberg@adacore.com>
9811 * sem_ch11.adb: Improved warnings for unused variables
9813 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
9814 is a synchronized interface, the derived type is limited.
9815 (Analyze_Object_Declaration): Mark the potential coextensions in the
9816 definition and expression of an object declaration node.
9817 (Build_Derived_Type): For the completion of a private type declaration
9818 with a derived type declaration, chain the parent type's representation
9819 items to the last representation item of the derived type (not the
9820 first one) if they are not present already.
9821 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
9822 object declaration of forward references to tags.
9823 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
9824 subprogram types can appear as access discriminants of synchronized
9826 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
9827 given in prefixed form as a selected component.
9828 (Process_Discriminants): If not all discriminants have defaults, place
9829 error message on a default that is present.
9830 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
9831 extend a synchronized tagged type.
9832 Improved warnings for unused variables
9833 (Is_Visible_Component): Fix a visibility hole on a component inherited
9834 by a private extension when parent is itself declared as a private
9835 extension, and the derivation is in a child unit.
9836 (Find_Hidden_Interface): Move spec from the package body.
9838 2007-08-14 Robert Dewar <dewar@adacore.com>
9839 Ed Schonberg <schonberg@adacore.com>
9841 * sem_ch5.adb: Improve warnings on redundant assignments
9843 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
9845 (Is_Synchronized_Tagged_Type): New subprogram that returns true
9846 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
9847 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
9848 is set to False. Improves handling of Known_[Not_]Null.
9849 (Wrong_Type): Special case address arithmetic attempt
9850 (Collect_Abstract_Interfaces): Add new formal to allow collecting
9851 abstract interfaces just using the partial view of private types.
9852 (Has_Abstract_Interfaces): Add new formal to allow checking types
9853 covering interfaces using the partial view of private types.
9854 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
9855 component still needs to be defined in this case, but is never
9856 initialized as VMs are using other dispatching mechanisms.
9857 (Abstract_Interface_List): For a protected type, use base type to get
9859 Improve warnings on redundant assignments
9860 (Is_Variable): Handle properly an implicit dereference of a prefixed
9862 (Build_Actual_Subtype): If this is an actual subtype for an
9863 unconstrained formal parameter, use the sloc of the body for the new
9864 declaration, to prevent anomalises in the debugger.
9866 2007-08-14 Robert Dewar <dewar@adacore.com>
9868 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
9869 dispatching operation
9871 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9872 Gary Dismukes <dismukes@adacore.com>
9875 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
9876 expanded aggregate code before allocator, and ahead of declaration for
9877 temporary, to prevent access before elaboration when the allocator is
9878 an actual for an access parameter.
9879 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
9880 the TSD and the table of interfaces.
9881 (Convert_To_Assignments): Augment the test for delaying aggregate
9882 expansion for limited return statements to include the case of extended
9883 returns, to prevent creation of an unwanted transient scope.
9884 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
9885 (Expand_Array_Aggregate): Handle aggregates associated with
9886 statically allocated dispatch tables.
9887 (Expand_Record_Aggregate): Handle aggregates associated with
9888 statically allocated dispatch tables.
9889 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
9890 of anonymous access type.
9892 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9894 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
9895 is a variable that renames a slice, use the variable itself in the
9896 expannsion when the renamed expression itself may be modified between
9897 the declaration of the renaming and the array assignment.
9899 2007-08-14 Jerome Guitton <guitton@adacore.com>
9901 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9902 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
9903 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
9904 New functions; dummy implementations.
9906 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
9907 functions, used to implement the multi-tasks mode routines on VxWorks.
9909 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
9911 binding to the VxWorks routines which have changed between VxWorks 5
9913 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
9914 which are not callable from a RTP.
9916 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
9917 implemented for the multi-tasks mode on VxWorks 5 and 6.
9919 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
9921 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
9924 2007-08-14 Vincent Celier <celier@adacore.com>
9926 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
9927 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
9928 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
9929 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9930 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9931 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
9932 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
9934 (Major_Id_Name): New function.
9935 mlib-tgt.ads/mlib.tgt.adb:
9936 (Library_Major_Minor_Id_Supported): New function, default returns True
9937 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
9938 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
9939 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
9940 Implementation of Library_Major_Minor_Id_Supported returns False
9942 (Clean_Library_Directory): If major/minor ids are supported, clean all
9944 Major update of the Project Manager and of the project aware tools,
9945 including gprmake, so that the same sources in the GNAT repository
9946 can be used by gprbuild.
9948 2007-08-14 Olivier Hainque <hainque@adacore.com>
9950 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
9951 (GCC_ZCX_Support): Switch to True.
9953 * s-intman-solaris.adb (Notify_Exception): Call
9954 Adjust_Context_For_Raise before raising, as expected for signal
9955 handlers in general.
9957 * s-intman-posix.adb (Notify_Exception): Remove declaration of
9958 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
9959 to other implementation bodies.
9961 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
9962 be visible by multiple implementation bodies.
9964 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
9965 only for conditions coming from hardware.
9966 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
9967 adjustments to signal context prior to exception raise from signal
9969 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
9971 Solaris section: (__gnat_adjust_context_for_raise): New function.
9972 Implementation of the machine context adjustments to perform prior to
9973 raise from a signal handler. Version for both sparc and x86.
9974 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
9975 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
9976 prior to raising as expected for any handler, before possible nested
9977 faults to make sure all the contexts in a chain have been adjusted by
9978 the time we propagate.
9980 2007-08-14 Pascal Obry <obry@adacore.com>
9982 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
9983 (SYSTEM_INFO): New record.
9984 (SetThreadIdealProcessor): New imported routine needed for supporting
9985 task_info pragma on Windows.
9987 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
9988 info can be applied to the current host.
9989 (Create_Task): Set the ideal processor if information is present.
9991 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
9992 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
9994 2007-08-14 Olivier Hainque <hainque@adacore.com>
9996 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
9997 stack size and initial stack pointer value for a given task.
9998 (Enter_Task): Get the stack attributes of the task we are entering and
9999 let the stack checking engine know about them.
10001 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
10002 Let the stack-checking engine know about the initial sp value and stack
10003 size associated with the current task.
10004 (Set_Stack_Info): If a stack base has been notified for the current
10005 task, honor it. Fallback to the previous less accurate method otherwise.
10007 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
10009 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10011 * sem_ch10.adb: Create a limited view of an incomplete type, to make
10012 treatment of limited views uniform for all visible declarations in a
10013 limited_withed package.
10014 Set flag indicating that a subprogram body for a child unit has a
10016 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
10017 separate declaration, remove the unit name from visibility after
10018 compilation, so that environment is clean for subsequent compilations.
10019 (Install_Limited_Context_Clauses): Do not install a
10020 limited_private_with_clause unless the current unit is a body or a
10021 private child unit.
10022 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
10023 in the same fashion.
10024 (Install_Limited_Withed_Unit): Do not install a limited with clause if
10025 it applies to the declaration of the current package body.
10026 (Remove_Private_With_Clauses): If there is a regular with_clause for
10027 the unit, delete Private_With_Clause from context, to prevent improper
10028 hiding when processing subsequent nested packages and instantiations.
10030 2007-08-14 Jose Ruiz <ruiz@adacore.com>
10032 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
10033 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
10034 representing absolute path names.
10035 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
10037 * cstreams.c (__gnat_full_name for VxWorks): Use
10038 __gnat_is_absolute_path to detect whether we need to add the current
10039 directory to normalize the path.
10041 2007-08-14 Javier Miranda <miranda@adacore.com>
10044 a-tags.adb (Displace): Associate a message with the raised CE
10046 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
10047 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
10048 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
10050 (Default_Prim_Op_Count): Removed.
10051 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
10052 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
10053 Remove pragma Inline_Always.
10055 * rtsfind.ads (Default_Prim_Op_Count): Removed
10056 (Max_Predef_Prims): New entity
10057 (RE_Expanded_Name): Removed
10058 (RE_HT_Link): Removed
10059 (RE_Iface_Tag): Remmoved
10060 (RE_Ifaces_Table): Removed
10061 (RE_Interfaces_Array): Removed
10062 (RE_Interface_Data_Element): Removed
10063 (RE_Nb_Ifaces): Removed
10064 (RE_RC_Offset): Removed
10065 (RE_Static_Offset_To_Top): Removed
10067 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
10069 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
10070 Prim_Op_Count by Max_Predef_Prims.
10072 2007-08-14 Thomas Quinot <quinot@adacore.com>
10073 Vincent Celier <celier@adacore.com>
10075 * binde.adb (Elab_All_Links): Remove unnecessary call to
10076 Generic_Separately_Compiled (if a unit satisfies this predicate, there
10077 won't be an associated Afile).
10078 (Elab_All_Links): Fail if a referenced unit cannot be found
10081 Fix comments in bindgen regarding consistency checks done in Bcheck:
10082 the checks are made across units within a partition, not across several
10084 Fix generation of C binder file for VxWorks.
10086 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
10087 Generic_May_Lack_ALI, more descriptive of the current use of the
10088 predicate, and update documentation.
10090 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
10091 reorganization and documentation update for the case of predefined
10092 library generics (for which we do not reference an Afile).
10094 2007-08-14 Robert Dewar <dewar@adacore.com>
10096 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
10097 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
10098 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
10099 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
10100 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
10101 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
10102 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
10103 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
10104 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
10105 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
10106 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
10107 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
10108 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
10109 g-altcon.adb: Minor reformatting
10111 ada-tree.h: Delete empty line.
10113 ali.ads: Minor reformatting
10114 Clarification of comments.
10115 Minor spelling correction
10117 * exp_dbug.adb: Add Warnings Off to suppress new warning
10119 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
10122 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
10125 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
10127 * a-textio.ads: Reorder the standard input/output/error declarations
10130 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
10132 * par-ch2.adb: Recognize RM specially in errout
10133 Change 'R'M to RM in all error messages
10135 * scng.adb: Recognize RM specially in errout
10137 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
10138 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
10140 * s-direio.adb: Add missing routine header box.
10142 * sem_attr.ads: Add ??? comments
10144 * sem_eval.adb: Recognize RM specially in errout
10145 Change 'R'M to RM in all error messages
10147 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
10149 * s-tasinf.ads: Fix minor comment typo.
10151 * a-cihama.adb: Minor comment addition
10153 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
10156 * s-tasinf-tru64.ads: Fix minor comment typo.
10158 * itypes.ads: Comment update.
10160 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
10163 * argv.c: Added protection against null gnat_argv and gnat_envp.
10165 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
10166 warning message when Tolerate_Consistency_Errors is True.
10168 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
10169 Any_Id, as this subprogram is only applicable to *type* entities (it
10170 sets RM_Size). Instead initialize just Esize and Alignment.
10172 2007-08-14 Bob Duff <duff@adacore.com>
10174 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
10175 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
10176 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
10177 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
10178 a-coorse.ads (Next): Applied pragma Inline.
10179 Make all Containers packages Remote_Types (unless they are already
10181 (Previous): applied pragma Inline
10182 (Elements_Type): is now a record instead of an array
10184 2007-08-14 Thomas Quinot <quinot@adacore.com>
10186 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
10188 (Set_Item): When the new item is an element of the currently allocated
10189 table passed by reference, save a copy on the stack if we're going
10190 to reallocate. Also, in Table.Set_Item, make sure we test the proper
10191 variable to determine whether to call Set_Last.
10193 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
10194 symbols-vms.adb, symbols-processing-vms-alpha.adb,
10195 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
10196 some occurrences of the pattern
10198 T.Table (T.Last) := Value;
10199 with a cleaner call to
10202 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10203 Gary Dismukes <dismukes@adacore.com>
10204 Thomas Quinot <quinot@adacore.com>
10206 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
10207 derived type with interface progenitors use the analyzed formal as the
10208 parent of the actual, to create renamings for all the inherited
10209 operations in Derive_Subprograms.
10210 (Collect_Previous_Instances): new procedure within of
10211 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
10212 unit being loaded, to ensure that the generation of global symbols is
10213 consistent in different compilation modes.
10214 (Is_Tagged_Ancestor): New function testing the ancestor relation that
10215 takes progenitor types into account.
10216 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
10217 traversing over the primitives of the formal and actual types to locate
10218 any abstract subprograms of the actual type that correspond to a
10219 nonabstract subprogram of the formal type's ancestor type(s), and issue
10220 an error if such is found.
10221 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
10222 Instantiate_Package_Body, Instantiate_Subprogram_Body):
10223 Remove bogus guard around calls to Inherit_Context.
10224 (Reset_Entity): If the entity is the selector of a selected component
10225 that denotes a named number, propagate constant-folding to the generic
10226 template only if the named number is global to the generic unit.
10227 (Set_Instance_Env): Only reset the compilation switches when compiling
10228 a predefined or internal unit.
10230 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10232 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
10233 parameter to determine whether operation applies to the prefix.
10234 (Complete_Object_Operation): If actual has an access type and
10235 controlling formal is not an in_parameter, reject the actual if it is
10236 an access_to_constant type.
10237 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
10238 type, the candidate operations are found in the scope of declaration of
10239 the type, because the type has no primitive subprograms.
10240 (Analyze_Selected_Component): If prefix is class-wide, and root type is
10241 a private extension, only examine visible components before trying to
10242 analyze as a prefixed call.
10243 Change Entity_List to Type_To_Use, for better readability.
10244 (Has_Fixed_Op): Use base type when checking whether the type of an
10245 operator has a user-defined multiplication/division
10246 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
10247 user-defined operators are available for fixed-point types.
10249 2007-08-14 Thomas Quinot <quinot@adacore.com>
10250 Ed Schonberg <schonberg@adacore.com>
10252 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
10253 formal At_Any_Place indicating, when True, that we want to test for
10254 availability of the stream attribute at any place (as opposed to the
10255 current visibility context only).
10256 (Missing_Read_Write_Attributes): A stream attribute is missing for the
10257 purpose of enforcing E.2.2(8) only if it is not available at any place.
10258 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
10259 when checking the legality of an extension aggregate in a preelaborable
10260 package. Treat the literal null as a valid default expression in a
10261 component declaration for a type with preelaborable initialization.
10262 A limited interface is a legal progenitor for the designated type of a
10263 remote access to class-wide type.
10265 2007-08-14 Thomas Quinot <quinot@adacore.com>
10266 Ed Schonberg <schonberg@adacore.com>
10268 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
10269 reference): Use correct entity as denoted entity for the selector of
10270 the rewritten node.
10271 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
10272 setting the Referenced_As_LHS flag for entities that are implicitly
10274 (Find_Type): If the type is an internally generated incomplete type,
10275 mark the full view as referenced, to prevent spurious warnings.
10276 (Find_Selected_Component, Has_Components): Handle properly non-limited
10277 views that are themselves incomplete types.
10278 Handle interfaces visible through limited-with clauses.
10279 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
10280 subprogram generic actual for which we have generated a renaming.
10281 Warn when the renaming introduces a homonym of
10282 the renamed entity, and the renamed entity is directly visible.
10284 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10285 Hristian Kirtchev <kirtchev@adacore.com>
10287 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
10288 appear in the subtree to the current allocator if it is not a static
10290 (Resolve_Allocator): Perform cleanup if resolution has determined that
10291 the allocator is not a coextension.
10292 (Resolve): Skip an interpretation hidden by an abstract operator only
10293 when the type of the interpretation matches that of the context.
10294 (Resolve): When looping through all possible interpretations of a node,
10295 do not consider those that are hidden by abstract operators.
10296 (Resolve_Actuals): When verifying that an access to class-wide object
10297 is an actual for a controlling formal, ignore anonymous access to
10298 subprograms whose return type is an access to class_wide type.
10299 (Resolve_Slice): If the prefix of the slice is a selected component
10300 whose type depends on discriminants, build its actual subtype before
10301 applying range checks on the bounds of the slice.
10302 (Valid_Conversion): In an instance or inlined body, compare root types,
10303 to prevent anomalies between private and public views.
10304 (Resolve): Improve error message for ambiguous fixed multiplication
10305 expressions that involve universal_fixed multiplying operations.
10307 2007-08-14 Javier Miranda <miranda@adacore.com>
10308 Hristian Kirtchev <kirtchev@adacore.com>
10310 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
10311 location to allow the correct generation of errors in case of
10312 restrictions applied to the expanded code.
10313 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
10314 function if the condition does not reference them.
10315 (Expand_Entry_Body_Declarations): Mark the index constant as having a
10318 2007-08-14 Thomas Quinot <quinot@adacore.com>
10319 Pablo Oliveira <oliveira@adacore.com>
10321 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
10322 typecode parameters for a union (in a variant record), remove
10323 extraneous layer of Any wrapping for member label.
10324 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
10325 elabration statements, register the package with the name server
10326 at the beginning, not at the end, of the elaboration statements so
10327 that they can create remote access to subprogram values that designate
10328 remote subprograms from the package.
10330 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10332 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
10333 values to compute the number of seconds since the Unix Epoc in order to
10334 account for Daylight Savings Time. Perform special processing for dates
10335 that are earlier than the Unix Epoc to obtain a negative number.
10337 2007-08-14 Emmanuel Briot <briot@adacore.com>
10339 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
10342 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
10344 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
10345 binder-generated file is not in Ada.
10346 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
10347 recorded in the ALI file.
10348 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
10350 2007-08-14 Vincent Celier <celier@adacore.com>
10352 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
10353 (Output_Source): Do nothing if parameter is No_Sdep_Id
10355 * make.adb (Gnatmake): Do not rebuild an archive simply because a
10356 shared library it imports has a later time stamp.
10357 (Check): Resolve the symbolic links in the path name of the object
10359 Check that the ALI file is in the correct object directory
10360 Check if a file name does not correspond to the mapping of units
10362 (Display_Version): New procedure
10363 (Initialize): Process switches --version and --help
10364 Use type Path_Name_Type for path name
10366 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
10368 * impunit.adb: Re-organize System.Random_Numbers and
10369 GNAT.Random_Numbers and add to builds.
10371 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
10373 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
10375 * a-assert.ads, a-assert.adb: New files.
10377 2007-08-14 Gary Dismukes <dismukes@adacore.com>
10379 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
10380 if AAMP_On_Target is True, then the size of the type encompasses two
10381 addresses (a static link and a subprogram address), except in the case
10382 of library-level access types.
10384 2007-08-14 Vincent Celier <celier@adacore.com>
10386 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
10388 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10389 possible trailing spaces.
10390 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10392 2007-08-14 Javier Miranda <miranda@adacore.com>
10394 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
10395 null-excluding access types.
10397 2007-08-14 Javier Miranda <miranda@adacore.com>
10399 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
10400 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
10401 of private types add missing check on matching interfaces in the
10402 partial and full declarations.
10403 (Analyze_Protected_Type): Code cleanup.
10404 (Analyze_Task_Type): Code cleanup.
10406 2007-08-14 Javier Miranda <miranda@adacore.com>
10408 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
10409 generated interface thunk.
10411 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10413 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
10414 obsolescent warning on application of 'Class to an incomplete type.
10416 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
10417 prevent obsolescent warning on application of 'Class to an incomplete
10420 2007-08-14 Pascal Obry <obry@adacore.com>
10422 * s-fileio.adb (Is_Open): Add check for usability of the underlying
10425 2007-08-14 Cyrille Comar <comar@adacore.com>
10427 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
10428 since it is potentially used in cases implying double finalization of
10431 2007-08-14 Jose Ruiz <ruiz@adacore.com>
10433 * s-tasini.adb (Get_Stack_Info): Move this function to
10434 System.Soft_Links.Tasking because it is common to the full and the
10435 restricted run times.
10436 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
10437 in SSL.Tasking.Init_Tasking_Soft_Links.
10439 * s-solita.adb (Get_Stack_Info): Function moved from
10440 System.Tasking.Initialization because it is common to the full and the
10441 restricted run times.
10442 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
10444 2007-08-14 Arnaud Charlet <charlet@adacore.com>
10446 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
10447 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
10448 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
10451 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
10454 2007-08-14 Gary Dismukes <dismukes@adacore.com>
10456 * s-veboop.adb (SU): New named number initialized to
10457 System.Storage_Unit.
10458 (True_Val): The initialization expression is revised to use SU (=
10459 Storage_Unit) rather than assuming 8 for the component size of an
10460 unpacked Boolean array.
10462 2007-08-14 Tristan Gingold <gingold@adacore.com>
10464 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
10466 * tb-ivms.c: New file.
10468 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
10470 2007-08-14 Geert Bosch <bosch@adacore.com>
10472 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
10473 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
10474 Add required linker pragmas for automatically linking with the gnalasup
10475 linear algebra support library, and the systems math library.
10476 Rename cdot to cdotu and zdot to zdotu.
10477 Update header comment to describe purpose of package.
10479 2007-08-14 Thomas Quinot <quinot@adacore.com>
10481 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
10482 an explicitly specified Associated_Final_Chain, use that list.
10483 (Expand_N_Package_Body): Build dispatch tables of library level tagged
10485 (Expand_N_Package_Declaration): Build dispatch tables of library level
10486 tagged types. Minor code cleanup.
10488 2007-08-14 Vincent Celier <celier@adacore.com>
10490 * gnatchop.adb (Terminate_Program): Remove exception and use
10491 Types.Terminate_Program instead.
10493 * osint.ads, osint.adb (Current_Exit_Status): New global variable
10494 (Find_Program_Name): Added protection against empty name.
10495 (OS_Exit_Through_Exception): New procedure
10497 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
10498 (OS_Exit_Default): New procedure that contains the previous
10499 implementation of procedure OS_Exit.
10500 (Final_Value): Remove obsolete Interix stuff.
10502 2007-08-14 Thomas Quinot <quinot@adacore.com>
10504 * g-socket.ads: Reorganize example code so that it also works on
10507 2007-08-14 Tristan Gingold <gingold@adacore.com>
10509 * g-trasym.ads: AIX now supports symbolic backtraces.
10511 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10513 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
10514 units being loaded to detect circularities. A circularity may be
10515 present even if the current chain of pending units to load starts from
10516 a limited_with_clause.
10518 * lib-load.ads: Change profile of Load_Unit to use a with_clause
10519 rather than a boolean flag, in order to detect circularities in
10522 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
10523 than propagating the From_Limited_With flag, in order to handle
10524 properly circularities involving with_clauses.
10526 2007-08-14 Nicolas Setton <setton@adacore.com>
10528 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
10531 2007-08-14 Arnaud Charlet <charlet@adacore.com>
10533 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
10534 to build for libgnala.
10535 libgnat: Add rules to build libgnala.a
10536 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
10537 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
10538 Add s-osinte-vxworks-kernel.adb to the target pairs of the
10539 kernel run-time lib for VxWorks 6, which would provide a different
10540 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
10541 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
10542 running ZCX by default.
10543 Add g-sttsne-locking to LynxOS version.
10544 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
10545 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
10547 * system-darwin-x86.ads: New file.
10549 * Make-lang.in: Delete files before copying onto them, so if they are
10550 read-only, the copy won't fail.
10551 Update dependencies
10553 2007-08-14 Pascal Obry <obry@adacore.com>
10555 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
10558 2007-08-14 Vincent Celier <celier@adacore.com>
10560 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
10561 (Gcc): Initialize Gcc_Name at the first call
10563 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10565 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
10566 with_clauses of the enclosing unit when analyzing the package
10567 specification of a nested instance.
10569 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10571 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
10572 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
10573 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
10574 layout of N_Allocator.
10576 2007-08-14 Thomas Quinot <quinot@adacore.com>
10578 * rtsfind.adb (Check_RPC): Add PCS version check.
10580 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
10581 (Gnat_Free_Software): New function.
10583 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
10584 the PCS_Version value from s-parint, used to check that it is consistent
10585 with what exp_dist expects.
10587 * s-parint.ads (PCS_Version): New entity for checking consistency
10588 between exp_dist and PCS.
10590 * gen-soccon.c: (SO_REUSEPORT): New constant.
10592 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10594 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
10595 variable Sub_Second to Duration in order to accomodate a larger range
10596 of arithmetic operations.
10598 2007-08-14 Bob Duff <duff@adacore.com>
10600 * g-sttsne-locking.ads: Move comments from spec to body.
10601 * g-sttsne-locking.adb: Move comments from spec to body.
10602 * g-sttsne-vxworks.ads: Removed.
10603 * g-sttsne-vxworks.adb: Removed.
10605 2007-08-11 Ian Lance Taylor <iant@google.com>
10607 * misc.c (gnat_get_alias_set): Change return type to
10610 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10612 * decl.c, utils2.c: Fix whitespace in last change.
10614 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10616 * decl.c (compare_field_bitpos): Constify.
10617 * utils2.c (compare_elmt_bitpos): Likewise.
10619 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
10621 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
10622 anonymous access type.
10623 (pthread_sigmask): Now take an access sigset_t.
10625 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
10627 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
10629 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
10631 PR tree-optimization/25737
10632 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
10634 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
10636 * trans.c (Attribute_to_gnu): When subtracting an
10637 offset from a pointer, use POINTER_PLUS_EXPR with
10638 NEGATE_EXPR instead of MINUS_EXPR.
10639 (gnat_to_gnu): Likewise.
10640 * utils.c (convert): When converting between
10641 thin pointers, use POINTER_PLUS_EXPR and sizetype
10643 * utils2.c (known_alignment): POINTER_PLUS_EXPR
10644 have the same semantics as PLUS_EXPR for alignment.
10645 (build_binary_op): Add support for the semantics of
10646 POINTER_PLUS_EXPR's operands.
10647 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
10649 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
10651 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
10652 of get_signed_or_unsigned_type.
10653 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
10655 2007-06-11 Bob Duff <duff@adacore.com>
10656 Thomas Quinot <quinot@adacore.com>
10658 * g-stsifd-sockets.adb (Create): Work around strange behavior of
10659 'bind' on windows that causes 'connect' to fail intermittently, by
10660 retrying the 'bind'.
10661 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10663 2007-06-10 Duncan Sands <baldrick@free.fr>
10665 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
10666 than to void, for the fields when making a new fat pointer type.
10667 (gnat_substitute_in_type): Now substitute_in_type.
10668 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
10669 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
10670 * utils.c (update_pointer_to): Update fat pointers by updating the
10671 dummy node pointers used for the fields.
10673 2007-06-06 Thomas Quinot <quinot@adacore.com>
10674 Bob Duff <duff@adacore.com>
10676 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
10677 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
10678 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
10679 constant Thread_Blocking_IO, always True by default, set False
10680 on a per-runtime basis.
10681 (Need_Netdb_Buffer): New constant.
10683 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
10684 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
10687 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
10688 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
10689 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
10690 child package Task_Safe_NetDB
10691 (Host_Error_Messages): Add stub body.
10692 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10694 * g-soccon-mingw.ads: Add Windows-specific constants.
10695 (Need_Netdb_Buffer): New constant.
10696 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
10697 wrapper and import inet_addr(3) from the standard sockets library
10699 (In_Addr): Add alignment clause.
10700 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10702 2007-06-06 Robert Dewar <dewar@adacore.com>
10704 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10705 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
10706 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
10707 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
10708 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
10709 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
10710 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
10711 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
10712 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
10713 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
10714 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
10715 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
10716 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
10717 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
10718 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
10719 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
10720 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
10721 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
10722 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
10723 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
10724 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
10725 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
10726 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
10727 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
10728 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
10729 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
10730 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
10731 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
10732 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
10733 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
10734 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
10735 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
10736 Unchecked_* by Ada.Unchecked_*
10738 2007-06-06 Robert Dewar <dewar@adacore.com>
10740 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
10741 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
10742 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
10743 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
10744 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
10745 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
10747 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
10748 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
10749 s-tasloc.adb, s-tasloc.ads: New files.
10751 2007-06-06 Bob Duff <duff@adacore.com>
10753 * g-expect-vms.adb:
10754 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
10755 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
10756 (Send_Signal, Close): Raise Invalid_Process if the process id is
10758 (Pattern_Matcher_Access): Is now a general access type to be able to
10759 use aliased string.
10761 2007-06-06 Thomas Quinot <quinot@adacore.com>
10762 Arnaud Charlet <charlet@adacore.com>
10764 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
10765 (SIGEMT is now used instead of SIGTERM on AIX).
10767 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
10768 (Time_Slice_Supported): Set to True.
10769 Use SIGEMT instead of SIGTERM as SIGADAABORT.
10771 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10773 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
10774 (Time, Time)): Use To_Relative_Time rather than manual calculation to
10775 express the bounds of Duration as Time. Raise Time_Error when the
10776 result is greater or equal to the higher bound of Duration (on the
10778 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
10779 Ada_High_And_Leaps.
10780 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
10781 Ada_High_And_Leaps.
10782 ("-" (Time, Time)): Reorder code.
10783 (All_Leap_Seconds): Removed.
10784 (Arithmetic_Operations.Add): Remove sign related kludge.
10785 (Arithmetic_Operations.Difference): Control the leaps seconds processing
10786 with flag Leap_Support.
10787 (Arithmetic_Operations.Subtract): Remove sign related kludge.
10788 (Check_Within_Time_Bounds): New procedure.
10789 (Clock): Control the leap seconds processing with flag Leap_Support.
10790 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
10791 (Formatting_Operations.Split): Control the leap seconds processing with
10793 (Formatting_Operations.Time_Of): Control the leaps seconds processing
10794 with flag Leap_Support. Adjust the year, month and day (if applicable)
10795 when the value of day seconds designates a new day.
10796 (Split): Use parameter associations for better readability. Integrate
10798 (Time_Of): Use parameter associations for better readability. Integrate
10801 * a-calfor.adb (Split): Use parameter associations for better
10802 readability. Integrate flag Is_Ada_05.
10803 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
10804 better readability. Integrate flag Is_Ada_05.
10806 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10808 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
10809 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
10810 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
10811 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
10812 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
10813 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
10814 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
10815 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
10816 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
10817 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
10818 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
10819 time when entering this routine to detect a backward clock setting
10820 (manual setting or DST adjustment), to avoid waiting for a longer delay
10822 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
10823 Remove handling of deferred priority change, and replace by setting the
10824 task priority directly, as required by AI-188.
10826 (Max_Task_Image_Length): New constant.
10827 Replace Warnings (Off) by Unreferenced pragma, cleaner.
10828 (Dynamic_Priority_Support): Removed, no longer needed.
10829 (Poll_Base_Priority_Change): Ditto.
10830 (Set_Ceiling): Add this procedure to change the ceiling priority
10831 associated to a lock. This is a dummy implementation because dynamic
10832 priority ceilings are not supported by the underlying system.
10834 * a-dynpri.adb (Set_Priority): Take into account case where Target is
10835 accepting a RV with its priority boosted.
10836 Remove handling of deferred priority change, and replace by setting the
10837 task priority directly, as required by AI-188.
10839 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
10841 Remove handling of deferred priority change, and replace by setting the
10842 task priority directly, as required by AI-188.
10843 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
10844 of Self_Id earlier.
10846 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
10847 (Poll_Base_Priority_Change): Removed.
10848 Code clean up: use SSL.Current_Target_Exception.
10850 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
10851 to run as this is a potentially dispatching point.
10852 (Call_Synchronous): Use Local_Defer_Abort.
10853 (Callable): Relax assertion.
10854 (Selective_Wait): Relax assertion in case abort is not allowed.
10855 Remove handling of deferred priority change, and replace by setting the
10856 task priority directly, as required by AI-188.
10858 * s-tasuti.adb (Make_Passive): Adjust assertions.
10859 Remove handling of deferred priority change, and replace by setting the
10860 task priority directly, as required by AI-188.
10862 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10864 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10865 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10866 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
10867 system-vxworks-mips.ads, system-vxworks-alpha.ads,
10868 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
10869 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
10870 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
10871 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
10872 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
10873 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
10874 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
10875 This patch changes the largest non-binary modulus from 2**31-1 to
10877 (Compiler_System_Version): Removed, no longer used.
10878 Clean up system files by removing flags only used on a single target.
10879 Also remove obsolete flags, only used during bootstrap from system.ads
10880 (Address): Add a pragma Preelaborable_Initialization.
10882 * system-aix.ads: Ditto.
10883 (GCC_ZCX_Support): Set to true.
10884 Update priority range on AIX and map Ada priorities to target
10885 priorities appropriately for different scheduling policies.
10887 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
10889 2007-06-06 Vincent Celier <celier@adacore.com>
10891 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
10892 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
10894 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
10895 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
10896 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
10897 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10898 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
10899 MLib.Tgt, containing the default versions of the exported subprograms.
10900 For each platform, create a specific version of the body of new child
10901 package MLib.Tgt.Specific that contains only the body of subprograms
10902 that are different from the default.
10903 (Archive_Builder_Append_Options): New function.
10905 2007-06-06 Matthew Gingell <gingell@adacore.com>
10907 * s-osinte-aix.adb: Map Ada priorities to target priorities
10908 appropriately for different scheduling policies.
10910 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10912 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
10914 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
10915 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
10917 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
10919 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
10920 Noop on VMS, added for interface commonality.
10922 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
10923 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10924 Olivier Hainque <hainque@adacore.com>
10926 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
10927 renamed expression of a full renaming at toplevel.
10928 (gnat_to_gnu_entity, case object): If not defining, do not look inside
10929 the values the constant is initialized to if it is an N_Allocator.
10930 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
10931 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
10932 (make_aligning_type): Accept an extra ROOM argument for storage to be
10933 made available before the aligned field, and an extra BASE_ALIGN
10934 argument for callers to pass the alignment guaranteed to be honored for
10935 the whole aligning object. Avoid call to finish_record_type, which only
10936 interferes with the sizes we want to set.
10937 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
10938 make_aligning_type for super-aligned objects on stack.
10939 (components_to_record): Pass the adjusted size of the type when creating
10940 fields in the qualified union for the variant part.
10941 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
10942 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
10944 (maybe_pad_type): Set TYPE_USER_ALIGN.
10945 (make_aligning_type): Likewise.
10946 ALIGN argument is unsigned int.
10947 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
10948 (gnat_to_gnu_param): Likewise, for parameters.
10949 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
10950 if it is constant and stems from a function call.
10951 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
10952 of the record is specified. Adjust accordingly.
10953 (adjust_packed): New static function.
10954 (gnat_to_gnu_field): Use it to adjust the packedness setting.
10955 (components_to_record): Likewise.
10956 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
10957 side-effects if the object is deemed constant.
10958 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
10959 type instead of merely finalizing it. Tidy.
10960 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
10961 <E_Access_Type>: Likewise.
10962 (defer_debug_incomplete_list): Rename to defer_finalize_list.
10963 (defer_debug_level): Delete.
10964 (gnat_to_gnu_entity) <debug_deferred>: Likewise
10965 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
10967 <E_Record_Type>: Do not explicitly defer finalizing the type.
10968 Adjust for write_record_type_debug_info renaming.
10969 <E_Subprogram_Type>: Likewise.
10970 Finalize deferred types right after deferred incomplete types are
10972 (rest_of_type_decl_compilation): New global function.
10973 (components_to_record): Rename defer_debug parameter to do_not_finalize.
10974 (components_to_record): Propagate the packedness to the fields of the
10975 qualified union type if there is a variant part.
10976 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
10977 instead of inline code to adjust the XUT field offsets.
10978 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
10979 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
10980 and write the debug info if the type derives from a discriminated one.
10981 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
10982 <E_Array_Subtype>: Likewise.
10983 <E_String_Literal_Subtype>: Likewise.
10984 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
10985 an alignment clause.
10986 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
10987 before giving warning.
10988 (prepend_one_attribute_to): New function, helper to prepend an attribute
10989 to an attribute list.
10990 (gnat_to_gnu_entity) <E_Procedure>: Use it.
10991 (prepend_attributes): Likewise.
10992 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
10993 <E_Array_Type>: Declare the padding type for the element type, if any.
10994 <E_Array_Subtype>: Likewise.
10995 (defer_limited_with): New variable.
10996 (Gigi_Equivalent_Type): New function.
10997 (gnat_to_gnu_entity): Use it at start and use result throughout.
10998 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
10999 Gigi_Equivalent_Type, support Limited_With, allow two levels of
11000 indirection, precompute if unconstrained array to simplify logic, and
11001 use defer_limited_with to defer elaboration of some types from limited
11003 (finalize_from_with_types): New function.
11005 2007-06-06 Gary Dismukes <dismukes@adacore.com>
11006 Eric Botcazou <ebotcazou@adacore.com>
11007 Tristan Gingold <gingold@adacore.com>
11008 Olivier Hainque <hainque@adacore.com>
11010 * trans.c (Identifier_to_gnu): Change test for deferred constant by
11011 adding guard that the entity is an E_Constant before testing presence
11012 of Full_view (and remove unnecessary test that entity is not a type).
11013 For a CONST_DECL used by reference, manually retrieve
11014 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
11015 (struct language_function): Move from utils.c to here.
11016 (struct parm_attr): New structure.
11017 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
11018 (f_parm_attr_cache): New macro.
11019 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
11020 expressions for the 'First, 'Last and 'Length attributes of the
11021 unconstrained array IN parameters.
11022 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
11023 Allocate the information structure for the function earlier, as well
11024 as the language-specific part.
11025 If the parameter attributes cache has been populated, evaluate the
11026 cached expressions on entry.
11027 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
11028 N_Procedure_Call_Statement and N_Indexed_Component.
11029 (Pragma_to_gnu): Translate inspection_point to an asm statement
11030 containaing a comment and a reference to the object (either its address
11031 for BLKmode or its value).
11032 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
11033 to go to DECL_INITIAL. Together with the size constraint relaxation
11034 in create_var_decl, enlarges the set of situations in which an
11035 identifier may be used as an initializer without implying elaboration
11037 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
11038 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
11040 (maybe_stabilize_reference): Remove lvalues_only parameter.
11041 (gnat_stabilize_reference): Adjust for above change.
11042 (gnat_to_gnu): Do not set location information on the result
11043 if it is a reference.
11044 (add_cleanup): Add gnat_node parameter and set the location of the
11046 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
11047 (Exception_Handler_to_gnu_zcx): Likewise.
11048 (gigi): Remove the cgraph node if the elaboration procedure is empty.
11049 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
11050 the former right after the latter.
11051 (start_stmt_group): Make global.
11052 (end_stmt_group): Likewise.
11053 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
11055 (gnu_program_error_label_stack): Likewise.
11056 (gigi): Initialize them.
11057 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
11058 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
11060 (push_exception_label_stack): New function.
11061 (takes_address): New function.
11063 * utils.c (struct language_function): Move to trans.c from here.
11064 (unchecked_convert): Do not wrap up integer constants in
11065 VIEW_CONVERT_EXPRs.
11066 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
11067 the latter for aggregate types, unexpected by later passes, and relax an
11068 arbitrary size constraint on the former.
11069 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
11070 to compare the sizes.
11071 (convert_vms_descriptor): When converting to a fat pointer type, be
11072 prepared for a S descriptor at runtime in spite of a SB specification.
11073 (shift_unc_components_for_thin_pointers): New function.
11074 (write_record_type_debug_info): For variable-sized fields, cap the
11075 alignment of the pointer to the computed alignment.
11076 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
11077 If REP_LEVEL is 2, do not compute the sizes.
11078 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
11079 (build_unc_object_type): Likewise.
11080 (declare_debug_type): New function.
11082 * ada-tree.def: USE_STMT: removed (not emitted anymore).
11084 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
11085 no statement is expandable anymore.
11086 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
11087 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
11088 when the user requested it explicitely.
11089 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
11091 (get_alias_set): Return alias set 0 for a type if
11092 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
11094 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
11095 (DECL_FUNCTION_STUB): New accessor macro.
11096 (SET_DECL_FUNCTION_STUB): New setter macro.
11098 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
11100 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
11103 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11105 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
11106 Rename to Abort_Task_Interrupt to be able to keep the same interface
11107 as the rest of the targets.
11109 * s-osinte-vxworks.ads s-osinte-vxworks.adb
11110 (To_VxWorks_Priority): Remove explicit "in" mode indicator
11112 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
11115 2007-06-06 Robert Dewar <dewar@adacore.com>
11117 * a-chahan.ads: Remove obsolescent pragmas
11119 * a-chlat1.ads: Minor reformatting
11121 2007-06-06 Robert Dewar <dewar@adacore.com>
11123 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
11126 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
11129 * errout.ads (Finalize): Changed interface
11130 (Output_Messages): New procedure
11131 (Compilation_Errors): New Interface
11133 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
11134 Finalize/Output_Messages interface for Errout
11135 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
11138 2007-06-06 Thomas Quinot <quinot@adacore.com>
11139 Olivier Hainque <hainque@adacore.com>
11140 Robert Dewar <dewar@adacore.com>
11142 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
11144 (Raise_Current_Excep): Call Debug_Raise_Exception just before
11145 propagation starts, to let debuggers know about the event in a reliable
11147 (Local_Raise): Moved to System.Exceptions
11148 More convenient to have this as a separate unit
11150 * s-except.adb, s-except.ads: New files.
11152 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
11153 Debug_Unhandled_Exception in System.Exceptions where it belongs
11154 together with a couple of other debug helpers.
11155 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
11156 the former Unhandled_Exception.
11158 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
11159 (Warn_No_Exception_Propagation): New procedure
11160 (Warn_If_No_Propagation): Rewritten for new warning generation
11161 (Expand_Exception_Handlers): New warning generation
11162 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
11163 (Add_Exception_Label): Use Special_Exception_Package_Used for test
11164 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
11165 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
11166 even if restriction is set (makes life easier in Check_Returns)
11167 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
11168 checking exception identities.
11169 (Expand_Local_Exception_Handlers): Do not optimize when all others case
11170 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
11171 block for handler (used by Check_Returns)
11172 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
11173 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
11174 remove all exception handlers when optimizing local raise statements.
11175 (Find_Local_Handler): Use Get_Renamed_Entity
11176 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
11177 marked analyzed after expanding exception handlers, do not generate
11178 redundant cleanup actions, because they have been constructed already.
11180 2007-06-06 Thomas Quinot <quinot@adacore.com>
11182 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
11183 presence of this categorization pragma is mandated by the language.
11184 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
11187 2007-06-06 Vincent Celier <celier@adacore.com>
11188 Robert Dewar <dewar@adacore.com>
11190 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
11191 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
11192 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
11193 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
11194 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
11195 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
11196 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
11197 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
11198 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
11199 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
11200 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
11202 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
11203 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
11204 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
11205 Use variables of types File_Name_Type and Unit_Name_Type in error
11207 (Get_Name): Add parameter Ignore_Special, and set it reading file name
11208 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
11210 Define flags Flag217-Flag230 with associated subprograms
11211 (Flag_Word5): New record type.
11212 (Flag_Word5_Ptr): New access type.
11213 (To_Flag_Word5): New unchecked conversion.
11214 (To_Flag_Word5_Ptr): Likewise.
11215 (Flag216): New function.
11216 (Set_Flag216): New procedure.
11218 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11220 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
11223 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
11225 2007-06-06 Javier Miranda <miranda@adacore.com>
11227 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
11229 (Object_Specific_Data_Array): This is now internal to the package.
11230 (Object_Specific_Data): This is now internal to the package.
11231 (Select_Specific_Data_Element): This is now internal to the package.
11232 (Select_Specific_Data_Array): This is now internal to the package.
11233 (Select_Specific_Data): This is now internal to the package.
11234 (Offset_To_Top_Function_Ptr): This is now public.
11235 (To_Offset_To_Top_Function_Ptr): Removed.
11236 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
11237 local to subprogram Offset_To_Top.
11238 (Predefined_DT): Removed.
11239 (Typeinfo_Ptr): Removed.
11240 (OSD): This function is now internal to this package.
11241 (SSD): This function is now internal to this package.
11242 (DT): New function that displaces the pointer to the table of primitives
11243 to get access to the enclosing wrapper record.
11244 (IW_Membership): Code cleanup.
11245 (Offset_To_Top): Code cleanup.
11246 (Predefined_DT): Removed.
11247 (Register_Interface_Tag): Removed.
11248 (Set_Interface_Table): Removed.
11249 (Set_Offset_Index): Removed.
11250 (Set_Offset_To_Top): Code cleanup.
11251 (Set_OSD): Removed.
11252 (Set_Signature): Removed.
11253 (Set_SSD): Removed.
11254 (Set_Tagged_Kind): Removed.
11255 (Typeinfo_Ptr): Removed.
11257 (Displace): Add missing check on null actual.
11259 * exp_disp.ads, exp_disp.adb
11260 (Select_Expansion_Utilities): Removed.
11261 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
11262 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
11263 the interface requires a new parameter.
11264 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
11265 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
11266 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
11267 Done to remove package Select_Expansion_Utilities.
11268 (Make_DT): New implementation for statically allocated dispatch tables.
11269 (Make_Secondary_DT): Moved to the scope of Make_DT.
11270 (Register_Primitive): Code cleanup plus incoporate the use of the new
11271 function DT_Address_Attribute.
11272 (Expand_Interface_Thunk): The profile of this subprogram has been
11273 changed to return the Thunk_Id and the corresponding code.
11274 (Fill_DT_Entry): Removed. Its functionality is now provided by
11275 subprogram Register_Primitive.
11276 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
11277 subprogram Register_Primitive.
11278 (Register_Primitive): New subprogram that incorporates the previous
11279 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
11280 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
11281 was only required to call Make_DT_Access_Action, which is now removed.
11282 (Ada_Actions): Removed
11283 (Action_Is_Proc): Removed
11284 (Action_Nb_Arg): Removed
11285 Replace all the calls to Make_DT_Access_Action by direct calls to
11286 Make_Procedure_Call_Statement or Make_Function_Call.
11287 (Set_DTC_Entity_Value): New subprogram.
11288 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
11289 (Expand_Interface_Thunk): Add missing support for primitives that are
11290 functions with a controlling result (case in which there is no need
11291 to generate the thunk).
11293 * exp_atag.ads, exp_atag.adb
11294 (Build_DT): New subprogram that displaces the pointer to reference the
11295 base of the wrapper record.
11296 (Build_Typeinfo_Offset): Removed.
11297 (RTE_Tag_Node): Removed.
11298 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
11299 (Build_Get_RC_Offset): Removed.
11300 (Build_Inherit_Predefined_Prims): Removed.
11301 (Build_Inherit_TSD: Removed.
11302 (Build_New_TSD): Removed.
11303 (Build_Set_External_Tag): Removed.
11304 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
11305 (Build_Set_Prim_Op_Address): Add documentation.
11306 (Build_Set_TSD): Removed.
11308 * rtsfind.ads, rtsfind.adb
11309 (Load_Fail): If load fails and we are not in configurable run-time
11310 mode, then raise Unrecoverable_Error.
11311 (Text_IO_Kludge): Generate an error message if a run-time library is
11312 not available in a given run-time (ie. zfp run-time).
11313 (RTE_Record_Component): Add code to check that the component we search
11314 for is not found in two records in the given run-time package.
11315 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
11316 (RE_DT_Predef_Prims_Offset): New entity
11317 (RE_Static_Offset_To_Top): New entity
11318 (RE_HT_Link): New entity.
11319 (System_Address_Image): Addition of this run-time package.
11320 (RE_Address_Image): New entity.
11321 (RE_Abstract_Interface): Removed.
11322 (RE_Default_Prim_Op_Count): Removed.
11323 (RE_DT_Entry_Size): Removed.
11324 (RE_DT_Min_Prologue_Size): Removed.
11325 (RE_DT_Prologue_Size): Removed.
11326 (RE_Ifaces_Table_Ptr): Removed.
11327 (RE_Interface_Data_Ptr): Removed.
11328 (RE_Type_Specific_Data): Removed.
11329 (RE_Primary_DT): Removed.
11330 (RE_Register_Interface_Tag): Removed.
11331 (RE_Set_Offset_Index): Removed.
11332 (RE_Set_OSD): Removed.
11333 (RE_Set_SSD): Removed.
11334 (RE_Set_Signature): Removed.
11335 (RE_Set_Tagged_Kind): Removed.
11336 (RE_Address_Array): New entity.
11337 (RE_DT): New entity.
11338 (RE_Iface_Tag): New entity.
11339 (RE_Interfaces_Table): New entity.
11340 (RE_No_Dispatch_Table): New entity.
11341 (RE_NDT_Prims_Ptr): New entity.
11342 (RE_NDT_TSD): New entity.
11343 (RE_Num_Prims): New entity.
11344 (RE_Offset_To_Top_Function_Ptr): New entity.
11345 (RE_OSD_Table): New entity.
11346 (RE_OSD_Num_Prims): New entity.
11347 (RE_Predef_Prims): New entity
11348 (RE_Predef_Prims_Table_Ptr): New entity.
11349 (RE_Primary_DT): New entity.
11350 (RE_Signature): New entity.
11351 (RE_SSD): New entity.
11352 (RE_TSD): New entity.
11353 (RE_Type_Specific_Data): New entity.
11354 (RE_Tag_Kind): New entity.
11356 2007-06-06 Thomas Quinot <quinot@adacore.com>
11358 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
11359 C imported variable.
11360 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
11363 2007-06-06 Robert Dewar <dewar@adacore.com>
11365 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
11368 2007-06-06 Vincent Celier <celier@adacore.com>
11370 * a-tifiio.adb (Put, internal): For negative numbers, check that there
11371 is room for at least one digit and the minus sign.
11372 (Put.Put_Character): Never put a character outside of the range of
11375 2007-06-06 Olivier Hainque <hainque@adacore.com>
11376 Eric Botcazou <ebotcazou@adacore.com>
11378 * utils2.c (build_allocator): Provide the extra arguments to
11379 make_aligning_type for super-aligned objects allocated from the default
11380 pool. Leave enough room for a pointer before the aligning field, and
11381 store the system's allocator return value there.
11382 (build_call_alloc_dealloc): When releasing a super-aligned object,
11383 retrieve the system's allocator return value from where build_allocator
11384 has stored it, just ahead of the adjusted address we are passed.
11385 (build_call_raise): Handle properly the generation of line numbers when
11386 the node is marked No_Location.
11387 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
11388 by using DECL_UID on ties.
11389 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
11391 (build_call_raise): Handle converting exception into goto; support new
11393 (build_component_ref): Add new arg to build_call_raise.
11395 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11397 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
11398 "." in the case of nnn.xxx when nnn terminates with an underscore.
11399 Parse the remaining "#" or ":" in the case of nnn#.xxx#
11401 2007-06-06 Robert Dewar <dewar@adacore.com>
11403 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
11405 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11406 Vincent Celier <celier@adacore.com>
11407 Robert Dewar <dewar@adacore.com>
11409 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
11411 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
11412 ((destructor)) for adafinal, even when switch -a is used.
11413 Do not issue pragma Linker_Destructor for adafinal when switch -a is
11415 (Gen_Object_Files_Options): Add formatting of Linker Options, when
11416 Output_Linker_Option_List is set. Suppress this formatting when
11417 Zero_Formatting is set.
11418 Add case for CLI_Target.
11419 (System_Restrictions_Used): New flag, used to avoid generating with of
11420 System_Restrictions and initialization of the data unless there is
11421 some use of System.Restrictions in the partition.
11422 (Check_System_Restrictions_Used): New procedure
11424 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
11425 since we only with this unit in the binder file if it is used elsewhere
11428 2007-06-06 Vincent Celier <celier@adacore.com>
11430 * bindusg.adb: Add line for @<response file>
11431 Add lines for new switches -R and -Z
11433 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
11434 hierarchy in the list of files of the closure when -R is used
11435 (Gnatbind): Accept arguments starting with '@' to indicate response
11436 files and take the arguments from the response files.
11437 If List_Closure is set, display the referenced files
11439 2007-06-06 Javier Miranda <miranda@adacore.com>
11440 Robert Dewar <dewar@adacore.com>
11441 Ed Schonberg <schonberg@adacore.com>
11443 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
11444 which the address-clause is applied to in-mode actuals (allowed by
11446 (Apply_Discriminant_Check): Do not generate a check if the type is
11447 constrained by a current instance.
11448 (Activate_Division_Check): New procedure
11449 (Activate_Overflow_Check): New procedure
11450 (Activate_Range_Check): New procedure
11451 Call these new Activate procedures instead of setting flags directly
11452 (Apply_Array_Size_Check): Removed, no longer needed.
11453 Code clean up: remove obsolete code related to GCC 2.
11454 (Get_E_Length): Protect against bomb in case scope is standard
11455 (Selected_Range_Checks): If the node to be checked is a conversion to
11456 an unconstrained array type, and the expression is a slice, use the
11457 bounds of the slice to construct the required constraint checks.
11458 Improve NOT NULL error messages
11459 (Apply_Constraint_Check): If the context is a null-excluding access
11460 type, diagnose properly the literal null.
11462 2007-06-06 Pascal Obry <obry@adacore.com>
11464 * clean.adb (Clean_Archive): Use untouched casing for the archive name
11465 and the corresponding .deps file.
11466 (Clean_Interface_Copy_Directory): Use untouched casing for the library
11467 src directory. Minor code-clean-up. Use untouched casing for files
11468 read into the library src dir.
11469 (Clean_Library_Directory): Idem.
11470 (Parse_Cmd_Line): Accept new switch -aP
11472 2007-06-06 Javier Miranda <miranda@adacore.com>
11473 Ed Schonberg <schonberg@adacore.com>
11474 Robert Dewar <dewar@adacore.com>
11475 Eric Botcazou <ebotcazou@adacore.com>
11476 Arnaud Charlet <charlet@adacore.com>
11478 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
11479 applicable to types that have the With_Type flag set. Returns the
11480 non-limited view of the type, if available, otherwise the type itself.
11481 For class-wide types, there is no direct link in the tree, so we have
11482 to retrieve the class-wide type of the non-limited view of the Etype.
11483 New attributes Static_Initialization and Static_Elaboration_Desired.
11484 Remove the pragma Thread_Body, and the associated flag
11485 Is_Thread_Body in entities, and all related code.
11486 (Suppress_Value_Tracking_On_Call): New flag
11487 E_Exception has Esize and Alignment fields
11488 (Universal_Aliasing): New function.
11489 (Set_Universal_Aliasing): New procedure.
11490 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
11491 (Check_Nested_Access): New procedure.
11492 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11493 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11494 (Related_Interface): New attribute. Present in dispatch table pointer
11495 components of records. Set to point to the entity of the corresponding
11497 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
11498 (Original_Access_Type): Remove, not needed.
11499 (Root_Type): Handle properly subtypes of class-wide-types.
11502 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
11503 class-wide types visible through limited-with clauses.
11504 (Try_Primitive_Operation): When examining all primitive operations of a
11505 tagged type, do not consider subprograms labeled as hidden unless they
11506 belong to a private generic type with a tagged parent.
11507 (Try_Object_Operation): Extensive rewriting, to handle properly various
11508 overloading cases, when several ancestors may have class-wide operations
11509 that are possible candidates, and when the overloaded functions return
11510 array types and have defaulted parameters so that the call may be
11511 interpreted as an indexing.
11512 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
11513 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
11514 successive actuals before analyzing the call itself.
11515 (Try_Primitive_Operation): A primitive operation is compatible with the
11516 prefix if the prefix has a synchronized type and the type of the formal
11517 is its corresponding record, as can be the case when the primitive
11518 operation is declared outside of the body of the type.
11519 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
11520 perform homonym traversal, looking for class-wide operation matches
11521 (formerly done in statements of Try_Class_Wide_Operation). Matches on
11522 access parameters are now restricted to anonymous access types.
11523 (Mark_Allocator): An allocator with a discriminant association parent is
11525 (Try_One_Prefix_Interpretation): If the type of the object is
11526 incomplete, as can be happen when it is a limited view obtained through
11527 a limited_with_clause, the selected component is not part of a prefixed
11529 (Complete_Object_Operation): Diagnose properly an object that is not
11530 aliased when the corresponding controlling formal is an access
11532 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
11533 ambiguous calls in prefixed notation, where two primitives differ only
11534 in that the controlling argument of one is an access parameter.
11536 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
11537 whether a function that returns an unconstrained type can be inlined.
11538 (Process_Formals): Diagnose properly the illegal use of an incomplete
11539 type in the profile of an access_to_subprogram declaration.
11540 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
11541 operations are attached to the corresponding record.
11542 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
11543 When processing a primitive of a concurrent type which implements an
11544 interface change the type of all controlling formals to that of the
11545 corresponding record type.
11546 (Check_Synchronized_Overriding): Relax the conditional logic when trying
11547 to determine the tagged type to which a primitive belongs.
11548 (Check_Conventions): Capture condition to ignore a primitive operation
11549 (which is shared between the loop in Check_Conventions and the one in
11550 Check_Convention) in a new local function Skip_Check.
11551 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
11552 confusion with Check_Conventions' own Prim_Op local variable.
11553 (Create_Extra_Formals): Test for a tagged result type rather than a
11554 controlling result when determining whether to add a BIP_Alloc_Form
11555 formal and a BIP_Final_List formal to the function.
11556 (Check_Conformance); For parameters that are anonymous access types,
11557 subtype conformance requires that the not null and the constant
11558 indicators must match
11559 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
11560 to retrieve the appropriate type when processing a concurrent type
11561 declared within a generic. Minor comment reformatting. Change invocation
11562 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
11564 (Analyze_Subprogram_Body): If the return type of a function is an
11565 anonymous access to the limited view of a class-wide type, and the
11566 non-limited view of the type is available, update the type of the
11567 function so that code can be generated.
11568 (Process_Formals): In case of access-subtype itype whose designated
11569 type is also an itype (situation that happens now with access to
11570 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
11571 attribute to avoid backend problems.
11572 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
11573 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
11574 anonymous types' designated types are same before testing
11575 Subtypes_Statically_Match.
11576 (Create_Extra_Formals): Test for a named access parameter that is a
11577 controlling formal as an additional condition for adding an
11578 accessibility level formal. This can occur in the subp type created for
11579 dispatching calls in Expand_Dispatching_Call, and allows calling
11580 Create_Extra_Formals from that procedure rather than special-casing the
11581 extra formals there.
11582 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
11583 when the function has a controlling result.
11584 (Check_Returns): Add much more knowledge of the optimization of local
11585 raise statements to gotos, to retain proper warnings in this case.
11586 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
11587 nodes when looking for last statement.
11589 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
11590 class-wide types visible through limited with clauses.
11591 (Add_One_Interp): If the operands are anonymous access types, the
11592 predefined operator on universal_access is immediately visibles
11593 (Find_Unique_Type): Handle anonymous access to subprogram types just as
11594 other anonymous access types.
11595 (Disambiguate): Take into account CIL convention.
11596 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
11598 2007-06-06 Robert Dewar <dewar@adacore.com>
11600 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
11601 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
11602 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
11603 Fix lower bound of tables.
11606 * nlists.adb: Ditto.
11607 (Prev_Node, Next_Node): Change index type to Int so that it properly
11608 covers the range First_Node_Id - 1 up.
11610 2007-06-06 Javier Miranda <miranda@adacore.com>
11611 Ed Schonberg <schonberg@adacore.com>
11612 Bob Duff <duff@adacore.com>
11613 Hristian Kirtchev <kirtchev@adacore.com>
11615 * exp_aggr.ads, exp_aggr.adb:
11616 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
11617 in extension aggregates.
11618 (Flatten): Other conditions being met, an aggregate is static if the
11619 low bound given by component associations is different from the low
11620 bound of the base index type.
11621 (Packed_Array_Aggregate_Handled): If the component type is itself a
11622 packed array or record, the front-end must expand into assignments.
11623 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
11624 Init_Pr, instead of Ancestor_Is_Expression.
11625 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
11626 coextension chain root, either generate a list controller or use the
11627 already existing one.
11628 (Static_Array_Aggregate): New procedure to construct a positional
11629 aggregate that can be handled by the backend, when all bounds and
11630 components are compile-time known constants.
11631 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
11632 types covering interface types into assignments.
11633 (Replace_Type): move to Build_Record_Aggr_Code.
11634 (Expand_Record_Aggr_Code): if the target of the aggregate is an
11635 interface type, convert to the definite type of the aggregate itself,
11636 so that needed components are visible.
11637 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
11638 components and the context is an extended return statement do not
11639 create a transient block for it, to prevent premature finalization
11640 before the return is executed.
11641 (Gen_Assign): Do not generate a call to deep adjust routine if the
11642 component type is itself an array of controlled (sub)-components
11643 initialized with an inner aggregate.
11644 (Component_Check): New name for Static_Check. This name is now more
11645 appropriate, and documentation is added which was missing.
11646 (Component_Check): Add test for bit aligned component value
11647 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
11648 Tagged_Comps, name is more appropriate given added function below.
11649 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
11651 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11652 Javier Miranda <miranda@adacore.com>
11653 Robert Dewar <dewar@adacore.com>
11655 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
11656 Terminated: Add unchecked type conversion from System.Address to
11657 System.Tasking.Task_Id when calling the predefined primitive
11659 Disable new Ada 05 accessibility check for JVM.NET targets, which
11660 cannot be implemented in a practical way.
11661 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
11662 the sources always references the tag of the actual object. Therefore,
11663 if 'Tag is applied in the sources to class-wide interface objects we
11664 generate code that displaces "this" to reference the base of the object.
11665 (Expand_N_Attribute_Reference, case Size): Return specified size if
11666 known to front end.
11667 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
11668 has code that displaces the pointer of the object to manage interface
11669 types. However this code must not be executed when the prefix is a
11670 subprogram. This bug caused the wrong expansion of the internally
11671 generated assignment that fills the dispatch table when the primitive
11672 is a function returning a class-wide interface type.
11673 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
11674 Set_Attribute_Name for Name_Unaligned_Valid.
11676 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11677 Gary Dismukes <dismukes@adacore.com>
11679 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
11680 If the initialization is the equivalent aggregate of the initialization
11681 procedure of the type, do not remove it.
11682 (Expand_N_Attribute_Definition_Clause): Exclude access variables
11683 initialized to null from having their expression reset to empty and
11684 note this exception in the comment.
11686 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11687 Robert Dewar <dewar@adacore.com>
11688 Ed Schonberg <schonberg@adacore.com>
11689 Gary Dismukes <dismukes@adacore.com>
11691 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
11692 Add "with" and "use" clauses for Sem_Attr.
11693 (Expand_Current_Value): Do not replace occurences of attribute
11694 references where the prefix must be a simple name.
11696 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
11697 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
11698 Attribute_Requires_Simple_Name_Prefix.
11699 (Name_Modifies_Prefix): Body of new function.
11700 (Requires_Simple_Name_Prefix): Body of new function.
11701 (Resolve_Attribute, case Access): Improve error message for case of
11702 mismatched conventions.
11703 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
11705 (Analyze_Attribute, case 'Access): If the type of the prefix is a
11706 constrained subtype for a nominal unconstrained type, use its base type
11707 to check for conformance with the context.
11708 (Resolve_Attribute): Remove test of the access type being associated
11709 with a return statement from condition for performing accessibility
11710 checks on access attributes, since this case is now captured by
11711 Is_Local_Anonymous_Access.
11712 (Analyze_Access_Attribute): Set Address_Taken on entity
11713 (Analyze_Attribute, case Address): Set Address_Taken on entity
11714 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
11715 validating an access attribute whose prefix is a current instance.
11716 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
11717 applied to dispatching operations, if freezing is required then we set
11718 the attribute Has_Delayed_Freeze in the prefix's entity.
11719 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
11720 current scope if access of local subprogram taken
11721 (Analyze_Access_Attribute): Check legality of self-reference even if the
11722 expression comes from source, as when a single component association in
11723 an aggregate has a box association.
11724 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
11725 the prefix if it is a protected operation and the attribute is
11726 Unrestricted_Access.
11727 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
11728 reference to the base type of the context, to force a constraint check
11729 when the context is an access subtype with an explicit constraint.
11730 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
11731 node is rewritten as an interface conversion. leave unanalyzed after
11732 resolution, to ensure that type checking against the context will take
11735 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11736 Javier Miranda <miranda@adacore.com>
11737 Robert Dewar <dewar@adacore.com>
11739 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
11740 wrapper when the full view of the controlling type of an inherited
11741 function that dispatches on result implements interfaces.
11742 (Expand_N_Object_Declaration): In cases where the type of the
11743 declaration is anonymous access, create finalization list for it.
11744 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
11745 if the object has no explicit initialization, to match description of
11746 functionality of pragam Persistent_BSS.
11747 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
11748 new function to build static aggregates, to replace initialization call
11749 when static initialization is desired.
11750 (Freeze_Type): Generate a list controller for an access type whenever
11751 its designated type has controlled anonymous access discriminants.
11752 (Build_Equivalent_Aggregate): New procedure to compute a static
11753 aggregate to be used as default initialization for composite types,
11754 instead of a generating a call to the initialization procedure for the
11756 (Build_Initialization_Call): When available, replace a call to the
11757 initialization procedure with a copy of the equivalent static aggregate
11759 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
11760 declarations for objects of a class-wide interface type, rather than
11761 just identifiers, to prevent visibility problems.
11762 (Expand_N_Object_Declaration): When expanding the declaration for an
11763 object of a class-wide interface type, preserve the homonym chain of
11764 the original entity before exchanging it with that of the generated
11765 renaming declaration.
11766 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
11767 active, because there is no way to handle the exception.
11768 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
11769 to do a minimum decoration of the Access_Disp_Table list.
11770 (Expand_Record_Controller): Avoid the addition of the controller between
11771 the component containing the tag of a secondary dispatch table and its
11772 adjacent component that stores the offset to the base of the object.
11773 This latter component is only generated when the parent type has
11774 discriminants ---documented in Add_Interface_Tag_Components).
11775 (Apply_Array_Size_Check): Removed, no longer needed.
11776 (Expand_N_Full_Type_Declaration): If the type has anonymous access
11777 components, create a Master_Entity for it only if it contains tasks.
11778 (Build_Init_Procedure): Suppress the tag assignment compiling under
11780 (Freeze_Record_Type): Remove code associated with creation of dispatch
11782 (Init_Secondary_Tags): Update type of actuals when generating calls to
11783 Ada.Tags.Set_Offset_To_Top
11784 (Stream_Operation_OK): Disable use of streams compiling under no
11786 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
11787 if Has_Init_Expression set.
11788 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
11789 Register_Primitive, which provides the same functionality.
11790 (Requires_Init_Proc): Return false in case of interface types.
11791 (Add_Secondary_Tables): Use the new attribute Related_Interface to
11793 (Predefined_Primitive_Freeze): Do not assume that an internal entity
11794 is always associated with a predefined primitive because the internal
11795 entities associated with interface types are not predefined primitives.
11796 Therefore, the call to Is_Internal is replaced by a call to the
11797 function Is_Predefined_Dispatching_Operation.
11798 (Make_Eq_If): When generating the list of comparisons for the
11799 components of a given variant, omit the controller component that is
11800 present if the variant has controlled components.
11802 2007-06-06 Javier Miranda <miranda@adacore.com>
11803 Hristian Kirtchev <kirtchev@adacore.com>
11804 Bob Duff <duff@adacore.com>
11806 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
11807 handle the creation of finalization lists and calls for nested
11808 coextensions when the root of the chains is part of a return statement.
11809 (Inside_A_Return_Statement): New function inside Complete_Coextension_
11811 (Expand_Record_Equality): Skip components that are interface types.
11812 (Displace_Allocator_Pointer): Add missing support for interface subtypes
11813 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
11814 with Rewrite_Coextension. Change the condition for detecting coextension
11816 (Is_Local_Access_Discriminant): Removed.
11817 (Rewrite_Coextension): New routine which rewrites a static coextension
11818 as a temporary and uses its unrestricted access in the construction of
11820 (Complete_Coextension_Finalization): New routine. Generate finalization
11821 attachment calls to all delayed coextensions.
11822 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
11823 the allocator is not a coextension itself and has delayed coextensions.
11824 If the current allocator is controlled, but also a coextension, delay
11825 the generation of the finalization attachment call.
11826 Rename local variable "Node" to "Nod" in order to avoid confusion with
11828 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
11829 limited types that are not inherently limited. Such an allocator is
11830 illegal, but is generated by the expander for a return statement, to
11831 copy the result onto the secondary stack. This is the only case where a
11832 limited object can be copied. Generate code to displace the pointer
11833 to the object if the qualified expression is a class-wide interface
11834 object. Such displacement was missing and hence the copy of the object
11836 (Apply_Accessibility_Check): Handle allocated objects initialized in
11838 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
11839 and Expand_Allocator_Expression. Allocating class-wide interface objects
11840 this routine displaces the pointer to the allocated object to reference
11841 the component referencing the corresponding secondary dispatch table.
11842 Expand_Allocator_Expression): Add missing support to allocate class-wide
11843 interface objects initialized with a qualified expression.
11844 (Get_Allocator_Final_List): Test for an anonymous access type that is a
11845 function result type, and use the finalization list associated with the
11846 function scope in that case (such an anonymous type should not be
11847 treated like an access parameter's type).
11849 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11850 Gary Dismukes <dismukes@adacore.com>
11851 Javier Miranda <miranda@adacore.com>
11853 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
11854 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
11855 required exception handler.
11856 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
11857 properly the case of a function whose return type is a limited
11858 class-wide interface type. Modify the code of the accessibility
11859 check to handle class-wide interface objects. In this case we need to
11860 displace "this" to reference the primary dispatch table to get access
11861 to the TSD of the object (to evaluate its accessibility level).
11862 (Expand_N_Extended_Return_Statement): Test for a tagged result type
11863 rather than a controlling result as one of the conditions for
11864 generating tests of the implicit BIP_Alloc_Form formal. The
11865 initialization assignment is also handled according to whether the
11866 result is tagged instead of controlling.
11867 In the case where the init assignment is inserted in the "then" part of
11868 the allocation conditional, rewrite the target to be a dereference of
11869 the implicit BIP_Object_Access formal.
11870 If the returned value is unconstrained and created on the secondary
11871 stack, mark the enclosing block and function so that the secondary
11872 stack is not reclaimed on return.
11873 Treat returns from functions with controlling results similarly to
11874 returns from functions with unconstrained result subtypes.
11875 If the object returned is unconstrained, and an allocator must be
11876 created for it, analyze the allocator once the block for the extended
11877 return is installed, to ensure that finalizable components
11878 of the expression use the proper finalization list. Guard the call to
11879 Move_Final_List with a check that there is something to finalize.
11880 (Make_Tag_Ctrl_Assignment): Use "old" handling
11881 of controlled type assignment for virtual machines, since new code uses
11882 unsupported features (such as direct access to bytes in memory).
11884 2007-06-06 Gary Dismukes <dismukes@adacore.com>
11885 Ed Schonberg <schonberg@adacore.com>
11887 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
11888 accessibility actual, check for the case of an aliased object that has
11889 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
11890 we fall into processing for the attribute rather than the name of the
11892 (Expand_Inline_Call): If an actual is a literal, and the corresponding
11893 formal has its address taken in the body, create a temporary to capture
11894 value. If the return type is a limited interface, do not treat the
11895 return value as Controlled.
11896 (Is_In_Place_Function): If the return type is a limited interface,
11897 treat as returning in place. The actual returned object may not always
11898 be limited, but the caller has to assume that it is returned in place.
11899 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
11900 context of an allocator, use the correct finalization chain (that is,
11901 the chain belonging to the access type, rather than the chain belonging
11902 to the current scope).
11903 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
11904 result type rather than a controlling result as a precondition for
11905 adding an allocation form actual to a build-in-place call.
11906 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
11907 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
11908 primitive in the dispatch tables. This work is now done by Make_DT when
11909 the type is frozen.
11910 (Register_Predefined_DT_Entry): Removed.
11911 (Add_Return): If end label is not present, use sloc of last statement
11912 for generated return statement in procedure, for better gdb behavior
11914 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
11915 object address nodes to ensure proper processing by routines like
11917 (Expand_Call): Fix generation of validity check for parameter
11918 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
11919 the allocation form parameter if the result subtype is constrained,
11920 except when the function has a controlling result.
11921 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
11922 rather than Is_Controlled and Has_Controlled_Component, since we want to
11923 include class-wide result types in this treatment. Also test for a
11924 controlling result, since that also requires passing a finalization
11926 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
11927 even when the result subtype is constrained, to handle calls involving
11928 controlling results.
11929 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
11930 is now called even when the result subtype is constrained, to handle
11931 calls involving controlling results.
11932 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
11933 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
11934 now performs the test).
11935 (Make_Build_In_Place_Call_In_Object_Declaration):
11936 Add_Alloc_Form_Actual_* is now called even when the result subtype is
11937 constrained, to handle calls involving controlling results.
11938 (Add_Return): Accomodate rewritten pattern from local raise to goto
11939 transformation, so that we still recognize an transfer statement
11940 and do the right thing here in that case.
11941 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
11942 and end of subprogram code.
11943 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
11944 support for primitives that are functions (without formals) with a
11945 controlling result.
11946 (Inherited_From_Formal): If the actual subtype has not generic parent
11947 type, it is not an actual for a formal derived type, and there is no
11948 operation to inherit from the formal.
11950 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11951 Thomas Quinot <quinot@adacore.com>
11953 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
11954 inserted cleanup code appropriately for GDB use.
11955 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
11956 exception handler for Deep_Adjust or Deep_Finalize.
11957 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
11958 Raise_From_Controlled_Operation is available, use a call to that
11959 subprogram instead of a plain "raise Program_Error" node to raise
11960 Program_Error if an exception is propagated from an Adjust or Finalize
11962 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
11963 appears in the optional statement list of a triggering alternative, the
11964 scope actions can be inserted directly there, and not in the list that
11965 includes the asynchronous select itself.
11967 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11968 Robert Dewar <dewar@adacore.com>
11969 Hristian Kirtchev <kirtchev@adacore.com>
11971 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
11972 generated exception handler appropriately when debugging generated code.
11973 Deal properly with No_Exception_Propagation restriction mode.
11974 (Expand_N_Abort_Statement): Add an unchecked type conversion from
11975 System.Address to System.Tasking.Task_Id when processing the result of
11976 the predefined primitive _disp_get_task_id.
11977 (Expand_N_Asynchronous_Select): Clarify comment.
11978 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
11979 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
11980 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
11981 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
11982 privals and for generated call to Complete_Entry_Body, for better gdb
11984 (Copy_Result_Type): Utility to construct a parameter and result profile
11985 for protected functions whose return type is an anonymous access to
11987 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
11989 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
11990 point when the local-raise-to-goto transformation has taken place.
11992 2007-06-06 Javier Miranda <miranda@adacore.com>
11993 Nicolas Setton <setton@adacore.com>
11995 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
11996 functionality when the backend is generating code.
11997 Otherwise any serious error
11998 reported by the backend calling the frontend routine Error_Msg
11999 changes the Compilation_Mode to Check_Semantics, disables the
12000 functionality of this routine and causes the generation of
12001 spureous additional errors.
12003 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
12004 debugging information now generated by the compiler for fat-pointer
12006 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
12008 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
12010 2007-06-06 Thomas Quinot <quinot@adacore.com>
12012 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
12013 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
12014 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
12015 For a remote call to a function with a classwide return type, apply an
12016 E.4(18) check to the returned value.
12017 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
12018 stream attributes of the designated type of an RACW, as they are not
12019 dispatching primitive operations.
12021 2007-06-06 Geert Bosch <bosch@adacore.com>
12023 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
12025 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
12027 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
12028 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
12030 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
12032 2007-06-06 Javier Miranda <miranda@adacore.com>
12034 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
12035 attribute compiling package Ada.Tags under No_Run_Time_Mode.
12037 2007-06-06 Javier Miranda <miranda@adacore.com>
12039 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
12040 deallocation of class-wide interface objects.
12041 (Expand_Dispatching_Constructor_Call): Take into account that if the
12042 result of the dispatching constructor is an interface type, the
12043 function returns a class-wide interface type; otherwise the returned
12044 object would be actual. The frontend previously accepted returning
12045 interface types because Expand_Interface_Actuals silently performed
12046 the management of the returned type "as if" it were a class-wide
12048 (Expand_Dispatching_Constructor_Call): Replace call to
12049 Make_DT_Access_Action by direct call to Make_Function_Call.
12051 2007-06-06 Robert Dewar <dewar@adacore.com>
12052 Ed Schonberg <schonberg@adacore.com>
12054 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
12055 compute masking constant, since we now set Esize properly to the
12057 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
12058 to match the alignment.
12059 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
12060 packed arrays of 8 bits or less.
12062 * freeze.adb (Freeze_Entity): When freezing the formals of a
12063 subprogram, freeze the designated type of a parameter of an access type
12064 only if it is an access parameter.
12065 Increase size of C convention enumeration object
12066 (Freeze_Entity, array type case): Make sure Esize value is properly
12067 adjusted for the alignment if it is known.
12068 (Freeze_Entity, array type case): When checking bit packed arrays for
12069 the size being incorrect, check RM_Size, not Esize.
12070 (Freeze_Record_Type): Check for bad discriminated record convention
12071 (In_Exp_Body): Return true if the body is generated for a subprogram
12072 renaming, either an attribute renaming or a renaming as body.
12073 (Check_Itype): If the designated type of an anonymous access component
12074 is a non-protected subprogram type, indicate that it is frozen, to
12075 prevent out-of-scope freeze node at some subsequent call.
12076 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
12077 only if the subprogram is neither imported nor exported, as well as the
12078 NCA descriptor class if the subprogram is exported.
12080 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12081 Arnaud Charlet <charlet@adacore.com>
12082 Robert Dewar <dewar@adacore.com>
12083 Gary Dismukes <dismukes@adacore.com>
12085 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
12086 default initialization on an imported object, when there is no
12087 initialization call generated for it.
12088 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
12091 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
12092 Static_Elaboration_Desired.
12093 Remove pragma Thread_Body.
12094 Implement a new pragma No_Body
12095 Removes the Explicit_Overriding pragma
12096 Remove Optional_Overriding pragma
12097 (Prag): Deal with Universal_Aliasing.
12098 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
12099 Pragma_CIL_Constructor): New names.
12101 * sem_cat.adb (Validate_Object_Declaration): An initialization that
12102 uses the equivalent aggregate of a type must be treated as an implicit
12104 (Get_Categorization): Check a unit for pragma Preelaborate only if it
12105 has none of the other categories.
12106 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
12107 to apply Import to an object renaming declaration.
12109 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
12110 from a C++ class should be declared as limited and that it will be
12111 considererd limited.
12112 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
12113 should be declared as limited and that it will be considererd limited.
12114 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
12115 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
12116 (Analyze_Pragma): Deal with Universal_Aliasing.
12117 (Sig_Flags): Likewise.
12118 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
12119 (Overflow_Checks_Unsuppressed): New flag.
12120 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
12121 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
12122 case of JVM or .NET targets, and compiling user code.
12123 Add debugging convenience routine rv
12125 2007-06-06 Robert Dewar <dewar@adacore.com>
12127 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
12128 are interface type.
12129 (Build_Elementary_Input_Call): For floating-point use right type in the
12130 absence of strange size or stream size clauses.
12131 (Build_Elementary_Write_Call): Same fix
12132 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
12133 set to value that does not match base type size.
12135 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12137 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
12138 object of a limited type can be initialized with a call to a function
12139 that returns in place. If the limited type has unknown discriminants,
12140 and the underlying type is a constrained composite type, build an actual
12141 subtype from the function call, as is done for private types.
12142 (Side_Effect_Free): An expression that is the renaming of an object or
12143 whose prefix is the renaming of a object, is not side-effect free
12144 because it may be assigned through the renaming and its value must be
12145 captured in a temporary.
12146 (Has_Controlled_Coextensions): New routine.
12147 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
12148 as is done for other limited types.
12149 (Non_Limited_Designated_Type): new predicate.
12150 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
12152 Remove all handling of with_type clauses.
12154 * par-ch10.adb: Remove all handling of with_type clauses.
12156 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
12157 checksum if the main source could not be parsed.
12158 (Loat_Unit): When processing a child unit, determine properly whether
12159 the parent unit is a renaming when the parent is itself a child unit.
12160 Remove handling of with_type clauses.
12162 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
12163 (Set_Is_Static_Coextension): New procedure.
12164 (Has_Local_Raise): New function
12165 (Set_Has_Local_Raise): New procedure
12166 (Renaming_Exception): New field
12167 (Has_Init_Expression): New flag
12168 (Delay_Finalize_Attach): Remove because flag is obsolete.
12169 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
12170 Remove all handling of with_type clauses.
12171 (Exception_Junk): Can now be set in N_Block_Statement
12173 2007-06-06 Vincent Celier <celier@adacore.com>
12174 Robert Dewar <dewar@adacore.com>
12176 * frontend.adb (Frontend): Return immediately if the main source could
12177 not be parsed, because of preprocessing errors.
12179 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
12180 (Gnat1drv): Exit with errors if the main source could not be parsed,
12181 because of preprocessing errors.
12182 (Check_Rep_Info): New procedure
12184 2007-06-06 Robert Dewar <dewar@adacore.com>
12186 * g-hesorg.ads, g-heasor.ads,
12187 g-busorg.ads, g-bubsor.ads: Update documentation
12188 GNAT.Heap/Bubble_Sort_G is now pure
12190 2007-06-06 Robert Dewar <dewar@adacore.com>
12192 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
12194 2007-06-06 Robert Dewar <dewar@adacore.com>
12195 Ed Schonberg <schonberg@adacore.com>
12197 * g-comlin.ads, g-comlin.adb:
12198 Add new warning for renaming of function return objects
12200 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
12201 (Tree_Read): Use size of object instead of type'object_size, since the
12202 latter is incorrect for packed array types.
12203 (Tree_Write): Same fix
12205 * opt.ads: Add new warning for renaming of function return objects
12206 (Generating_Code): New boolean variable used to indicate that the
12207 frontend as finished its work and has called the backend to process
12208 the tree and generate the object file.
12209 (GCC_Version): Is now private
12210 (Static_Dispatch_Tables): New constant declaration.
12211 (Overflow_Checks_Unsuppressed): New flag.
12212 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
12213 (List_Closure): New flag for gnatbind (-R)
12214 Zero_Formatting: New flag for gnatbind (-Z)
12215 (Special_Exception_Package_Used): New flag.
12216 (Warn_On_Unrepped_Components): New flag.
12218 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
12219 unit is a compilation unit, rather than relying on its scope, so that
12220 Standard can be renamed.
12221 (Analyze_Object_Renaming): Add new warning for renaming of function
12223 Also reject attempt to rename function return object in Ada 83 mode.
12224 (Attribute_Renaming): In case of tagged types, add the body of the
12225 generated function to the freezing actions of the type.
12226 (Find_Type): A protected type is visible right after the reserved word
12227 "is" is encountered in its type declaration. Set the entity and type
12228 rather than emitting an error message.
12229 (New_Scope): Properly propagate Discard_Names to inner scopes
12230 (Check_Nested_Access): New procedure.
12231 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
12232 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12234 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
12235 Add new warning for renaming of function return objects
12236 (Check_References): Suppress warnings for objects whose type or
12237 base type has Warnings suppressed.
12238 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
12239 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
12241 2007-06-06 Vincent Celier <celier@adacore.com>
12242 Emmanuel Briot <briot@adacore.com>
12243 Olivier Hainque <hainque@adacore.com>
12245 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
12246 absolute value of Header.Block_Size when displaying the freed physical
12248 (Allocate): Compute Storage_Address using Integer_Address, not
12249 Storage_Offset, because the range of Storage_Offset may not be large
12251 (Configure): New parameter Low_Level_Traces
12252 (Allocate, Deallocation, Free_Physically): Added low-level traces
12253 (Configure): new parameter Errors_To_Stdout.
12254 (Output_File): new subprogram
12255 (Deallocate, Dereference): Send error messages to the proper stream
12256 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
12257 documented. Previous code would send it to the current output file
12258 defined in GNAT.IO, which might not be stdout
12259 (Is_Valid): Adjust comment to mention that a positive reply means that
12260 Header_Of may be used to retrieve the allocation header associated with
12261 the subprogram Storage address argument. Return False early if this
12262 address argument is misaligned.
12264 2007-06-06 Vincent Celier <celier@adacore.com>
12266 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
12268 (ASIS_Main): New global variable
12269 (Get_Closure): New procedure
12270 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
12271 check, metric or pretty. Call Get_Closure in this case.
12272 (Check_Files): For GNAT LIST, check all sources of all projects when
12273 All_Projects is True.
12274 (GNATCmd): Accept -U for GNAT LIST
12276 2007-06-06 Vincent Celier <celier@adacore.com>
12278 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
12280 Correct error message when invocation of the linker fails
12281 Add explicit size clause for the C imported variables
12282 Object_List_File_Supported and Using_GNU_Linker to emphasize that
12283 we expect char size.
12284 Read target parameters earlier, since this is needed to set
12285 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
12288 2007-06-06 Vincent Celier <celier@adacore.com>
12291 Add 3 spaces before the default project directory when displaying
12292 the project search path.
12293 Add new command line switch '-l' to display license information.
12295 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
12297 * gmem.c: Add support for timestamps on memory operations.
12299 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
12300 operations (not used currently, just foundation for future
12301 enhancements). Add possibility to perform full dump of gmem.out file.
12302 (Print_Back_Traces): Declare accesses to root arrays constants since
12303 they aren't modified.
12304 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
12306 2007-06-06 Vincent Celier <celier@adacore.com>
12308 * gnatsym.adb: Update Copyright notice
12309 (Parse_Cmd_Line): Accept new switch -D
12310 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
12313 * prj.ads (Policy): New policy Direct
12314 (Yes_No_Unknown): New enumeration type
12315 (Project_Data): New component Libgnarl_Needed
12317 * prj-nmsc.adb (Check_For_Source): When recording a source file make
12318 use the untouched pathname casing.
12319 (Get_Directories): Ensure that the Display_Exec_Directory is using the
12320 proper casing on non case-sensitive platforms like Windows.
12321 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
12322 on all platforms, as it is not possible to know which one is allowed
12323 before processing the project files.
12324 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
12325 specified when symbol policy is Direct. Check that when there is a
12326 symbol file defined (either by default or with attribute
12327 Library_Symbol_File) it is not the same as the reference symbol file.
12328 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
12329 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
12330 extending projects.
12331 (Record_Ada_Source): Record a source that has been locally removed in an
12334 * symbols.ads (Policy): New policy Direct
12336 * symbols-vms.adb (Initialize): Take new policy Direct in case
12339 2007-06-06 Vincent Celier <celier@adacore.com>
12341 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
12342 Correct obvious bug (return Dir; instead of return Directory;).
12343 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
12345 2007-06-06 Thomas Quinot <quinot@adacore.com>
12347 * g-pehage.adb (Produce): Open output files in Binary mode, so that
12348 they have UNIX line endings (LF only) even on Windows, and thus pass
12349 all GNAT style checks.
12351 2007-06-06 Emmanuel Briot <briot@adacore.com>
12353 * g-regpat.adb (Quote): Fix improper quoting of '.'
12355 2007-06-06 Thomas Quinot <quinot@adacore.com>
12357 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
12358 default, set False on a per-runtime basis.
12359 (Need_Netdb_Buffer): New constant.
12361 * g-socket.ads, g-socket.adb: Import new package
12362 GNAT.Sockets.Thin.Task_Safe_NetDB.
12363 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
12364 binding to obtain proper message.
12365 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
12366 Replace various occurrences of Arry (Arry'First)'Address with the
12367 equivalent Arry'Address (GNAT always follows implementation advice from
12369 (Get_Host_By_Address, Get_Host_By_Name,
12370 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
12371 instead, rely on platform-specific task safe netdb operations provided
12374 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
12375 parameter Process_Blocking_IO.
12376 (Host_Error_Messages): Add stub body.
12377 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12378 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
12379 Safe_Getservbyport): Move functions into new child package
12381 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
12382 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
12383 (In_Addr): Add alignment clause.
12385 2007-06-06 Robert Dewar <dewar@adacore.com>
12387 * g-trasym.ads, g-traceb.ads: Update list of supported targets
12388 Add note about symbolic traceback
12390 2007-06-06 Pascal Obry <obry@adacore.com>
12392 * hostparm.ads (Normalized_CWD): Use the host directory separator
12393 instead of the hardcoded forward slash which is not the proper
12394 character on Windows for example.
12395 (Java_VM): Removed.
12397 2007-06-06 Vincent Celier <celier@adacore.com>
12398 Arnaud Charlet <charlet@adacore.com>
12400 * a-clrefi.adb, a-clrefi.ads: New files
12402 * impunit.adb: Add s-os_lib in the list of user visible units.
12403 (Non_Imp_File_Names_95): Add a-clrefi to this list
12404 Remove obsolete run-time entries.
12405 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
12406 "a-exetim" -- Ada.Execution_Time
12407 "a-extiti" -- Ada.Execution_Time.Timers
12409 * mlib-prj.ads, mlib-prj.adb
12410 (Build_Library): Use untouched object dir and library dir. At the
12411 same time makes sure that the checks are done using the canonical
12412 form. Removes hard-coded directory separator and use the proper host
12414 (Process_Project): Do not look in object directory to check if libgnarl
12415 is needed for a library, if there is no object directory.
12416 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
12418 (Build_Library): When invoking gnatbind, use a response file if the
12419 total size of the arguments is too large.
12421 * Makefile.rtl: (g-sttsne): New object file.
12422 Add entry for a-clrefi, s-utf_32, System.Exceptions
12424 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
12425 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
12426 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
12427 Change g-string to s-string, g-os_lib to s-os_lib
12428 Change all g-utf_32 references to s-utf_32
12430 2007-06-06 Tristan Gingold <gingold@adacore.com>
12431 Olivier Hainque <hainque@adacore.com>
12433 * init.c: Do not adjust IP of an imported VMS exception of ia64.
12434 LIB$STOP is called to raise an exception and the IP of the exception
12435 is the instruction right after the call.
12436 (__gnat_adjust_context_for_raise, AIX): Implement.
12437 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
12438 adjust_context_for_raise before Raise_From_Signal_Hanler.
12439 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
12440 siginfo is passed to the handler, necessary to let the zcx propagation
12441 engine unwind past it.
12443 2007-06-06 Olivier Hainque <hainque@adacore.com>
12445 * initialize.c (__gnat_initialize for vxworks): Update documentation
12446 on the ZCX support, using different sets of crtstuff objects than with
12449 2007-06-06 Robert Dewar <dewar@adacore.com>
12451 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
12453 (Layout_Type): Fix recomputation of size from alignment.
12455 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12456 Javier Miranda <miranda@adacore.com>
12458 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
12459 association in an instance.
12460 (Copy_Generic_Node): If the node is a string literal, no need to copy
12462 (Is_Generic_Formal): For a formal subprogram, the declaration is the
12463 grandparent of the entity.
12464 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
12465 to simplify handling of formal interfaces that derive from other formal
12467 (Instantiate_Subprogram_Body): The defining unit name of the body of
12468 the instance should be a defining identifier.
12469 (Install_Formal_Packages): make global to the package, for use in
12470 instantiations of child units.
12471 (Analyze_Package_Instantiation): Do not attempt to set information on an
12472 enclosing master of an entry when expansion is disabled.
12473 (Instantiate_Type): If the actual is a tagged synchronized type and the
12474 generic ancestor is an interface, create a generic actual for the
12475 corresponding record.
12476 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
12477 declaration, to ensure that the interface list is processed correctly.
12478 (Inline_Instance_Body): If enclosing scope is an instance body, remove
12479 its entities from visibiility as well.
12480 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
12481 given with a named association, analyze the expression only, not the
12482 discriminant association itself.
12483 (Reset_Entity): If the analysis of a selected component is transformed
12484 into an expanded name in the prefix of a call with parameters, do not
12485 transform the original node into an expanded name, to prevent visibility
12486 errors in the case of nested generics.
12487 (Check_Private_View): For an array type, check whether the index types
12488 may need exchanging.
12490 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12491 Vincent Celier <celier@adacore.com>
12493 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
12494 since both are separated.
12495 Add support for imported CIL packages.
12496 Add further special handling of "value_type" for CIL.
12497 Add special handling of pragma Import for CIL.
12499 * make.ads, make.adb: When switch -eS is used, direct all outputs to
12500 standard output instead of standard error, except errors.
12501 (Absolute_Path): Use untouched casing for the parent directory.
12502 (Add_Library_Search_Dir): Use the untouched directory name.
12503 (Add_Source_Search_Dir): Idem.
12504 (Change_To_Object_Directory): Update output to use proper casing.
12505 (Create_Binder_Mapping_File): Use the untouched filename to set
12507 (Gnatmake): Use untouched library and executable directory names.
12508 (Insert_Project_Sources): Use untouched filename for spec and body.
12509 (Is_In_Object_Directory): Use untouched object directory.
12510 (Mark_Directory): Idem.
12511 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
12512 contains the non-canonical filename in all cases.
12513 (Change_To_Object_Directory): In verbose mode, display the name of the
12514 object directory we're changing to.
12515 (Compile_Sources): Make sure, when a project file is used, to compile
12516 the body of the unit, when there is one, even when only the spec is
12517 recorded in an ALI file.
12518 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
12520 (Report_Compilation_Failed): New procedure
12521 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
12522 procedures moved from the spec to the body.
12523 (Extract_Failure): Removed, not used
12524 Replace explicit raises of exception Bind_Failed and Link_Failed with
12525 calls to Make_Failed with the proper message.
12526 Replace explicit raises of exception Compilation_Failed with calls to
12527 procedure Report_Compilation_Failed.
12528 (Initialize): Create mapping files unconditionally when using project
12531 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
12532 Pragma_CIL_Constructor): New names.
12534 * targparm.ads, targparm.adb
12535 (Compiler_System_Version): Removed, no longer used.
12536 (Get_Target_Parameters): Relax checks on system.ads validity. Add
12537 handling of two new system flags: JVM and CLI.
12539 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12540 Arnaud Charlet <charlet@adacore.com>
12542 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
12543 time, use the default s-interr body that provides interrupt support
12545 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
12546 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
12547 g-soccon.ads, and s-taprop.adb for the marte run time.
12548 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
12549 timers are supported on marte.
12550 (EH_MECHANISM for marte): Do not use ZCX.
12551 (THREADSLIB for marte): Use -lmarte.
12552 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
12553 Add mlib-tgt-specific.o to gnatmake objects
12554 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
12555 longer of MLib.Tgt.
12556 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
12557 6, either kernel or rtp, use a specialized version of s-osinte.ads.
12559 2007-06-06 Pascal Obry <obry@adacore.com>
12561 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
12563 2007-06-06 Vincent Celier <celier@adacore.com>
12565 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
12566 separator, use instead the proper host directory separator.
12567 (Copy_ALI_Files): Make sure that an already existing ALI file in the
12568 ALI copy dir is writable, before doing the copy.
12570 * mlib-utl.ads, mlib-utl.adb:
12571 (Gcc): If length of command line is too long, put the list of object
12572 files in a response file, if this is supported by the platform.
12573 (Ar): If invocation of the archive builder is allowed to be done in
12574 chunks and building it in one shot would go above an OS dependent
12575 limit on the number of characters on the command line, build the archive
12578 2007-06-06 Vincent Celier <celier@adacore.com>
12580 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
12581 of specified object file is not equal to base name of source.
12583 2007-06-06 Javier Miranda <miranda@adacore.com>
12584 Hristian Kirtchev <kirtchev@adacore.com>
12585 Ed Schonberg <schonberg@adacore.com>
12587 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
12588 the full type declaration.
12589 (Analyze_Component_Declaration): Add local variable E to capture the
12590 initialization expression of the declaration. Replace the occurences of
12591 Expression (N) with E.
12592 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
12593 limited interface object with a function call.
12594 (Array_Type_Declaration): If the declaration lacks subtype marks for
12595 indices, create a simple index list to prevent cascaded errors.
12596 (Is_Null_Extension): Ignore internal components created for secondary
12597 tags when checking whether a record extension is a null extension.
12598 (Check_Abstract_Interfaces): Add missing support for interface subtypes
12599 and generic formals.
12600 (Derived_Type_Declaration): Add missing support for interface subtypes
12601 and generic formals.
12602 (Analyze_Object_Declaration): If an initialization expression is
12603 present, traverse its subtree and mark all allocators as static
12605 (Add_Interface_Tag_Component): When looking for components that may be
12606 secondary tags, ignore pragmas that can appear within a record
12608 (Check_Abstract_Overriding): an inherited function that dispatches on
12609 result does not need to be overriden if the controlling type is a null
12611 (Mentions_T): Handle properly a 'class attribute in an anonymous access
12612 component declaration, when the prefix is an expanded name.
12613 (Inherit_Component): If the derivation is for a private extension,
12614 inherited components remain visible and their ekind should not be set
12616 (Find_Type_Of_Object): In the case of an access definition, always set
12617 Is_Local_Anonymous_Access. We were previously not marking the anonymous
12618 access type of a return object as a local anonymous type.
12619 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
12620 range with character literal bounds.
12621 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
12622 (Access_Subprogram_Declaration): Indicate that the type declaration
12623 depends on an incomplete type only if the incomplete type is declared
12625 (Analyze_Subtype_Declaration): Handle properly subtypes of
12626 synchronized types that are tagged, and that may appear as generic
12628 (Access_Subprogram_Declaration): An anonymous access to subprogram can
12629 appear as an access discriminant in a private type declaration.
12630 (Add_Interface_Tag_Components): Complete decoration of the component
12631 containing the tag of a secondary dispatch table and the component
12632 containing the offset to the base of the object (this latter component
12633 is only generated when the parent type has discriminants --as documented
12635 (Inherit_Components): Use the new decoration of the tag components to
12636 improve the condition that avoids inheriting the components associated
12637 with secondary tags of the parent.
12638 (Build_Discriminanted_Subtype): Indicate to the backend that the
12639 size of record types associated with dispatch tables is known at
12641 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
12642 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
12643 to include task, protected, and synchronized interfaces as limited
12645 (Process_Discriminants): Remove the setting of
12646 Is_Local_Anonymous_Access on the type of (anonymous) access
12647 discriminants of nonlimited types.
12648 (Analyze_Interface_Type_Declaration): Complete the decoration of the
12649 class-wide entity it is is already present. This situation occurs if
12650 the limited-view has been previously built.
12651 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
12653 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
12656 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12658 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
12659 of the type that specify the position of interface tags when the type
12660 inherits discriminated array components from the parent type.
12661 If a component is initialized with a box, check for the presence of a
12662 default expression in its declaration before using its default
12663 initialization procedure.
12664 (Resolve_Record_Aggregate): If a component is box-initialized, and the
12665 component type has a discriminants, create a partial aggregate for it
12666 by copying the discriminants of the component subtype.
12667 Reject attempt to initialize a discriminant with a box.
12668 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
12669 associated with dispatch tables is known at compile time.
12670 (Get_Value): If an association in a record aggregate has a box
12671 association, and the corresponding record component has a default
12672 expression, always copy the default expression, even when the
12673 association has a single choice, in order to create a proper
12674 association for the expanded aggregate.
12676 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12677 Robert Dewar <dewar@adacore.com>
12679 * par-ch12.adb (P_Generic_Associations): The source position of an
12680 Others association is that of the others keyword, not that of the token
12681 that follows the box.
12682 (P_Formal_Type_Definition): Handle formal access types that carry a
12683 not null indicator.
12685 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
12686 multiple identifier are present, save Scan_State before scanning the
12687 colon, to ensure that separate trees are constructed for each
12689 (P_Identifier_Declarations): For object declaration, set new flag
12690 Has_Init_Expression if initialization expression present.
12691 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
12692 Improve NOT NULL error messages
12694 2007-06-06 Robert Dewar <dewar@adacore.com>
12696 * par-ch4.adb: (P_Name): Recover from literal used as name
12698 2007-06-06 Vincent Celier <celier@adacore.com>
12700 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
12701 defaulted to False.
12702 In the "not" case, recursive call with Complemented set to True.
12703 Do not allow "or" or "and" operators when Complemented is True.
12705 2007-06-06 Vincent Celier <celier@adacore.com>
12707 * prj.adb (Project_Empty): Gives default value for new component
12710 * prj-attr.ads: Minor reformatting
12712 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
12713 directory using the untouched casing.
12714 (For_All_Source_Dirs): Idem.
12716 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
12717 directories specified with switches -aP.
12718 (Add_Search_Project_Directory): New procedure
12719 (Initialize_Project_Path): Put the directories in table
12720 Search_Directories in the project search path.
12721 (Initialize_Project_Path): For VMS, transform into canonical form the
12724 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12726 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
12727 true if configurable run-time or No_Run_Time is set.
12728 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
12729 processing an unit which is not the one being compiled.
12731 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12733 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
12734 Replace UC by Ada.UC
12736 * s-bitops.adb: Get rid of System.Pure_Exceptions.
12737 Replace UC by Ada.UC
12739 2007-06-06 Robert Dewar <dewar@adacore.com>
12741 * scng.adb: (Check_End_Of_Line): Deal with very long lines
12743 2007-06-06 Robert Dewar <dewar@adacore.com>
12745 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
12746 Remove no longer used nodes.
12748 2007-06-06 Javier Miranda <miranda@adacore.com>
12749 Ed Schonberg <schonberg@adacore.com>
12750 Robert Dewar <dewar@adacore.com>
12752 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
12753 on obsolescent withed unit in case of limited-withed units.
12754 (Analyze_Compilation_Unit): Add guard to code that removed an
12755 instantiation from visibility, to prevent compiler aborts when
12756 instantiation is abandoned early on.
12757 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
12758 current unit being analyzed, and Distinguish local incomplete types
12759 from limited views of types declared elsewhere.
12760 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
12761 to state that the class-wide entity is shared by the limited-view
12763 (Analyze_With_Clause): Improve placement of flag for case of
12764 unimplemented unit.
12765 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
12766 manner similar to GNAT.Current_Exception. This is a violation of
12767 restriction (No_Exception_Propagation), and also inhibits the
12768 optimization of local raise to goto.
12769 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
12770 and if so set Most_Recent_Exception_Used flag in Opt, and also check
12771 for violation of restriction No_Exception_Propagation.
12773 2007-06-06 Javier Miranda <miranda@adacore.com>
12774 Hristian Kirtchev <kirtchev@adacore.com>
12775 Gary Dismukes <dismukes@adacore.com>
12777 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
12778 use of entity Exception_Occurrence if it is not available in the
12781 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
12782 concurrent types are declared within an Ada 2005 generic, build their
12783 corresponding record types since they are needed for overriding-related
12785 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
12786 protected type does not implement a task interface or a nonlimited
12788 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
12789 type does not implement a protected interface or a nonlimited interface.
12790 (Single_Task_Declaration, Single_Protected_Declaration): use original
12791 entity for variable declaration, to ensure that debugging information
12792 is correcty generated.
12793 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
12794 routines if the expander is not active.
12795 (Analyze_Task_Body): Mark all handlers to stop optimization of local
12796 raise, since special things happen for task exception handlers.
12798 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
12799 concurrent types declared within a generic.
12800 (Check_Dispatching_Operation): Do not emit warning about late interface
12801 operations in the context of an instance.
12802 (Check_Dispatching_Call): Remove restriction against calling a
12803 dispatching operation with a limited controlling result.
12804 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
12805 Register_Interface_DT_Entry by calls to Register_Primitive.
12806 (Check_Dispatching_Formals): Handle properly a function with a
12807 controlling access result.
12809 2007-06-06 Robert Dewar <dewar@adacore.com>
12810 Arnaud Charlet <charlet@adacore.com>
12812 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
12813 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
12814 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
12815 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
12816 message when using a VM, since this attribute is not supported.
12817 (Analyze_Record_Representation_Clause): Give unrepped component warnings
12819 * usage.adb: Add new warning for renaming of function return objects
12820 Indicate that -gnatwp and -gnatwP concern front-end inlining
12821 Add line for -gnatyg
12822 Add usage information for -gnatw.c/C
12824 2007-06-06 Robert Dewar <dewar@adacore.com>
12825 Ed Schonberg <schonberg@adacore.com>
12828 (Find_Var): Do not consider function call in test for infinite loop
12829 warning if warnings set off for function entity.
12830 (One_Bound): Do not create a temporary for a loop bound if it is a
12832 (Analyze_Assignment): Traverse the right hand side of an assignment and
12833 mark all allocators as static coextensions.
12834 (Analyze_Assignment): Exempt assignments involving a dispatching call
12835 to a function with a controlling access result from the check requiring
12836 the target to be class-wide.
12838 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12839 Ed Schonberg <schonberg@adacore.com>
12840 Robert Dewar <dewar@adacore.com>
12841 Javier Miranda <miranda@adacore.com>
12843 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
12844 chain of coextensions when an allocator serves as the root of such a
12846 (Propagate_Coextensions): Remove the test for the root being an
12848 (Resolve_Allocator): Add condition to ensure that all future decoration
12849 occurs on an allocator node. Add processing and cleanup for static
12851 (Valid_Conversion): If the operand type is the limited view of a
12852 class-wide type, use the non-limited view is available to determine
12853 legality of operation.
12854 (Ambiguous_Character): move to spec, for use elsewhere.
12855 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
12856 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
12857 character literals.
12858 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
12859 Do_Division_Check flag explicitly.
12860 (Resolve_Actuals): If the actual is of a synchronized type, and the
12861 formal is of the corresponding record type, this is a call to a
12862 primitive operation of the type, that is declared outside of the type;
12863 the actual must be unchecked-converted to the type of the actual
12864 (Resolve_Call): Kill all current values for any subprogram call if
12865 flag Suppress_Value_Tracking_On_Call is set.
12866 (Resolve_Type_Conversion): Generate error message the the operand
12867 or target of interface conversions come from a limited view.
12868 (Check_Infinite_Recursion): Ignore generated calls
12869 (Check_Allocator_Discrim_Accessibility): New procedure for checking
12870 that an expression that constrains an access discriminant in an
12871 allocator does not denote an object with a deeper level than the
12872 allocator's access type.
12873 (Resolve_Allocator): In the case of an allocator initialized by an
12874 aggregate of a discriminated type, check that associations for any
12875 access discriminants satisfy accessibility requirements by calling
12876 Check_Allocator_Discrim_Accessibility.
12877 (Resolve_Equality_Op): Handle comparisons of anonymous access to
12878 subprogram types in the same fashion as other anonymous access types.
12879 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
12880 message that is not a continuation message.
12881 (Resolve_Type_Conversion): Add missing support for conversion to
12883 (Resolve_Actuals): Introduce a transient scope around the call if an
12884 actual is a call to a function returning a limited type, because the
12885 resulting value must be finalized after the call.
12886 (Resolve_Actuals): If the call was given in prefix notations, check
12887 whether an implicit 'Access reference or implicit dereference must be
12888 added to make the actual conform to the controlling formal.
12890 2007-06-06 Robert Dewar <dewar@adacore.com>
12891 Javier Miranda <miranda@adacore.com>
12893 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
12894 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
12895 overriding of an inherited private subprogram now there is no need to
12896 inherit its dispatching slot and reduce the size of the dispatch table.
12897 Set_All_DT_Position now ensures that the same slot is now assigned to
12898 both entities. This is required to statically build the dispatch table.
12899 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
12900 of calling Set_All_DT_Position to re-evaluate the position of the
12901 entries in the dispatch table. Such reevaluation is not desired if
12902 the tagged type is already frozen.
12904 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12905 Gary Dismukes <dismukes@adacore.com>
12906 Robert Dewar <dewar@adacore.com>
12907 Javier Miranda <miranda@adacore.com>
12909 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
12910 reference acts as an lvalue when the attribute name modifies the prefix
12911 (Is_Coextension_Root): New routine.
12912 (Mark_Static_Coextensions): New routine.
12913 (Type_Access_Level): Revise code for checking the level of the
12914 anonymous access type of a return object.
12915 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
12916 (Matches_Prefixed_View_Profile): Remove the no longer necessary
12917 retrieval of the corresponding controlling record type.
12918 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
12919 concurrent types declared within a generic as well as class wide types.
12920 Emit a mode incompatibility error whenever a protected entry or routine
12921 override an interface routine whose first parameter is not of mode
12922 "out", "in out" or access to variable.
12923 (Overrides_Synchronized_Primitive): Rename to
12924 Find_Overridden_Synchronized_Primitive.
12925 (Collect_Interface_Components): New subprogram that collects all the
12926 components of a tagged record containing tags of secondary dispatch
12928 (Add_Global_Declaration): New procedure
12929 (Abstract_Interface_List): Handle properly the case of a subtype of a
12931 (Type_Access_Level): In the case of a type whose parent scope is a
12932 return statement, call Type_Access_Level recursively on the enclosing
12933 function's result type to determine the level of the return object's
12935 (Build_Elaboration_Entity): Build name of elaboration entity from the
12936 scope chain of the entity, rather than the unit name of the file name.
12937 (Check_Nested_Access): New procedure.
12938 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12939 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12940 (Get_Renamed_Entity): Utility routine for performing common operation
12941 of chasing the Renamed_Entity field of an entity.
12943 2007-06-06 Robert Dewar <dewar@adacore.com>
12945 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
12947 (Check_A_Call): Add check for entry call which was causing blowup
12949 2007-06-06 Olivier Hainque <hainque@adacore.com>
12951 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
12952 special code on ia64-vms to handle major incompatibilities between the
12953 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
12954 this routine with a very different set of arguments and expectations on
12957 2007-06-06 Thomas Quinot <quinot@adacore.com>
12959 * socket.c (__gnat_close_signalling_fd): New function.
12960 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
12961 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
12962 New supporting functions for task safe Netdb operations.
12964 2007-06-06 Thomas Quinot <quinot@adacore.com>
12965 Olivier Hainque <hainque@adacore.com>
12967 * a-except-2005.ads, a-except-2005.adb
12968 (Raise_From_Controlled_Operation): New procedure in
12969 (private part of) Ada.Exceptions (standard runtime version). Used to
12970 provide informational exception message when Program_Error is raised as
12971 a result of an Adjust or Finalize operation propagating an exception.
12972 (Rmsg_28): Fix description for E.4(18) check.
12973 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12974 propagation starts, to let debuggers know about the event in a reliable
12976 Take the address of E and dereference to make sure it is homed on stack
12977 and prevent the stores from being deleted, necessary for proper
12978 debugger behavior on "break exception" hits.
12979 (Local_Raise): Moved to System.Exceptions
12981 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
12982 exception message from the current occurrence and raise Program_Error
12983 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
12985 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12986 Arnaud Charlet <charlet@adacore.com>
12988 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
12991 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
12992 priority associated to a lock.
12994 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
12995 assertion to take into account case of no abort restriction.
12996 (Initialize_Protection_Entries): Add initialization for the field
12997 New_Ceiling associated to the protected object.
12998 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
13001 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
13002 since this function needs to be set consistently with Update_Exception.
13004 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
13005 since this function needs to be set consistently with Update_Exception.
13007 * s-taskin.ads: Update comments on
13008 Interrupt_Server_Blocked_On_Event_Flag.
13009 (Unbind_Handler): Fix handling of server_task wakeup
13010 (Server_Task): Set self's state so that Unbind_Handler can take
13011 appropriate actions.
13012 (Common_ATCB): Now use a constant from System.Parameters to determine
13013 the max size of the Task_Image field.
13015 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
13016 Initialize_Analyzer function.
13017 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
13018 take into account case of no abort restriction.
13019 ([Vulnerable_]Complete_Master): Modify assertion.
13021 * s-tataat.adb (Finalize): Use the nestable versions of
13022 Defer/Undefer_Abort.
13024 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
13026 * s-tpobop.ads: Update comments.
13028 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
13029 of locking the object manually, to avoid inconsistencies between
13030 Lock/Unlock_Entry assertions.
13032 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
13034 application and System.Parameters.No_Abort is True.
13035 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
13036 (Unbind_Handler): Fix handling of server_task wakeup
13037 (Server_Task): Set self's state so that Unbind_Handler can take
13038 appropriate actions.
13040 2007-06-06 Thomas Quinot <quinot@adacore.com>
13042 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
13043 declarations instead of an explicit null body, for conciseness.
13045 2007-06-06 Robert Dewar <dewar@adacore.com>
13047 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
13048 illegal aggregate and the type is still Any_Composite.
13049 (Subtypes_Statically_Match): Fix problem of empty discriminant list
13051 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13053 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
13054 to prevent subsequent expansion.
13056 2007-06-06 Robert Dewar <dewar@adacore.com>
13058 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
13060 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13061 Robert Dewar <dewar@adacore.com>
13063 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
13065 (Write_Itype): Handle case of string literal subtype, which
13066 comes up in this context.
13067 (Update_Itype): when debugging expanded code, update sloc of itypes
13068 associated with defining_identifiers and ranges, for gdb use.
13069 (Sprint_Node_Actual): Add static keyword to object or exception
13070 declaration output if Is_Statically_Allocated is True.
13071 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
13072 or task body, so that the tree carries the proper Sloc information for
13074 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
13076 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13078 * s-secsta.adb (Chunk): Ensure this object has a static size known at
13079 compile time, to avoid dynamic memory allocation
13080 (Elaboration code): Only use dynamic memory allocation when needed.
13082 2007-06-06 Quentin Ochem <ochem@adacore.com>
13084 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
13086 (Stack_Analyzer): Added field "Overflow_Guard"
13087 (Task_Result): Added field "Overflow_Guard".
13088 (Index_Str): New constant.
13089 (Task_Name_Str): New constant.
13090 (Actual_Size_Str): New constant.
13091 (Pattern_Array_Element_Size): New constant.
13092 (Get_Usage_Range): New subprogram.
13093 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
13094 Now align the output.
13096 (Initialize): Added value for Overflow_Guard.
13097 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
13098 Update the value of the overflow guard according to the actual
13099 beginning of the pattern array.
13100 (Initialize_Analyzer): Added parameter Overflow_Guard.
13101 Take this parameter into accound when computing the max size.
13102 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
13103 (Report_Result): Removed extra useless procedure.
13104 Updated call to Output_Result.
13105 Moved full computation of the Task_Result here.
13107 2007-06-06 Thomas Quinot <quinot@adacore.com>
13109 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
13110 Thread_Blocking_IO, always True by default, set False on a per-runtime
13112 Add Windows-specific constants
13113 Add new constant Need_Netdb_Buffer.
13114 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
13115 not, whether to use getXXXbyYYY_r.
13117 * gsocket.h: Add new constant Need_Netdb_Buffer.
13118 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
13119 not, whether to use getXXXbyYYY_r.
13121 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
13123 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
13124 than their first call.
13125 Add type Dummy_Communication_Block used in the generation of the pre-
13126 defined dispatching primitive _disp_asynchronous_select.
13127 (Storage_Element): Put Pragma Universal_Aliasing on it.
13129 2007-06-06 Vincent Celier <celier@adacore.com>
13131 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
13134 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
13135 letter if it is not followed by a '/' or a '\'.
13136 (Windows): New Boolean function
13138 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
13140 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
13142 (Containing_Directory): Raise Use_Error when the directory is a root
13144 (Extension): When returning the result, use a conversion to Result_Type,
13145 not a qualification.
13147 2007-06-06 Robert Dewar <dewar@adacore.com>
13149 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
13150 (Set_Style_Check_Options): Recognize new -gnatyg style switch
13152 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
13153 Warn_On_Non_Local_Exception to False, to turn off warnings for
13154 No_Exception_Propagation in ZFP runtime.
13155 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
13157 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
13159 2007-06-06 Vincent Celier <celier@adacore.com>
13161 * switch-b.adb (Scan_Binder_Switches): Add processing for new
13164 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
13165 (Scan_Make_Switches): Recognize new switch -aP
13167 2007-06-06 Matthew Gingell <gingell@adacore.com>
13168 Jose Ruiz <ruiz@adacore.com>
13170 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
13171 VxWorks task descriptor in the Ada run time, call a C subprogram
13172 (__gnat_get_stack_info) that extracts the required information.
13174 * sysdep.c: Back out temporary lynxos workaround.
13175 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
13176 time the stack information associated to the currently executing task.
13177 Only VxWorks systems require this function.
13179 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
13181 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
13182 add the stack bias if the offset is computed from a frame address.
13183 (__gnat_backtrace): Adjust for above change.
13185 2007-06-06 Thomas Quinot <quinot@adacore.com>
13187 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
13188 PE_Non_Transportable_Actual.
13189 (By_Descriptor_Last): New constant.
13190 (By_Copy_Return): Likewise.
13192 2007-06-06 Vincent Celier <celier@adacore.com>
13194 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
13197 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
13198 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
13199 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
13200 Add missing comment for /OPTIMIZE=SPACE
13201 Add entry for OPTIMIZE=SPACE
13202 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
13203 Add documentation for new qualifiers corresponding to -gnatw.c/.C
13205 2007-06-06 Vincent Celier <celier@adacore.com>
13206 Robert Dewar <dewar@adacore.com>
13208 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
13211 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
13212 Document gnatbind switch -a
13213 (case Constructions): Document that variables declarations are allowed
13214 for previously declared variables.
13215 Fix external lib project example
13216 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
13217 Indicate that "#if not X or Y then" is not allowed in input files to
13219 Document gnatw.x and gnatw.X warning flags
13220 Mention -Winline switch to activate warnings when back-end inlining is
13222 Add gnatcheck rule descriptions
13223 Describe how to use the GNAT driver to call a tool on a closure.
13224 Describe how to run project-wide checks or metrics.
13225 Document gnatbind's -R option
13226 Updated to account for Ada 2005 support
13228 * gnat_rm.texi (Case Construction): Allow variable declarations for
13229 previously declared variables.
13230 (Representation Clauses and Pragmas): Lift restriction on alignment
13231 clauses for record types.
13232 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
13233 Document No_Exception_Propagation restriction
13234 Document No_Body pragma
13235 Updated to account for Ada 2005 support; corrected some typos
13236 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
13238 * gnat-style.texi: Make it clear that we never use mode IN for
13239 procedures or functions
13241 * ug_words: Add entries for -gnatw.x and -gnatw.X
13242 Add entries for -gnatw.c/.C
13244 2007-06-06 Pascal Obry <obry@adacore.com>
13245 Vincent Celier <celier@adacore.com>
13247 * makegpr.adb (Add_Archive_Path): Use untouched object and library
13248 dirs and library name.
13249 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
13251 (Build_Library): Idem.
13252 (Compile_Individual_Sources): Idem.
13253 (Compile_Link_With_Gnatmake): Idem.
13254 (Compile_Sources): Idem.
13255 (Get_Imported_Directories): Idem.
13256 (Link_Executables): Idem. Same change for the executable dir.
13257 (Check_Compilation_Needed): C_Source_Path new variable containing
13258 the canonical form of Source_Path to check against the source names
13259 in the dependency file.
13260 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
13261 verbose mode, display the name of the object directory we're changing
13263 (Saved_Switches): New name of table X_Switches
13264 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
13265 (Usage): New line for switch -aP
13266 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
13267 testing if a directory should be added to the search path.
13269 2007-06-06 Javier Miranda <miranda@adacore.com>
13271 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
13272 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
13273 declaration after freezing point of all its associated tagged types;
13274 otherwise such types are frozen too early.
13276 2007-06-06 Robert Dewar <dewar@adacore.com>
13278 * a-reatim.adb: Documentation addition
13280 * g-cgideb.adb: Minor code reorganization
13282 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
13283 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
13284 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
13286 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
13287 function. Change name New_Scope to Push_Scope
13288 (Get_Debug_Flag_K): Remove unused obsolete function.
13290 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
13293 * makeusg.adb: Update Copyright notice
13294 Add line for switch -aP
13296 * makeusg.adb: Fix wording of some usage messages
13298 * s-assert.adb (Raise_Assert_Failure): Add call to
13299 Debug_Raise_Assert_Failure.
13301 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
13302 (2, Standard'Alignment) for compatibility with AAMP (where alignment
13303 is restricted to 1).
13305 * s-wchjis.adb: Remove use of System.Pure_Exceptions
13307 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
13308 node location to No_Location when we're not debugging the expanded
13311 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
13313 * misc.c (enumerate_modes): Consider log2_b to always be one.
13315 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
13317 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
13319 2007-05-02 Pascal Obry <obry@adacore.com>
13321 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
13322 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
13323 encoding support of Stream_IO.
13324 (Write_Unit): Idem.
13326 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
13327 filename and corresponding encoding to match the OS requirement.
13328 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
13329 routine will fail on specific devices like CON: AUX: ...
13331 PR ada/29856: Add missing braces
13333 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
13336 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
13338 2007-04-21 Jan Hubicka <jh@suse.cz>
13340 * misc.c (gnat_expand_body): Don't call target for destructors,
13341 avoid redundant check on syntax errors.
13343 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
13345 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
13346 instead of checking GIMPLE_STMT_P in chain_next.
13348 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
13351 * system-linux-alpha.ads: Disable constant condition warning for the
13352 Default_Bit_Order variable.
13353 * system-linux-s390.ads: Likewise.
13354 * system-linux-s390x.ads: Likewise.
13355 * system-linux-sparc.ads: Likewise.
13357 2007-04-06 Javier Miranda <miranda@adacore.com>
13358 Matt Heaney <heaney@adacore.com>
13359 Robert Dewar <dewar@adacore.com>
13361 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
13362 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
13363 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
13364 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
13365 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
13366 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
13367 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
13368 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
13369 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
13370 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
13371 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
13372 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
13373 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
13374 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
13375 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
13376 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
13377 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
13378 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
13379 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
13380 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
13381 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
13382 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
13383 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
13384 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
13385 s-taprop-tru64.adb, s-taprop-irix.adb,
13386 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
13387 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
13388 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
13389 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
13390 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
13391 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
13392 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
13393 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
13394 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
13395 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
13396 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
13397 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
13398 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
13399 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
13400 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
13401 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
13402 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
13403 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
13404 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
13405 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
13407 Update documentation.
13410 2007-04-06 Robert Dewar <dewar@adacore.com>
13412 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
13413 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
13414 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
13415 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
13416 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
13417 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
13418 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
13419 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
13420 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
13421 system-hpux-ia64.ads, targparm.adb,
13422 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
13424 * system.ads: Move Functions_Return_By_DSP to obsolete section,
13425 kept for bootstrap purposes only.
13427 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13429 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
13430 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
13431 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
13432 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
13434 2007-04-06 Robert Dewar <dewar@adacore.com>
13436 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
13437 (Local_Raise): New dummy procedure called when a raise is converted
13438 to a local goto. Used for debugger to detect that the exception
13441 * debug.adb: Document new d.g flag (expand local raise statements to
13442 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
13444 * exp_sel.adb: Use Make_Implicit_Exception_Handler
13446 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
13447 suppress warnings for unused handlers.
13448 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
13449 warnings for raise statements not handled locally.
13450 (Get_RT_Exception_Entity): New function
13451 (Get_Local_Call_Entity): New function
13452 (Find_Local_Handler): New function
13453 (Warn_If_No_Propagation): New procedure
13454 (Expand_At_End_Handler): Call Make_Implicit_Handler
13455 (Expand_Exception_Handlers): Major additions to deal with local handlers
13456 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
13457 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
13460 * exp_ch11.ads (Get_RT_Exception_Entity): New function
13461 (Get_Local_Call_Entity): New function
13463 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
13464 of restrictions that the binder will never suggest adding.
13466 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
13469 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
13470 be with'ed in the presence of pragma Restriction
13471 (No_Exception_Propagation).
13473 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
13475 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
13476 parameter, then the handler is not a suitable target for a local raise,
13477 and this is a violation of restriction No_Exception_Propagation.
13478 (Analyze_Handled_Statements): Analyze choice parameters in exception
13479 handlers before analyzing statement sequence (needed for proper
13480 detection of local raise statements).
13481 (Analyze_Raise_Statement): Reraise statement is a violation of the
13482 No_Exception_Propagation restriction.
13484 * s-rident.ads: Add new restriction No_Exception_Propagation
13486 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
13487 function, like Make_Exception_Handler but sets Local_Raise_Statements
13489 (Add_Unique_Serial_Number): Deal with case where this is called during
13490 processing of configuration pragmas.
13492 2007-04-06 Thomas Quinot <quinot@adacore.com>
13493 Pat Rogers <rogers@adacore.com>
13494 Pascal Obry <obry@adacore.com>
13496 * g-stsifd-sockets.adb: New file.
13498 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
13499 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
13500 g-socthi-vms.adb: Move signalling
13501 fd management to a nested package, so that they can conveniently be
13502 moved to a subunit that is shared across Windows, VMS, and VxWorks
13503 (Ada implementation) or completed with imported bodies from socket.c
13505 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
13507 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
13508 the signalling file descriptor.
13509 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
13510 signalling file descriptor.
13511 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
13512 instead of creating a pair of sockets for signalling here.
13514 * g-socthi.adb: Ditto.
13515 Set the runtime process to ignore SIGPIPEs on platforms that support
13516 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13518 * g-socthi-mingw.adb: Ditto.
13519 (WS_Version): Use Windows 2.2.
13520 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13522 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
13523 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13525 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
13526 added GNAT byte swapping facility
13527 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
13529 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
13531 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
13533 (__gnat_create_signalling_fds): New subprogram.
13534 Set the runtime process to ignore SIGPIPEs on platforms that support
13535 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13537 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
13538 Vincent Celier <celier@adacore.com>
13540 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
13541 New version of Ada.Calendar which supports the new upper bound of Ada
13542 time (2399-12-31 86_399.999999999).
13543 The following modifications have been made to the package:
13544 - New representation of time as count of nanoseconds since the start of
13545 Ada time (1901-1-1 0.0).
13546 - Target independent Split and Time_Of routines which service both
13547 Ada 95 and Ada 2005 code.
13548 - Target independent interface to the Ada 2005 children of Calendar.
13549 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
13550 - Handling of non-leap centenial years.
13551 - Updated clock function.
13552 - Updated arithmetic and comparison operators.
13554 * a-caldel.adb (To_Duration): Add call to target independent routine in
13555 Ada.Calendar to handle the conversion of time to duration.
13557 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
13559 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
13561 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
13562 targets do not have a natural time zone, GMT is used as a default.
13563 (__gnat_get_task_options): New.
13565 * a-direct.adb (Modification_Time): Add with and use clauses for
13566 Ada.Calendar and Ada.
13567 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
13568 since it is no longer needed.
13569 (Duration_To_Time): Removed.
13570 (OS_Time_To_Long_Integer): Removed.
13571 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
13572 Formatting Time_Of routines which automatically handle time zones,
13573 buffer periods and leap seconds.
13575 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
13576 target independent routines in Ada.Calendar.
13578 * a-calfor.ads, a-calfor.adb:
13579 Code cleanup and addition of validity checks in various routines.
13580 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
13583 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
13584 independent routine in Ada.Calendar.
13586 2007-04-06 Olivier Hainque <hainque@adacore.com>
13589 (convert_addresses): Adjust prototype and dummy definition to expect an
13590 extra file_name argument.
13592 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
13593 filling the now expected file_name argument with the appropriate
13595 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
13596 (tracebk): Array of void * instead of char *, corresponding to what
13597 convert_addresses expects.
13598 (exename): New static global, to hold the executable file name to be
13599 used in all convert_addresses invocations.
13600 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
13602 (__gnat_gmem_a2l_initialize): Resolve exename.
13603 (__gnat_convert_addresses): Use exename as the convert_addresses
13604 file_name argument.
13606 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
13607 "convert_addresses", now expecting a filename argument. Import the
13608 necessary entities to compute the filename to use and pass it to
13611 2007-04-06 Matt Gingell <gingell@adacore.com>
13613 * system-aix.ads: Back out previous change.
13614 (Functions_Return_By_DSP): Removed
13616 2007-04-06 Pascal Obry <obry@adacore.com>
13618 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
13619 or the monotonic used by Ada.Real_Time) to compute the sleep duration
13622 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13624 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
13625 function. Its value changes in different VxWorks versions, and it is
13626 now handled by the function __gnat_get_task_options.
13628 * s-taprop-vxworks.adb (Create_Task): Call the function
13629 __gnat_get_task_options to get the required options for creating a task.
13631 2007-04-06 Pascal Obry <obry@adacore.com>
13632 Thomas Quinot <quinot@adacore.com>
13634 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
13635 dealing with filename.
13636 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
13637 filename from a standard string to a wide-string depending on the
13639 (__gnat_freopen): Idem.
13640 (__gnat_current_time): New function (wrapper for time(3) standard C
13643 * g-os_lib.ads (Current_Time): New function. Returns the current
13644 system time as an OS_Time value.
13646 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
13647 (Monotonic_Clock): Same.
13649 2007-04-06 Quentin Ochem <ochem@adacore.com>
13651 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
13653 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
13655 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13657 * a-retide.adb: Add elaboration code to ensure that the tasking run
13658 time is initialized when using delay operations even when no task is
13661 2007-04-06 Javier Miranda <miranda@adacore.com>
13663 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
13664 component Num_Prim_Ops.
13665 (Set_Num_Prim_Ops): Removed.
13666 Remove all the assertions because all the routines of this
13667 package are inline always.
13668 (Get_Offset_Index): Add support to primary dispatch tables.
13669 Move the documentation about the dispatch table to a-tags.ads
13670 (Set_External_Tag): Removed
13671 (Inherit_TSD): Removed.
13672 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
13673 moved to a-tags.ads
13674 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
13675 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
13676 of the TSD field "Table" because this field has been renamed to
13678 (Inherit_CPP_DT): Removed.
13679 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
13680 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
13681 declarations have been moved to a-tags.ads
13682 (Check_Size): Removed.
13683 (Expanded_Name): Updated to get access to the new field of TSD
13684 containing the address of the expanded name.
13685 (Get_Access_Level/Set_Access_Level): Removed.
13686 (Get_Predefined_Prim_Op_Address): Removed.
13687 (Set_Predefined_Prim_Op_Address): Removed.
13688 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
13689 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
13690 (Set_Expanded_Name): Removed.
13691 (Inherit_DT): Removed.
13692 (Inherit_CPP_DT): Removed.
13693 (Set_RC_Offset): Removed.
13694 (Set_TSD): Removed.
13695 (Base_Address): New function that displaces "this" to point to the base
13696 of the object (that is, to point to the primary tag of the object).
13698 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13699 Javier Miranda <miranda@adacore.com>
13701 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
13702 anonymous access component, do not create a master_id if type already
13703 has one, as may happen if the type is a subcomponent of a packed array
13705 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
13706 Initialize_Tag): Remove code associated with the old CPP pragmas.
13707 CPP_Virtual and CPP_Vtable are no longer supported.
13708 (Build_Offset_To_Top_Internal): Add support for concurrent record types
13709 (Build_Offset_To_Top_Functions): Add support for concurrent record types
13710 (Freeze_Record_Type): Remove call to
13711 Init_Predefined_Interface_Primitives.
13712 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
13713 code required to initialize the tags of the secondary dispatch tables.
13714 This leaves the algoritm more clear.
13715 (Init_Secondary_Tags): Add support for concurrent record types
13716 (Make_Predefined_Primitive_Specs): Code cleanup.
13717 (Predefined_Primitive_Bodies): Code cleanup.
13718 (Build_Master_Renaming): New local subprogram.
13719 (Expand_N_Full_Type_Declaration): Build the master_id associated with
13720 anonymous access to task type components.
13721 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
13722 subtype indication are resolved during analysis, and must not be done
13724 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
13726 2007-04-06 Geert Bosch <bosch@adacore.com>
13727 Ed Schonberg <schonberg@adacore.com>
13728 Javier Miranda <miranda@adacore.com>
13729 Bob Duff <duff@adacore.com>
13731 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
13732 for conversion of a Float_Type'Truncation to integer.
13734 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
13735 check if a node is an attribute that can be handled directly by the
13737 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
13738 attributes that can be handled directly by the back end.
13739 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
13740 use new predicate Is_Access_Protected_Subprogram_Type.
13741 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
13742 and Unchecked_Union if it is generated as part of the default Output
13743 procedure for a type with default discriminants.
13744 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
13745 if we are compiling under restriction No_Dispatching_Calls.
13746 (Constrained): Use Underlying_Type, in case the type is private without
13747 discriminants, but the full type has discriminants.
13748 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
13749 call to Build_Get_Access_Level.
13750 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
13751 interface objects requires a call to the run-time subprogram that
13752 returns the base address of the object.
13753 (Valid_Conversion): Improve error message on illegal attempt to store
13754 an anonymous access to subprogram value into a record component.
13756 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
13758 (Simplify_Type_Conversion): New procedure that performs simplification
13759 of Int_Type (Float_Type'Truncation (X)).
13760 (Resolve_Type_Conversion): Call above procedure after resolving operand
13761 and before performing checks. This replaces the existing ineffective
13763 (Set_String_Literal_Subtype): When creating the internal static lower
13764 bound subtype for a string literal, use a newly created copy of the
13765 subtree representing the lower bound.
13766 (Resolve_Call): Exclude build-in-place function calls from transient
13767 scope treatment. Update comments to describe this exception.
13768 (Resolve_Equality_Op): In case of dispatching call check violation of
13769 restriction No_Dispatching_Calls.
13770 (Resolve_Call): If the call returns an array, the context imposes the
13771 component type of the array, and the function has one non-defaulted
13772 parameter, rewrite the call as the indexing of a call with a single
13773 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
13775 (Resolve_Actuals): If an actual is an allocator for an access parameter,
13776 the master of the created object is the innermost enclosing statement.
13777 (Remove_Conversions): For a binary operator, check if type of second
13778 formal is numeric, to check if an abstract interpretation is present
13779 in the case of exponentiation as well.
13781 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13782 Bob Duff <duff@adacore.com>
13784 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
13785 copying a parameter list in a call, set properly the First_Named_Formal
13786 and Next_Named_Formal fields in the new list and in the enclosing call.
13787 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
13788 names, to ease typing in the debugger. Improve comments.
13789 (Watch_Node): New variable, intended to be set in the debugger.
13790 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
13791 called when the watched node is created.
13792 (New_Node_Debugging_Output): Combined version of local procedures
13793 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
13794 with a parameter so that conditional breakpoints like "if Node = 12345"
13796 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
13797 Add Elist1 function
13799 2007-04-06 Thomas Quinot <quinot@adacore.com>
13800 Ed Schonberg <schonberg@adacore.com>
13801 Gary Dismukes <dismukes@adacore.com>
13803 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
13804 required for a conversion between two access-to-unconstrained-array
13806 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
13807 to discriminant constraints on discriminant objects. This rule must
13808 apply as well to discriminants of protected types in private components.
13809 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
13810 object of a null-excluding access type then don't require the
13811 the object declaration to have an expression and don't emit a
13814 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13815 Eric Botcazou <botcazou@adacore.com>
13817 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
13820 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
13821 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
13824 * fe.h (Compiler_Abort): Add third parameter.
13826 * misc.c (internal_error_function): Build third argument from current
13827 input location and pass it to Compiler_Abort.
13829 2007-04-06 Gary Dismukes <dismukes@adacore.com>
13831 * cstand.adb (Create_Standard): When the target's storage unit size is
13832 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
13835 2007-04-06 Nicolas Roche <roche@adacore.com>
13837 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
13838 absolute path can have the following form: device:/a/b. In this case
13839 '/' should be inserted between the path and the filename.
13841 2007-04-06 Olivier Hainque <hainque@adacore.com>
13842 Eric Botcazou <botcazou@adacore.com>
13844 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
13845 VAR_DECL to a CONST_DECL we make for a public constant when we know the
13846 corresponding definition has created the so made visible variable.
13847 Handle anonymous access to protected subprogram.
13848 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
13849 object with an address clause volatile. Re-enable original fix.
13850 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
13852 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
13853 associated with either the Equivalent or Root type, instead of the
13855 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
13856 subtree for every field of a global record type.
13857 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
13858 discriminants, invoke again variable_size on its newly computed sizes.
13860 2007-04-06 Robert Dewar <dewar@adacore.com>
13861 Thomas Quinot <quinot@adacore.com>
13862 Ed Schonberg <schonberg@adacore.com>
13863 Bob Duff <duff@adacore.com>
13865 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
13866 (Next_Component_Or_Discriminant): New function and procedure
13867 (First_Index, First_Literal, Master_Id,
13868 Set_First_Index, Set_First_Literal, Set_Master_Id):
13869 Add missing Ekind assertions.
13870 (Is_Access_Protected_Subprogram_Type): New predicate.
13871 (Has_RACW): New entity flag, set on package entities to indicate that
13872 the package contains the declaration of a remote accecss-to-classwide
13874 (E_Return_Statement): This node type has the Finalization_Chain_Entity
13875 attribute, in case the result type has controlled parts.
13876 (Requires_Overriding): Add this new flag, because "requires
13877 overriding" is subtly different from "is abstract" (see AI-228).
13878 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
13879 Is_Abstract_Type. Make sure these are called only when appropriate.
13880 (Has_Pragma_Unreferenced_Objects): New flag
13882 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
13883 class-wide, the tag of the right-hand side must be an exact match, not
13884 an ancestor of that of the object on left-hand side.
13885 (Move_Activation_Chain): New procedure to create the call to
13886 System.Tasking.Stages.Move_Activation_Chain.
13887 (Expand_N_Extended_Return_Statement): Generate code to call
13888 System.Finalization_Implementation.Move_Final_List at the end of a
13889 return statement if the function's result type has controlled parts.
13890 Move asserts to Build_In_Place_Formal.
13891 (Move_Final_List): New function to create the call statement.
13892 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
13893 tagged type, replace generation of call to the run-time subprogram
13894 CW_Membership by call to Build_CW_Membership.
13895 (Expand_N_Return_Statement): Replace generation of call to the run-time
13896 subprogram Get_Access_Level by call to Build_Get_Access_Level.
13897 (Expand_N_Simple_Function_Return): Replace generation of call to the
13898 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
13900 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
13901 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
13902 access to protected operations.
13903 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
13904 master and chain actual parameters to a build-in-place function call
13906 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
13908 (Make_Build_In_Place_Call_In_Allocator,
13909 Make_Build_In_Place_Call_In_Anonymous_Context,
13910 Make_Build_In_Place_Call_In_Assignment,
13911 Make_Build_In_Place_Call_In_Object_Declaration): Call
13912 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
13913 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
13914 stubbed procedure with a null body, replace the call with a null
13915 statement without using the full inlining machinery, for efficiency
13916 and to avoid invalid values in source file table entries.
13918 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
13919 renamings of calls to build-in-place functions.
13921 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
13922 provides the functionality of RTE_Available to record components.
13923 (RTU_Entity): The function Entity has been renamed to RTU_Entity
13924 to avoid undesired overloading.
13925 (Entity): New subprogram that returns the entity for the referened
13926 unit. If this unit has not been loaded, it returns Empty.
13927 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
13928 Remove no longer used entities.
13929 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
13930 (RE_Type_Specific_Data): New entity.
13931 (RE_Move_Any_Value): New entity.
13932 (RE_TA_A, RE_Get_Any_Type): New entities.
13933 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
13934 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
13935 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
13936 (Entity): New subprogram that returns the entity for the referened
13937 unit. If this unit has not been loaded, it returns Empty.
13938 (RTE): Addition of a new formal that extends the search to the scopes
13939 of the record types found in the chain of the package.
13941 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
13942 "abstract subprograms must be visible" message, whether or not the type
13943 is an interface; that is, remove the special case for interface types.
13944 (Analyze_Function_Return): Remove error message "return of task objects
13945 is not yet implemented" because this is now implemented.
13946 (Create_Extra_Formals): Add the extra master and activation chain
13947 formals in case the result type has tasks.
13948 Remove error message "return of limited controlled objects is not yet
13950 (Create_Extra_Formals): Add the extra caller's finalization list formal
13951 in case the result type has controlled parts.
13952 (Process_Formals): In case of access formal types there is no need
13953 to continue with the analysis of the formals if we already notified
13955 (Check_Overriding_Indicator): Add code to check overriding of predefined
13957 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
13958 flags for formals that do not require them,.
13959 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
13960 hidden entity is use visible or directly visible.
13961 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
13962 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
13963 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
13964 New_Overloaded_Entity): Split Is_Abstract flag into
13965 Is_Abstract_Subprogram and Is_Abstract_Type.
13967 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
13968 a return statement's finalization list to the caller's list, used for
13969 build-in-place functions with result type with controlled parts.
13970 Remove no longer used entities.
13972 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
13973 longer needed, because the full type is now limited, and therefore a
13974 pass-by-reference type.
13975 (Foreign_Task_Level): New constant.
13977 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
13978 move tasks from the activation chain belonging to a return statement to
13979 the one passed in by the caller, and update the master to the one
13980 passed in by the caller.
13981 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
13982 of unactivated tasks, so we don't kill the ones that are being returned
13983 by a build-in-place function.
13984 (Create_Task): Ignore AI-280 for foreign threads.
13986 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13987 Robert Dewar <dewar@adacore.com>
13988 Bob Duff <duff@adacore.com>
13989 Gary Dismukes <dismukes@adacore.com>
13991 * errout.adb (Unwind_Internal_Type): Use predicate
13992 Is_Access__Protected_Subprogram_Type.
13994 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
13995 (Freeze_Entity, packed array case): Do not override explicitly set
13996 alignment and size clauses.
13997 (Freeze_Entity): An entity declared in an outer scope can be frozen if
13998 the enclosing subprogram is a child unit body that acts as a spec.
13999 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
14000 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
14001 Remove all code for DSP option
14003 * layout.adb (Layout_Record_Type): Use First/
14004 Next_Component_Or_Discriminant
14005 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
14006 to handle properly the anonymous access case.
14008 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
14009 for all access attributes, because overload resolution should work the
14010 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
14011 causes the error message for the ambiguous "X'Access = Y'Access" and
14012 "X'Unrestricted_Access = Y'Access" and so forth to match.
14013 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
14014 now that anonymous access to protected operations have their own kind.
14015 (Resolve_Attribute): In case of dispatching call check the violation of
14016 restriction No_Dispatching_Calls.
14017 (Check_Array_Type): Check new -gnatyA array index style option
14019 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
14020 attempt to derive from a synchronized tagged type.
14021 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
14022 type, inherit the class-wide type already created, because it may
14023 already have been used in a self-referential anonymous access component.
14024 (Mentions_T): Recognize self-referential anonymous access components
14025 that use (a subtype of) the class-wide type of the enclosing type.
14026 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
14027 Derived_Type for Prev formal on call to
14028 Check_Anonymous_Access_Components rather than Empty.
14029 (Make_Incomplete_Type_Declaration): Add test for case where the type has
14030 a record extension in deciding whether to create a class-wide type,
14031 rather than just checking Tagged_Present.
14032 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
14033 to stand-alone object declarations as well as component declarations.
14034 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
14035 prevent accidental overwriting when enclosing package appears in
14036 a limited_with_clause.
14037 (Array_Type_Declaration): If the component type is an anonymous access,
14038 the associated_node for the itype is the type declaration itself.
14039 (Add_Interface_Tag_Components): Modified to support concurrent
14040 types with abstract interfaces.
14041 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
14042 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
14043 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
14044 to complete the decoration of synchronized interface types. Add also
14045 a call to Check_Abstract_Interfaces to verify the ARM rules.
14046 (Derive_Interface_Subprograms): Modified to support concurrent types
14047 with abstract interfaces.
14048 (Analyze_Subtype_Indication): Resolve the range with the given subtype
14049 mark, rather than delaying the full resolution depending on context.
14050 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
14051 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
14052 Array_Type_Declaration,Build_Derived_Record_Type,
14053 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
14054 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
14055 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
14056 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
14057 called only when appropriate.
14058 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
14060 (Analyze_Subtype_Declaration): For an access subtype declaration, create
14061 an itype reference for the anonymous designated subtype, to prevent
14062 scope anonmalies in gigi.
14063 (Build_Itype_Reference): New utility, to simplify construction of such
14066 2007-04-06 Vincent Celier <celier@adacore.com>
14068 * errutil.adb (Initialize): Initialize warnings table, if all warnings
14069 are suppressed, supply an initial dummy entry covering all possible
14072 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
14073 and start with only one, such as "-RTS=none".
14074 (Collect_Arguments): Do not check for sources outside of projects.
14075 Do not collect arguments if project is externally built.
14076 (Compile_Sources): Do nothing, not even check if the source is up to
14077 date, if its project is externally built.
14078 (Compile): When compiling a predefined source, add -gnatpg
14079 as the second switch, after -c.
14080 (Compile_Sources): Allow compilation of Annex J renames without -a
14081 (Is_In_Object_Directory): Check if the ALI file is in the object
14082 even if there is no project extension.
14083 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
14084 gnatbind if the ALI file effectively exists.
14085 (Initialize): Add the directory where gnatmake is invoked in front of
14086 the path if it is invoked from a bin directory, even without directory
14087 information, so that the correct GNAT tools will be used when spawned
14088 without directory information.
14090 * makeusg.adb: Change switch -S to -eS
14091 Add lines for new switches -we, -wn and -ws
14092 Add line for new switch -p
14094 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
14095 Treat_As_Error and there are warnings.
14097 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
14098 -gnatww Change gnatmake switch -S to -eS
14099 (Scan_Make_Switches): Code reorganisation. Process separately multi
14100 character switches and single character switches.
14101 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
14102 False when switch is not recognized by gnatmake.
14103 (Scan_Make_Switches): Set Setup_Projects True when -p or
14104 --create-missing-dirs is specified.
14106 * fname.adb (Is_Predefined_File_Name): Return True for annex J
14107 renamings Calendar, Machine_Code, Unchecked_Conversion and
14108 Unchecked_Deallocation only when Renamings_Included is True.
14110 * par.adb: Allow library units Calendar, Machine_Code,
14111 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
14112 when -gnatg is not specified.
14113 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
14114 there is no need to generate always a record_definition_node in case
14115 of synchronized interface types.
14116 (SIS_Entry_Active): Initialize global variable to False
14117 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
14118 indicate cases where AI-447 says "not null" is legal.
14120 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
14122 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
14123 files with with several lines starting with the object fileb name.
14124 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
14126 (Initialize): Add the directory where gprmake is invoked in front of the
14127 path, if it is invoked from a bin directory or with directory
14128 information, so that the correct GNAT tools will be used when invoked
14130 (Check_Compilation_Needed): Process correctly backslashes on Windows.
14132 * vms_data.ads: Update switches/qualifiers
14134 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14135 Thomas Quinot <quinot@adacore.com>
14138 If the array component is a discriminated record, the array aggregate
14139 is non-static even if the component is given by an aggregate with
14141 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
14142 (Convert_Aggr_In_Allocator): If the allocator is for an access
14143 discriminant and the type is controlled. do not place on a finalization
14144 list at this point. The proper list will be determined from the
14146 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
14147 initialize record controller if needed, before the components, to ensure
14148 that they are properly finalized.
14149 (Build_Record_Aggr_Code): For the case of an array component that has a
14150 corresponding array aggregate in the record aggregate, perform sliding
14153 2007-04-06 Javier Miranda <miranda@adacore.com>
14154 Gary Dismukes <dismukes@adacore.com>
14155 Ed Schonberg <schonberg@adacore.com>
14157 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
14158 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
14160 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
14161 accessibility on class-wide allocators if the allocator occurs at the
14162 same scope level as the allocator's type. The check is guaranteed to
14163 succeed in that case, even when the expression originates from a
14164 parameter of the containing subprogram.
14165 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
14166 under No_Dispatching_Calls restriction. During the semantic analysis
14167 we already notified such violation.
14168 (Tagged_Membership): Constant folding. There is no need to check
14169 the tag at run-time if the type of the right operand is non
14170 class-wide abstract.
14171 Replace call to Is_Ancestor by call to Is_Parent
14172 to support concurrent types with interface types.
14173 (Expand_N_Allocator): Add an assertion associated with the generation
14175 (Expand_N_Slice): Do not enable range check to nodes associated
14176 with the frontend expansion of the dispatch table.
14177 (Is_Local_Access_Discriminant): Subsidiary function to
14178 Expand_N_Allocator.
14179 (Tagged_Membership): Replace generation of call to the run-time
14180 subprogram CW_Membership by call to Build_CW_Membership.
14181 (Expand_Allocator_Expression): Replace generation of call to the
14182 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
14184 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
14185 initialize most the TSD components by means of an aggregate.
14186 Modify the declaration of the object containing the TSD
14187 because we now expand code that has a higher level of abstraction.
14188 The TSD has a discriminant containing the Inheritance Depth Level,
14189 value that is used in the membership test but also to fix the size
14190 of the table of ancestors.
14191 (Expand_Interface_Conversion): Insert function body at the closest place
14192 to the conversion expression, to prevent access-before-elaboration
14193 errors in the backend.
14194 Code improved to reduce the size of the dispatch table if
14195 compiling under restriction No_Dispatching_Calls plus code cleanup.
14196 Code reorganization plus removal of calls to Set_Num_Prim_Ops
14197 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
14198 (Expand_Dispatching_Call): Minor code reorganization plus addition of
14199 code to return immediately if compiling under No_Dispatching_Calls
14201 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
14202 CPP_Virtual and CPP_Vtable are no longer supported.
14203 (Expand_Interface_Conversion): Add missing support for interface type
14205 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
14206 Is_Parent to support concurrent types with interfaces.
14207 (Init_Predefined_Interface_Primitives): Removed.
14208 (Make_Secondary_DT): Modified to support concurrent record types.
14209 (Set_All_DT_Position): Modified to support concurrent record types.
14210 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
14211 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
14212 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
14213 with CW_Membership.
14214 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
14215 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
14216 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
14217 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
14218 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
14219 (Expand_Dispatching_Call): Replace generation of call to the run-time
14220 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
14221 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
14223 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
14224 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
14225 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
14226 Build_Set_Prim_Op_Address.
14227 (Get_Remotely_Callable): Subprogram removed.
14228 (Init_Predefined_Interface_Primitives): Replace generation of call to
14229 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
14232 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
14233 First (Parameter_Associations ()) with the call to First_Actual that
14234 returns an actual parameter expression for both named and positional
14237 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
14238 check violation of restriction No_Dispatching_Calls.
14239 (Check_Controlling_Type): A formal of a tagged incomplete type is a
14240 controlling argument.
14242 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
14243 First/Next_Component_Or_Discriminant
14244 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
14245 (Find_Implemented_Interface): Removed. All the calls to this subprogram
14246 specify Any_Limited_Interface, and this functionality is already
14247 provided by the function Has_Abstract_Interfaces.
14248 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
14249 support concurrent types implementing interfaces.
14250 (Find_Implemented_Interface): Removed. All the calls to this subprogram
14251 specify kind Any_Limited_Interface, and this functionality is already
14252 provided by the function Has_Abstract_Interfaces.
14253 (Remove_Side_Effects): replace Controlled_Type by
14254 CW_Or_Controlled_Type whenever the issue is related to
14255 using or not the secondary stack.
14257 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
14258 P_Interface_Type_Definition to fulfill the new interface (the formal
14259 Is_Synchronized is no longer required).
14261 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
14262 Update dependencies.
14264 * exp_atag.ads, exp_atag.adb: New file
14266 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14267 Bob Duff <duff@adacore.com>
14268 Cyrille Comar <comar@adacore.com>
14270 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
14271 anonymous, use finalization list of enclosing dynamic scope.
14272 (Expand_N_Package_Declaration): For a library package declaration
14273 without a corresponding body, generate RACW subprogram bodies in the
14274 spec (just as we do for the task activation call).
14275 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
14276 Is_Abstract_Type. Make sure these are called only when appropriate.
14277 Remove all code for DSP option
14278 (CW_Or_Controlled_Type): new subprogram.
14280 2007-04-06 Eric Botcazou <botcazou@adacore.com>
14281 Ed Schonberg <schonberg@adacore.com>
14282 Gary Dismukes <dismukes@adacore.com>
14284 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
14285 parameter. If it is set to true, return a result capped according to
14286 the global upper bound for the index of an entry family.
14287 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
14288 (Build_Find_Body_Index): Adjust for above change.
14289 (Entry_Index_Expression): Likewise.
14290 (Is_Potentially_Large_Family): New function extracted from...
14291 (Collect_Entry_Families): ...here. Call it to detect whether the family
14292 is potentially large.
14293 (Build_Entry_Count_Expression): If the family is potentially large, call
14294 Family_Size with 'Cap' set to true.
14295 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
14296 a protected version of an operation declared in the private part of
14297 a protected object, because they may be invoked through a callback.
14298 (Set_Privals): If the type of a private component is an anonymous access
14299 type, do not create a new itype for each protected body.
14300 If the body of a protected operation creates
14301 controlled types (including allocators for class-widetypes), the
14302 body of the corresponding protected subprogram must include a
14304 (Build_Activation_Chain_Entity): Build the chain entity for extended
14306 (Type_Conformant_Parameters): Use common predicate Conforming_Types
14307 to determine whether operation overrides an inherited primitive.
14308 (Build_Wrapper_Spec): Add code to examine the parents while looking
14309 for a possible overriding candidate.
14310 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
14311 hold an actual parameter value since its initialization is separated
14312 from the the declaration. Prevents errors on null-excluding access
14315 2007-04-06 Thomas Quinot <quinot@adacore.com>
14316 Pablo Oliveira <oliveira@adacore.com>
14318 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
14319 Do an Unchecked_Conversion to handle the passage from the Underlying
14320 Type to the Base Type when calling Build_To_Any_Call and
14321 Build_From_Any_Call.
14322 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
14323 E_Constant, depending upon Variable formal.
14324 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14325 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
14326 parameter that requires an extra constrained parameter, declare
14327 temporary for actual as a variable, not a constant.
14328 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
14329 the unit being compiled is the one that contains the stub type.
14330 Change primitive operation name for the RACW associated with a RAS
14331 from Call to _Call so it cannot clash with any legal identifier.
14332 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
14334 (Append_RACW_Bodies): New subprogram.
14335 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
14336 Add_Receiving_Stubs_To_Declarations functions.
14337 When expanding a package body, this list correspond to the
14338 statements in the HSS at the end of the pacakge.
14339 When expanding a package spec, this list correspond to the
14341 (Add_Receiving_Stubs_To_Declarations): Append the function
14342 registering the receiving stubs at the end of the 'Stmts' list.
14343 (RCI_Package_Locator): Pass the new Version generic formal when
14344 instantiating a RCI_Locator package.
14345 (Build_From_Any_Function): To compute the High bound for an
14346 unconstrained array actual, we add the Low bound with the length.
14347 Thus we must convert the low bound and the length to an appropriate
14348 type before doing the sum.
14349 (Build_Subprogram_Receiving_Stubs, PolyORB):
14350 * Retrieve the extra formals parameters at the
14351 end of the parameter stream.
14352 * Use Move_Any_Value to write back out parameters
14353 after executing the request as it is more efficient
14354 than Copy_Any_Value.
14355 * Build the any containing Extra Formals with the
14356 appropriate typecode.
14357 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
14358 empty Component_List.
14359 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
14360 the tree the declaration for an object that serves as actual parameter
14361 in server-side stubs.
14362 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14363 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
14364 Use Build_Actual_Object_Declaration to prepare the actuals.
14365 (Add_Parameter_To_NVList): Set the parameter mode to In for
14366 Extra Constrained Parameters.
14367 (Build_General_Calling_Stubs): Set the parameter type to boolean for
14368 Extra Constrained parameters.
14369 (Build_To_Any_Function, Build_From_Any_Function,
14370 Built_TypeCode_Function): When Typ is implicit, call the correct
14371 function with the first not implicit parent type.
14372 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
14373 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
14374 typecode from the Etype. Therefore we retrieve the correct typecode
14375 with a call to Get_Any_Type.
14376 (Copy_Specification): Do controlling formal type substitution based on
14377 Is_Controlling_Formal flag, instead of caller-provided object type.
14378 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
14379 a RACW primitive operation, we might get a subprogram declaration for an
14380 ancestor of the RACW designated type (not for the designated type
14381 itself), in the case where this operation is inherited. In this case we
14382 have no easy means of determining the original tagged type for which
14383 the primitive was declared, so instead we now rely on
14384 Copy_Specification to use the Is_Controlling_Formal flag to determine
14385 which formals require type substitution.
14387 2007-04-06 Robert Dewar <dewar@adacore.com>
14388 Ed Schonberg <schonberg@adacore.com>
14390 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
14391 GNAT.Current_Exception are not allowed if pragma Restrictions
14392 (No_Exception_Propagation) is set and in any case make the associated
14393 handler unsuitable as a target for a local raise statement.
14394 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
14395 run-time subprogram CW_Membership by call to Build_CW_Membership.
14396 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
14397 by a function call, a temporary must be created before expanding the
14398 Constructor_Call itself, to prevent out-of-order elaboration in the
14399 back-end when stack checking is enabled..
14401 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14403 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
14404 result are the bounds of the left operand, not the right.
14406 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14409 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
14410 discriminant defaults.
14411 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
14412 (Make_Component_List_Attributes): Ditto.
14414 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14415 Bob Duff <duff@adacore.com>
14417 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
14418 an association with a box as providing a value even though the
14419 initialization procedure for the type is not available.
14420 (Resolve_Record_Aggregate): Check that a choice of an association with a
14421 box corresponds to a component of the type.
14422 (Resolve_Record_Aggregate): Split Is_Abstract flag into
14423 Is_Abstract_Subprogram and Is_Abstract_Type.
14425 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
14428 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
14429 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
14430 called only when appropriate.
14432 2007-04-06 Olivier Hainque <hainque@adacore.com>
14434 * g-alleve.ads (Low Level Vector type definitions): Map each to the
14435 associated vector view instead of all to the unsigned char view.
14437 * g-altcon.adb (Generic_Conversions): New internal generic package,
14438 offering facilities for all the Vector/View conversion routines
14439 implemented by this unit.
14440 (To_View/To_Vector - all versions): Reimplemented in a systematic
14441 manner, using the internal Generic_Conversions facilities.
14443 2007-04-06 Pascal Obry <obry@adacore.com>
14445 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
14447 (Create): Free the source string before storing the new one.
14449 2007-04-06 Vincent Celier <celier@adacore.com>
14451 * g-debpoo.adb (Validity): New package with a complete new
14452 implementation of subprograms Is_Valid and Set_Valid.
14453 (Is_Valid): Move to local package Validity
14454 (Set_Valid): Move to local package Validity
14456 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14457 Pablo Oliveira <oliveira@adacore.com>
14459 * g-expect.adb (Get_Command_Output): When expanding the output buffer
14460 we must ensure that there is enough place for the new data we are going
14463 2007-04-06 Thomas Quinot <quinot@adacore.com>
14465 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
14468 2007-04-06 Jose Ruiz <ruiz@adacore.com>
14469 Vincent Celier <celier@adacore.com>
14471 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
14472 (Stack_String): Add this String that contains the name of the Stack
14473 package in the project file.
14474 (Packages_To_Check_By_Stack): Add this list that contains the packages
14475 to be checked by gnatstack, which are the naming and the stack packages.
14476 (Check_Files): If no .ci files were specified for gnatstack we add all
14477 the .ci files belonging to the projects, including binder generated
14479 (Non_VMS_Usage): Document that gnatstack accept project file switches.
14480 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
14481 Add gnatstack to the list of commands that use project file related
14482 switches, and get the single attribute Switches from the stack package
14483 in a project file when calling gnatstack. Parse the -U flag for
14484 processing files belonging to all projects in the project tree.
14485 Remove all processing for command Setup
14487 * prj-attr.adb: Add new package Stack with single attribute Switches
14489 * vms_conv.ads (Command_Type): Add command Stack.
14490 Move to body declarations that are only used in the body: types Item_Id,
14491 Translation_Type, Item_Ptr, Item and its subtypes.
14493 * vms_conv.adb: (Initialize): Add data for new command Stack.
14494 Add declarations moved from the spec: types Item_Id, Translation_Type,
14495 Item_Ptr, Item and its subtypes.
14496 (Cargs_Buffer): New table
14497 (Cargs): New Boolean global variable
14498 (Process_Buffer): New procedure to create arguments
14499 (Place): Put character in table Buffer or Cargs_Buffer depending on the
14501 (Process_Argument): Set Cargs when processing qualifiers for GNAT
14503 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
14504 empty, for table Cargs_Buffer.
14505 (Initialize): Remove component Setup in Command_List
14507 2007-04-06 Vincent Celier <celier@adacore.com>
14509 * gprep.adb (Process_Files.Process_One_File): Use full file name when
14510 issuing pragma Source_Reference.
14512 2007-04-06 Emmanuel Briot <briot@adacore.com>
14514 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
14515 [[:xdigit:]] character class.
14516 Also raise an exception when an invalid character class is used.
14518 2007-04-06 Pascal Obry <obry@adacore.com>
14520 * i-cstrea.ads: (fopen): Add encoding parameter.
14522 Change reference from a-sysdep.c to sysdep.c in comment.
14523 Update copyright notice.
14524 This set of patch add support for the encoding form parameter.
14526 * mingw32.h (S2WSU): New macro to convert from a string to a
14527 wide-string using the UTF-8 encoding. The S2WS macro supports now only
14528 standard 8bits encoding.
14529 (WS2SU): As above but converting from wide-sring to string.
14530 This is needed as it is necessary to have access to both versions in the
14531 runtime for the form parameter encoding support.
14532 This set of patch add support for the encoding form parameter.
14533 (S2WS): Improve implementation to handle cases where the filename is not
14534 UTF-8 encoded. In this case we default to using the current code page
14535 for the conversion.
14537 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
14538 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
14539 the constants defined in adaint.h.
14540 (fopen): Add encoding parameter.
14543 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
14544 encoding. This is needed for the Reset routine (freopen low level-call).
14546 * s-fileio.adb (Open): Decode encoding form parameter and set the
14547 corresponding encoding value into AFCB structure.
14548 (Reset): Pass the encoding value to freopen.
14549 (Close): Move the call to Lock_Task to the beginning of the procedure.
14551 2007-04-06 Geert Bosch <bosch@adacore.com>
14552 Robert Dewar <dewar@adacore.com>
14554 * i-fortra.ads: Add Double_Complex type.
14556 * impunit.adb: (Is_Known_Unit): New function
14557 Add Gnat.Byte_Swapping
14559 Add new Ada 2005 units
14560 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
14561 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
14562 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
14563 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
14565 * impunit.ads (Is_Known_Unit): New function
14567 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
14568 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
14569 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
14570 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
14571 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
14572 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
14575 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
14577 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
14579 2007-04-06 Eric Botcazou <botcazou@adacore.com>
14580 Arnaud Charlet <charlet@adacore.com>
14582 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
14583 __gnat_adjust_context_for_raise.
14584 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
14585 implementation of floating point operations as native x86 targets.
14586 So the FPU should be initialized in the same way using finit. Fix
14587 floating point operations accuracy issues.
14588 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
14589 member in struct sigaction, so as to avoid warning for incompatible
14592 2007-04-06 Serguei Rybin <rybin@adacore.com>
14594 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
14595 switches from previously loaded tree
14597 2007-04-06 Thomas Quinot <quinot@adacore.com>
14599 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
14600 cases where a given dependency has a body or not.
14601 (Write_With_File_Names): New subprogram, common code for the two cases
14604 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14605 Javier Miranda <miranda@adacore.com>
14607 * lib-xref.ads, lib-xref.adb:
14608 Modify the loop that collects type references, to include interface
14609 types that the type implements. List each of these interfaces when
14610 building the entry for the type.
14611 (Generate_Definition): Initialize component Def and Typ of new entry
14612 in table Xrefs, to avoid to have these components unitialized.
14613 (Output_References): Split Is_Abstract flag into
14614 Is_Abstract_Subprogram and Is_Abstract_Type.
14615 (Generate_Reference): Add barrier to do not generate the warning
14616 associated with Ada 2005 entities with entities generated by the
14619 2007-04-06 Robert Dewar <dewar@adacore.com>
14620 Arnaud Charlet <charlet@adacore.com>
14621 Vincent Celier <celier@adacore.com>
14623 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
14624 Update 'Exception Handling Control' chapter which was outdated.
14625 Minor fix to documentation of -gnatwq
14626 Remove section "Adapting the Run Time to a New C++ Compiler" because
14627 it is now obsolete.
14628 Add passage on need of -nostart-files in some non-ada-main cases.
14629 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
14630 Update documentation about Interfacing with C++
14631 Add documentation for new gnatmake switch -p
14632 Add missing protocol part in URLs.
14634 Document pragma Compile_Time_Error
14635 Add documentation for Object_Size indicating that stand alone
14636 objects can have a larger size in some cases.
14637 Add node for GNAT.Byte_Swapping, GNAT.SHA1
14638 Update reference to the Ravenscar profile.
14639 Document pragma Unreferenced_Objects
14641 * gnat-style.texi: Fix typo
14643 2007-04-06 Vincent Celier <celier@adacore.com>
14645 * mlib.adb (Building_Library): Only output "building a library..." in
14648 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
14649 files in verbose mode.
14651 * mlib-utl.adb (Ar): Only output the first object files when not in
14653 (Gcc): Do not display all the object files if not in verbose mode, only
14656 2007-04-06 Robert Dewar <dewar@adacore.com>
14658 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
14659 it no longer destroys the contents of Name_Buffer or Name_Len and
14660 non-standard and invalid names are handled better.
14661 (Get_Decoded_Name_String): Improve performance by using
14662 Name_Has_No_Encodings flag in the name table.
14663 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
14664 Used for debugging printouts.
14666 2007-04-06 Robert Dewar <dewar@adacore.com>
14667 Javier Miranda <miranda@adacore.com>
14668 Bob Duff <duff@adacore.com>
14670 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
14671 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
14672 there is no need to generate always a record_definition_node in case
14673 of synchronized interface types.
14674 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
14675 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
14676 illegal in Ada 95, in cases where it is legal. Change the warnings to
14677 errors in other cases. Don't give the error unless the "not null"
14678 parses properly. Correct the source position at which the error occurs.
14679 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
14680 P_Null_Exclusion, to suppress "not null" warnings.
14681 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
14682 associated goto statements.
14684 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
14687 * scans.ads (Type_Token_Location): New flag
14689 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
14690 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
14691 P_Null_Exclusion, to suppress "not null" warnings.
14693 2007-04-06 Robert Dewar <dewar@adacore.com>
14694 Javier Miranda <miranda@adacore.com>
14695 Bob Duff <duff@adacore.com>
14696 Vincent Celier <celier@adacore.com>
14698 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
14699 (Extensions_Allowed): No longer sets Ada_Version
14700 Entry for pragma Unreferenced_Objects
14702 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
14703 system.tasking if pragma priority used in a procedure
14704 (Analyze_Pragma, case Warning): Handle dot warning switches
14705 (Process_Compile_Time_Warning_Or_Error): New procedure
14706 (Analyze_Pragma): Add processing for Compile_Time_Error
14707 Add support for extra arguments External_Name and Link_Name.
14708 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
14709 (Process_Import_Or_Interface): Add support for the use of pragma Import
14711 (Extensions_Allowed): No longer affects Ada_Version
14712 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
14713 Is_Abstract_Type. Make sure these are called only when appropriate.
14714 Add processing for pragma Unreferenced_Objects
14716 * snames.h, snames.ads, snames.adb: Add entry for pragma
14718 Add new standard name Minimum_Binder_Options for new gprmake
14719 Add new standard names for gprmake: Archive_Suffix,
14720 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
14721 Library_Support, Library_Version_Options,
14722 Shared_Library_Minimum_Options,
14723 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
14724 Change Name_Call to Name_uCall so that it cannot clash with a legal
14726 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
14727 Append C_Plus_Plus to convention identifiers as synonym for CPP
14728 Add new standard names Stack and Builder_Switches
14729 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
14730 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
14731 Run_Path_Option, Toolchain_Version.
14732 Entry for pragma Unreferenced_Objects
14734 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
14735 switches, without repetition of "eD". Make sure that last character of
14736 -gnatep= switch is not taken as -gnat switch character.
14737 Complete rewrite of circuit for handling saving compilation options
14738 Occasioned by need to support dot switchs for -gnatw, but cleans up
14740 -gnatX does not affect Ada_Version
14741 Include -gnatyA in -gnatg style switches
14743 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
14744 warnings on return objects.
14745 (Warn_On_Useless_Assignment): Exclude warnings on return objects
14746 (Set_Dot_Warning_Switch): New procedure
14747 (Check_References): Add missing case of test for
14748 Has_Pragma_Unreferenced_Objects
14749 (Output_Unreferenced_Messages): Implement effect of new pragma
14750 Unreferenced_Objects, remove special casing of limited controlled
14753 2007-04-06 Vincent Celier <celier@adacore.com>
14755 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
14756 the default project path, initially done during elaboration of the
14758 If the prefix returned by Sdefault is null, get the prefix from a call
14759 to Executable_Prefix_Path.
14760 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
14763 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
14764 canonical directory name to open the directory from which files are
14766 (Record_Other_Sources): Idem.
14767 (Locate_Directory): Add the possibility to create automatically missing
14768 directories when Setup_Projects is True.
14769 Call Locate_Directory so that the directory will be created when
14770 Setup_Projects is True, for object dir, library dir, library ALI dir,
14771 library source copy dir and exec dir.
14773 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
14776 2007-04-06 Robert Dewar <dewar@adacore.com>
14778 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
14779 Use First/Next_Component_Or_Discriminant
14780 (Analyze_Record_Representation_Clause):
14781 Use First/Next_Component_Or_Discriminant
14782 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
14783 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
14784 definition if type is unconstrained.
14785 (Adjust_Record_For_Reverse_Bit_Order): New procedure
14786 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
14787 Is_Abstract_Subprogram and Is_Abstract_Type.
14788 (Adjust_Record_For_Reverse_Bit_Order): New procedure
14790 * repinfo.adb (List_Record_Info): Use First/
14791 Next_Component_Or_Discriminant.
14793 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
14796 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
14797 Include -gnatyA in default switches
14799 * opt.ads: (Warn_On_Non_Local_Exception): New flag
14800 (Warn_On_Reverse_Bit_Order): New flag
14801 (Extensions_Allowed): Update the documentation.
14802 (Warn_On_Questionable_Missing_Parens): Now on by default
14804 * usage.adb: Add documentation of -gnatw.x/X switches
14805 Document new -gnatyA style switch
14806 -gnatq warnings are on by default
14808 2007-04-06 Ed Falis <falis@adacore.com>
14810 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
14811 full word is no longer compared twice.
14813 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14815 * sem_ch10.adb (Install_Limited_Context_Clauses.
14816 Expand_Limited_With_Clause): Use a new copy of selector name in the
14817 call to Make_With_Clause. This fixes the tree structure for ASIS
14818 purposes. Nothing is changed in the compiler behaviour.
14819 (Process_Body_Clauses): Handle properly use clauses whose prefix is
14820 a package renaming.
14821 (Install_Limited_With_Clauses): Do not install non-limited view when it
14822 is still incomplete.
14824 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14825 Gary Dismukes <dismukes@adacore.com>
14827 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
14828 when capturing size information, instead of base type, which for a
14829 formal array type will be the unconstrained type.
14830 (Analyze_Formal_Object_Declaration): Add check for illegal default
14831 expressions for a formal in object of a limited type.
14832 (Instantiate_Object): Ditto.
14833 (Check_Formal_Package_Instance): Skip entities that are formal objects,
14834 because they were defaulted in the formal package and no check applies
14836 (Check_Formal_Package_Instance): Extend conformance check to other
14837 discrete types beyond Integer.
14838 (Process_Default): Copy directly the unmatched formal. A generic copy
14839 has already been performed in Analyze_Formal_Package.
14840 (Analyze_Associations): If a formal subprogram has no match, check for
14841 partial parametrization before looking for a default, to prevent
14843 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
14844 not set the instantiation environment before analyzing the actuals.
14845 Fixes regression on 8515-003 with implementation of AI-133.
14846 Set_Instance_Env checks whether the generic unit is a predefined
14847 unit, in which case the instance must be analyzed with the latest Ada
14848 mode. This setting must take place after analysis of the actuals,
14849 because the actuals must be analyzed and frozen in the Ada mode extant
14850 outside of the current instantiation.
14851 (Save_Env, Restore_Env): Preserve and restore the configuration
14852 parameters so that predefined units can be compiled in the proper Ada
14854 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
14855 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
14856 and Is_Abstract_Type.
14857 (Analyze_Formal_Package): For better error recovery, Add exception
14858 handler to catch Instantion_Error, which can be raised in
14859 Analyze_Associations
14861 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14862 Bob Duff <duff@adacore.com>
14863 Gary Dismukes <dismukes@adacore.com>
14865 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
14866 prefix type is a discriminated subtype of the type of the formal.
14867 (Analyze_Allocator): Collect all coextensions regardless of the context.
14868 Whether they can be allocated statically is determined in exp_ch4.
14869 (Analyze_Selected_Component): If the prefix is a limited view and the
14870 non-limited view is available, use the non-limited one.
14871 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
14872 therefore illegal), suggest a qualified expression rather than a type
14873 conversion, because a type conversion would be illegal in this context.
14874 (Anayze_Allocator): Trace recursively all nested allocators so that all
14875 coextensions are on the corresponding list for the root. Do no mark
14876 coextensions if the root allocator is within a declaration for a stack-
14877 allocated object, because the access discriminants will be allocated on
14879 (Analyze_Call): Remove restriction on calls to limited functions for the
14880 cases of generic actuals for formal objects, defaults for formal objects
14881 and defaults for record components.
14882 (Analyze_Allocator): Before analysis, chain coextensions on the proper
14883 element list. Their expansion is delayed until the enclosing allocator
14884 is processed and its finalization list constructed.
14885 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
14886 for an operation with the given name among the primitive operations of
14887 the corresponding record type.
14888 (Analyze_Selected_Component): If the prefix is a task type that
14889 implements an interface, and there is no entry with the given name,
14890 check whether there is another primitive operation (e.g. a function)
14892 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
14893 properly the indexing of a function call written in prefix form, where
14894 the function returns an array type, and all parameters of the function
14895 except the first have defaults.
14896 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
14897 the original operands, rather than relocating them, for efficiency and
14898 to work properly when an operand is overloaded.
14899 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
14900 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
14901 (Analyze_Selected_Component): If the prefix is a private extension, only
14902 scan the visible components, not those of the full view.
14903 (Try_Primitive_Operation): If the operation is a procedure, collect all
14904 possible interpretations, as for a function, because in the presence of
14905 classwide parameters several primitive operations of the type can match
14906 the given arguments.
14908 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14909 Robert Dewar <dewar@adacore.com>
14911 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
14912 tag-indeterminate call to an abstract function, when the left-hand side
14914 (Analyze_Loop_Statement): Improve detection of infinite loops
14916 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14917 Thomas Quinot <quinot@adacore.com>
14919 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
14920 out of Analyze_Package_Declaration, because processing must be applied
14921 to package bodies as well, for deferred constants completed by pragmas.
14922 (Analyze_Package_Declaration): When the package declaration being
14923 analyzed does not require an explicit body, call Check_Completion.
14924 (May_Need_Implicit_Body): An implicit body is required when a package
14925 spec contains the declaration of a remote access-to-classwide type.
14926 (Analyze_Package_Body): If the package contains RACWs, append the
14927 pending subprogram bodies generated by exp_dist at the end of the body.
14928 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
14929 Is_Abstract_Subprogram and Is_Abstract_Type.
14930 (Preserve_Full_Attributes): The full entity list is not an attribute
14931 that must be preserved from full to partial view.
14933 * sem_dist.adb (Add_RAS_Dereference_TSS):
14934 Change primitive name to _Call so it cannot clash with any legal
14935 identifier, and be special-cased in Check_Completion.
14936 Mark the full view of the designated type for the RACW associated with
14937 a RAS as Comes_From_Source to get proper view switching when installing
14938 private declarations.
14939 Provite a placeholder nested package body along with the nested spec
14940 to have a place for Append_RACW_Bodies to generate the calling stubs
14941 and stream attributes.
14943 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14944 Robert Dewar <dewar@adacore.com>
14946 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
14947 that is a limited view, check the non-limited view if available.
14948 (Undefined): Refine error message for missing with of Text_IO
14949 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
14950 to distinguish real missing with cases.
14951 Fix format of all missing with messages
14952 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
14953 renaming as body when renamed entity is abstract.
14955 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14956 Javier Miranda <miranda@adacore.com>
14958 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
14959 predicate recursive, to handle complex expressions on literals whose
14960 spurious ambiguity comes from the abstract interpretation of some
14962 (Interface_Present_In_Ancestor): Add support to concurrent record
14964 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
14965 Is_Abstract_Subprogram and Is_Abstract_Type.
14967 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14968 Javier Miranda <miranda@adacore.com>
14970 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
14971 dereference of a local object R created as a reference to another
14972 object O, use the access level of O.
14973 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
14974 rather than local Same_Formal_Type, to check whether protected operation
14975 overrides an inherited one.
14976 (Same_Formal_Type): New predicate, used when matching signatures of
14977 overriding synchronized operations, to handle the case when a formal
14978 has a type that is a generic actual.
14979 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
14980 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
14981 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
14982 syntactic ambiguities involving indexing of function calls that return
14984 (Abstract_Interface_List): New subprogram that returns the list of
14985 abstract interfaces associated with a concurrent type or a
14986 concurrent record type.
14987 (Interface_Present_In_Parent): New subprogram used to check if a
14988 given type or some of its parents implement a given interface.
14989 (Collect_Abstract_Interfaces): Add support for concurrent types
14990 with interface types.
14991 (Has_Abstract_Interfaces): Add support for concurrent types with
14993 (Is_Parent): New subprogram that determines whether E1 is a parent
14994 of E2. For a concurrent type its parent is the first element of its
14995 list of interface types; for other types this function provides the
14996 same result than Is_Ancestor.
14997 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
14998 (Collect_Synchronized_Interfaces): Removed because the subprogram
14999 Collect_Abstract_Interfaces provides this functionality.
15000 (Collect_Abstract_Interfaces): Minor update to give support to
15001 concurrent types and thus avoid undesired code duplication.
15002 (Get_Subprogram_Entity): Handle entry calls.
15003 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
15005 (Enter_Name): Do not give -gnatwh hiding warning for record component
15006 entities, they never result in hiding.
15008 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15009 Robert Dewar <dewar@adacore.com>
15011 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
15012 to chain nested components that are allocators for access discriminants
15013 of the enclosing object.
15014 Add N_Push and N_Pop nodes
15015 New field Exception_Label added
15016 (Local_Raise_Statements): New field in N_Exception_Handler_Node
15017 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
15018 (Is_Coextension): New flag for allocators, to mark allocators that
15019 correspond to access discriminants of dynamically allocated objects.
15020 (N_Block_Statement): Document the fact that the corresponding entity
15021 can be an E_Return_Statement.
15022 (Is_Coextension): New flag for allocators.
15023 Remove all code for DSP option
15025 * sprint.ads, sprint.adb: Display basic information for class_wide
15026 subtypes. Add handling of N_Push and N_Pop nodes
15028 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15030 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
15031 before propagating exception.
15033 2007-04-06 Olivier Hainque <hainque@adacore.com>
15035 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
15036 an address always within the call instruction from a return address.
15038 2007-04-06 Olivier Hainque <hainque@adacore.com>
15039 Eric Botcazou <botcazou@adacore.com>
15041 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
15042 expression with a COMPOUND_EXPR including the call instead of emitting
15043 the call directly here.
15044 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
15045 high bound is constant and the slice is empty. Tidy.
15046 (tree_transform, case N_Op_Not): Handle properly the case where the
15047 operation applies to a private type whose full view is a modular type.
15048 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
15049 Address_Clause, use the associated Expression as the GNAT tree
15050 representing the choice value to ensure the corresponding GCC tree is
15051 of the proper kind.
15052 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
15053 instead of just the operands, as the base GCC stabilize_reference does.
15054 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
15055 requested; otherwise fail.
15056 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
15058 2007-04-06 Thomas Quinot <quinot@adacore.com>
15060 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
15061 implementation of UI_Div.
15062 (UI_Div): Reimplement as a call to UI_Div_Rem.
15063 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
15064 remainder, avoiding the cost of a multiplication and a subtraction.
15065 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
15066 provides both quotient and remainder in a single computation.
15067 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
15068 functions for uint.
15069 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
15070 is undefined if the given n is not inversible.
15072 2007-04-06 Olivier Hainque <hainque@adacore.com>
15074 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
15075 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
15078 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15079 Olivier Hainque <hainque@adacore.com>
15081 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
15082 when updating the contents of the old pointer to an unconstrained array.
15083 (end_subprog_body): Set error_gnat_node to Empty.
15084 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
15085 (unchecked_convert): For subtype to base type conversions, require that
15086 the source be a subtype if it is an integer type.
15087 (builtin_decls): New global, vector of available builtin functions.
15088 (gnat_pushdecl): Add global builtin function declaration nodes to the
15089 builtin_decls list.
15090 (gnat_install_builtins): Adjust comments.
15091 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
15092 calling gnat_pushdecl, so that it knows when it handed a builtin
15093 function declaration node.
15094 (builtin_decl_for): Search the builtin_decls list.
15096 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15098 * s-stchop-vxworks.adb:
15099 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
15101 2007-04-06 Robert Dewar <dewar@adacore.com>
15102 Arnaud Charlet <charlet@adacore.com>
15104 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
15106 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
15108 Add mention of -Sev (set initialize_scalars option from environment
15109 variable at run time) in gnatbind usage message.
15111 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
15113 * fname-uf.ads: Minor comment fix
15115 * osint.ads: Change pragma Elaborate to Elaborate_All
15117 * par-load.adb: Add documentation.
15119 * sem_cat.ads, sem_cat.adb: Minor code reorganization
15121 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
15123 * s-secsta.ads: Extra comments
15125 * s-soflin.ads: Minor comment fixes
15127 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
15129 * s-wchcon.ads: Minor comment addition
15131 * treepr.adb: Minor change in message
15132 (Print_Name,Print_Node): Make these debug printouts more robust: print
15133 "no such..." instead of crashing on bad input.
15135 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
15137 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
15138 instead of gnat_signed_or_unsigned_type.
15139 * utils.c (gnat_signed_or_unsigned_type): Remove.
15140 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
15141 * gigi.h (gnat_signed_or_unsigned_type): Remove
15143 2007-03-09 Roger Sayle <roger@eyesopen.com>
15145 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
15146 fold with the result of buildN.
15147 * decl.c (gnat_to_gnu_entity): Likewise.
15148 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
15149 * utils.c (finish_record_type, merge_sizes, max_size, convert):
15151 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
15152 nonbinary_modular_operation, build_binary_op, build_unary_op,
15153 build_cond_expr): Likewise.
15155 * utils.c (convert): Use fold_build1 when casting values to void.
15156 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
15157 fold_convert instead of convert when appropriate.
15159 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
15161 * Make-lang.in: Add install-pdf target as copied from
15162 automake v1.10 rules.
15164 2007-02-28 Andreas Schwab <schwab@suse.de>
15166 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
15167 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
15168 (doc/gnat-style.info): Likewise.
15170 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
15172 * gnat-style.texi: Standardize title page.
15173 * gnat_rm.texi: Likewise.
15174 * gnat_ugn.texi: Likewise.
15176 2007-02-25 Mark Mitchell <mark@codesourcery.com>
15178 * decl.c (annotate_value): Adjust for refactoring of tree_map
15181 2007-02-24 Mark Mitchell <mark@codesourcery.com>
15183 * decl.c (annotate_value): Adjust for refactoring of tree_map
15186 2007-02-21 Ed Schonberg <schonberg@adacore.com>
15189 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
15190 untagged derived type, add hidden components to keep discriminant
15191 layout consistent, when a given discriminant of the derived type
15192 constraints several discriminants of the parent type.
15194 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
15195 Sandra Loosemore <sandra@codesourcery.com>
15197 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
15198 build the call expression.
15199 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
15200 * utils.c (max_size) <tcc_exceptional>: Delete.
15201 <tcc_vl_exp>: New case.
15202 <tcc_expression>: Delete CALL_EXPR subcase.
15203 (build_global_cdtor): Use build_call_nary instead of build3.
15204 * utils2.c (build_call_1_expr): Likewise.
15205 (build_call_2_expr): Likewise.
15206 (build_call_0_expr): Likewise.
15207 (build_call_alloc_dealloc): Likewise.
15209 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
15211 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
15212 get_action_description_for): Replace _Unwind_Word with _uleb128_t
15213 and _Unwind_SWord with _sleb128_t.
15215 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
15217 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
15218 * decl.c: Include gt-ada-decl.h.
15219 (annotate_value_cache): New.
15220 (annotate_value): Use it instead of TREE_COMPLEXITY.
15222 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
15224 * misc.c, utils2.c: Fix comment typos.
15226 2007-01-24 Roger Sayle <roger@eyesopen.com>
15228 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
15229 TREE_CONSTANT_OVERFLOW.
15230 (allocatable_size_p, annotate_value): Likewise.
15231 * trans.c (gnat_to_gnu): Likewise.
15232 * utils.c (unchecked_convert): Likewise.
15233 * utils2.c (build_simple_component_ref): Likewise.
15235 2007-01-23 Richard Guenther <rguenther@suse.de>
15238 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
15239 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
15240 (gnatboot3): Likewise.
15241 (GNATBIND): Do not define.
15242 * Makefile.in (GNATBIND): Do not define.
15244 2007-01-08 Richard Guenther <rguenther@suse.de>
15246 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
15247 * trans.c (gnat_to_gnu): Likewise.
15249 2006-12-07 Geoffrey Keating <geoffk@apple.com>
15251 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
15252 * adaint.c: Likewise.
15254 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
15256 Merge from gimple-tuples-branch:
15257 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
15259 * ada-tree.h (lang_tree_node): Handle gimple tuples.
15260 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
15261 GIMPLE_MODIFY_STMT.
15263 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
15265 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
15266 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
15269 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
15272 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
15273 if the initializer takes into account the padding.
15275 2006-11-11 Richard Guenther <rguenther@suse.de>
15277 * trans.c (maybe_stabilize_reference): Remove handling of
15278 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
15280 2006-11-05 Arnaud Charlet <charlet@adacore.com>
15283 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
15284 (To_Target_Priority): New function.
15286 2006-10-31 Robert Dewar <dewar@adacore.com>
15288 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
15289 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
15290 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
15291 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
15292 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
15293 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
15294 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
15295 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
15296 a-szbzha.adb: Minor reformatting. Fix header.
15298 * a-numaux-x86.adb: Add parentheses for use of unary minus
15299 * a-ngcefu.adb: Supply missing parentheses for unary minus
15300 * a-ngcoty.adb: Add parens for use of unary minus
15301 * a-ngelfu.adb: Add missing parens for unary minus
15302 * a-tifiio.adb: Add parentheses for uses of unary minus
15304 2006-10-31 Robert Dewar <dewar@adacore.com>
15305 Bob Duff <duff@adacore.com>
15306 Ed Schonberg <schonberg@adacore.com>
15308 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
15309 with multiplying operator.
15310 (Expected_Type_Is_Any_Real): New function to determine from the Parent
15311 pointer whether the context expects "any real type".
15312 (Resolve_Arithmetic_Op): Do not give an error on calls to the
15313 universal_fixed "*" and "/" operators when they are used in a context
15314 that expects any real type. Also set the type of the node to
15315 Universal_Real in this case, because downstream processing requires it
15316 (mainly static expression evaluation).
15317 Reword some continuation messages
15318 Add some \\ sequences to continuation messages
15319 (Resolve_Call): Refine infinite recursion case. The test has been
15320 sharpened to eliminate some false positives.
15321 Check for Current_Task usage now includes entry barrier, and is now a
15322 warning, not an error.
15323 (Resolve): If the call is ambiguous, indicate whether an interpretation
15324 is an inherited operation.
15325 (Check_Aggr): When resolving aggregates, skip associations with a box,
15326 which are priori correct, and will be replaced by an actual default
15327 expression in the course of expansion.
15328 (Resolve_Type_Conversion): Add missing support for conversion from
15329 a class-wide interface to a tagged type. Minor code cleanup.
15330 (Valid_Tagged_Converion): Add support for abstact interface type
15332 (Resolve_Selected_Component): Call Generate_Reference here rather than
15333 during analysis, and use May_Be_Lvalue to distinguish read/write.
15334 (Valid_Array_Conversion): New procedure, abstracted from
15335 Valid_Conversion, to incorporate accessibility checks for arrays of
15336 anonymous access types.
15337 (Valid_Conversion): For a conversion to a numeric type occurring in an
15338 instance or inlined body, no need to check that the operand type is
15339 numeric, since this has been checked during analysis of the template.
15340 Remove legacy test for scope name Unchecked_Conversion.
15342 * sem_res.ads: Minor reformatting
15344 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
15345 (PE_Current_Task_In_Entry_Body): New exception code
15346 (SE_Restriction_Violation): Removed, not used
15348 * a-except.ads: Update comments.
15350 * types.h, types.ads: Add definition for Validity_Check
15351 (PE_Current_Task_In_Entry_Body): New exception code
15352 (SE_Restriction_Violation): Removed, not used
15354 2006-10-31 Thomas Quinot <quinot@adacore.com>
15356 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
15359 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15360 Jose Ruiz <ruiz@adacore.com>
15362 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
15363 part of Ada.Calendar: all subprogram raise Unimplemented.
15364 (Split_W_Offset): Temp function body, raising Unimplemented
15366 * a-calend.ads, a-calend-vms.ads:
15367 Add imported variable Invalid_TZ_Offset used to designate targets unable
15368 to support time zones.
15369 (Unimplemented): Temporary function raised by the body of new
15371 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
15372 unit provides handling of leap seconds and is used by the new Ada 2005
15373 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
15374 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
15375 version returns an extra value which is the offset to UTC.
15377 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
15378 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
15379 (Split_W_Offset): New function body.
15380 (Time_Of): When a date is close to UNIX epoch, compute the time for
15381 that date plus one day (that amount is later substracted after
15382 executing mktime) so there are no problems with time zone adjustments.
15384 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
15386 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
15387 a-catizo.ads, a-catizo.adb: New files.
15389 * impunit.adb: Add new Ada 2005 entries
15391 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
15392 Rename all occurences of "__gnat_localtime_r" to
15393 "__gnat_localtime_tzoff".
15394 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
15395 zone data and calculate the GMT offset.
15396 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
15397 Use the field "tm_gmtoff" to extract the GMT offset.
15398 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
15399 the external variable "timezone" to calculate the GMT offset.
15401 2006-10-31 Arnaud Charlet <charlet@adacore.com>
15402 Jose Ruiz <ruiz@adacore.com>
15404 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
15405 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
15406 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
15407 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
15408 System.Any_Priority to a POSIX priority on the target.
15410 * system-linux-ia64.ads:
15411 Extend range of Priority types on Linux to use the whole range made
15412 available by the system.
15414 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
15415 function maps from System.Any_Priority to a POSIX priority on the
15417 (PTHREAD_PRIO_PROTECT): Set real value.
15418 (PTHREAD_PRIO_INHERIT): Now a function.
15419 (SIGCPUFAIL): New signal.
15420 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
15421 are documented as reserved by the OS.
15423 * system-aix.ads: Use the full range of priorities provided by the
15426 * s-taprop-posix.adb: Call new function To_Target_Priority.
15427 (Set_Priority): Take into account Task_Dispatching_Policy and
15428 Priority_Specific_Dispatching pragmas when determining if Round Robin
15429 must be used for scheduling the task.
15431 * system-linux-x86_64.ads, system-linux-x86.ads,
15432 system-linux-ppc.ads: Extend range of Priority types on Linux to use
15433 the whole range made available by the system.
15435 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
15436 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
15437 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
15438 when deallocating the TCB in order to avoid potential references to
15440 (Set_Priority): Take into account Task_Dispatching_Policy and
15441 Priority_Specific_Dispatching pragmas when determining if Round Robin
15442 or FIFO within priorities must be used for scheduling the task.
15444 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
15445 the Thread field (to be used internally by the run-time system) and the
15446 kernel-level task id in the LWP field (to be used by the debugger).
15447 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
15448 instance, and propagate the current task options to the spawned task.
15449 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
15450 (Initialize): Set Round Robin dispatching when the corresponding pragma
15453 2006-10-31 Robert Dewar <dewar@adacore.com>
15455 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
15456 system-linux-hppa.ads, system-hpux-ia64.ads,
15457 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
15458 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
15459 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
15460 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
15461 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
15462 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
15463 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
15464 Default_Bit_Order) to kill constant condition warnings for references
15467 2006-10-31 Vincent Celier <celier@adacore.com>
15468 Eric Botcazou <ebotcazou@adacore.com>
15470 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
15471 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
15472 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
15473 Ext_To, when building the library file name
15475 * mlib-tgt-vxworks.adb: ditto.
15476 (Get_Target_Suffix): Add support for x86 targets.
15478 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
15480 * mlib-tgt-darwin.adb:
15481 Use Append_To, instead of Ext_To, when building the library file name
15482 (Flat_Namespace): New global variable.
15483 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
15484 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
15485 (Link_Shared_Libgcc): Delete.
15486 (Build_Dynamic_Library): Adjust for above changes.
15488 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
15490 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
15492 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
15493 (Initialize): Add type conversions required by above change.
15495 2006-10-31 Jose Ruiz <ruiz@adacore.com>
15497 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
15498 (getpid): New body for this function that uses the underlying taskIdSelf
15499 function for VxWorks 5 and VxWorks 6 in kernel mode.
15500 (unsigned_int): New type, modular to allow logical bit operations.
15501 (taskOptionsGet): New imported function.
15503 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
15504 field to be compliant with the type used by the corresponding operating
15507 2006-10-31 Pascal Obry <obry@adacore.com>
15508 Eric Botcazou <ebotcazou@adacore.com>
15509 Vincent Celier <celier@adacore.com>
15511 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
15512 ASCII version of the registry API. This is needed as the GNAT runtime
15513 is now UNICODE by default.
15515 (get_gcc_version): Do not hardcode the return value.
15516 (__gnat_file_time_name): On Windows properly set the default returned
15517 value to -1 which corresponds to Invalid_Time.
15518 (__gnat_fopen): New routine. A simple wrapper on all plateforms
15519 except on Windows where it does conversion for unicode support.
15520 (__gnat_freopen): Idem.
15521 (__gnat_locate_exec_on_path): If environment variable PATH does not
15522 exist, return a NULL pointer
15524 * adaint.h: (__gnat_fopen): Declare.
15525 (__gnat_freopen): Likewise.
15527 * mingw32.h (_tfreopen): Define this macro here for older MingW
15529 Activate the unicode support on platforms using a MingW runtime
15530 version 3.9 or newer.
15532 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
15533 This is needed for proper unicode support on Windows.
15536 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
15537 Nicolas Setton <setton@adacore.com>
15538 Olivier Hainque <hainque@adacore.com>
15539 Gary Dismukes <dismukes@adacore.com>
15541 * gigi.h: (tree_code_for_record_type): Declare.
15542 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
15543 (get_global_renaming_pointers): Rename to
15544 invalidate_global_renaming_pointers.
15545 (static_ctors): Delete.
15546 (static_dtors): Likewise.
15547 (gnat_write_global_declarations): Declare.
15548 (create_var_decl): Adjust descriptive comment to indicate that the
15549 subprogram may return a CONST_DECL node.
15550 (create_true_var_decl): Declare new function, similar to
15551 create_var_decl but forcing the creation of a VAR_DECL node.
15552 (get_global_renaming_pointers): Declare.
15553 (add_global_renaming_pointer): Likewise.
15555 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
15557 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
15558 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
15560 (gnat_to_gnu_entity): Remove From_With_Type from computation for
15562 <E_Access_Type>: Use the Non_Limited_View as the full view of the
15563 designated type if the pointer comes from a limited_with clause. Make
15564 incomplete designated type if it is in the main unit and has a freeze
15566 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
15567 Underlying_Full_View similarly. Return earlier if the full view already
15568 has an associated tree.
15569 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
15570 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
15571 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
15572 reference type built for objects with an address clause.
15573 Use create_true_var_decl with const_flag set for
15574 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
15576 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
15577 for Character and Wide_Character types. This info is read by the
15578 dwarf-2 writer, and is needed to be able to use the command "ptype
15579 character" in the debugger.
15580 (gnat_to_gnu_entity): When generating a type representing
15581 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
15582 so that debug writers can distinguish it from ordinary integers.
15583 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
15584 addition to TREE_READONLY to assert the constantness of variables for
15585 elaboration purposes.
15586 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
15587 parameters to call new Einfo function First_Formal_With_Extras.
15588 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
15589 protected type with its corresponding discriminant, to obtain a usable
15591 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
15592 for a multiple elaboration of the "equivalent" type.
15593 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
15594 into record_global_renaming_pointer.
15595 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
15596 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
15597 <E_Array_Subtype>: Likewise.
15598 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
15599 incomplete subtypes and incomplete subtypes of incomplete types visible
15600 through a limited with clause.
15601 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
15602 the base index type for the maximum size of the array only if they are
15604 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
15605 expression into a SAVE_EXPR if stabilization failed.
15607 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
15608 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
15609 by lower level compilation passes.
15610 (gnat_genericize): New function, lowering a function body to GENERIC.
15611 Turn the type of RESULT_DECL into a real reference type if the decl
15612 has been marked DECL_BY_REFERENCE, and adjust references to the latter
15614 (gnat_genericize_r): New function. Tree walking callback for
15616 (convert_from_reference, is_byref_result): New functions. Helpers for
15618 (create_type_decl): Call gnat_pushdecl before calling
15619 rest_of_decl_compilation, to make sure that field TYPE_NAME of
15620 type_decl is properly set before calling the debug information writers.
15621 (write_record_type_debug_info): The heuristics which compute the
15622 alignment of a field in a variant record might not be accurate. Add a
15623 safety test to make sure no alignment is set to a smaller value than
15624 the alignment of the field type.
15625 (make_dummy_type): Use the Non_Limited_View as the underlying type if
15626 the type comes from a limited_with clause. Do not loop on the full view.
15627 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
15628 (dummy_node_table): New global variable, moved from decl.c.
15629 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
15630 (save_gnu_tree): Use above macros.
15631 (get_gnu_tree): Likewise.
15632 (present_gnu_tree): Likewise.
15633 (init_dummy_type): New function, moved from decl.c. Use above macros.
15634 (make_dummy_type): Likewise.
15635 (tree_code_for_record_type): New function extracted from make_dummy_type
15636 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
15637 (static_ctors): Change it to a vector, make static.
15638 (static_dtors): Likewise.
15639 (end_subprog_body): Adjust for above change.
15640 (build_global_cdtor): Moved from trans.c.
15641 (gnat_write_global_declarations): Emit global constructor and
15642 destructor, and call cgraph_optimize before emitting debug info for
15643 global declarations.
15644 (global_decls): New global variable.
15645 (gnat_pushdecl): Store the global declarations in global_decls, for
15647 (gnat_write_global_declarations): Emit debug information for global
15649 (create_var_decl_1): Former create_var_decl, with an extra argument to
15650 state whether the creation of a CONST_DECL is allowed.
15651 (create_var_decl): Behavior unchanged. Now a wrapper around
15652 create_var_decl_1 allowing CONST_DECL creation.
15653 (create_true_var_decl): New function, similar to create_var_decl but
15654 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
15655 (create_field_decl): Do not always mark the field as addressable
15656 if its type is an aggregate.
15657 (global_renaming_pointers): New static variable.
15658 (add_global_renaming_pointer): New function.
15659 (get_global_renaming_pointers): Likewise.
15661 * misc.c (gnat_dwarf_name): New function.
15662 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
15663 (gnat_post_options): Add comment about structural alias analysis.
15664 (gnat_parse_file): Do not call cgraph_optimize here.
15665 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
15667 * trans.c (process_freeze_entity): Don't abort if we already have a
15668 non dummy GCC tree for a Concurrent_Record_Type, as it might
15669 legitimately have been elaborated while processing the associated
15670 Concurrent_Type prior to this explicit freeze node.
15671 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
15672 exception handler volatile if it is of variable size.
15673 (process_type): Remove bypass for types coming from a limited_with
15675 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
15676 actual, convert the corresponding gnu_actual to the real destination
15677 type when necessary.
15678 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
15679 originally TREE_READONLY but whose elaboration cannot be performed
15681 Part of fix for F504-021.
15682 (tree_transform, subprogram cases): Change loops on formal parameters to
15683 call new Einfo function First_Formal_With_Extras.
15684 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
15685 stemming from type conversion for the lhs.
15686 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
15687 number of bits per unit for components of records.
15688 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
15689 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
15690 with At_End_Proc after the SJLJ EH cleanup.
15691 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
15693 (elaborate_all_entities): Do not retest type_annotate_only.
15694 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
15695 result type of an abstract subprogram, which may be an itype associated
15696 with an anonymous access result (related to AI-318-02).
15697 (build_global_cdtor): Move to utils.c.
15698 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
15699 this choice is not a null tree nor an integer constant.
15700 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
15701 on the body of elaboration routines instead of mark_unvisited.
15702 (add_stmt): Do not mark the tree.
15703 (add_decl_expr): Tweak comment.
15704 (mark_unvisited): Delete.
15705 (unshare_save_expr): New static function.
15706 (call_to_gnu): Issue an error when making a temporary around a
15707 procedure call because of non-addressable actual parameter if the
15708 type of the formal is by_reference.
15709 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
15710 after building the elaboration routine.
15712 2006-10-31 Bob Duff <duff@adacore.com>
15714 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
15715 as finalization-started, so we can raise Program_Error on 'new'.
15717 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
15718 collection has already started.
15720 * s-finimp.ads (Collection_Finalization_Started): Added new special
15721 flag value for indicating that a collection's finalization has started.
15723 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
15724 create a task whose master has already waited for dependent tasks.
15726 2006-10-31 Robert Dewar <dewar@adacore.com>
15728 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
15730 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
15731 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
15732 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
15733 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
15734 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
15735 a-except-2005.ads: Add pragma Preelaborable_Warning
15737 2006-10-31 Robert Dewar <dewar@adacore.com>
15738 Jose Ruiz <ruiz@adacore.com>
15740 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
15742 * ali.adb (Get_Name): Properly handle scanning of wide character names
15743 encoded with brackets notation.
15744 (Known_ALI_Lines): Add S lines to this list.
15745 (Scan_ALI): Acquire S (priority specific dispatching) lines.
15746 New flag Elaborate_All_Desirable in unit table
15748 * ali.ads (Priority_Specific_Dispatching): Add this range of
15749 identifiers to be used for Priority_Specific_Dispatching table entries.
15750 (ALIs_Record): Add First_Specific_Dispatching and
15751 Last_Specific_Dispatching that point to the first and last entries
15752 respectively in the priority specific dispatching table for this unit.
15753 (Specific_Dispatching): Add this table for storing each S (priority
15754 specific dispatching) line encountered in the input ALI file.
15755 New flag Elaborate_All_Desirable in unit table
15757 * bcheck.adb: (Check_Configuration_Consistency): Add call to
15758 Check_Consistent_Dispatching_Policy.
15759 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
15760 verifying that the use of Priority_Specific_Dispatching,
15761 Task_Dispatching_Policy, and Locking_Policy is consistent across the
15764 * bindgen.adb: (Public_Version_Warning): function removed.
15765 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
15766 required information from ALI files in order to initialize the table
15767 containing the specific dispatching policy.
15768 (Gen_Adainit_Ada): Generate the variables required for priority specific
15769 dispatching entries (__gl_priority_specific_dispatching and
15770 __gl_num_specific_dispatching).
15771 (Gen_Adainit_C): Generate the variables required for priority specific
15772 dispatching entries (__gl_priority_specific_dispatching and
15773 __gl_num_specific_dispatching).
15774 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
15776 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
15777 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
15779 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
15780 a call to gnat_set_globals.
15781 Generate a string containing settings from
15782 Priority_Specific_Dispatching pragma entries.
15783 (Gen_Object_Files_Options): Do not include the runtime libraries when
15784 pragma No_Run_Time is specified.
15786 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
15787 consistency with s-intman-posix.adb.
15788 (__gnat_error_handler, case FreeBSD): Account for the fact that the
15789 handler is installed with SA_SIGINFO.
15790 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
15791 FreeBSD ZCX support, copied from Linux version.
15792 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
15793 sigfillset, and sigemptyset so the routines defined by MaRTE.
15794 (__gl_priority_specific_dispatching): Add this variable that stores the
15795 string containing priority specific dispatching policies in the
15797 (__gl_num_specific_dispatching): Add this variable that indicates the
15798 highest priority for which a priority specific dispatching pragma
15800 (__gnat_get_specific_dispatching): Add this routine that returns the
15801 priority specific dispatching policy, as set by a
15802 Priority_Specific_Dispatching pragma appearing anywhere in the current
15803 partition. The input argument is the priority number, and the result
15804 is the upper case first character of the policy name.
15805 (__gnat_set_globals): Now a dummy function.
15806 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
15807 mechargs instead of sigargs, as the latter can be retrieved from the
15808 former and sigargs is not what we want on ia64.
15809 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
15811 (__gnat_adjust_context_for_raise, ia64-vms): New function.
15812 (tasking_error): Remove unused symbol.
15813 (_abort_signal): Move this symbol to the IRIX specific part since this
15814 is the only target that uses this definition.
15815 (Check_Abort_Status): Move this symbol to the IRIX specific part since
15816 this is the only target that uses this definition.
15817 (Lock_Task): Remove unused symbol.
15818 (Unlock_Task): Remove unused symbol.
15820 * lib-writ.adb (Write_ALI): Output new S lines for
15821 Priority_Specific_Dispatching pragmas.
15822 Implement new flag BD for elaborate body desirable
15824 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
15825 (Specific_Dispatching): Add this table for storing the entries
15826 corresponding to Priority_Specific_Dispatching pragmas.
15827 Document new BD flag for elaborate body desirable
15829 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
15832 2006-10-31 Javier Miranda <miranda@adacore.com>
15834 * a-tags.ads, a-tags.adb:
15835 (Predefined_DT): New function that improves readability of the code.
15836 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
15837 Inherit_DT): Use the new function Predefined_DT to improve code
15839 (Register_Interface_Tag): Update assertion.
15840 (Set_Interface_Table): Update assertion.
15841 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
15842 determining progenitor interfaces in Tags.
15843 (Inherit_CPP_DT): New subprogram.
15845 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
15846 analysis of the thunk code.
15847 (Expand_Interface_Conversion): Handle run-time conversion of
15848 access to class wide types.
15849 (Expand_Dispatching_Call): When generating the profile for the
15850 subprogram itype for a dispatching operation, properly terminate the
15851 formal parameters chaind list (set the Next_Entity of the last formal
15853 (Collect_All_Interfaces): Removed. This routine has been moved to
15854 sem_util and renamed as Collect_All_Abstract_Interfaces.
15855 (Set_All_DT_Position): Hidden entities associated with abstract
15856 interface primitives are not taken into account in the check for
15857 3.9.3(10); this check is done with the aliased entity.
15858 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
15859 interfacing with CPP by default.
15860 (Expand_Interface_Conversion): Add missing support for static conversion
15861 from an interface to a tagged type.
15862 (Collect_All_Interfaces): Add new out formal containing the list of
15863 abstract interface types to cleanup the subprogram Make_DT.
15864 (Make_DT): Update the code to generate the table of interfaces in case
15865 of abstract interface types.
15866 (Is_Predefined_Dispatching_Alias): New function that returns true if
15867 a primitive is not a predefined dispatching primitive but it is an
15868 alias of a predefined dispatching primitive.
15869 (Make_DT): If the ancestor of the type is a CPP_Class and we are
15870 compiling under full ABI compatibility mode we avoid the generation of
15871 calls to run-time services that fill the dispatch tables because under
15872 this mode we currently inherit the dispatch tables in the IP subprogram.
15873 (Write_DT): Emit an "is null" indication for a null procedure primitive.
15874 (Expand_Interface_Conversion): Use an address as the type of the formal
15875 of the internally built function that handles the case in which the
15876 target type is an access type.
15878 2006-10-31 Robert Dewar <dewar@adacore.com>
15880 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
15882 2006-10-31 Robert Dewar <dewar@adacore.com>
15884 * bindusg.ads, bindusg.adb:
15885 Change to package and rename procedure as Display, which
15886 now ensures that it only outputs usage information once.
15888 2006-10-31 Jose Ruiz <ruiz@adacore.com>
15890 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
15893 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
15896 2006-10-31 Robert Dewar <dewar@adacore.com>
15897 Ed Schonberg <schonberg@adacore.com>
15899 * treepr.adb: Use new subtype N_Membership_Test
15901 * checks.ads, checks.adb: Add definition for Validity_Check
15902 (Range_Or_Validity_Checks_Suppressed): New function
15903 (Ensure_Valid): Test Validity_Check suppressed
15904 (Insert_Valid_Check): Test Validity_Check suppressed
15905 (Insert_Valid_Check): Preserve Do_Range_Check flag
15906 (Validity_Check_Range): New procedure
15907 (Expr_Known_Valid): Result of membership test is always valid
15908 (Selected_Range_Checks): Range checks cannot be applied to discriminants
15909 by themselves. Disabling those checks must also be done for task types,
15910 where discriminants may be used for the bounds of entry families.
15911 (Apply_Address_Clause_Check): Remove side-effects if address expression
15912 is non-static and is not the name of a declared constant.
15913 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
15914 Code cleanup and new error messages.
15915 (Enable_Range_Check): Test for some cases of suppressed checks
15916 (Generate_Index_Checks): Suppress index checks if index checks are
15917 suppressed for array object or array type.
15918 (Apply_Selected_Length_Checks): Give warning for compile-time detected
15919 length check failure, even if checks are off.
15920 (Ensure_Valid): Do not generate a check on an indexed component whose
15921 prefix is a packed boolean array.
15922 * checks.adb: (Alignment_Checks_Suppressed): New function
15923 (Apply_Address_Clause_Check): New procedure, this is a completely
15924 rewritten replacement for Apply_Alignment_Check
15925 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
15926 we request a discriminal value only in case of discriminants.
15927 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
15928 assignments where the target subtype is unconstrained and the target
15929 object is a parameter or dereference (other aliased cases are known
15930 to be unconstrained).
15932 2006-10-31 Robert Dewar <dewar@adacore.com>
15934 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
15935 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
15936 vms_conv.adb: Fix bad table increment values (much too small)
15938 * table.adb (Realloc): Make sure we get at least some new elements
15939 Defends against silly small values for table increment
15941 2006-10-31 Robert Dewar <dewar@adacore.com>
15942 Ed Schonberg <schonberg@adacore.com>
15943 Bob Duff <duff@adacore.com>
15945 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
15946 entities. Move other fields around to make this possible
15947 (Is_Derived_Type): Add missing call to Is_Type.
15948 (Extra_Formals): New function for subprograms, entries, subprogram
15950 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
15951 (First_Formal_With_Extras): New function for subprogs, entries, subp
15953 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
15954 Add node information for E_Return_Statement.
15955 (Elaborate_Body_Desirable): New flag
15956 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
15957 to be Is_Inherently_Limited_Type, because return-by-reference has
15958 no meaning in Ada 2005.
15959 (E_Return_Statement): New entity kind.
15960 (Return_Applies_To): Field of E_Return_Statement.
15961 (Is_Return_Object): New flag in object entities.
15962 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
15963 (Must_Have_Preelab_Init): New flag
15964 (Known_To_Have_Preelab_Init): New flag
15965 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
15966 (Is_Visible_Formal): New flag on entities in formal packages.
15967 (Low_Bound_Known): New flag
15968 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
15970 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
15971 output when Id is an incomplete subtype.
15973 2006-10-31 Robert Dewar <dewar@adacore.com>
15975 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
15976 Avoid abbreviation Creat
15977 (Finalize): List all sources in extended mail source if -gnatl
15979 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
15980 (Finalize): Implement new -gnatl=xxx switch to output listing to file
15981 (Set_Specific_Warning_On): New procedure
15982 (Set_Specific_Warning_Off): New procedure
15983 Add implementation of new insertion \\
15984 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
15985 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
15987 (Error_Msg_Internal): Make sure that we set Last_Killed to
15988 True when a message from another package is suppressed.
15989 Implement insertion character ~ (insert string)
15990 (First_Node): Minor adjustments to get better placement.
15993 Implement new -gnatl=xxx switch to output listing to file
15996 Implement new -gnatl=xxx switch to output listing to file
15998 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
15999 (Commands_To_Stdout): New flag
16000 Implement new -gnatl=xxx switch to output listing to file
16001 New switch Dump_Source_Text
16002 (Warn_On_Deleted_Code): New warning flag for -gnatwt
16003 Define Error_Msg_Line_Length
16004 (Warn_On_Assumed_Low_Bound): New switch
16006 * osint.ads, osint.adb
16007 (Normalize_Directory_Name): Fix bug.
16008 Implement new -gnatl=xxx switch to output listing to file
16009 (Concat): Removed, replaced by real concatenation
16010 Make use of concatenation now allowed in compiler
16011 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
16012 we find the 'lib' or 'bin' directory even when the tool has been
16013 invoked with a relative path.
16014 (Executable_Name): New function taking string parameters.
16016 * osint-c.ads, osint-c.adb:
16017 Implement new -gnatl=xxx switch to output listing to file
16019 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
16022 Implement new -gnatl=xxx switch to output listing to file
16023 Recognize new -gnatL switch
16024 (no longer keep in old warning about old style usage)
16025 Use concatenation to simplify code
16026 Recognize -gnatjnn switch
16027 (Scan_Front_End_Switches): Clean up handling of -gnatW
16028 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
16030 2006-10-31 Robert Dewar <dewar@adacore.com>
16032 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
16033 (Set_Specific_Warning_Off): New procedure
16034 (Warning_Specifically_Suppressed): New function
16035 (Validate_Specific_Warnings): New procedure
16036 (Output_Msg_Text): Complete rewrite to support -gnatjnn
16038 * err_vars.ads: Implement insertion character ~ (insert string)
16040 2006-10-31 Bob Duff <duff@adacore.com>
16041 Ed Schonberg <schonberg@adacore.com>
16043 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
16044 the parent part is a build-in-place function call, generate assignments.
16045 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
16046 are build-in-place function calls.
16047 (Replace_Self_Reference): New subsidiary of
16048 Make_OK_Assignment_Statement, to replace an access attribute that is a
16049 self-reference into an access to the appropriate component of the
16050 target object. Generalizes previous mechanism to handle self-references
16051 nested at any level.
16052 (Is_Self_Referential_Init): Remove, not needed.
16053 (Is_Self_Referential_Init): New predicate to simplify handling of self
16054 referential components in record aggregates.
16055 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
16056 check for presence of entity before checking for self-reference.
16057 (Has_Default_Init_Comps): Return True if a component association is a
16058 self-reference to the enclosing type, which can only come from a
16059 default initialization.
16060 (Make_OK_Assignment_Statement): If the expression is of the form
16061 Typ'Acc, where Acc is an access attribute, the expression comes from a
16062 default initialized self-referential component.
16063 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
16064 that has been derived from several abstract interfaces we must also
16065 initialize the tags of the secondary dispatch tables.
16067 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16068 Thomas Quinot <quinot@adacore.com>
16069 Javier Miranda <miranda@adacore.com>
16070 Robert Dewar <dewar@adacore.com>
16073 (Expand_Access_To_Protected_Op): If the context indicates that an access
16074 to a local operation may be transfered outside of the object, create an
16075 access to the wrapper operation that must be used in an external call.
16076 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
16077 target, pass the Valid attribute applied to a floating-point prefix on
16078 to the back end without expansion.
16079 (Storage_Size): Use the new run-time function Storage_Size to retrieve
16080 the allocated storage when it is specified by a per-object expression.
16081 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
16082 Nothing to do here, the attribute has been rewritten during semantic
16084 (Expand_Attribute_Reference): Handle expansion of the new Priority
16086 (Find_Fat_Info): Handle case of universal real
16087 (Expand_Access_To_Protected_Op): Fix use of access to protected
16088 subprogram from inside the body of a protected entry.
16089 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
16090 'Access and 'Unrestricted_Access, to transform the attribute reference
16091 into a fat pointer.
16092 (Is_Constrained_Aliased_View): New predicate to help determine whether a
16093 subcomponent's enclosing variable is aliased with a constrained subtype.
16094 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
16095 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
16096 an aliased prefix must be known to be constrained in order to use True
16097 for the attribute value, and now it's possible for some aliased views
16098 to be unconstrained.
16100 2006-10-31 Robert Dewar <dewar@adacore.com>
16102 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
16103 (Expand_Entity_Reference): Correct error of not handling subprogram
16104 formals in current_value processing.
16106 2006-10-31 Javier Miranda <miranda@adacore.com>
16107 Robert Dewar <dewar@adacore.com>
16108 Ed Schonberg <schonberg@adacore.com>
16109 Gary Dismukes <dismukes@adacore.com>
16111 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
16112 register in the final list objects containing class-wide interfaces;
16113 otherwise we incorrectly register the tag of the interface in the final
16115 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
16116 generate the wrapper if the parent primitive is abstract. This is
16117 required to report the correct error message.
16118 (Expand_N_Subtype_Indication): Do validity checks on range
16119 (Clean_Task_Names): If an initialization procedure includes a call to
16120 initialize a task (sub)component, indicate that the procedure will use
16121 the secondary stack.
16122 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
16123 compatibility for interfacing with CPP by default.
16124 (Expand_N_Object_Declaration): Only build an Adjust call when the
16125 object's type is a nonlimited controlled type.
16126 * exp_ch3.adb: Add with and use of Exp_Ch6.
16127 (Expand_N_Object_Declaration): Check for object initialization that is a
16128 call to build-in-place function and apply Make_Build_In_Place_Call_In_
16129 Object_Declaration to the call.
16130 (Freeze_Type): When the designated type of an RACW was not frozen at the
16131 point where the RACW was declared, validate the primitive operations
16132 with respect to E.2.2(14) when it finally is frozen.
16133 (Build_Initialization_Call,Expand_Record_Controller): Rename
16134 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
16135 return-by-reference has no meaning in Ada 2005.
16136 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
16137 to register tag of the immediate ancestor interfaces in the
16138 run-time structure.
16139 (Init_Secondary_Tags): Moved to the specification to allow the
16140 initialization of extension aggregates with abstract interfaces.
16141 (Build_Master_Renaming): Make public, for use by function declarations
16142 whose return type is an anonymous access type.
16143 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
16144 Insert_List_Before_And_Analyze after the generation of the specs
16145 associated with null procedures.
16146 (Expand_Tagged_Root): Update documentation in its specification.
16147 (Init_Secondary_Tags): Update documentation.
16148 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
16149 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
16150 then generate code to inherit the contents of the dispatch table
16151 directly from the ancestor.
16152 (Expand_Record_Controller): Insert controller component after tags of
16153 implemented interfaces.
16154 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
16155 create null procedure overridings when null procedures are inherited
16157 (Make_Null_Procedure_Specs): New procedure to generate null procedure
16158 declarations for overriding null primitives inherited from interfaces.
16159 (Is_Null_Interface_Procedure): New function in
16160 Make_Null_Procedure_Specs.
16161 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
16162 immediate ancestor of a tagged type is an abstract interface type we
16163 must generate the specification of the predefined primitives associated
16164 with controlled types (because the dispatch table of the ancestor is
16165 null and hence these entries cannot be inherited). This is required to
16166 elaborate well the dispatch table.
16168 2006-10-31 Javier Miranda <miranda@adacore.com>
16169 Ed Schonberg <schonberg@adacore.com>
16170 Bob Duff <duff@adacore.com>
16171 Gary Dismukes <dismukes@adacore.com>
16172 Robert Dewar <dewar@adacore.com>
16174 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
16176 (Expand_N_In): Do validity checks on range
16177 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
16178 (Expand_N_Allocator): For "new T", if the object is constrained by
16179 discriminant defaults, allocate the right amount of memory, rather than
16180 the maximum for type T.
16181 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
16182 when the allocator is initialized by a build-in-place call, since the
16183 allocator is already rewritten as a reference to the function result,
16184 and this prevents an unwanted duplication of the function call.
16185 Add with and use of Exp_Ch6.
16186 (Expand_Allocator_Expresssion): Check for an allocator whose expression
16187 is a call to build-in-place function and apply
16188 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
16189 untagged designated types).
16190 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
16191 optimization if source or target is biased.
16192 (Expand_N_Allocator): Add comments for case of an allocator within a
16193 function that returns an anonymous access type designating tasks.
16194 (Expand_N_Allocator): apply discriminant checks for access
16195 discriminants of anonymous access types (AI-402, AI-416)
16197 2006-10-31 Bob Duff <duff@adacore.com>
16198 Robert Dewar <dewar@adacore.com>
16199 Gary Dismukes <dismukes@adacore.com>
16200 Ed Schonberg <schonberg@adacore.com>
16202 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
16204 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
16205 (Expand_N_Assignment_Statement): Call
16206 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
16207 build-in-place function call. Currently, this can happen only for
16208 assignments that come from aggregates.
16209 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16210 in order to alleviate the upward compatibility introduced by AI-318.
16211 (Expand_N_Extended_Return_Statement): Add support for handling the
16212 return object as a build-in-place result.
16213 (Expand_Non_Function_Return): Implement simple return statements nested
16214 within an extended return.
16215 (Enable_New_Return_Processing): Turn on the new processing of return
16217 (Expand_Non_Function_Return): For a return within an extended return,
16218 don't raise Program_Error, because Sem_Ch6 now gives a warning.
16219 (Expand_N_Extended_Return_Statement): Implement AI-318
16220 (Expand_Simple_Function_Return): Ditto.
16221 (Expand_N_If_Statement): Handle new -gnatwt warning
16222 (Expand_N_Case_Statement): Handle new -gnatwt warning
16223 (Expand_N_Assignment): Handle assignment to the Priority attribute of
16224 a protected object.
16225 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
16226 validity checking of assignments to elementary record components.
16227 (Expand_N_Return_Statement): return Class Wide types on the secondary
16228 stack independantly of their controlled status since with HIE runtimes,
16229 class wide types are not potentially controlled anymore.
16231 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
16234 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
16235 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
16236 it expects a block, procedure, or task. The return statement will get
16237 turned into a block, and Expand_Cleanup_Actions will happen then.
16239 2006-10-31 Robert Dewar <dewar@adacore.com>
16240 Ed Schonberg <schonberg@adacore.com>
16241 Bob Duff <duff@adacore.com>
16242 Gary Dismukes <dismukes@adacore.com>
16244 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
16246 (Expand_Inlined_Call): Tagged types are by-reference types, and
16247 therefore should be replaced by a renaming declaration in the expanded
16248 body, as is done for limited types.
16249 (Expand_Call): If this is a call to a function with dispatching access
16250 result, propagate tag from context.
16251 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
16253 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
16254 build-in-place when the right-hand side of an assignment is a
16255 build-in-place function call.
16256 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
16257 of the explicit dereference of the allocator to the result subtype of
16258 the build-in-place function. This is needed to satisfy type checking
16259 in cases where the caller's return object is created by an allocator for
16260 a class-wide access type and the type named in the allocator is a
16262 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
16263 conversion of the reference to the declared object to the result subtype
16264 of the build-in-place function. This is needed to satisfy type checking
16265 in cases where the declared object has a class-wide type. Also, in the
16266 class-wide case, change the type of the object entity to the specific
16267 result subtype of the function, to avoid passing a class-wide object
16268 without explicit initialization to the back end.
16269 (Register_Interface_DT_Entry): Moved outside the body of
16270 Freeze_Subprogram because this routine is now public; it is called from
16271 Check_Dispatching_Overriding to handle late overriding of abstract
16272 interface primitives.
16273 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
16274 adding an implicit access actual on a call to a build-in-place function.
16275 (Expand_Actuals): Test for an actual parameter that is a call to a
16276 build-in-place function and apply
16277 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
16278 (Is_Build_In_Place_Function): New function to determine whether an
16279 entity is a function whose calls should be handled as build-in-place.
16280 (Is_Build_In_Place_Function_Call): New function to determine whether an
16281 expression is a function call that should handled as build-in-place.
16282 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
16283 calls to build-in-place functions as the initialization of an allocator.
16284 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
16285 handling calls to build-in-place functions in contexts that do not
16286 involve init of a separate object (for example, actuals of subprogram
16288 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
16289 handling calls to build-in-place functions as the initialization of an
16290 object declaration.
16291 (Detect_Infinite_Recursion): Add explicit parameter Process to
16292 instantiation of Traverse_Body to avoid unreferenced warning.
16293 (Check_Overriding_Inherited_Interfaces): Removed.
16294 (Register_Interface_DT_Entry): Code cleanup.
16295 (Register_Predefined_DT_Entry): Code cleanup.
16296 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
16297 inlined statements if within a transient scope.
16298 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
16299 formal parameters with occurrences of actuals in inlined body, establish
16300 visibility on the proper view of the actual's subtype for the body's
16302 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
16303 compatibility mode and we have an imported CPP subprogram because
16304 for now we assume that imported CPP primitives correspond with
16305 objects whose constructor is in the CPP side (and therefore we
16306 don't need to generate code to register them in the dispatch table).
16307 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
16308 aligned selected component.
16309 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
16310 the actual of an in-mode parameter is a type conversion.
16311 (Expand_Actuals): If the call does not come from source and the actual
16312 is potentially misaligned, let gigi handle it rather than rejecting the
16313 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
16314 Class Wide types as returning by reference independantly of their
16315 controlled status since with HIE runtimes class wide types are not
16316 potentially controlled anymore.
16318 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16320 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
16321 references that are private components of the protected object.
16322 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
16323 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
16324 instantiation to deal with warnings.
16325 (Initialize_Protection): If expression for priority is non-static, use
16326 System_Priority as its expected type, in case the expression has not
16329 2006-10-31 Robert Dewar <dewar@adacore.com>
16331 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
16332 initialization of Homonym_Len.
16333 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
16334 names from fully qualified name. Fixes problem of duplicate
16335 external names differing only in the presence of such a block name.
16337 2006-10-31 Thomas Quinot <quinot@adacore.com>
16338 Pablo Oliveira <oliveira@adacore.com>
16340 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
16341 subprogram Ids, even if they are not yet assigned.
16342 (Build_Subprogram_Id): It is now this function that will take care of
16343 calling Assign_Subprogram_Ids if necessary.
16344 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
16345 should be done only once they are assigned.
16346 (Build_From_Any_Function, case of tagged types): Add missing call to
16348 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
16349 type for an RACW type.
16350 (Add_RACW_Features): When processing an RACW declaration for which the
16351 designated type is already frozen, enforce E.2.2(14) rules immediately.
16352 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
16353 special reordering of controlling formals.
16355 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
16356 associated stub type for an RACW type.
16358 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16360 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
16361 fixed-point operations in an integer context, i.e. as operands of a
16362 conversion to an integer type, indicate that result must be rounded.
16364 2006-10-31 Robert Dewar <dewar@adacore.com>
16366 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
16367 cases, pass the encoding method, since it is now required by the run
16370 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
16371 assumption that Str'First = 1.
16372 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
16373 it on to the Value_Wide_Wide_Character call.
16374 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
16375 properly handles a string of the form quote-encoded_wide_char-quote.
16377 * s-wchcnv.adb: Minor reformatting
16379 2006-10-31 Javier Miranda <miranda@adacore.com>
16381 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
16382 run-time membership test to ensure that the constructed object
16383 implements the target abstract interface.
16385 2006-10-31 Robert Dewar <dewar@adacore.com>
16387 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
16388 Machine_Attribute pragma internally to implement the user pragma.
16389 Add processing for pragma Interface so that it is now completely
16390 equivalent to pragma Import.
16392 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
16393 so that it can be applied to all entities, including record components
16394 and enumeration literals.
16395 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
16396 priority ranges are correct, verify compatibility against task
16397 dispatching and locking policies, and if everything is correct an entry
16398 is added to the table containing priority specific dispatching entries
16399 for this compilation unit.
16400 (Delay_Config_Pragma_Analyze): Delay processing
16401 Priority_Specific_Dispatching pragmas because when processing the
16402 pragma we need to access run-time data, such as the range of
16403 System.Any_Priority.
16404 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
16405 Allow pragma Unreferenced as a context item
16406 Add pragma Preelaborable_Initialization
16407 (Analyze_Pragma, case Interface): Interface is extended so that it is
16408 now syntactically and semantically equivalent to Import.
16409 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
16410 insertion characters.
16411 Add handling for Pragma_Wide_Character_Encoding
16412 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
16413 never supercedes a real restriction, and that a real restriction
16414 always supercedes a warning.
16415 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
16418 2006-10-31 Bob Duff <duff@adacore.com>
16419 Ed Schonberg <schonberg@adacore.com>
16420 Robert Dewar <dewar@adacore.com>
16422 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
16423 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
16424 Is_Inherently_Limited_Type, because return-by-reference has no meaning
16426 (Find_Node_To_Be_Wrapped): Use new method of determining the result
16427 type of the function containing a return statement, because the
16428 Return_Type field was removed. We now use the Return_Applies_To field.
16430 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
16431 (Build_Task_Image_Decl): If procedure is not called from an
16432 initialization procedure, indicate that function that builds task name
16433 uses the sec. stack. Otherwise the enclosing initialization procedure
16434 will carry the indication.
16435 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
16436 N_Object_Declaration instead.
16437 (Kill_Dead_Code): New interface to implement -gnatwt warning for
16438 conditional dead code killed, and change implementation accordingly.
16439 (Insert_Actions): Add N_Return_Object_Declaration case.
16440 Correct comment to mention N_Extension_Aggregate node.
16441 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
16442 attempts to save information for global variables which cannot be
16444 (Get_Current_Value_Condition): Handle conditions the other way round
16445 (constant on left). Also handle right operand of AND and AND THEN
16446 (Set_Current_Value_Condition): Corresponding changes
16447 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
16448 (Get_Current_Value_Condition): Handle simple boolean operands
16449 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
16450 (Get_Current_Value_Condition): If the variable reference is within an
16451 if-statement, does not appear in the list of then_statments, and does
16452 not come from source, treat it as being at unknown location.
16453 (Get_Current_Value_Condition): Enhance to allow while statements to be
16454 processed as well as if statements.
16455 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
16457 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
16458 of loop. This is safe now that we fixed Kill_Current_Values.
16459 (OK_To_Do_Constant_Replacement): Check whether current scope is
16460 Standard, before examining outer scopes.
16462 2006-10-31 Vincent Celier <celier@adacore.com>
16464 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
16465 When True, apply VMS treatment to children of packages A, G, I and S.
16468 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
16470 2006-10-31 Robert Dewar <dewar@adacore.com>
16471 Ed Schonberg <schonberg@adacore.com>
16473 * freeze.adb: Add handling of Last_Assignment field
16474 (Warn_Overlay): Supply missing continuation marks in error msgs
16475 (Freeze_Entity): Add check for Preelaborable_Initialization
16477 * g-comlin.adb: Add Warnings (Off) to prevent new warning
16479 * g-expect.adb: Add Warnings (Off) to prevent new warning
16481 * lib-xref.adb: Add handling of Last_Assignment field
16482 (Generate_Reference): Centralize handling of pragma Obsolescent here
16483 (Generate_Reference): Accept an implicit reference generated for a
16484 default in an instance.
16485 (Generate_Reference): Accept a reference for a node that is not in the
16486 main unit, if it is the generic body corresponding to an subprogram
16489 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
16491 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
16493 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
16495 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
16496 use clauses, to avoid messages on packages used to qualify, and also
16497 to avoid messages from obsolescent units.
16498 (Warn_On_Useless_Assignments): Don't generate messages for imported
16499 and exported variables.
16500 (Warn_On_Useless_Assignments): New procedure
16501 (Output_Obsolescent_Entity_Warnings): New procedure
16502 (Check_Code_Statement): New procedure
16504 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
16505 Change name Is_Ada_2005 to Is_Ada_2005_Only
16506 (Last_Assignment): New field for useless assignment warning
16508 2006-10-31 Olivier Hainque <hainque@adacore.com>
16510 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
16511 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
16513 2006-10-31 Bob Duff <duff@adacore.com>
16514 Robert Dewar <dewar@adacore.com>
16515 Ed Schonberg <schonberg@adacore.com>
16517 * g-awk.adb (Default_Session, Current_Session): Compile this file in
16518 Ada 95 mode, because it violates the new rules for AI-318.
16520 * g-awk.ads: Use overloaded subprograms in every case where we used to
16521 have a default of Current_Session. This makes the code closer to be
16522 correct for both Ada 95 and 2005.
16524 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
16525 code, relying on the fact that the compiler generates a warning
16526 instead of an error in -gnatg mode.
16528 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
16529 E_Return_Statement entity kind.
16530 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
16532 * par.adb (P_Interface_Type_Definition): Addition of one formal to
16533 report an error if the reserved word abstract has been previously found.
16534 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
16536 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
16537 parenthesized range attribute usage
16538 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
16540 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
16541 in the syntax for extended_return_statement. This is not in the latest
16542 RM, but the ARG is expected to issue an AI allowing this.
16543 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
16544 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
16545 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
16546 P_Return_Statement): Parse the new syntax for extended_return_statement.
16548 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
16549 Output_End_Missing): Add error-recovery code for the new
16550 extended_return_statement syntax; that is, the new E_Return entry on
16553 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
16554 limited to nonlimited, because otherwise we violate the new Ada 2005
16555 rules about returning limited types in function Create_AST_Handler in
16558 * sem.adb (Analyze): Add cases for new node kinds
16559 N_Extended_Return_Statement and N_Return_Object_Declaration.
16561 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
16562 type is in the same category as type of context before applying check,
16563 to prevent anomalies in instantiations.
16564 (Resolve_Aggregate): Remove test for limited components in aggregates.
16565 It's unnecessary in Ada 95, because if it has limited components, then
16566 it must be limited. It's wrong in Ada 2005, because limited aggregates
16568 (Resolve_Record_Aggregate): Move check for limited types later, because
16569 OK_For_Limited_Init requires its argument to have been resolved.
16570 (Get_Value): When copying the component default expression for a
16571 defaulted association in an aggregate, use the sloc of the aggregate
16572 and not that of the original expression, to prevent spurious
16573 elaboration errors, when the expression includes function calls.
16574 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
16575 were missing. We also didn't handle qualified expressions. Now also
16576 allow function calls. Use new common routine OK_For_Limited_Init.
16577 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
16578 with space can upper case letter).
16580 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
16581 Has_Static_Discriminants flag
16582 (Record_Type_Declaration): Diagnose an attempt to declare an interface
16583 type with discriminants.
16584 (Process_Range_Expr_In_Decl): Do validity checks on range
16585 (Build_Discriminant_Constraints): Use updated form of
16586 Denotes_Discriminant.
16587 (Process_Subtype): If the subtype is a private subtype whose full view
16588 is a concurrent subtype, introduce an itype reference to prevent scope
16590 (Build_Derived_Record_Type, Collect_Interface_Primitives,
16591 Record_Type_Declaration): The functionality of the subprograms
16592 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
16593 is now performed by a single routine.
16594 (Build_Derived_Record_Type): If the type definition includes an explicit
16595 indication of limitedness, then the type must be marked as limited here
16596 to ensure that any access discriminants will not be treated as having
16597 a local anonymous access type.
16598 (Check_Abstract_Overriding): Issue a detailed error message when an
16599 abstract subprogram was not overridden due to incorrect mode of its
16601 (Analyze_Private_Extension_Declaration): Add support for the analysis of
16602 synchronized private extension declarations. Verify that the ancestor is
16603 a limited or synchronized interface or in the generic case, the ancestor
16604 is a tagged limited type or synchronized interface and all progenitors
16605 are either limited or synchronized interfaces.
16606 Derived_Type_Declaration): Check for presence of private extension when
16607 dealing with synchronized formal derived types.
16608 Process_Full_View): Enchance the check done on the usage of "limited" by
16609 testing whether the private view is synchronized.
16610 Verify that a synchronized private view is completed by a protected or
16612 (OK_For_Limited_Init_In_05): New function.
16613 (Analyze_Object_Declaration): Move check for limited types later,
16614 because OK_For_Limited_Init requires its argument to have been resolved.
16615 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16616 in order to alleviate the upward compatibility introduced by AI-318.
16617 (Constrain_Corresponding_Record): If the constraint is for a component
16618 subtype, mark the itype as frozen, to avoid out-of-scope references to
16619 discriminants in the back-end.
16620 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
16621 this subprogram against wrong sources.
16622 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
16623 discriminant of limited type completed with a protected type, when the
16624 discriminant is used to constrain a private component of the type, and
16625 expansion is disabled.
16626 (Find_Type_Of_Object): Do not treat a return subtype that is an
16627 anonymous subtype as a local_anonymous_type, because its accessibility
16628 level is the return type of the enclosing function.
16629 (Check_Initialization): In -gnatg mode, turn the error "cannot
16630 initialize entities of limited type" into a warning.
16631 (OK_For_Limited_Init): Return true for generated nodes, since it
16632 sometimes violates the legality rules.
16633 (Make_Incomplete_Declaration): If the type for which an incomplete
16634 declaration is created happens to be the currently visible entity,
16635 preserve the homonym chain when removing it from visibility.
16636 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
16637 inherited subprograms.
16638 (Access_Definition): If this is an access to function that is the return
16639 type of an access_to_function definition, context is a type declaration
16640 and the scope of the anonymous type is the current one.
16641 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
16642 incomplete subtype to the set of private dependents of the original
16644 (Constrain_Discriminated_Type): Emit an error message whenever an
16645 incomplete subtype is being constrained.
16646 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
16647 corresponding subtype of the full view of the original incomplete type.
16648 (Check_Incomplete): Properly detect invalid usage of incomplete types
16651 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16653 * g-catiio.ads, g-catiio.adb (Value): New function.
16654 Given an input String, try and parse a valid Time value.
16656 2006-10-31 Vincent Celier <celier@adacore.com>
16658 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
16659 Integer_Address arithmetic, as in Set_Valid.
16661 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16662 Robert Dewar <dewar@adacore.com>
16664 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
16665 handling executable extension manually and duplicating code.
16667 * make.adb: Implement new -S switch
16668 (Gnatmake): Use new function Osint.Executable_Name instead
16669 of handling executable extension manually.
16671 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
16672 is specified, the executable name ends with this suffix.
16673 Take advantage of Osint.Executable_Name instead of duplicating code.
16675 * switch-m.adb: Recognize new gnatmake -S switch
16677 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
16679 (Get_Target_Parameters): Set Executable_Extension_On_Target if
16682 * makeusg.adb: Add line for gnatmake -S switch
16684 2006-10-31 Vincent Celier <celier@adacore.com>
16686 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
16687 call it with -static-libgcc, as there are some platforms, such as
16688 Darwin, where one of these two switches is compulsory to link.
16690 2006-10-31 Vincent Celier <celier@adacore.com>
16692 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
16693 instead of ADA_PROJECT_PATH, for the project path.
16694 (Gnatls): When displaying the project path directories, use host dir
16697 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
16698 names in the project path, as absolute paths may correspond to
16699 multi-valued VMS logical names.
16701 2006-10-31 Vincent Celier <celier@adacore.com>
16703 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
16704 absolute path name.
16705 (Locate_Regular_File): Ditto
16706 (Change_Dir): Remove, no longer used
16707 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
16708 on Windows. Get it calling Get_Current_Dir.
16709 (OpenVMS): Remove imported boolean, no longer needed.
16710 (Normalize_Pathname)[VMS]: Do not resolve directory names.
16711 (Pid_To_Integer): New function to convert a Process_Id to Integer
16713 2006-10-31 Thomas Quinot <quinot@adacore.com>
16715 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
16716 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
16718 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
16721 2006-10-31 Robert Dewar <dewar@adacore.com>
16723 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
16724 initial letter o as a zero.
16726 2006-10-31 Robert Dewar <dewar@adacore.com>
16728 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
16730 2006-10-31 Robert Dewar <dewar@adacore.com>
16732 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
16734 (Layout_Variant_Record): Retrieve the discriminants from the entity
16735 rather than from the type definition, because in the case of a full
16736 type for a private type we need to take the discriminants from the
16738 (Layout_Component_List): When applying the Max operator to variants with
16739 a nonstatic size, check whether either operand is static and scale that
16740 operand from bits to storage units before applying Max.
16741 (Layout_Type): In VMS, if a C-convention access type has no explicit
16742 size clause (and does not inherit one in the case of a derived type),
16743 then the size is reset to 32 from 64.
16745 2006-10-31 Vincent Celier <celier@adacore.com>
16747 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
16748 its file has already been loaded, according to the unit being loaded,
16749 not to the current value of Multiple_Unit_Index.
16751 2006-10-31 Thomas Quinot <quinot@adacore.com>
16752 Eric Botcazou <ebotcazou@adacore.com>
16753 Arnaud Charlet <charlet@adacore.com>
16755 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
16756 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
16758 (a-except.o): Pass it to the compiler.
16759 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
16760 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
16761 a-calend-mingw.adb version.
16763 * Makefile.rtl: Added s-dsaser.
16764 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
16765 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
16766 Ada.Dispatching.Round_Robin.
16767 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
16769 * Make-lang.in: Remove all references to gt-ada-decl.h.
16770 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
16772 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
16773 Update dependencies.
16775 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
16777 2006-10-31 Vincent Celier <celier@adacore.com>
16779 * mlib-utl.adb (Initialized): Remove, no longer used
16780 (Initialize): Remove, no longer used
16781 (Ar): If Ar_Exec is null, get the location of the archive builder and,
16782 if there is one, the archive indexer. Fail if the archive builder cannot
16784 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
16787 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16789 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
16790 Process_Body_Clauses): If the context of a body includes a use clause
16791 for P.Q then a with_clause for P in the same body is not redundant,
16792 even if the spec also has a with_clause on P.
16793 Add missing continuation mark to error msg
16794 (Build_Limited_Views): A limited view of a type is tagged if its
16795 declaration includes a record extension.
16796 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
16797 node, even if the subunit has errors. This avoids malfunction by
16798 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
16799 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
16800 generation of obsolescent messages for with statements (cannot do
16801 this too early, or we cannot implement avoiding the messages in the
16802 case of obsolescent units withing obsolescent units).
16803 (Install_Siblings): If the with_clause is on a remote descendant of
16804 an ancestor of the current compilation unit, find whether there is
16805 a sibling child unit that is immediately visible.
16806 (Remove_Private_With_Clauses): New procedure, invoked after completing
16807 the analysis of the private part of a nested package, to remove from
16808 visibility the private with_clauses of the enclosing package
16810 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
16811 now centralized in Generate_Reference.
16812 (Install_Limited_Context_Clauses): Remove superfluous error
16813 message associated with unlimited view visible through use
16814 and renamings. In addition, at the point in which the error
16815 is reported, we add the backslash to the text of the error
16816 to ensure that it is reported as a single error message.
16817 Use new // insertion for some continuation messages
16818 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
16819 to create implicit with_clause for parent unit mentioned in original
16820 limited_with_clause.
16821 (Install_Limited_With_Unit): Set entity of parent identifiers if the
16822 unit is a child unit. For ASIS queries.
16823 (Analyze_Subunit): If the subunit appears within a child unit, make all
16824 ancestor child units directly visible again.
16826 2006-10-31 Robert Dewar <dewar@adacore.com>
16828 * par-ch10.adb (P_Context_Clause): Minor error message fix
16830 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16831 Javier Miranda <miranda@adacore.com>
16833 * par-ch12.adb: Grammar update and cleanup.
16834 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
16835 support for synchronized derived type definitions.
16836 Add the new actual Abstract_Present to every call to
16837 P_Interface_Type_Definition.
16838 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
16839 a formal object declaration with an access definition or a subtype mark
16840 with a null exclusion.
16841 (P_Generic_Association): Handle association with box, and others_choice
16842 with box, to support Ada 2005 partially parametrized formal packages.
16844 2006-10-31 Robert Dewar <dewar@adacore.com>
16845 Javier Miranda <miranda@adacore.com>
16847 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
16848 (P_Type_Declaration): Remove barrier against the reserved word "limited"
16849 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
16850 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
16851 private extensions.
16852 (P_Type_Declaration): Add the new actual Abstract_Present to every call
16853 to P_Interface_Type_Definition.
16854 (P_Interface_Type_Definition): Addition of one formal to report an error
16855 if the reserved word abstract has been previously found.
16856 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
16857 object renaming declaration with an access definition or subtype mark
16858 with a possible null exclusion.
16860 * par-ch9.adb: Minor error msg fix
16862 * par-load.adb: Add missing continuation mark to error msg
16864 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
16866 2006-10-31 Vincent Celier <celier@adacore.com>
16868 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
16869 unknown attribute in unknown package or in package that does not need
16871 (Parse_Package_Declaration): Do not issue warning for unknown package in
16874 2006-10-31 Vincent Celier <celier@adacore.com>
16876 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
16877 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
16880 2006-10-31 Vincent Celier <celier@adacore.com>
16882 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
16883 on VMS, change "__" to '.' before checking the name.
16884 (Record_Ada_Source): Always add the source file name in the list of
16885 of sources, even if it is not the first time, as it is for another
16887 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
16888 dot, instead of replacing only the first '_'.
16890 * prj-part.adb (Parse): Convert project file path to canonical form
16892 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
16893 extended, the project id of the project extending it is recorded in its
16894 data, even when it has already been processed as an imported project.
16896 2006-10-31 Robert Dewar <dewar@adacore.com>
16898 * repinfo.adb (List_Entities): Don't list entities from renaming
16901 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16902 Robert Dewar <dewar@adacore.com>
16904 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
16905 only a restriction warning is active for the given restriction. This is
16906 desirable because we do not want to modify code in the case where only
16908 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
16909 causes overriding of real restrictions.
16910 Take advantage of new No_Restrictions constant.
16912 * raise.h: (__gnat_set_globals): Change profile.
16914 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16916 * rtsfind.adb: Remove s-polint from comment as it exists no more.
16919 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
16920 Move all the entities in obsolete package System.PolyORB_Interface to
16921 System.Partition_Interface.
16922 (RE_Storage_Size): New function in System.Tasking.
16923 (RE_Get_Ceiling): New entity.
16924 (RE_Set_Ceiling): New entity.
16925 (RO_PE_Get_Ceiling): New entity.
16926 (RO_RE_Set_Ceiling): New entity.
16927 (Inherit_CPP_DT): New entity
16929 2006-10-31 Robert Dewar <dewar@adacore.com>
16931 * scng.adb (Scan, case of numeric literal): Better msg for identifier
16932 starting with a digit.
16934 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16935 Thomas Quinot <quinot@adacore.com>
16936 Javier Miranda <miranda@adacore.com>
16937 Gary Dismukes <dismukes@adacore.com>
16939 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
16940 properly an attempt to apply Unchecked_Access to a protected operation.
16941 (OK_Self_Reference): New subprogram to check the legality of an access
16942 attribute whose prefix is the type of an enclosing aggregate.
16943 Generalizes previous mechanism to handle attribute references nested
16944 arbitrarily deep within the aggregate.
16945 (Analyze_Access_Attribute): An access attribute whose prefix is a type
16946 can appear in an aggregate if this is a default-initialized aggregate
16947 for a self-referential type.
16948 (Resolve_Attribute, case Access): Ditto.
16949 Add support for new implementation defined attribute Stub_Type.
16950 (Eval_Attribute, case Attribute_Stub_Type): New case.
16951 (Analyze_Attribute, case Attribute_Stub_Type): New case.
16952 (Stream_Attribute_Available): Implement using new subprogram from
16953 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
16954 Has_Specified_Stream_Attribute flag.
16955 Disallow Storage_Size and Storage_Pool for access to subprogram
16956 (Resolve_Attribute, case 'Access et al): Take into account anonymous
16957 access types of return subtypes in extended return statements. Remove
16958 accessibility checks on anonymous access types when Unchecked_Access is
16960 (Analyze_Attribute): Add support for the use of 'Class to convert
16961 a class-wide interface to a tagged type.
16962 Add support for the attribute Priority.
16963 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
16964 whether the designated type is discriminated with a constrained partial
16965 view and require static matching in that case.
16966 Add local variable Des_Btyp. The Designated_Type
16967 of an access to incomplete subtype is either its non-limited view if
16968 coming from a limited with or its etype if regular incomplete subtype.
16970 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
16971 Fix predicate to identify and allow cases of (expander-generated)
16972 references to tag of designated object of a RACW.
16973 (Validate_Static_Object_Name): In Ada 2005, a formal object is
16974 non-static, and therefore cannot appear as a primary in a preelaborable
16976 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
16977 Has_Read_Write_Attributes.
16978 (Has_Read_Write_Attributes): Reimplement in termes of
16979 Has_Stream_Attribute_Definition.
16980 (Missing_Read_Write_Attributes): When checking component types in a
16981 record, unconditionally call Missing_Read_Write_Attributes recursively
16982 (remove guard checking for Is_Record_Type / Is_Access_Type).
16984 2006-10-31 Robert Dewar <dewar@adacore.com>
16986 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
16987 useless assignments here and conditionalize it on absence of exception
16989 (Analyze_Exception_Handlers): Small code reorganization of error
16990 detection code, for new handling of formal packages.
16992 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16993 Hristian Kirtchev <kirtchev@adacore.com>
16995 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
16996 that has been constant-folded, preserve information of original tree,
16998 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
16999 generated private extension declaration if the formal derived type is
17000 synchronized. Carry synchronized present over to the generated private
17002 (Validate_Derived_Type_Instance): Ensure that the actual of a
17003 synchronized formal derived type is a synchronized tagged type.
17004 (Instantiate_Formal_Package): When creating the instantiation used to
17005 validate the actual package of a formal declared without a box, check
17006 whether the formal itself depends on a prior actual.
17007 (Instantiate_Formal_Subprogram): Create new entities for the defining
17008 identifiers of the formals in the renaming declaration, for ASIS use.
17009 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
17010 a renaming declaration or a subtype declaration for an actual in an
17011 instance, capture location information of declaration in generic, for
17013 (Instantiate_Formal_Package): Add comments on needed additional tests.
17014 AI-317 (partial parametrization) is fully implemented.
17015 (Validate_Private_Type_Instance): Add check for actual which
17016 must have preelaborable initialization
17017 Use new // insertion for some continuation messages
17018 (Analyze_Formal_Object_Declaration): Change usage of Expression to
17019 Default_Expression. Add type retrieval when the declaration has an
17020 access definition. Update premature usage of incomplete type check.
17021 (Check_Access_Definition): New subsidiary routine. Check whether the
17022 current compilation version is Ada 05 and the supplied node has an
17024 (Instantiate object): Alphabetize local variables. Handle the creation
17025 of new renaming declarations with respect to the kind of definition
17026 used - either an access definition or a subtype mark. Guard against
17027 unnecessary error message in the context of anonymous access types after
17028 they have been resolved. Add check for required null exclusion in a
17029 formal object declaration.
17030 (Switch_View): A private subtype of a non-private type needs to be
17031 switched (the base type can have been switched without its private
17032 dependents because of the last branch of Check_Private_View.
17033 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
17035 (Instantiate_Type): Emit an error message whenever a class-wide type of
17036 a tagged incomplete type is used as a generic actual.
17037 (Find_Actual_Type): Extend routine to handle a component type in a child
17038 unit that is imported from a formal package in a parent.
17039 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
17040 agree on constrainedness, rather than checking against ultimate ancestor
17041 (Instantiate_Subprogram_Body): Create a cross-reference link to the
17042 generic body, for navigation purposes.
17044 2006-10-31 Robert Dewar <dewar@adacore.com>
17045 Thomas Quinot <quinot@adacore.com>
17047 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
17049 (New_Stream_Subprogram): When processing an attribute definition clause
17050 for a stream-oriented subprogram, record an entity node occurring at
17051 the point of clause to use for checking the visibility of the clause,
17052 as defined by 8.3(23) as amended by AI-195.
17053 (New_Stream_Subprogram): New procedure, factoring behaviour from both
17054 New_Stream_Function and New_Stream_Procedure.
17055 (New_Stream_Function, New_Stream_Procedure): Removed.
17056 (Analyze_Attribute_Definition_Clause, case Address): Check new
17057 Alignment_Check check
17059 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17060 Javier Miranda <miranda@adacore.com>
17061 Robert Dewar <dewar@adacore.com>
17063 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
17064 generate the same errors compiling under -gnatc.
17065 (Try_Object_Operation): If no candidate interpretation succeeds, but
17066 there is at least one primitive operation with the right name, report
17067 error in call rather than on a malformed selected component.
17068 (Analyze_Selected_Component): If the prefix is an incomplete type from
17069 a limited view, and the full view is available, use the full view to
17070 determine whether this is a prefixed call to a primitive operation.
17071 (Operator_Check): Verify that a candidate interpretation is a binary
17072 operation before checking the type of its second formal.
17073 (Analyze_Call): Add additional warnings for function call contexts not
17075 (Analyze_Allocator): Move the check for "initialization not allowed for
17076 limited types" after analyzing the expression. This is necessary,
17077 because OK_For_Limited_Init looks at the structure of the expression.
17078 Before analysis, we don't necessarily know what sort of expression it
17079 is. For example, we don't know whether F(X) is a function call or an
17080 indexed component; the former is legal in Ada 2005; the latter is not.
17081 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
17082 were missing. We also didn't handle qualified expressions. Now also
17083 allow function calls. Use new common routine OK_For_Limited_Init.
17084 (Analyze_Type_Conversion): Do not perform some legality checks in an
17085 instance, because the error message will be redundant or spurious.
17086 (Analyze_Overloaded_Selected_Component): Do not do style check when
17087 setting an entity, since we do not know it is the right entity yet.
17088 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
17089 (Analyze_Overloaded_Selected_Component): Same change
17090 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
17091 since regular incomplete subtypes are transformed into corresponding
17092 subtypes of their full views.
17093 (Complete_Object_Operation): Treat name of transformed subprogram call
17094 as coming from source, for browsing purposes.
17095 (Try_Primitive_Operation): If formal is an access parameter, compare
17096 with base type of object to determine whether it is a primitive
17098 (Operator_Check): If no interpretation of the operator matches, check
17099 whether a use clause on any candidate might make the operation legal.
17100 (Try_Class_Wide_Operation): Check whether the first parameter is an
17101 access type whose designated type is class-wide.
17103 2006-10-31 Robert Dewar <dewar@adacore.com>
17104 Ed Schonberg <schonberg@adacore.com>
17105 Gary Dismukes <dismukes@adacore.com>
17107 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
17108 warn on infinite loops.
17109 Add \\ to some continuation messages
17110 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
17111 (Process_Bounds): If the bounds are integer literals that result from
17112 constant-folding, and they carry a user-defined type, preserve that type
17113 rather than treating this as an integer range.
17114 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
17115 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
17116 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
17117 left hand side of assignment.
17118 (Analyze_Assignment): Add suport to manage assigments to the attribute
17119 priority of a protected object.
17120 (Check_Possible_Current_Value_Condition): Allow fully qualified names
17121 not just identifiers.
17122 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
17123 or AND THEN for possible tracking.
17124 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
17125 case of while loops so we can track values in the loop body.
17127 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17128 Hristian Kirtchev <kirtchev@adacore.com>
17129 Bob Duff <duff@adacore.com>
17131 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
17132 procedure cannot be a protected operation (it is a basic_declaration,
17133 not a subprogram_declaration).
17134 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
17135 Subp. Add logic for entry processing.
17136 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
17137 Determine whether an entry or subprogram of a protected or task type
17138 override an inherited primitive of an implemented interface.
17139 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
17140 Update the actual used in calls to Check_Overriding_Indicator.
17141 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
17142 generate the proper reference to the parent unit, for cross-reference.
17143 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
17145 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17146 (Add_Extra_Formal): Revise procedure to allow passing in associated
17147 entity, scope, and name suffix, and handle setting of the new
17148 Extra_Formals field.
17149 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
17150 pass new parameters. Add support for adding the new extra access formal
17151 for functions whose calls are treated as build-in-place.
17152 (Analyze_A_Return_Statement): Correct casing in error message.
17153 Move Pop_Scope to after Analyze_Function_Return, because an extended
17154 return statement really is a full-fledged scope. Otherwise, visibility
17155 doesn't work right. Correct use of "\" for continuation messages.
17156 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
17157 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
17158 the node doesn't get properly marked as analyzed.
17159 (Analyze_Subprogram_Body): If subprogram is a function that returns
17160 an anonymous access type that denotes a task, build a Master Entity
17162 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
17163 proper usage of null exclusion in a result definition.
17164 (Process_Formals): Code cleanup and new error message.
17165 (Process_Formals): Detect incorrect application of null exclusion to
17167 (Conforming_Types): Handle conformance between [sub]types and itypes
17168 generated for entities that have null exclusions applied to them.
17169 (Maybe_Primitive_Operation): Add an additional type retrieval when the
17170 base type is an access subtype. This case arrises with null exclusions.
17171 (New_Overloaded_Entity): Do not remove the overriden entity from the
17172 homonym chain if it corresponds with an abstract interface primitive.
17173 (Process_Formals): Replace membership test agains Incomplete_Kind with a
17174 call to the synthesized predicate Is_Incomplete_Type.
17175 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
17177 (Analyze_Subprogram_Declaration): Check that abstract interface
17178 primitives are abstract or null.
17179 (Analyze_Subprogram_Specification): Remove previous check for abstract
17180 interfaces because it was not complete.
17181 (Has_Interface_Formals): Removed.
17183 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17184 Javier Miranda <miranda@adacore.com>
17186 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
17187 of Analyze_Package_Body, to create Itype references for anonymous
17188 access types created in the package declaration, whose designated types
17189 may have only a limited view.
17190 (Analyze_Package_Specification): For the private part of a nested
17191 package, install private_with_clauses of enclosing compilation unit if
17192 we are in its visible part.
17193 (Declare_Inherited_Private_Subprograms): Complete barrier
17194 to ensure that the primitive operation has an alias to some parent
17195 primitive. This is now required because, after the changes done for the
17196 implementation of abstract interfaces, the contents of the list of
17197 primitives has entities whose alias attribute references entities of
17198 such list of primitives.
17199 (Analyze_Package_Specification): Simplify code that handles parent units
17200 of instances and formal packages.
17201 (Uninstall_Declarations): Check the convention consistency among
17202 primitive overriding operations of a tagged record type.
17204 2006-10-31 Robert Dewar <dewar@adacore.com>
17205 Hristian Kirtchev <kirtchev@adacore.com>
17206 Javier Miranda <miranda@adacore.com>
17207 Ed Schonberg <schonberg@adacore.com>
17209 * sem_ch8.adb: Minor error msg rewording
17210 (Undefined): When checking for misspellings, invert arguments (to get
17211 expected and found set right)
17212 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
17213 (Analyze_Generic_Renaming): Same fix
17214 (Use_One_Package): Do not take into account the internal entities of
17215 abstract interfaces during the analysis of entities that are marked
17216 as potentially use-visible.
17217 (Find_Type): Handle the case of an attribute reference for
17218 implementation defined attribute Stub_Type (simply let the analysis of
17219 the attribute reference rewrite it).
17220 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
17221 type that appears in a Use_Type clause.
17222 (Analyze_Object_Renaming): Add support for renaming of the Priority
17224 (Find_Type): In Ada 2005, a task type can be used within its own body,
17225 when it appears in an access definition.
17226 (Analyze_Object_Renaming): Remove warning on null_exclusion.
17227 (Analyze_Object_Renaming): Introduce checks for required null exclusion
17228 in a formal object declaration or in a subtype declaration.
17229 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
17230 (Check_Null_Exclusion): New local routine to
17231 Analyze_Subprogram_Renaming. Check whether the formals and return
17232 profile of a renamed subprogram have required null exclusions when
17233 their counterparts of the renaming already impose them.
17234 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
17235 Determine whether an entity is inside a generic scope.
17236 (In_Open_Scope): First pass of documentation update.
17237 (Find_Expanded_Name): Add support for shadow entities associated with
17238 limited withed packages. This is required to handle nested packages.
17239 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
17240 that makes a renaming of a limited withed package illegal.
17242 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17243 Ed Schonberg <schonberg@adacore.com>
17245 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
17246 Check_Overriding_Indicator.
17247 (Analyze_Task_Definition): Ditto.
17248 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
17249 (Check_Overriding_Indicator): To find overridden interface operation,
17250 examine only homonyms that have an explicit subprogram declaration, not
17251 inherited operations created by an unrelated type derivation.
17252 (Check_Overriding_Indicator): When checking for the presence of "null"
17253 in a procedure, ensure that the queried node is a procedure
17255 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
17256 type when the formal is an access to variable.
17257 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
17258 (Analyze_Task_Type): Same addition
17259 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
17260 provide navigation capabilities for entries.
17262 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17263 Ed Schonberg <schonberg@adacore.com>
17264 Javier Miranda <miranda@adacore.com>
17265 Gary Dismukes <dismukes@adacore.com>
17267 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
17268 inherited from an interface ancestor by another interface in the
17269 context of an instance as 'late'.
17270 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
17271 of a call to a function that dispatches on access result.
17272 (Check_Dispatching_Operation): In case of late overriding of a primitive
17273 that covers abstract interface subprograms we register it in all the
17274 secondary dispatch tables associated with abstract interfaces.
17275 (Check_Dispatching_Call): Add check that a dispatching call is not made
17276 to a function with a controlling result of a limited type. This is a
17277 current implementation restriction.
17278 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
17279 (Check_Dispatching_Operation): Do no emit a warning if the controlling
17280 argument is an interface type that is a generic formal.
17281 (Is_Interface_Subprogram): Removed.
17282 (Check_Dispatching_Operation): If the subprogram is not a dispatching
17283 operation, check the formals to handle the case in which it is
17284 associated with an abstract interface type.
17286 2006-10-31 Robert Dewar <dewar@adacore.com>
17287 Ed Schonberg <schonberg@adacore.com>
17289 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
17290 Add new calls to this procedure during traversal
17291 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
17292 another unit if expansion is disabled.
17294 2006-10-31 Robert Dewar <dewar@adacore.com>
17296 * sem_eval.adb (Compile_Time_Compare): Make use of information from
17297 Current_Value in the conditional case, to evaluate additional
17298 comparisons at compile time.
17300 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17301 Hristian Kirtchev <kirtchev@adacore.com>
17302 Javier Miranda <miranda@adacore.com>
17304 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
17305 subprogram type to provide better diagnostics in case of ambiguity.
17306 (Covers): Handle coverage of formal and actual anonymous access types in
17307 the context of generic instantiation.
17308 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
17309 abstract interface types; this is required to handle concurrent types
17310 with discriminants and abstract interface types.
17311 (Covers): Include type coverage of both regular incomplete subtypes and
17312 incomplete subtypes of incomplete type visibles through a limited with
17315 2006-10-31 Robert Dewar <dewar@adacore.com>
17316 Hristian Kirtchev <kirtchev@adacore.com>
17317 Ed Schonberg <schonberg@adacore.com>
17319 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
17320 messages for entities in packages which are not used.
17321 (Collect_Synchronized_Interfaces): New procedure.
17322 (Overrides_Synchronized_Primitive): New function.
17323 (Denotes_Discriminant): Extend predicate to apply to task types.
17324 Add missing continuation marks in error msgs
17325 (Unqualify): New function for removing zero or more levels of
17326 qualification from an expression. There are numerous places where this
17327 ought to be used, but we currently only deal properly with zero or one
17329 (In_Instance); The analysis of the actuals in the instantiation of a
17330 child unit is not within an instantiation, even though the parent
17331 instance is on the scope stack.
17332 (Safe_To_Capture_Value): Exclude the case of variables that are
17334 (Check_Obsolescent): Removed
17335 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
17336 is an aliased view, even when rewritten as a reference to the target
17337 object in an assignment.
17338 (Get_Subprogram_Entity): New function
17339 (Known_To_Be_Assigned): New function
17340 (Type_Access_Level): Compute properly the access level of a return
17341 subtype that is an anonymous access type.
17342 (Explain_Limited_Type): Correct use of "\" for continuation messages.
17343 (Is_Transfer): The new extended_return_statement causes a transfer of
17345 (Has_Preelaborable_Initialization): New function
17346 (Has_Null_Exclusion): New function. Given a node N, determine whether it
17347 has a null exclusion depending on its Nkind.
17348 Change Is_Lvalue to May_Be_Lvalue
17349 (May_Be_Lvalue): Extensive additional code to deal with subprogram
17350 arguments (IN parameters are not Lvalues, IN OUT parameters are).
17351 (Safe_To_Capture_Value): Extend functionality so it can be used for
17352 the current value condition case.
17353 (Has_Compatible_Alignment): New function
17354 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
17355 objects to handle the Ada 2005 case, where aliasedness no longer implies
17356 that the object is constrained. In particular, for dereferenced names,
17357 the designated object must be assumed to be unconstrained.
17358 (Kill_Current_Values): Properly deal with the case where we encounter
17359 a loop in the scope chain.
17360 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
17362 (Compile_Time_Constraint_Error): Improve error message in error case
17364 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
17365 associated with entities of abstract interface primitives.
17366 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
17368 2006-10-31 Robert Dewar <dewar@adacore.com>
17370 * s-osinte-tru64.adb:
17371 Mark Asm statements Volatile to prevent warnings (seems a
17372 reasonable change anyway)
17375 * s-mastop-irix.adb: Add Volatile to Asm statements
17376 Suppresses warning, and seems appropriate in any case
17378 * s-osinte-vms.adb: Add Volatile to Asm statement
17380 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
17382 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
17384 Add call to Check_Code_Statement
17386 2006-10-31 Robert Dewar <dewar@adacore.com>
17387 Ed Schonberg <schonberg@adacore.com>
17388 Bob Duff <duff@adacore.com>
17390 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
17391 Synchronized_Present): Add Formal_Derived_Type_Definition and
17392 Private_Extension_Declaration to the list of assertions.
17393 (Is_Entry_Barrier_Function): New flag
17394 (Has_Self_Reference): New flag on aggregates, to indicate that they
17395 contain a reference to the enclosing type, inserted through a default
17397 (Next_Rep_Item): Move from Node4 to Node5.
17398 (Entity): Add this field for N_Attribute_Definition_Clause.
17399 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
17400 (N_Return_Object_Declaration): Remove this node kind. We now use
17401 N_Object_Declaration instead.
17402 (Actual_Designated_Subtype): Move to a different place to make room in
17403 N_Extended_Return_Statement.
17404 (Procedure_To_Call): Move to a different place to make room in
17405 N_Extended_Return_Statement.
17406 (Return_Type): Removed this field to make room in return statements
17408 (Return_Statement_Entity): New field in return statements, in part to
17409 replace Return_Type, and in part to support the fact that return
17410 statements are now pushed on the scope stack during semantic analysis.
17411 (Return_Object_Declarations): New field to support extended return
17413 (N_Extended_Return_Statement): New node for extended_return_statement
17415 (N_Return_Object_Declaration): New node for part of
17416 extended_return_statement nonterminal. Needed because all the necessary
17417 fields won't fit in N_Extended_Return_Statement.
17418 Generic_associations now carry the Box_Present flag, to indicate a
17419 default for an actual in a partially parametrized formal package.
17421 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
17422 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
17423 and for the new predefined dispatching policies: EDF_Across_Priorities,
17424 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
17425 Introduce new name Stub_Type for implementation defined attribute.
17426 Add pragma Preelaborable_Initialization
17427 Add entry for Priority attribute.
17428 Add Pragma_Wide_Character_Encoding
17429 (Get_Convention_Name): Given a convention id, this function returns the
17430 corresponding name id from the names table.
17432 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17433 Robert Dewar <dewar@adacore.com>
17434 Bob Duff <duff@adacore.com>
17436 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
17437 print null exclusion twice in the case of an access definition,
17438 Implement new -gnatL switch
17439 Remove N_Return_Object_Declaration. We now use
17440 N_Object_Declaration instead. Implement the case for
17441 N_Extended_Return_Statement. Alphabetize the cases.
17442 Add cases for new nodes N_Extended_Return_Statement and
17443 N_Return_Object_Declaration. The code is not yet written.
17444 Update the output for N_Formal_Object_Declaration
17445 and N_Object_Renaming_Declaration.
17446 (Write_Itype): Account for the case of a modular integer subtype whose
17447 base type is private.
17449 2006-10-31 Arnaud Charlet <charlet@adacore.com>
17451 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
17452 Remove elaboration code, now done in the binder.
17454 * s-rident.ads: Make this unit Preelaborate.
17455 (No_Restrictions): New constant used to clean up code and follow
17456 preelaborate constraints.
17459 Add System.Restrictions dependence, referenced directly from the
17460 binder generated file.
17462 2006-10-31 Gary Dismukes <dismukes@adacore.com>
17464 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
17465 True when AAMP extended floating-point is in use (48-bit). Change type
17466 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
17467 the two byte array types on AFloat. Change type of IV_Ilf overlay
17468 variable from Byte8 to ByteLF. Add appropriate initializations of
17469 floating-point overlays for AAMP cases.
17471 2006-10-31 Javier Miranda <miranda@adacore.com>
17473 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
17474 (Get_Ceiling): New subprogram that returns
17475 the ceiling priority of the protected object.
17476 (Set_Ceiling): New subprogram that sets the new ceiling priority of
17477 the protected object.
17479 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
17481 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
17483 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17485 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
17486 requeuing to the same protected object to give higher priority tasks
17487 the opportunity to execute.
17489 2006-10-31 Robert Dewar <dewar@adacore.com>
17491 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
17492 add more precise check for the character sequence that follows '[' to
17493 avoid possible confusion in case if '[' is the last character of a
17495 (Scan_Wide): Always allow brackets encoding
17497 2006-10-31 Olivier Hainque <hainque@adacore.com>
17499 * s-stchop.ads: make this unit preelaborate. This is desirable in
17500 general and made mandatory by the use of this unit by s-taprop which
17501 is itself preelaborate.
17503 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
17504 Td_Events component.
17506 2006-10-31 Vincent Celier <celier@adacore.com>
17508 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
17511 2006-10-31 Vincent Celier <celier@adacore.com>
17513 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
17515 2006-10-31 Vincent Celier <celier@adacore.com>
17517 * makegpr.adb (Check_Compilation_Needed): Take into account path names
17519 (Check_Compilation_Needed): When checking a C or C++ source, do not
17520 resolve symbolic links.
17521 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
17522 When not in verbose mode and Ellipse is True, display "..." for the
17523 first argument with Display set to False.
17524 (Build_Global_Archive): Always set Display True for the first object
17525 file. Call Display_Command with Ellipse set to True.
17527 2006-10-31 Matt Heaney <heaney@adacore.com>
17529 * a-crbtgo.ads: Commented each subprogram
17531 * a-crbtgo.adb: Added reference to book from which algorithms were
17534 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
17535 indicate which child.
17536 (Generic_Conditional_Insert): changed parameter name from "Success" to
17538 (Generic_Unconditional_Insert_With_Hint): improved algorithm
17540 * a-coorse.adb (Replace_Element): changed parameter name in call to
17541 conditional insert operation.
17543 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
17545 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
17548 * a-ciorse.adb (Replace_Element): changed parameter name in call to
17549 conditional insert operation.
17551 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
17554 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
17555 instead of mode inout.
17557 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
17559 (Generic_Read): preserve existing buckets array if possible
17560 (Generic_Write): don't send buckets array length anymore
17562 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
17563 instead of mode inout.
17565 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
17566 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17568 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
17569 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17570 (Replace_Element): local operation is now an instantiation
17572 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
17573 check current length.
17574 (Generic_Replace_Element): new operation
17576 2006-10-31 Doug Rupp <rupp@adacore.com>
17578 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
17579 Call TBK$SYMBOLIZE without omitting parameters.
17581 2006-10-31 Vincent Celier <celier@adacore.com>
17583 * symbols-processing-vms-ia64.adb,
17584 symbols-processing-vms-alpha.adb (Process): Do not include symbols
17585 that come from generic instantiations in bodies.
17587 2006-10-31 Pat Rogers <rogers@adacore.com>
17589 * a-rttiev.ads, a-rttiev.adb:
17590 This is a significant redesign primarily for the sake of automatic
17591 timer task termination but also to fix a design flaw.
17592 Therefore we are now using an RTS lock, instead of a protected
17593 object, to provide mutual exclusion to the queue of pending events
17594 and the type Timing_Event is no longer a protected type.
17596 2006-10-31 Robert Dewar <dewar@adacore.com>
17597 Cyrille Comar <comar@adacore.com>
17598 Ben Brosgol <brosgol@adacore.com>
17600 * debug.adb: Update flags documentation
17602 * gnat_ugn.texi: Add documentation for new -gnatwq switch
17603 Clean up documentation for several other warning switches
17604 Clarify how task stack size can be specified with various
17605 versions of Windows.
17606 Add note that -gnatVo includes ranges including loops
17607 Add documentation for -gnatL switch
17608 Add note on elaboration warning for initializing variables
17609 Add documentation for new -gnatwt warning switch
17610 Document new form of pragma Warnings (On|Off, string)
17611 Add comment on use of pragma Warnings to control warnings
17612 Add documentation for -gnatjnn switch
17613 Modify section on interfacing with C for VMS 64-bit.
17614 Add doc for -gnatVe/E
17615 Add documentation of new warning flags -gnatww/-gnatwW
17616 Add warnings about address clause overlays to list of warnings
17617 (Exception Handling Control): Document that the option --RTS must be
17618 used consistently for gcc and gnatbind.
17619 Clarify that inlining is not always possible
17620 Update documentation on pragma Unchecked_Union.
17623 Add documentation for new extended version of pragma Obsolescent
17624 Add documentation for implementation defined attribute 'Stub_Type.
17625 Add note on use of Volatile in asm statements
17626 Add documentation on use of pragma Unreferenced in context clause
17627 Document new form of pragma Warnings (On|Off, pattern)
17628 Document pragma Wide_Character_Encoding
17629 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
17630 enforced if code generation is active.
17631 Add section on pragma Suppress to document GNAT specific check
17633 Clarify difference between No_Dispatching_Calls & No_Dispatch.
17634 Add documentation for pragma Restrictions (No_Elaboration_Code)
17637 Add comments on layout of subprogram local variables in the
17638 presence of nested subprograms.
17640 * ug_words: Resync.
17642 * elists.ads: Minor reformatting
17643 Node returns Node_Or_Entity_Id (doc change only)
17645 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
17647 * g-arrspl.ads (Create): Update comments.
17649 * sem.ads: Add details on the handling of the scope stack.
17651 * usage.adb: Update documentation.
17653 * validsw.ads, validsw.adb:
17654 Add definition of Validity_Check_Components and implement -gnatVe/E
17656 * vms_data.ads: Add missing VMS qualifiers.
17658 * s-addope.ads: Add documentation on overflow and divide by zero
17660 2006-10-31 Robert Dewar <dewar@adacore.com>
17661 Thomas Quinot <quinot@adacore.com>
17662 Arnaud Charlet <charlet@adacore.com>
17664 * fmap.adb: Put routines in alpha order
17666 * g-boumai.ads: Remove redundant 'in' keywords
17668 * g-cgi.adb: Minor reformatting
17670 * g-cgi.ads: Remove redundant 'in' keywords
17672 * get_targ.adb: Put routines in alpha order
17674 * prj-attr.ads: Minor reformatting
17676 * s-atacco.ads: Minor reformatting
17678 * scn.adb: Put routines in alpha order
17680 * sinput-l.adb: Minor comment fix
17682 * sinput-p.adb: Minor comment fix
17684 * s-maccod.ads: Minor reformatting
17686 * s-memory.adb: Minor reformatting
17688 * s-htable.adb: Fix typo in comment.
17690 * s-secsta.adb: Minor comment update.
17692 * s-soflin.adb: Minor reformatting
17695 Add comment about odd qualification in Storage_Offset declaration
17698 Remove unnecessary 'in' keywords for formal parameters.
17700 * treeprs.adt: Minor reformatting
17702 * urealp.adb: Put routines in alpha order
17704 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
17707 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17709 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
17711 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
17712 workaround as on other platforms.
17714 * g-eacodu-vms.adb: Remove redundant 'in' keywords
17715 * g-expect-vms.adb: Remove redundant 'in' keywords
17717 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
17718 clear error message if the list-of-files file cannot be opened.
17720 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
17721 equality operator is always visible.
17723 * lang.opt: Woverlength-strings: New option.
17726 Update copyright, since nmake.ads and nmake.adb have changed.
17728 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
17729 (Binder_Output_Time_Stamps_Set): removed.
17730 (Old_Binder_Output_Time_Stamp): idem.
17731 (New_Binder_Output_Time_Stamp): idem.
17732 (Recording_Time_From_Last_Bind): idem.
17733 (Recording_Time_From_Last_Bind): Make constant.
17735 * output.ads, output.adb (Write_Str): Allow LF characters
17736 (Write_Spaces): New procedure
17738 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
17740 * inline.adb: Minor reformatting
17742 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17744 * s-mastop-vms.adb: Remove redundant 'in' keywords
17746 * s-osprim-vms.adb: Remove redundant 'in' keywords
17748 * s-trafor-default.adb: Remove redundant 'in' keywords
17750 * 9drpc.adb: Remove redundant 'in' keywords
17752 * s-osinte-mingw.ads: Minor reformatting
17754 * s-inmaop-posix.adb: Minor reformatting
17756 * a-direio.ads: Remove quotes from Compile_Time_Warning message
17758 * a-exexda.adb: Minor code reorganization
17760 * a-filico.adb: Minor reformatting
17762 * a-finali.adb: Minor reformatting
17764 * a-nudira.ads: Remove quote from Compile_Time_Warning message
17766 * a-numeri.ads: Minor reformatting
17768 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
17770 * exp_pakd.ads: Fix obsolete comment
17772 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
17773 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
17774 Probably not a bug, but certainly neater and more efficient.
17776 * a-tienio.adb: Minor reformatting
17778 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
17779 Avoid assuming low bound of string is 1.
17781 * gnatbind.adb: Change Bindusg to package and rename procedure as
17782 Display, which now ensures that it only outputs usage information once.
17783 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
17785 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
17788 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
17790 (Match): Add pragma Assert to ensure that Matches'First is zero
17792 * g-regpat.ads (Match): Document that Matches lower bound must be zero
17794 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
17795 documented preconditions (also kills warnings about bad indexes).
17797 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
17799 (Build_Import_Library): Ditto;
17801 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
17803 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
17805 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
17806 lower bound of choice table is 1.
17808 * sem_case.ads (Analyze_Choices): Document that lower bound of
17811 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
17814 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
17815 and add appropriate Assert pragma to suppress warnings.
17817 * atree.h, atree.ads, atree.adb
17818 Change Elist24 to Elist25
17819 Add definitions of Field28 and Node28
17820 (Traverse_Field): Use new syntactic parent table in sinfo.
17822 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17824 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17826 * exp_tss.adb: Put routines in alpha order
17828 * fe.h: Remove redundant declarations.
17830 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
17832 * utils.c (builtin_function): Rename to gnat_builtin_function.
17833 Move common code to add_builtin_function.
17834 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
17835 gnat_builtin_function.
17836 * gigi.h (builtin_function): Rename to gnat_builtin_function.
17837 Change the signature.
17839 2006-10-16 Brooks Moses <bmoses@stanford.edu>
17841 * Makefile.in: Add TEXI2PDF definition.
17842 * Make-lang.in: Add "ada.pdf" target.
17844 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
17846 * decl.c, utils.c: Fix comment typos.
17847 * utils.c: Fix a typo.
17849 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
17851 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
17852 on "pure" Ada subprograms if SJLJ exceptions are used.
17853 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
17854 on the declaration node of JMPBUF_SAVE.
17855 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
17856 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
17857 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
17859 2006-08-20 Laurent Guerby <laurent@guerby.net>
17862 g-socket.adb (Bind_Socket): Call Set_Address.
17864 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
17867 * decl.c (same_discriminant_p): New static function.
17868 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
17869 subtype and we have discriminants, fix up the COMPONENT_REFs
17870 for the discriminants to make them reference the corresponding
17871 fields of the parent subtype after it has been built.
17873 2006-09-15 Roger Sayle <roger@eyesopen.com>
17876 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
17877 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
17879 2006-09-13 Olivier Hainque <hainque@adacore.com>
17882 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
17883 of a SAVE_EXPR, just make the operand addressable/not-readonly and
17884 let the common gimplifier code make and propagate a temporary copy.
17885 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
17886 out/in-out actuals and defer setting the addressable/readonly bits
17889 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
17892 * decl.c (components_to_record): Defer emitting debug info for the
17893 record type associated with the variant until after we are sure to
17896 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
17899 * gigi.h (gnat_internal_attribute_table): Declare.
17900 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
17901 * utils.c (gnat_internal_attribute_table): New global variable.
17902 (builtin_function): Always call decl_attributes on the builtin.
17903 (handle_const_attribute): New static function.
17904 (handle_nothrow_attribute): Likewise.
17906 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17908 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
17910 2006-06-23 Olivier Hainque <hainque@adacore.com>
17912 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
17913 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
17915 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
17916 Eric Botcazou <ebotcazou@adacore.com>
17919 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
17920 check-gnat into check-acats.
17922 2006-06-17 Karl Berry <karl@gnu.org>
17924 * gnat-style.texi (@dircategory): Use "Software development"
17925 instead of "Programming", following the Free Software Directory.
17927 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17930 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
17932 2006-06-06 Laurent Guerby <laurent@guerby.net>
17935 mlib-utl.adb: Use Program_Name.
17937 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
17939 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
17940 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
17941 trans.c, utils.c: Fix comment typos. Follow spelling
17943 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
17946 2006-05-19 Nicolas Setton <setton@adacore.com>
17948 * misc.c (gnat_dwarf_name): New function.
17949 (LANG_HOOKS_DWARF_NAME): Define to it.
17951 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
17953 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
17954 (ada/misc.o): Likewise.
17955 (ada/utils.o): Likewise.
17957 2006-04-08 Aurelien Jarno <aurel32@debian.org>
17959 * Makefile.in: Add Ada support for GNU/kFreeBSD.
17960 * s-osinte-kfreebsd-gnu.ads: New file.
17962 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
17964 * Make-lang.in: Rename docdir to gcc_docdir.
17966 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
17968 * gigi.h (get_ada_base_type): Delete.
17969 * utils2.c (get_ada_base_type): Likewise.
17970 * trans.c (convert_with_check): Operate in the real base type.
17972 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17974 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
17976 2006-03-02 Richard Sandiford <richard@codesourcery.com>
17978 * utils.c (create_var_decl): Use have_global_bss_p when deciding
17979 whether to make the decl common.
17981 2006-02-20 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
17983 * Make-lang.in (Ada): Remove.
17984 (.PHONY): Remove Ada
17986 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17988 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
17989 aggregate, check the interpretations of the other operand to find one
17990 that may be a boolean array.
17992 (Analyze_Selected_Component): Fix flow-of-control typo in case where
17993 the prefix is a private extension.
17995 2006-02-17 Eric Botcazou <botcazou@adacore.com>
17998 * utils2.c (find_common_type): If both input types are BLKmode and
17999 have the same constant size, keep using the first one.
18001 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
18003 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
18005 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
18007 2006-02-17 Jose Ruiz <ruiz@adacore.com>
18009 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
18010 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
18011 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
18012 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
18013 Abort_Defer/Undefer pairs to avoid the possibility of a task being
18014 aborted while owning a lock.
18016 2006-02-17 Javier Miranda <miranda@adacore.com>
18017 Robert Dewar <dewar@adacore.com>
18019 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
18020 through an access to class-wide interface we force the displacement of
18021 the pointer to the allocated object to reference the corresponding
18022 secondary dispatch table.
18023 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
18024 if Long_Shifts are supported on the target, even if 64 bit divides
18025 are not supported (configurable run time mode).
18026 (Expand_N_Type_Conversion): Do validity check if validity checks on
18027 operands are enabled.
18028 (Expand_N_Qualified_Expression): Do validity check if validity checks
18029 on operands are enabled.
18031 2006-02-17 Ed Schonberg <schonberg@adacore.com>
18033 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
18034 must be materialized when the renamed expression is an explicit
18037 2006-02-17 Ed Schonberg <schonberg@adacore.com>
18039 * freeze.adb (Statically_Discriminated_Components): Return false if
18040 the bounds of the type of the discriminant are not static expressions.
18042 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
18043 the bounds of the discriminant type are not static.
18045 2006-02-17 Robert Dewar <dewar@adacore.com>
18047 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
18048 then we close To if it is valid.
18050 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
18052 * init.c (facility_resignal_table): new array
18053 (__gnat_default_resignal_p): enhance default predicate to resignal if
18054 VMS condition has one of the predefined facility codes.
18056 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
18058 * Makefile.in: Use VMS64 specialized versions of several units in
18059 Interfaces.C hierarchy to be compatible with HP C default size choices.
18060 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
18062 2006-02-17 Ed Schonberg <schonberg@adacore.com>
18064 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
18065 instantiation, the corresponding entity is the related_instance of the
18066 wrapper package created for the instance.
18068 2006-02-17 Ed Schonberg <schonberg@adacore.com>
18070 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
18071 the current instance is nested within another instance in a child unit.
18073 2006-02-17 Javier Miranda <miranda@adacore.com>
18074 Ed Schonberg <schonberg@adacore.com>
18076 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
18077 type we cannot inherit the primitive operations; we inherit the
18078 Corresponding_Record_Type (which has the list of primitive operations).
18079 (Check_Anonymous_Access_Types): When creating anonymous access types for
18080 access components, use Rewrite in order to preserve the tree structure,
18082 (Analyze_Object_Declaration): For limited types with access
18083 discriminants with defaults initialized by an aggregate, obtain
18084 subtype from aggregate as for other mutable types.
18085 (Derived_Type_Declaration): If the derived type is a limited interface,
18086 set the corresponding flag (Is_Limited_Record is not sufficient).
18088 2006-02-17 Ed Schonberg <schonberg@adacore.com>
18090 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
18091 to inline a function that returns an unconstrained type, the return
18092 expression must be the first variable declared in the body of the
18095 2006-02-17 Javier Miranda <miranda@adacore.com>
18097 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
18098 abstract interface type, the static analysis is not enough to know if
18099 the interface is implemented or not by the source tagged type. Hence
18100 we must pass the work to the expander to generate the required code to
18101 evaluate the conversion at run-time.
18102 (Resolve_Equality_Op): Do not apply previous
18103 transformation if expansion is disasbled, to prevent anomalies when
18104 locating global references in a generic unit.
18106 2006-02-17 Vincent Celier <celier@adacore.com>
18108 * snames.ads, snames.adb: New standard names for new project attributes:
18109 archive_builder, archive_indexer, compiler_pic_option,
18110 config_body_file_name, config_body_file_name_pattern,
18111 config_file_switches, config_file_unique, config_spec_file_name,
18112 config_spec_file_name_pattern, default_builder_switches,
18113 default_global_compiler_switches, default_language,
18114 dependency_file_kind, global_compiler_switches, include_path,
18115 include_path_file, language_kind, linker_executable_option,
18116 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
18117 roots, runtime_project.
18119 2006-02-17 Matthew Heaney <heaney@adacore.com>
18121 * a-convec.ads, a-convec.adb:
18122 (operator "&"): handle potential overflow for large index types
18123 (Insert): removed Contraint_Error when using large index types
18124 (Insert_Space): removed Constraint_Error for large index types
18125 (Length): moved constraint check from Length to Insert
18127 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
18128 as not null access.
18129 Explicit raise statements now include an exception message.
18130 (operator "&"): handle potential overflow for large index types
18131 (Insert): removed Contraint_Error when using large index types
18132 (Insert_Space): removed Constraint_Error for large index types
18133 (Length): moved constraint check from Length to Insert
18135 2006-02-17 Robert Dewar <dewar@adacore.com>
18137 * s-wchcnv.adb: Document handling of [ on output (we do not change
18138 this to ["5B"] and the new comments say why not.
18141 Add note for -gnatVo that this now includes the cases of type
18142 conversions and qualified expressions.
18143 Add comments on handling of brackets encoding for Text_IO
18145 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
18146 Thomas Quinot <quinot@adacore.com>
18147 Robert Dewar <dewar@adacore.com>
18148 Javier Miranda <miranda@adacore.com>
18150 * expander.adb: Fix typo in comment
18152 * exp_pakd.adb: Fix typo
18153 Minor comment reformatting.
18155 * g-dyntab.adb: Minor reformatting
18157 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
18158 aliased subprograms to look for the abstract interface subprogram.
18160 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
18162 * env.c (__gnat_setenv): Use size_t.
18163 (__gnat_unsetenv): Likewise.
18164 (__gnat_clearenv): Likewise.
18166 2006-02-16 Arnaud Charlet <charlet@adacore.com>
18168 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
18170 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18172 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
18173 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
18174 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
18175 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
18176 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
18177 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
18178 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
18179 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
18180 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
18183 2006-02-13 Jose Ruiz <ruiz@adacore.com>
18185 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
18186 protection against race conditions is not needed.
18187 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
18189 (Set_Specific_Handler): Add mutual exclusive access to the specific
18191 (Specific_Handler): Add mutual exclusive access for retrieving the
18194 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
18197 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
18198 Fall_Back_Handler and Specific_Handler.
18200 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
18201 termination handlers.
18202 Set two different owerflow depending on the maximal stack size.
18204 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
18205 protection against race conditions is not needed when executing the
18206 task termination handler.
18208 2006-02-13 Robert Dewar <dewar@adacore.com>
18210 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
18211 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
18212 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18213 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
18214 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
18215 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
18216 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
18217 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
18218 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
18219 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
18220 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
18221 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
18222 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
18223 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
18224 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
18225 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
18226 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
18227 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
18228 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
18229 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
18230 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
18231 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
18232 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
18233 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
18234 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
18235 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
18236 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
18237 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
18238 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
18239 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
18240 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
18241 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
18242 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
18243 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
18246 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18248 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
18249 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
18250 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
18251 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
18252 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
18253 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
18254 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
18255 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
18256 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
18258 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18260 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
18261 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
18262 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
18263 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
18264 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
18265 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
18266 replaced by anonymous access type.
18267 (pthread_sigmask): Now take an access sigset_t
18269 * s-osinte-hpux.ads: Ditto.
18270 (pthread_mutex_t, pthread_cond_t): Update definitions to support
18271 properly 32 and 64 bit ABIs.
18273 2006-02-13 Pascal Obry <obry@adacore.com>
18275 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
18276 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
18277 s-taprop-linux.adb, s-taprop-solaris.adb,
18278 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
18279 adjustement is already done when calling this routine.
18281 2006-02-13 Pascal Obry <obry@adacore.com>
18283 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
18284 table to take advantage of the 16 priority levels available on Windows
18285 2000 and XP. On NT4 there are only 7 priority levels, this is properly
18286 supported by this new mapping.
18288 2006-02-13 Nicolas Setton <setton@adacore.com>
18290 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
18291 (get_encoding): New subprogram. Extracts the encodings from an encoded
18294 2006-02-13 Pascal Obry <obry@adacore.com>
18295 Nicolas Roche <roche@adacore.com>
18296 Arnaud Charlet <charlet@adacore.com>
18298 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
18300 (__gnat_try_lock): Add unicode support by using a specific section on
18302 (__gnat_get_current_dir): Idem.
18303 (__gnat_open_read): Idem.
18304 (__gnat_open_rw): Idem.
18305 (__gnat_open_create): Idem.
18306 (__gnat_create_output_file): Idem.
18307 (__gnat_open_append): Idem.
18308 (__gnat_open_new): Idem.
18309 (__gnat_file_time_name): Idem.
18310 (__gnat_set_file_time_name): Idem.
18311 (__gnat_stat): Idem.
18312 (win32_no_block_spawn): Idem.
18313 (__gnat_locate_exec_on_path): Idem.
18314 (__gnat_opendir): New routine.
18315 (__gnat_closedir): Idem.
18316 (__gnat_readdir): Add new parameter length (pointer to int). Update
18317 implementation to use it and add specific Win32 code for Unicode
18319 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
18320 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
18321 (convert_addresses): Do not define this dummy routine on VMS.
18323 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
18324 runtime Unicode support will be activated.
18325 (S2WS): String to Wide-String conversion. This version just copy a
18326 string in non Unicode version.
18327 (WS2S): Wide-String to String conversion. This version just copy a
18328 string in non Unicode version.
18330 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
18331 (Open): Now import __gnat_opendir from adaint.c.
18332 (Read): Change the implementation to support unicode characters. It is
18333 not possible to use strlen() on Windows as this version supports only
18334 standard ASCII characters. So the length of the directory entry is now
18335 returned from the imported __gnat_readdir routine.
18336 Update copyright notice.
18338 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
18339 (opendir): Moved to adaint.c.
18341 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
18342 (Get_Directory): Fix wrong indexing.
18343 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
18344 __gnat_getenv from env.c
18345 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
18348 * env.h, env.c: New file.
18350 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
18351 adaint.c by __gnat_getenv from env.c
18353 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
18354 adaint.c by __gnat_getenv from env.c
18356 * Make-lang.in: Add env.o in the list of C object needed by gnat1
18358 Update dependencies.
18360 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18361 Olivier Hainque <hainque@adacore.com>
18362 Eric Botcazou <ebotcazou@adacore.com>
18364 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
18366 * gigi.h (value_factor_p): Add prototype and description, now public.
18368 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
18369 promotion for field with rep clause if the associated size was proven
18371 Expand comments describing attempts to use a packable type.
18372 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
18373 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
18374 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
18375 necessary since these are not different types and pointers may
18376 actually designate any subtype in this hierarchy.
18377 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
18378 discriminants but put them into record only if not Unchecked_Union;
18379 pass flag to components_to_record showing Unchecked_Union.
18380 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
18381 components before variants; don't set TYPE_UNCHECKED_UNION_P.
18382 (components_to_record): New argument UNCHECKED_UNION.
18383 Remove special case code for Unchecked_Union and instead use main code
18384 with small changes.
18387 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
18388 variable with the expression being built, only its inner field.
18390 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
18391 emit_sequence_entry_statements.
18392 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
18393 (establish_gnat_vms_condition_handler): Move before
18394 Subprogram_Body_to_gnu.
18395 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
18396 for a subprogram if it has a foreign convention or is exported.
18397 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
18398 substituted for a CONST_DECL.
18399 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
18400 Etype to assoc_to_constructor.
18401 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
18402 discriminants of Unchecked_Union.
18403 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
18404 don't need cluttering preprocessor directives.
18405 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
18406 condition handler as current in the compiled function.
18407 (body_with_handlers_p): New function. Tell whether a given sequence of
18408 statements node is attached to a package or subprogram body and involves
18409 exception handlers possibly nested within inner block statements.
18410 (emit_sequence_entry_statements): New function, to emit special
18411 statements on entry of sequences when necessary. Establish GNAT
18412 condition handler in the proper cases for VMS.
18413 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
18414 emit_sequence_entry_statements.
18416 * utils2.c (find_common_type): If both input types are BLKmode and
18417 have a constant size, use the smaller one.
18418 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
18421 * utils.c (value_factor_p): Make public, to allow uses from other gigi
18423 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
18424 (convert, case UNION_TYPE): Remove special treatment for unchecked
18428 (update_pointer_to): Update variants of pointer types to unconstrained
18429 arrays by attaching the list of fields of the main variant.
18431 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18432 Robert Dewar <dewar@adacore.com>
18434 * a-exexpr.adb, a-exexpr-gcc.adb
18435 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
18436 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
18437 Remove code unused for exception propagation for the compiler itself
18438 from a-except.adb and update to still share separate packages.
18440 * a-except.ads, a-except.adb: Ditto.
18441 Add comments that this version is now used only by the compiler and
18442 other basic tools. The full version that includes the Ada 2005 stuff
18443 is in separate files a-except-2005.ads/adb. The reason is that we do
18444 not want to cause bootstrap problems with compilers not recognizing
18446 Add exception reason code PE_Implicit_Return
18447 Add new exception reason code (Null Exception_Id)
18449 * a-except-2005.adb, a-except-2005.ads: New files.
18451 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
18453 * s-wchcon.adb: New file.
18455 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
18456 (traceback.o deps): Likewise.
18457 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
18458 Activate build of GMEM instrumentation library on VMS targets.
18459 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
18460 Use a-except-2005.ads/adb for all run-time library builds unless
18461 specified otherwise.
18462 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
18463 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
18464 Use s-parame.adb on all native platforms.
18465 Use s-parame-vxworks.adb on all vxworks platforms.
18466 Add env.c env.h in LIBGNAT_SRCS
18467 Add env.o in LIBGNAT_OBJS
18468 (GNATMAKE_OBJS): Remove ctrl_c.o object.
18469 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
18470 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
18471 supports VxWorks 6 RTPs.
18472 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
18473 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
18475 * types.h, types.ads (Terminate_Program): New exception
18476 Add comment on modifying multiple versions of a-except.adb when the
18477 table of exception reasons is modified.
18478 Add exception reason code PE_Implicit_Return
18479 Add new exception reason code (Null Exception_Id)
18481 * clean.adb (Initialize): Get the target parameters before checking
18482 if target is OpenVMS. Move the OpenVMS specific code here from package
18483 body elaboration code.
18485 2006-02-13 Thomas Quinot <quinot@adacore.com>
18486 Vincent Celier <celier@adacore.com>
18487 Robert Dewar <dewar@adacore.com>
18489 * ali-util.adb (Get_File_Checksum): Update to account for change in
18490 profile of Initialize_Scanner.
18492 * gprep.adb (Gnatprep): Update to account for change in profile of
18493 Initialize_Scanner.
18494 (Process_One_File): Same.
18496 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
18497 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
18498 that behaviour using the new Unit information recorded in the source
18499 files table, rather than going through all units every time.
18500 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
18501 (Get_Source_Unit): Same.
18503 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
18504 change in profile of Initialize_Scanner.
18505 (Prepare_To_Preprocess): Same.
18507 * lib.ads: Fix typo in comment (templace -> template).
18509 * prj-part.adb (Parse_Single_Project): Update to account for change in
18510 profile of Initialize_Scanner.
18512 * scn.adb (Initialize_Scanner): Account for change in profile of
18513 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
18514 Also record the association of the given Source_File_Index to the
18515 corresponding Unit_Number_Type.
18517 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
18519 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
18520 Remove Unit formal for generic scanner: this formal
18521 is only relevant to Scn (the scanner instance used to parse Ada source
18522 files), not to other instances. Update comment accordingly.
18523 (Scan): Use new function Snames.Is_Keyword_Name.
18525 * sinfo-cn.adb: Fix typo in comment.
18527 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
18530 * sinput.ads (Source_File_Record): New component Unit, used to capture
18531 the unit identifier (if any) associated to a source file.
18533 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
18534 Unit in Source_File_Record.
18536 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
18537 in profile of Initialize_Scanner.
18539 * scans.adb (Initialize_Ada_Keywords): New procedure
18541 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
18542 Ada keywords in the Namet table, without the need to call
18543 Initialize_Scanner.
18545 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
18546 (Is_Keyword_Name): New function
18548 * snames.ads: Add subtype Configuration_Pragma_Names
18549 Add pragma Ada_2005 (synonym for Ada_05)
18550 (Is_Keyword_Name): New function
18552 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
18554 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18556 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
18559 * a-stwima.adb (To_Set): Add extra check when N = 0.
18561 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
18563 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18565 * s-parame-mingw.adb, s-parame-linux.adb,
18566 s-parame-solaris.adb: Removed, replaced by s-parame.adb
18568 * s-parame-vxworks.ads: Fix typo.
18570 * s-parame-vxworks.adb: New file.
18572 * s-parame.adb: Version now used by all native platforms.
18573 (Default_Stack_Size): Use 2 megs for default stack size and use
18574 __gl_default_stack_size when available.
18575 (Minimum_Stack_Size): Use 12K.
18577 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
18578 (Create_Task): Refine implementation taking advantage of the XP stack
18579 size support. On XP, we now create the thread using the flag
18580 STACK_SIZE_PARAM_IS_A_RESERVATION.
18582 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
18584 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
18585 XP and 0 on older Windows versions.
18587 * interfac-vms.ads: Removed, no longer used.
18589 2006-02-13 Matthew Heaney <heaney@adacore.com>
18591 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
18592 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
18593 a-cohase.adb: All explicit raise statements now include an exception
18596 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
18597 (Update_Element_Preserving_Key): renamed op to just Update_Element.
18598 Explicit raise statements now include an exception message
18600 * a-cihase.ads, a-cohase.ads: Removed comment.
18602 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
18603 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
18604 a-szbzha.adb, a-szfzha.ads: New files.
18606 2006-02-13 Matthew Heaney <heaney@adacore.com>
18608 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
18611 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18613 * lang.opt: Wvariadic-macros: New option.
18614 Wold-style-definition: Likewise.
18615 Wmissing-format-attribute: Likewise.
18617 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
18618 -Wold-style-definition and -Wmissing-format-attribute.
18620 2006-02-13 Robert Dewar <dewar@adacore.com>
18622 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
18624 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
18626 2006-02-13 Nicolas Roche <roche@adacore.com>
18628 * a-envvar.adb, a-envvar.ads: New files.
18630 2006-02-13 Douglas Rupp <rupp@adacore.com>
18632 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
18634 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
18636 2006-02-13 Pat Rogers <rogers@adacore.com>
18638 * a-rttiev.adb, a-rttiev.ads: New files.
18640 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18642 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
18643 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
18645 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
18647 2006-02-13 Robert Dewar <dewar@adacore.com>
18649 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
18650 sem_case.adb: Minor code reorganization (not Present should be No)
18652 2006-02-13 Geert Bosch <bosch@adacore.com>
18653 Gary Dismukes <dismukes@adacore.com>
18655 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
18656 0, since the lower bound of the actual string may be greater than one.
18659 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
18660 layout is requested.
18662 2006-02-13 Vincent Celier <celier@adacore.com>
18664 * back_end.adb (Scan_Compiler_Arguments): Check if
18665 Search_Directory_Present is True and, if it is, add the argument in
18666 the source search directory path.
18668 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
18669 Search_Directory_Present to True.
18671 2006-02-13 Joel Brobecker <brobecke@adacore.com>
18673 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
18674 volatile, to tell the compiler to preserve this variable at any level
18676 (Gen_Versions_Ada): Temporarily work around codegen bug.
18678 2006-02-13 Vincent Celier <celier@adacore.com>
18680 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
18681 gcc to link with option -shared-libgcc.
18682 (Gnatlink): Remove duplicate switches -shared-libgcc
18684 2006-02-13 Robert Dewar <dewar@adacore.com>
18686 * gnatvsn.ads (Current_Year): New constant, used to easily update
18687 copyright on all GNAT tools.
18689 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
18692 2006-02-13 Robert Dewar <dewar@adacore.com>
18694 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
18695 after hyphen (small aesthetic change useful for a range of numbers
18697 Suppress range checks for a couple of assignments which otherwise
18698 cause validity checks with validity checking turned on.
18700 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
18701 Improvement in error message for object.
18702 (Rep_Item_Too_Late): Remove '!' in warning message.
18704 2006-02-13 Robert Dewar <dewar@adacore.com>
18705 Eric Botcazou <ebotcazou@adacore.com>
18707 * err_vars.ads: Suppress range checks for a couple of assignments
18708 which otherwise cause validity checks with validity checking turned on.
18711 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
18712 Make message unconditional if it is a warning.
18713 (Error_Msg_NEL): Always output warning messages.
18714 Suppress range checks for a couple of assignments which otherwise
18715 cause validity checks with validity checking turned on.
18717 * errout.ads (Message Insertion Characters): Document that '!' is
18718 implied by '?' in error messages.
18720 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
18721 (Gnat1drv): Use a goto to end of main subprogram instead of
18722 Exit_Program (E_Success) so that finalization can occur normally.
18724 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18726 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
18729 2006-02-13 Vincent Celier <celier@adacore.com>
18731 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
18732 Unchecked_Conversion functions.
18733 (Modification_Time): Use direct conversion of OS_Time to Calendar time
18734 when OpenVMS returns False.
18736 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
18737 a-dirval.adb (OpenVMS): New Boolean function
18739 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18740 Thomas Quinot <quinot@adacore.com>
18742 * checks.adb (Build_Discriminant_Checks): If the expression being
18743 checks is an aggregate retrieve the values of its discriminants to
18744 generate the check, rather than creating a temporary and a reference
18746 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
18747 (Install_Null_Excluding_Check): Ditto
18748 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
18749 not for the renamed object, so that the actual itype is attached in the
18752 2006-02-13 Robert Dewar <dewar@adacore.com>
18753 Vincent Celier <celier@adacore.com>
18755 * debug.adb: Eliminate numeric switches for binder/gnatmake
18757 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
18758 switches for the compiler.
18759 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
18760 (Scan_Make_Switches): When failing with an illegal switch, output an
18761 error message with the full switch.
18762 Eliminate numeric switches for binder/gnatmake
18764 * switch.ads, switch.adb (Bad_Switch): New procedure
18766 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
18767 Remove 0-9 as debug flag character possibilities
18768 -d is now controlling the primary stack size when its value is a
18769 positive. Also add checks against invalid values, and support for kb,
18770 mb. Ditto for -D switch.
18772 2006-02-13 Robert Dewar <dewar@adacore.com>
18773 Serguei Rybin <rybin@adacore.com>
18775 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
18776 save/restore routines.
18777 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18778 were not always properly handled previously.
18779 Since we are changing the tree format anyway, also get rid of the
18780 junk obsolete Immediate_Errors flag.
18781 (Tree_Read): Change the way of reading Tree_Version_String - now we
18782 read the version string from the tree even if its length is not the
18783 same as the length of the version string computed from Gnatvsn.
18784 (Search_Directory_Present): New Boolean flag for the compiler.
18785 Define Tree_Version_String as a dynamic string.
18786 (Default_Stack_Size): new variable, used to handle switch -d.
18789 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
18790 only for main unit.
18791 Add pragma Ada_2005 (synonym for Ada_05)
18792 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18793 were not always properly handled previously.
18795 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
18796 explicit Ada_95 to Ada_2005.
18798 2006-02-13 Javier Miranda <miranda@adacore.com>
18799 Robert Dewar <dewar@adacore.com>
18800 Ed Schonberg <schonberg@adacore.com>
18802 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
18803 against errors in the source program: a private types for which the
18804 corresponding full type declaration is missing and pragma CPP_Virtual
18806 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
18807 (Is_Known_Null): New flag
18808 (Has_Pragma_Pure): New flag
18809 (No_Return): Present in all entities, set only for procedures
18810 (Is_Limited_Type): A type whose ancestor is an interface is limited if
18811 explicitly declared limited.
18812 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
18813 entities. Only used for component marked Is_Tag. If present it stores
18814 the Offset_To_Top function used to provide this value in tagged types
18815 whose ancestor has discriminants.
18817 * exp_ch2.adb: Update status of new Is_Known_Null flag
18819 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
18821 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
18822 the categorization sense if Is_Pure was set by pragma Pure_Function.
18824 2006-02-13 Quentin Ochem <ochem@adacore.com>
18825 Olivier Hainque <hainque@adacore.com>
18827 * bindusg.adb: Updated documentation for -d and -D switches.
18829 * raise.h (__gnat_set_globals): added new parameter for
18830 Default_Stack_Size.
18832 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
18833 (__gnat_handle_vms_condition): Adjust context before raise.
18834 (__gnat_install_handler): Restore the global vector setup for GCC
18835 versions before 3.4, as the frame based circtuitry is not available
18837 (__gnat_set_globals): added a parameter default_stack_size
18838 (__gl_default_stack_size): new variable.
18840 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18842 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
18843 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
18844 does not exist in the Ada RM.
18845 (Compatible_Int_Bounds): Determine whether two integer range bounds
18846 are of equal length and have the same start and end values.
18847 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
18848 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
18849 aggregate when it is part of an object declaration.
18850 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
18851 constrains discriminants of its parent, add explicitly the discriminant
18852 constraints of the ancestor by retrieving them from the
18853 stored_constraint of the parent.
18855 2006-02-13 Robert Dewar <dewar@adacore.com>
18857 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
18858 attribute Mechanism_Code is applied to renamed subprogram, modify
18859 prefix to point to base subprogram.
18860 Max/Min attributes now violate Restriction No_Implicit_Conditionals
18862 * sinfo.ads: Document that Mechanism_Code cannot be applied to
18863 renamed subprograms so that the front-end must replace the prefix
18866 2006-02-13 Javier Miranda <miranda@adacore.com>
18867 Gary Dismukes <dismukes@adacore.com>
18869 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
18870 availability of RE_Interface_Tag.
18871 (Build_Initialization_Call): Fix wrong access to the discriminant value.
18872 (Freeze_Record_Type): Do not generate the tables associated with
18873 timed and conditional dispatching calls through synchronized
18874 interfaces if compiling under No_Dispatching_Calls restriction.
18875 When compiling for Ada 2005, for a nonabstract
18876 type with a null extension, call Make_Controlling_Function_Wrappers
18877 and insert the wrapper function declarations and bodies (the latter
18878 being appended as freeze actions).
18879 (Predefined_Primitive_Bodies): Do not generate the bodies of the
18880 predefined primitives associated with timed and conditional
18881 dispatching calls through synchronized interfaces if we are
18882 compiling under No_Dispatching_Calls.
18883 (Build_Init_Procedure): Use RTE_Available to check if a run-time
18884 service is available before generating a call.
18885 (Make_Controlling_Function_Wrappers): New procedure.
18886 (Expand_N_Full_Type_Declaration): Create a class-wide master for
18887 access-to-limited-interfaces because they can be used to reference
18888 tasks that implement such limited interface.
18889 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
18890 procedure spec and body of the Offset_To_Top function that is generated
18891 when the parent of a type with discriminants has secondary dispatch
18893 (Init_Secondary_Tags): Handle the case in which the parent of the type
18894 containing secondary dispatch tables has discriminants to generate the
18895 correct arguments to call Set_Offset_To_Top.
18896 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
18898 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
18899 Add Wide_[Wide_]Expanded_Name.
18900 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
18901 the same functionality of Get_Prim_Op_Address but applied to predefined
18902 primitive operations because the pointers to the predefined primitives
18903 are now saved in a separate table.
18904 (Parent_Size): Modified to get access to the separate table of primitive
18905 operations or the parent type.
18906 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
18907 functionality of Set_Prim_Op_Address but applied to predefined primitive
18909 (Set_Signature): New subprogram used to store the signature of a DT.
18910 (Displace): If the Offset_To_Top value is not static then call the
18911 function generated by the expander to get such value; otherwise use
18912 the value stored in the table of interfaces.
18913 (Offset_To_Top): The type of the actual has been changed to Address to
18914 give the correct support to tagged types with discriminants. In this
18915 case this value is stored just immediately after the tag field.
18916 (Set_Offset_To_Top): Two new formals have been added to indicate if the
18917 offset_to_top value is static and hence pass this value to the run-time
18918 to store it in the table of interfaces, or else if this value is dynamic
18919 and then pass to the run-time the address of a function that is
18920 generated by the expander to provide this value for each object of the
18923 * rtsfind.ads (Default_Prin_Op_Count): Removed.
18924 (Default_Prim_Op_Count): New entity
18925 (Get_Predefined_Prim_Op_Address): New entity
18926 (Set_Predefined_Prim_Op_Address): New entity
18927 (RE_Set_Signature): New entity
18929 2006-02-13 Thomas Quinot <quinot@adacore.com>
18930 Ed Schonberg <schonberg@adacore.com>
18932 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
18933 Make_Adjust_Call done for a newly-allocated object.
18935 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
18936 in a subprogram are wrapped in a cleanup block, indicate that the
18937 subprogram contains an inner block with an exception handler.
18938 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
18939 Adjust call is for a newly-allocated object. In that case we must not
18940 assume that the finalization list chain pointers are correct (since they
18941 come from a bit-for-bit copy of the original object's pointers) so if
18942 the attach level would otherwise be zero (no change), we set it to 4
18943 instead to cause the pointers to be reset to null.
18945 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
18946 reset chain pointers to null.
18948 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18950 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
18951 string, and the context requires a loop for the assignment (e.g.
18952 because the left-hand side is packed), generate a unique name for the
18953 temporary that holds the string, to prevent spurious name clashes.
18955 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18956 Javier Miranda <miranda@adacore.com>
18957 Robert Dewar <dewar@adacore.com>
18958 Gary Dismukes <dismukes@adacore.com>
18960 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
18961 return unconstrained arrays.
18963 (Expand_Call): An indirect call through an access parameter of a
18964 protected operation is not a protected call.
18965 Add circuit to raise CE in Ada 2005 mode following call
18966 to Raise_Exception.
18967 (Register_DT_Entry): Do nothing if
18968 the run-time does not give support to abstract interfaces.
18969 (Freeze_Subprogram): In case of dispatching operations, do not generate
18970 code to register the operation in the dispatch table if the source
18971 is compiled with No_Dispatching_Calls.
18972 (Register_Predefined_DT_Entry): Generate code that calls the new
18973 run-time subprogram Set_Predefined_Prim_Op_Address instead of
18974 Set_Prim_Op_Address.
18976 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
18977 on array assignments if the right-hand side is a function call that has
18978 been inlined. Check is performed on the assignment in the block.
18979 (Process_Bounds): If bounds and range are overloaded, apply preference
18980 rule for root operations to disambiguate, and diagnose true ambiguity.
18981 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
18982 a tag-indeterminate right-hand side even when Expander_Active is True.
18983 Needed to ensure that dispatching calls to T'Input are allowed and
18984 get the tag of the target class-wide object.
18986 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
18987 an inherited primitive operation that already overrides several
18988 abstract interface primitives. For transitivity, the new entity must
18989 also override all the abstract interface primitives covered by the
18990 inherited overriden primitive.
18991 Emit warning if new entity differs from homograph in same scope only in
18992 that one has an access parameter and the other one has a parameter of
18993 a general access type with the same designated type, at the same
18994 position in the signature.
18995 (Make_Inequality_Operator): Use source locations of parameters and
18996 subtype marks from corresponding equality operator when creating the
18997 tree structure for the implicit declaration of "/=". This does not
18998 change anything in behaviour except that the decoration of the
18999 components of the subtree created for "/=" allows ASIS to get the
19000 string images of the corresponding identifiers.
19001 (Analyze_Return_Statement): Remove '!' in warning message.
19002 (Check_Statement_Sequence): Likewise.
19003 (Analyze_Subprogram_Body): For an access parameter whose designated type
19004 is an incomplete type imported through a limited_with clause, use the
19005 type of the corresponding formal in the body.
19006 (Check_Returns): Implicit return in No_Return procedure now raises
19007 Program_Error with a compile time warning, instead of beging illegal.
19008 (Has_Single_Return): Function returning unconstrained type cannot be
19009 inlined if expression in unique return statement is not an identifier.
19010 (Build_Body_To_Inline): It is possible to inline a function call that
19011 returns an unconstrained type if all return statements in the function
19012 return the same local variable. Subsidiary procedure Has_Single_Return
19013 verifies that the body conforms to this restriction.
19015 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
19016 same type, and one of them is of an anonymous access type, convert
19017 the other operand to it, so that this is a valid binary operation for
19019 (Resolve_Type_Conversion): Handle subtypes of protected types and
19020 task types when accessing to the corresponding record type.
19021 (Resolve_Allocator): Add '\' in 2-line warning message.
19022 Remove '!' in warning message.
19023 (Resolve_Call): Add '\' in 2-line warning message.
19024 (Valid_Conversion): Likewise.
19025 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
19026 resulting type may be an access type with an implicit dereference.
19027 Obtain the proper component from the designated type.
19028 (Make_Call_Into_Operator): Handle properly a call to predefined equality
19029 given by an expanded name with prefix Standard, when the operands are
19030 of an anonymous access type.
19031 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
19032 Explicit_Dereference and Resolve_Selected_Component, to verify that the
19033 prefix of the expression is not of an incomplete type. Allows full
19034 diagnoses of all semantic errors.
19035 (Resolve_Actuals): If the actual is an allocator whose directly
19036 designated type is a class-wide interface we build an anonymous
19037 access type to use it as the type of the allocator. Later, when
19038 the subprogram call is expanded, if the interface has a secondary
19039 dispatch table the expander will add a type conversion to force
19040 the displacement of the pointer.
19041 (Resolve_Call): If a function that returns an unconstrained type is
19042 marked Inlined_Always and inlined, the call will be inlined and does
19043 not require the creation of a transient scope.
19044 (Check_Direct_Boolean_Op): Removed
19045 (Resolve_Comparison_Op): Remove call to above
19046 (Resolve_Equality_Op): Remove call to above
19047 (Resolve_Logical_Op): Inline above, since this is only call.
19048 (Valid_Conversion): Handle properly conversions between arrays of
19049 convertible anonymous access types.
19052 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
19053 the literal in an unchecked conversion, because GCC 4.x needs a static
19054 value for a string bound.
19056 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19057 Hristian Kirtchev <kirtchev@adacore.com>
19059 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
19060 components of the corresponding record, take into account component
19061 definitions that are access definitions.
19062 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
19063 procedure is not considered a dispatching call and will be expanded
19066 2006-02-13 Javier Miranda <miranda@adacore.com>
19068 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
19069 controlling argument of the dispatching call is an abstract interface
19070 class-wide type then we use it directly.
19071 Check No_Dispatching_Calls restriction.
19072 (Default_Prim_Op_Position): Remove the code that looks for the last
19073 entity in the list of aliased subprograms. This code was wrong in
19075 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
19076 when the source is compiled with the No_Dispatching_Calls restriction.
19077 (Init_Predefined_Interface_Primitives): No need to inherit primitives
19078 if we are compiling with restriction No_Dispatching_Calls.
19079 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
19080 subprograms if we are compiling under No_Dispatching_Calls restriction.
19081 (Make_DT): Generate a dispatch table with a single dummy entry if
19082 we are compiling with the No_Dispatching_Calls restriction. In
19083 addition, in this case we don't generate code that calls to the
19084 following run-time subprograms: Set_Type_Kind, Inherit_DT.
19085 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
19086 of this subprogram if compiling with the No_Dispatching_Calls
19088 (Expand_Type_Conversion): Instead of using the actual parameter,
19089 the argument passed as parameter to the conversion function was
19090 erroneously referenced by the expander.
19091 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
19092 Set_Predefined_Primitive_Op_Address and Set_Signature.
19093 (Expand_Dispatching_Call): Generate call to
19094 Get_Predefined_Prim_Op_Address for predefined primitives.
19095 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
19096 predefined primitives.
19097 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
19098 primitives we reserve one dummy entry to ensure that the tag does not
19099 point to some memory that is associated with some other object. In
19100 addition, remove all the old code that generated the assignments
19101 associated with the signature of the dispatch table and replace them
19102 by a call to the new subprogram Set_Signature.
19103 (Set_All_DT_Position): Change the algorithm because now we have a
19104 separate dispatch table associated with predefined primitive operations.
19105 (Expand_Interface_Conversion): In case of non-static offset_to_top
19106 add explicit dereference to get access to the object after the call
19107 to displace the pointer to the object.
19108 (Expand_Interface_Thunk): Modify the generation of the actual used
19109 in the calls to the run-time function Offset_To_Top to fulfil its
19111 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
19113 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19115 * exp_dist.adb (Copy_Specification): For access parameters, copy
19116 Null_Exclusion flag, which will have been set for stream subprograms
19119 2006-02-13 Pascal Obry <obry@adacore.com>
19121 * expect.c (__gnat_expect_portable_execvp): New implementation. The
19122 previous implementation was using the C runtime spawnve routine but
19123 the corresponding wait was using directly the Win32 API. This was
19124 causing some times a lock when waiting for an event using
19125 WaitForSingleObject in __gnat_waitpid. This new implementation uses
19126 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
19127 API fixes this problem.
19129 2006-02-13 Robert Dewar <dewar@adacore.com>
19131 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
19134 2006-02-13 Thomas Quinot <quinot@adacore.com>
19136 * exp_pakd.ads: Fix typos in comments.
19138 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
19139 array reference that is an explicit dereference, mark the converted
19140 (packed) array reference as analyzed to prevent a forthcoming
19141 reanalysis from resetting its type to the original (non-packed) array
19144 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19145 Javier Miranda <miranda@adacore.com>
19146 Eric Botcazou <ebotcazou@adacore.com>
19148 * exp_util.ads, exp_util.adb (Find_Prim_Op,
19149 Is_Predefined_Primitive_Operation): When
19150 searching for the predefined equality operator, verify that operands
19151 have the same type.
19152 (Is_Predefined_Dispatching_Operation): Remove the code that looks
19153 for the last entity in the list of aliased subprograms. This code
19154 was wrong in case of renamings.
19155 (Set_Renamed_Subprogram): New procedure
19156 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
19157 Exp_Type constant computed when entering this subprogram.
19158 (Known_Null): New function
19159 (OK_To_Do_Constant_Replacement): New function
19160 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
19161 (Side_Effect_Free): An attribute reference 'Input is not free of
19162 side effect, unlike other attributes that are functions. (from code
19164 (Remove_Side_Effects): Expressions that involve packed arrays or records
19165 are copied at the point of reference, and therefore must be marked as
19166 renamings of objects.
19167 (Is_Predefined_Dispatching_Operation): Return false if the operation is
19168 not a dispatching operation.
19171 (Remove_Side_Effects): Lift enclosing type conversion nodes for
19172 elementary types in all cases.
19174 2006-02-13 Javier Miranda <miranda@adacore.com>
19176 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
19177 task types when accessing to the corresponding record type.
19178 Remove '!' in warning message.
19180 2006-02-13 Olivier Hainque <hainque@adacore.com>
19182 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
19183 to avoid useless and space inefficient overalignments on targets where
19184 Max_Alignment is larger than 16.
19186 2006-02-13 Pascal Obry <obry@adacore.com>
19188 * g-catiio.adb (Sec_Number): New type used to compute the number of
19189 seconds since 1-1-1970.
19190 (Image) [Natural]: The parameter was an Integer, as we can't deal with
19191 negative numbers (years, months...) it is better to have a Natural here.
19193 (Image) [Number]: Change parameter from Long_Integer to Number.
19194 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
19195 overflow for dates past year 2038.
19197 2006-02-13 Matthew Heaney <heaney@adacore.com>
19199 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
19202 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19204 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
19206 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
19207 finalization can occur normally.
19209 2006-02-13 Vincent Celier <celier@adacore.com>
19211 * gnatcmd.adb (Rules_Switches): New table
19212 (Add_To_Rules_Switches): New procedure
19213 (GNATCmd): For command CHECK, put all options following "-rules" in the
19214 Rules_Switches table. Append these -rules switches after the -cargs
19217 2006-02-13 Robert Dewar <dewar@adacore.com>
19219 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
19220 These two cases were generating incorrect output, and if this unit
19221 was built with checks on, generated a discriminant mismatch constraint
19224 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19225 Robert Dewar <dewar@adacore.com>
19227 * lib-xref.adb (Get_Type_Reference): For a private type whose full
19228 view is an array type, indicate the component type as well, for
19229 navigation purposes.
19230 (Generate_Reference): Don't consider array ref on LHS to be a case
19231 of violating pragma Unreferenced.
19232 Do not give Ada 2005 warning except on real reference.
19234 2006-02-13 Vincent Celier <celier@adacore.com>
19236 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
19237 main source, add switch -mdebug-main=_ada_ so that the executable can
19238 be debugged by the standard VMS debugger.
19239 (Gnatmake): Set No_Main_Subprogram to True when there is no main
19240 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
19241 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
19242 of the last source, as the binding and linking phases are never
19244 Set all executable obsolete when rebuilding a library.
19246 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
19249 2006-02-13 Javier Miranda <miranda@adacore.com>
19252 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
19253 code to improve the error message reported when the program has
19254 declarations of abstract interface types and it is not compiled with
19255 the -gnat05 switch.
19256 (P_Access_Definition): Reorganize the code to improve the error
19257 message reported when the new Ada 2005 syntax for anonymous
19258 access types is used and the program is not compiled with the
19261 2006-02-13 Robert Dewar <dewar@adacore.com>
19263 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
19264 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
19267 2006-02-13 Javier Miranda <miranda@adacore.com>
19269 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
19270 against source containing syntax errors.
19272 2006-02-13 Vincent Celier <celier@adacore.com>
19274 * prj.adb (Reset): Initialize the first element of table Namings with
19275 the standard naming data.
19277 2006-02-13 Vincent Celier <celier@adacore.com>
19279 * prj.ads (Error_Warning): New enumeration type
19281 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
19282 unknown, use the location of the project to report the error.
19283 (When_No_Sources): New global variable
19284 (Report_No_Ada_Sources): New procedure
19285 (Check): New parameter When_No_Sources. Set value of global variable
19287 (Find_Sources): Call Report_No_Ada_Sources when appropriate
19288 (Get_Sources_From_File): Ditto
19289 (Warn_If_Not_Sources): Better warning messages indicating the unit name
19292 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
19293 Call Prj.Proc.Process with parameter When_No_Sources.
19295 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
19296 Call Recursive_Check with parameter When_No_Sources.
19297 (Recursive_Check): New parameter When_No_Sources. Call itself and
19298 Prj.Nmsc.Check with parameter When_No_Sources.
19299 (Process): New parameter When_No_Sources. Call Check with parameter
19301 (Copy_Package_Declarations): New procedure to copy renamed parameters
19302 and setting the location of the declared attributes to the location
19303 of the renamed package.
19304 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
19307 2006-02-13 Vincent Celier <celier@adacore.com>
19309 * prj-makr.adb (Make): Preserve the comments from the original project
19311 When removing nodes (attributes Source_Dirs, Source_Files,
19312 Source_List_File and package Naming), save the comments and attach the
19313 saved comments to the newly created nodes.
19314 Do not add a with clause for the naming package if one already exists.
19316 2006-02-13 Javier Miranda <miranda@adacore.com>
19317 Gary Dismukes <dismukes@adacore.com>
19318 Robert Dewar <dewar@adacore.com>
19320 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
19322 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
19323 aliased entities to look for the overriden abstract interface
19325 (Is_Interface_Subprogram): Complete documentation.
19326 (Check_Dispatching_Operation): Do not generate code to register the
19327 operation in the dispatch table if the source is compiled with
19328 restriction No_Dispatching_Calls.
19329 (Override_Dispatching_Operation): Check for illegal attempt to override
19330 No_Return procedure with procedure that is not No_Return
19331 (Check_Dispatching_Call): Suppress the check for an abstract operation
19332 when the original node of an actual is a tag-indeterminate attribute
19333 call, since the attribute, which must be 'Input, can never be abstract.
19334 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
19335 call to the Input attribute (even when rewritten).
19336 (Propagate_Tag): Augment comment to indicate the possibility of a call
19337 to an Input attribute.
19339 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
19340 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
19342 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
19343 No_Wide_Characters is no longer partition-wide
19344 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
19347 2006-02-13 Douglas Rupp <rupp@adacore.com>
19349 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
19351 2006-02-13 Javier Miranda <miranda@adacore.com>
19353 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
19354 handles default-initialized components to keep separate the management
19355 of this feature but also avoid the unrequired resolution and
19356 expansion of components that do not have partially initialized
19358 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
19359 (Check_Bounds): Likewise.
19360 (Check_Length): Likewise.
19362 2006-02-13 Javier Miranda <miranda@adacore.com>
19363 Ed Schonberg <schonberg@adacore.com>
19365 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
19366 abstract interface type call analyze_and_resolve to expand the type
19367 conversion into the corresponding displacement of the
19368 reference to the base of the object.
19369 (Eval_Attribute, case Width): For systems where IEEE extended precision
19370 is supported, the maximum exponent occupies 4 decimal digits.
19371 (Accessibility_Message): Add '\' in 2-line warning message.
19372 (Resolve_Attribute): Likewise.
19373 (case Attribute_Access): Significantly revise checks
19374 for illegal access-to-subprogram Access attributes to properly enforce
19375 the rules of 3.10.2(32/2).
19376 Diagnose use of current instance with an illegal attribute.
19378 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
19380 (Enclosing_Generic_Unit): New function to return a node's innermost
19381 enclosing generic declaration node.
19382 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
19383 (Type_Access_Level): The accessibility level of anonymous acccess types
19384 associated with discriminants is that of the current instance of the
19385 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
19386 (Compile_Time_Constraint_Error): Handle case of conditional expression.
19387 (Kill_Current_Values_For_Entity): New function
19388 (Enter_Name): Change formal type to Entity_Id
19390 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19391 Ed Schonberg <schonberg@adacore.com>
19392 Gary Dismukes <dismukes@adacore.com>
19394 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
19395 Analyze_Compilation_Unit.
19396 Detect and warn on redundant with clauses detected in a package spec
19397 and/or body when -gnatwr is used.
19398 (Analyze_Context): Analyze config pragmas before other items
19399 (Install_Context_Items): Don't analyze config pragmas here
19400 (Install_Limited_Withed_Unit): Set limited entity of package in
19401 with_clause so that cross-reference information or warning messages on
19402 unused packages can be properly generated
19403 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
19404 has Error_Posted set. Prevent infinite loops in illegal programs.
19405 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
19406 to the point of the error test requiring the current unit to be private.
19407 This ensures that private with clauses are not exempted from the basic
19408 checking for being a descendant of the same library unit parent as a
19409 withed private descendant unit.
19410 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
19411 handle private with clauses properly, as well as to account for cases
19412 where the withed unit is a public descendant of a private ancestor
19413 (in which case the current unit must be a descendant of the private
19414 ancestor's parent). The spec comments were updated accordingly. Also,
19415 the old error message in this subprogram was replaced with error
19416 messages that mirror the errors tested and reported by
19417 Check_Private_Child_Unit.
19418 Parameter and variable names improved for readability.
19419 (Install_Limited_Context_Clauses): Remove test for a withed unit being
19420 private as the precondition for calling
19421 Check_Private_Limited_Withed_Unit since that subprogram has been
19422 revised to test public units as well as private units.
19424 2006-02-13 Thomas Quinot <quinot@adacore.com>
19425 Robert Dewar <dewar@adacore.com>
19426 Ed Schonberg <schonberg@adacore.com>
19427 Javier Miranda <miranda@adacore.com>
19429 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
19430 that Scope_Stack.First = 1.
19431 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19432 were not always properly handled previously.
19433 (Formal_Entity): Complete rewrite, to handle properly some complex case
19434 with multiple levels of parametrization by formal packages.
19435 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
19436 to the corresponding derived type declaration for proper semantics.
19438 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
19439 (Check_Component): Enforce restriction on components of
19440 unchecked_unions: a component in a variant cannot contain tasks or
19442 (Unchecked_Union): Allow nested variants and multiple discriminants, to
19444 Add pragma Ada_2005 (synonym for Ada_05)
19445 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19446 were not always properly handled previously.
19447 Document that pragma Propagate_Exceptions has no effect
19448 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
19449 (Set_Convention_From_Pragma): Check that if a convention is
19450 specified for a dispatching operation, then it must be
19451 consistent with the existing convention for the operation.
19452 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
19453 longer required to specify an vtable-ptr component in the record. For
19454 compatibility reasons we leave the support for the previous definition.
19455 (Analyze_Pragma, case No_Return): Allow multiple arguments
19457 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
19458 non-overrideen inherited operation with a controlling result as
19459 illegal only its implicit declaration comes from the derived type
19460 declaration of its result's type.
19461 (Check_Possible_Deferred_Completion): Relocate the object definition
19462 node of the subtype indication of a deferred constant completion rather
19463 than directly analyzing it. The analysis of the generated subtype will
19464 correctly decorate the GNAT tree.
19465 (Record_Type_Declaration): Check whether this is a declaration for a
19466 limited derived record before analyzing components.
19467 (Analyze_Component_Declaration): Diagnose record types not explicitly
19468 declared limited when a component has a limited type.
19469 (Build_Derived_Record_Type): Code reorganization to check if some of
19470 the inherited subprograms of a tagged type cover interface primitives.
19471 This check was missing in case of a full-type associated with a private
19473 (Constant_Redeclaration): Check that the subtypes of the partial and the
19474 full view of a constrained deferred constant statically match.
19475 (Mentions_T): A reference to the current type in an anonymous access
19476 component declaration must be an entity name.
19477 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
19478 class_wide type to refer to full type, not to the incomplete one.
19479 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
19480 available. Required to give support to the certified run-time.
19481 (Analyze_Component_Declaration): In case of anonymous access components
19482 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
19483 (Process_Discriminants): For an access discriminant, use the
19484 discriminant specification as the associated_node_for_itype, to
19485 simplify accessibility checks.
19487 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19488 Javier Miranda <miranda@adacore.com>
19490 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
19491 abstract interpretations on an operator, remove interpretations that
19492 yield Address or a type derived from it, if one of the operands is an
19494 (Try_Object_Operation.Try_Primitive_Operation,
19495 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
19496 location when creating the new reference to a primitive or class-wide
19497 operation as a part of rewriting a subprogram call.
19498 (Try_Primitive_Operations): If context requires a function, collect all
19499 interpretations after the first match, because there may be primitive
19500 operations of the same type with the same profile and different return
19501 types. From code reading.
19502 (Try_Primitive_Operation): Use the node kind to choose the proper
19503 operation when a function and a procedure have the same parameter
19505 (Complete_Object_Operation): If formal is an access parameter and prefix
19506 is an object, rewrite as an Access reference, to match signature of
19507 primitive operation.
19508 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
19509 by an expanded name with prefix Standard, when the operands are of an
19510 anonymous access type.
19511 (Remove_Abstract_Operations): If the operation is abstract because it is
19512 inherited by a user-defined type derived from Address, remove it as
19513 well from the set of candidate interpretations of an overloaded node.
19514 (Analyze_Membership_Op): Membership test not applicable to cpp-class
19517 2006-02-13 Bob Duff <duff@adacore.com>
19519 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
19520 redundant use clauses.
19521 In particular, if the scope of two use clauses overlaps, but one is not
19522 entirely included in the other, we should not warn. This can happen
19523 with nested packages.
19524 (Analyze_Subprogram_Renaming): Protect the compiler against previously
19525 reported errors. The bug was reported when the compiler was built
19526 with assertions enabled.
19527 (Find_Type): If the node is a 'Class reference and the prefix is a
19528 synchronized type without a corresponding record, return the type
19531 2006-02-13 Javier Miranda <miranda@adacore.com>
19533 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
19534 if this is the full-declaration associated with a private declaration
19535 that implement interfaces, then the private type declaration must be
19537 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
19538 as aliased. The use of the 'access attribute is not available for such
19539 object (for this purpose the object should be explicitly marked as
19540 aliased, but being an anonymous type this is not possible).
19542 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19543 Robert Dewar <dewar@adacore.com>
19545 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
19546 compilation unit is an elaboration scope.
19547 (Add_Task_Proc): Add '\' in 2-line warning message.
19548 (Activate_All_Desirable): Deal with case of unit with'ed by parent
19550 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19551 Javier Miranda <miranda@adacore.com>
19553 * sem_type.adb (Write_Overloads): Improve display of candidate
19555 (Add_One_Interp): Do not add to the list of interpretations aliased
19556 entities corresponding with an abstract interface type that is an
19557 immediate ancestor of a tagged type; otherwise we have a dummy
19558 conflict between this entity and the aliased entity.
19559 (Disambiguate): The predefined equality on universal_access is not
19560 usable if there is a user-defined equality with the proper signature,
19561 declared in the same declarative part as the designated type.
19562 (Find_Unique_Type): The universal_access equality operator defined under
19563 AI-230 does not cover pool specific access types.
19564 (Covers): If one of the types is a generic actual subtype, check whether
19565 it matches the partial view of the other type.
19567 2006-02-13 Thomas Quinot <quinot@adacore.com>
19569 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
19570 line. This is necessary to allow In_Extended_Main_Unit to provide
19571 correct results for itypes while writing out expanded source.
19572 (Close_File): No need to update the source_index_table here since it's
19573 now done for each line.
19575 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19576 Robert Dewar <dewar@adacore.com>
19578 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
19579 preserve the source unit where the itype is declared, and prevent a
19581 (Note_Implicit_Run_Time_Call): New procedure
19582 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
19585 * sprint.ads: Document use of $ for implicit run time routine call
19587 2006-02-13 Quentin Ochem <ochem@adacore.com>
19589 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
19592 2006-02-13 Bob Duff <duff@adacore.com>
19594 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
19595 Scan_Unsigned, so we do not scan leading blanks and sign twice.
19596 Integer'Value("- 5") and Integer'Value("-+5") now correctly
19597 raise Constraint_Error.
19599 * s-vallli.adb (Scan_Long_Long_Integer): Call
19600 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
19601 do not scan leading blanks and sign twice.
19602 Integer'Value("- 5") and Integer'Value("-+5") now correctly
19603 raise Constraint_Error.
19605 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
19606 Scan_Long_Long_Unsigned): Split out most of the processing from
19607 Scan_Long_Long_Unsigned out into
19608 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
19609 This prevents scanning leading blanks and sign twice.
19610 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
19613 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
19614 out most of the processing from Scan_Unsigned out into
19615 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
19616 This prevents scanning leading blanks and sign twice.
19618 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
19619 use with Modular'Value attribute.
19620 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
19623 2006-02-13 Robert Dewar <dewar@adacore.com>
19625 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
19627 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19629 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
19630 (PPC VxWorks): Likewise.
19631 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
19632 (forced_callee): Make non-inlinable and non-pure.
19633 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
19635 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19636 Ben Brosgol <brosgol@adacore.com>
19637 Robert Dewar <dewar@adacore.com>
19639 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
19641 Document that gnatbind -M option is for cross environments only.
19642 Added description of using gnatmem to trace gnat rtl allocs and deallocs
19643 Add note on use of $ to label implicit run time calls
19644 Add documentation for -gnatyI (check mode IN)
19645 Updated chapter on compatibility with HP Ada
19646 VMS-oriented edits.
19647 Ran spell and corrected errors
19648 Add documentation for gnatbind -d and rework documentation of -D
19650 Add subprogram/data elimination section.
19651 Minor editing of annex A.
19652 Add section for gnatcheck.
19653 Add documentation for restriction No_Dispatching_Calls
19654 Add documentation for pragma Ada_2005
19655 Remove mention of obsolete pragma Propagate_Exceptions
19656 Document that pragma Unreferenced can appear after DO in ACCEPT
19657 Clarify Pure_Function for library level units
19658 Mention Max/Min in connection with No_Implicit_Conditionals
19659 No_Wide_Characters restriction is no longer partition-wide
19660 Add a nice example for Universal_Literal_String attribute
19661 Document that pragma No_Return can take multiple arguments
19663 * ug_words: Added entry for gnatcheck
19665 * g-ctrl_c.ads (Install_Handler): Enhance comments
19667 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
19669 * g-trasym.ads: Add documentation on how to do off line symbolic
19670 traceback computation.
19672 * s-fatgen.adb: Add comments for Unaligned_Valid
19674 * stand.ads: Fix typo in comment
19676 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19678 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
19680 2006-02-06 Roger Sayle <roger@eyesopen.com>
19682 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
19684 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19687 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
19688 implementation that calls __main.
19690 2006-01-25 Peter O'Gorman <peter@pogma.com>
19693 * Makefile.in (GCC_LINK): Remove quotes.
19694 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
19697 (powerpc-darwin): Pass -shared-libgcc when building shared library.
19699 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19702 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
19704 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19706 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
19708 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19710 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
19713 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19715 * Make-lang.in: Update dependencies
19717 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19719 * Make-lang.in: Add rule for ada/exp_sel.o
19721 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19723 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
19725 2005-12-09 Arnaud Charlet <charlet@adacore.com>
19727 * gnatvsn.ads (Library_Version): Bump to version 4.2
19728 (ASIS_Version_Number): Bumped.
19730 2005-12-09 Doug Rupp <rupp@adacore.com>
19732 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
19733 Ada bind file prefix on VMS from b$ to b__.
19734 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
19737 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
19738 Targparm.OpenVMS_On_Target.
19739 (Object_Suffix): Initialize with target object suffix.
19740 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
19742 * butil.adb: Change some Hostparm.OpenVMS checks to
19743 Targparm.OpenVMS_On_Target.
19745 * clean.adb: Change some Hostparm.OpenVMS checks to
19746 Targparm.OpenVMS_On_Target.
19747 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
19748 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
19749 Ada bind file prefix on VMS from b$ to b__.
19751 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
19752 --GCC so that Get_Target_Parameters can find system.ads.
19753 (Gnatlink): Call Get_Target_Parameters in mainline.
19754 Initialize standard packages for Targparm.
19755 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19756 (Process_Args): Also Check for object files with target object
19758 (Make_Binder_File_Names): Create with target object extension.
19759 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
19762 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
19763 Targparm.OpenVMS_On_Target.
19764 ({declaration},Build_Library,Check_Library): Change Ada bind file
19765 prefix on VMS from b$ to b__.
19767 * osint-b.adb: Change some Hostparm.OpenVMS checks to
19768 Targparm.OpenVMS_On_Target.
19769 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
19772 * targext.c: New file.
19774 * Makefile.in: add support for vxworks653 builds
19775 (../../vxaddr2line): gnatlink with targext.o.
19776 (TOOLS_LIBS): Move targext.o to precede libgnat.
19777 (init.o, initialize.o): Minor clean up in dependencies.
19778 (GNATLINK_OBJS): Add targparm.o, snames.o
19779 Add rules fo building targext.o and linking it explicitly with all
19781 Also add targext.o to gnatlib.
19783 * Make-lang.in: Add rules for building targext.o and linking it in
19784 with gnat1 and gnatbind.
19785 Add entry for exp_sel.o.
19787 * osint.adb Change some Hostparm.OpenVMS checks to
19788 Targparm.OpenVMS_On_Target.
19789 (Object_File_Name): Use target object suffix.
19791 * osint.ads (Object_Suffix): Remove, no longer used.
19792 (Target_Object_Suffix): Initialize with target object suffix.
19794 * rident.ads: Add special exception to license.
19796 * targparm.adb (Get_Target_Parameters): Set the value of
19797 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
19799 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
19801 * targparm.ads: Add special exception to license.
19803 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
19805 (Copy_File): Make sure from file is closed if error on to file
19806 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
19808 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
19809 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
19811 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
19812 target object suffix.
19814 2005-12-09 Jose Ruiz <ruiz@adacore.com>
19815 Quentin Ochem <ochem@adacore.com>
19816 Florian Villoing <villoing@adacore.com>
19818 * a-taster.ads, a-taster.adb: New files.
19820 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
19821 link to the version that does nothing. This way the task termination
19822 routine is not executed twice for the environment task when finishing
19823 because of an unhandled exception.
19825 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
19826 handler because of an unhandled exception.
19828 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
19829 System.Tasking.Utilities instead of that in System.Tasking.Stages.
19831 * s-finimp.adb (initialization code): Modify the soft link for the
19832 finalization of the global list instead of Adafinal.
19834 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
19835 non-tasking version of the soft link for task termination. We do
19836 nothing since if we are using the non-tasking version it
19837 means that the task termination functionality is not used.
19838 (Null_Finalize_Global_List): Add this null version for the procedure
19839 in charge of finalizing the global list for controlled objects.
19840 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
19841 instead for handling run-time termination in a more flexible way.
19842 (Adafinal_NT): This new procedure will take care of finalizing the
19843 global list for controlled objects if needed, but no tasking
19846 * s-tarest.adb (Task_Lock): Do not try to lock again the
19847 Global_Task_Lock if we already own it. Otherwise, we get blocked in
19848 some run-time operations.
19849 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
19850 until all nested locks have been released.
19851 (Task_Wrapper): Call the fall-back task termination handler. It
19852 applies to all tasks but the environment task.
19853 (Finalize_Global_Tasks): Add the call for the task termination
19854 procedure for the environment task.
19855 (Task_Wrapper): suppress warnings around declaration of
19856 Secondary_Stack_Address.
19858 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
19859 moved to the Common_ATCB record.
19860 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
19861 Common_ATCB record.
19862 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
19863 Common_ATCB record.
19865 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
19866 Fall_Back_Handler, and Specific_Handler.
19868 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
19869 defined in Ada.Task_Termination, to avoid circular dependencies.
19870 (Termination_Handler): Redefine this type here, alredy defined in
19871 Ada.Task_Termination, for avoiding circular dependencies.
19872 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
19873 for storing task termination handlers. In addition,
19874 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
19875 Common_ATCB because it is used by both the regular and the restricted
19877 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
19878 Common_ATCB because it is used by both the regular and the restricted
19880 (Common_ATCB): Added a dynamic task analyzer field.
19882 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
19883 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
19884 (Task_Wrapper): Call the task termination handler. It applies to all
19885 tasks but the environment task.
19886 (Finalize_Global_Tasks): Call the task termination procedure for the
19887 environment task. The call to Finalize_Global_List is now performed
19888 using the soft links mechanism.
19889 (Task_Wrapper): added dynamic stack analysis.
19891 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
19892 potentially blocking operations has been moved from
19893 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
19894 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
19895 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
19896 this run-time check.
19898 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
19899 of task termination procedure.
19900 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
19901 link for the task termination procedure.
19903 * bindusg.adb: (Bindusg): Added documentation for -u option.
19905 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
19906 (Get_Main_C): Add handling of dynamic stack analysis.
19907 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
19909 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
19910 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
19911 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
19913 * opt.ads: Added flags used by dynamic stack measurement.
19914 (Max_Line_Length): Remove (not used anymore)
19916 * s-io.ads, s-io.adb (Standard_Error): new subprogram
19917 (Standart_Output): new subprogram
19918 (Set_Output): new subprogram
19919 (Put): now uses the value of Current_Out to know if the output has to be
19920 send to stderr or stdout.
19922 * s-stausa.ads: Complete implementation.
19924 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
19926 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
19927 list of Ada 05 files.
19928 (GNAT Library Units): Add AltiVec files.
19930 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
19931 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
19932 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
19934 2005-12-09 Nicolas Setton <setton@adacore.com>
19936 * adaint.c (__gnat_locate_regular_file): Return immediately if
19937 file_name is empty.
19939 2005-12-09 Javier Miranda <miranda@adacore.com>
19940 Hristian Kirtchev <kirtchev@adacore.com>
19942 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
19943 to the specification because the frontend generates code that uses this
19945 (Set_Interface_Table): Add missing assertion.
19946 Update documentation describing the run-time structure.
19947 (Displace): New subprogram that displaces the pointer to the object
19948 to reference one of its secondary dispatch tables.
19949 (IW_Membership): Modified to use the new table of interfaces.
19950 (Inherit_TSD): Modified to use the new table of interfaces.
19951 (Register_Interface_Tag): Use the additional formal to fill the
19952 contents of the new table of interfaces.
19953 (Set_Interface_Table): New subprogram that stores in the TSD the
19954 pointer to the table of interfaces.
19955 (Set_Offset_To_Top): Use the additional formal to save copy of
19956 the offset value in the table of interfaces.
19957 Update structure of GNAT Primary and Secondary dispatch table diagram.
19958 Add comment section on GNAT dispatch table prologue.
19959 (Offset_To_Signature): Update the constant value of the Signature field.
19960 (Dispatch_Table): Update comment on hidden fields in the prologue.
19961 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
19962 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
19963 the type of formal parameter T to Tag, introduce additional assertions.
19964 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
19966 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
19968 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
19969 in all the calls to Expand_Interface_Thunk. Instead of referencing the
19970 record component containing the tag of the secondary dispatch table we
19971 have to use the Offset_To_Top run-time function to get this information;
19972 otherwise if the pointer to the base of the object has been displace
19973 we get a wrong value if we use the 'position attribute.
19975 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
19976 all the calls to Expand_Interface_Thunk.
19977 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
19978 interfaces; hence the call to Set_Interface_Table was clearly wrong.
19979 (Collect_All_Interfaces): Modify the internal subprogram Collect to
19980 ensure that the interfaces implemented by the ancestors are placed
19981 at the header of the generated list.
19982 (Expand_Interface_Conversion): Handle the case in which the displacement
19983 associated with the interface conversion is not statically known. In
19984 this case we generate a call to the new run-time subprogram Displace.
19985 (Make_DT): Generate and fill the new table of interfaces.
19986 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
19987 Get_Tagged_Kind and Set_Tagged_Kind.
19988 (Tagged_Kind): New function that determines the tagged kind of a type
19989 with respect to limitedness and concurrency and returns a reference to
19991 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
19992 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
19993 primary dispatch table for a type.
19994 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
19995 secondary dispatch table respectively of a tagged type.
19997 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
19998 (Expand_Interface_Conversion): New subprogram to indicate if the
19999 displacement of the type conversion is statically known.
20000 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
20002 * rtsfind.ads (RE_Offset_To_Top): New entity
20003 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
20004 accessible to users.
20005 (Re_Displace): New entity
20006 (RE_Interface_Data): New entity
20007 (RE_Set_Interface_Data): New_Entity
20008 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
20009 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
20010 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
20011 RE_TK_Tagged, RE_TK_Task.
20013 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
20014 Init_Secondary_Tags_Internal to allow its use with interface types and
20015 also to generate the code for the new additional actual required
20016 by Set_Offset_To_Top.
20017 (Build_Init_Statements): In case of components associated with abstract
20018 interface types there is no need to generate a call to its IP.
20019 (Freeze_Record_Type): Generate Select Specific Data tables only for
20021 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
20022 the bodies and specifications of the predefined primitive operations
20023 dealing with dispatching selects and abort, 'Callable, 'Terminated only
20024 for concurrent types.
20026 * exp_sel.ads, exp_sel.adb: New files.
20028 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
20029 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
20030 properly protected objects and attach handler in the case of the
20031 restricted profile.
20032 Move embeded package Select_Expansion_Utilities into a separate external
20034 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
20035 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
20036 (Build_K, Build_S_Assignment): New subprograms, part of the select
20037 expansion utilities.
20038 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
20039 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
20040 where the trigger is a dispatching procedure of a limited tagged type.
20042 2005-12-09 Olivier Hainque <hainque@adacore.com>
20044 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
20045 pointer initialization values. Make a SAVE_EXPR instead. Add comments
20046 about the use and expansion of SAVE_EXPRs in the various possible
20047 renaming handling cases.
20048 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
20049 abusing DECL_FCONTEXT.
20051 2005-12-09 Matthew Heaney <heaney@adacore.com>
20053 * a-convec.adb (Merge): Added assertions to check whether vector params
20056 * a-coinve.adb (Merge): Added assertions to check whether vector params
20059 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
20061 (Cursor'Read): raises PE
20063 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
20064 to its default value.
20066 * a-cihama.adb: Manually check whether cursor's key and elem are
20069 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
20070 (Merge): Assert that target and source lists are in order
20071 (Swap): Declare non-const temporaries, to pass to Splice
20073 * a-cdlili.ads: (Splice): Changed param name and param mode
20075 * a-cdlili.adb: (Splice): Changed param name and param mode
20076 (Merge): Assert that target and source lists are in order
20077 (Swap): Declare non-const temporaries, to pass to Splice
20079 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
20080 (Write): declare Stream param as not null
20082 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
20083 an exception message.
20085 2005-12-09 Thomas Quinot <quinot@adacore.com>
20086 Robert Dewar <dewar@adacore.com>
20088 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
20089 which is the absolute maximum length we can support.
20091 * frontend.adb: For the processing of configuration pragma files,
20092 remove references to Opt.Max_Line_Length, which is not checked anymore.
20094 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
20097 * scn.adb, scng.adb:
20098 Always check line length against the absolute supported maximum,
20099 Hostparm.Max_Line_Length.
20101 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
20102 value for the maximum line length is Max_Line_Length (not
20103 Column_Number'Last).
20104 Minor error msg update
20105 (Set_Style_Check_Options): New interface returning error msg
20106 Minor code reorganization (processing for 'M' was out of alpha order)
20108 * switch-c.adb: New interface for Set_Style_Check_Options
20110 * stylesw.ads (Set_Style_Check_Options): New interface returning error
20113 2005-12-09 Javier Miranda <miranda@adacore.com>
20115 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
20116 with IP subprogram were only supported if there were limited types.
20118 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
20119 records with IP subprogram were only supported if there were limited
20122 2005-12-09 Olivier Hainque <hainque@adacore.com>
20123 Eric Botcazou <ebotcazou@adacore.com>
20125 * trans.c (tree_transform, emit_check): Adjust calls to
20126 build_call_raise, passing the now expected GNAT_NODE argument.
20128 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
20129 source line information than what the current global locus indicates
20132 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
20133 field has overflowed.
20134 (build_call_raise): Add a GNAT_NODE argument to convey better source
20135 line information than what the current global locus indicates when
20137 (build_component_ref): Adjust call to build_call_raise.
20139 2005-12-09 Pascal Obry <obry@adacore.com>
20141 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
20142 the iterator is quitting iteration on parent directory.
20144 2005-12-09 Javier Miranda <miranda@adacore.com>
20146 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
20147 and the assignment to a class-wide object, before the assignment we
20148 generate a run-time check to ensure that the tag of the Target is
20149 covered by the tag of the source.
20151 2005-12-09 Robert Dewar <dewar@adacore.com>
20153 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
20154 parameter in call to Image_Wide_Character.
20156 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
20157 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
20158 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
20159 annoying FFFE/FFFF inconsistency.
20161 2005-12-09 Robert Dewar <dewar@adacore.com>
20162 Javier Miranda <miranda@adacore.com>
20163 Ed Schonberg <schonberg@adacore.com>
20165 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
20166 of type conversion.
20167 (Find_Interface): New subprogram that given a tagged type and one of its
20168 component associated with the secondary table of an abstract interface
20169 type, return the entity associated with such abstract interface type.
20170 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
20171 base type to create anonymous subtype, because entity may be a locally
20172 declared subtype or generic actual.
20173 (Find_Interface): New subprogram that given a tagged type and one of its
20174 component associated with the secondary table of an abstract interface
20175 type, return the entity associated with such abstract interface type.
20177 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
20178 conversion cannot be handled at compile time. In this case we pass this
20179 information to the expander to generate the appropriate code.
20181 2005-12-09 Robert Dewar <dewar@adacore.com>
20182 Ed Schonberg <schonberg@adacore.com>
20183 Gary Dismukes <dismukes@adacore.com>
20184 Javier Miranda <miranda@adacore.com>
20185 Hristian Kirtchev <kirtchev@adacore.com>
20187 * einfo.adb (Itype_Printed): New flag
20188 (Is_Limited_Type): Derived types do not inherit limitedness from
20189 interface progenitors.
20190 (Is_Return_By_Reference_Type): Predicate does not apply to limited
20193 * einfo.ads (Itype_Printed): New flag
20194 Move Is_Wrapper_Package to proper section
20195 Add missing Inline for Is_Volatile
20197 * output.ads, output.adb (Write_Erase_Char): New procedure
20198 (Save/Restore_Output_Buffer): New procedures
20199 (Save/Restore_Output_Buffer): New procedures
20201 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
20202 Add missing support for anonymous access type
20203 (Write_Id): Insert calls to Write_Itype
20204 (Write_Itype): New procedure to output itypes
20206 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
20207 use of "limited" in declaration.
20209 * sinfo.ads, sinfo.adb:
20210 Formal derived types can carry an explicit "limited" indication.
20212 * sem_ch3.adb: Add with and use of Targparm.
20213 (Create_Component): If Frontend_Layout_On_Target is True and the
20214 copied component does not have a known static Esize, then reset
20215 the size and positional fields of the new component.
20216 (Analyze_Component_Declaration): A limited component is
20217 legal within a protected type that implements an interface.
20218 (Collect_Interfaces): Do not add to the list the interfaces that
20219 are implemented by the ancestors.
20220 (Derived_Type_Declaration): If the parent of the full-view is an
20221 interface perform a transformation of the tree to ensure that it has
20222 the same parent than the partial-view. This simplifies the job of the
20223 expander in order to generate the correct object layout, and it is
20224 needed because the list of interfaces of the full-view can be given in
20226 (Process_Full_View): The parent of the full-view does not need to be
20227 a descendant of the parent of the partial view if both parents are
20229 (Analyze_Private_Extension_Declaration): If declaration has an explicit
20230 "limited" the parent must be a limited type.
20231 (Build_Derived_Record_Type): A derived type that is explicitly limited
20232 must have limited ancestor and progenitors.
20233 (Build_Derived_Type): Ditto.
20234 (Process_Full_View): Verify that explicit uses of "limited" in partial
20235 and full declarations are consistent.
20236 (Find_Ancestor_Interface): Remove function.
20237 (Collect_Implemented_Interfaces): New procedure used to gather all
20238 implemented interfaces by a type.
20239 (Contain_Interface): New function used to check whether an interface is
20241 (Find_Hidden_Interface): New function used to determine whether two
20242 lists of interfaces constitute a set equality. If not, the first
20243 differing interface is returned.
20244 (Process_Full_View): Improve the check for the "no hidden interface"
20245 rule as defined by AI-396.
20247 2005-12-09 Robert Dewar <dewar@adacore.com>
20249 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
20250 types, not on record subtypes.
20251 (Freeze_Entity): Code cleanup. Add barrier to the loop
20252 that generates the references for primitive operations. This allows to
20253 remove an unnecessary exception handler.
20254 Code reformatting and comment clean ups.
20256 2005-12-09 Vincent Celier <celier@adacore.com>
20258 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
20259 If GNAT CHECK is called with a project file, but with no
20260 source on the command line, call gnatcheck with all the compilable
20261 sources of the project.
20262 Take into account the new command Check, for gnatcheck. Treat as for
20263 other ASIS tools: take into account project, specific package Check and
20265 For ASIS tools, add the switches in package Compiler for
20266 the invocation of the compiler.
20268 * prj-attr.adb: Add package Check and its attributes
20270 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
20272 * vms_conv.adb (Initialize): Change Params of command Check to
20274 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20275 Add data for new command Check
20277 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
20279 Add qualifiers for Check command options
20280 (Command_Type): New command Check
20282 2005-12-09 Thomas Quinot <quinot@adacore.com>
20284 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
20285 command line switch overruns the output buffer.
20287 2005-12-09 Robert Dewar <dewar@adacore.com>
20289 * sem_prag.adb: Processing for new pragma Complete_Representation
20290 (Analyze_Pragma, case Debug): Implement two argument form.
20292 * par-prag.adb: Entry for new pragma Complete_Representation
20293 (Prag, case Debug): Recognize two argument form of pragma Debug
20294 New interface for Set_Style_Check_Options.
20296 * sem_ch13.adb: Implement new pragma Complete_Representation.
20298 * snames.adb, snames.ads, snames.h: Entry for new pragma
20299 Complete_Representation.
20301 2005-12-09 Gary Dismukes <dismukes@adacore.com>
20303 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
20304 available user-specified stream attributes on limited parameters to
20305 also test the type directly rather than only its underlying type (for
20306 Ada 95) and, in the case of Ada 2005, to check that the user-specified
20307 attributes are visible at the point of the subprogram declaration.
20308 For Ada 2005, the error message is modified to indicate that the
20309 type's stream attributes must be visible (again, only for -gnat05).
20311 2005-12-09 Ed Schonberg <schonberg@adacore.com>
20313 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
20314 anonymous access types.
20316 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
20317 matching of anonymous access types and anonymous access to subprogram
20318 types. 'R'M 4.9.1 (2/2).
20320 2005-12-09 Ed Schonberg <schonberg@adacore.com>
20322 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
20323 rule prematurely when operands are universal, remaining ambiguities
20324 will be removed during resolution.
20327 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
20328 that are Ada 2005 functions.
20329 (Has_Abstract_Interpretation): Subsidiary to
20330 Remove_Conversions, to remove ambiguities caused by abstract operations
20331 on numeric types when operands are universal.
20333 2005-12-09 Robert Dewar <dewar@adacore.com>
20335 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
20336 for case where spec is categorized.
20338 2005-12-09 Javier Miranda <miranda@adacore.com>
20340 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
20341 types use the corresponding record type. This was not needed before
20342 the implementation of Ada 2005 synchronized types because
20343 concurrent types were never tagged types in Ada 95.
20345 2005-12-09 Ed Schonberg <schonberg@adacore.com>
20347 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
20348 first subtype of the type of the expression to verify that it is a
20351 2005-12-09 Robert Dewar <dewar@adacore.com>
20353 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
20356 2005-12-09 Quentin Ochem <ochem@adacore.com>
20357 Robert Dewar <dewar@adacore.com>
20358 Ed Falis <falis@adacore.com>
20359 Florian Villoing <villoing@adacore.com>
20360 Thomas Quinot <quinot@adacore.com>
20361 Arnaud Charlet <charlet@adacore.com>
20363 * gnat_ugn.texi: Created section "Stack Related Tools"
20364 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
20365 "Stack Related Tools"
20366 Added subsection "Static Stack Usage Analysis"
20367 Added subsection "Dynamic Stack Usage Analysis"
20368 Include documentation of itypes in sprint listing (-gnatG)
20369 Documented gnatbind -D switch (default sec stack size for fixed sec
20371 Added Interrupt_State and Persistent_BSS to list of configuration
20373 Add missing doc for maximum value of nnn in -gnatyMnnn
20375 * gnat_rm.texi: Document the AltiVec binding.
20376 Add documentation for pragma Complete_Representation
20377 Shortened an overly long line (> 79 chars)
20378 Clarify documentation of unchecked conversion in implementation
20380 Document two argument form of pragma Debug
20382 * types.ads (Column_Number): Update documentation.
20384 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
20385 library level Finalize_Storage_Only objects (these are not attached to
20386 any finalization list).
20388 * system-mingw.ads: (Underlying_Priorities): Update comment.
20390 2005-12-09 Robert Dewar <dewar@adacore.com>
20392 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
20393 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
20394 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
20395 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
20396 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
20397 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
20398 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
20399 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
20402 2005-12-09 Robert Dewar <dewar@adacore.com>
20404 * s-vaflop-vms-alpha.adb: (Ne_F): New function
20405 (Ne_G): New function
20407 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
20408 for tag assignment.
20409 (Rewrite_Comparison): Handle case where operation is not a comparison
20410 and ignore, and also handle type conversion case.
20412 2005-12-09 Thomas Quinot <quinot@adacore.com>
20414 * exp_aggr.ads: Fix typo in comment.
20415 ???-mark Convert_Aggr_In_Assignment as needing documentation.
20417 2005-12-09 Gary Dismukes <dismukes@adacore.com>
20419 * layout.adb: Replace various uses of byte by storage unit throughout.
20420 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
20421 static size, convert to storage units before returning, to conform to
20424 2005-12-09 Matthew Gingell <gingell@adacore.com>
20426 * g-exctra.ads: Fix typo in comment.
20428 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20430 * utils.c: Minor reformatting.
20432 2005-12-09 Robert Dewar <dewar@adacore.com>
20435 Further comment fixes to make the status of the default file clear
20437 * s-bitops.adb: Clarify comment for Bits_Array
20439 2005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
20441 * Make-lang.in (ada.install-normal): Remove.
20443 2005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
20445 * Make-lang.in: Remove all dependencies on s-gtype.
20447 2005-12-05 Richard Guenther <rguenther@suse.de>
20449 * utils.c (convert): Use fold_convert where appropriate.
20451 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
20453 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
20456 2005-12-02 Richard Guenther <rguenther@suse.de>
20458 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
20460 2005-12-01 Roger Sayle <roger@eyesopen.com>
20462 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
20465 2005-11-23 Laurent Guerby <laurent@guerby.net>
20467 * mlib-prj.adb (Build_Library): Initialize Delete.
20469 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
20471 * socket.c: Add extern int h_errno for rtems since networking header
20472 files are not available at this point in a tool bootstrap. Newlib
20473 only has basic C library header files.
20475 2005-11-19 Richard Guenther <rguenther@suse.de>
20476 Roger Sayle <roger@eyesopen.com>
20479 * misc.c (internal_error_function): Don't use vsprintf to format
20480 the error message text, instead use pp_format_text and the new
20481 pretty printer APIs. This allows handling of %qs, %w, etc.
20483 2005-11-18 Laurent Guerby <laurent@guerby.net>
20486 * Makefile.in: Use s-auxdec-empty for RTEMS.
20488 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20491 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
20492 a temporary if taking the address of something that is neither
20493 reference, declaration, or constant, since the gimplifier
20494 can't handle that case.
20496 2005-11-17 Laurent Guerby <laurent@guerby.net>
20499 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
20501 2005-11-16 Richard Guenther <rguenther@suse.de>
20503 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
20505 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
20508 * raise-gcc.c: Add missing stdarg.h include.
20510 2005-11-16 Richard Guenther <rguenther@suse.de>
20512 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
20513 (ada/misc.o): Likewise.
20515 2005-11-14 Thomas Quinot <quinot@adacore.com>
20517 * g-soccon.ads: Minor reformatting. Update comments.
20519 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
20520 gain visibility on the declaration of struct timeval.
20522 * g-soccon-freebsd.ads,
20523 g-soccon-darwin.ads,
20524 g-soccon-tru64.ads,
20528 g-soccon-solaris.ads,
20530 g-soccon-mingw.ads,
20531 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
20533 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
20534 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
20535 g-soccon-linux-x86.ads: New files.
20537 * g-socthi-mingw.adb:
20538 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
20540 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
20541 (time_t, suseconds_t): New types constructed to match the tv_sec
20542 and tv_usec fields of C struct timeval.
20543 (Timeval): Construct structure in terms of the new types.
20544 (Host_Errno): New function (imported from socket.c), returns last hosts
20547 * g-socthi-vxworks.adb: Add error handling circuitry.
20549 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
20550 components of struct timeval.
20551 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
20552 (Check_Selector): In error conditions, clear internal socket sets to
20553 avoid a memory leak.
20554 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
20555 Send_Timeout, Receive_Timeout.
20557 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
20558 the tv_sec and tv_usec fields of C struct timeval.
20559 (Timeval): Construct structure in terms of the new types.
20560 (Host_Errno): New function (imported from socket.c), returns last hosts
20563 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
20564 hosts database last error code.
20566 * gen-soccon.c: Complete value expansion should not be performed on
20567 TARGET, as it has the form of a math expression, and some components
20568 may be platform-defined macros.
20569 For VxWorks, generate the OK and ERROR values.
20570 New constants giving the sizes of the components of C struct timeval.
20572 2005-11-14 Robert Dewar <dewar@adacore.com>
20573 Ed Schonberg <schonberg@adacore.com>
20576 * types.ads: Include All_Checks in Suppress_Array
20578 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
20579 not(a=b), since we no longer do this rewriting, and hence it is not
20581 (Elaboration_Checks_Suppressed): Add special casing to
20582 deal with different cases of static and dynamic elaboration checks (all
20583 checks does not count in the first case, but does in the second).
20584 (Expr_Known_Valid): Do not assume that the result of any arbitrary
20585 function call is valid, since this is not the case.
20586 (Ensure_Valid): Do not apply validity check to a real literal
20587 in a universal or fixed context
20589 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
20590 elementary types using the operator in standard. It is cleaner not to
20591 modify the programmers intent, especially in the case of floating-point.
20592 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
20593 it did not matter because we always rewrote a/=b to not(a=b).
20594 (Expand_Allocator_Expression): For an allocator expression whose nominal
20595 subtype is an unconstrained packed type, convert the expression to its
20596 actual constrained subtype.
20597 Implement warning for <= or >= where < or > not possible
20598 Fix to Vax_Float tests (too early in many routines, causing premature
20599 Vax_Float expansions.
20601 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
20602 to be used with packages and generic packages as well as with
20604 (Suppress): Set All_Checks, but not Elaboration_Check, for case
20605 of pragma Suppress (All_Checks)
20606 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
20607 a string literal for precise control over warnings.
20608 Avoid raise of pragma in case of unrecognized pragma and just return
20611 * sem_prag.ads: Minor reformatting
20613 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
20614 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
20615 Switch. Do not handle any exception.
20616 Include -gnatwx as part of -gnatg (warn on redundant parens)
20617 Allow optional = after -gnatm
20618 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
20619 longer sets Elaboration_Checks.
20620 Code to set warning mode moved to Sem_Warn
20621 so that it can be shared by pragma processing.
20623 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
20626 * s-taprop-solaris.adb:
20627 Change some <= to =, to avoid new warning
20629 * a-exexda.adb, prj-proc.adb:
20630 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
20631 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
20633 2005-11-14 Robert Dewar <dewar@adacore.com>
20635 * exp_vfpt.adb: Handle /= case
20636 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
20637 so that we do not get duplicate scaling for fixed point conversions.
20639 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
20641 2005-11-14 Matthew Gingell <gingell@adacore.com>
20643 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
20644 Increase default priority on Lynx from 15 to 17, and meet the Ada
20645 requirement that Default_Priority be ((Priority'First +
20646 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
20648 2005-11-14 Vincent Celier <celier@adacore.com>
20650 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20651 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
20652 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
20653 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
20654 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
20655 mlib-tgt-lynxos.adb (DLL_Prefix): New function
20657 2005-11-14 Doug Rupp <rupp@adacore.com>
20659 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
20662 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20664 * s-traces-default.adb, s-trafor-default.ads,
20665 s-tratas-default.adb: Fix compilation errors.
20667 2005-11-14 Jose Ruiz <ruiz@adacore.com>
20669 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
20670 raising the exception so the memory used is freed.
20672 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20674 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
20675 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
20676 (convert_address): Update comments and list of platforms using this.
20678 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
20681 2005-11-14 Pascal Obry <obry@adacore.com>
20682 Vincent Celier <celier@adacore.com>
20684 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
20687 * memroot.adb: Remove redundant with/use clause on
20688 System.Storage_Elements.
20690 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20692 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
20693 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
20694 related code to a-exexpr.adb
20695 (Save_Occurrence_And_Private): Move GCC EH related code to
20697 (Raise_Current_Excep): Add new variable Id with pragma
20698 volatile, to ensure that the variable lives on stack.
20700 * a-exexpr-gcc.adb, raise-gcc.c: New file.
20702 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
20704 Move GCC EH related code to a-exexpr-gcc.adb
20706 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
20708 Split the Linux version of g-soccon into separate variants for 32 and 64
20710 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
20711 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
20712 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
20713 of host variable $(RANLIB_FLAGS).
20714 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
20715 Code clean up: remove unused/obsolete targets.
20716 (EH_MECHANISM): New variable introduced to differenciate between the
20717 two EH mechanisms statically.
20718 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
20719 (LIBGNAT_OBJS): Add raise-gcc.o
20720 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
20721 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
20722 supports VxWorks 6 RTPs.
20723 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
20724 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20726 * raise.c: Move all GCC EH-related routines to raise-gcc.c
20728 2005-11-14 Jose Ruiz <ruiz@adacore.com>
20730 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
20731 deferral level, when abort is not allowed, to a later stage (the
20733 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
20734 it will not get changed by the generated code. It was previously done
20737 2005-11-14 Thomas Quinot <quinot@adacore.com>
20738 Olivier Hainque <hainque@adacore.com>
20739 Eric Botcazou <ebotcazou@adacore.com>
20742 Factor common code to build a storage type for an unconstrained object
20743 from a fat or thin pointer type and a constrained object type.
20744 (annotate_value): Handle BIT_AND_EXPR.
20745 (annotate_rep): Don't restrict the back annotation of inherited
20746 components to the type_annotate_only case.
20747 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
20748 we are not defining the type.
20749 <E_Record_Type>: Likewise.
20750 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
20751 to get advantage of the new maybe_stabilize_reference interface, to
20752 ensure that what we reference is indeed stabilized instead of relying
20753 on assumptions on what the stabilizer does.
20754 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
20755 type imported through a limited_with clause, use its non-limited view.
20756 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
20758 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
20759 of #if sections + explicit comparisons of convention identifiers.
20760 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
20761 before early-returning for certain types when code generation is
20763 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
20764 nullification of gnu_expr we do for objects with address clause and
20765 that we are not defining.
20766 (elaborate_expression_1): Do not create constants when creating
20767 variables needed by the debug info: the dwarf2 writer considers that
20768 CONST_DECLs is used only to represent enumeration constants, and emits
20770 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
20771 object with an address clause into an indirect reference, drop the
20772 initializing expression.
20774 (STACK_CHECK_BUILTIN): Delete.
20775 (STACK_CHECK_PROBE_INTERVAL): Likewise.
20776 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
20777 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
20778 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
20779 corresponding to the renamed object as ignored for debugging purposes.
20781 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
20782 related): For a prefix that is a dereference of a fat or thin pointer,
20783 if there is an actual subtype provided by the front-end, use that
20784 subtype to build an actual type with bounds template.
20785 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
20786 is provided by the front-end, use that subtype to compute the size of
20787 the deallocated object.
20788 (gnat_to_gnu): When adding a statement into an elaboration procedure,
20789 check for a potential violation of a No_Elaboration_Code restriction.
20790 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20791 with extra arguments to control whether to recurse through non-values
20792 and to let the caller know if the stabilization has succeeded.
20793 (gnat_stabilize_reference): Now a simple wrapper around
20794 maybe_stabilize, for common uses without restriction on lvalues and
20795 without need to check for the success indication.
20796 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
20797 pass false instead of 0 as the FORCE argument which is a bool.
20798 (Identifier_to_gnu): Remove checks ensuring that an renamed object
20799 attached to a renaming pointer has been properly stabilized, as no such
20800 object is attached otherwise.
20801 (call_to_gnu): Invoke create_var_decl to create the temporary when the
20802 function uses the "target pointer" return mechanism.
20803 Reinstate conversion of the actual to the type of the formal
20804 parameter before any other specific treatment based on the passing
20805 mechanism. This turns out to be necessary in order for PLACEHOLDER
20806 substitution to work properly when the latter type is unconstrained.
20808 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
20810 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20811 with extra arguments to control whether to recurse through non-values
20812 and to let the caller know if the stabilization has succeeded.
20814 * utils2.c (gnat_build_constructor): Only sort the fields for possible
20815 static output of record constructor if all the components are constant.
20816 (gnat_build_constructor): For a record type, sort the list of field
20817 initializers in increasing bit position order.
20818 Factor common code to build a storage type for an unconstrained object
20819 from a fat or thin pointer type and a constrained object type.
20820 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
20821 types variants, and process special cases of VIEW_CONVERT expressions
20822 as their NOP_EXPR counterpart to ensure we get to the
20823 CORRESPONDING_VARs associated with CONST_DECls.
20824 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
20825 on the right-hand side.
20827 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
20829 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
20830 are converting back to its original type.
20831 (convert) <JM input>: Fallthrough regular conversion code instead of
20832 extracting the object if converting to a type variant.
20833 (create_var_decl): When a variable has an initializer requiring code
20834 generation and we are at the top level, check for a potential violation
20835 of a No_Elaboration_Code restriction.
20836 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
20837 SIZE and SIZE_UNIT which we need for later back-annotations.
20838 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
20839 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
20840 is an unchecked union.
20841 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
20842 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
20843 main variant, just replace the VIEW_CONVERT_EXPR.
20844 <UNION_TYPE>: Revert 2005-03-02 change.
20846 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
20848 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
20850 2005-11-14 Matthew Heaney <heaney@adacore.com>
20852 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
20853 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
20854 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
20855 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
20856 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
20857 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
20858 Compiles against the spec for ordered maps described in sections
20859 A.18.6 of the most recent (August 2005) AI-302 draft.
20861 2005-11-14 Olivier Hainque <hainque@adacore.com>
20863 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
20864 to ensure bias adjustments take place when need be and to prevent
20865 occurrences of intermediate overflows.
20867 2005-11-14 Matthew Gingell <gingell@adacore.com>
20868 Olivier Hainque <hainque@adacore.com>
20870 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
20873 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
20874 tracebacks on ia64 HP-UX and provide explanatory comment.
20875 Enable backtraces on ia64 GNU/Linux.
20876 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
20877 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
20879 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
20880 Javier Miranda <miranda@adacore.com>
20882 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
20883 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
20884 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
20885 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
20887 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
20888 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
20891 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
20892 subprogram that generates the external name associated with a
20893 secondary dispatch table.
20894 (Get_Secondary_DT_External_Name): New subprogram that generates the
20895 external name associated with a secondary dispatch table.
20897 2005-11-14 Emmanuel Briot <briot@adacore.com>
20899 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
20900 line in the ALI file to include both an instantiation reference, and a
20903 2005-11-14 Vincent Celier <celier@adacore.com>
20905 * clean.adb (Check_Project): Look for Ada code in extending project,
20906 even if Ada is not specified as a language.
20907 Use new function DLL_Prefix for DLL_Name
20908 (Clean_Interface_Copy_Directory): New procedure
20909 (Clean_Library_Directory): New procedure
20910 (Clean_Directory): Remove procedure, no longer used
20911 (Clean_Project): Do not delete any file in an externally built project
20913 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
20914 directory of an extending project, even when there are no Ada source
20916 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
20917 (Set_Ada_Paths.Add.Recursive_Add): Ditto
20919 * mlib-prj.adb (Check_Library): For all library projects, get the
20920 library file timestamp.
20921 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
20922 (Build_Library): Use new function DLL_Prefix for the DLL_Name
20923 (Clean): Remove procedure, no longer used
20924 (Ultimate_Extension_Of): New function
20925 (Build_Library): When cleaning the library directory, only remove an
20926 existing library file and any ALI file of a source of the project.
20927 When cleaning the interface copy directory, remove any source that
20928 could be a source of the project.
20930 * prj.ads, prj.adb (Project_Empty): Add values of new components
20931 Library_TS and All_Imported_Projects.
20932 (Project_Empty): Add values for new components of Project_Data:
20933 Library_ALI_Dir and Display_Library_ALI_Dir
20935 * prj-attr.adb: New project level attribute name Library_ALI_Dir
20937 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
20938 attribute Library_ALI_Dir.
20939 (Check_Library_Attributes): The library directory cannot be the same as
20940 any source directory of the project tree.
20941 (Check_Stand_Alone_Library): The interface copy directory cannot be
20942 the same as any source directory of the project tree.
20944 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
20945 all temporary files.
20947 2005-11-14 Robert Dewar <dewar@adacore.com>
20948 Ed Schonberg <schonberg@adacore.com>
20950 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20951 (Check_Elab_Call): A call within a protected body is never an
20952 elaboration call, and does not require checking.
20953 (Same_Elaboration_Scope): Take into account protected types for both
20955 (Activate_Elaborate_All_Desirable): New procedure
20957 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
20960 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
20961 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
20963 * lib-writ.ads, lib-writ.adb:
20964 Implement new AD/ED for Elaborate_All/Elaborate desirable
20965 Use new Elaborate_All_Desirable flag in N_With_Clause node
20967 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
20968 N_Free_Statement nodes.
20969 Define new class N_Subprogram_Instantiation
20970 Add Elaborate_Desirable flag to N_With_Clause node
20971 Add N_Delay_Statement (covering two kinds of delay)
20973 * debug.adb: Introduce d.f flag for compiler
20974 Add -da switch for binder
20976 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20977 Cyrille Comar <comar@adacore.com>
20979 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
20980 for task component, in the case of a limited aggregate. The enclosed
20981 object declaration will create it earlier. Otherwise, in the case of a
20982 nested aggregate, the object may appear in the wrong scope.
20983 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
20984 (Gen_Assign): If the component being assigned is an array type and the
20985 expression is itself an aggregate, wrap the assignment in a block to
20986 force finalization actions on the temporary created for each row of the
20988 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
20989 structures are initialized after all discriminants are set so that
20990 they can be accessed even when their offset is dynamic.
20992 2005-11-14 Robert Dewar <dewar@adacore.com>
20993 Hristian Kirtchev <kirtchev@adacore.com>
20995 * sem_attr.adb: Implement Machine_Rounding attribute
20996 (Analyze_Access_Attribute): The access attribute may appear within an
20997 aggregate that has been expanded into a loop.
20998 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
20999 'Terminated whenever the prefix is of a task interface class-wide type.
21000 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
21001 the prefix is of a task interface class-wide type.
21003 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
21006 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
21007 Remove pragma Inline for [Unaligned_]Valid.
21008 Add comments that Valid routines do not work for Vax_Float
21010 * exp_attr.adb: Implement Machine_Rounding attribute
21012 * snames.h: Add entry for Machine_Rounding attribute
21014 2005-11-14 Javier Miranda <miranda@adacore.com>
21015 Robert Dewar <dewar@adacore.com>
21016 Hristian Kirtchev <kirtchev@adacore.com>
21018 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
21019 and related): For a prefix that is an explicit dereference of an
21020 access to unconstrained packed array type, annotate the dereference
21021 with an actual subtype so GIGI can make a correct size computation.
21022 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
21023 'Unrestricted_Access, if the designated type is an interface we
21024 add a type conversion to force the displacement of the pointer
21025 to the secondary dispatch table.
21026 Use Universal_Real instead of Long_Long_Float when we need a high
21027 precision float type for the generated code (prevents gratuitous
21028 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
21029 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
21030 'Terminated for task interface class-wide objects. Generate a call to
21031 the predefined dispatching routine used to retrieve the _task_id from
21032 a task corresponding record.
21033 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
21035 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21036 (Check_Dispatching_Operation): Protect the frontend againts
21037 previously detected errors.
21039 * Makefile.rtl: Add new instantiations of system.fat_gen
21041 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
21042 Change name of instantiated package for better consistency
21043 with newly added system.fat_gen instantiations.
21045 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
21046 s-fvagfl.ads: New files.
21048 2005-11-14 Cyrille Comar <comar@adacore.com>
21049 Thomas Quinot <quinot@adacore.com>
21051 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
21052 assignment of a value of a tagged type that has been rewritten to a
21053 block statement, it is known by construction that no checks are
21054 necessary for the statements within the block: analyze it with checks
21056 (Expand_N_If_Statement): When killing a dead then-branch in an
21057 if-statement that has elsif_parts, recompute the Current_Value node
21058 for any entity whose value is known from the condition of the first
21060 (Expand_N_Return_Statement): When returning a mutable record, convert
21061 the return value into its actual subtype in order to help the backend
21062 to return the actual size instead of the maximum. This is another
21063 aftermath of not returning mutable records on the sec-stack anymore.
21065 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
21066 handling of error msg for suspicious reverse range iteration.
21067 (Check_Possible_Current_Value_Condition): Move declaration from body to
21068 spec, to allow this subprogram to be called from exp_ch5.
21070 2005-11-14 Thomas Quinot <quinot@adacore.com>
21072 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
21073 generate a set of nested array aggregates instead of a single flat
21074 aggregate for multi-dimensional arrays.
21076 2005-11-14 Pascal Obry <obry@adacore.com>
21078 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
21079 by spawnve is a process handle, no need to convert. Add a parameter
21080 close to control wether the process handle must be closed.
21081 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
21082 a process handle, not need to convert.
21083 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
21085 * g-expect.adb: (Kill): Document the new close parameter.
21086 (Close): Do not release the process handle in the kill there as
21087 waitpid() is using it.
21088 (Send_Signal): Release the process handle.
21090 2005-11-14 Robert Dewar <dewar@adacore.com>
21092 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
21093 need a high precision float type for the generated code (prevents
21094 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
21097 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
21098 need a high precision float type for the generated code (prevents
21099 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
21101 (Expand_Width_Attribute): In configurable run-time, the attribute is not
21102 allowed on non-static enumeration subtypes. Force a load error to emit
21103 the correct diagnostic.
21105 2005-11-14 Thomas Quinot <quinot@adacore.com>
21106 Robert Dewar <dewar@adacore.com>
21107 Ed Schonberg <schonberg@adacore.com>
21109 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
21110 subtype to compute the size of the designated object at run-time,
21111 create such a subtype and store it in the Actual_Designated_Subtype
21112 attribute of the N_Free_Statement.
21113 Generate itype for classwide designated object in both cases of
21114 user-specified storage pool: specific and class-wide, not only in the
21116 Raise CE when trying to set a not null access type object to null.
21117 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
21118 an explicit loop, because freeze nodes make its position variable.
21120 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
21123 2005-11-14 Javier Miranda <miranda@adacore.com>
21125 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
21126 Build_Stream_Procedure): Add the null-excluding attribute to the first
21128 This has no semantic meaning under Ada95 mode but it is a
21129 requirement under Ada05 mode.
21131 * par-ch3.adb (P_Access_Definition): Addition of warning message if
21132 the null exclusion is used under Ada95 mode
21133 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
21134 (P_Access_Definition): Remove assertion that forbids the use of
21135 the null-exclusion feature in Ada95.
21137 2005-11-14 Robert Dewar <dewar@adacore.com>
21139 * impunit.adb: Exclude container helper units not intended for use by
21142 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21144 * freeze.adb (Freeze_Entity): For an access formal that is an access
21145 to subprogram, freeze the anonymous subprogram type at the same time,
21146 to prevent later freezing in the wrong scope, such as the enclosing
21148 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
21149 subprogram whenever available.
21151 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21154 * gnatvsn.ads (Library_Version): Bump to 4.1
21156 2005-11-14 Robert Dewar <dewar@adacore.com>
21158 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
21159 Storage_Offset to avoid wrap around causing invalid results.
21161 2005-11-14 Pascal Obry <obry@adacore.com>
21163 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
21165 (Scan_Bind_Arg): Fail with an error message if -M option is used
21166 on a native compiler.
21168 2005-11-14 Robert Dewar <dewar@adacore.com>
21169 Vincent Celier <celier@adacore.com>
21171 * gprep.adb: Implement -C switch to scan comments
21173 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
21175 * scans.ads: Comment updates (including new use of Tok_Comment in
21178 * opt.ads: Add documentation for flags that are used by gprmake,
21179 currently and in the next version of gprmake.
21180 (Verbosity_Level): New variable
21181 Add Replace_In_Comments switch
21183 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
21185 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
21187 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21189 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
21190 message, friendlier.
21192 2005-11-14 Robert Dewar <dewar@adacore.com>
21194 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
21196 2005-11-14 Doug Rupp <rupp@adacore.com>
21198 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
21200 2005-11-14 Robert Dewar <dewar@adacore.com>
21202 * interfac.ads: Change declarations of IEEE float types so that we no
21203 longer need a separate version of this package for VMS.
21205 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21207 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
21208 internal entity created for the declaration of a child subprogram body
21209 with no spec as coming from source, to generate proper cross-reference
21212 2005-11-14 Vincent Celier <celier@adacore.com>
21214 * make.adb (Compile_Sources): Change verbose message to minimum
21215 verbosity level High for "is in an Ada library", "is a read-only
21216 library" and "is an internal library",
21217 (Create_Binder_Mapping_File): Path name of ALI file for library project
21218 must include the library directory, not the object directory.
21219 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
21220 for new switches -vl, -vm and -vh.
21221 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
21222 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
21223 (Compile_Sources): Do not attempt to compile if an ALI file is missing
21224 in a project that is externally built.
21225 (Compute_All_Imported_Projects): New procedure
21226 (Gnatmake): Check if importing libraries should be regenerated because
21227 at least an imported library is more recent.
21228 (Initialize): For each project compute the list of the projects it
21229 imports directly or indirectly.
21230 (Add_Library_Search_Dir): New procedure, used in place of
21231 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21232 put in the search paths.
21233 (Add_Source_Search_Dir): New procedure, used in place of
21234 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
21235 put in the search paths.
21236 (Mark_Directory): Resolve the absolute path the directory before marking
21239 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
21240 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21241 Switch. Do not handle any exception.
21242 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
21243 so that the switch is recognized as valid.
21244 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
21246 2005-11-14 GNAT Script <nobody@adacore.com>
21248 * Make-lang.in: Makefile automatically updated
21250 2005-11-14 Pascal Obry <obry@adacore.com>
21252 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
21254 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
21255 In both cases the last argument was dropped.
21257 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
21259 * namet.h: (Column_Numbe): New type.
21260 (Get_Column_Number): Define to sinput__get_column_number.
21261 (Instantiation): Define to sinput__instantiation.
21262 (Get_Column_Number): Declare.
21263 (Instantiation): Likewise.
21265 2005-11-14 Robert Dewar <dewar@adacore.com>
21267 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
21268 syntax, which could cause compiler hangs.
21270 2005-11-14 Vincent Celier <celier@adacore.com>
21272 * prj-ext.adb: Take into account new environment variable
21273 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
21275 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
21276 normalize its path name, making it absolute and resolving symbolic
21277 links, and replace the original if resolved path is different.
21279 2005-11-14 Vincent Celier <celier@adacore.com>
21281 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
21282 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
21284 2005-11-14 Emmanuel Briot <briot@adacore.com>
21286 * prj-pp.adb (Print): Do not output the with statement if the
21287 associated name is empty, which happens for virtual extending projects.
21288 (Print): Preserve the "extends all" attribute when printing the project.
21290 * prj-tree.ads (String_Value_Of): Add comment about returned value for
21291 a virtual extending project.
21293 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21295 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
21296 rhs of an assignment even if the type is unconstrained, when the
21297 context is non-expanding.
21298 In an inlined body, if the context type is private,
21299 resolve with its full view, which must be a composite type.
21301 2005-11-14 Robert Dewar <dewar@adacore.com>
21302 Ed Schonberg <schonberg@adacore.com>
21304 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
21305 Do not give obsolescent warning on with of subprogram (since we
21307 (Analyze_With_Clause): Add test for obsolescent package
21308 (Install_Context_Clauses): If the unit is the body of a child unit, do
21309 not install twice the private declarations of the parents, to prevent
21310 circular lists of Use_Clauses in a parent.
21311 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
21312 compiling body of child unit.
21313 Use new class N_Subprogram_Instantiation
21314 (Expand_With_Clause): If this is a private with_clause for a child unit,
21315 appearing in the context of a package declaration, then the implicit
21316 with_clauses generated for parent units are private as well.
21317 (License_Check): Do not generate message if with'ed unit is internal
21319 2005-11-14 Gary Dismukes <dismukes@adacore.com>
21320 Ed Schonberg <schonberg@adacore.com>
21321 Thomas Quinot <quinot@adacore.com>
21323 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
21324 names are internal, because they will not have a corresponding partner
21325 in the actual package.
21326 (Analyze_Formal_Package): Move the setting of the formal package spec's
21327 Generic_Parent field so that it occurs prior to analyzing the package,
21328 to allow proper operation of Install_Parent_Private_Declarations.
21329 (Analyze_Package_Instantiation): Set the instantiated package entity's
21330 Package_Instantiation field.
21331 (Get_Package_Instantiation_Node): Move declaration to package spec.
21332 Retrieve the N_Package_Instantiation node when the Package_Instantiation
21334 (Check_Generic_Child_Unit): Within an inlined call, the only possible
21335 instantiation is Unchecked_Conversion, for which no parents are needed.
21336 (Inline_Instance_Body): Deinstall and record the use_clauses for all
21337 parent scopes of a scope being removed prior to inlining an instance
21339 (Analyze_Package_Instantiation): Do not perform front-end inlining when
21340 the current context is itself an instance within a non-instance child
21341 unit, to prevent scope stack errors.
21342 (Save_References): If the node is an aggregate that is an actual in a
21343 call, rewrite as a qualified expression to preserve some type
21344 information, to resolve possible ambiguities in the instance.
21345 (Instance_Parent_Unit): New global variable to record the ultimate
21346 parent unit associated with a generic child unit instance (associated
21347 with the existing Parent_Unit_Visible flag).
21348 (type Instance_Env): New component Instance_Parent_Unit for stacking
21349 parents recorded in the global Instance_Parent_Unit.
21350 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
21352 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
21353 it's not a top-level unit, and only do this if Instance_Parent_Unit is
21354 not already set. Replace test of Is_Child_Unit with test of parent's
21355 scope against package Standard. Add comments and a ??? comment.
21356 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
21357 on a child instance parent to test that the parent equals
21358 Instance_Parent rather than simply checking that the unit is not a
21360 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
21361 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
21362 a formal interface are ancestors of the corresponding actual.
21363 (Validate_Formal_Interface_Type): Additional legality checks.
21364 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
21365 interface types with ancestors.
21366 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
21367 to diagnose attempts to use generic within its own declaration.
21369 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21370 Javier Miranda <miranda@adacore.com>
21372 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
21374 (Build_Private_Derived_Type): The entity of the created full view of the
21375 derived type does not come from source. If after installing the private
21376 declarations of the parent scope the parent is still private, use its
21377 full view to construct the full declaration of the derived type.
21378 (Build_Derived_Record_Type): Relax the condition that controls the
21379 execution of the check that verifies that the partial view and
21380 the full view agree in the set of implemented interfaces. In
21381 addition, this test now only takes into account the progenitors.
21382 (Derive_Interface_Subprograms): No need to derive subprograms
21383 of ancestors that are interfaces.
21384 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
21386 Change name Is_Package to Is_Package_Or_Generic_Package
21387 (Complete_Subprograms_Derivation): Handle the case in which the full
21388 view is a transitive derivation of the ancestor of the partial view.
21389 (Process_Full_View): Rename local subprogram Find_Interface_In_
21390 Descendant to Find_Ancestor_Interface to leave the code more clear.
21391 Remove wrong code that avoids the generation of an error message
21392 when the immediate ancestor of the partial view is an interface.
21393 In addition some minor reorganization of the code has been done to
21394 leave it more clear.
21395 (Analyze_Type_Declaration): If type has previous incomplete tagged
21396 partial view, inherit properly its primitive operations.
21397 (Collect_Interfaces): Make public, for analysis of formal
21399 (Analyze_Interface_Declaration): New procedure for use for regular and
21400 formal interface declarations.
21401 (Build_Derived_Record_Type): Add support for private types to the code
21402 that checks if a tagged type implements abstract interfaces.
21403 (Check_Aliased_Component_Type): The test applies in the spec of an
21405 (Access_Type_Declaration): Clean up declaration of malformed type
21406 declared as an access to its own classwide type, to prevent cascaded
21408 (Collect_Interfaces): For private extensions and for derived task types
21409 and derived protected types, the parent may be an interface that must
21410 be included in the interface list.
21411 (Access_Definition): If the designated type is an interface that may
21412 contain tasks, create Master_Id for it before analyzing the expression
21413 of the declaration, which may be an allocator.
21414 (Record_Type_Declaration): Set properly the interface kind, for use
21415 in allocators, the creation of master id's for task interfaces, etc.
21417 2005-11-14 Javier Miranda <miranda@adacore.com>
21418 Ed Schonberg <schonberg@adacore.com>
21420 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
21421 omitted in case of stream attribute subprograms.
21422 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
21423 appear immediately after a subprogram body, when there is no previous
21424 subprogram declaration.
21425 Change name Is_Package to Is_Package_Or_Generic_Package
21426 (Process_Formals): A non null qualifier on a non null named access
21427 type is not an error, and is a warning only if Redundant_Constructs
21430 2005-11-14 Gary Dismukes <dismukes@adacore.com>
21431 Ed Schonberg <schonberg@adacore.com>
21433 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
21434 nested within Analyze_Package_Specification to install the private
21435 declarations and use clauses within each of the parent units of a
21436 package instance of a generic child package.
21437 (Analyze_Package_Specification): When entering a private part of a
21438 package associated with a generic instance or formal package, the
21439 private declarations of the parent must be installed (by calling new
21440 procedure Install_Parent_Private_Declarations).
21441 Change name Is_Package to Is_Package_Or_Generic_Package
21442 (Preserve_Full_Attributes): For a synchronized type, the corresponding
21443 record is absent in a generic context, which does not indicate a
21446 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21448 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
21449 not try to rewrite a renamed stream attribute, because the operations
21450 on the type may not have been generated.
21451 Handle properly a renaming_as_body generated for a stream operation
21452 whose default is abstract because the object type itself is abstract.
21453 (Find_Type): If the type is incomplete and appears as the prefix of a
21454 'Class reference, it is tagged, and its list of primitive operations
21455 must be initialized properly.
21456 (Chain_Use_Clauses): When chaining the use clauses that appear in the
21457 private declaration of a parent unit, prior to compiling the private
21458 part of a child unit, find on the scope stack the proper parent entity
21459 on which to link the use clause.
21460 (Note_Redundant_Use): Emit a warning when a redundant use clause is
21462 (Analyze_Object_Renaming): An attribute reference is not a legal object
21463 if it is not a function call.
21465 2005-11-14 Robert Dewar <dewar@adacore.com>
21466 Ed Schonberg <schonberg@adacore.com>
21468 * sem_eval.adb: Implement d.f flag
21469 (Subtype_Statically_Match): A generic actual type has unknown
21470 discriminants when the corresponding actual has a similar partial view.
21471 If the routine is called to validate the signature of an inherited
21472 operation in a child instance, the generic actual matches the full view,
21474 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
21475 Ed Schonberg <schonberg@adacore.com>
21476 Robert Dewar <dewar@adacore.com>
21477 Thomas Quinot <quinot@adacore.com>
21479 * sem_res.adb (Resolve_Call): Provide a better error message whenever
21480 a procedure call is used as a select statement trigger and is not an
21481 entry renaming or a primitive of a limited interface.
21482 (Valid_Conversion): If the operand has a single interpretation do not
21483 remove address operations.
21484 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
21485 statement to inhibit warning.
21486 (Resolve_Unary_Op): Do not produce a warning when
21487 processing an expression of the form -(A mod B)
21488 Use Universal_Real instead of Long_Long_Float when we need a high
21489 precision float type for the generated code (prevents gratuitous
21490 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
21491 (Resolve_Concatenation_Arg): Improve error message when argument is an
21492 ambiguous call to a function that returns an array.
21493 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
21494 there is an implicit operator in the given scope if we are within an
21495 instance: legality check has been performed on the generic.
21496 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
21497 after resolving operand, to avoid false warnings on overloaded calls.
21499 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21500 Javier Miranda <miranda@adacore.com>
21503 * sem_type.adb (Covers): In an inlined body, a composite type matches
21504 a private type whose full view is a composite type.
21505 (Interface_Present_In_Ancestor): Protect the frontend against
21506 previously detected errors to ensure that its compilation
21507 with assertions enabled gives the same output that its
21508 compilation without assertions.
21509 (Interface_Present_In_Ancestor): Add support for private types.
21510 Change name In_Actual to In_Generic_Actual (clean up)
21511 (Disambiguate): New predicate In_Actual, to recognize expressions that
21512 appear in the renaming declaration generated for generic actuals, and
21513 which must be resolved in the outer context.
21515 2005-11-14 Robert Dewar <dewar@adacore.com>
21516 Thomas Quinot <quinot@adacore.com>
21517 Hristian Kirtchev <kirtchev@adacore.com>
21518 Ed Schonberg <schonberg@adacore.com>
21520 * sem_util.ads, sem_util.adb: Change name Is_Package to
21521 Is_Package_Or_Generic_Package.
21522 (Check_Obsolescent): New procedure.
21523 (Set_Is_Public): Remove obsolete junk test.
21524 (Set_Public_Status): Do not set Is_Public on an object whose declaration
21525 occurs within a handled_sequence_of_statemets.
21526 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
21527 for a parameterless procedure.
21528 (Enter_Name): Recognize renaming declarations created for private
21529 component of a protected type within protected operations, so that
21530 the source name of the component can be used in the debugger.
21532 2005-11-14 Ed Schonberg <schonberg@adacore.com>
21533 Robert Dewar <dewar@adacore.com>
21535 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
21536 of a generic subprogram are not visible outside the body.
21537 (Set_Warning_Switch): New procedure (code to set warning mode moved
21538 here from Switch.C so that it can be shared by pragma processing.
21539 (Check_References): Special case warning for non-modified non-imported
21541 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
21542 form with a string literal argument
21544 2005-11-14 Javier Miranda <miranda@adacore.com>
21546 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
21548 (Write): Addition of "not null" to the anonymous access.
21549 (Read): Addition of "not null" to the anonymous access.
21550 (Write): Addition of "not null" to the anonymous access.
21552 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
21553 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
21554 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
21555 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
21556 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
21557 "not null" to the anonymous access.
21559 2005-11-14 Robert Dewar <dewar@adacore.com>
21561 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
21564 2005-11-14 Vincent Celier <celier@adacore.com>
21566 * switch.adb (Bad_Switch): New procedure
21567 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
21568 message when in error.
21570 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
21571 Too_Many_Output_Files): Remove declarations, no longer used.
21572 (Scan_Nat): New parameter Switch
21574 (Bad_Switch): New procedure
21576 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
21577 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
21578 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
21579 to Osint.Fail. Do not handle any exception.
21581 2005-11-14 Vincent Celier <celier@adacore.com>
21583 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
21584 designates a non existent directory.
21586 2005-11-14 Robert Dewar <dewar@adacore.com>
21588 * xgnatugn.adb: Replace invalid membership test by 'Valid
21590 2005-11-14 Vincent Celier <celier@adacore.com>
21592 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
21593 there is no object directory.
21595 2005-11-14 Robert Dewar <dewar@adacore.com>
21597 * usage.adb: Minor adjustment to output format, use nn instead of nnn
21598 (so that -gnateInnn does not run into next column)
21600 2005-11-14 Ed Falis <falis@adacore.com>
21602 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
21605 2005-11-14 Cyrille Comar <comar@adacore.com>
21607 * s-chepoo.ads: Add comments on Dereference.
21608 Remove unnecessary inherited abstract primitives.
21611 2005-11-14 Robert Dewar <dewar@adacore.com>
21613 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
21614 node parameter, not needed, since it is available as Declaration_Node.
21616 2005-11-14 Geert Bosch <bosch@adacore.com>
21618 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
21619 grammatically correct.
21621 2005-11-14 Vincent Celier <celier@adacore.com>
21623 * s-fileio.ads: Correct spelling error in comment
21625 2005-11-14 Cyrille Comar <comar@adacore.com>
21626 Robert Dewar <dewar@adacore.com>
21627 Vincent Celier <celier@adacore.com>
21628 Ben Brosgol <brosgol@adacore.com>
21629 Jose Ruiz <ruiz@adacore.com>
21630 Pascal Obry <obry@adacore.com>
21633 Document that -fstack-check is needed for strict compliance with the
21634 Ada 95 Reference Manual.
21635 Correct reference to VAX systems to meet HP guidelines
21636 Add documentation for new gnatmake switches -vl, -vm and -vh
21637 Replace DEC Ada by HP Ada
21638 Replace DIGITAL by HP
21639 Remove empty section on tools in compatibility section
21640 Clarify the Windows convention semantics.
21641 Document the Win32 calling convention.
21642 The Stdcall, Win32 and DLL convention are synonyms.
21643 Add a note in -gnatR description about zero size record components
21644 Note on new >= and <= warnings for -gnatwc
21645 Document that equal sign after -gnatm is optional.
21646 Note that strip is working fine on DLL built with a Library
21647 Project. The restriction apply only to DLL built with gnatdll.
21648 Update section about the way to debug a DLL.
21649 Update information about the DLL convention.
21650 Document -C switch for gnatprep
21651 Document new attribute Library_ALI_Dir
21652 Update elaboration doc to include implicit Elaborate pragmas now
21653 generated for subprogram instantiations.
21654 Document limitation on executable names that include spaces for --GCC,
21655 --GNATBIND, and --GNATLINK switches.
21656 Document that -w causes -gnatws to be added at start of gcc switches
21658 * gnat_rm.texi: Document that -mieee is needed for generating infinite
21659 and NaN values in case of overflow on machines that are not fully
21660 compliant with the IEEE floating-point standard.
21661 Create a section describing the set of compiler options needed for
21662 strict compliance with the Ada 95 Reference Manual.
21663 Add documentation for pragma Obsolescent applied to a package
21664 Clarify potential issues of mixed language programs related to the
21665 I/O buffering enabling in the elaboration of the GNAT runtime.
21666 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
21667 This documentation only patch adds extra documentsion for pragma
21668 Restrictions (No_Elaboration_Code), explaining why it is not possible
21669 to document this restriction in terms of allowed source constructs.
21670 Document string literal form of pragma Warnings
21671 Document new attribute Library_ALI_Dir
21672 Add documentation on stable attributes in project files that was missing
21674 * gnat-style.texi: Indicate that paragraphs within a single comment
21675 should be separated by empty comment lines
21677 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
21680 * bindusg.adb: Minor cleanup, put -m before -M for consistency
21682 2005-11-14 Robert Dewar <dewar@adacore.com>
21684 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
21685 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
21686 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
21687 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
21688 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
21689 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
21690 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
21691 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
21692 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
21693 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
21694 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
21695 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
21696 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
21697 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
21698 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
21699 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
21700 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
21701 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
21702 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
21703 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
21704 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
21705 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
21706 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
21707 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
21708 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
21709 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
21710 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
21711 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
21712 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
21713 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
21714 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
21715 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
21716 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
21717 system-interix.ads, system-solaris-sparc.ads,
21718 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
21719 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
21720 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
21721 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
21722 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
21723 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
21724 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
21725 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
21726 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
21727 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
21728 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
21729 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
21730 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
21731 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
21732 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
21733 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
21734 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
21735 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
21736 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
21737 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
21738 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
21739 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
21740 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
21741 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
21742 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
21743 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
21744 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
21745 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
21746 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
21747 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
21748 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
21749 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
21750 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
21751 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
21752 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
21753 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
21754 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
21755 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
21756 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
21757 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
21758 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
21759 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
21760 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
21761 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
21762 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
21763 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
21764 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
21765 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
21766 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
21767 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
21768 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
21769 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
21770 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
21771 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
21772 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
21773 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
21774 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
21775 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
21776 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
21777 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
21778 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
21779 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
21780 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
21781 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
21782 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
21783 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
21784 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
21785 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
21786 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
21787 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
21788 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
21789 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
21790 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
21791 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
21792 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
21793 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
21794 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
21795 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
21796 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
21797 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
21798 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
21799 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
21800 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
21801 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
21802 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
21803 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
21804 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
21805 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
21806 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
21807 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
21808 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
21809 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
21810 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
21811 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
21812 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
21813 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
21814 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
21815 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
21816 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
21817 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
21818 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
21819 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
21820 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
21821 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
21822 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
21823 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
21824 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
21825 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
21826 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
21827 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
21828 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
21829 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
21830 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
21831 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
21832 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
21833 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
21834 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
21835 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
21836 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
21837 a-numaux-darwin.ads, a-numaux-darwin.adb,
21838 a-swuwha.ads, a-stunha.ads: Minor reformatting
21840 2005-11-14 Robert Dewar <dewar@adacore.com>
21843 * osint-m.adb: Add pragma Elaborate_All for Osint
21845 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
21848 * trans.c (call_to_gnu): Restore statement lost in translation.
21850 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
21852 * init.c: Use the Linux-specific section for the IA-64/Linux target.
21853 (__gnat_adjust_context_for_raise): Add conditional code so that the
21854 IA-64 is also supported.
21856 2005-11-03 James E Wilson <wilson@specifix.com>
21859 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
21860 TREE_OVERFLOW check.
21862 2005-09-21 Olivier Hainque <hainque@adacore.com>
21865 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
21866 as we create them to store a size in bits.
21868 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
21876 * utils2.c (build_return_expr): New helper function.
21877 * gigi.h (build_return_expr): Declare it.
21878 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
21879 of manually building the RETURN_EXPR tree.
21880 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
21881 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
21882 build_binary_op for the "target pointer" case. Use build_return_expr
21883 instead of manually building the RETURN_EXPR tree.
21885 2005-09-16 Laurent Guerby <laurent@guerby.net>
21888 * s-tpinop.ads: Make this unit Preelaborate.
21890 2005-09-16 Andreas Jaeger <aj@suse.de>
21892 * socket.c: Add string.h for memcpy.
21894 2005-09-05 Arnaud Charlet <charlet@adacore.com>
21896 * dec-io.ads, dec-io.adb: Removed, no longer used.
21898 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21900 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
21902 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
21903 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
21904 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
21905 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
21906 dependent units are Preelaborate.
21907 (Initialize): Call Interrupt_Managemeent.Initialize and
21908 OS_Primitives.Initialize to ensure proper initialization of this unit.
21909 Remove use of System.Soft_Links
21910 Make this unit Preelaborate.
21912 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
21913 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
21914 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
21915 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
21916 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
21917 s-tratas.ads, s-tasinf.ads: Minor reformatting.
21918 Add pragma Preelaborate, since these packages are suitable for this
21922 * s-traent-vms.ads, s-intman-dummy.adb,
21923 s-taprop-dummy.adb: Make this unit Preelaborate.
21925 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
21926 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
21927 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
21928 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
21929 s-intman-solaris.adb, s-intman-irix-athread.adb,
21930 s-intman-irix.adb: Mark this unit Preelaborate.
21931 (Initialize): New procedure.
21934 * s-taspri-linux.ads: Removed.
21936 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
21937 as done by other implementations (e.g. posix).
21939 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
21940 responsible for deferring abort.
21941 Mark this unit Preelaborate.
21943 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
21944 proper initialization of the tasking run-time.
21946 * s-tasdeb.ads: Mark this unit Preelaborate.
21947 (Known_Tasks): Add explicit default value to avoid elaboration code.
21949 * s-inmaop-vms.adb (Elaboration code): Add call to
21950 Interrupt_Management.Initialize since the elaboration code depends on
21951 proper initialization of this package.
21953 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
21954 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
21955 s-osprim-posix.adb: Make this unit Preelaborate.
21957 * a-calend.adb: Add call to OS_Primitives.Initialize
21959 * a-elchha.adb: Update use of Except.Id.Full_Name.
21960 Minor reformatting.
21961 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
21963 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
21964 Move with clauses outside Warnings Off now that dependent units are
21966 Use raise xxx with "..."; Ada 2005 form.
21968 * a-taside.ads, a-taside.adb:
21969 Remove some dependencies, to make it easier to make this unit truly
21971 Rewrite some code to be conformant with Preelaborate rules.
21973 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
21974 marked Preelaborate in the future.
21976 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
21977 these units Preelaborate.
21979 * s-exctab.adb: Update use of Except.Id.Full_Name.
21981 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
21982 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
21983 Set_Exc_Stack_Addr): Removed, no longer used.
21984 Remove reference to *Machine_State_Addr*, no longer needed.
21986 * s-stalib.ads: Mark this unit as Preelaborate[_05].
21987 (Exception_Data): Full_Name is now a System.Address so that this unit
21988 can be made Preelaborate.
21989 Clean up/simplify code thanks to Full_Name being a System.Address.
21990 Remove obsolete pragma Suppress (All_Checks), no longer needed.
21992 * s-taskin.ads, s-taskin.adb:
21993 Move with clauses outside Warnings Off now that dependent units are
21995 Make this unit Preelaborate.
21996 (Initialize): New proceduure, replace elaboration code and makes the
21997 set up of the tasking run-time cleaner.
21998 (Detect_Blocking): Now a function instead of a deferred boolean, to
21999 obey Preelaborate rules.
22001 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
22002 soft links, no longer used.
22004 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
22005 packages are suitable for this categorization.
22007 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
22008 since we compile run-time sources in Ada 2005 mode.
22009 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
22010 avoid having s-taprop*.adb depend on s-soflin and to avoid code
22012 Remove reference to *Machine_State_Addr*, no longer needed.
22014 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22016 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
22017 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
22018 Remove reference to System.Exceptions.
22020 * s-mastop-x86.adb: Removed, no longer used.
22022 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
22024 * a-excach.adb: Minor reformatting.
22026 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
22027 instead fix new warnings that were hidden by this change.
22028 (AAA, ZZZ): Removed, replaced by...
22029 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
22030 are used instead of constants, to help make Ada.Exception truly
22032 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
22033 Raise_Storage_Error): File is now a System.Address, to simplify code.
22034 (Elab code): Removed, no longer used.
22035 (Null_Occurrence): Remove Warnings Off and make this construct
22037 Remove code related to front-end zero cost exception handling, since
22038 it is no longer used.
22039 Remove -gnatL/-gnatZ switches.
22041 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
22042 Update use of Except.Msg.
22044 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
22045 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
22046 to front-end zero cost exception handling, since it is no longer used.
22047 Remove -gnatL/-gnatZ switches.
22049 * lib-writ.ads: Minor reformatting
22052 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
22054 * Make-lang.in: Remove references to s-except.ads
22056 * s-except.ads: Removed, no longer used.
22058 * s-mastop.ads, s-mastop.adb:
22059 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
22060 Remove reference to System.Exceptions.
22062 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
22063 switch-b.adb: Remove code related to front-end zero cost exception
22064 handling, since it is no longer used.
22065 Remove -gnatL/-gnatZ switches.
22067 2005-09-01 Robert Dewar <dewar@adacore.com>
22068 Gary Dismukes <dismukes@adacore.com>
22069 Javier Miranda <miranda@adacore.com>
22071 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
22072 type by valid test and generate warning.
22073 (Tagged_Membership): Generate call to the run-time
22074 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
22075 Change formal name Subtype_Mark to Result_Definition in several calls to
22076 Make_Function_Specification.
22077 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
22078 check for proper accessibility of the operand of a class-wide allocator.
22079 The check can be left out if checks are suppressed or if the expression
22080 has a specific tagged type whose level is known to be safe.
22082 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
22083 generates the run-time check associated with null-excluding entities.
22084 (Expand_N_Return_Statement): Add tests to determine if the accessibility
22085 check on the level of the return expression of a class-wide function
22086 can be elided. The check usually isn't needed if the expression has a
22087 specific type (unless it's a conversion or a formal parameter). Also
22088 add a test for whether accessibility checks are suppressed. Augment
22089 the comments to describe the conditions for performing the check.
22091 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
22092 Javier Miranda <miranda@adacore.com>
22093 Gary Dismukes <dismukes@adacore.com>
22094 Ed Schonberg <schonberg@adacore.com>
22096 * a-tags.adb (IW_Membership): Give support to
22097 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
22098 subprogram has been extended to look for the tag in the ancestors tag
22100 Update the structure of the GNAT Dispatch Table to reflect the
22101 additional two tables used in dispatching selects.
22102 Introduce appropriate array types and record components in
22103 Type_Specific_Data to reflect the two tables.
22104 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
22105 the TSD of a tag, indexed by position.
22106 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
22107 operation kind in the TSD of a tag, indexed by position.
22109 * a-tags.ads: Introduce an enumeration type to capture different
22110 primitive operation kinds. Define a constant reflecting the number of
22111 predefined primitive operations.
22112 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
22113 of an entry wrapper.
22114 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
22115 callable entity of a primitive operation.
22117 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
22118 primitive operations used in dispatching selects for limited
22119 interfaces, limited tagged, task and protected types what implement a
22121 (Freeze_Type): Generate the bodies of the primitive operations used in
22122 dispatching selects for limited tagged, task and protected types that
22123 implement a limited interface. Generate statements to populate the two
22124 auxiliary tables used for dispatching in select statements.
22125 (Freeze_Record_Type): Add call to initialize the dispatch table entries
22126 associated with predefined interface primitive operations.
22127 (Build_Dcheck_Function): Change Set_Subtype_Mark to
22128 Set_Result_Definition.
22129 (Build_Variant_Record_Equality): Change Subtype_Mark to
22131 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
22132 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
22133 (Build_Assignment): Simplify the code that adds the run-time-check.
22134 (Expand_N_Object_Declaration): Code cleanup.
22136 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
22137 entries when there is a protected type that implements a limited
22140 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
22141 common routines used in expansion of dispatching selects.
22142 (Add_Private_Declarations): Select the appropriate protection type when
22143 there is a protected type that implements a limited interface.
22144 (Build_Parameter_Block): Generate a wrapped parameter block.
22145 (Build_Protected_Subprogram_Body): Select the appropriate type for
22146 locking entries when there is a protected type that implements a
22148 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
22149 classified as entry wrappers.
22150 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
22151 asynchronous selects.
22152 (Expand_N_Conditional_Entry_Call): Add support for expansion of
22153 dispatching conditional selects.
22154 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
22155 protection when there is a protected type that implements limited
22157 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
22159 (Extract_Dispatching_Call): Extract the entity of the name of a
22160 dispatching call, the object parameter, actual parameters and
22161 corresponding formals.
22162 (Make_Initialize_Protection): Correct logic of protection initialization
22163 when there is a protected type that implements a limited interface.
22164 (Parameter_Block_Pack): Populate a wrapped parameter block with the
22165 values of actual parameters.
22166 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
22167 block and assign them to the original actual parameters.
22169 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
22170 (Build_Protected_Sub_Specification): Change the type and name of the
22171 last formal to account for the increased variety of protection modes.
22173 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
22174 entities. Used to save the value of the Is_Hidden attribute when the
22175 limited-view is installed.
22176 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
22177 the attribute of procedures classified as entry wrappers.
22178 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
22179 entity of a primitive wrapper.
22180 (Write_Entity_Flags): Output the name and value of the
22181 Is_Primitive_Wrapper attribute.
22182 (Write_Field27_Name): Output the name and entity of the field Wrapped_
22184 (Underlying_Type): If we have an incomplete entity that comes from
22185 the limited view then we return the Underlying_Type of its non-limited
22186 view if it is already available.
22187 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
22188 including operators.
22189 (Write_Field26_Name): Add entry for Overridden_Operation
22190 (Overridden_Operation): New attribute of functions and procedures.
22192 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
22193 predefined position in the dispatch table for the primitive operations
22194 used in dispatching selects.
22195 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
22196 predefined primitive operations and replace it with
22197 Default_Prim_Op_Count.
22198 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
22199 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
22200 the names of the generated primitive operations used in dispatching
22202 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
22203 case of abstract interface types. They will be inherit by the objects
22204 implementing the interface.
22205 (Make_DT): There is no need to inherit the dispatch table of the
22206 ancestor interface for the elaboration of abstract interface types.
22207 The dispatch table will be inherited by the object implementing the
22209 (Copy_Secondary_DTs): Add documentation.
22210 (Validate_Position): Improve this static check in case of
22211 aliased subprograms because aliased subprograms must have
22213 (Init_Predefined_Interface_Primitives): New subprogram that initializes
22214 the entries associated with predefined primitives of all the secondary
22216 (Build_Anonymous_Access_Type): Removed.
22217 (Expand_Interface_Actuals): With the previous cleanup there is no need
22218 to build an anonymous access type. This allows further cleanup in the
22219 code generated by the expander.
22220 (Expand_Interface_Conversion): If the actual is an access type then
22221 build an internal function to handle the displacement. If the actual
22222 is null this function returns null because no displacement is
22223 required; otherwise performs a type conversion that will be
22224 expanded in the code that returns the value of the displaced actual.
22225 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
22226 conversions that have no effect in the generated code because no
22227 displacement is required. Code cleanup; use local variables to
22228 avoid repeated calls to the subprogram directly_designated_type().
22230 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
22231 Classify the primitive operations used in dispatching selects as
22233 (Implements_Limited_Interface): Determine whether some type either
22234 directly implements a limited interface or extends a type that
22235 implements a limited interface.
22236 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
22237 (Expand_Subtype_From_Expr): Do not build actual subtype if the
22238 expression is limited.
22239 (Find_Interface_Tag): Add code to handle class-wide types and
22240 entities from the limited-view.
22242 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
22243 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
22244 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
22245 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
22248 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
22249 of procedure name or prefix that appears as a trigger in a triggering
22252 * uintp.ads: Introduce constants Uint_11 and Uint_13.
22254 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22256 * s-tataat.adb, a-tasatt.adb:
22257 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
22259 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
22260 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
22261 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
22264 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22265 Jose Ruiz <ruiz@adacore.com>
22267 * s-taprop-vxworks.adb:
22268 Move with clauses outside Warnings Off now that dependent units are
22270 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
22271 initialization of this unit.
22272 (Specific): Add new procedures Initialize and Delete so that this
22273 package can be used for VxWorks 5.x and 6.x
22274 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
22275 differences between VxWorks 5.x and 6.x
22276 Minor reformatting.
22277 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
22279 Use only Preelaborate-compatible constructs.
22281 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
22282 Primitives.Operations.
22283 (Delete, Initialize): New procedures.
22285 * s-osinte-vxworks.adb: Body used to handle differences between
22286 VxWorks 5.x and 6.x
22287 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
22289 * s-osinte-vxworks.ads: Minor reformatting.
22290 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
22291 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
22293 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
22294 between Vxworks 5 and 6.
22295 (taskLock, taskUnlock): Removeed, no longer used.
22297 * adaint.c: The wait.h header is not located in the sys directory on
22298 VxWorks when using RTPs.
22299 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
22301 (__gnat_dup): dup is available on Vxworks when using RTPs.
22302 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
22304 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
22306 * expect.c: The wait.h header is not located in the sys directory on
22307 VxWorks when using RTPs.
22309 2005-09-01 Thomas Quinot <quinot@adacore.com>
22311 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
22313 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
22315 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
22316 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
22317 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
22318 g-soccon-freebsd.ads: Add new constants:
22320 SO_RCVTIMEO/SO_SNDTIMEO
22324 Move all target-specific file inclusions and macro definitions to
22325 gsocket.h, in order to ensure that any C code in socket.c will see a
22326 set of constants that is consistent with the contents of g-soccon.ads.
22328 * gsocket.h: Code imported from gen-soccon.c:
22329 Move all target-specific file inclusions and macro definitions to
22330 gsocket.h, in order to ensure that any C code in socket.c will see a set
22331 of constants that is consistent with the contents of g-soccon.ads.
22332 This change also makes gen-soccon self-contained (removing dependencies
22333 upon GCC internal headers).
22335 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
22337 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
22339 * socket.c: Minor reformatting.
22341 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22342 Thomas Quinot <quinot@adacore.com>
22344 * fname-sf.adb, mlib-tgt.ads,
22345 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
22346 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
22347 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
22348 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
22349 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
22350 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
22351 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
22352 makegpr.adb: Remove redundant use_clauses.
22354 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22356 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
22357 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
22358 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
22359 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
22360 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
22361 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
22362 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
22363 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
22364 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22365 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
22366 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
22367 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
22368 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
22369 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
22370 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
22371 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
22372 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22373 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
22374 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
22375 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
22376 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
22377 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
22378 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
22379 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
22380 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
22381 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
22382 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
22383 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
22384 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
22385 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
22386 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
22387 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
22388 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
22389 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
22390 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
22391 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
22392 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
22393 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
22394 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
22395 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
22396 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
22397 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
22398 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
22399 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
22400 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
22401 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
22402 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
22403 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
22404 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
22405 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
22406 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
22407 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
22408 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
22409 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
22410 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
22411 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
22412 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
22413 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
22414 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
22415 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
22416 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
22417 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
22418 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
22419 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
22420 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
22421 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
22422 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
22423 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
22424 and always use the no parameter form for consistency.
22426 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
22428 2005-09-01 Robert Dewar <dewar@adacore.com>
22430 * binde.adb: Minor reformatting
22431 (Find_Elab_Order): Output warning if -p used with static elab order
22433 2005-09-01 Robert Dewar <dewar@adacore.com>
22435 * checks.adb (Check_Needed): New procedure, deals with removing checks
22436 based on analysis of short-circuited forms. Also generates warnings for
22437 improper use of non-short-circuited forms.
22440 2005-09-01 Robert Dewar <dewar@adacore.com>
22442 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
22445 2005-09-01 Robert Dewar <dewar@adacore.com>
22447 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
22449 Implement new insertion char < (conditional warning)
22450 * errutil.adb, erroutc.adb: Implement new insertion char <
22451 (conditional warning).
22452 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
22453 (Error_Msg_Warn): New variable for < insertion char.
22454 * prj-nmsc.adb: Implement new errout insertion char < (conditional
22456 (Check_For_Source): Change value of Source_Id only after the current
22457 source has been dealt with.
22459 2005-09-01 Robert Dewar <dewar@adacore.com>
22460 Doug Rupp <rupp@adacore.com>
22462 * exp_attr.adb: Handle vax fpt for 'Valid attribute
22463 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
22464 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
22465 (Valid_D, Valid_F, Valid_G): New functions
22467 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22468 Hristian Kirtchev <kirtchev@adacore.com>
22469 Javier Miranda <miranda@adacore.com>
22471 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
22472 from object notation, the original node is unanalyzed and carries no
22473 semantic information, so that accessiblity checks must be performed on
22474 the type of the actual itself.
22475 (Expand_N_Subprogram_Declaration): Change last actual parameter for
22476 compatibility with Build_Protected_Sub_Specification.
22477 (Check_Overriding_Inherited_Interfaces): Add suport to handle
22478 overloaded primitives.
22479 (Register_Interface_DT_Entry): Use the new name of the formal
22480 the the calls to Expand_Interface_Thunk
22482 * exp_dbug.ads: Augment comments on encoding of protected types to
22483 include the generation of dispatching subprograms when the type
22484 implements at least one interface.
22486 * lib.ads: Extend information in Load_Stack to include whether a given
22487 load comes from a Limited_With_Clause.
22489 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
22490 whether a potential circularity is harmless, because it includes units
22491 loaded through a limited_with clause. Extends previous treatment which
22492 did not handle properly arbitrary combinations of limited and
22493 non-limited clauses.
22495 2005-09-01 Nicolas Setton <setton@adacore.com>
22497 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
22498 to be encoded as typ___XBLU_lowerbound__upperbound instead of
22499 typ___XB_lowerbound__upperbound.
22501 2005-09-01 Thomas Quinot <quinot@adacore.com>
22503 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
22504 dummy access formal for RACW/RAS TypeCode TSS.
22505 (Build_TypeCode_Call): Do not generate dummy null access actual for
22506 calls to the TypeCode TSS.
22508 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22510 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
22511 fully qualified name, to distinguish instances with the same local name.
22513 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
22516 2005-09-01 Robert Dewar <dewar@adacore.com>
22518 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
22521 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
22523 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
22524 (Free): New deallocation procedure for filter elements
22525 (Close): Deallocate any existing filter for the concerned connection
22527 2005-09-01 Laurent Pautet <pautet@adacore.com>
22529 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
22530 position set is provided, we compute one in order to reduce the maximum
22531 length of the keys. This computation first selects a character
22532 position between 1 and the minimum length of the keys in order to
22533 avoid reducing one of the keys to an empty string.
22534 (Initialize, Compute): When the ratio V to K is too low, the algorithm
22535 does not converge. The initialization procedure now comes with a
22536 maximum number of iterations such that when exceeded, an exception is
22537 raised in Compute. The user can initialize this ratio to another value
22539 Reformating and updated headers.
22541 2005-09-01 Javier Miranda <miranda@adacore.com>
22543 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
22544 that given an entity T creates and returns an Itype that duplicates the
22545 contents of T. The returned Itype has the null-exclusion
22546 attribute set to True, and its Etype attribute references T
22547 to keep the association between the two entities.
22548 Update copyright notice
22550 * sem_aggr.adb (Check_Can_Never_Be_Null,
22551 Aggregate_Constraint_Checks, Resolve_Aggregate,
22552 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
22554 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
22556 2005-09-01 Gary Dismukes <dismukes@adacore.com>
22557 Robert Dewar <dewar@adacore.com>
22558 Hristian Kirtchev <kirtchev@adacore.com>
22560 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
22563 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
22565 Call Set_Result_Definition instead of Set_Subtype_Mark.
22566 (P_Subprogram_Specification): Add parsing of anonymous access result
22567 plus null exclusions. Call Set_Result_Definition instead of
22570 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22571 (P_Access_Type_Definition): Add parsing for an anonymous access result
22572 subtype, plus parsing for null exclusions. Call Set_Result_Definition
22573 instead of Set_Subtype_Mark.
22575 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22576 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
22577 (Result_Definition): New function for N_Function_Specifications.
22578 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
22579 N_Function_Specification.
22580 (Set_Null_Exclusion_Present): Allow this flag for
22581 N_Function_Specification.
22582 (Set_Result_Definition): New procedure for N_Function_Specifications.
22583 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
22584 and N_Function_Specification.
22586 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
22587 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
22588 Add support for LIMITED NEW for Ada 2005 AI-419
22589 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
22590 syntax for anonymous access results.
22591 Replace Subtype_Mark field by Result_Definition in
22592 N_Function_Specification and N_Access_Definition specs.
22593 Add Null_Exclusion_Present to spec of N_Function_Specification.
22594 (Result_Definition): New function for N_Function_Specification and
22595 N_Access_Function_Definition.
22596 (Set_Result_Definition): New procedure for N_Function_Specification and
22597 N_Access_Function_Definition.
22599 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
22600 Result_Definition for cases of N_Access_Function_Definition and
22601 N_Function_Specification.
22602 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
22604 2005-09-01 Vincent Celier <celier@adacore.com>
22606 * lib-writ.adb: Update Copyright notice
22607 (Write_With_Lines): On platforms where file names are case-insensitive,
22608 record the file names in lower case.
22609 (Write_ALI): For D lines, on platforms where file names are
22610 case-insensitive, record the file names in lower case.
22612 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22613 Emmanuel Briot <briot@adacore.com>
22615 * lib-xref.adb (Output_Overridden_Op): Display information on
22616 overridden operation.
22618 * lib-xref.ads: Add documentation on overridden operations.
22620 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
22623 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
22624 overriding entity information.
22626 2005-09-01 Vincent Celier <celier@adacore.com>
22628 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
22629 including those that are inherited.
22631 2005-09-01 Robert Dewar <dewar@adacore.com>
22633 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
22635 * par-prag.adb: Implement new pragma Debug_Policy
22637 * sem_prag.adb Implement new pragma Debug_Policy
22638 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
22639 Component_Size attribute specification. Give warning for ignored pragma
22642 * snames.h, snames.ads, snames.adb: Introduce entries in
22643 Preset_Names for Name_Disp_Asynchronous_Select,
22644 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
22645 Name_Disp_Timed_Select.
22646 New pragma Debug_Policy
22648 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
22650 Switch -gnata also sets Debug_Pragmas_Enabled
22652 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
22653 handle an explicit -gnata when compiling predefined files.
22655 2005-09-01 Vincent Celier <celier@adacore.com>
22657 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
22658 directories of projects that have no Ada sources.
22660 2005-09-01 Robert Dewar <dewar@adacore.com>
22662 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
22663 (makes a difference for wide characters)
22665 * widechar.adb, widechar.ads:
22666 Add Wide_Char_Byte_Count feature to count chars vs bytes
22668 2005-09-01 Thomas Quinot <quinot@adacore.com>
22669 Ed Schonberg <schonberg@adacore.com>
22670 Robert Dewar <dewar@adacore.com>
22672 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
22673 'Address attribute reference with an overloaded prefix, use the
22674 location of the prefix (not the location of the attribute reference) as
22675 the error location.
22676 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
22677 a function renaming thereof, is a valid prefix for 'Size (where it is
22678 intepreted as a function call).
22679 (Statically_Denotes_Entity): New predicate to determine whether the
22680 prefix of an array attribute can be considered static.
22683 (Eval_Attr): Fix failure to evaluate Component_Size for
22684 unconstrained arrays (resulted in wrong value in packed case, since
22685 back end cannot handle this case)
22687 2005-09-01 Robert Dewar <dewar@adacore.com>
22689 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
22690 error msgs for most common cases.
22691 Use new errout insertion char < (conditional warning)
22693 2005-09-01 Javier Miranda <miranda@adacore.com>
22694 Ed Schonberg <schonberg@adacore.com>
22696 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
22697 become local to the whole package.
22698 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
22699 the package was already analyzed the new algorithm "replaces" the
22700 real entities by the shadow ones. This is required to ensure that
22701 the order of these entities in the homonym chains does not change;
22702 otherwise we can have undefined references at linking time because
22703 in case of conflicts the external name of the entities will have
22704 a suffix that depends on the order of the entities in the chain.
22705 (Remove_Limited_With_Clause): Complementary code that completes the
22706 new algorithm and replaces the shadow entities by the real ones.
22707 (Install_Limited_Withed_Unit): When unchaining entities before the
22708 installation of the shadow entities, only regular entities of the
22709 public part must be taken into account. This is required to
22710 keep this routine in synch with the work done by Remove_Limited_
22712 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
22713 even if unit is analyzed, because the analysis of the unit is
22714 idempotent in any case, and the limited view of the unit may have to
22715 be installed for proper visibility.
22716 (Expand_Limited_With_Clause): Even if the unit in the implicit
22717 with_clause has been analyzed already, a limited view of the package
22718 must be built for the current context, if it does not exist yet.
22720 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22721 Javier Miranda <miranda@adacore.com>
22722 Gary Dismukes <dismukes@adacore.com>
22724 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
22725 defining entity for the instance body, make a new defining identifier
22726 rather than copying the entity of the spec, to prevent accidental
22727 sharing of the entity list.
22728 (Check_Private_View): When exchanging views of private types, build the
22729 list of exchanged views as a stack, to ensure that on exit the exchanges
22730 are undone in the proper order.
22731 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
22732 Restore the compilation environment in case of instantiation_error.
22733 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
22734 for an anonymous access result.
22735 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
22736 (Formal_Entity): Handle properly the case of a formal package that
22737 denotes a generic package renaming.
22739 2005-09-01 Thomas Quinot <quinot@adacore.com>
22741 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
22742 clause if the array aggregate is surrounded by parentheses.
22744 2005-09-01 Cyrille Comar <comar@adacore.com>
22745 Gary Dismukes <dismukes@adacore.com>
22746 Ed Schonberg <schonberg@adacore.com>
22747 Javier Miranda <miranda@adacore.com>
22749 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
22751 to check if a type is Constrained in cases related to code generation
22752 (rather than semantic checking) since otherwise we do not generate
22753 similar code for mutable private types depending if their
22754 discriminants are visible or not.
22755 (Check_Abstract_Overriding): Do not complain about failure to override
22756 the primitive operations used in dispatching selects since they will
22757 always be overriden at the freeze point of the type.
22758 (Access_Definition): Separate out handling for resetting the scope
22759 of an anonymous access function result type. Retrieve the scope
22760 of the associated function rather than using Current_Scope, which
22761 does not have a consistent value (depends on whether we're in the
22762 middle of analyzing formal parameters). Add ??? comment about
22763 finding a cleaner way to handle the special cases of scope setting.
22764 (Process_Incomplete_Dependents): A protected operation is never a
22765 dispatching operation (only its wrapper may be).
22766 (Build_Derived_Record_Type): In case of tagged private types that
22767 implement interfaces add derivation of predefined primitive
22769 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
22770 by two parameters that are used in case of derivation from abstract
22771 interface types: No_Predefined_Prims is used to avoid the derivation
22772 of predefined primitives from the interface, and Predefined
22773 Prims_Only is used to complete the derivation predefined primitives
22774 in case of private tagged types implementing interfaces.
22775 Fix typo in comments
22776 (Find_Interface_In_Descendant): Protect the frontend against
22777 wrong code with large circularity chains.
22778 (Is_Private_Overriding): Add support for entities overriding interface
22779 subprograms. The test failed because Entities associated with overriden
22780 interface subprograms are always marked as hidden (and used to build
22781 the secondary dispatch table); in this case the overriden entity is
22782 available through the field abstract_interface_alias (cf. override_
22783 dispatching_operation)
22784 (Access_Definition): Set the scope of the type to Current_Scope for the
22785 case of a function with an anonymous access result type.
22786 (Access_Subprogram_Declaration): Handle creation of the type entity for
22787 an access-to-function type with an anonymous access result.
22788 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
22789 in handling for N_Access_Function_Definition.
22790 (Analyze_Subtype_Declaration): Modify the text of error message.
22791 (Derived_Type_Declaration): Modify the text of error message.
22792 (Process_Subtype): Modify the text of error message plus cleanup
22793 of one redundant error message.
22794 (Analyze_Component_Declaration): Code cleanup.
22795 (Analyze_Object_Declaration): Code cleanup.
22796 (Analyze_Subtype_Declaration): Propagate the null-exclusion
22797 attribute in case of access types. Code cleanup.
22798 (Array_Type_Declaration): Code cleanup.
22799 (Process_Discriminants): Create the new null-excluding itype
22800 if required. Code cleanup.
22801 (Process_Subtype): Create the new null-excluding itype if
22802 required. Code cleanup.
22803 (Build_Derived_Record_Type): Code cleanup to avoid calling
22804 twice the subprogram derive_subprograms in case of private
22805 types that implement interfaces. In this particular case the
22806 subprogram Complete_Subprograms_Derivation already does the
22807 job associated with the second call.
22809 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
22810 conversion to the full view when generating an operation for a
22811 discriminant whose type may currently be private.
22813 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22814 Javier Miranda <miranda@adacore.com>
22816 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
22817 V (Obj.F), the rewriting does not involve the indexed component, but
22818 only the selected component itself.
22819 Do not apply the transformation if the analyzed node is an actual of a
22820 call to another subprogram.
22821 (Complete_Object_Operation): Retain the entity of the
22822 dispatching operation in the selector of the rewritten node. The
22823 entity will be used in the expansion of dispatching selects.
22824 (Analyze_One_Call): Improve location of the error message associated
22826 (Analyze_Selected_Component): No need to resolve prefix when it is a
22827 function call, resolution is done when parent node is resolved, as
22829 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
22830 when attempting to resolve a call transformed from its object notation.
22831 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
22832 of the argument list for each interpretation of the operation.
22833 (Try_Object_Operation): The designated type of an access parameter may
22834 be an incomplete type obtained through a limited_with clause, in which
22835 case the primitive operations of the type are retrieved from its full
22837 (Analyze_Call): If this is an indirect call, and the return type of the
22838 access_to_subprogram is incomplete, use its full view if available.
22840 2005-09-01 Javier Miranda <miranda@adacore.com>
22841 Gary Dismukes <dismukes@adacore.com>
22843 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
22844 access types the null-exclusion and access-to-constant attributes must
22846 (Analyze_Return_Statement): When the result type is an anonymous access
22847 type, apply a conversion of the return expression to the access type
22848 to ensure that appropriate accessibility checks are performed.
22849 (Analyze_Return_Type): For the case of an anonymous access result type,
22850 generate the Itype and set Is_Local_Anonymous_Access on the type.
22851 Add ??? placeholder for check to disallow returning a limited object
22852 in Ada 2005 unless it's an aggregate or a result of a function call.
22853 Change calls from Subtype_Mark to Result_Definition.
22854 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
22855 Result_Definition in call to Make_Function_Specification.
22856 (Build_Body_To_Inline): Change Set_Subtype_Mark to
22857 Set_Result_Definition.
22858 (Make_Inequality_Operator): Change formal Subtype_Mark to
22859 Result_Definition in call to Make_Function_Specification.
22860 (Process_Formals): Create the new null-excluding itype if required.
22861 (New_Overloaded_Entity): For an entity overriding an interface primitive
22862 check if the entity also covers other abstract subprograms in the same
22863 scope. This is required to handle the general case, that is, overriding
22864 other interface primitives and overriding abstract subprograms inherited
22865 from some abstract ancestor type.
22866 (New_Overloaded_Entity): For an overriding entity that comes from
22867 source, note the operation that it overrides.
22868 (Check_Conformance, Type_Conformant): Addition of one new formal
22869 to skip controlling formals in the analysis. This is used to
22870 handle overloading of abstract interfaces.
22871 (Base_Types_Match): Add missing case for types imported from
22872 limited-with clauses
22873 (New_Overloaded_Entity): Add barrier to protect the use of
22874 the "alias" attribute.
22876 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22878 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
22879 verify that the procedure and the entry are mode conformant.
22880 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
22881 as a different operator, which is often a cut-and-paste error.
22883 2005-09-01 Javier Miranda <miranda@adacore.com>
22884 Ed Schonberg <schonberg@adacore.com>
22886 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
22887 used in controlling parameters exclude null because it is necessary to
22888 read the tag to dispatch, and null has no tag.
22889 (Override_Dispatching_Operation): If the previous operation is inherited
22890 from an interface, it becomes hidden and does not participate in later
22893 2005-09-01 Javier Miranda <miranda@adacore.com>
22894 Ed Schonberg <schonberg@adacore.com>
22895 Gary Dismukes <dismukes@adacore.com>
22897 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
22898 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
22899 the expander will generate the corresponding run-time check to evaluate
22901 (Resolve_Call): Check for legal type of procedure name or prefix that
22902 appears as a trigger in a triggering alternative.
22903 (Valid_Conversion): If expression is ambiguous and the context involves
22904 an extension of System, remove System.Address interpretations.
22905 (Resolve_Qualified_Expression): Reject the case of a specific-type
22906 qualification applied to a class-wide argument. Enhance comment
22907 to explain checking of Original_Node.
22908 (Resolve_Type_Conversion): The location of the error message was not
22909 general enough to handle the general case and hence it has been removed.
22910 In addition, this patch improves the text of the message.
22911 (Resolve_Type_Conversion): Add missing support for access to interface
22913 (Resolve_Type_Conversion): If the target is a class-wide interface type,
22914 do not expand if the expression is the actual in a call, because proper
22915 expansion will take place when the call itself is expanded.
22916 (Resolve_Allocator): If the context is an unchecked conversion, the
22917 allocator inherits its storage pool, if any, from the target type of
22920 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22921 Javier Miranda <miranda@adacore.com>
22923 * sem_type.adb (Add_One_Interp): If a candidate operation is an
22924 inherited interface operation that has an implementation, use the
22925 implementation to avoid spurious ambiguities.
22926 (Interface_Present_In_Ancestor): In case of concurrent types we can't
22927 use the Corresponding_Record_Typ attribute to look for the interface
22928 because it is set by the expander (and hence it is not always
22929 available). For this reason we traverse the list of interfaces
22930 (available in the parent of the concurrent type).
22931 (Interface_Present_In_Ancestor): Handle entities from the limited view
22933 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22935 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
22936 from the list of required components.
22937 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
22938 primitive procedure of a limited interface with a controlling first
22940 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
22942 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
22943 capture if it is generated in the second operand of a short-circuit
22945 Do not capture values for variables with address clauses.
22946 (Is_Object_Reference): Treat a function call as an object reference only
22947 if its type is not Standard_Void_Type.
22949 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22951 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
22952 to a variable that is statically known to be constant.
22954 2005-09-01 Geert Bosch <bosch@adacore.com>
22955 Robert Dewar <dewar@adacore.com>
22957 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
22958 (VAXGF_Safe_First): Idem.
22960 2005-09-01 Robert Dewar <dewar@adacore.com>
22961 Arnaud Charlet <charlet@adacore.com>
22963 * g-dirope.ads: Minor reformatting
22964 Document that bounds of result of Base_Name match the input index
22966 Add documentation on environment variable syntax for Expand_Path
22968 * gnat_ugn.texi: Update documentation to include mention of -m switches
22969 Document new treatment of wide characters in max line length
22971 Remove -gnatL/-gnatZ switches, no longer used.
22972 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
22975 * gnat_rm.texi: Add doc for two argument form of pragma
22976 Float_Representation.
22977 Add documentation for pragma No_Strict_Aliasing
22978 Add note that explicit component clause overrides pragma Pack.
22979 Add documentation of pragma Debug_Policy
22981 2005-09-01 Matthew Heaney <heaney@adacore.com>
22983 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
22984 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
22985 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
22986 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
22987 draft (Draft 13, August 2005) of Ada Amendment 1.
22989 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22991 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
22992 Note that the platform-specific version of g-soccon.ads for VMS is now
22993 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
22994 really is a package spec).
22995 Replace s-taspri-linux.ads by s-taspri-posix.ads
22996 Remove references to s-mastop-x86.adb
22998 * system-vxworks-xscale.ads: Removed, no longer used.
22999 * s-vxwork-xscale.ads: Removed, no longer used.
23001 2005-09-01 Robert Dewar <dewar@adacore.com>
23003 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
23004 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
23005 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
23006 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
23007 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
23008 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
23009 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
23010 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
23011 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
23012 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
23013 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
23014 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
23015 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
23016 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
23017 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
23018 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
23019 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
23020 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
23021 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
23022 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
23023 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
23025 2005-08-29 Arnaud Charlet <charlet@adacore.com>
23029 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
23031 2005-08-29 Arnaud Charlet <charlet@adacore.com>
23032 Doug Rupp <rupp@adacore.com>
23034 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
23036 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
23037 this code in the GNAT run-time.
23039 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
23042 * init.c (__gnat_error_handler [many]): Mark "msg" as const
23043 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
23045 (__gnat_inside_elab_final_code): Moved here from
23046 Standard_Library and only defined for the compiler.
23047 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
23048 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
23049 using RTPs because directly vectored Interrupt routines are not
23050 supported on this configuration.
23051 (getpid): Do not redefine this function on VxWorks when using RTPs
23052 because this primitive is well supported by the RTP libraries.
23053 (copy_msg): Correct the code that checks for buffer overflow.
23054 Discovered during code reading.
23056 2005-08-29 Olivier Hainque <hainque@adacore.com>
23058 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
23059 a library level mutable variable with an initializer, tell
23060 build_allocator to ignore the initializer's size. It may not be large
23061 enough for all the values that might be assigned to the variable later
23064 2005-08-29 Arnaud Charlet <charlet@adacore.com>
23065 Eric Botcazou <ebotcazou@adacore.com>
23067 * trans.c: Protect < in error msg with quote
23068 Replace GCC_ZCX by Back_End_Exceptions.
23069 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
23070 has been sufficiently aligned in the record.
23072 2005-08-15 James E. Wilson <wilson@specifix.com>
23074 * system-linux-alpha.ads: Change ia64 to alpha.
23076 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
23078 * decl.c, utils.c: Fix comment typos.
23080 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
23082 * decl.c, init.c, initialize.c: Fix comment typos.
23084 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
23086 Make CONSTRUCTOR use VEC to store initializers.
23087 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
23089 * trans.c (extract_values): Likewise.
23090 * utils.c (convert, remove_conversions): Likewise.
23091 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
23092 gnat_build_constructor): Likewise.
23094 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
23096 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
23098 (compare_field_bitpos): Likewise.
23100 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
23102 * utils.c (create_var_decl): Only set DECL_COMMON on
23103 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
23104 VAR_OR_FUNCTION_DECL_P.
23106 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
23108 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
23111 2005-07-07 Pascal Obry <obry@adacore.com>
23113 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
23114 returned type on Windows.
23116 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
23119 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
23120 exception in this case.
23121 Simplify the code as "Image (Image'Range)" = "Image".
23123 2005-07-07 Vincent Celier <celier@adacore.com>
23125 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
23126 the destructor/constructor attributes for <lib>final/<lib>init.
23128 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
23130 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
23132 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
23133 type if the parameter is not passed by copy but reference by default.
23135 2005-07-07 Javier Miranda <miranda@adacore.com>
23137 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
23138 Reimplementation of the support for abstract interface types in order
23139 to leave the code more clear and easy to maintain.
23141 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
23142 abstract interface types in order to leave the code clearer and easier
23145 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
23146 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
23147 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
23148 appropriate entry of the secondary dispatch table.
23149 (Make_DT): Add code to inherit the secondary dispatch tables of
23152 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
23153 implementing both functionalities by means of a common routine, each
23154 routine has its own code.
23156 2005-07-07 Javier Miranda <miranda@adacore.com>
23158 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
23160 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
23163 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
23166 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
23167 use of tag incomplete types.
23169 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
23170 give support to tagged incomplete types.
23172 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
23173 expression is a discriminant reference and its type is private, as can
23174 happen within a stream operation for a mutable record, use the full
23175 view of the type to resolve the case alternatives.
23176 (Analyze_Assignment): Check wrong dereference of incomplete types.
23178 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
23181 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
23184 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
23185 N_Incomplete_Type_Declaration nodes.
23187 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
23188 Tag_Present to give support to tagged incomplete types:
23190 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
23193 2005-07-07 Olivier Hainque <hainque@adacore.com>
23196 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
23197 definitions for the Unwind wrappers in the compiler case.
23199 2005-07-07 Ed Schonberg <schonberg@adacore.com>
23200 Javier Miranda <miranda@adacore.com>
23202 * par-load.adb (Load): If a child unit is loaded through a limited_with
23203 clause, each parent must be loaded as a limited unit as well.
23205 * sem_ch10.adb (Previous_Withed_Unit): Better name for
23206 Check_Withed_Unit. Return true if there is a previous with_clause for
23207 this unit, whether limited or not.
23208 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
23210 (Is_Visible_Through_Renamings): New local subprogram of install_limited
23211 _withed_unit that checks if some package installed through normal with
23212 clauses has a renaming declaration of package whose limited-view is
23213 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
23214 of the current Draft document for Ada 2005.
23215 (Analyze_Context): Complete the list of compilation units that
23216 are allowed to contain limited-with clauses. It also contains
23217 checks that were previously done by Install_Limited_Context_Clauses.
23218 This makes the code more clear and easy to maintain.
23219 (Expand_Limited_With_Clause) It is now a local subprogram of
23220 Install_Limited_Context_Clauses, and contains the code that adds
23221 the implicit limited-with clauses for parents of child units.
23222 This functionality was prevously done by Analyze_Context.
23224 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
23227 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
23228 been erroneously named in a limited-with clause of its own context.
23229 In this case the error has been previously notified by Analyze_Context.
23231 2005-07-07 Ed Schonberg <schonberg@adacore.com>
23233 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
23234 generic package that contains local declarations with the same name.
23235 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
23237 2005-07-07 Bernard Banner <banner@adacore.com>
23239 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
23240 ia64 platform only on platforms that you the GCC unwind library
23241 rather than the system unwind library.
23243 2005-07-07 Thomas Quinot <quinot@adacore.com>
23245 * expect.c: Minor reformatting
23247 2005-07-07 Sergey Rybin <rybin@adacore.com>
23249 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
23252 * gnat_ugn.texi: Add description for new gnatpp option
23255 2005-07-04 Thomas Quinot <quinot@adacore.com>
23257 * g-expect-vms.adb, g-expect.ads, g-expect.adb
23258 (Get_Command_Output): New subprogram to launch a process and get its
23259 standard output as a string.
23261 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
23262 Olivier Hainque <hainque@adacore.com>
23264 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
23265 fetch a code-range descriptor associated with the machine state. On
23266 failure set the machine state's PC to 0; on success, pass the
23267 descriptor to exc_virtual_unwind.
23269 * init.c (Tru64 section): New function __gnat_set_code_loc.
23271 2005-07-04 Vincent Celier <celier@adacore.com>
23273 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
23274 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
23275 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
23276 Remove all auto-initialization code, as this is now done through the
23277 constructor mechanism.
23279 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
23280 __gnat_sals_init_using_constructors): New functions.
23282 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
23283 Linker_Constructor and Linker_Destructor when switch -a is used.
23285 * bindusg.adb: Add line for new switch -a
23287 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
23288 (Gnatbind): When switch -a is used, check if it is allowed
23290 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
23292 2005-07-04 Joel Brobecker <brobecker@adacore.com>
23294 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
23295 This prevents us from hitting a limitation during the debug info
23296 generation when using stabs.
23297 (Prims_Ptr): Likewise.
23299 2005-07-04 Gary Dismukes <dismukes@adacore.com>
23300 Ed Schonberg <schonberg@adacore.com>
23301 Javier Miranda <miranda@adacore.com>
23303 * checks.adb (Null_Exclusion_Static_Checks): In the case of
23304 N_Object_Declaration, only perform the checks if the Object_Definition
23305 is not an Access_Definition.
23307 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
23308 where the parent of an the access definition is an N_Object_Declaration
23309 when determining the Associated_Node_For_Itype and scope of an
23310 anonymous access-to-subprogram type.
23312 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
23313 Corresponding_Spec on the body created for a null procedure. Add ???
23314 comment. Remove New_Copy_Tree call on body argument to
23315 Set_Body_To_Inline.
23317 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
23318 discriminants, use the type of the actual as well, because the
23319 discriminants may be read by the called subprogram.
23321 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
23322 access type we do not need to handle non-limited views.
23323 (Build_Derived_Record_Type): Additional check to check that in case of
23324 private types, interfaces are only allowed in private extensions.
23326 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
23328 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
23329 <Pragma_Linker_Destructor>: Likewise.
23331 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
23332 Pragma_Linker_Destructor.
23334 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
23335 ATTR_LINK_DESTRUCTOR.
23336 (static_ctors, static_dtors): New variables.
23338 * misc.c (gnat_expand_body): Output current function as constructor
23339 and destructor if requested.
23341 * par-prag.adb: Add processing for pragma Linker_Constructor and
23344 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
23345 extracted from Check_Interrupt_Or_Attach_Handler.
23346 (Check_Interrupt_Or_Attach_Handler): Invoke it.
23347 Implement pragma Linker_Constructor and Linker_Destructor with the
23348 help of Find_Unique_Parameterless_Procedure.
23349 Replace Name_Alias with Name_Target for pragma Linker_Alias.
23351 * snames.h, snames.ads, snames.adb:
23352 Add Name_Linker_Constructor and Name_Linker_Destructor.
23353 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
23354 * snames.adb: Remove Name_Alias.
23356 * trans.c: Include cgraph.h.
23357 (build_global_cdtor): New function.
23358 (Compilation_Unit_to_gnu): Build global constructor and destructor if
23360 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
23362 (addressable_p) <COMPONENT_REF>: Unconditionally test
23363 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
23365 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
23366 variable if it is external.
23368 (static_ctors, static_dtors): New global variables.
23369 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
23370 <ATTR_LINK_DESTRUCTOR>: Likewise.
23371 (end_subprog_body): Chain function as constructor and destructor
23374 * exp_util.adb (Force_Evaluation): Unconditionally invoke
23375 Remove_Side_Effects with Variable_Ref set to true.
23376 (Remove_Side_Effects): Handle scalar types first. Use a renaming
23377 for non-scalar types even if Variable_Ref is true and for class-wide
23380 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23382 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
23383 to prevent spurious warnings.
23385 2005-07-04 Thomas Quinot <quinot@adacore.com>
23387 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
23388 Itypes. Itypes are really unexpected there.
23389 (Build_TypeCode_Function): Generalise special processing for Itypes to
23390 handle the case of numeric implicit base types as well as enumerated
23393 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23395 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
23396 controlled, indicate the expected type of the dereference that is
23397 created for the call to Deep_Finalize, to prevent spurious errors when
23398 the designated type is private and completed with a derivation from
23399 another private type.
23401 2005-07-04 Vincent Celier <celier@adacore.com>
23403 * make.adb (Change_To_Object_Directory): When unable to change the
23404 current dir to the object directory, output the full path of the
23407 2005-07-04 Matthew Gingell <gingell@adacore.com>
23409 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
23411 * indepsw-linux.adb: Replace by...
23413 * indepsw-gnu.adb: ...this new file
23415 2005-07-04 Vincent Celier <celier@adacore.com>
23417 * mlib-prj.adb (Auto_Initialize): New constant String
23418 (SALs_Use_Constructors): New Boolean function
23419 (Build_Library): Call gnatbind with Auto_Initialize switch when
23420 SALs_Use_Constructors returns True.
23422 * mlib-tgt.ads: Minor reformatting
23424 * mlib-utl.ads: Minor reformatting
23426 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
23428 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23430 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
23431 single protected declarations can have an interface list.
23432 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
23433 with seriously malformed entry declarations, and lead to compilation
23434 abandoned messages.
23436 2005-07-04 Javier Miranda <miranda@adacore.com>
23438 * par-load.adb: Load the context items in two rounds.
23440 2005-07-04 Robert Dewar <dewar@adacore.com>
23442 * scng.adb: Do not consider Mod used as an attribute to be a keyword
23444 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23445 Javier Miranda <miranda@adacore.com>
23447 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
23448 type extension needs a limited view.
23449 Remove previous restriction on private types available through the
23450 limited-view (only tagged private types were previously allowed).
23451 (Install_Withed_Unit): In the code that implements the
23452 legality rule given in AI-377, exclude a child unit with the name
23453 Standard, because it is a homonym of the Standard environment package.
23455 2005-07-04 Thomas Quinot <quinot@adacore.com>
23457 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
23458 overloaded function call, carry interpretations from the original tree
23461 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23463 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
23464 types check whether some designated type is a limited view, and use
23465 the non-limited view if available.
23467 2005-07-04 Gary Dismukes <dismukes@adacore.com>
23469 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
23470 constraint of full view of a private view T1 if present, when T2 is a
23471 discriminated full view.
23473 2005-07-04 Thomas Quinot <quinot@adacore.com>
23475 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
23476 actual that is a view conversion of a bit packed array reference.
23478 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23480 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
23481 present before checking whether an interface type covers a synchronized
23484 2005-07-04 Ed Schonberg <schonberg@adacore.com>
23486 * sem_util.adb (Is_Object_Reference): An indexed or selected component
23487 whose prefix is an implicit dereference is an object reference. Removes
23488 spurious errors when compiling with -gnatc.
23490 2005-07-04 Robert Dewar <dewar@adacore.com>
23493 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
23495 2005-07-04 Matthew Gingell <gingell@adacore.com>
23497 * tracebak.c: Enable tracebacks on ia64 platforms
23499 2005-07-04 Vincent Celier <celier@adacore.com>
23501 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
23502 the GNAT BIND command, as gnatbind accepts multiples ALI files with
23503 the -L or -n switches.
23505 2005-07-04 Vincent Celier <celier@adacore.com>
23507 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
23508 correctly computed and the main project data is not modified while
23510 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
23511 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
23512 c++linker as this does not work on some platforms.
23514 2005-07-04 Matthew Heaney <heaney@adacore.com>
23516 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
23518 * a-coinve.adb: Perform constraint checks explicitly.
23520 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23521 Thomas Quinot <quinot@adacore.com>
23523 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
23524 new target gen-soccon.
23526 2005-07-04 Robert Dewar <dewar@adacore.com>
23528 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
23530 2005-07-04 Thomas Quinot <quinot@adacore.com>
23532 * g-socket.ads (Check_Selector): Minor rewording of comment.
23534 2005-07-04 Vincent Celier <celier@adacore.com>
23536 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
23538 2005-07-04 Thomas Quinot <quinot@adacore.com>
23540 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
23542 2005-07-04 Sergey Rybin <rybin@adacore.com>
23544 * gnat_ugn.texi: Add description of --eol gnatpp option
23546 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
23547 Thomas Quinot <quinot@adacore.com>
23549 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
23550 if the user wants all calls of a subprogram to be flagged,
23551 independently of whether they are made from within the same unit or
23553 Mention restriction for pragma Linker_Alias on some platforms.
23554 Document pragma Linker_Constructor and Linker_Destructor.
23555 Rewrite documentation of Weak_External, Linker_Section and
23556 Linker_Alias pragmas.
23558 2005-07-04 Arnaud Charlet <charlet@adacore.com>
23560 * s-stausa.ads, s-stausa.adb: New files.
23562 2005-06-30 Kelley Cook
23564 * all files: Update FSF address in copyright headers.
23565 * gen-soccon.co (main): Output new FSF address in generated files.
23567 2005-06-28 Paul Brook <paul@codesourcery.com>
23569 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
23571 2005-06-14 Olivier Hainque <hainque@adacore.com>
23572 Eric Botcazou <ebotcazou@adacore.com>
23574 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
23575 exc_unwind, now that we are generating proper .debug_frame output for
23578 * tracebak.c: Remove the mips-irix section, as we are now using the
23579 s-mastop based unwinder again.
23580 Under SPARC/Solaris, take into account the stack bias to compute the
23581 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
23584 2005-06-14 Doug Rupp <rupp@adacore.com>
23586 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
23588 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
23590 2005-06-14 Pascal Obry <obry@adacore.com>
23592 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
23593 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
23594 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
23597 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
23598 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
23599 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
23600 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23601 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
23602 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
23603 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
23604 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
23605 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
23606 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
23607 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
23608 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
23609 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
23610 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
23611 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
23612 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
23613 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
23614 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
23615 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
23616 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
23617 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
23618 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
23619 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
23620 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
23621 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
23622 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
23623 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
23624 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
23625 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
23626 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
23627 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
23628 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
23629 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
23630 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
23631 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
23632 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
23633 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
23634 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
23635 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
23636 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
23637 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
23638 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
23639 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
23640 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
23641 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
23642 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
23643 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
23644 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
23645 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
23646 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
23647 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23648 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
23649 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
23650 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
23651 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
23652 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23653 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
23654 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
23655 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
23656 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
23657 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
23658 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
23659 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
23660 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
23661 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
23662 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
23663 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
23664 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
23665 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
23666 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
23667 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
23668 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
23669 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
23670 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
23671 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
23672 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
23673 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
23674 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
23675 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
23676 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
23677 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
23678 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
23679 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
23680 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
23681 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
23682 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
23683 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
23684 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
23685 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
23686 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
23687 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
23688 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
23689 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
23690 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
23691 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
23692 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
23693 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
23694 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
23695 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
23696 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
23697 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
23698 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
23699 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
23700 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
23701 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
23702 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
23703 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
23704 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
23705 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
23706 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
23707 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
23708 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
23709 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23710 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
23711 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
23712 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
23713 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
23714 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
23715 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
23716 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
23717 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
23718 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
23719 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
23720 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
23721 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
23722 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
23723 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
23724 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
23725 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
23726 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
23727 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
23728 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
23729 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
23731 2005-06-14 Jose Ruiz <ruiz@adacore.com>
23732 Arnaud Charlet <charlet@adacore.com>
23734 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
23735 longer protected objects. They have been replaced by lower-level
23736 suspension objects made up by a mutex and a condition variable (or
23737 their equivalent given a particular OS) plus some internal data to
23738 reflect the state of the suspension object.
23739 (Initialize, Finalize): Add this initialization procedure for
23740 Suspension_Object, which is a controlled type.
23741 (Finalize): Add the finalization procedure for Suspension_Object,
23742 which is a controlled type.
23744 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
23745 Ada.Synchronous_Task_Control because there is no longer a need for a
23746 VxWorks specific version of this package. Target dependencies
23747 has been moved to System.Task_Primitives.Operations.
23749 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
23751 (InitializeCriticalSection, EnterCriticalSection,
23752 LeaveCriticalSection, DeleteCriticalSection): Replace the type
23753 pCriticalSection by an anonymous access type so that we avoid problems
23754 of accessibility to local objects.
23756 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
23757 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23758 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
23759 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
23760 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
23761 set the environment task mask here.
23762 (Current_State): Add this function that returns the state of the
23764 (Set_False): Add this procedure that sets the state of the suspension
23766 (Set_True): Add this procedure that sets the state of the suspension
23767 object to True, releasing the task that was suspended, if any.
23768 (Suspend_Until_True): Add this procedure that blocks the calling task
23769 until the state of the object is True. Program_Error is raised if
23770 another task is already waiting on that suspension object.
23771 (Initialize): Add this procedure for initializing the suspension
23772 object. It initializes the mutex and the condition variable which are
23773 used for synchronization and queuing, and it sets the internal state
23775 (Finalize): Add this procedure for finalizing the suspension object,
23776 destroying the mutex and the condition variable.
23778 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23779 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
23780 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
23781 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
23782 which provides a low-level abstraction (using operating system
23783 primitives) for Ada.Synchronous_Task_Control.
23784 This object is made up by a mutex (for ensuring mutual exclusion), a
23785 condition variable (for queuing threads until the condition is
23786 signaled), a Boolean (State) indicating whether the object is open,
23787 and a Boolean (Waiting) reflecting whether there is a task already
23788 suspended on this object.
23790 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
23791 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
23792 s-intman-vms.ads, s-intman-mingw.adb,
23793 (Initialize_Interrupts): Removed, no longer used.
23795 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
23796 (Setup_Interrupt_Mask): New procedure.
23798 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
23800 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
23802 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
23803 this is no longer done in the body of s-taprop
23804 (Server_Task): Explicitely test for Pending_Action in case
23805 System.Parameters.No_Abort is True.
23807 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
23808 is no longer done in the body of s-taprop
23810 2005-06-14 Robert Dewar <dewar@adacore.com>
23812 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
23813 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
23814 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23815 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
23816 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
23817 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
23818 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
23819 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
23820 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
23821 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
23822 system-linux-hppa.ads, system-vms_64.ads,
23823 system-vxworks-alpha.ads: Minor comment update for
23824 AI-362 (unit is Pure).
23826 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
23827 Add pragma Pure_05 for AI-362
23828 Make remaining conversion functions obsolescent in Ada 95
23830 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23831 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
23832 Add entries for a-wichun and a-zchuni
23833 Add a-widcha a-zchara for AI-395
23834 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
23836 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23837 Add entries for a-wichun.o and a-zchuni.o
23838 Entries for a-widcha.o and a-zchara.o
23839 Add entry for a-chacon.o
23841 * a-ztenau.adb: Add with of Ada.Characters.Conversions
23843 * a-chacon.ads, a-chacon.adb: New files.
23845 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
23846 categorization violations.
23848 * a-strmap.ads: Add pragma Pure_05 for AI-362
23849 * a-strmap.ads: Add note on implicit categorization for AI-362
23851 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
23853 * par-prag.adb: Dummy entry for pragma Persistent_BSS
23854 Set Ada_Version_Explicit, for implementation of AI-362
23855 Add processing for pragma Pure_05 and Preelaborate_05
23856 Add entry for Assertion_Policy pragma
23858 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
23859 when needed for proper processing of categorization stuff
23862 For several cases, make errors in preealborate units warnings,
23863 instead of errors, if GNAT_Mode is set. For AI-362.
23865 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
23866 preelaborate unit is now warning if in GNAT mode
23868 * s-stoele.ads: Document AI-362 for pragma preelaborate
23870 2005-06-14 Doug Rupp <rupp@adacore.com>
23872 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
23873 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
23874 Default_Exception_Msg_Max_Length: new parameter.
23876 * a-except.ads: (Exception_Msg_Max_Length): Set to
23877 System.Parameters.Default_Exception_Msg_Max_Length
23878 Add pragma Preelaborate_05 for AI-362
23879 Add warnings off to allow categorization violations for AI-362
23881 2005-06-14 Vincent Celier <celier@adacore.com>
23883 * gnatsym.adb: Adapt to modification of package Symbols: procedure
23884 Process is now in package Processing.
23886 * symbols.ads, symbols.adb:
23887 (Processing): New package, containing procedure Process
23889 * symbols-vms-alpha.adb:
23890 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
23892 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
23893 symbols-processing-vms-ia64.adb: New files.
23895 2005-06-14 Pascal Obry <obry@adacore.com>
23897 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
23898 implementation. This new version generates the proper DllMain routine
23899 to initialize the SAL. The DllMain is generated in Ada and compiled
23900 before being added as option to the library build command.
23902 2005-06-14 Doug Rupp <rupp@adacore.com>
23903 Pascal Obry <obry@adacore.com>
23905 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
23906 call to decc$translate_vms.
23907 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
23908 need to remove those quotes before catenating the filename.
23909 (__gnat_locate_exec_on_path): improvements to the Win32 section:
23910 * avoid allocating the memory twice for better efficiency;
23911 * allocate 32K buffer for environment expansion as suggested by MSDN;
23912 * prepend ".;" to the path so that current directory is searched too.
23914 2005-06-14 Robert Dewar <dewar@adacore.com>
23916 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
23917 instead of raising CE (AI-241)
23918 Add warnings off to allow categorization violations for AI-362
23920 2005-06-14 Robert Dewar <dewar@adacore.com>
23922 * ali-util.adb, gnatbind.adb: Remove references to
23923 Force_RM_Elaboration_Order.
23925 * switch-b.adb: Remove recognition of -f switch
23927 2005-06-14 Pascal Obry <obry@adacore.com>
23929 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
23930 implementation which is slightly more efficient.
23932 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23933 Javier Miranda <miranda@adacore.com>
23934 Ed Schonberg <schonberg@adacore.com>
23935 Hristian Kirtchev <kirtchev@adacore.com>
23937 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
23938 allocator's designated type is a class-wide type, and compiling for
23939 Ada 2005, emit a run-time check that the accessibility level of the
23940 type given in the allocator's expression is not deeper than the level
23941 of the allocator's access type.
23943 (Tagged_Membership): Modified to gives support to abstract interface
23946 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
23948 (Descendant_Tag): New predefined function
23949 (Is_Descendant_At_Same_Level): New predefined function
23950 (Get_Access_Level): New private function
23951 (Set_Access_Level): New private procedure
23952 (IW_Membership): New function. Given the tag of an object and the tag
23953 associated with an interface, evaluate if the object implements the
23955 (Register_Interface_Tag): New procedure used to initialize the table of
23956 interfaces used by the IW_Membership function.
23957 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
23958 of the dispatch table.
23959 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
23960 table of interfaces of the parent.
23961 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
23962 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
23963 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
23964 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
23965 Ada 2005 semantics for the new predefined function.
23967 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
23968 call to Descendant_Tag rather than Internal_Tag.
23969 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
23970 the accessibility level of the attribute's Item parameter is not deeper
23971 than the level of the attribute's prefix type. Tag_Error is raised if
23972 the check fails. The check is only emitted for Ada_05.
23973 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
23974 requested stream attribute, use it.
23975 (Expand_N_Attribute_Reference): If the designated type is an interface
23976 then rewrite the referenced object as a conversion to force the
23977 displacement of the pointer to the secondary dispatch table.
23978 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
23979 is a dereference of an object with a constrained partial view.
23981 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
23982 type is a class-wide type, emit a run-time check that the accessibility
23983 level of the returned object is not deeper than the level of the
23984 function's master (only when compiling for Ada 2005).
23986 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
23987 Action_Nb_Arg): Add entries for new Get_Access_Level and
23988 Set_Access_Level routines in these tables.
23989 (Make_DT): Generate a call to set the accessibility level of the
23990 tagged type in its TSD.
23991 (Make_DT): Code cleanup. The functionality of generating all the
23992 secondary dispatch tables has been moved to freeze_record_type.
23993 (Make_Abstract_Interface_DT): Minor code cleanup.
23994 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
23995 this subprogram implements a new algorithm that provides the
23996 same functionality and it is more clear in case of primitives
23997 associated with abstract interfaces.
23998 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
23999 clean up, the functionality of this subprogram is now provided
24000 by Set_All_DT_Position.
24001 (Write_DT): New subprogram: a debugging procedure designed to be called
24002 within gdb to display the dispatch tables associated with a tagged
24004 (Collect_All_Interfaces): New subprogram that collects the whole list
24005 of interfaces that are directly or indirectly implemented by a tagged
24007 (Default_Prim_Op_Position): New subprogram that returns the fixed
24008 position in the dispatch table of the default primitive operations.
24009 (Expand_Interface_Actuals): New subprogram to generate code that
24010 displaces all the actuals corresponding to class-wide interfaces to
24011 reference the interface tag of the actual object.
24012 (Expand_Interface_Conversion): New subprogram. Reference the base of
24013 the object to give access to the interface tag associated with the
24014 secondary dispatch table.
24015 (Expand_Interface_Thunk): New subprogram that generates the code of the
24016 thunk. This is required for compatibility with the C+ ABI.
24017 (Make_Abstract_Interface_DT): New subprogram that generate the
24018 declarations for the secondary dispatch tables associated with an
24019 abstract interface.
24020 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
24021 attribute for each primitive operation covering interface subprograms
24022 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
24023 These subprograms were upgraded to give support to abstract interfaces
24025 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
24026 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
24027 RE_Set_Access_Level.
24028 (RE_Unit_Table): Add entries for new Ada.Tags operations.
24029 Add support to call the followig new run-time subprograms:
24030 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
24032 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
24033 match its full declaration when both have an access definition with
24034 statically matching designated subtypes.
24035 (Analyze_Component_Declaration): Delete commented out code that was
24036 incorrectly setting the scope of an anonymous access component's type.
24037 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
24038 an access discriminant when the containing type is nonlimited.
24039 (Make_Incomplete_Type_Declaration): Create an incomplete type
24040 declaration for a record type that includes self-referential access
24042 (Check_Anonymous_Access_Types): Before full analysis of a record type
24043 declaration, create anonymous access types for each self-referential
24045 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
24046 an access component in this context is a Local_Anonymous_Access, for
24047 proper accessibility checks.
24048 (Access_Definition): Set properly the scope of the anonymous access type
24049 created for a stand-alone access object.
24050 (Find_Type_Of_Object): An object declaration may be given with an access
24052 (Complete_Subprograms_Derivation): New subprogram used to complete
24053 type derivation of private tagged types implementing interfaces.
24054 In this case some interface primitives may have been overriden
24055 with the partial-view and, instead of re-calculating them, they
24056 are included in the list of primitive operations of the full-view.
24057 (Build_Derived_Record_Type): Modified to give support to private
24058 types implemening interfaces.
24059 (Access_Definition): Reject ALL on anonymous access types.
24060 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
24061 type derivation to occur at a deeper accessibility level than the
24063 For the case of derivation within a generic body however, disallow the
24064 derivation if the derived type has an ancestor that is a formal type
24065 declared in the formal part of an enclosing generic.
24066 (Analyze_Object_Declaration): For protected objects, remove the check
24067 that they cannot contain interrupt handlers if not declared at library
24069 (Add_Interface_Tag_Components): New subprogram to add the tag components
24070 corresponding to all the abstract interface types implemented by a
24071 record type or a derived record type.
24072 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
24073 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
24074 Process_Full_View, Record_Type_Declaration): Modified to give
24075 support to abstract interface types
24076 (Collect_Interfaces): New subprogram that collects the list of
24077 interfaces that are not already implemented by the ancestors
24078 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
24079 when partial view has no discriminants and full view has defaults.
24080 (Constrain_Access): Reject a constraint on a general access type
24081 if the discriminants of the designated type have defaults.
24082 (Access_Subprogram_Declaration): Associate the Itype node with the inner
24083 full-type declaration or subprogram spec. This is required to handle
24084 nested anonymous declarations.
24085 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
24086 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
24087 Process_Full_View, Record_Type_Declaration): Modified to give
24088 support to abstract interface types
24089 (Derive_Subprograms): Addition of a new formal to indicate if
24090 we are in the case of an abstact-interface derivation
24091 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
24092 to the specification because it is requied to analyze all the
24093 identifiers found in a list of interfaces
24095 * debug.adb: Complete documentation of flag "-gnatdZ"
24097 * exp_ch3.adb: Implement config version of persistent_bss pragma
24098 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
24099 testing for TSS presence to properly enforce visibility rules.
24100 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
24101 Make_Abstract_Interfaces_DT to generate the secondary tables
24102 associated with abstract interfaces.
24103 (Build_Init_Procedure): Modified to initialize all the tags
24105 (Component_Needs_Simple_Initialization): Similar to other tags,
24106 interface tags do not need initialization.
24107 (Freeze_Record_Type): Modified to give support to abstract interface
24109 (Expand_N_Object_Declaration): Do not generate an initialization for
24110 a scalar temporary marked as internal.
24112 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
24113 in-out parameter that is a component in an initialization procedure,
24114 whose constraint might depend on discriminants, and that may be
24115 misaligned because of packing or representation clauses.
24116 (Is_Legal_Copy): New predicate to determine whether a possibly
24117 misaligned in-out actual can actually be passed by copy/return. This
24118 is an error in case the type is by_reference, and a warning if this is
24119 the consequence of a DEC import pragma on the subprogram.
24120 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
24122 (Expand_Inlined_Call): Mark temporary generated for the return value as
24123 internal, so that no useless scalar normalization is generated for it.
24124 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
24125 null procedure can always be inlined.
24126 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
24127 procedure, generate an explicit empty body for it.
24129 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
24130 Given a type implementing an interface, returns the corresponding
24131 access_disp_table value.
24132 (Find_Interface_Tag): New subprogram. Given a type implementing an
24133 interface, returns the record component containing the tag of the
24135 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
24136 previous ones that return the corresponding tag and access_disp_table
24138 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
24139 is a predefined primitive operation.
24140 (Expand_Subtype_From_Expr): If the expression is a selected component
24141 within an initialization procedure, compute its actual subtype, because
24142 the component may depend on the discriminants of the enclosing record.
24144 * i-cpp.ads, i-cpp.adb:
24145 This package has been left available for compatibility with previous
24146 versions of the frontend. As part of the new layout this is now a
24147 dummy package that uses declarations available at a-tags.ads
24149 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
24150 "constant access" and "aliased [constant] access" when not compiling
24152 Suppress Ada 2005 keyword warning if -gnatwY used
24153 (P_Identifier_Declarations): Add support for object declarations with
24154 access definitions.
24155 (Private_Extension_Declaration): Complete the documentation
24156 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
24157 attribute in case of private extension declaration
24158 (P_Type_Declaration): Mark as "abstract" the type declarations
24159 corresponding with protected, synchronized and task interfaces
24160 (P_Declarative_Items): "not" and "overriding" are overriding indicators
24161 for a subprogram or instance declaration.
24163 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
24164 instantiation that is a dispatching operation has controlling access
24165 parameters that are null excluding.
24166 Save and restore Ada_Version_Explicit, for implementation of AI-362
24167 (Validate_Derived_Type_Instance): Add check for abstract interface
24169 (Analyze_Formal_Package): Establish Instantiation source for the copy of
24170 the generic that is created to represent the formal package.
24171 (Analyze_Package_Instantiation): Instantiate body immediately if the
24172 package is a predefined unit that contains inlined subprograms, and
24173 we are compiling for a Configurable_Run_Time.
24174 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
24175 If the program has a null default, generate an empty body for it.
24177 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
24178 error message condition, null procedures are correctly detected now.
24179 (New_Overloaded_Entity): Bypass trivial overriding indicator check
24180 for subprograms in the context of protected types. Instead, the
24181 indicator is examined in Sem_Ch9 while analysing the subprogram
24183 (Check_Overriding_Indicator): Check consistency of overriding indicator
24184 on subprogram stubs as well.
24185 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
24187 (Analize_Subprogram_Specification): When analyzing a subprogram in which
24188 the type of the first formal is a concurrent type, replace this type
24189 by the corresponding record type.
24190 (Analyze_Subprogram_Body): Undo the previous work.
24191 (Analyze_Procedure_Call): If the call has the form Object.Op, the
24192 analysis of the prefix ends up analyzing the call itself, after which
24194 (Has_Interface_Formals): New subprogram subsidiary to analyze
24195 subprogram_specification that returns true if some non
24196 class-wide interface subprogram is found
24197 (New_Overloaded_Entity): Modified to give support to abstract
24199 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
24200 access to subprograms must be recursive.
24201 (Is_Unchecked_Conversion): Improve the test that recognizes
24202 instantiations of Unchecked_Conversion, and allows them in bodies that
24203 are to be inlined by the front-end. When the body comes from an
24204 instantiation, a reference to Unchecked_Conversion will be an
24205 Expanded_Name, even though the body has not been analyzed yet.
24206 Replace Is_Overriding and Not_Overriding in subprogram_indication with
24207 Must_Override and Must_Not_Override, to better express intent of AI.
24208 (Analyze_Subprogram_Body): If an overriding indicator is given, check
24209 that it is consistent with the overrinding status of the subprogram
24211 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
24213 If the subprogram is a null procedure, indicate that it does not need
24216 * sem_disp.adb (Check_Controlling_Type): Give support to entities
24217 available through limited-with clauses.
24218 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
24219 allowed as the last primitive of a tagged type if it has no previous
24221 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
24222 to give support to abstract interface types
24224 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
24225 in the case where the target type is an anonymous access type of an
24226 object or component (that is, when Is_Local_Anonymous_Access is true).
24227 Prevent the special checks for conversions of access discriminants in
24228 the case where the discriminant belongs to a nonlimited type, since
24229 such discriminants have their accessibility level defined in the same
24230 way as a normal component of an anonymous access type.
24231 (Resolve_Allocator): When an allocator's designated type is a class-wide
24232 type, check that the accessibility level of type given in the
24233 allocator's expression or subtype indication is not statically deeper
24234 than the level of the allocator's access type.
24235 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
24236 name in a discriminant constraint of a record component.
24237 (Resolve_Explicit_Dereference): Do not check whether the type is
24238 incomplete when the dereference is a use of an access discriminant in
24239 an initialization procedure.
24240 (Resolve_Type_Conversion): Handle conversions to abstract interface
24242 (Valid_Tagged_Conversion): The conversion of a tagged type to an
24243 abstract interface type is always valid.
24244 (Valid_Conversion): Modified to give support to abstract interface types
24245 (Resolve_Actuals): Enable full error reporting on view conversions
24246 between unrelated by_reference array types.
24247 The rule for view conversions of arrays with aliased components is
24248 weakened in Ada 2005.
24249 Call to obsolescent subprogram is now considered to be a violation of
24250 pragma Restrictions (No_Obsolescent_Features).
24251 (Check_Direct_Boolean_Operator): If the boolean operation has been
24252 constant-folded, there is nothing to check.
24253 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
24254 check on possible violation of restriction No_Direct_Boolean_Operators
24255 until after expansion of operands, to prevent spurious errors when
24256 operation is constant-folded.
24258 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
24259 Has_Compatible_Type): Modified to give support to abstract interface
24261 (Interface_Present_In_Ancestor): New function to theck if some ancestor
24262 of a given type implements a given interface
24264 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
24265 prefix is a parameterless function that returns an access_to_procedure.
24266 (Transform_Object_Operation): Handle properly function calls of the
24267 form Obj.Op (X), which prior to analysis appear as indexed components.
24268 (Analyze_One_Call): Complete the error notification to help new Ada
24270 (Analyze_Allocator): For an allocator without an initial value, where
24271 the designated type has a constrained partial view, a discriminant
24272 constraint is illegal.
24274 2005-06-14 Robert Dewar <dewar@adacore.com>
24276 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
24277 do with treatment of Set_Col when positioned at end of line character.
24279 2005-06-14 Robert Dewar <dewar@adacore.com>
24281 * atree.adb: (Elist*): Protect against uninitialized field
24283 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24285 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
24286 for an attribute reference that returns an access type.
24287 (Apply_Discriminant_Check): No need for check if (designated) type has
24288 constrained partial view.
24290 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
24291 both bound checks, rather than a conjunction.
24292 (Insert_Valid_Check): If the expression is an actual that is an indexed
24293 component of a bit-packed array, force expansion of the packed element
24294 reference, because it is specifically inhibited elsewhere.
24296 2005-06-14 Vincent Celier <celier@adacore.com>
24298 * clean.adb (Clean_Project): Correctly delete executable specified as
24299 absolute path names.
24301 * make.adb (Gnatmake): Allow relative executable path names with
24302 directory information even when project files are used.
24303 (Change_To_Object_Directory): Fail gracefully when unable to change
24304 current working directory to object directory of a project.
24305 (Gnatmake): Remove exception handler that could no longer be exercized
24306 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
24307 may be deallocated by Normalize_Arguments.
24308 (Collect_Arguments): Eliminate empty arguments
24310 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
24311 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
24312 (Check_Project): Return False when Project is No_Project. Return True
24313 when All_Projects is True.
24314 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
24315 All_Projects to True.
24318 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24319 Javier Miranda <miranda@adacore.com>
24320 Thomas Quinot <quinot@adacore.com>
24321 Robert Dewar <dewar@adacore.com>
24322 Hristian Kirtchev <kirtchev@adacore.com>
24323 Gary Dismukes <dismukes@adacore.com>
24325 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
24326 anonymous access types, to indicate that the accessibility level of
24327 the type is determined by that of the enclosing declaration.
24328 (Has_Persistent_BSS): New flag
24329 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
24330 of this attribute with functions.
24331 (Is_Primitive_Wrapper): Remove the barrier.
24332 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
24333 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
24335 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
24336 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
24338 (Is_Pure_Unit_Access_Type): New flag
24339 (Abstract_Interfaces): Complete the assertion to cover all usages.
24340 (Set_Is_Interface): Complete the assertion to cover all usages.
24341 (Is_Primitive_Wrapper): New attribute.
24342 (Is_Obsolescent): Now applies to all entities (though it is only set
24343 for subprograms currently)
24344 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
24345 which solves various problems concerning access subtypes.
24346 (Has_Persistent_BSS): New flag
24347 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
24348 Remove these subprograms because this attribute is currently
24351 Has_Specified_Stream_Input (Flag190)
24352 Has_Specified_Stream_Output (Flag191)
24353 Has_Specified_Stream_Read (Flag192)
24354 Has_Specified_Stream_Write (Flag193)
24355 Present in all type and subtype entities. Set for a given view if the
24356 corresponding stream-oriented attribute has been defined by an
24357 attribute definition clause. When such a clause occurs, a TSS is set
24358 on the underlying full view; the flags are used to track visibility of
24359 the attribute definition clause for partial or incomplete views.
24360 (Is_Pure_Unit_Access_Type): New flag
24361 Clarify use of Is_Internal.
24362 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
24363 internally generated to wrap the invocation of tasks and protected
24364 types that implement interfaces.
24365 (Implementation_Base_Type): Documentation correction
24366 (Is_Obsolescent): Now applies to all entities (though it is only set
24367 for subprograms currently)
24368 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
24369 which solves various problems concerning access subtypes.
24371 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
24372 for examined parameters. Identify unequal parameter list lengths as
24373 non-conformant parameters.
24374 (Overriding_Possible): Do not check for "All" qualifier in declaration
24375 of controlling access parameter, following prescription of AI-404.
24376 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
24377 that build the procedure body that wraps an entry invocation
24378 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
24379 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
24380 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
24381 give support to abstract interface types
24383 * freeze.adb (Freeze_Entity): Issue error message if
24384 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
24385 type has no storage pool (Ada 2005) AI-366.
24386 Also modified to give support to abstract interface types
24387 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
24388 Inline_Always pragma.
24390 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
24391 now begin an entry declaration.
24392 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
24393 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
24394 a subprogram declaration preceded by an overriding indicator.
24395 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
24396 declarations or subprogram declarations preceded by reserved words
24397 "not" or "overriding".
24398 (P_Entry_Declaration): Update comment. Parse and check overriding
24399 indicator, set semantic flags of entry declarations.
24400 (P_Task): New error message in case of private applied
24401 to a task type declaration.
24402 (P_Protected): New error message in case of private applied
24403 to a task type declaration.
24405 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
24406 in which the full view of a type implementing an interface is a
24408 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
24409 Declare_Inherited_Private_Subprograms): If an explicit operation
24410 overrides an operation that is inherited in the private part, mark the
24411 explicit one as overriding, to enable overriding indicator checks.
24412 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
24413 full view to partial view, to simplify handling in back-end.
24415 * sprint.adb: Print interface lists where needed: derived types,
24416 protected types, task types.
24417 output "is null" for null procedures. Part of implementation of
24419 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
24420 relaxation of rules for access types in pure, shared passive partitions.
24422 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
24423 first read discriminants into temporary objects, performing checks on
24424 the read values, then possibly performing discriminant checks on the
24425 actual (if it is constrained), and only finally reading the components
24426 into a constrained temporary object.
24427 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
24428 case of reading discriminants of a mutable record type to recognize
24429 the new form of the code generated by
24430 Build_Mutable_Record_Read_Procedure.
24432 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
24433 of a simple call to Make_TSS_Name.
24434 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
24435 buffer, in order for Is_TSS to work correctly on local TSS names.
24437 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
24438 Is_Local_Anonymous_Access to check legaliy of attributes in the
24439 context of access components and stand-alone access objects.
24440 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
24441 treated as available for a limited private type if there is an
24442 attribute_definition_clause that applies to its full view, but not in
24443 other cases where the attribute is available for the full view
24444 (specifically, the sole fact that the full view is non-limited does not
24445 make the attribute available for the partial view).
24446 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
24447 non-overloaded intrinsic subprogram.
24448 (Check_Stream_Attribute): Reject an attribute reference for an
24449 unavailable stream attribute even if the prefix is not a limited type
24450 (case of a 'Input attribute reference for an abstract, non-classwide
24452 (Stream_Attribute_Available): New function to determine whether a stream
24453 attribute is available at a place.
24454 (Check_Attribute): Use Stream_Attribute_Available instead of just
24455 testing for TSS presence on the implementation base type.
24456 (Analyze_Attribute): Modified to give support to task interfaces.
24457 (Analyze_Access_Attribute): Add error check for use of an Access (or
24458 Unrestricted_Access) attribute with a subprogram marked as
24460 (Analyze_Attribute, case Attribute_Address): Add error check for use of
24461 an Address attribute with a subprogram marked as Inline_Always.
24462 Update Eval_Attribute to handle new value of Width from AI-395
24464 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
24465 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
24466 Factor common code across the stream-oriented attribute circcuits into
24467 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
24468 processing is functionally identical to the previous duplicated one,
24469 except that an expression that denotes an abstract subprogram will now
24470 be rejected, as mandated by AI-195 item 5.
24472 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
24473 Is_Local_Anonymous_Access to apply accessibility checks to access
24474 components and stand-alone access objects.
24475 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
24477 (Is_Potentially_Persistent_Type): New function
24478 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
24479 a heap-object whose type has a constrained partial view, the object is
24480 unconstrained and the component may depend on a discriminant, making its
24483 * sinfo.ads, sinfo.adb
24484 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
24485 (Must_Override): Flag applicable to N_Entry_Declaration.
24486 Indicate that interface_list can appear in single task and single
24487 protected declarations.
24488 Replace Is_Overriding and Not_Overriding with Must_Override and
24489 Must_Not_Override, to better express intent of AI.
24490 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
24491 of an overriding indicator in a subprogram or instance.
24492 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
24493 Add the overriding indicator [[not] overriding] construct to the
24494 following grammar productions:
24496 GENERIC_INSTANTIATION
24497 SUBPROGRAM_SPECIFICATION
24499 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
24500 can start with an overriding indicator.
24502 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
24503 flags accordingly on subrogram specifications or instances.
24506 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
24507 overriding_indicator, if present, is consistent with status of spec.
24508 Improve error message for null-excluding checks on controlling access
24510 (Check_In_Previous_With_Clause): Protect the frontend against
24511 previously reported critical errors in the context clauses.
24512 Save and restore Ada_Version_Explicit, for implementation of AI-362
24513 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
24514 operation verify that controlling formals of the renamed entity that
24515 are access parameters are explicitly non-null.
24516 (Find_Expanded_Name): Improve error message when prefix is an illegal
24517 reference to a private child unit.
24519 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
24520 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
24521 Rewrite to correspond to new wide character names in AI-395
24523 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
24524 default procedures.
24526 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24527 Robert Dewar <dewar@adacore.com>
24529 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
24530 code, not on the bodies of predefined operations, to cut down on
24533 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24535 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
24536 be expanded in place. The size computation does not require a
24537 subtraction, which would raise an exception on a compiler built with
24538 assertions when the upper bound is Integer'first.
24539 (Flatten): For an array of composite components, take into account the
24540 size of the components to determine whether it is safe to expand the
24541 array into a purely positional representation.
24543 2005-06-14 Thomas Quinot <quinot@adacore.com>
24545 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
24546 denoting a formal parameter into account.
24548 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24550 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
24551 the entry_call alternative of a conditional entry call, wrap the
24552 conditional entry call itself.
24554 2005-06-14 Nicolas Setton <setton@adacore.com>
24555 Ed Schonberg <schonberg@adacore.com>
24557 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
24558 the "simple_choice" member in a variant record, in accordance with the
24559 description in the package spec: the information output for a constant
24560 should be "S number", not "SS number".
24561 (Get_Encoded_Name): Return at once if not generating code. Avoids name
24562 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
24564 2005-06-14 Thomas Quinot <quinot@adacore.com>
24566 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
24567 RACW without any primitives, do not generate the if statement for
24568 dispatching by name in the PolyORB/DSA case, as it would be malformed
24569 (it would have an Elsif_Parts list that is not No_List, but with a
24572 2005-06-14 Robert Dewar <dewar@adacore.com>
24574 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
24576 2005-06-14 Jose Ruiz <ruiz@adacore.com>
24578 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
24579 can determine whether pragma Suppress_Exception_Locations is in effect.
24581 * utils2.c (build_call_raise): Do not pass the file name to the
24582 exception handler if pragma Suppress_Exception_Locations is in effect.
24583 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
24585 2005-06-14 Emmanuel Briot <briot@adacore.com>
24587 * g-debpoo.adb (Deallocate, Dereference): Improve output.
24589 2005-06-14 Nicolas Roche <roche@adacore.com>
24591 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
24593 (Next_Level): Fix minor bug in handling of ../dir case
24594 (Read): Add dir separator to Directory name so that "" is understood as
24597 2005-06-14 Pascal Obry <obry@adacore.com>
24599 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
24600 releasing the items.
24602 2005-06-14 Vincent Celier <celier@adacore.com>
24603 Cyrille Comar <comar@adacore.com>
24605 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
24606 with output file descriptor and with output file name.
24607 (Dup, Dup2): Now global procedures as they are used by two subprograms
24608 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
24610 2005-06-14 Thomas Quinot <quinot@adacore.com>
24613 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
24615 (Create_Selector): Bind listening socket used to create the signalling
24616 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
24617 Set listen backlog to 1 to ensure that we detect socket theft by a
24618 failure of our own connect(2) call.
24619 (Check_Selector): Improve documentation of the selector mechanism.
24620 (Broadcast_Inet_Addr): New constant.
24622 2005-06-14 Gary Dismukes <dismukes@adacore.com>
24624 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
24625 type which turns out to be an incomplete and incorrect fix.
24626 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
24627 of the type is declared in a record (for determination of insertion
24629 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
24630 a private type and ensure that the primary entity is used for the type
24631 of the newly created function's V formal by taking the Etype of the
24634 2005-06-14 Javier Miranda <miranda@adacore.com>
24635 Jose Ruiz <ruiz@adacore.com>
24636 Robert Dewar <dewar@adacore.com>
24637 Ed Schonberg <schonberg@adacore.com>
24639 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
24640 that indicates if we are parsing a compilation unit found in a
24641 limited-with clause.
24642 It is use to avoid the circularity check.
24644 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
24645 we are parsing a compilation unit found in a limited-with clause. This
24646 is use to avoid the circularity check.
24648 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
24649 unit as a consequence of parsing a limited-with clause. This is used
24650 to avoid the circularity check.
24652 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
24653 (Analyze_Context): Limited-with clauses are now allowed
24654 in more compilation units.
24655 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
24656 againts previously reported critical errors in context clauses
24657 (Install_Limited_Withed_Unit): Code cleanup plus static detection
24658 of two further errors: renamed subprograms and renamed packages
24659 are not allowed in limited with clauses.
24660 (Install_Siblings): Do not install private_with_clauses on the package
24661 declaration for a non-private child unit.
24662 (Re_Install_Parents): When a parent of the subunit is reinstalled,
24663 reset visibility of child units properly.
24664 (Install_Withed_Unit): When a child unit appears in a with_clause of its
24665 parent, it is immediately visible.
24667 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24668 Emmanuel Briot <briot@adacore.com>
24670 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
24671 declared within an inlined body as referenced, to prevent spurious
24673 (Output_One_Ref): If an entity renames an array component, indicate in
24674 the ALI file that this aliases (renames) the array. Capture as well
24675 function renamings that rename predefined operations.
24676 Add information about generic parent for package and subprogram
24678 (Get_Type_Reference): For a subtype that is the renaming of an actual in
24679 an instantiation, use the first_subtype to ensure that we don't generate
24680 cross-reference information for internal types.
24681 For objects and parameters of a generic private type, retain the '*'
24682 indicator to distinguish such an entity from its type.
24684 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
24685 to store information about instantiated entities.
24687 * ali.adb (Scan_ALI): Add support for parsing the reference to the
24690 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
24691 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
24694 2005-06-10 Doug Rupp <rupp@adacore.com>
24695 Arnaud Charlet <charlet@adacore.com>
24696 Olivier Hainque <hainque@adacore.com>
24697 Jose Ruiz <ruiz@adacore.com>
24699 * Make-lang.in: Add initialize.o when needed.
24700 Remove obsolete references to RT_FLAGS.
24701 Add missing dependencies for sdefault.o
24703 * initialize.c: New file.
24705 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
24706 [VMS] cond_signal_table: Fix problem in declaration.
24707 [VMS] __gnat_error_handler: rewrite.
24708 Move all __gnat_initialize() routines to initialize.c
24709 Specialize the former "hpux" section to "hppa hpux", as this is what the
24710 section really is here for and we now have other hpux ports that need
24711 different contents.
24712 (__gnat_adjust_context_for_raise) i386-linux: First version of this
24713 function for this target. Adjust PC by one in the machine context. This
24714 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
24715 it is more reliable to do that in the signal handler itself.
24716 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
24717 flags, so that the handler is passed the context structure to adjust
24718 prior to the raise.
24719 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
24720 SA_SIGINFO sigaction should look like. Call
24721 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
24722 Machine_State_Operations stuff.
24723 Add conditional code so that the x86_64 is also supported.
24725 2005-06-14 Pascal Obry <obry@adacore.com>
24727 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
24730 2005-06-14 Robert Dewar <dewar@adacore.com>
24732 * opt.ads, opt.adb: New flags for persistent_bss mode
24733 Add Ada_Version_Explicit, for implementation of AI-362
24734 Add Assertions_Enabled_Config and associated handling
24735 Needed since setting can be changed with Assertion_Policy pragma
24736 Add new flag Warn_On_Ada_2005_Compatibility
24738 * switch-c.adb: Recognize -gnatwy/Y
24739 Set Ada_Version_Explicit, for implementation of AI-362
24740 The -gnatg switch now includes -gnatyu
24742 * usage.adb: Add -gnatwy/Y
24743 Remove wrong asterisk on -gnatwX line
24744 Add line for -gnatyu switch
24746 2005-06-14 Vincent Celier <celier@adacore.com>
24748 * osint.adb (Add_Default_Search_Dirs): Put source and object
24749 directories of project files before directories coming from
24750 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
24752 2005-06-14 Robert Dewar <dewar@adacore.com>
24755 * par-ch2.adb (Scan_Pragma_Argument): New procedure
24756 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
24758 2005-06-14 Vincent Celier <celier@adacore.com>
24760 * prep.adb (Preprocess): Ignore error when scanning the first token of
24763 2005-06-14 Vincent Celier <celier@adacore.com>
24765 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
24766 (Check_Stand_Alone_Library): If the specified reference symbol file does
24767 not exist, only issue a warning when the symbol policy is not
24768 Controlled. And, when symbol policy is Compliant, set the symbol
24769 policy to Autonomous.
24771 2005-06-14 Vincent Celier <celier@adacore.com>
24773 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
24774 when the project file in a with clause is not the last one, that is the
24775 project file name is followed by a comma.
24776 * prj-pp.adb: (First_With_In_List): New Boolean global variable
24777 (Print): Issue list of project files separated by commas in with clauses
24778 according to the values returned by Is_Not_Last_In_List.
24779 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
24780 (Set_Is_Not_Last_In_List): New procedure
24782 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
24784 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
24786 2005-06-14 Robert Dewar <dewar@adacore.com>
24788 * scng.adb: Add call to new Check_EOF routine
24789 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
24790 Add some comments regarding wide character handling
24792 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
24794 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
24796 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
24797 characters are now considered graphic characters and hence yield false
24800 * nmake.adt: Modify header so that xnmake does not generate output
24801 files with multiple blank lines.
24803 * treeprs.adt: Remove a blank line so that output from xtreeprs does
24804 not have an extra blank line
24806 2005-06-14 Gary Dismukes <dismukes@adacore.com>
24808 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
24809 expression when the component type is an anonymous access type to
24810 ensure that appropriate accessibility checks are done.
24812 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
24813 expression of an assignment when the target object is of an anonymous
24814 access type. This ensures that required accessibility checks are done.
24815 (One_Bound): Move the check for type Universal_Integer to
24817 (Process_Bounds): Check whether the type of the preanalyzed range is
24818 Universal_Integer, and in that case set Typ to Integer_Type prior
24819 to setting the type of the original range and the calls to One_Bound.
24821 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24823 * sem_case.adb (Expand_Others_Choice): Improve warning.
24825 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24827 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
24828 constraint of full view if present, when other type is discriminated.
24829 (Eval_Relational_Op): Recognize tests of pointer values against Null,
24830 when the pointer is known to be non-null, and emit appropriate warning.
24832 2005-06-14 Robert Dewar <dewar@adacore.com>
24833 Ed Schonberg <schonberg@adacore.com>
24836 * sem_prag.adb: Implement pragma Persistent_BSS
24837 Remove obsolete pragma Persistent_Data, Persistent_Object
24838 Set Ada_Version_Explicit, for implementation of AI-362
24839 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
24840 Add processing for pragma Pure_05 and Preelaborate_05
24841 Add processing for Assertion_Policy pragma
24842 Add pragma identifiers for Assert
24843 (Analyze_Pragma, case Assert): Check number of arguments
24844 (Process_Inline): Additional guard against an illegal program, where the
24845 argument of the pragma is undefined, and warnings on redundant
24846 constructs are enabled.
24847 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
24848 Ada_05 to this pragma, specifying that the pragma is only active in
24850 (Check_Arg_Order): New procedure
24851 Add appropriate calls to this procedure throughout
24852 Also throughout, check entity name before doing any other checks
24854 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
24855 Remove obsolete pragma Persistent_Data, Persistent_Object
24856 Add entries for pragma Pure_05 and Preelaborate_05
24857 Add entries for Assertion_Policy pragma and associated names
24858 Add some names for pragma argument processing
24860 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
24862 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24864 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
24865 appears within a negation (either from source or as a rewriting of
24866 inequality) adjust text of warning accordingly.
24868 2005-06-14 Thomas Quinot <quinot@adacore.com>
24870 * s-strxdr.adb: Follow AI95-00132
24872 2005-06-14 Arnaud Charlet <charlet@adacore.com>
24874 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
24876 2005-06-14 Arnaud Charlet <charlet@adacore.com>
24877 Jose Ruiz <ruiz@adacore.com>
24879 * s-tposen.adb, s-tpobop.adb
24880 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
24882 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
24883 there is no violation of the Max_Entry_Queue_Length restriction (if it
24884 has been set); Program_Error is raised otherwise.
24885 (Requeue_Call): Before requeuing the task on the target entry queue we
24886 check that there is no violation of the Max_Entry_Queue_Length
24887 restriction (if it has been set); Program_Error is raised otherwise.
24889 2005-06-14 Robert Dewar <dewar@adacore.com>
24891 * styleg.adb: Fix several remaining problems in -gnatyu switch
24892 Blank line count not reset at start
24893 Scanning outside source buffer in some cases
24894 Confusing message for blanks at end of file
24895 Non-empty blank lines not recognized
24897 * nmake.adt: Modify header so that xnmake does not generate output
24898 files with multiple blank lines.
24900 * treeprs.adt: Remove a blank line so that output from xtreeprs does
24901 not have an extra blank line
24903 2005-06-14 Sergey Rybin <rybin@adacore.com>
24905 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
24907 2005-06-14 Doug Rupp <rupp@adacore.com>
24908 Vincent Celier <celier@adacore.com>
24910 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
24913 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
24914 Remove "Library" command.
24915 Change keyword for style check -gnatyd from NOCRLF to
24917 Remove useless second style check keyword NONE
24918 Remove help documentation for inexistent style check keyword
24920 Add help documentation for style check keywords DOS_LINE_ENDINGS,
24921 UNNECESSARY_BLANK_LINES and XTRA_PARENS
24922 Add UNNECESSARY_BLANK_LINES for -gnatyu
24923 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
24925 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
24927 2005-06-14 Vincent Celier <celier@adacore.com>
24929 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
24930 gprmake was invoked with -d.
24931 (Compile_Sources): If -d was used, output the "completed ..." message
24932 for each compilation.
24933 (Scan_Arg): Recognize new switch -d
24934 When -c and at least one main is specified, set
24935 Unique_Compile to True to guarantee that no other sources will be
24938 2005-06-14 Matthew Heaney <heaney@adacore.com>
24940 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
24941 * a-swuwha.ads, a-swuwha.adb: New files
24943 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
24944 * a-szuzha.ads, a-szuzha.adb: New files.
24946 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
24947 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
24948 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
24949 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
24950 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
24951 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
24952 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
24953 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
24954 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
24955 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
24958 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
24959 Olivier Hainque <hainque@adacore.com>
24960 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24961 Pascal Obry <obry@adacore.com>
24963 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
24965 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
24966 making a temporary around a procedure call because of non-addressable
24968 (process_freeze_entity): If entity is a private type, capture size
24969 information that may have been computed for the full view.
24970 (tree_transform, case N_Allocator): If have initializing expression,
24971 check type for Has_Constrained_Partial_View and pass that to
24973 (tree_transform, case N_Return_Statement): Pass extra arg to
24976 * decl.c (annotate_value): Remove early return if -gnatR is not
24978 (gnat_to_gnu_field): Don't make a packable type for a component clause
24979 if the position is byte aligned, the field is aliased, and the clause
24980 size isn't a multiple of the packable alignment. It serves no useful
24981 purpose packing-wise and would be rejected later on.
24982 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
24985 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
24986 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
24988 (create_concat_name): Idem.
24990 2005-06-10 Robert Dewar <dewar@adacore.com>
24991 Eric Botcazou <ebotcazou@adacore.com>
24992 Ben Brosgol <brosgol@adacore.com>
24993 Cyrille Comar <comar@adacore.com>
24994 Sergey Rybin <rybin@adacore.com>
24995 Pascal Obry <obry@adacore.com>
24997 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
24998 Document second argument (Ada_05) of pragma Obsolescent
24999 Add note that call to subprogram marked with pragma Obsolescent
25000 is now considered to be a violation of program Restrictions
25001 (No_Obsolescent_Features).
25002 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
25003 that only machine-dependent attributes are supported.
25006 Commented out menu lines and empty section for gnatclean examples
25008 Fix some over long lines
25009 Clarify and enhance documentation of ADA_PROJECT_PATH.
25010 Rework section 2.11.2(3) about linking with a non-GNU compiler.
25011 Mention new switch -fcallgraph-info.
25012 Mention new switch -fstack-usage.
25013 For gnatpp, replace '-notab' with '-N' and add this option to Index
25014 Corrected VMS example.
25015 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
25017 Add documentation for -gnatyu switch (unnecessary blank lines)
25018 Document new switch -U for GNAT PRETTY and GNAT METRIC
25019 Add note about Stdcall being handled as C convention on non Windows OS.
25020 Remove some junk typo in description of gnatbind -S switch
25021 Remove reference to Extensions_Allowed pragma
25022 Document the new order of the directories to be searched (source and
25023 object directories of project files before directories in ADA_*_PATH
25024 environment variables.
25026 * g-trasym.ads: Document that IRIX is supported
25028 2005-06-10 Arnaud Charlet <charlet@adacore.com>
25030 * Makefile.in: Add initialize.o when needed.
25031 Adapt to new VMS package body Symbols and subunits
25032 No specialized version of a-sytaco is needed for VxWorks.
25034 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
25035 * a-zchara.ads, a-widcha.ads: New files.
25037 * system-hpux-ia64.ads: New file.
25039 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
25040 is imported from the VxWorks kernel.
25042 2005-06-14 Robert Dewar <dewar@adacore.com>
25044 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
25045 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
25046 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
25047 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
25048 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
25049 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
25050 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
25051 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
25052 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
25053 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
25054 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
25055 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
25057 2005-06-14 Thomas Quinot <quinot@adacore.com>
25059 * xeinfo.adb: Fix typo in comment
25061 2005-06-14 Javier Miranda <miranda@adacore.com>
25063 * repinfo.ads: Fix typo in comment
25065 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25067 * s-finimp.adb (Parent_Tag): Delete this imported function (function
25068 Parent_Tag is now in the visible part of Ada.Tags).
25069 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
25070 using imported function.
25072 2005-06-14 Bernard Banner <banner@adacore.com>
25074 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
25075 also apply for handling support for VxSim 653.
25077 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
25079 * xsnames.adb: Add automatic generation of snames.h.
25081 2005-06-14 Thomas Quinot <quinot@adacore.com>
25083 * gen-soccon.c: Add IP_MULTICAST_IF constant
25084 Minor reformatting and adjustments to prevent warnings.
25086 2005-06-14 Pascal Obry <obry@adacore.com>
25088 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
25090 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
25092 * trans.c (gnat_gimplify_expr): Call
25093 recompute_tree_invarant_for_addr_expr when we change
25094 the operand of the ADDR_EXPR.
25096 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25098 * misc.c: Don't include errors.h.
25100 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25102 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
25104 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
25106 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
25108 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
25110 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
25113 * Makefile.in: Make TGT_LIB behave correctly.
25115 2005-04-23 DJ Delorie <dj@redhat.com>
25117 * misc.c: Adjust warning() callers.
25119 2005-04-16 Laurent Guerby <laurent@guerby.net>
25122 * a-nudira.adb (Value): Check for valid string.
25123 * a-nuflra.adb (Value): Likewise.
25125 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
25127 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
25129 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
25131 * adaint.c, init.c, tracebak.c: Fix comment typos.
25132 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
25134 2005-04-07 Laurent Guerby <laurent@guerby.net>
25135 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25137 * Makefile.in: Add make ifeq define for hppa linux tasking support.
25138 * system-hpux.ads: Define Signed_Zeros to be True.
25139 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
25141 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
25143 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
25144 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
25147 2005-03-30 Tom Tromey <tromey@redhat.com>
25149 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
25151 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
25153 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
25155 2005-03-29 Robert Dewar <dewar@adacore.com>
25157 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
25158 fixed-point expression has value that is not a multiple of the Small
25161 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
25163 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
25166 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
25168 2005-03-29 Vincent Celier <celier@adacore.com>
25170 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
25171 (Build_Dynamic_Library.Version_String): Return the empty string when
25172 Lib_Version is empty or when the symbol policy is not Autonomous.
25174 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
25175 a symbol is not in the reference symbol file, increase the Major ID
25176 and set the Minor ID to 0.
25177 Use gsmatch=lequal instead of gsmatch=equal
25179 2005-03-29 Doug Rupp <rupp@adacore.com>
25181 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
25182 name and translate.
25184 2005-03-29 Javier Miranda <miranda@adacore.com>
25186 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
25187 (Inherit_DT): The first formal has been redefined as a Tag.
25188 This allows us the removal of the subprogram Get_TSD.
25189 (TSD): Replace the call to Get_TSD by the actual code.
25191 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
25192 (Make_DT): Upgrade the call to Inherit_TSD according to the
25193 new interface: the first formal is now a Tag.
25195 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
25196 redefined as a Tag.
25197 This change allows us to remove the subprogram Get_TSD.
25198 (CPP_Get_TSD): Subprogram removed.
25199 (TSD): Replace the call to CPP_Get_TSD by the actual code.
25201 * rtsfind.ads: Remove support to call the run-time
25204 2005-03-29 Robert Dewar <dewar@adacore.com>
25206 * errutil.adb, errout.adb:
25207 Minor comment updates on Line_Terminator references
25209 * par-ch10.adb: Add ??? comment about line terminator
25211 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
25212 (check dos line terminator).
25213 (Check_Line_Max_Length): New procedure, split off from the existing
25214 Check_Line_Terminator routine. Separating this out allows -gnatyf to
25215 be properly recognized.
25217 * styleg.adb: Add ??? comment for line terminator reference
25219 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
25220 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
25222 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
25223 (check dos line terminator).
25224 (Check_Line_Max_Length): New procedure, split off from the existing
25225 Check_Line_Terminator routine. Separating this out allows -gnatyf to
25226 be properly recognized.
25228 * stylesw.ads, stylesw.adb:
25229 Add handling for new -gnatyd switch (check dos line terminator)
25231 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
25232 Recognize -gnatwb/-gnatwB switches
25233 Include Warn_On_Bad_Fixed_Value for -gnatg
25236 Add line for new -gnatyd switch (check dos line terminator)
25238 * usage.adb: Add lines for -gnatwb/-gnatwB
25240 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
25242 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
25244 * gnat_ugn.texi: Fix overlong lines
25245 Document new -gnatyd switch
25246 Document new -gnatwb/-gnatwB switches
25248 2005-03-29 Ed Schonberg <schonberg@adacore.com>
25250 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
25251 order to retrieve the component list of the type, before examining
25252 individual components.
25254 * sem_type.adb (Covers): Types are compatible if one is the base type
25255 of the other, even though their base types might differ when private
25256 views are involved.
25258 2005-03-29 Thomas Quinot <quinot@adacore.com>
25260 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
25261 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
25262 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
25263 analyzed if expansion is disabled (which could otherwise cause spurious
25264 error messages if expansion has been disabled due to previous
25265 (unrelated) errors).
25267 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
25268 is disabled, the entity denoted by the argument is the access type
25269 itself, not an underlying record type, so there is no need to go back
25270 to the Corresponding_Remote_Type.
25272 2005-03-29 Gary Dismukes <dismukes@adacore.com>
25273 Robert Dewar <dewar@adacore.com>
25275 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
25276 expand a call to an instance of
25277 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
25278 Constructor actual of the instance. A class-wide membership
25279 check is also generated, to ensure that the tag passed to the instance
25280 denotes a type in the class.
25281 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
25282 of Name_Generic_Dispatching_Constructor.
25284 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
25285 05 unit for AI-260-02).
25287 * a-tgdico.ads: New file.
25289 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
25290 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
25292 * snames.ads, snames.adb (Preset_Names): Add entry for
25293 Generic_Dispatching_Constructor.
25296 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
25297 character type cases.
25298 (Analyze_Subprogram_Renaming): Add special handling for
25299 the case of renaming of stream attributes when the renaming denotes a
25300 generic formal subprogram association for an abstract formal subprogram.
25301 Check that the attribute is a primitive stream attribute (and not
25302 a class-wide stream attribute) and then rewrite the attribute name
25303 as the name of the appropriate compiler-generated stream primitive.
25305 2005-03-29 Robert Dewar <dewar@adacore.com>
25307 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
25309 (Is_Possibly_Unaligned_Object): Correct typo that
25310 resulted in inaccurate result for unaligned scalars within records.
25312 2005-03-29 Ed Schonberg <schonberg@adacore.com>
25314 * freeze.adb (Freeze_Record_Type): If the type of the component is an
25315 itype whose parent is controlled and not yet frozen, do not create a
25316 freeze node for the itype if expansion is disabled.
25318 2005-03-29 Vincent Celier <celier@adacore.com>
25320 * make.adb (Gnatmake): Don't fail if the main project file is declared
25321 as having no Ada sources. Do not display message "no sources to
25322 compile" in quiet output.
25324 2005-03-29 Doug Rupp <rupp@adacore.com>
25326 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
25329 2005-03-29 Robert Dewar <dewar@adacore.com>
25331 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
25334 2005-03-29 Robert Dewar <dewar@adacore.com>
25336 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
25337 missing TYPE Improve the error message generated when compiling a
25338 limited interface in Ada83 or Ada95 mode.
25340 2005-03-29 Robert Dewar <dewar@adacore.com>
25342 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
25343 rather than proceed ahead using a junk attribute name.
25345 2005-03-29 Vincent Celier <celier@adacore.com>
25347 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
25349 * prj-part.adb (Parse_Single_Project): Set the location of a project
25350 on its defining identifier, rather than on the reserved word "project".
25352 * prj-proc.adb (Expression): Adapt to the fact that default of external
25353 references may be string expressions, not always literal strings.
25354 (Recursive_Process): Set Display_Name equal to Name
25355 when Location is No_Location, that is when there is no actual file.
25356 Get the Display_Name of the project from the source, when it is not a
25358 (Process): Use the Display_Name in error messages
25360 * prj-strt.adb (External_Reference): Allow default to be string
25361 expressions, not only literal strings.
25363 2005-03-29 Vincent Celier <celier@adacore.com>
25365 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
25366 file and the reference symbol file to be the same file.
25368 2005-03-29 Thomas Quinot <quinot@adacore.com>
25370 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
25371 forbid conversion of a local access-to-subprogram type to a remote one.
25373 * sem_util.adb (Wrong_Type): For a record type that is the expanded
25374 equivalent type for a remote access-to-subprogram type, go back to the
25375 original RAS entity when displaying an error message, so the casing is
25376 the original source casing.
25378 2005-03-29 Robert Dewar <dewar@adacore.com>
25380 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
25383 2005-03-29 Ed Schonberg <schonberg@adacore.com>
25385 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
25386 subtype if code is being pre-analyzed, to prevent un-expanded
25387 references to protected formals, among others.
25388 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
25389 interpretation that can be a call, include the result of the call as a
25390 possible interpretation of the dereference.
25392 * sem_ch5.adb (Process_Bounds): Determine type of range by
25393 pre-analyzing a copy of the original range, and then analyze the range
25394 with the expected type.
25396 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
25397 with an overloaded prefix where not all interpretations yield an
25398 access to subprogram, do not rewrite node as a call.
25399 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
25400 the node as a call once the context identifies the interpretation of
25401 the prefix whose call yields the context type.
25402 (Valid_Conversion): For the case of a conversion between
25403 local access-to-subprogram types, check subtype conformance using
25404 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
25405 detailed error message.
25407 2005-03-29 Ed Schonberg <schonberg@adacore.com>
25409 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
25410 indicator, indicate that the formal can never be null.
25411 (Process_Formals): If a formal has a non_null indicator, insert the
25412 resulting subtype immediately before the enclosing subprogram decl,
25413 and not at the beginning of the corresponding declarative part, to
25414 prevent access before elaboration (Ada2005).
25416 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25419 * utils.c (finish_record_type): Use variable_size when setting sizes.
25421 2005-03-29 Robert Dewar <dewar@adacore.com>
25423 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
25424 guarantee Unix style line terminators for the output files, even when
25425 running on windows.
25427 2005-03-29 Robert Dewar <dewar@adacore.com>
25429 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
25430 buffer if an exception is raised.
25432 2005-03-29 Ed Falis <falis@adacore.com>
25434 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
25437 2005-03-29 Robert Dewar <dewar@adacore.com>
25439 * sem_util.ads: Minor reformatting
25440 * gnat_rm.texi: Minor editing.
25442 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
25444 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
25445 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
25447 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
25449 * adaint.c (__gnat_portable_spawn): Adjust cast.
25451 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
25453 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
25455 2005-03-17 Pascal Obry <obry@adacore.com>
25457 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
25460 * expect.c (__gnat_waitpid): Moved here from adaint.c.
25461 Reimplement under Win32 using Win32 API.
25463 (__gnat_kill) [Win32]: Properly close the process handle before leaving
25466 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
25468 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
25469 (DECL_RENAMED_OBJECT): New accessor macro.
25470 (SET_DECL_RENAMED_OBJECT): New setter macro.
25472 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
25473 object in all cases. Attach the renamed object to the VAR_DECL.
25474 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
25475 field is not prescribed.
25477 * misc.c (gnat_handle_option): Handle -gnatO separately.
25478 (gnat_print_decl) <VAR_DECL>: New case.
25479 Print the DECL_RENAMED_OBJECT node.
25481 * lang.opt: Declare separate -gnatO option.
25483 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
25484 pointer, replace it with the renamed object.
25485 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
25486 pointer type if the source is not a fat pointer type whose underlying
25487 array has the same non-zero alias set as that of the destination array.
25489 2005-03-17 Javier Miranda <miranda@adacore.com>
25491 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
25492 (Get_Inheritance_Depth): Removed.
25493 (Set_Inheritance_Depth): Removed.
25495 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
25496 subprogram Get_Expanded_Name because it is not referenced by the
25499 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
25500 (CPP_Get_Inheritance_Depth): Removed.
25501 (CPP_Set_Inheritance_Depth): Removed.
25503 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
25505 2005-03-17 Robert Dewar <dewar@adacore.com>
25507 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
25508 3, since we now expect GCC 3 to do all the work.
25510 2005-03-17 Javier Miranda <miranda@adacore.com>
25512 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
25513 of one barrier to avoid wrong usage of this attribute.
25515 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
25516 First_Private_Entity.
25518 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
25519 the subprogram against wrong usage.
25520 Adapt the code to traverse the entities in the
25521 scope of a record_type because in addition to its usage regarding
25522 packages, this subprogram is also called by Expand_N_Freeze_Entity
25523 to install the visible declarations of the enclosing scope of a
25524 record_type_with_private to establish the proper visibility before
25525 freezing the entity and related subprograms.
25527 2005-03-17 Ed Schonberg <schonberg@adacore.com>
25529 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
25532 2005-03-17 Thomas Quinot <quinot@adacore.com>
25534 * exp_ch3.adb (Check_Attr): New subprogram.
25535 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
25536 into a new Check_Attr subprogram, in order to provide a more
25537 explanatory error message (including the name of the missing attribute).
25538 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
25539 subprogram determines whether a default implementation exists for a
25540 given stream attribute.
25541 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
25542 Determine whether to generate a default implementation for each stream
25543 attribute separately, as this depends on the specific attribute.
25545 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
25546 limited extension where a stream attribute is missing for a limited
25547 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
25548 generate a bogus reference to the missing attribute to prevent
25549 cascaded errors. Instead, generate a null statement.
25551 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
25552 available for a limited type if it has been specified for an ancestor
25555 2005-03-17 Ed Schonberg <schonberg@adacore.com>
25557 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
25558 entity is an operator.
25560 2005-03-17 Thomas Quinot <quinot@adacore.com>
25562 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25563 spec, to make this predicate available to other units.
25565 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
25568 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
25569 when no distribution runtime library is available.
25571 * sem_res.adb, sem_dist.adb: Disable expansion of remote
25572 access-to-subprogram types when no distribution runtime library is
25574 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
25575 predicate available to other units.
25577 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25578 spec, to make this predicate available to other units.
25580 2005-03-17 Vincent Celier <celier@adacore.com>
25582 * make.adb (Insert_Project_Sources): Make sure the Q is always
25585 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
25586 the default for the tree, not the global default naming.
25588 * prj-proc.adb (Recursive_Process): No need to put the default naming
25589 in the project data, it's already there.
25591 2005-03-17 Doug Rupp <rupp@adacore.com>
25593 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
25595 * 5xcrtl.ads: Renamed to...
25596 * s-crtl-vms64.ads: ...this new file
25598 2005-03-17 Robert Dewar <dewar@adacore.com>
25601 * namet.adb (Copy_One_Character): Set proper wide character encoding
25602 for upper half character if we have upper half encoding.
25604 2005-03-17 Robert Dewar <dewar@adacore.com>
25606 * par.adb (Par): Improved msg for attempt to recompile predefined unit
25608 2005-03-17 Thomas Quinot <quinot@adacore.com>
25610 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
25611 tagged limited type, the TSS is a newly built renaming declaration:
25612 insert it using Set_TSS, not Copy_TSS.
25614 2005-03-17 Javier Miranda <miranda@adacore.com>
25616 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
25617 Try_Object_Operation): Analyze the object that is accessible
25618 through the prefix of the subprogram call before we apply
25619 the transformation of the object-operation notation.
25621 2005-03-17 Jose Ruiz <ruiz@adacore.com>
25623 * s-taprob.adb (Initialize_Protection): Initialize the protected
25624 object's owner to Null_Task.
25625 (Lock): If pragma Detect_Blocking is in effect and the caller of this
25626 procedure is already the protected object's owner then Program_Error
25627 is raised. In addition the protected object's owner is updated.
25628 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
25629 of this procedure is already the protected object's owner then
25630 Program_Error is raised.
25631 In addition the protected object's owner is updated.
25632 (Unlock): Remove the ownership of the protected object.
25634 * s-taprob.ads (Protection): Add the field Owner, used to store the
25635 protected object's owner.
25636 This component is needed for detecting one type of potentially blocking
25637 operations (external calls on a protected subprogram with the same
25638 target object as that of the protected action). Document the rest of
25641 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
25642 Initialize the protected object's owner to Null_Task.
25643 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
25644 caller of this procedure is already the protected object's owner then
25645 Program_Error is raised.
25646 Do not raise Program_Error when this procedure is called from a
25648 (Unlock_Entries): Remove the ownership of the protected object.
25649 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
25650 of this procedure is already the protected object's owner then
25651 Program_Error is raised.
25652 Do not raise Program_Error when this procedure is called from
25653 a protected action.
25655 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
25656 used to store the protected object's owner.
25658 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
25659 effect and this procedure (a potentially blocking operation) is called
25660 from whithin a protected action, Program_Error is raised.
25661 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
25662 and this procedure (a potentially blocking operation) is called from
25663 whithin a protected action, Program_Error is raised.
25665 2005-03-17 Vincent Celier <celier@adacore.com>
25666 Nicolas Setton <setton@adacore.com>
25668 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
25669 switch, not supported by the linker on Darwin. Add '_' before
25670 <library>init, as this character is added unconditionally by the
25672 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
25673 correct one ".dylib". This fixes detection of the archive files when
25674 building library projects.
25676 2005-03-17 Vincent Celier <celier@adacore.com>
25678 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
25679 -gnat83, -gnat95 and -gnat05.
25681 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
25683 * gnat_ugn.texi: Document gnatmem restriction
25685 2005-03-17 Thomas Quinot <quinot@adacore.com>
25687 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
25690 2005-03-17 Robert Dewar <dewar@adacore.com>
25692 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
25693 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
25694 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
25696 * casing.adb: Comment improvements
25698 2005-03-17 Pascal Obry <obry@adacore.com>
25700 * g-expect.adb: Minor reformatting.
25702 2005-03-15 Zack Weinberg <zack@codesourcery.com>
25704 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
25705 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
25708 2005-03-15 Vincent Celier <celier@adacore.com>
25710 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
25711 Add new parameter In_Tree to specify the project tree: needed
25712 by the project manager. Adapt to changes in project manager
25713 using new parameter In_Tree.
25715 2005-03-15 Jakub Jelinek <jakub@redhat.com>
25717 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
25718 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
25719 ada/bldtools to avoid make -jN failures.
25721 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25723 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
25724 to NULL_TREE on entry.
25726 2005-03-15 Robert Dewar <dewar@adacore.com>
25728 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25729 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25730 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25731 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25732 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25733 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
25734 system-interix.ads, system-solaris-sparc.ads,
25735 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25736 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
25737 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
25738 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
25739 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
25740 Compiler_System_Version to be False.
25742 * opt.ads: Add new flag Opt.Address_Is_Private
25744 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
25745 Add new parameter Compiler_System_Version to avoid checking for
25746 completeness of parameters when compiler is compiling itself.
25747 Allows old versions of GNAT to be compiled with new compiler.
25749 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25751 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
25752 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
25754 (Stack_Base_Available): New flag.
25755 (Get_Page_Size): New overloaded functions imported from C.
25756 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
25757 PROT_ON, PROT_OFF): New constants.
25758 (mprotect): New function imported from C.
25759 (pthread_teb_t): New record type.
25761 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
25762 (Create_Task): Account for the Yellow Zone and the guard page.
25764 2005-03-15 Vincent Celier <celier@adacore.com>
25766 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25767 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25768 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
25769 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
25770 Library_File_Name_For): Add new parameter In_Tree
25771 to specify the project tree: needed by the project manager.
25772 Adapt to changes in project manager using new parameter In_Tree.
25773 Remove local imports, use functions in System.CRTL.
25775 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
25776 to use the project manager.
25778 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
25779 In_Tree to designate the project tree. Adapt to changes in the project
25780 manager, using In_Tree.
25782 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
25783 Copy_Interface_Sources): Add new parameter In_Tree to specify the
25784 project tree: needed by the project manager.
25785 (Build_Library): Check that Arg'Length >= 6 before checking if it
25786 contains "--RTS=...".
25788 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
25789 Library_File_Name_For): Add new parameter In_Tree to specify the
25790 project tree: needed by the project manager.
25792 * prj.ads, prj.adb: Major modifications to allow several project trees
25793 in memory at the same time.
25794 Change tables to dynamic tables and hash tables to dynamic hash
25795 tables. Move tables and hash tables from Prj.Com (in the visible part)
25796 and Prj.Env (in the private part). Move some constants from the visible
25797 part to the private part. Make other constants deferred.
25798 (Project_Empty): Make it a variable, not a function
25799 (Empty_Project): Add parameter Tree. Returns the data with the default
25800 naming data of the project tree Tree.
25801 (Initialize): After updating Std_Naming_Data, copy its value to the
25802 component Naming of Project Empty.
25803 (Register_Default_Naming_Scheme): Use and update the default naming
25804 component of the project tree, instead of the global variable
25806 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
25807 Tree is not defaulted, return the default naming data of the Tree.
25808 (Initial_Buffer_Size): Constant moved from private part
25809 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
25810 variables initialized in procedure Initialize.
25811 (Add_To_Buffer): Add two in out parameters to replace global variables
25812 Buffer and Buffer_Last.
25813 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
25815 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
25817 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25818 for the project tree.
25819 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
25820 constant at the beginning of the package spec, so that they cane be used
25821 in subprograms before their full declarations.
25822 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
25823 (Empty_Project): Add parameter of type Project_Node_Ref
25824 (Private_Project_Tree_Data): Add component Default_Naming of type
25826 (Buffer, Buffer_Last): remove global variables
25827 (Add_To_Buffer): Add two in out parameters to replace global variables
25828 Buffer and Buffer_Last.
25829 (Current_Packages_To_Check): Remove global variable
25830 (Empty_Name): Move to private part
25831 (No-Symbols): Make it a constant
25832 (Private_Project_Tree_Data): New type for the private part of the
25834 (Project_Tree_Data): New type for the data of a project tree
25835 (Project_Tree_Ref): New type to designate a project tree
25836 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25837 for the project tree.
25839 * prj-attr.ads: Add with Table; needed, as package Prj no longer
25840 imports package Table.
25842 * prj-com.adb: Remove empty, no longer needed body
25844 * prj-com.ads: Move most of the content of this package to package Prj.
25846 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
25847 designate the project node tree and Packages_To_Check to replace
25848 global variable Current_Packages_To_Check.
25849 Add new parameters In_Tree and Packages_To_Check to local subprograms,
25850 when needed. Adapt to changes in project manager with project node tree
25853 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
25854 project tree to most subprograms. Move tables and hash tables to
25855 private part of package Prj.
25856 Adapt to changes in project manager using project tree In_Tree.
25858 * prj-makr.adb (Tree): New constant to designate the project node tree
25859 Adapt to change in project manager using project node tree Tree
25861 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
25862 display the Library_Src_Dir and the Library_Dir.
25863 Add new parameter In_Tree to designate the project node tree to most
25864 subprograms. Adapt to changes in the project manager, using project tree
25866 (Check_Naming_Scheme): Do not alter the casing on platforms where
25867 the casing of file names is not significant.
25868 (Check): Add new parameter In_Tree to designate the
25870 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
25871 designate the project tree.
25872 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
25874 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
25875 to replace those that were in the private part of package Prj.
25876 Add new parameter In__Tree to designate the project node tree to most
25877 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25878 (Post_Parse_Context_Clause): When specifying the project node of a with
25879 clause, indicate that it is a limited with only if there is "limited"
25880 in the with clause, not necessarily when In_Limited is True.
25881 (Parse): Add new parameter In_Tree to designate the project node tree
25883 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
25884 designate the project node tree. Adapt to change in Prj.Tree with
25885 project node tree In_Tree.
25887 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
25888 tree In_Tree in the call to function Empty_Process to give its initial
25889 value to the project data Processed_Data.
25890 Add new parameters In_Tree to designate the project tree and
25891 From_Project_Node_Tree to designate the project node tree to several
25892 subprograms. Adapt to change in project manager with project tree
25893 In_Tree and project node tree From_Project_Node_Tree.
25895 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
25896 to replace those that were in the private part of package Prj.
25897 Add new parameter In_Tree to designate the project node tree to most
25898 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25900 * prj-tree.ads, prj-tree.adb: Add new parameter of type
25901 Project_Node_Tree_Ref to most subprograms.
25902 Use this new parameter to store project nodes in the designated project
25904 (Project_Node_Tree_Ref): New type to designate a project node tree
25905 (Tree_Private_Part): Change table to dynamic table and hash tables to
25906 dynamic hash tables.
25908 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
25909 the project tree to most subprograms. Adapt to changes in project
25910 manager using project tree In_Tree.
25912 * makegpr.adb (Project_Tree): New constant needed to use project
25915 2005-03-15 Olivier Hainque <hainque@adacore.com>
25917 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
25918 for sigactions with SA_SIGINFO set. Call
25919 __gnat_adjust_context_for_raise before raising, to perform the
25920 potentially required adjustments to the machine context for the GCC
25923 * raise.h (__gnat_adjust_context_for_raise): New prototype.
25925 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
25926 Adjust PC by one in the provided machine context.
25927 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
25928 so that the handler is passed the context structure to adjust prior to
25930 (__gnat_error_handler) HPUX: Adjust the signature to match what an
25931 SA_SIGINFO sigaction should look like. Call
25932 __gnat_adjust_context_for_raise before actually raising.
25933 (__gnat_adjust_context_for_raise): Default noop to help PC
25934 adjustments before raise from signal handlers.
25935 (__gnat_error_handler): Indirectly call a predicate function to
25936 determine if a condition should be resignaled or not.
25937 (__gnat_set_resignal_predicate): User interface to modify the predicate.
25938 (__gnat_default_resignal_p): Default GNAT predicate.
25940 2005-03-15 Doug Rupp <rupp@adacore.com>
25942 * adaint.c: Prefix #include of VMS system header files with vms/
25943 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
25944 Do not define a dummy function "convert_addresses" under Darwin,
25947 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
25950 2005-03-15 Nicolas Setton <setton@adacore.com>
25952 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
25955 2005-03-15 Robert Dewar <dewar@adacore.com>
25957 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
25960 * a-retide.ads: Minor comment changes
25962 2005-03-15 Robert Dewar <dewar@adacore.com>
25964 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
25965 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
25966 Realloc_For_Chunk to private part of package.
25967 New subprograms for AI-301
25969 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
25970 Get_Line procedure.
25971 Avoid unnecessary use of Get/Set_Wide_String
25973 2005-03-15 Robert Dewar <dewar@adacore.com>
25976 * a-stunau.ads, a-stunau.adb:
25977 Change interface to allow efficient (and correct) implementation
25978 The previous changes to allow extra space in unbounded strings had
25979 left this interface a bit broken.
25981 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
25983 * g-spipat.ads, g-spipat.adb: New interface for Get_String
25984 Minor reformatting (function specs)
25986 * g-spitbo.adb: New interface for Get_String
25988 * g-spitbo.ads: Minor reformatting
25990 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
25992 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
25994 2005-03-15 Javier Miranda <miranda@adacore.com>
25995 Robert Dewar <dewar@adacore.com>
25996 Thomas Quinot <quinot@adacore.com>
25997 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25999 * atree.ads, atree.adb: Add support for Elist24 field
26001 * atree.h: Fix wrong definition of Field27
26002 Add support for Elist16 field
26003 Add support for Elist24 field
26005 * einfo.ads, einfo.adb (Abstract_Interfaces,
26006 Set_Abstract_Interfaces): New subprograms.
26007 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
26009 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
26010 entities rather than a single node.
26011 (Is_Interface, Set_Is_Interface): New subprogram
26012 (First_Tag_Component): New syntesized attribute
26013 (Next_Tag_Component): New synthesized attribute
26014 (Write_Entity_Flags): Upgraded to write Is_Interface
26015 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
26016 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
26017 (Task_Body_Procedure): New subprogram to read this attribute.
26018 (Set_Task_Body_Procedure): New subprogram to set this attribute.
26019 (Has_Controlled_Component): Now applies to all entities.
26020 This is only a documentation change, since it always worked to apply
26021 this to other than composite types (yielding false), but now this is
26023 Update documentation on Must_Be_Byte_Aligned for new spec
26025 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
26026 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
26027 uses of the Access_Disp_Table attribute to reference the first dispatch
26028 table associated with a tagged type. As
26029 part of the implementation of abstract interface types,
26030 Access_Disp_Table has been redefined to contain a list of dispatch
26031 tables (rather than a single dispatch table).
26032 Similarly, upgrade all the references to Tag_Component by the
26033 new attribute First_Tag_Component.
26034 (Find_Inherited_TSS): Moved to exp_tss.
26035 Clean up test in Expand_N_Object_Declaration for cases
26036 where we need to do a separate assignment of the initial value.
26037 (Expand_N_Object_Declaration): If the expression in the
26038 declaration of a tagged type is an aggregate, no need to generate an
26039 additional tag assignment.
26040 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
26042 Bit packed array ops are only called if operands are known to be
26044 (Component_Equality): When returning an N_Raise_Program_Error statement,
26045 ensure that its Etype is set to Empty to avoid confusing GIGI (which
26046 expects that only expressions have a bona fide type).
26047 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
26048 determine the amount of data to be copied.
26050 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
26051 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
26052 INTERFACE_TYPE_DEFINITION ::=
26053 [limited | task | protected | synchronized] interface
26054 [AND interface_list]
26056 * par-ch3.adb (P_Type_Declaration): Modified to give support to
26058 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
26060 (P_Interface_Type_Definition): New subprogram that parses the new
26061 syntax rule of Ada 2005 interfaces
26062 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
26063 messages by the correct RENAMES (quotes removed).
26065 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
26066 attribute First_Tag_Component.
26068 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
26069 (Interface_List, Set_Interface_List): New subprograms.
26070 (Interface_Present, Set_Interface_Present): New subprograms.
26071 (Limited_Present, Set_Limited_Present): Available also in derived
26072 type definition nodes.
26073 (Protected_Present, Set_Protected_Present): Available also in
26074 record type definition and
26075 derived type definition nodes.
26076 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
26077 (Task_Present, Set_Task_Present): New subprogram.
26078 (Task_Body_Procedure): Removed.
26079 (Set_Task_Body_Procedure): Removed.
26080 These subprogram have been removed because the attribute
26081 Task_Body_Procedure has been moved to the corresponding task type
26082 or task subtype entity to leave a field free to store the list
26083 of interfaces implemented by a task (for AI-345)
26084 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
26085 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
26086 expression flag Do_Range_Check
26087 (Exception_Junk): Change to Flag7 to accomodate above change
26088 (Box_Present, Default_Name, Specification, Set_Box_Present,
26089 Set_Default_Name, Set_Specification): Expand the expression
26090 "X in N_Formal_Subprogram_Declaration" into the corresponding
26091 two comparisons. Required to use the csinfo tool.
26093 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
26094 "with string" given.
26096 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
26099 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
26102 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
26103 attribute Task_Body_Procedure rather than the old semantic field that
26104 was available in the task_type_declaration node.
26106 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
26107 interface type definitions.
26108 (P_Formal_Derived_Type_Definition): Modified to handle the list of
26111 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
26112 task type declaration.
26113 (P_Protected): Modified to handle the list of interfaces in a
26114 protected type declaration.
26116 2005-03-15 Doug Rupp <rupp@adacore.com>
26117 Vincent Celier <celier@adacore.com>
26119 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
26120 (Gen_Output_File_C): Likewise.
26121 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
26123 2005-03-15 Thomas Quinot <quinot@adacore.com>
26125 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
26126 is an N_Raise_Constraint_Error node, create a new copy of it without
26127 going through a call to Duplicate_Subexpr.
26129 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
26130 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26131 Nicolas Setton <setton@adacore.com>
26132 Ed Schonberg <schonberg@adacore.com>
26138 * decl.c (gnat_to_gnu_field): Reject aliased components with a
26139 representation clause that prescribes a size not equal to the rounded
26140 size of their types.
26141 (gnat_to_gnu_entity, case E_Component): Always look at
26142 Original_Record_Component if Present and not the entity.
26143 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
26144 of tagged extension types by not making field for components that are
26146 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
26147 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
26148 expression to the type of the object when the object is constant.
26149 Reverse defer_debug_incomplete_list before traversing it, so that trees
26150 are processed in the order at which they were added to the list. This
26151 order is important when using the stabs debug format.
26152 If we are deferring the output of debug information, also defer this
26153 output for a function return type.
26154 When adding fields to a record, prevent emitting debug information
26155 for incomplete records, emit the information only when the record is
26157 (components_to_record): New parameter defer_debug.
26158 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
26159 (gnat_to_gnu_field_decl): New function.
26160 (substitution_list, annotate_rep): Call it.
26161 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
26162 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
26163 No longer update discriminants to not be a COMPONENT_REF.
26164 (copy_alias_set): Strip padding from input type; also handle
26165 unconstrained arrays properly.
26167 * gigi.h (write_record_type_debug_info): New function.
26168 Convert to use ANSI-style prototypes. Remove unused
26169 declarations for emit_stack_check, elab_all_gnat and
26170 set_second_error_entity.
26171 (gnat_to_gnu_field_decl): New decl.
26173 * utils.c (write_record_type_debug_info): New function.
26174 (finish_record_type): Delegate generation of debug information to
26175 write_record_type_debug_info.
26176 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
26177 (update_pointer_to): Fix pasto.
26178 (convert) <UNION_TYPE>: Accept slight type variations when
26179 converting to an unchecked union type.
26181 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
26182 replace the N_Freeze_Entity with a null statement.
26184 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
26185 within a constrained subcomponent of an enclosing record, place the
26186 freeze nodes in the scope stack entry for the enclosing record.
26187 (Undelay_Type): New Subprogram.
26188 (Set_Small_Size): Pass T, the type to modify; all callers changed.
26189 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
26190 within records; allow them to have freeze nodes if their base types
26193 * exp_util.adb (Remove_Side_Effects): Properly test for
26194 Expansion_Delayed and handle case when it's inside an
26195 N_Qualified_Expression.
26197 * sem_ch3.adb (Derived_Type_Declaration): New predicate
26198 Comes_From_Generic, to recognize accurately that the parent type in a
26199 derived type declaration can be traced back to a formal type, because
26200 it is one or is derived from one, or because its completion is derived
26202 (Constrain_Component_Type): If component comes from source and has no
26203 explicit constraint, no need to constrain in in a subtype of the
26205 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
26206 Minor change to propagate Is_Ada_2005 flag
26208 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
26209 Expansion_Delayed is False.
26210 (assoc_to_constructor): Ignore fields that have a
26211 Corresponding_Discriminant.
26212 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
26213 function returns "by target", dereference the target pointer using the
26214 type of the actual return value.
26215 <all>: Be prepared for a null gnu_result.
26216 (processed_inline_subprograms): Check flag_really_no_inline
26217 instead of flag_no_inline.
26218 (set_second_error_entity): Remove unused function.
26219 (gnat_to_gnu, case N_Selected_Component): Call
26220 gnat_to_gnu_field_decl.
26221 (assoc_to_constructor): Likewise.
26223 2005-03-15 Robert Dewar <dewar@adacore.com>
26224 Ed Schonberg <schonberg@adacore.com>
26225 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26227 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
26228 Must_Be_Byte_Aligned for cases where we do not need to use a
26229 System.Pack_nn unit.
26231 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
26233 Needed now that we do some processing for IN parameters as well. This
26234 may well fix some unrelated errors.
26235 (Expand_Call): Handle case of unaligned objects (in particular those
26236 that come from packed arrays).
26237 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
26238 renamed entity is an inherited operation, re-expand the call using the
26239 original operation, which is the one to call.
26240 Detect attempt to inline parameterless recursive subprogram.
26241 (Represented_As_Scalar): Fix to work properly with private types
26242 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
26243 accurate estimate. Yields True in far fewer cases than before,
26244 improving the quality of code that depends on this test.
26246 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
26247 over both visible and private declarations to remove them from tree,
26248 and mark subprograms declared in package as eliminated, to prevent
26249 spurious use in subsequent compilation of generic units in the context.
26251 * exp_util.ads: Minor cleanup in variable names
26253 * sem_eval.ads, sem_eval.adb: Minor reformatting
26254 (Compile_Time_Known_Bounds): New function
26256 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26258 * exp_ch7.adb (Convert_View): Use base types of underlying types when
26259 determining whether an unchecked conversion is needed for the argument
26260 of an initialization call.
26262 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26264 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
26265 that appears in the instantiation rather than the internal subtype
26266 generated in the wrapper package, to avoid anomalies in gigi when the
26267 target is derived from a private type whose full view is an access type.
26269 2005-03-15 Robert Dewar <dewar@adacore.com>
26271 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
26273 Add documentation to replace the use of this flag
26274 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
26277 2005-03-15 Thomas Quinot <quinot@adacore.com>
26279 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
26280 here from exp_attr so it can be shared between exp_attr and exp_dist.
26281 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
26282 all TSS names, not a subset thereof, and the previous name introduced
26283 an unnecessarily confusion that a distinction might exist between
26284 "OK" TSS names and some "not OK" TSS names.
26286 2005-03-15 Doug Rupp <rupp@adacore.com>
26288 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
26291 2005-03-15 Pascal Obry <obry@adacore.com>
26292 Eric Botcazou <ebotcazou@adacore.com>
26296 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
26297 when IN_RTS. This is to work around a bootstrap path problem.
26299 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
26300 table and pass it to __gnat_install_SEH_handler().
26301 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
26303 * lang.opt: Fix specification of -fRTS=.
26305 2005-03-15 Doug Rupp <rupp@adacore.com>
26306 Bernard Banner <banner@adacore.com>
26307 Vincent Celier <celier@adacore.com>
26308 Arnaud Charlet <charlet@adacore.com>
26311 This change works fine when gnatlib is built from the gcc directory,
26312 but does not work when using the libada Makefile, since GCC_FOR_TARGET
26313 is not passed to ada/Makefile.in, so more work is needed by a
26314 Makefile/configure expert.
26316 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
26317 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
26318 Setup gnatlink switch -M for x86_64 linux, as it is already setup
26320 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
26321 Run ranlib on libgccprefix.a
26322 Define PREFIX_OBJS for Darwin, to build libgccprefix.
26323 (ADA_INCLUDE_SRCS): Split Ada packages.
26325 2005-03-15 Robert Dewar <dewar@adacore.com>
26327 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
26329 * impunit.adb: Add GNAT.UTF_32
26331 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
26333 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
26334 now uses GNAT.UTF_32).
26336 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
26337 capabilities for categorizing characters using Unicode categories
26339 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26341 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
26342 instantiation that has been rewritten as a package body, retrieve spec
26343 to generate proper name for implicit_with_clause.
26344 (Install_Parents): Recognize a parent that is an instantiation but has
26345 been rewritten as a package declaration during analysis.
26347 2005-03-15 Javier Miranda <miranda@adacore.com>
26348 Ed Schonberg <schonberg@adacore.com>
26350 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
26351 parameter reported some error we immediately return. This improves the
26352 behaviour of the frontend in case of errors.
26353 (Install_Parent, Remove_Parent): Introduce new flag
26354 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
26355 ancestor of a generic child unit, when the child is being instantiated.
26356 (Inline_Instance_Body): If we are compiling the private
26357 part or the body of a child unit, restore the proper visibility of the
26358 parents after compiling the instance body.
26360 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26361 Javier Miranda <miranda@adacore.com>
26364 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
26365 of a private type, in which case it is underlying_type that denotes
26366 the proper task. Also modified to use the new entity attribute
26367 that is directly available in the task type and task subtype entities
26368 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
26369 arrays when other dimensions than the first are constrained by
26370 discriminants of an enclosing record.
26371 (Insert_Explicit_Dereference): If the prefix is an indexed component or
26372 a combination of indexed and selected components, find ultimate entity
26373 and generate the appropriate reference for it, to suppress spurious
26375 (Note_Possible_Modification): If an entity name has no entity, return.
26376 (Is_Variable): A function call never denotes a variable.
26377 (Requires_Transient_Scope): For record types, recurse only on
26378 components, not on internal subtypes that may have been generated for
26379 constrained components.
26381 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26383 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
26384 Eliminated as candidates for resolution. Both efficient, and avoids
26385 anomalies with operators declared in deleted code.
26386 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
26387 expansion is disabled (as when compiling a generic) to prevent spurious
26388 warnings on prefixes of selected components.
26390 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26392 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
26393 attached to a list before checking whether it appears in the private
26394 declarations of the current package.
26395 (Make_Inequality_Operator): Insert declaration in proper declarative
26396 list rather than just setting the Parent field, so that
26397 Is_Private_Declaration can handle it properly.
26399 2005-03-15 Ed Schonberg <schonberg@adacore.com>
26401 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
26402 a renaming a body, check that the renamed subprogram in not intrinsic.
26403 (Find_Direct_Name): If several use_visible entities hide
26404 each other, and the context is a predefined file compiled through
26405 rtsfind, keep only the entity that comes from a predefined file.
26407 2005-03-15 Geert Bosch <bosch@adacore.com>
26409 * s-fatgen.adb (Valid): Extend special exceptions to account for long
26410 long float padding to also cover AMD64 and IA64.
26412 2005-03-15 Gary Dismukes <dismukes@adacore.com>
26414 * s-imgwch.adb: Add with and use of Interfaces.
26415 (Img_Wide_Character): Change type of Val to Unsigned_16.
26416 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
26418 2005-03-15 Matthew Gingell <gingell@adacore.com>
26420 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
26422 2005-03-15 Robert Dewar <dewar@adacore.com>
26424 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
26426 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
26428 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
26430 2005-03-15 Robert Dewar <dewar@adacore.com>
26432 * s-bitops.adb, s-bitops.ads,
26433 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
26434 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
26435 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
26436 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
26437 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
26438 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
26439 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
26440 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
26443 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
26445 * utils2.c (build_binary_op): Fix typo.
26447 2005-03-15 Doug Rupp <rupp@adacore.com>
26449 * s-crtl.ads (popen,pclose): New imports.
26451 2005-03-15 Cyrille Comar <comar@adacore.com>
26453 * comperr.adb (Compiler_Abort): remove references to obsolete
26454 procedures in the bug boxes for various GNAT builds.
26456 2005-03-15 Vincent Celier <celier@adacore.com>
26458 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
26460 2005-03-15 Geert Bosch <bosch@adacore.com>
26461 Arnaud Charlet <charlet@adacore.com>
26462 Robert Dewar <dewar@adacore.com>
26463 Cyrille Comar <comar@adacore.com>
26464 Sergey Rybin <rybin@adacore.com>
26466 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
26467 too specific and long-winded to be appropriate for the GNAT User's
26469 Warn about use of GCC switches not documented in the GNAT User's Guide,
26470 as these may cause generated code to not conform to Ada semantics.
26471 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
26472 Add documentation for -gnat95 and -gnat05 switches
26473 Remove paragraph documenting obsolete way to refer to third party
26475 Add a few references to Ada_05 that were missing.
26476 Update documentation on -gnatZ/-gnatL.
26477 Document limitation when using -m64 under Solaris.
26478 Change the "Name Casing" subsection of the pretty-printer section
26479 according to the changes in the dictionary processing.
26481 * gnat_rm.texi: Document the Ada_05 pragma.
26482 Section on record representation clauses describes the new more
26483 relaxed rules about placement of large packed bit array components.
26484 Add documentation of GNAT.UTF_32
26486 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
26488 * misc.c (gnat_post_options): Turn off structural
26491 2005-03-08 Laurent Guerby <laurent@guerby.net>
26493 * system-linux-sparc.ads: Fix typo in previous commit.
26495 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
26496 Laurent Guerby <laurent@guerby.net>
26499 * system-linux-sparc.ads: New.
26500 * Makefile.in: Add sparc linux entry.
26502 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
26504 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
26505 parameters as unused.
26507 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
26508 Partial merge from libada-gnattools-branch:
26510 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
26511 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
26512 into code in gnattools/Makefile.in. Remove direct dependencies on
26513 stamp-tools by tools clauses.
26514 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
26515 * config-lang.in: Add gnattools to $lang_dirs.
26517 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
26520 * utils.c (gnat_type_for_mode): Return null instead of ICE because
26521 we asked for an unknown mode.
26523 2005-02-12 Richard Henderson <rth@redhat.com>
26525 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
26526 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
26528 2005-02-10 Andreas Jaeger <aj@suse.de>
26530 * init.c (__gnat_initialize): Mark parameter as unused.
26532 2005-02-09 Doug Rupp <rupp@adacore.com>
26534 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
26535 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
26537 2005-02-09 Doug Rupp <rupp@adacore.com>
26539 * gnatchop.adb (dup, dup2),
26540 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
26542 * gnatlbr.adb (mkdir),
26543 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
26545 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
26547 2005-02-09 Doug Rupp <rupp@adacore.com>
26549 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
26551 2005-02-09 Robert Dewar <dewar@adacore.com>
26552 Thomas Quinot <quinot@adacore.com>
26553 Javier Miranda <miranda@adacore.com>
26554 Pascal Obry <obry@adacore.com>
26555 Ed Schonberg <schonberg@adacore.com>
26556 Doug Rupp <rupp@adacore.com>
26557 Gary Dismukes <dismukes@adacore.com>
26558 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26560 * g-zstspl.ads: New file.
26562 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
26564 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
26566 Add definition of Wide_Wide_Space for AI-285
26568 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
26569 interface (to support Ada 95 and Ada 2005 units).
26570 Add Unbounded_IO files
26571 Add entries for Wide_Wide packages for AI-285
26572 Add list of containers packages to Ada 2005 unit list
26574 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
26575 support new Unbounded_IO package cleanly.
26577 * g-utf_32.ads, g-utf_32.adb: New files.
26579 * Makefile.rtl: Add entry for g-utf_32
26580 Add new files for Unbounded_IO
26581 Adjust make file for new AI-285 wide wide packages
26582 Add AI-302 containers to the run time.
26584 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
26585 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
26586 subprograms for AI-301.
26588 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
26590 * a-stunau.ads: Minor comment correction
26592 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
26594 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
26595 (Check_RPC): Update to match changes in expanded code.
26596 Clean up unused entity.
26598 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
26599 was not taken into account.
26600 This includes proper initialization with Normalize_Scalars.
26601 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
26602 normalize scalars cases (particularly the latter) to do a better job
26603 of finding invalid representations.
26605 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
26607 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
26610 * exp_dist.adb: Add support for wide wide character type
26611 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
26612 private part, generate stub bodies at the end of the private part,
26613 not the visible part.
26614 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
26616 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
26617 generic wrapper to execute final processing after completing the
26618 expansion of the RPC receiver for an RACW.
26620 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
26621 packages and attributes.
26622 (Preset_Names): Addition of the new reserved words of Ada 2005,
26623 that is interface, overriding and synchronized.
26624 (Get_Pragma_Id): Give support to the use of the new reserved word
26625 "interface" as a pragma name.
26626 (Is_Pragma_Name): Give support to the use of the new reserved word
26627 "interface" as a pragma name.
26628 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
26629 attribute implementation.
26631 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
26632 checks to entities that are output parameters of Asm operations.
26633 Handle the Stream_Size attribute.
26634 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
26636 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
26638 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
26639 for second parameter being 0.0.
26640 Add support for wide wide character type.
26641 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
26643 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
26644 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
26645 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
26646 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
26647 for wide wide character cases.
26649 * cstand.adb: Create entities for Wide_Wide_Character and
26652 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
26653 accordance with AI-258.
26654 Add new declarations for 16/32 bit C character types (Part of AI285)
26656 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
26657 (Obsolescent_Warning): New field
26658 (Rep_Clause): New local subprogram used to share code. Returns the rep
26659 clause for which the name is given in parameter.
26660 (Has_Stream_Size_Clause): New routine.
26661 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
26662 (Address_Clause): Implementation is now using Rep_Clause.
26663 (Alignment_Clause): Idem.
26664 (Size_Clause): Idem.
26666 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
26667 entity in non-Ada 2005 mode and generate warning.
26669 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
26670 (Prag): Code cleanup. Remove old gnat pragma "overriding"
26672 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
26673 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
26674 on the named unit if the pragma is not in the current compilation unit,
26675 so that elaboration calls in the current unit can set up an elaboration
26676 dependency on the named unit, as needed.
26677 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
26678 subprogram as well as for subprograms declared within a package.
26679 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
26682 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
26683 to z) to avoid some instances of duplication for Wide_Wide packages.
26685 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
26688 * scn.adb: Char_Literal_Value field is now a Uint
26690 * scng.adb: Significant rewrite to handle new Ada 2005 features
26691 allowing wide and wide wide characters in program text, e.g. for
26692 identifiers, as described in AI-285.
26693 (Set_Reserved): New procedure, makes setting up keywords cleaner.
26694 (Initialize_Scanner): Register the new reserved words of Ada 2005.
26695 (Scan): Give support to the new reserved words.
26697 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
26698 warning notifying that interface, overriding, and synchronized are
26699 new reserved words.
26700 (P_Pragma): Allow the use of the new reserved word "interface" as
26703 * gnatls.adb, gnatbind.adb,
26704 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
26705 identifiers named "interface" to "SAL_Interface".
26707 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
26708 (Structured Exception handling).
26709 (Gen_Main_C): Idem.
26712 (Gen_Main_Ada): Set the default exit code if specified.
26713 (Gen_Main_C): Likewise.
26715 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
26716 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
26718 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
26721 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
26722 has a collision with the new Ada 2005 "interface" reserved word.
26724 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
26725 generate a warning notifying that interface, overriding, and
26726 synchronized are new reserved words.
26728 * scans.ads (Token_Type): Addition of the tokens corresponding to the
26729 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
26730 and Tok_Synchronized.
26732 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
26733 "dispatching" rather than "primitive" operations, since dispatching
26734 calls are now allowed to abstract formal subprograms (which are not
26736 Char_Literal_Value field is now a Uint
26737 (Resolve_Slice): If the prefix is an access to an unconstrained array,
26738 compute the actual subtype of the designated object to impose the proper
26740 (Resolve_Selected_Component): Do not insert an access check if the
26741 prefix is an access type: such a node is expanded into an explicit
26742 dereference, on which the access check is performed anyway. Removes
26743 expensive duplicate checks.
26744 (Resolve_Call): Use new flag Is_Obsolescent and field
26745 Obsolescent_Warning so that pragma Obsolescent works on library
26747 Add support for wide wide character type
26748 (Resolve_Allocator): Replace the error message on wrong null-exclusion
26749 value by a warning message.
26750 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
26751 as fixed-point, and one of the operands is non-static and universal, it
26752 can only be an illegal exponentiation operation, in which case there is
26753 no real value to retrieve.
26755 * exp_strm.adb: Add support for wide wide character type
26756 (Build_Elementary_Input_Call): Compute the size of the stream element by
26757 querying the rep chain to find the Stream_Attribute attribute value.
26758 (Build_Elementary_Write_Call): Ditto.
26760 * sem_aggr.adb: Char_Literal_Value field is now a Uint
26761 Add support for wide wide character type
26762 Replace the error messages on wrong null-exclusion value by warnings
26763 as described in Ada 2005.
26764 (Resolve_Extension_Aggregate): Document the fact that the error
26765 message on class-wide expressions in extensions aggregates.
26767 * sem_case.adb: Add support for wide wide character type
26769 * sem_ch13.adb: Add support for wide wide character type
26770 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
26772 * sem_ch3.adb: Add support for wide wide character type
26773 (Process_Subtype): If constraint is illegal for the type, set Ekind of
26774 now-useless Itype, to prevent cascaded errors on a compiler built
26777 * sem_ch8.adb: Add with and use of Sem_Disp.
26778 (Analyze_Subprogram_Renaming): Replace unclean uses of
26779 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
26780 of Corresponding_Spec to Empty).
26781 (Attribute_Renaming): Replace use of Corresponding_Spec with
26782 Corresponding_ Formal_Spec and simplify condition.
26783 (Use_One_Package): Check that scope of homonym of identifier is defined,
26784 before checking whether it is a wrapper package.
26785 Add support for wide wide character type
26787 * sem_eval.adb: Add support for wide wide character type.
26788 (Eval_Arithmetic_Op): Check for compile time known signed integer
26789 overflow in the non-static case.
26790 (Subtypes_Statically_Match): A formal scalar type and its base type do
26791 not statically match.
26793 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
26794 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
26796 (Unit_Declaration_Node): Ditto.
26797 (Is_Variable_Prefix): For the case of an indexed component whose prefix
26798 has a packed array type, the prefix has been rewritten into a type
26799 conversion. Determine variable-ness from the converted expression.
26800 Handle wide wide character cases.
26802 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
26804 * stringt.ads, stringt.adb: Handle full UTF-32 range.
26805 Remove ["0A"] from comment, since it can look like a line terminator.
26806 Currently we don't permit this, but this is under discussion by the
26807 ARG, and it is easy enough to use a different example.
26809 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
26810 handling UTF-32 encoding for wide wide character.
26811 Implement new brackets coding ["hhhhhhhh"]
26812 Add UTF-8 encodings for full UTF-32 range
26814 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
26816 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
26817 bit range Add full UTF-32 support.
26818 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
26819 notify that constraint error will be raised at run-time
26820 because a null value is assigned to a null-excluding object.
26821 Remove some obsolete declarations and make Char_Code
26824 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
26825 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
26826 Rcheck subprograms.
26828 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
26829 wrong null-exclusion value by a warning message.
26830 (Enable_Range_Check): Do range check if the prefix is an
26831 explicit dereference whose designated object is an unconstrained array.
26832 Current algorithm for removing duplicate checks is over-eager in this
26835 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
26836 null-exclusion value by a warning message
26838 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
26839 completely. Add support for Uint2 field
26841 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
26842 exp_prag.adb: Char_Literal_Value field is now a Uint.
26844 * exp_util.adb (Insert_Actions): Replace
26845 N_Formal_Subprogram_Declaration by
26846 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
26847 Char_Literal_Value field is now a Uint.
26849 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
26850 defined for subprogram renaming declarations. When set, the field
26851 indicates the defining entity of a corresponding formal subprogram
26852 when the renaming corresponds to a formal subprogram association in an
26854 (Set_Corresponding_Formal_Spec): New procedure to return
26855 Corresponding_Formal_Spec field.
26856 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
26857 (which is now a subtype).
26858 Char_Literal_Value field is now a Uint
26860 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
26861 pointer to the base of the dispatch table.
26862 Minor changes to comments.
26863 (Controlling_Type): New function for determining the tagged type
26864 associated with a tagged primitive subprogram.
26865 (Expand_Dispatching_Call): Add support for a controlling actual that is
26866 directly a value of type Ada.Tag rather than a tagged object.
26868 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
26869 describing the new layout.
26870 (Dispatch_Table): The expander computes the actual array size, allocates
26871 the Dispatch_Table record accordingly, and generates code that displaces
26872 the base of the record after the Typeinfo_Ptr component. The access to
26873 these components is done by means of local functions.
26874 (Offset_To_Top): New function.
26875 (Typeinfo_Ptr): New function.
26876 (Get_TSD): Modified to access the new position of the TSD.
26877 (Set_TSD): Modified to save the TSD in its new position.
26879 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
26880 case of formal abstract subprograms. Add check and message for -gnat05.
26883 * sem_ch12.adb: Add with and use for Sem_Disp.
26884 (Analyze_Associations): Minor change from "=" to "in" for use of
26885 N_Formal_Subtype_Declaration (which is now a subtype).
26886 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
26887 N_Formal_Subtype_Declaration (which is now a subtype).
26888 (Analyze_Formal_Subprogram): Add handling for
26889 N_Formal_Abstract_Subprogram, marking the formal as abstract and
26890 dispatching, setting the controlling status of the formal parameters
26891 and result, and issuing an error if there is no controlling type for
26892 the formal subprogram.
26893 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
26894 which is an unclean use of that field, we set the new field
26895 Corresponding_Formal_Spec to make the formal subprogram available to
26896 processing in Analyze_Subprogram_Declaration.
26897 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
26898 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
26899 Constrained, so that it is is does not statically match its anonymous
26902 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
26903 abstract formal subprograms in error check for functions returning
26904 abstract types. Set scope of new designator for
26905 a parameterless subprogram, so that it is available when checking the
26906 body for nested subprograms, before full analysis of said body.
26907 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
26908 subprogram only if inner one comes from source.
26909 (Analyze_Function_Call): If the call is given in object notation, the
26910 analysis of the name rewrites the node and analyzes it with the proper
26911 argument list. After analyzing the name, if the call has been rewritten
26912 and the result type is set, no further analysis is needed.
26913 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
26914 mark in function specification, in a context where the formals are
26915 visible and hide outer homographs.
26917 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
26918 as the tagged type for the cases of abstract formal subprograms and
26919 renamings of those. Clean up spec comments.
26920 (Check_Dispatching_Context): Add error message to indicate "abstract
26921 procedure", covering the case of a call to a formal abstract procedure
26922 that has statically tagged operands.
26923 (Check_Dispatching_Call): Check for the case of an actual given by
26924 a tag-indeterminate function call whose type is an ancestor of the
26925 containing call's associated tagged type. This situation can occur
26926 for inherited primitives with function defaults. In this case we
26927 use the tagged type's tag directly as the controlling argument for
26929 (Expand_Call): Name change on call to Expand_Dispatch_Call.
26931 * sprint.adb (Sprint_Node_Actual): Split
26932 N_Formal_Subprogram_Declaration into two alternatives for the new
26933 cases N_Formal_Abstract_Subprogram_Declaration and
26934 N_Formal_Concrete_Subprogram_Declaration.
26935 Char_Literal_Value field is now a Uint.
26937 * trans.c: Get rid of junk Uint2 reference.
26938 Char_Literal_Value field is now a Uint.
26939 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
26940 (gigi): Correct third arg to gimplify_body.
26942 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
26943 (TYPE_LANG_FLAG_0): Check for record or union.
26945 * treepr.adb: Char_Literal_Value field is now a Uint
26947 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
26950 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
26951 Add full UTF-32 support
26952 Char_Code is now 32 bits
26954 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
26955 wide character UTF_32 line terminators.
26956 Initialize Main_Source_File to avoid error when no main
26959 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
26960 (Main_Source_File) when no main source has been loaded, to avoid
26963 2005-02-09 Robert Dewar <dewar@adacore.com>
26965 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
26966 Fix name of Set routine
26968 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
26971 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
26972 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
26975 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
26976 forms of Get_Line subprograms for AI-301.
26978 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
26979 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
26980 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
26981 a-stwima.ads: Minor reformatting.
26983 2005-02-09 Doug Rupp <rupp@adacore.com>
26984 Thomas Quinot <quinot@adacore.com>
26986 * adaint.c, adaint.h
26987 [VMS] (to_ptr32): New function.
26988 (MAYBE_TO_PTR32): New macro.
26989 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
26991 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
26992 [VMS] (#define fork()): Remove since unneccessary.
26993 (__gnat_set_close_on_exec): New routine to support
26994 GNAT.OS_Lib.Set_Close_On_Exec.
26996 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
26997 the parent side as close-on-exec so that they are not inherited by the
27000 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
27001 set or clear the FD_CLOEXEC flag on a file descriptor.
27003 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
27004 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27008 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
27009 on the field if Pragma Component_Alignment (Storage_Unit).
27010 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
27011 side-effects as if it were a constant; also make SAVE_EXPR to protect
27013 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
27015 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
27016 (components_to_record): Test it.
27017 Fix improper usage of REFERENCE_CLASS_P.
27019 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
27022 * utils2.c: Minor reformatting.
27024 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
27025 handle other cases like RECORD_TYPE.
27027 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
27029 2005-02-09 Ed Schonberg <schonberg@adacore.com>
27031 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
27032 component of an array of arrays in an assignment context, and the
27033 aggregate has component associations that require sliding on
27034 assignment, force reanalysis of the aggregate to generate a temporary
27035 before the assignment.
27036 (Must_Slide): Make global to the package, for use in Gen_Assign.
27038 2005-02-09 Ed Schonberg <schonberg@adacore.com>
27040 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
27041 unchecked union with no inferable discriminants, return a
27042 Raise_Program_Error node, rather than inserting it at the point the
27044 (Expand_Record_Equality, Component_Equality): Handle properly the case
27045 where some subcomponent is an unchecked union whose generated equality
27046 code raises program error.
27048 2005-02-09 Doug Rupp <rupp@adacore.com>
27050 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
27051 [VMS] (#define exit hack): Remove.
27053 2005-02-09 Pascal Obry <obry@adacore.com>
27054 Arnaud Charlet <charlet@adacore.com>
27056 * init.c (__gnat_initialize): Add a new parameter eh which contains the
27057 address of the exception registration. The Win32 version of this
27058 routine calls __gnat_install_SEH_handler() to initialize the SEH
27059 (Structured Exception Handling) handler.
27060 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
27061 SEH (Structured Exception Handling) now.
27062 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
27063 (__gnat_initialize for ppc-vxworks): Adjust comments and the
27064 preprocessor condition protecting the call to the extra eh setup
27065 subprogram, which is only available for the ppc target.
27066 (__gnat_clear_exception_count): replaced reference to
27067 variable taskIdCurrent by call to taskIdSelf(), cleaner.
27069 * seh_init.c: New file.
27071 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
27072 (GNATBIND_OBJS): Idem.
27074 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
27075 routine takes a new parameter (a pointer to the exception registration
27076 for the SEH (Structured Exception Handling) support.
27078 * raise.h: (__gnat_install_SEH_handler): New prototype.
27079 Update copyright notice.
27081 * s-tassta.adb (Task_Wrapper): Declare the exception registration
27082 record and initialize it by calling __gnat_install_SEH_handler.
27084 2005-02-09 Vincent Celier <celier@adacore.com>
27086 * make.adb (Gnatmake): Do not fail when the main project has no object
27089 2005-02-09 Doug Rupp <rupp@adacore.com>
27091 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
27092 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
27093 [VMS]: Add translations for g-enblsp.adb.
27095 * s-asthan-vms.adb: Removed.
27096 * s-asthan-vms-alpha.adb: Added.
27098 2005-02-09 Pascal Obry <obry@adacore.com>
27100 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
27101 (LIBGNAT_OBJS): Add seh_init.o.
27103 2005-02-09 Arnaud Charlet <charlet@adacore.com>
27106 * Makefile.in: Link all gnat tools with -static-libgcc, since
27107 -shared-libgcc is now used by default on some systems (e.g. linux with
27109 Remove references to Makefile.prolog/generic, no longer used.
27111 2005-02-09 Vincent Celier <celier@adacore.com>
27113 * prj-makr.adb (Process_Directory): Put file name in canonical case
27114 before matching against the patterns.
27115 If gnatname has been invoked as <prefix>-gnatname
27116 then invoke the compiler as <prefix>-gcc, not just "gcc".
27118 2005-02-09 Ed Schonberg <schonberg@adacore.com>
27120 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
27121 with expansion disabled. The actual subtype is needed among other
27122 places when the selected component appears in the context of a loop
27123 bound, and denotes a packed array.
27124 (Operator_Check): Always use the first subtype in the
27125 error message, to avoid the appearance of internal base types.
27126 (Transform_Object_Operation): Copy each actual in full
27127 to the parameter associations of the constructed call, rather than
27128 using the shallow copy mechanism of New_Copy_List. This ensures that
27129 the chaining of named associations is done properly.
27130 (Complete_Object_Operation): Rewrite node, rather than
27131 replacing it, so that we can trace back to the original selected
27134 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
27135 and calls that use object notation, if the called function is not
27136 declared in a withed unit, place the elaboration constraint on the
27137 unit in the context that makes the function accessible.
27138 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
27139 imposes an elaboration constraint between two packages.
27141 2005-02-09 Ed Schonberg <schonberg@adacore.com>
27143 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
27144 views of a private type after handling its private dependents, to
27145 maintain proper stack discipline between entry and exit from the
27148 2005-02-09 Cyrille Comar <comar@adacore.com>
27150 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
27151 Minor reformatting.
27153 2005-02-09 Arnaud Charlet <charlet@adacore.com>
27155 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
27156 fields for foreign threads.
27158 2005-02-09 Doug Rupp <rupp@adacore.com>
27160 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
27161 recursion warnings when compiled with -gnatdm.
27163 2005-02-09 Robert Dewar <dewar@adacore.com>
27165 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
27166 Slight fix to documentation of -gnaty with no parameters
27168 * xr_tabls.ads: Add ??? comment for missing overall comment
27170 * xsinfo.adb: Make default file name be sinfo.h, since this is what
27171 we now use by default.
27173 * xsnames.adb: Adjust end of file test to look for five space followed
27174 by '#' instead of six spaces. The format of xsnames.adb was modified
27175 in the last update.
27177 * a-numeri.ads: Add reference to AI-388 for greek letter pi
27180 * clean.adb: Minor reformatting.
27182 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
27183 gnatname.adb: Minor reformatting
27184 Add 2005 to copyright output when utility is run
27186 * csets.adb: Eliminate obsolete comment
27188 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
27191 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
27193 2005-02-09 Sergey Rybin <rybin@adacore.com>
27195 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
27196 the difference between compact and incompact layout and add the record
27197 representation clause to the example illustrating different layouts.
27198 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
27199 component clauses").
27201 2005-02-09 Florian Villoing <villoing@adacore.com>
27203 * gnat_ugn.texi: Fix typos.
27204 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
27206 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
27207 in the generated documentation.
27209 2005-02-09 Arnaud Charlet <charlet@adacore.com>
27211 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
27213 Update linker wrapper when linking with non GNU C++.
27215 2005-02-09 Pascal Obry <obry@adacore.com>
27218 Document the procedure to debug the DllMain routine on Windows.
27219 Add note about -funwind-tables and mixed Ada and C/C++ programming in
27221 Document new BIND qualifer /RETURN_CODES=VMS.
27223 2005-02-09 Ben Brosgol <brosgol@adacore.com>
27225 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
27226 Edited gnatmetric chapter
27228 2005-02-09 Robert Dewar <dewar@adacore.com>
27231 Changes to document new wide wide character support
27233 Update documentation on Normalize_Scalars and Initialize_Scalars
27235 2005-02-09 Pascal Obry <obry@adacore.com>
27237 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
27239 2005-02-09 Jose Ruiz <ruiz@adacore.com>
27241 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
27242 from the VxWorks kernel) that is needed for getting the active
27243 priority of the different tasks.
27245 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
27246 Use a pragma Elaborate_Body in the spec file instead.
27247 Noticed by code reading.
27249 2005-02-09 Thomas Quinot <quinot@adacore.com>
27251 * exp_util.ads: Minor correction in comment.
27253 2005-02-09 Arnaud Charlet <charlet@adacore.com>
27255 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
27256 since this procedure is now too complex to be worth inlining.
27258 2005-02-09 Richard Henderson <rth@redhat.com>
27260 * utils.c (gnat_define_builtin): Remove.
27261 (gnat_install_builtins): Use build_common_builtin_nodes.
27263 2005-02-09 Arnaud Charlet <charlet@adacore.com>
27265 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
27266 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
27267 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
27268 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
27269 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
27270 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
27271 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
27272 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
27273 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
27274 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
27275 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
27276 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
27277 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
27278 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
27279 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
27280 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
27281 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
27282 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
27283 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
27284 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
27285 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
27286 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
27287 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
27288 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
27289 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
27290 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
27291 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
27292 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
27293 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
27294 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
27295 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
27296 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
27297 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
27298 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
27301 2005-01-27 Laurent Guerby <laurent@guerby.net>
27303 * Makefile.in: Fix a-intnam.ads from previous commit,
27304 add 2005 to copyright.
27305 * a-intman-rtems.ads: Renamed to...
27306 * a-intnam-rtems.ads:
27308 2005-01-27 Laurent Guerby <laurent@guerby.net>
27310 * Makefile.in: Rename GNAT RTEMS specific files.
27311 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
27312 5rosinte.ads, 5rparame.adb: Replaced by files below.
27313 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
27314 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
27316 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
27317 Laurent Guerby <laurent@guerby.net>
27320 * 5rosinte.ads: Add No_Key constant.
27321 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
27322 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
27324 2005-01-26 Laurent Guerby <laurent@guerby.net>
27327 * i-cobol.adb (Valid_Numeric): Handle zero length case.
27329 2005-01-20 Richard Henderson <rth@redhat.com>
27331 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
27332 a-intnam-linux.ads and system-linux-alpha.ads.
27333 * a-intnam-linux-alpha.ads: Remove file.
27334 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
27335 * system-linux-alpha.ads: New file.
27337 2005-01-18 Jakub Jelinek <jakub@redhat.com>
27340 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
27341 set to the new string.
27343 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
27345 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
27348 2005-01-18 Richard Henderson <rth@redhat.com>
27350 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
27351 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
27353 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
27355 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
27357 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
27358 (GCC_ZCX_Support): Likewise.
27360 2005-01-11 Bastian Blank <waldi@debian.org>
27362 * system-linux-s390.ads: Define Preallocated_Stacks.
27363 * system-linux-s390x.ads: Likewise.
27365 2005-01-04 Arnaud Charlet <charlet@adacore.com>
27367 * gnat_ugn.texi: Fix texi errors with null variables.
27369 2005-01-03 Thomas Quinot <quinot@adacore.com>
27371 * gen-soccon.c: New utility program to generate g-soccon.ads
27374 * socket.c, gsocket.h: Split inclusion of system header files into a
27375 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
27377 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
27378 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27379 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
27380 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
27381 should not be edited by hand anymore, but should be regenerated using
27384 2005-01-03 Robert Dewar <dewar@adacore.com>
27385 Ed Schonberg <schonberg@adacore.com>
27386 Vincent Celier <celier@adacore.com>
27388 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
27389 on/off, since this is an obsolescent feature, for which we now generate
27392 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
27393 warning mode is set and obsolescent usage of this attribute occurs.
27394 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
27395 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
27396 predates, and partly motivates, the adoption of the AI.
27397 Implement new Ada 2005 attribute Mod
27399 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
27402 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
27404 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
27405 pragma restrictions.
27406 New entry for Ada 2005 attribute Mod.
27409 Add recognition of new pragma Restrictions No_Dependence
27410 Recognize restriction No_Obsolescent_Features at parse time
27412 * bcheck.adb: Add circuitry for checking for consistency of
27413 No_Dependence restrictions.
27415 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
27418 * restrict.ads, restrict.adb: Add subprograms to deal with
27419 No_Dependence restrictions.
27421 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
27424 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
27425 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
27427 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
27428 dummy parameter to scng instantiation.
27429 Needed for new restriction No_Obsolescent_Features
27431 * scn.adb: (Obsolescent_Check): New procedure
27432 Needed for new restriction No_Obsolescent_Features
27434 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
27435 specified by AI-285, needed for implementation of AI-388 (adding greek
27436 pi to Ada.Numerics).
27437 Add new generic formal to scng, needed for new restriction
27438 No_Obsolescent_Features.
27440 * s-rident.ads: Add new restriction No_Obsolescent_Features.
27442 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
27443 restrictions lines.
27444 (Scan_ALI): When finding an unexpected character on an R line, raise
27445 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
27446 Ignore_Errors is True, default restrictions are set and scanning of the
27447 ALI file continues with the next line. Also, when Bad_R_Line is raised
27448 and Ignore_Errors is True, skip to the end of le line.
27450 * sem_ch10.adb: Check that explicit with's do not violate
27451 No_Dependence restrictions.
27452 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
27453 illegal context clauses containing child units of instance.
27455 * sem_prag.adb: Processing and checking for new No_Dependence
27457 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
27458 analyze and check the External argument.
27460 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
27462 2005-01-03 Robert Dewar <dewar@adacore.com>
27464 * atree.adb: Add a fifth component to entities
27465 This allows us to add 32 flags and four new fields
27467 * atree.ads: Add a fifth component to entities
27468 This allows us to add 32 flags and four new fields
27470 * einfo.ads, einfo.adb: Document new fields and new flags now available
27471 Add routines for printing new fields
27473 * treepr.adb: Call routines to print out additional fields if present
27475 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27477 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
27478 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
27480 * Makefile.in: Add support to build shared Ada libraries on solaris x86
27481 Remove gpr2make, replaced by gprmake.
27482 Remove references to gnatmem and libaddr2line.
27483 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
27484 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
27485 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
27486 a-numaux-darwin.ads and a-numaux-darwin.adb
27487 Enable mlib-tgt-lynxos.adb on lynxos.
27489 * Make-lang.in: Remove rules for gpr2make.
27490 When generating sdefault.adb, do not call Relocate_Path
27491 on S3 for function Target_Name, as it is not a path.
27492 Remove references to gnatmem and libaddr2line.
27494 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
27497 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
27499 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
27500 address is incompatible with its base type alignment constraints when
27501 this can be decided statically.
27503 2005-01-03 Olivier Hainque <hainque@adacore.com>
27505 * decl.c (compatible_signatures_p): New function. The intended purpose
27506 is to check if two function signatures for a call-site and a callee are
27507 compatible enough for the call to be valid. The underlying purpose is
27508 to check if a call to a mapped builtin is using the right interface.
27509 The current code actually does not check antyhing - this a placeholder
27510 for future refinements.
27511 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
27512 builtin calls for convention Intrinsic.
27514 * gigi.h (builtin_decl_for): Declare (new function).
27516 * utils.c (gnat_install_builtins): Install the target specific builtins.
27517 (builtin_decl_for): New function, provide a dummy body for now.
27519 2005-01-03 Geert Bosch <bosch@adacore.com>
27521 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
27522 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27523 (Pred): Implement in terms of Succ.
27525 * trans.c (convert_with_check): Reimplement conversion of float to
27528 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27529 Vincent Celier <celier@adacore.com>
27531 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
27532 bounds can be negative, and must be declared Int, not Nat.
27534 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
27535 array is checked after using the index in the array.
27537 * makegpr.adb (Add_Switches): Check if there is a package for the
27538 processor. If there is no package, do not look for switches.
27540 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27542 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
27543 generation of predefined stream operations (specs and bodies) should
27544 proceed. Under various restrictions these subprograms must not be
27547 2005-01-03 Thomas Quinot <quinot@adacore.com>
27550 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
27551 amount of PCS-specific code in RACW stubs generation.
27552 (Copy_Specification): Set Etype on copied formal parameter entities, as
27553 this information is needed for PolyORB stubs generation.
27554 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
27555 variable Dynamic_Async.
27556 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
27557 (Build_RPC_Receiver_Specification): Make generic again, as recent
27558 changes have allowed RPC receivers to have the same profile for both
27559 variants of the PCS.
27560 Reorganise RPC receiver generation to reduce differences between the
27561 structure of GARLIC and PolyORB RPC receivers.
27562 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
27564 Simplify elaboration code for RCI packages.
27566 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
27567 generation to reduce differences between the structure of GARLIC and
27568 PolyORB RPC receivers.
27570 * s-stratt.adb: Fix typo in comment.
27572 2005-01-03 Thomas Quinot <quinot@adacore.com>
27574 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
27575 copied from Make_Init_Call).
27577 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
27578 reads and assignments on a temporary variable declared with appropriate
27581 2005-01-03 Robert Dewar <dewar@adacore.com>
27583 * i-c.adb (To_C): Raise CE if string is null and Append_Null
27585 2005-01-03 Robert Dewar <dewar@adacore.com>
27587 * i-cstrin.adb (Update): Do not append a null in form called with a
27588 String. This avoids unintended behavior.
27590 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27593 * init.c: Fix warnings on Free BSD section.
27595 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27598 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
27601 2005-01-03 Vincent Celier <celier@adacore.com>
27603 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
27604 libraries when Unique_Compile is True (-u switch).
27607 2005-01-03 Robert Dewar <dewar@adacore.com>
27609 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
27610 upper case letter or underscore after W, as allowed by spec.
27612 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27614 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
27615 darwin port by using proper type definitions from header files.
27616 Use SIGTERM instead of SIGABRT for SIGADAABORT.
27618 2005-01-03 Robert Dewar <dewar@adacore.com>
27620 * par.adb: Enhance error message handling for configuration file
27623 2005-01-03 Robert Dewar <dewar@adacore.com>
27625 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
27626 removed during the previous update (test properly for case of dividing
27627 largest negative number by -1, which generates overflow).
27629 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27630 Sergey Rybin <rybin@adacore.com>
27632 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
27633 to use as the defining identifier for a formal package.
27634 (Remove_Parent): If the instance takes place within (an instance of)
27635 a sibling, preserve private declarations of common parent.
27637 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27639 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
27640 to determine whether one of the operands is a fixed-point type for
27641 which a user-defined multiplication or division operation might be
27644 * sem_res.adb (Valid_Conversion): The legality rules for conversions
27645 of access types are symmetric in Ada 2005: either designated type can
27648 2005-01-03 Vincent Celier <celier@adacore.com>
27650 * s-fileio.adb (Temp_File_Record): Change length of string component
27651 Name from L_tmpnam + 1 to max_path_len + 1.
27653 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27655 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
27656 Self_Id.Deferral_Level = 0.
27657 (Do_Pending_Action): Move this function to the spec.
27659 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
27660 Do_Pending_Action explicitely when needed, in case we're using
27661 No_Abort restrictions.
27663 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
27664 deferral level since it will not get changed by the generated code.
27665 Keeping a default value of 1 would prevent some operations (e.g.
27666 select or delay) to proceed successfully.
27668 2005-01-03 Ben Brosgol <brosgol@adacore.com>
27669 Robert Dewar <dewar@adacore.com>
27670 Cyrille Comar <comar@adacore.com>
27672 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
27673 porting guide chapter (vms version).
27674 Revised doc title (removed "for native platforms") and subtitle.
27675 Add discussion on warning flag for obsolescent features. First we
27676 note that it applies to obsolete GNAT features, which was previously
27677 omitted. Second we contrast the behavior with that of the new
27678 Ada 2005 AI-368 restriction No_Obsolescent_Features.
27679 Preliminary rewriting of GNAT & libraries chapter in order to take
27680 into account default project locations & new project manager
27683 2005-01-03 Robert Dewar <dewar@adacore.com>
27685 * cstand.adb (Create_Operators): Clean up format and documentation of
27686 unary and binary operator result tables. No change in code, just
27687 reformatting and addition of comments.
27689 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
27690 sem_ch2.adb: Minor reformatting
27692 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
27693 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
27694 comments for Tree_Read and Tree_Write.
27696 2005-01-03 Pascal Obry <obry@adacore.com>
27698 * exp_attr.ads: Minor reformatting.
27700 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
27702 * comperr.adb (Compiler_Abort): Add specialized message for GAP
27705 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27707 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
27708 whether the ancestor type is private, as may be the case with nested
27711 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
27714 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
27716 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
27718 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
27719 * utils2.c (build_unary_op): Likewise.
27721 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27723 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
27725 2004-12-19 Richard Henderson <rth@redhat.com>
27727 * trans.c (gigi): Update gimplify_body call.
27729 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
27731 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
27733 2004-12-07 Ed Falis <falis@adacore.com>
27735 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
27736 current task being suspended.
27738 * init.c (__gnat_clear_exception): added to reset VxWorks exception
27740 (__gnat_map_signal): removed test for current task being suspended.
27742 2004-12-07 Gary Dismukes <dismukes@adacore.com>
27744 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
27745 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
27746 targets (such as AAMP).
27748 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27750 * atree.adb (Visit_Itype): Create a new name for the generated itype,
27751 because the back-end may otherwise treat it as a redefinition of the
27754 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
27756 * back_end.adb (Scan_Back_End_Switches): Accept --param.
27758 * lang-specs.h: Accept --param.
27760 2004-12-07 Vincent Celier <celier@adacore.com>
27762 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
27763 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
27764 Current_Body_Suffix => Ada_Body_Suffix).
27765 Take into account Externally_Built attribute.
27767 * clean.adb (In_Extension_Chain): Always return False when one of the
27768 parameter is No_Project.
27769 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
27770 Ada_Language_Index).
27771 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
27772 Process_Languages for procedure Parse).
27774 * gnatcmd.adb (Carg_Switches): New table.
27775 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
27776 Adapt to name changes in package Prj (Current_Spec_Suffix =>
27777 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
27779 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
27780 Header_Num and function Hash are now declared in package Prj,
27783 * prj.adb (Suffix_Of): New function.
27784 (Set (Suffix)): New procedure.
27785 (Hash): One function moved from Prj.Com
27786 (Is_Present, Language_Processing_Data_Of): New functions
27787 (Set): Two new procedures
27788 (Add_Language_Name, Display_Language_Name): New procedures
27790 * prj.ads: (Suffix_Of): New function
27791 (Set (Suffix)): New procedure
27792 Add several types and tables for multi-language support.
27793 (Header_Num): Type moved from Prj.Com
27794 (Hash): Two functions moved from Prj.Com
27795 (Is_Present, Language_Processing_Data_Of): New functions
27796 (Set): Two new procedures
27797 (Add_Language_Name, Display_Language_Name): New procedures
27798 (Naming): Component name changes:
27799 Current_Spec_Suffix => Ada_Spec_Suffix,
27800 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
27801 Impl_Suffixes, Supp_Suffixes.
27802 (Project_Data): New components: Externally_Built, Supp_Languages,
27803 First_Language_Processing, Supp_Language_Processing, Default_Linker,
27804 Default_Linker_Path.
27806 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
27807 new package Language_Processing with its attributes (Compiler_Driver,
27808 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
27809 Binder_Driver, Default_Linker).
27811 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
27812 (Header_Num): Type moved to package Prj
27814 * prj-env.adb: Adapt to name changes in package Prj
27815 (Current_Spec_Suffix => Ada_Spec_Suffix,
27816 Current_Body_Suffix => Ada_Body_Suffix).
27818 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
27819 default to the project path, except the "-" is one of the directories
27820 in env var ADA_PROJECT_PATH.
27821 (Current_Project_Path): Global variable, replacing Project_Path
27822 that was in the body of Prj.Part.
27823 (Project_Path): New function
27824 (Set_Project_Path): New procedure
27825 Initialize Current_Project_Path during elaboration of the package
27826 Remove dependency on Prj.Com, no longer needed
27828 * prj-ext.ads (Project_Path): New function
27829 (Set_Project_Path): New procedure
27831 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
27832 suffix is defined for language <lang>.
27833 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
27834 accessing directly the components of Naming.
27835 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
27836 Reorganise of this package.
27837 Break procedure Check in several procedures.
27839 * prj-nmsc.ads: Replace all procedures (Ada_Check,
27840 Other_Languages_Check and Language_Independent_Check) with a single
27843 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
27844 Process_Languages, no longer needed.
27846 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
27847 Current_Project_Path.
27848 Remove elaboration code, moved to the body of Prj.Ext
27849 Use new function Prj.Ext.Project_Path instead of old variable
27851 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
27852 When comparing with project paths on the stack, first put the resolved
27853 path in canonical case.
27854 (Parse_Single_Project): Set the path name of the project file in the
27855 tree to the normalized path.
27857 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
27858 parameter Process_Languages, no longer needed.
27859 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
27860 Other_Languages_Check.
27862 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
27863 to store the resolved canonical path of the project file.
27864 Remove dependency to Prj.Com, no longer needed
27866 * prj-util.adb: Adapt to name changes in package Prj
27867 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
27870 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
27871 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
27872 Externally_Built, Include_Option, Language_Processing.
27874 * makegpr.adb: Numerous changes due to changes in packages
27877 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
27878 default to the project path, except whe "-" is one of the directories
27879 in env var ADA_PROJECT_PATH.
27880 (Gnatls): In verbose mode, add the new section "Project Search Path:"
27882 2004-12-07 Robert Dewar <dewar@adacore.com>
27884 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
27886 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
27889 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
27890 flag. No longer needed now that we handle this in gnat1drv.adb.
27892 * repinfo.ads: Minor reformatting
27894 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27895 Olivier Hainque <hainque@adacore.com>
27896 Eric Botcazou <ebotcazou@adacore.com>
27898 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
27899 TYPE_SIZE_UNIT of result type if SIZE is not specified.
27900 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
27901 of a bitfield, which we know is useless and causes trouble because of
27902 alignment implications.
27904 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
27906 (process_attributes): Clear DECL_COMMON again when a section attribute
27908 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
27909 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
27910 (create_field_decl): Special case ADDRESSABLE negative to mean
27911 "no bitfield creation", to be used by make_aligning_type. Don't
27912 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
27913 fields claimed addressable still have to be bitfields. Use
27914 value_factor_p instead of a raw binop construction to check for the
27915 position's alignment.
27917 2004-12-07 Geert Bosch <bosch@adacore.com>
27919 * eval_fat.adb: Revert previous change.
27921 2004-12-07 Thomas Quinot <quinot@adacore.com>
27922 Ed Schonberg <schonberg@adacore.com>
27924 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
27925 with an implicit dereference as its prefix, use
27926 Insert_Explicit_Dereference instead of merely rewriting the prefix into
27927 an explicit dereference. This ensures that a reference to the original
27928 prefix is generated, if appropriate.
27930 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
27931 dereference is rewritten to an explicit one, generate a reference to
27932 the entity denoted by its prefix using the original prefix node, so
27933 the dereference can be properly recorded as a read of the denoted
27934 access value, if appropriate.
27936 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
27937 emitting 'assigned but never read' warning on a variable on the basis
27938 that it has an access type.
27939 (Check_References): Emit unreferenced warning when the scope is a
27942 2004-12-07 Robert Dewar <dewar@adacore.com>
27943 Ed Schonberg <schonberg@adacore.com>
27945 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
27948 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
27949 leaving call unchanged.
27950 This deals with the case where the pragma Import specified
27951 an external name, to be handled by the back end.
27953 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
27954 subprogram which is Imported with convention Intrinsic if an
27955 External_Name argument is specified.
27956 (Process_Import_Or_Interface): Properly diagnose link name argument.
27957 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
27958 with Sem_Ch6.Cannot_Inline.
27959 (Process_Inline): Provide separate warning for inapplicable inline
27961 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
27962 treatment is uniform on different targets.
27964 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27966 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
27967 construct is rewritten, preserve end label to permit source navigation.
27969 2004-12-07 Thomas Quinot <quinot@adacore.com>
27971 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
27972 Specific_Build_Stub_Target): New subprograms.
27973 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
27974 the PCS implementation used, using the above PCS-customized subprograms.
27975 Minor reformatting.
27976 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
27977 for generation of DSA code targeted to the PolyORB PCS.
27978 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
27979 implementation of the partition communication subsystem in ancillary
27981 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
27982 PolyORB_Support.Build_Stub_Type): New subrograms containing the
27983 PCS-specific part of Add_Stub_Type.
27984 (Insert_Partition_Check): Use runtime library function to perform
27987 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
27988 (RE_Same_Partition): New entity, from s-parint.
27990 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
27992 2004-12-07 Gary Dismukes <dismukes@adacore.com>
27994 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
27995 Output the copyright message on a separate line from the version
27998 2004-12-07 Joel Brobecker <brobecker@adacore.com>
28000 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
28001 compile-time warning.
28003 2004-12-07 Robert Dewar <dewar@adacore.com>
28005 * g-regpat.adb: (Match): Change a misuse of or to or else
28007 2004-12-07 Ed Schonberg <schonberg@adacore.com>
28010 (Generate_Reference): Handle properly a reference to an entry formal,
28011 when an accept statement has a pragma Unreferenced for it.
28013 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
28014 and the Has_Pragma_Unreferenced flag for each formal before analyzing
28015 the body, to ensure that warnings are properly emitted for each accept
28016 statement of a given task entry.
28018 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
28020 * Makefile.in: Add support for foreign threads on VMS.
28022 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28024 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
28026 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
28028 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
28030 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
28032 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
28034 2004-12-07 Robert Dewar <dewar@adacore.com>
28036 * nlists.adb (Prepend_Debug): Remove parameters and nest within
28038 (Remove_Next_Debug): Same fix
28040 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
28041 maintain back pointers now, though we did not used to, and comments
28043 (Prepend): Remove pragma Inline.
28044 (Remove_Next): Same cleanup
28046 2004-12-07 Thomas Quinot <quinot@adacore.com>
28048 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
28049 used to record an implicit dereference as a read operation on its
28050 prefix when operating under -gnatc. Necessary to avoid spurious
28051 'variable assigned but never read' warnings in that mode.
28052 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
28053 is a non-overloaded implicit dereference, call the above subprogram to
28054 ensure proper recording of references.
28056 2004-12-07 Gary Dismukes <dismukes@adacore.com>
28058 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
28059 to be resolved later as part of Analyze_Iteration_Scheme's call to
28062 2004-12-07 Ed Schonberg <schonberg@adacore.com>
28064 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
28065 prefix is not a scalar type, place error message on prefix, not on
28068 2004-12-07 Bernard Banner <banner@adacore.com>
28070 * vxaddr2line.adb: Add support for x86 vxworks
28072 2004-12-07 Thomas Quinot <quinot@adacore.com>
28074 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
28075 documentation of the behaviour of these functions when passed an IP
28076 address that has no record in the system hosts database and no reverse
28079 * cstand.adb, a-tags.ads: Fix typos in comment.
28081 2004-12-07 Robert Dewar <dewar@adacore.com>
28083 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
28084 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
28085 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
28086 s-poosiz.ads: Minor reformatting
28088 * make.adb: Minor reformatting
28089 Add some ??? comments asking for more comments
28091 * s-poosiz.adb: Minor reformatting
28092 Add comments on alignment requirement
28094 * sinfo.ads: Remove obsolete comment and fix typo.
28096 2004-12-07 Vincent Celier <celier@adacore.com>
28097 Sergey Rybin <rybin@adacore.com>
28099 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
28100 Files" with the new tool and package names.
28101 Reformatting to suppress most of the warnings for line too long
28102 Document the new section "Project Search Path:" in the output of
28104 Add gnatmetric section
28106 2004-12-07 Vincent Celier <celier@adacore.com>
28108 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
28109 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
28110 and -eit to -ept. Added qualifier
28111 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
28113 2004-11-27 Andreas Schwab <schwab@suse.de>
28115 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
28117 2004-11-25 Arnaud Charlet <charlet@adacore.com>
28119 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
28120 internal implementation unit GNAT.Sockets.Thin,
28121 as their usage for sockets is non-portable (using the read and write
28122 functions from the system runtime library is fine on UNIX but won't
28123 work under Windows).
28125 * mingw32.h: Update copyright notice.
28127 2004-11-25 Arnaud Charlet <charlet@adacore.com>
28129 * ada-tree.h: Minor reformatting of previous change to avoid lines
28130 longer than 79 characters.
28132 2004-11-25 Olivier Hainque <hainque@adacore.com>
28134 * tb-gcc.c: GCC infrastructure based implementation of
28137 2004-11-24 Steven Bosscher <stevenb@suse.de>
28139 * misc.c (gnat_post_options): Don't clear
28140 flag_inline_functions.
28142 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
28145 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
28148 2004-11-21 Andreas Jaeger <aj@suse.de>
28150 * stylesw.adb: Change Style_Check_Subprogram_Order to
28151 Style_Check_Order_Subprograms.
28153 2004-11-18 Arnaud Charlet <charlet@adacore.com>
28155 * adaint.h, adaint.c
28156 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
28158 Add also a cast to kill another warning.
28159 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
28160 parameter with the priority class of the parent process instead of
28161 always using the NORMAL_PRIORITY_CLASS.
28162 (__gnat_dup): New function.
28163 (__gnat_dup2): New function.
28164 (__gnat_is_symbolic_link): Enable the effective body of this
28165 function when __APPLE__ is defined.
28167 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
28170 2004-11-18 Olivier Hainque <hainque@adacore.com>
28172 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
28173 address of which may be used to represent "others" and "all others"
28174 choices in exception tables, instead of the current harcoded
28175 (void *)0 and (void *)1.
28176 (Setup_Exception): Do nothing in the GNAT SJLJ case.
28178 * gigi.h (others_decl, all_others_decl): New decls representing the
28179 new Others_Value and All_Others_Value objects.
28180 (struct attrib): Rename "arg" component as "args", since GCC expects a
28181 list of arguments in there.
28183 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
28184 corresponding objects exported by a-exexpr, instead of hardcoded dummy
28187 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
28188 others_decl and all_others_decl instead of hardcoded dummy addresses
28189 to represent "others" and "all others" choices, which is cleaner and
28190 more flexible with respect to the possible eh pointer encoding policies.
28192 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
28193 (process_attributes): Account for the naming change of the "args"
28194 attribute list entry component.
28196 * decl.c (build_attr_list): Rename into prepend_attributes to allow
28197 cumulating attributes for different entities into a single list.
28198 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
28199 attributes for the current entity and propagate first subtype
28200 attributes to other subtypes.
28201 <E_Procedure>: Attribute arguments are attr->args and not
28202 attr->arg any more.
28203 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
28204 argument provided, as this is what GCC expects. Use NULL_TREE instead
28207 2004-11-18 Robert Dewar <dewar@adacore.com>
28209 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
28210 Minor reformatting througout (including new function specs)
28211 Add ??? comments asking for clarification.
28213 2004-11-18 Thomas Quinot <quinot@adacore.com>
28215 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
28216 incomplete duplicate implementation of this subprogram from butil.
28218 2004-11-18 Thomas Quinot <quinot@adacore.com>
28220 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
28221 procedures factors the common processing for building an RPC receiver
28222 for an RCI package or an RACW type.
28223 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
28224 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
28225 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
28227 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
28229 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
28231 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
28232 distribution subprogram identifiers that are either subprogram numbers
28234 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
28235 string distribution identifiers assigned to a given subprogram.
28236 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
28237 (Add_RAS_Dereference_TSS): Add comments.
28238 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
28239 is not referenced yet because it will be used by the PolyORB DSA
28241 (Insert_Partition_Check): Remove fossile code.
28242 (First_RCI_Subprogram_Id): Document this constant.
28243 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
28245 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
28246 replaced with calls to Get_Library_Unit_Name_String. Previously there
28247 were several instances of the same code in different locations in the
28248 compiler; this checkin completes the replacement of all of these
28249 instances with calls to a common subprogram.
28250 Minor reformatting.
28252 * sem_dist.adb: Remove comment noting that RPC receiver generation
28253 should be disabled for RACWs that implement RASs.
28254 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
28256 * sem_util.ads, sem_util.adb (Has_Stream): New function
28257 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
28258 qualified name of a library unit into the name buffer.
28259 (Note_Possible_Modification): Generate a reference only
28260 if the context comes from source.
28262 * snames.ads (PCS_Names): New subtype corresponding to names of
28263 supported implementations of the Partition Communication Subsystem
28264 (PCS) (i.e. the runtime library support modules for the distributed
28267 2004-11-18 Robert Dewar <dewar@adacore.com>
28268 Ed Schonberg <schonberg@adacore.com>
28270 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
28271 (Has_Rep_Pragma): New function
28272 (Has_Attribute_Definition_Clause): New function
28273 (Record_Rep_Pragma): Moved here from sem_ch13.adb
28274 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
28276 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
28278 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
28279 (Expand_Pragma_Psect_Object): New procedure
28280 These procedures contain the revised and cleaned up processing for
28281 these two pragmas. This processing was formerly in Sem_Prag, but
28282 is more appropriately moved here. The cleanup involves making sure
28283 that the pragmas are properly attached to the tree, and that no
28284 nodes are improperly shared.
28286 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
28287 pragmas to Exp_Prag, which is more appropriate.
28288 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
28289 check for duplicates Remove use of Is_Psected flag, no longer needed.
28290 Use new Make_String_Literal function with string.
28292 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
28293 that are functions return universal values, that have to be converted
28294 to the context type.
28295 Use new Make_String_Literal function with string.
28296 (Get_Stream_Convert_Pragma): New function, replaces the use of
28297 Get_Rep_Pragma, which had to be kludged to work in this case.
28299 * freeze.adb: Use new Has_Rep_Pragma function
28301 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
28302 function with string.
28303 Use new Has_Rep_Pragma function.
28305 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
28308 2004-11-18 Robert Dewar <dewar@adacore.com>
28310 * errout.ads, errout.adb: (First_Sloc): New function
28312 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
28313 check (-gnatyx) instead of being included as a redundant construct
28316 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
28317 Style_Check_Order_Subprograms.
28319 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
28320 stylesw.adb: Add Style_Check_Xtra_Parens
28322 * usage.adb: Add line for -gnatyx (check extra parens)
28324 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
28326 2004-11-18 Ed Schonberg <schonberg@adacore.com>
28327 Robert Dewar <dewar@adacore.com>
28329 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
28330 discriminant of a constrained subtype, analyze the copy of the
28331 corresponding constraint, because in some cases it may be only
28332 partially analyzed.
28333 Removes long-lived ??? comments.
28335 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
28336 handled controlled or secondary-stack expressions within the
28337 iteration_scheme of a loop.
28339 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
28340 bounds that may contain functions calls, to prevent memory leaks when
28341 the bound contains a call to a function that uses the secondary stack.
28342 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
28343 generate temporaries for loop bounds that might contain function calls
28344 that require secondary stack and/or finalization actions.
28346 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
28347 selected component and the selector is overloadable (not just a
28348 function) treat as function call, Analyze_Call will disambiguate if
28350 (Analyze_Selected_Component): Do not generate an actual subtype for the
28351 selected component if expansion is disabled. The actual subtype is only
28352 needed for constraint checks.
28353 (Analyze_Allocator): If restriction No_Streams is set, then do
28354 not permit objects to be declared of a stream type, or of a
28355 composite type containing a stream.
28357 * restrict.ads: Remove the a-stream entry from Unit_Array, since
28358 No_Streams no longer prohibits with'ing this package.
28360 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
28361 discriminants, but the parent base has unknown discriminants, there is
28362 no discriminant constraint to inherit. Such a discrepancy can arise
28363 when the actual for a formal type with unknown discriminants is a
28364 similar private type whose full view has discriminants.
28365 (Analyze_Object_Declaration): If restriction No_Streams is set, then
28366 do not permit objects to be declared of a stream type, or of a
28367 composite type containing a stream.
28369 2004-11-18 Ed Schonberg <schonberg@adacore.com>
28371 * exp_dbug.ads: Update documentation to reflect simpler encoding for
28372 protected operations.
28374 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
28375 generated name, it complicates decoding in gdb and hinders debugging
28376 of protected operations.
28377 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
28378 flag for the protected entry barrier function.
28379 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
28380 flag for the protected entry function.
28382 2004-11-18 Nicolas Setton <setton@adacore.com>
28384 * expect.c: Define __unix__ when __APPLE__ is defined.
28386 * Makefile.in: Inform the value of the variable GMEM_LIB in the
28387 Darwin-specific section.
28389 * lang-specs.h: Change the placement of the %1 marker.
28390 Works around the fact that gcc adds -fPIC by default under Darwin.
28392 2004-11-18 Ed Schonberg <schonberg@adacore.com>
28394 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
28395 type of the object with the packed array type, set the Analyzed flag
28396 on the object if it is an entity or simple indexed component, to avoid
28397 spurious type errors.
28399 2004-11-18 Gary Dismukes <dismukes@adacore.com>
28401 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
28402 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
28403 separate line from the version message.
28405 2004-11-18 Ed Falis <falis@adacore.com>
28407 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
28409 (init_float): Eliminate initialization of floating point status for
28410 AE653. The instructions have no effect for vThreads.
28412 2004-11-18 Vincent Celier <celier@adacore.com>
28414 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
28415 gnatbind is invoked with -shared.
28417 2004-11-18 Jose Ruiz <ruiz@adacore.com>
28419 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
28420 for Detect_Blocking which is redundant with the check done within the
28421 procedure Protected_Single_Entry_Call.
28422 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
28423 Detect_Blocking which is redundant with the check done within the
28424 procedure Protected_Single_Entry_Call.
28426 2004-11-18 Vincent Celier <celier@adacore.com>
28428 * makegpr.adb (Compile): Put the compiling switches (in package
28429 Compiler and on the command line) immediately after "-c", instead of
28430 at the end of the command line invocation of the compiler, when
28431 compiling a non-Ada file.
28432 (Build_Global_Archive): When there is no need to rebuild the archive,
28433 set Global_Archive_Exists, so that the archive is passed to the linker
28436 2004-11-18 Robert Dewar <dewar@adacore.com>
28437 Sergey Rybin <rybin@adacore.com>
28440 Remove extra paren check from list of checks for redundant constructs
28441 Add documentation of new -gnatyx style check (check extra parens)
28442 Remove paragraph about gnatelim debug options.
28444 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
28445 objects rather than forbidding dependencies on the package Ada.Streams.
28447 * sinfo.ads: Add ??? note that we should document pragmas passed to
28450 * g-expect.ads: Fix a few typos in the comments.
28452 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
28454 * misc.c (gnat_handle_option): Use %< and %> for quoting in
28457 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28459 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
28461 2004-11-07 Andreas Schwab <schwab@suse.de>
28463 * Makefile.in (install-gnatlib): Remove spurious hyphen.
28465 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
28468 * Makefile.in (darwin): Set soext to .dylib.
28470 2004-10-26 Vincent Celier <celier@gnat.com>
28471 Thomas Quinot <quinot@act-europe.fr>
28473 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
28474 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
28475 there is no use of GNAT.Sockets.Constants.
28476 Remove remaining pragma Import for C_Write
28477 Remove C_Read and C_Write from internal implementation unit
28478 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
28479 the read and write functions from the system runtime library is fine
28480 on UNIX but won't work under Windows).
28482 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
28483 (Check_Selector): Use C_Recv instead of C_Read.
28484 Selectors are the GNAT.Sockets abstraction to perform a select()
28485 call on a set of descriptors. To allow abortion of an ongoing
28486 select operation, some data is written to a dedicated socket that
28487 is always monitored.
28488 Under Windows, the write and read library functions cannot operate
28489 on sockets, so we need to use send and recv instead, which is portable
28490 across all supported platforms.
28492 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
28493 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
28494 (using the read and write functions from the system runtime library is
28495 fine on UNIX but won't work under Windows).
28497 2004-10-26 Nicolas Setton <setton@act-europe.fr>
28499 * mlib-tgt-darwin.adb: New file.
28501 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28502 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28503 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
28504 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
28507 * Makefile.in: Add support for building shared libraries under Darwin.
28508 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
28509 the low level EH init subprogram to be called from __gnat_initialize.
28511 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
28512 indicates which options to pass to the archive indexer.
28514 * mlib-utl.adb: Add support for calling ranlib with additional
28515 options. This is needed for instance under Mac OS X.
28516 (Ranlib_Options): New global variable, used to store the potential
28517 options to pass to ranlib.
28518 (Ar): Use Ranlib_Options when spawning ranlib.
28519 (Initialize): Set the value of ranlib option.
28521 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
28523 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
28524 instead of 8K, to reflect the real potential needs for stack-checking
28527 2004-10-26 Pascal Obry <obry@gnat.com>
28529 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
28531 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
28532 Windows only the initial thread stack size can be set so it is good to
28533 start we a low stack size.
28534 The OS will adjust the size as needed.
28536 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
28537 Nicolas Setton <setton@act-europe.fr>
28539 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
28540 "__unix__" instead of "unix".
28541 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
28542 sections were just mistakenly ignored. The former is
28543 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
28544 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
28545 of hpux. This prevents an unwanted definition of the symbol
28546 convert_addresses in adaint.o.
28548 2004-10-26 Gary Dismukes <dismukes@gnat.com>
28550 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
28551 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
28553 2004-10-26 Cyrille Comar <comar@act-europe.fr>
28555 * a-filico.ads, a-filico.adb: fix incorrect header.
28557 2004-10-26 Javier Miranda <miranda@gnat.com>
28559 * a-ststio.ads: Fix typo in identifier
28561 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28563 * sem_ch4.adb: Minor reformatting.
28565 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28567 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
28568 enabled, check the result of unary and binary operations when the
28569 expression is the right-hand side of an assignment.
28571 2004-10-26 Vincent Celier <celier@gnat.com>
28573 * clean.adb (Delete): Do not output warnings when in quiet output and
28574 not in verbose mode.
28575 (Force_Deletions): New Boolean flag, defaulted to False
28576 (Delete): Only delete a file if it is writable, and when
28577 Force_Deletions is True.
28578 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
28579 (Usage): Line for new switch -f
28580 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
28583 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
28585 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
28586 JM type only if its size matches that of the wrapper. When a size is
28587 prescribed and the field is not aliased, remove the wrapper of a JM
28588 type only if the size is not greater than that of the packed array.
28589 (gnat_to_gnu_entity): Change the extension of packed array wrappers
28592 2004-10-26 Geert Bosch <bosch@gnat.com>
28594 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
28595 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28596 (Pred): Implement in terms of Succ.
28598 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28600 * exp_aggr.adb (Safe_Component): An aggregate component that is an
28601 unchecked conversion is safe for in-place use if the expression of the
28602 conversion is safe.
28603 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
28604 be expandable in place even if the aggregate does not come from source.
28605 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
28606 designated object of an allocator in place, rather than building it
28607 first on the stack. The previous scheme forces a full copy of the array,
28608 and may be altogether unsusable if the size of the array is too large
28609 for stack allocation.
28611 2004-10-26 Robert Dewar <dewar@gnat.com>
28613 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
28614 compares if the component is atomic.
28616 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
28617 array assignment if the component type is atomic.
28619 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28620 Eric Botcazou <ebotcazou@act-europe.fr>
28622 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
28623 is aliased and is a by_reference type, do not pass by copy.
28624 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
28625 detect whether the call is in the right side of an assignment or
28626 the expression of an object declaration. Recurse on component
28627 association within aggregates.
28628 Call it in the condition that determines whether the temporary is
28629 necessary for correct stack-checking.
28631 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28633 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
28634 RACW_Type, used in the PolyORB version.
28635 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
28636 version and the GARLIC version.
28638 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
28639 Rename RCI_Info to RCI_Locator for better consistency between the
28640 GARLIC and PolyORB versions of the distributed systems annex.
28641 (DSA_Implementation_Name): This enumeration lists the possible
28642 implementations of the Partition Communication Subsystem for the
28643 Distributed Systems Annex (DSA). The three available implementations
28644 are the dummy stub implementation (No_DSA), and two versions based on
28645 two different distribution runtime libraries: GARLIC and PolyORB. Both
28646 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
28648 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
28651 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
28652 between the GARLIC and PolyORB versions of the distributed systems
28654 Remove RE_Unbounded_Reclaim_Pool since it is unused.
28656 2004-10-26 Gary Dismukes <dismukes@gnat.com>
28658 * gnat1drv.adb: Suppress calling the back end when
28659 Frontend_Layout_On_Target is true.
28661 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28663 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
28664 Set_Read_Only): New subprograms.
28665 These new routines allow the user to set or unset the Owner execute
28666 and Owner write permission flags on a file.
28668 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
28669 GNAT.OS_Lib.Set_Executable instead of rolling our own.
28671 2004-10-26 Matthew Gingell <gingell@gnat.com>
28673 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
28675 2004-10-26 Pascal Obry <obry@gnat.com>
28677 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
28678 memory before the faulting page we properly test the process read
28679 access for this address using appropriate Win32 routine.
28680 (HPUX sections): guard with "__hpux__" instead of "hpux".
28682 2004-10-26 Robert Dewar <dewar@gnat.com>
28684 * lib-xref.adb (Generate_Reference): Don't complain about reference to
28685 entry parameter if pragma Unreferenced set, since we do not properly
28686 handle the case of multiple parameters.
28688 2004-10-26 Vincent Celier <celier@gnat.com>
28690 * prj-env.adb: (Contains_ALI_Files): New Boolean function
28691 (Ada_Objects_Path.Add): For a library project, add to the object path
28692 the library directory only if there is no object directory or if the
28693 library directory contains ALI files.
28694 (Set_Ada_Paths.Add.Recursive_Add): Ditto
28696 2004-10-26 Vincent Celier <celier@gnat.com>
28698 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
28699 extension of library projects.
28701 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
28702 path defaults to ".:<prefix>/lib/gnat".
28703 (Parse): For an extending all project, allow direct import of a project
28704 that is virtually extended.
28706 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
28707 the specified name is directly imported, return its ID. Otherwise, if
28708 an extension of this project is imported, return the ID of the
28711 2004-10-26 Robert Dewar <dewar@gnat.com>
28713 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
28714 (Sub3): New procedure, used by Scaled_Divide
28715 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
28716 correct more than one instance of failure to propagate carries
28718 (Double_Divide): Handle overflow case of largest negative number
28719 divided by minus one.
28721 * s-arit64.ads (Double_Divide): Document that overflow can occur in
28722 the case of a quotient value out of range.
28725 2004-10-26 Robert Dewar <dewar@gnat.com>
28727 * s-bitops.adb (Bit_Eq): Remove redundant check.
28729 * s-bitops.ads: Minor comment updates
28730 Change some occurrences of Address to System.Address
28732 * s-carsi8.ads: Fix minor cut-and-paste error in comments
28734 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28736 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
28737 accessibility check to prefix that is a protected operation.
28739 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28741 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
28742 empty, post message on stub.
28744 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28745 Javier Miranda <miranda@gnat.com>
28747 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
28748 current instance appears within a unit that is directly in the context
28750 Used to determine whether the body of the instance should be analyzed
28751 immediately after its spec, to make its subprogram bodies available
28752 for front-end inlining.
28753 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
28754 constraint is not allowed on the component type (AARM 12.5.3(3))
28756 2004-10-26 Cyrille Comar <comar@act-europe.fr>
28758 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
28759 'Storage_Pool): enhance, document & limit detection of non-sharable
28762 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
28764 * s-pooglo.ads: Add more documentation now that this pool is properly
28767 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28769 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
28770 or protected type with discriminants, do not constrain the
28771 corresponding record type if the subtype declaration has no
28772 discriminant constraints. This can be the case in source code, or in
28773 the subtype declaration created to rename an actual type within an
28776 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28778 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
28779 different kind of stub (possibly wrong name for file), do not check
28781 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
28782 includes call to some function that returns an unconstrained type, do
28785 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28787 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
28788 appear in the code for the main unit. Dependencies among units in the
28789 context of the main unit are established when those other units are
28790 compiled. Otherwise spurious elaboration constraints can generate
28791 incorrect elaboration circularities.
28793 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28794 Ed Schonberg <schonberg@gnat.com>
28796 * sem_util.adb (Is_Aliased_View): Defend against the case where this
28797 subprogram is called with a parameter that is not an object name. This
28798 situation arises for some cases of illegal code, which is diagnosed
28799 later, and in this case it is wrong to call Is_Aliased, as that might
28800 cause a compiler crash.
28801 (Explain_Limited_Type): Refine previous fix to include
28802 inherited components of derived types, to provide complete information.
28804 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
28805 is the prival for a protected object.
28806 It is necessary to mark this entity as a variable, in addition to
28807 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
28808 modified to avoid checking the Aliased flag on entities that are not
28809 objects. (Checking that flag for non-objects is erroneous and could
28810 lead to a compiler crash).
28812 2004-10-26 Robert Dewar <dewar@gnat.com>
28814 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
28815 X_Frac = 0.5, then we know that the number X must be positive.
28816 (Succ): Remove the same redundant test, and also fix the primary test
28817 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
28819 (Decompose): Add fuller comments to spec
28821 2004-10-26 Pascal Obry <obry@gnat.com>
28823 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
28824 validity (process must have read access). Set to 0 in all other cases.
28825 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
28826 violation on Win32.
28827 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
28828 segmentation violation.
28830 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
28832 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
28833 whose type is a constructed subtype of an aliased object with an
28834 unconstrained nominal subtype, convert the actual to the constructed
28835 subtype before taking its address.
28837 2004-10-26 Vincent Celier <celier@gnat.com>
28839 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
28840 (Is_Path_Name_Case_Sensitive): New function
28842 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
28843 (Base_Name, Simple_Name, Current_Directory, Compose,
28844 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
28847 2004-10-26 Cyrille Comar <comar@act-europe.fr>
28848 Vasiliy Fofanov <fofanov@act-europe.fr>
28849 Vincent Celier <celier@gnat.com>
28851 * gnat_ugn.texi: Generalize "finding memory problems" section into a
28852 "memory management issues" section and document some of the useful
28853 memory pools provided as part of the GNAT library.
28854 Remove "virtual" from declaration of A::method2 in
28855 the simple example of Ada/C++ mixed system.
28856 Library Projects may be virtually extended: their virtual extensions
28857 are not Library Projects.
28858 Added section on extending project hierarchies.
28860 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
28862 * adaint.c (__gnat_get_libraries_from_registry): Cast value
28864 (__gnat_portable_spawn): Remove const.
28866 * mingw32.h (MAXPATHLEN): Check for previous definition.
28868 2004-10-17 Matthias Klose <doko@debian.org>
28870 * gnatvsn.ads: Set gnat library version to 4.0.
28872 2004-10-05 Vincent Celier <celier@gnat.com>
28874 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
28876 2004-10-04 Laurent Guerby <laurent@guerby.net>
28879 * Makefile.in: Define and use RANLIB_FLAGS.
28881 2004-10-04 Pascal Obry <obry@gnat.com>
28883 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
28884 other x86 platforms).
28886 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
28888 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
28889 in general and triggers stack alignment adjustment for thread entry
28890 points on targets where this is necessary.
28892 2004-10-04 Bernard Banner <banner@gnat.com>
28895 * Makefile.in: Add section for powerpc linux
28896 Add variant i-vxwork-x86.ads
28898 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
28900 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
28902 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
28903 table registration calls when need be. Ensures no reference to the crt
28904 ctors symbol are issued in the SJLJ case, which avoids possible
28905 undefined symbol errors in the case of modules to be statically linked
28908 2004-10-04 Javier Miranda <miranda@gnat.com>
28910 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
28911 in-line the code corresponding to subprogram Analyze_Actuals. In
28912 addition, analyze the actuals only in case of subprogram call.
28914 2004-10-04 Ed Falis <falis@gnat.com>
28916 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
28918 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
28920 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
28921 in the documentation.
28923 2004-10-04 Robert Dewar <dewar@gnat.com>
28925 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
28927 (Analyze_Block_Statement): Add circuitry to detect following dead code
28928 (Check_Unreachable_Code): Handle case of block exit
28930 2004-10-04 Robert Dewar <dewar@gnat.com>
28932 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
28933 (XMatchD): Avoid warning for Logic_Error call
28935 2004-10-04 Robert Dewar <dewar@gnat.com>
28937 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
28938 consider expressions buried within a procedure actual to be an actual.
28939 This caused some blowups with uses of packed slices within a procedure
28942 2004-10-04 Robert Dewar <dewar@gnat.com>
28944 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
28945 longer need to be initialized to zero.
28946 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
28947 initialized to zero.
28949 * checks.adb (Expr_Known_Valid): Packed arrays are now always
28950 considered valid, even if the representation is modular. That's correct
28951 now that we no longer initialize packed modular arrays to zero.
28953 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
28954 suffixes. These are now documented as the only cases in which the
28955 debugger ignores outer records.
28956 Previously, the spec allowed arbitrary suffixes for this purpose.
28957 Change name of LJM to JM for packed array pad records
28958 Create separate section on packed array handling, and add a whole new
28959 set of comments to this section describing the situation with packed
28960 modular types and justification requirements depending on endianness.
28962 2004-10-04 Robert Dewar <dewar@gnat.com>
28964 * a-except.adb: Add a comment for last change
28966 * einfo.ads: Minor spelling correction in comment
28968 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
28970 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
28973 * sem_util.ads: Minor comment update
28975 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28977 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
28978 Inline_Always when in Configurable_Run_Time mode.
28980 * sem_prag.adb (Process_Convention): If entity is an inherited
28981 subprogram, apply convention to parent subprogram if in same scope.
28982 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
28983 when in Configurable_Run_Time mode.
28985 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28987 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
28988 class_wide type after component list has been inherited.
28990 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28992 * sem_ch12.adb (Check_Generic_Actuals): New predicate
28993 Denotes_Previous_Actual, to handle properly the case of a private
28994 actual that is also the component type of a subsequent array actual.
28995 The visibility status of the first actual is not affected when the
28996 second is installed.
28997 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
28998 make fully recursive the treatment of formals of packages declared
29000 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
29001 the above on exit from an instantiation.
29002 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
29003 current instantiation which is now complete.
29004 (Analyze_Package_Instantiation): No instantiated body is needed if the
29005 main unit is generic. Efficient, and avoid anomalies when a instance
29006 appears in a package accessed through rtsfind.
29008 2004-10-04 Ed Schonberg <schonberg@gnat.com>
29010 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
29011 do not generate a declaration for a temporary if the call is part of a
29012 library-level instantiation.
29014 2004-10-04 Ed Schonberg <schonberg@gnat.com>
29016 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
29017 searching for a limited component to flag.
29019 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
29020 expansion of Input, to account for the fact that the implicit call
29021 generated by the attribute reference must freeze the user-defined
29022 stream subprogram. This is only relevant to 'Input, because it can
29023 appear in an object declaration, prior to the body of the subprogram.
29025 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
29026 expansion can proceed and further errors uncovered.
29027 (Minor clean up): Fix cases of using | instead of \ for continuation
29030 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29032 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
29034 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
29035 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
29036 Use gcc_assert and gcc_unreachable.
29038 * decl.c (gnat_to_gnu_entity, case object): Check and process a
29039 specified alignment before validating size.
29040 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
29041 stripped-down declaration for the type of the inner field when making
29044 * utils.c (finish_record_type): Do not compute the size in units
29045 incrementally. Instead compute it once for the rep clause case.
29046 Use gcc_assert and gcc_unreachable.
29048 2004-10-04 Vincent Celier <celier@gnat.com>
29050 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
29052 (Is_Valid_Path_Name): Take '/' as a directory separator.
29054 2004-10-04 Vincent Celier <celier@gnat.com>
29056 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
29057 (Extended_Project) only if Extended_Project is defined, to avoid
29059 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
29061 (Parse_Single_Project): Ditto.
29063 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
29064 Add_To_Project_Path for virtual projects.
29066 2004-10-04 Vincent Celier <celier@gnat.com>
29068 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29069 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29070 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
29071 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
29072 parameter Options_2.
29074 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
29075 Build_Dynamic_Library with an empty Options_2.
29077 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
29080 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
29081 directory separator, if any.
29082 (Gprmake): Do not allow mains on the command line for library projects.
29083 Do not attempt to link when the project is a library project.
29084 (Library_Opts): New table to store Library_Options.
29085 (Build_Library): If Library_Options is specified, pass these options
29086 when building a shared library.
29088 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
29090 * s-tposen.adb (Service_Entry): The object must be always unlocked at
29091 the end of this procedure now that the unlock operation was inserted
29094 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
29096 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
29097 corresponding to the Preallocated_Stacks flags in System.
29098 (Get_Target_Parameters): Including the processing for
29099 Preallocated_Stacks.
29101 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
29102 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
29103 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
29104 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
29105 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
29106 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
29107 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
29108 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
29109 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
29110 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
29111 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
29112 used to signal whether the compiler creates the required stacks and
29113 descriptors for the different tasks (when True) or it is done by the
29114 underlying operating system at run time (when False).
29115 It is initially set to False in all targets.
29117 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
29118 if it is supported by the target.
29119 (Make_Task_Create_Call): Pass the stack address if it has been
29120 previously created. Otherwise pass a Null_Address.
29122 * snames.adb: Add _stack.
29124 * snames.ads: Add Name_uStack. Required to allow the expander to
29125 statically allocated task stacks.
29127 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
29128 Stack_Address argument.
29129 Check that its value is equal to Null_Address because this target does
29130 not support the static stack allocation.
29132 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
29134 * usage.adb: Change "pragma inline" to "pragma Inline" in information
29137 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
29139 * exp_dist.adb: Split declaration of asynchronous flag out of
29140 Add_RACW_Read_Attribute.
29141 Minor reformatting for better alignment with PolyORB version.
29142 Store the entity for the asynchronous flag of an RACW, rather than the
29143 expression, in the asynchronous flags table. This will allow this flag
29144 to be used in other subprograms beside Add_RACW_Read_Attribute.
29146 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
29148 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
29149 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
29150 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
29151 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
29152 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
29153 sockets constant MSG_NOSIGNAL (Linux-specific).
29154 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
29155 all Send operations.
29156 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
29157 from trigerring SIGPIPE.
29158 Rename components to avoid clash with Ada 2005 possible reserved
29160 (Check_Selector): When the select system call returns with an error
29161 condition, propagate Socket_Error to the caller.
29163 2004-10-01 Jan Hubicka <jh@suse.cz>
29165 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
29167 2004-09-23 Robert Dewar <dewar@gnat.com>
29170 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
29171 instead do this at freeze time (we won't do it if there is an address
29173 Change "pragma inline" to "pragma Inline" in information and error
29175 Minor reformatting.
29177 * freeze.adb (Check_Address_Clause): Remove previous change, not the
29178 right way of doing things after all.
29179 (Freeze_Entity): For object, set Is_Public for imported entities
29180 unless there is an address clause present.
29182 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
29184 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
29185 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
29186 ensures proper handling of types with rep clauses, which might have
29187 their TYPE_SIZE set already.
29189 2004-09-21 Robert Dewar <dewar@gnat.com>
29191 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
29192 packed array types in both little- and big-endian cases. This change
29193 ensures that we no longer count on the unused bits being initialized
29194 for such types (and in particular ensures that equality testing will
29195 only read the relevant bits).
29196 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
29197 These changes mean that we no longer need to initialize small packed
29199 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
29200 optimization to an LJM field as to its parent field.
29202 * ada-tree.h, trans.c, utils.c, utils2.c:
29203 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
29205 2004-09-20 Jan Hubicka <jh@suse.cz>
29207 * utils.c (gnat_finalize): Remove.
29208 (end_subprog_body): Directly call cgraph_finalize_function;
29209 do not lower the nested functions.
29211 2004-09-20 Robert Dewar <dewar@gnat.com>
29214 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
29215 if an address clause is present, since that means that the Import
29218 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
29220 * 5tsystem.ads: Removed, no longer used.
29222 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
29223 Zack Weinberg <zack@codesourcery.com>
29225 * ada-tree.def: Use tree_code_class enumeration constants
29226 instead of code letters.
29227 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
29228 Update for new tree-class enumeration constants.
29230 2004-09-17 Vincent Celier <celier@gnat.com>
29232 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
29233 capabilities of the general project manager.
29235 2004-09-09 Vincent Celier <celier@gnat.com>
29237 * a-direct.ads: Add pragma Ada_05
29238 (Directory_Entry_Type): Give default value to component Kind to avoid
29239 not initialized warnings.
29241 * a-direct.adb (Current_Directory): Remove directory separator at the
29243 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
29244 an existing directory.
29245 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
29246 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
29247 Convert the result to File_Size.
29249 * prj.ads: (Project_Error): New exception
29251 * prj-attr.adb: Except in procedure Initialize, Fail comes from
29252 Prj.Com, not from Osint.
29253 (Attrs, Package_Attributes): Tables moved to private part of spec
29254 (Add_Attribute, Add_Unknown_Package): Moved to new child package
29256 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
29257 Prj.Project_Error after call to Fail.
29258 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
29259 Fail. Check that package name is not already in use.
29261 * prj-attr.ads: Comment updates to indicate that all subprograms may be
29262 used by tools, not only by the project manager, and to indicate that
29263 exception Prj.Prj_Error may be raised in case of problem.
29264 (Add_Unknown_Package, Add_Attribute): Moved to new child package
29266 (Attrs, Package_Attributes): Table instantiations moved from the body to
29267 the private part to be accessible from Prj.Attr.PM body.
29269 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
29270 from new package Prj.Attr.PM.
29271 (Parse_Attribute_Declaration): Call Add_Attribute from new package
29274 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
29276 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
29277 instead of Elaboration_Checks).
29279 * a-calend.adb: Minor reformatting
29281 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29283 * gigi.h (maybe_pad_type): New declaration.
29284 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
29286 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
29288 * cuintp.c: Convert to use buildN.
29290 * decl.c (maybe_pad_type): No longer static.
29291 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
29293 Convert to use buildN.
29295 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
29296 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
29297 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
29299 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
29300 (gnat_gimplify_expr, case ADDR_EXPR): New case.
29301 Convert to use buildN.
29303 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
29304 TREE_READONLY for const.
29305 Convert to use buildN.
29307 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
29308 (create_var_decl): Refine when TREE_STATIC is set.
29309 Convert to use buildN.
29311 2004-09-09 Gary Dismukes <dismukes@gnat.com>
29313 * gnat_ugn.texi: Delete text relating to checking of ali and object
29316 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
29319 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
29321 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
29322 pragmas recognized by GNAT.
29324 * gnat_rm.texi: Document pragma Detect_Blocking.
29326 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
29327 raise Program_Error if called from a protected operation.
29329 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
29330 the protected action nesting level.
29331 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
29332 protected action nesting level.
29333 (Unlock): When pragma Detect_Blocking is active decrease the protected
29334 action nesting level.
29336 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
29337 Protected_Action_Nesting.
29339 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
29340 Common_ATCB record. It contains the dynamic level of protected action
29341 nesting for each task. It is needed for checking whether potentially
29342 blocking operations are called from protected operations.
29343 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
29344 Detect_Blocking is active or not in the partition.
29346 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
29347 raise Program_Error if called from a protected operation.
29348 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
29349 Program_Error if called from a protected operation.
29350 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
29351 Program_Error if called from a protected operation.
29353 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
29354 raise Program_Error if called from a protected operation.
29356 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
29357 raise Program_Error if called from a protected operation, and increase
29358 the protected action nesting level.
29359 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
29360 Program_Error if called from a protected operation, and increase the
29361 protected action nesting level.
29362 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
29363 protected action nesting level.
29365 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
29366 raise Program_Error if called from a protected operation, and increase
29367 the protected action nesting level.
29368 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
29369 Program_Error if called from a protected operation, and increase the
29370 protected action nesting level.
29371 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
29372 raise Program_Error if called from a protected operation.
29373 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
29374 active, raise Program_Error if called from a protected operation.
29375 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
29376 protected action nesting level.
29378 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
29379 insertion of the statement raising Program_Error. The run time
29380 contains the required machinery for handling that.
29382 * sem_util.ads: Change comment associated to procedure
29383 Check_Potentially_Blocking_Operation.
29384 This procedure does not insert a call for raising the exception because
29385 that is currently done by the run time.
29387 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
29389 * init.c: Add the global variable __gl_detect_blocking that indicates
29390 whether pragma Detect_Blocking is active (1) or not (0). Needed for
29391 making the pragma available at run time.
29392 (__gnat_set_globals): Pass and update the detect_blocking parameter.
29394 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
29395 pragma Detect_Blocking is active.
29397 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
29399 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
29400 DB is found in the ali file. Any unit compiled with pragma
29401 Detect_Blocking active forces its effect in the whole partition.
29403 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
29404 Detect_Blocking is active and delay is called from a protected
29407 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
29408 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
29409 Detect_Blocking is active (0 otherwise).
29410 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
29411 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
29414 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
29416 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
29417 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
29420 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
29421 (Register_Receiving_Stub): Add Subp_Info formal parameter.
29422 Update API in placeholder implemetation of s-parint to reflect changes
29423 in distribution runtime library.
29425 * sem_ch3.adb (Expand_Derived_Record): Rename to
29426 Expand_Record_Extension.
29428 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
29429 primitive operations of potentially distributed object types that have
29430 non-controlling anonymous access formals.
29432 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
29434 New implementation of expansion for remote access-to-subprogram types,
29435 based on the RACW infrastructure.
29436 This version of sem_dist is compatible with PolyORB/DSA as well as
29439 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
29440 Asynchrronous that applies to a remote access-to-subprogram type, mark
29441 the underlying RACW type as asynchronous.
29443 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
29444 __gnat_using_gnu_linker to 1.
29446 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
29447 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
29448 GNAT.Perfect_Hash_Generators, and remove the empty
29449 GNAT.Perfect_Hash package.
29451 * atree.adb: Minor reformatting
29453 * exp_ch3.adb (Expand_Derived_Record): Rename to
29454 Expand_Record_Extension.
29455 (Build_Record_Init_Proc.Build_Assignment): The default expression in
29456 a component declaration must remain attached at that point in the
29457 tree so New_Copy_Tree copies it if the enclosing record type is derived.
29458 It is therefore necessary to take a copy of the expression when building
29459 the corresponding assignment statement in the init proc.
29460 As a side effect, in the case of a derived record type, we now see the
29461 original expression, without any rewriting that could have occurred
29462 during expansion of the ancestor type's init proc, and we do not need
29463 to go back to Original_Node.
29465 * exp_ch3.ads (Expand_Derived_Record): Rename to
29466 Expand_Record_Extension.
29468 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
29469 Returns the RACW type used to implement a remote access-to-subprogram
29471 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
29472 New subprograms. Used to create a proxy tagged object for a remote
29473 subprogram. The proxy object is used as the designated object
29474 for RAS values on the same partition (unless All_Calls_Remote applies).
29475 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
29476 System.Partition_Interface.Get_Unique_Remote_Pointer.
29477 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
29478 Renamed from Add_RAS_*_Attribute.
29479 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
29481 New implementation of expansion for remote access-to-subprogram types,
29482 based on the RACW infrastructure.
29484 * exp_dist.ads (Copy_Specification): Update comment to note that this
29485 function can copy the specification from either a subprogram
29486 specification or an access-to-subprogram type definition.
29488 2004-09-09 Ed Schonberg <schonberg@gnat.com>
29490 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
29491 in an instance, between an explicit subprogram an one inherited from a
29492 type derived from an actual.
29494 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
29495 add a polling call if the subprogram is to be inlined by the back-end,
29496 to avoid repeated calls with multiple inlinings.
29498 * checks.adb (Apply_Alignment_Check): If the expression in the address
29499 clause is a call whose name is not a static entity (e.g. a dispatching
29500 call), treat as dynamic.
29502 2004-09-09 Robert Dewar <dewar@gnat.com>
29504 * g-trasym.ads: Minor reformatting
29506 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
29507 packed arrays, since unused bits are expected to be zero for a
29510 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
29512 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
29515 2004-09-09 Pascal Obry <obry@gnat.com>
29517 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
29518 enable map file generation. Add the right option to generate the map
29519 file if Map_File is set to True.
29521 * gnatdll.adb (Gen_Map_File): New variable.
29522 (Syntax): Add info about new -m (Map_File) option.
29523 (Parse_Command_Line): Add support for -m option.
29524 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
29525 Minor reformatting.
29527 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
29529 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
29530 new gnatdist implementation.
29531 Define a subpackage isolating the output routines specific to this
29534 2004-09-09 Joel Brobecker <brobecker@gnat.com>
29536 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
29538 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
29540 2004-09-09 Cyrille Comar <comar@act-europe.fr>
29542 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
29545 * opt.ads: Add Ada_Version_Runtime constant used to decide which
29546 version of the language is used to compile the run time.
29548 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
29550 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
29551 of variable length temporaries for function return now that the
29552 back-end and gigi support it.
29554 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29556 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
29558 * trans.c (struct stmt_group): Delete field GLOBAL.
29559 (gnat_init_stmt_group): Do not initialize it.
29560 (call_to_gnu): Use save_expr, not protect_multiple_eval.
29561 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
29562 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
29563 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
29564 (start_stmt_group): Likewise.
29565 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
29567 * utils2.c (ggc.h): Include.
29568 (build_call_raise): Call build_int_cst, not build_int_2.
29570 * utils.c (gnat_init_decl_processing): Fix arg to
29571 build_common_tree_nodes.
29572 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
29573 (gnat_define_builtin): Set built_in_decls.
29574 (init_gigi_decls): Call build_int_cst, not build_int_2.
29576 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
29577 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
29578 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
29579 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
29580 SET_TYPE_MODULE): Use them.
29581 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
29582 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
29583 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
29584 SET_TYPE_ADA_SIZE): Likewise.
29585 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
29586 (DECL_CONST_CORRESPONDING_VAR,
29587 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
29588 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
29589 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
29590 (TYPE_RM_SIZE_NUM): New macro.
29591 (TYPE_RM_SIZE): Modified to use above.
29593 * cuintp.c: (build_cst_from_int): New function.
29594 (UI_To_gnu): Use it.
29596 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
29597 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
29598 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
29599 MIN_EXPR for the size, copy it into new.
29601 2004-09-01 Robert Dewar <dewar@gnat.com>
29603 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
29604 packed indexed component where array is an IN OUT formal. This
29605 generated garbage code previously.
29607 * gnat_ugn.texi: Document -fverbose-asm
29609 * gnat-style.texi: Minor updates (note that boolean constants and
29610 variables are joined with AND/OR rather than short circuit forms).
29612 2004-09-01 Ed Schonberg <schonberg@gnat.com>
29614 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
29615 it is an upward conversion of an untagged type with no representation
29618 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
29620 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
29621 System.Partition_Interface.
29623 * checks.adb (Apply_Access_Checks): Do not generate checks when
29624 expander is not active (but check for unset reference to prefix of
29627 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
29628 pragma Debug as an if statement with a constant condition, for
29629 consistent treatment of entity references contained within the
29630 enclosed procedure call.
29632 2004-09-01 Vincent Celier <celier@gnat.com>
29634 * bindgen.adb: (Set_EA_Last): New procedure
29635 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
29637 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
29638 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
29639 linked without errors.
29640 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
29642 (Gen_Exception_Table_C): Correct same bugs
29644 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
29646 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
29647 on Windows, make sure that the drive letter is in upper case.
29649 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
29650 Windows, when the drive letter is added and Case_Sensitive is True, the
29651 drive letter is forced to upper case.
29653 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
29654 to Options_2 for the call to MLib.Utl.Gcc.
29656 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
29657 directory separator when defining BASE_DIR.
29659 2004-09-01 Pascal Obry <obry@gnat.com>
29661 * gprcmd.adb (Extend): Do not output trailing directory separator. This
29662 is not needed and it confuses Windows GNU/make which does not report
29663 directory terminated by a slash as a directory.
29664 (gprcmd): Idem for "pwd" internal command.
29666 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
29667 target names rewrite to fix regressions with recent version of
29668 GNU/make. Starting with GNU/make 3.80 the pipe character was not
29669 handled properly anymore.
29671 2004-09-01 Andreas Schwab <schwab@suse.de>
29673 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
29674 * raise.c [!IN_RTS]: Undef abort.
29676 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
29678 * utils2.c (build_allocator): Use ssize_int.
29680 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
29682 2004-08-27 Andreas Schwab <schwab@suse.de>
29684 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
29686 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
29687 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29689 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
29691 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
29693 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
29694 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29695 * utils.c (init_gigi_decls): Likewise.
29696 * utils2.c (build_call_raise, build_allocator): Likewise.
29698 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
29700 * utils.c (gnat_init_decl_processing): Adjust
29701 build_common_tree_nodes call.
29703 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
29705 * utils2.c (build_allocator): Use build_int_cst for negative
29708 2004-08-18 Richard Henderson <rth@redhat.com>
29710 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
29712 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
29714 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
29716 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
29717 (gnat_to_gnu): Likewise.
29719 2004-08-16 Pascal Obry <obry@gnat.com>
29721 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
29722 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
29723 option and not mdll anymore. Update comment.
29725 2004-08-16 Pascal Obry <obry@gnat.com>
29727 * bld.adb (Put_Include_Project): Properly handle directory separators
29730 2004-08-16 Ed Schonberg <schonberg@gnat.com>
29732 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
29733 decreasing the number of allocated junk nodes while searching for the
29734 appropriate subprogram.
29736 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
29738 * cuintp.c (UI_To_gnu): Use build_int_cst..
29739 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29740 * utils.c (init_gigi_decls): Likewise.
29741 * utils2.c (build_call_raise): Likewise.
29743 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
29745 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
29746 for a global aliased object with a variable size and an unconstrained
29747 nominal subtype, pretend there is no initializer if the one we have is
29748 incomplete, and avoid referencing an inexistant component in there. The
29749 part we have will be rebuilt anyway and the reference may confuse
29750 further operations.
29752 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
29754 * einfo.ads: Minor reformatting
29756 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
29757 restrictions in the ALI if we only want to warn about violations.
29759 2004-08-13 Vincent Celier <celier@gnat.com>
29761 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
29762 when creating a new Unit_Record in table Units.
29764 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
29765 that are violated, if any.
29767 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
29768 add directory separator if path already ends with a directory separator.
29770 2004-08-13 Ed Schonberg <schonberg@gnat.com>
29772 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
29773 unit, this is an attempt to inline a construct that is not available in
29774 the current restricted mode, so abort rather than trying to continue.
29776 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
29777 discriminants that rename those of the parent, recover names of
29778 original discriminants for the constraint on the full view of the
29780 (Complete_Private_Subtype): Do not create a subtype declaration if the
29781 subtype is an itype.
29783 * gnat_rm.texi: Added section on implementation of discriminated
29784 records with default values for discriminants.
29786 2004-08-13 Ed Schonberg <schonberg@gnat.com>
29789 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
29790 the second operand is overloaded.
29792 2004-08-10 Richard Henderson <rth@redhat.com>
29794 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
29795 add __builtin_alloca.
29797 2004-08-10 Richard Henderson <rth@redhat.com>
29799 * config-lang.in (boot_language): Yes.
29801 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
29803 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
29804 from complaining on potential uninitialized reference.
29805 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
29806 new specification and test explicitly for non-zero return value.
29808 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
29809 returning C.int, to avoid using a derived boolean type.
29811 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
29812 Duplicate_Subexpr_No_Checks in preference to direct use of
29813 Remove_Side_Effects and New_Copy_Tree.
29814 Clear Comes_From_Source on prefix of 'Size attribute reference.
29816 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
29817 g-socthi-vxworks.adb: Change calls to
29818 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
29819 and test explicitly for non-zero return value.
29821 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
29822 (Is_Socket_In_Set): Declare imported function as returning C.int, to
29823 avoid using a derived boolean type.
29825 2004-08-09 Albert Lee <lee@gnat.com>
29827 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
29829 2004-08-09 Pascal Obry <obry@gnat.com>
29831 * gnat_ugn.texi: Document new way to build DLLs on Windows using
29832 GCC's -shared option.
29834 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
29835 Options_2 parameter (options put after object files).
29837 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
29839 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
29840 ignore overflows on low and high bounds of an index to also account for
29841 differences in signedness between sizetype and gnu_index_subtype.
29842 These are as legitimate as the ones caused by a lower TYPE_PRECISION
29845 2004-08-09 Robert Dewar <dewar@gnat.com>
29847 * s-solita.ads, s-solita.adb: Minor reformatting
29849 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
29850 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
29851 obsolescent section
29852 Add note that No_Implicit_Conditionals does not suppress
29853 run time constraint checks.
29855 * vms_conv.ads: Minor reformatting
29857 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
29858 and necessary for following change).
29859 (Mark): Return new format Mark_Id containing sec stack address
29860 (Release): Use sec stack address from Mark_Id avoiding Self call
29862 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
29863 pointer (cleanup and necessary for following change).
29864 Define Mark_Id as record containing address of secondary stack, that way
29865 Release does not need to find the stack again, decreasing the number of
29866 calls to Self and improving efficiency.
29868 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
29870 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
29871 case variable into the individual case branches when possible.
29873 * sem_ch11.adb: Minor reformatting
29875 * prj.ads: Correct spelling of suffixs
29877 * prj-nmsc.adb: Minor reformatting
29878 Correct spelling suffixs throughout (also in identifiers)
29880 * freeze.adb: Minor spelling correction
29882 * exp_ch2.adb: Cleanups to handling of Current_Value
29883 (no functional effect).
29885 * bld.adb: Correct spelling of suffixs
29887 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
29889 2004-08-09 Ed Schonberg <schonberg@gnat.com>
29892 * sem_ch7.adb (Install_Private_Declarations): In the body of the
29893 package or of a child, private entities are both immediately_visible
29896 2004-08-09 Ed Schonberg <schonberg@gnat.com>
29898 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
29899 there are no range checks on the value of the literal.
29901 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
29902 wrapped is the triggering alternative of an asynchronous select, action
29903 statements mustbe inserted before the select itself.
29905 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
29906 case where the prefix is a protected function call.
29907 (Resolve_Attribute, case 'Access): The attribute reference on a
29908 subprogram is legal in a generic body if the subprogram is declared
29911 2004-08-09 Vincent Celier <celier@gnat.com>
29913 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
29914 languages, otherwise building the library may fail with unresolved
29916 (Compile_Sources): Do not build libraries if -c switch is used
29918 * gnatlink.adb (Process_Args): New switches -M and -Mmap
29919 (Write_Usage): If map file creation is supported, output new switches
29921 (Gnatlink): When -M is specified, add the necessary switch(es) to the
29922 gcc call, when supported.
29924 * Makefile.in: Added indepsw.o to the object list for gnatlink
29925 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
29927 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
29928 indepsw.adb, indepsw.ads: New files.
29930 2004-08-09 Bernard Banner <banner@gnat.com>
29932 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
29934 * Makefile.in: add section for vxworks x86
29936 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
29938 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
29939 per-object constrained components where the discriminant is of an
29941 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
29942 the parent initialization procedure for derived Unchecked_Unions.
29943 Instead, derived Unchecked_Unions build their own initialization
29945 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
29946 Check the body of the subprogram for details.
29947 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
29948 functions for derived Unchecked_Union types by introducing a condition.
29949 Allow the creation of TSS equality functions for Unchecked_Unions.
29950 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
29951 Add formal parameter Discr to function signature. Discr is used to
29952 control the generated case statement for Unchecked_Union types.
29953 (Make_Eq_If): Rename formal parameter Node to E in function signature.
29955 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
29957 Check the body of the subprogram for details.
29958 (Expand_Composite_Equality): Augment composite type equality to include
29959 correct handling of Unchecked_Union components.
29960 (Expand_N_In): Add condition to detect illegal membership tests when the
29961 subtype mark is a constrained Unchecked_Union and the expression lacks
29962 inferable discriminants, and build a Raise_Program_Error node.
29963 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
29964 to detect types that contain components of unconstrained Unchecked_Union
29965 subtype. Add condition to detect equality between types that have an
29966 unconstrained Unchecked_Union component, and build a Raise_Program_Error
29967 node. Add condition to detect equality between Unchecked_Union types
29968 that lack inferable discriminants, and build a Raise_Program_Error node.
29969 Otherwise build a TSS equality function call.
29970 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
29971 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
29972 with the operand lacking inferable discriminants, and build a Raise_
29973 Program_Error node.
29974 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
29975 composite equality.
29976 (Has_Inferable_Discriminants): Implement new predicate for objects and
29977 expressions of Unchecked_Union type. Check the body of subprogram for
29979 (Has_Unconstrained_UU_Components): Add function
29980 Component_Is_Unconstrained_UU. It is used to detect whether a single
29981 component is of an unconstrained Unchecked_Union subtype. Add function
29982 Variant_Is_Unconstrained_UU. It is used to detect whether a single
29983 component inside a variant is of an unconstrained Unchecked_Union type.
29985 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
29986 inferred discriminant values. Add condition to generate a case
29987 statement with an inferred discriminant as the switch.
29988 (Make_Component_List_Assign): Introduce a Boolean flag that determines
29989 the behaviour of the subprogram in the presence of an Unchecked_Union.
29990 Add condition to trigger the usage of the inferred discriminant value
29991 as the generated case statement switch.
29992 (Make_Field_Assign): Introduce a Boolean flag that determines the
29993 behaviour of the subprogram in the presence of an Unchecked_Union. Add
29994 condition to trigger the usage of the inferred discriminant value as
29995 the right-hand side of the generated assignment.
29997 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
29998 parameter generation when dealing with Unchecked_Unions.
30000 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
30001 checks for Unchecked_Unions.
30003 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
30005 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
30006 Raise_Program_Error nodes for the execution of Read and Write
30007 attributes of Unchecked_Union types and the execution of Input and
30008 Output attributes of Unchecked_Union types that lack default
30009 discriminant values.
30011 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
30012 Unchecked_Union. Add procedure Check_Component. It is used to inspect
30013 per-object constrained components of Unchecked_Unions for being
30014 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
30015 check individual components withing a variant.
30017 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
30018 comparison of Unchecked_Unions.
30019 (Resolve_Equality_OP): Remove guard that prevents equality between
30022 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
30023 of component subtypes for Unchecked_Union components.
30024 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
30025 since it is the actual subtype.
30027 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
30028 pass of Unchecked_Union subtypes as generic actuals to formal types
30029 that lack known_discriminant_parts or that are derived Unchecked_Union
30030 types, and do nothing. In any other case, produce an error message.
30032 * sem_ch3.adb (Analyze_Component_Declaration): Add function
30033 Contains_POC. It determines whether a constraint uses the discriminant
30034 of an enclosing record type.
30035 Add condition to detect per-object constrained component and set the
30037 (Derived_Type_Declaration): Remove guard that prevents derivation from
30038 Unchecked_Union types.
30039 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
30042 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
30043 references to Unchecked_Union discriminants.
30045 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
30046 formal generation when dealing with Unchecked_Unions.
30047 (Set_Actual_Subtypes): Add condition to prevent generation of actual
30048 subtypes for Unchecked_Unions.
30050 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
30051 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
30052 completions of discriminated partial views by Unchecked_Unions and
30053 produce an error message.
30055 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30057 * trans.c (struct stmt_group): New field, GLOBAL.
30058 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
30059 (struct elab_info): New struct.
30060 (elab_info_list, gnu_elab_proc_stack): New variables.
30061 (Compilation_Unit_to_gnu): New procedure.
30062 (gigi): Call it and also handle elaboration procs we've saved.
30063 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
30064 global field from parent.
30065 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
30066 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
30067 (start_stmt_group): Initialize global field from parent.
30068 (add_decl_expr): Set to global for current statement group.
30069 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
30072 * utils.c (global_bindings_p): True when no current_function_decl; no
30073 longer check current_binding_level.
30075 2004-08-09 Ben Brosgol <brosgol@gnat.com>
30077 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
30080 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
30082 2004-08-06 Andreas Schwab <schwab@suse.de>
30084 * utils.c (gnat_define_builtin): Remove second parameter of
30086 (begin_subprog_body): Likewise.
30088 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
30090 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
30091 optimization, not supported by the tree-ssa back-end.
30093 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
30095 * s-mastop-irix.adb: Update comments.
30097 * a-except.adb (Exception_Information): Raise Constraint_Error if
30098 exception Id is Null_Id.
30099 This is required behavior, which is more reliably and clearly checked
30100 at the top level interface level.
30102 2004-07-26 Javier Miranda <miranda@gnat.com>
30104 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
30105 call if a component has no default_expression and the box is used.
30107 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
30108 default_expression and you use box, it behaves as if you had declared a
30109 stand-alone object.
30110 (Resolve_Record_Aggregate): If a component has no default_expression and
30111 you use box, it behaves as if you had declared a stand-alone object.
30113 * sem_ch10.adb (Install_Siblings): Do not make visible the private
30114 entities of private-with siblings.
30116 2004-07-26 Ed Schonberg <schonberg@gnat.com>
30118 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
30119 for a component of an itype, set the parent pointer for analysis,
30120 there is no list in which to insert it.
30122 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
30123 bona-fide renamings, not for inherited operations.
30125 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
30126 actual for a formal that is an access parameter, create local
30127 finalization list even if the expression is not an aggregate.
30129 2004-07-26 Ed Schonberg <schonberg@gnat.com>
30132 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
30133 Diagnose properly illegal subprogram renamings that are library units.
30135 2004-07-26 Ed Schonberg <schonberg@gnat.com>
30138 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
30139 conversion rewritten as an unchecked conversion, check that original
30140 expression is a variable.
30142 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
30143 unchecked_conversion, create new node rather than rewriting in place,
30144 to preserve original construct.
30146 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30148 * gigi.h (gnat_expand_body): Deleted.
30150 * Make-lang.in: (trans.o): Depends on function.h.
30152 * misc.c: (gnat_expand_body): Moved to here.
30154 * trans.c (gnat_expand_body_1): Deleted.
30155 (gnat_expand_body): Moved from here.
30156 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
30157 (add_stmt): Check for marked visited with global_bindings_p.
30158 (gnat_gimplify_expr, case COMPONENT_REF): New case.
30159 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
30161 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
30162 VIEW_CONVERT_EXPR if not operation type.
30164 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
30167 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
30168 changes: reformatting of negation operators, removing unneeded
30169 inequality comparison with zero, converting equality comparisons with
30170 zero to negations, changing int/0/1 to bool/false/true, replace calls
30171 to gigi_abort with abort, and various other similar changes.
30173 2004-07-26 Vincent Celier <celier@gnat.com>
30175 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
30178 * make.adb (Gnatmake): Fail when a library is not present and there is
30179 no object directory.
30181 * mlib-prj.adb (Check_Library): No need to check if the library needs
30182 to be rebuilt if there is no object directory, hence no object files
30183 to build the library.
30185 * opt.ads (Setup_Projects): New Boolean flag.
30187 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
30189 Create directory when Kind /= "" and in "gnat setup". Report error if
30190 directory cannot be created.
30191 (Ada_Check): Create library interface copy dir if it does not exist
30192 and we are in "gnat setup".
30193 (Find_Sources): No error if in "gnat setup" and no Ada sources were
30195 (Language_Independent_Check): Create object directory, exec directory
30196 and/or library directory if they do not exist and we are in
30199 * vms_conv.ads: (Command_Type): New command Setup.
30201 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
30203 * vms_data.ads: Add qualifiers/switches for new built-in command
30206 2004-07-25 Richard Henderson <rth@redhat.com>
30208 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
30209 DECL_IGNORED_P on RESULT_DECL.
30211 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
30213 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
30214 allocation and potentially overflowing update with
30215 Tailored_Exception_Information. Use the sec-stack free procedural
30216 interface to output Exception_Information instead.
30218 * a-except.adb (To_Stderr): New subprogram for character, and string
30219 version moved from a-exextr to be visible from other separate units.
30220 (Tailored_Exception_Information): Remove the procedural version,
30221 previously used by the default Last_Chance_Handler and not any more.
30222 Adjust various comments.
30224 * a-exexda.adb: Generalize the exception information procedural
30225 interface, to minimize the use of secondary stack and the need for
30226 local buffers when the info is to be output to stderr:
30227 (Address_Image): Removed.
30228 (Append_Info_Character): New subprogram, checking for overflows and
30229 outputing to stderr if buffer to fill is of length 0.
30230 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
30231 (Append_Info_Address, Append_Info_Exception_Name,
30232 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
30233 Append_Info_Basic_Exception_Traceback,
30234 Append_Info_Exception_Information): New subprograms.
30235 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
30236 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
30237 Exception_Info_Maxlength, Exception_Name_Length,
30238 Exception_Message_Length): New subprograms.
30239 (Exception_Information): Use Append_Info_Exception_Information.
30240 (Tailored_Exception_Information): Use
30241 Append_Info_Basic_Exception_Information.
30242 Export services for the default Last_Chance_Handler.
30244 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
30245 other separate units.
30247 2004-07-20 Vincent Celier <celier@gnat.com>
30249 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
30251 2004-07-20 Ed Schonberg <schonberg@gnat.com>
30253 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
30254 emit itype references for the designated types of component types that
30255 are declared outside of the full record declaration, and that may
30256 denote a partial view of that record type.
30258 2004-07-20 Ed Schonberg <schonberg@gnat.com>
30261 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
30262 which is the designated type in an access component declaration, to the
30263 list of incomplete dependents of the parent type, to avoid elaboration
30264 issues with out-of-scope subtypes.
30265 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
30266 full view of the parent.
30268 2004-07-20 Ed Schonberg <schonberg@gnat.com>
30271 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
30272 entities that are hidden, such as references to generic actuals
30273 outside an instance.
30275 2004-07-20 Javier Miranda <miranda@gnat.com>
30277 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
30278 support to the new notation.
30279 (Analyze_Selected_Component): Add call to Try_Object_Operation.
30281 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
30283 * s-taprob.adb: Adding the elaboration code required for initializing
30284 the tasking soft links that are common to the full and the restricted
30287 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
30288 restricted run time has been moved to the package
30289 System.Soft_Links.Tasking.
30291 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
30292 restricted run time has been moved to the package
30293 System.Soft_Links.Tasking.
30295 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
30297 * s-solita.ads, s-solita.adb: New files.
30299 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30301 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
30302 Case_Statement_to_gnu): Split off from gnat_to_gnu.
30303 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
30304 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
30305 Exception_Handler_to_gnu_zcx): Likewise.
30307 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
30309 * gigi.h (builtin_function): Declare.
30311 2004-07-15 Robert Dewar <dewar@gnat.com>
30313 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
30316 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
30317 access values as an example of a warning.
30319 * gnat_rm.texi: Document new attribute Has_Access_Values
30321 * gnat-style.texi: Document that box comments belong on nested
30324 * sem_util.ads (Has_Access_Values): Improved documentation
30326 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
30328 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
30329 (Process_Interface_Name): Call to this new procedure
30330 (Set_Extended_Import_Export_External_Name): Call to this new procedure
30332 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
30334 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
30336 * einfo.ads: Minor comment typo fixed
30338 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
30340 * snames.adb: Add _atcb.
30342 * snames.ads: Add Name_uATCB.
30344 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
30345 (in the expanded code) when using the restricted run time.
30347 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
30348 a in parameter in order to allow ATCBs to be preallocated (in the
30351 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
30352 order to allow ATCBs to be preallocated. In case of error, the ATCB is
30353 deallocated in System.Tasking.Stages.
30355 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
30356 order to allow ATCBs to be preallocated.
30358 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
30359 here. It was previously done in Initialize_ATCB.
30361 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
30363 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
30364 Restricted run time.
30366 * exp_ch3.adb: When using the Restricted run time, pass the
30367 preallocated Ada_Task_Control_Block when creating a task.
30369 2004-07-15 Ed Schonberg <schonberg@gnat.com>
30371 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
30372 function call that is itself an actual in an enclosing call, diagnose
30373 problem here rather than assuming that resolution will catch it.
30375 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
30376 the local copy of a generic unit for a formal package, and the generic
30377 is a child unit, install private part of ancestors before compiling
30378 private part of spec.
30380 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
30381 use scope entities rather than tree structures, to handle properly
30382 parent units that are instances rewritten as bodies for inlining
30385 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
30386 Remove_Parents): Handle properly a parent unit that is an
30387 instantiation, when the unit has been rewritten as a body for inlining
30390 * par.adb (Goto_List): Global variable to collect goto statements in a
30391 given unit, for use in detecting natural loops.
30393 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
30394 use in detecting natural loops.
30396 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
30397 backwards goto's, and rewrite as a infinite loop, to improve locality
30400 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
30401 subcomponent that includes an indexed reference, to prevent the
30402 generation of copies that would miscompile the desired assignment
30404 (Build_Task_Image_Decls): Add a numeric suffix to
30405 generated name for string variable, to avoid spurious conflicts with
30406 the name of the type of a single protected object.
30408 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
30409 loop with an explicit exit statement, to avoid generating an
30410 out-of-range value with 'Succ leading to spurious constraint_errors
30411 when compiling with -gnatVo.
30413 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
30415 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
30416 might not be analyzed yet, even if its Etype is already set (case of an
30417 unchecked conversion built using Unchecked_Convert_To, for example).
30418 If the prefix has already been analyzed, this will be a nop anyway.
30420 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
30421 controller type, or an assignment of a record type with controlled
30422 components, copy only user data, and leave the finalization chain
30423 pointers untouched.
30425 2004-07-15 Vincent Celier <celier@gnat.com>
30427 * make.adb (Collect_Arguments): Improve error message when attempting
30428 to compile a source not part of any project, when -x is not used.
30430 * prj.ads: (Defined_Variable_Kind): New subtype
30432 * prj-attr.adb (Register_New_Package): Two new procedures to register
30433 a package with or without its attributes.
30434 (Register_New_Attribute): Mew procedure to register a new attribute in a
30436 New attribute oriented subprograms: Attribute_Node_Id_Of,
30437 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30438 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30440 New package oriented subprograms: Package_Node_Id_Of,
30441 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30443 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
30445 (Package_Node_Id): Now a private, self initialized type
30446 (Register_New_Package): New procedure to register a package with its
30448 New attribute oriented subprograms: Attribute_Node_Id_Of,
30449 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30450 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30452 New package oriented subprograms: Package_Node_Id_Of,
30453 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30455 * prj-dect.adb (Parse_Attribute_Declaration,
30456 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
30458 * prj-makr.adb (Make): Parse existing project file before creating
30459 other files. Fail if there was an error during parsing.
30461 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
30462 new spec of Prj.Attr.
30464 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
30465 to new spec of Prj.Attr.
30467 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30469 * utils2.c: Fix typo in comment.
30471 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30473 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
30474 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
30476 2004-07-14 Andreas Schwab <schwab@suse.de>
30478 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
30480 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30482 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
30484 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
30487 * misc.c (gnat_types_compatible_p): New function.
30488 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
30489 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
30491 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
30492 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
30493 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
30494 (mark_visited): Don't mark dummy type.
30495 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
30496 parameter, we must remove any LJM building from GNU_NAME.
30497 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
30498 (pos_to_constructor): Use int_const_binop.
30499 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
30502 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
30503 (gnat_pushlevel): Set TREE_USE on BLOCK node.
30504 (gnat_install_builtins): Add __builtin_memset.
30506 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
30508 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
30509 for a renaming, stabilize the initialization expression if we are at a
30510 local level. At the local level, uses of the renaming may be performed
30511 by a direct dereference of the initializing expression, and we don't
30512 want possible variables there to be evaluated for every use.
30514 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
30515 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
30516 them on the way. Account for the fact that we may introduce side
30517 effects in the process.
30519 2004-07-13 Richard Henderson <rth@redhat.com>
30521 * misc.c (default_pass_by_ref): Use pass_by_reference.
30523 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
30525 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
30526 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
30528 2004-07-08 Richard Henderson <rth@redhat.com>
30530 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
30533 2004-07-06 Vincent Celier <celier@gnat.com>
30535 * vms_conv.ads: Minor reformatting.
30536 Alphabetical order for enumerated values of type Command_Type, to have
30537 the command in alphabetical order for the usage.
30539 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
30540 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
30542 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
30544 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
30545 (Add_Archive_Path): Only add the global archive if there is one.
30546 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
30547 or not any object file to put in the global archive, and don't build
30548 a global archive if there is none.
30549 (X_Switches): New table
30550 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
30551 in the X_Switches table, if any.
30552 (Initialize): Make sure the X_Switches table is empty
30553 (Scan_Arg): Record -X switches in table X_Switches
30555 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
30557 * make.adb: Minor comment fix
30559 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
30560 invoked with directory information, add the directory in front of the
30563 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
30564 invoked with directory information, add the directory in front of the
30567 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
30568 when Keep_Temporary_Files is False.
30569 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
30570 directory information, add the directory in front of the path.
30571 When not on VMS, handle new switch -dn before the command to set
30572 Keep_Temporary_Files to True.
30573 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
30576 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
30577 invoked with directory information, add the directory in front of the
30580 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
30582 * snames.ads, snames.adb (Name_Stub): New name for the distributed
30585 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
30586 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
30588 * g-socket.adb (To_Timeval): Fix incorrect conversion of
30589 Selector_Duration to Timeval for the case of 0.0.
30591 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
30592 documentation from Evolve_And_Then.
30594 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
30596 * s-taprop-tru64.adb, s-taprop-os2.adb,
30597 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
30599 2004-07-06 Robert Dewar <dewar@gnat.com>
30601 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
30602 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
30603 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
30604 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
30605 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
30606 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
30607 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
30608 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
30609 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
30610 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
30611 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
30612 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
30613 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
30614 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
30615 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
30616 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
30617 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
30618 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
30619 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
30620 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
30621 vms_data.ads: Minor reformatting,
30622 Fix bad box comment format.
30624 * gnat_rm.texi: Fix minor grammatical error
30626 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
30628 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
30629 more cases of discriminated records to be recognized as not needing a
30631 (Has_Access_Values): New function.
30633 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
30635 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
30636 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
30637 with LRM terminology).
30638 Change terminology in comments primitive type => elementary type.
30640 2004-07-06 Ed Schonberg <schonberg@gnat.com>
30643 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
30644 parameters do not impose any requirements on the presence of a body.
30646 2004-07-06 Ed Schonberg <schonberg@gnat.com>
30649 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
30650 compilation unit and is in an open scope at the point of instantiation,
30651 assume that a body may be present later.
30653 2004-07-06 Ed Schonberg <schonberg@gnat.com>
30655 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
30656 Improve error message when specified size is not supported.
30658 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
30659 is never a primitive operation.
30661 2004-07-05 Andreas Schwab <schwab@suse.de>
30663 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
30664 RECORD_OR_UNION_CHECK.
30665 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
30667 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
30669 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
30670 dependency on xgnatugn, instead build it via a submake.
30671 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
30673 2004-07-04 Richard Henderson <rth@redhat.com>
30675 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
30677 2004-07-01 Richard Henderson <rth@redhat.com>
30679 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
30680 * utils.c (max_size): Likewise.
30682 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30684 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
30685 and rest_of_type_compilation; add arg to create_*_decl.
30686 (annotate_decl_with_node): Deleted.
30687 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
30688 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
30689 (get_current_block_context, gnat_pushdecl): New declarations.
30690 (gnat_init_stmt_group): Likewise.
30691 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
30692 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
30693 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
30694 (gnat_init): Call gnat_init_stmt_group.
30695 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
30696 (gnu_pending_elaboration_list): Deleted.
30697 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
30698 (gigi): Rearrange initialization calls and move some to last above.
30699 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
30700 Delete calls to add_decl_expr; add arg to create_*_decl.
30701 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
30702 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
30703 begin_subprog_body and call it.
30704 Don't push and pop ggc context.
30705 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
30706 (add_stmt): Remove handling of DECL_EXPR from here.
30707 If not in function, mark visited.
30708 (add_decl_expr): Put global at top level.
30709 Check for cases of DECL_INITIAL we have to handle here.
30710 (process_type): Add extra arg to create_type_decl.
30711 (build_unit_elab): Rework to just gimplify.
30712 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
30713 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
30714 (get_pending_elaborations, pending_elaborations_p): Likewise.
30715 (push_pending_elaborations, pop_pending_elaborations): Likewise.
30716 (get_elaboration_location, insert_elaboration_list): Likewise.
30717 (gnat_binding_level): Renamed from ada_binding_level.
30718 (init_gnat_to_gnu): Don't clear pending_elaborations.
30719 (global_bindings_p): Treat as global if no current_binding_level.
30720 (set_current_block_context): New function.
30721 (gnat_pushdecl): Renamed from pushdecl; major rework.
30722 All callers changed.
30723 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
30724 (finish_record_type): Call call pushdecl for stub decl.
30725 (function_nesting_depth): Deleted.
30726 (begin_subprog_body): Delete obsolete code.
30727 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
30729 2004-06-28 Robert Dewar <dewar@gnat.com>
30731 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30732 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
30733 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
30734 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30735 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
30737 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
30738 deal with problem of inefficient slices on machines with strict
30739 alignment, when the slice is a component of a composite.
30741 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
30742 machines, we need the check there as well.
30744 2004-06-28 Ed Schonberg <schonberg@gnat.com>
30746 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
30747 determine safe copying direction for overlapping slice assignments
30748 when component is controlled.
30750 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
30751 formal derived type in the actual for a formal package are visible in
30752 the enclosing instance.
30754 2004-06-28 Ed Schonberg <schonberg@gnat.com>
30757 * sem_util.adb (Trace_Components): Diagnose properly an illegal
30758 circularity involving a private type whose completion includes a
30759 self-referential component.
30760 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
30761 renaming or an instantiation from an implicit derived operation.
30763 2004-06-28 Pascal Obry <obry@gnat.com>
30765 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
30767 (Library_File_Name_For): Idem.
30769 2004-06-28 Matthew Gingell <gingell@gnat.com>
30771 * g-traceb.ads: Add explanatory note on the format of addresses
30772 expected by addr2line.
30774 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
30776 * Makefile.in: Force debugging information on s-tasdeb.adb,
30777 a-except.adb and s-assert.adb needed by the debugger.
30779 2004-06-28 Vincent Celier <celier@gnat.com>
30781 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
30785 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
30787 * prj.adb: Minor reformatting
30788 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
30790 * prj.ads: Comment updates
30792 (Project_Data): Change Flag1 to Need_To_Build_Lib.
30793 Remove Flag2: not used.
30795 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
30798 * gnat_ugn.texi: Put a "null;" declaration in one project file example
30800 * gnat_rm.texi: Document Empty declarations "null;".
30802 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
30803 front of the linker options.
30804 (Link_Foreign): Put the global archives and the libraries in front of
30805 the linker options.
30807 2004-06-28 Javier Miranda <miranda@gnat.com>
30809 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
30810 (RTU_Loaded): Code cleanup
30811 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
30812 withed predefined units.
30814 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
30815 explicitly withed predefined units.
30816 Fix typo in comment
30818 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
30819 explicitly withed predefined units.
30821 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30823 * ada-tree.def (DECL_STMT): Deleted.
30824 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
30825 (DECL_STMT_VAR): Deleted.
30826 * decl.c: add_decl_stmt now add_decl_expr.
30827 * gigi.h: Likewise.
30828 * trans.c: Likewise.
30829 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
30830 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
30831 (add_stmt): Only handle padded type here.
30832 (add_stmt_with_node): Allow gnat_node to not be present.
30833 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
30834 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
30835 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
30836 make a SAVE_EXPR for the entire fat pointer.
30837 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
30838 (create_index_type): Make a DECL_EXPR.
30839 (end_subprog_body): Don't call allocate_struct_function here but
30842 2004-06-25 Pascal Obry <obry@gnat.com>
30844 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
30845 Relocatable from Build_Dynamic_Library call.
30847 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
30848 Relocatable are now synonym.
30850 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
30852 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
30853 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
30856 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
30857 Lib_Address and Relocatable.
30858 (Default_DLL_Address): Removed.
30860 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30861 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30862 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
30863 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
30864 (Default_DLL_Address): Removed.
30866 * mlib-tgt-mingw.adb: Ditto.
30867 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
30869 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
30870 the initial thread stack size.
30872 * a-strmap.ads: Move package L to private part as it is not used in
30873 the spec. Found while reading code.
30875 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
30877 * tracebak.c: Introduce support for a GCC infrastructure based
30878 implementation of __gnat_backtrace.
30880 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
30881 any more. Use accessors instead. This eases maintenance and relaxes
30882 some alignment constraints.
30883 (_GNAT_Exception structure): Remove the Ada specific fields
30884 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
30886 (is_handled_by, __gnat_eh_personality): Replace component references to
30887 exception structure by use of the new accessors.
30889 * init.c (__gnat_initialize): Adjust comments to match the just
30890 reverted meaning of the -static link-time option.
30892 * adaint.c (convert_addresses): Arrange not to define a stub for
30893 mips-irix any more, as we now want to rely on a real version from a
30894 recent libaddr2line.
30896 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
30897 the personality routine can use them and not have to rely on a C
30898 counterpart of the record anymore. This simplifies maintenance and
30899 relaxes the constraint of having Standard'Maximum_Alignment match
30901 Update comments, and add a section on the common header alignment issue.
30903 2004-06-25 Geert Bosch <bosch@gnat.com>
30905 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
30906 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
30908 2004-06-25 Robert Dewar <dewar@gnat.com>
30910 * gnat_rm.texi: Fix section on component clauses to indicate that the
30911 restriction on byte boundary placement still applies for bit packed
30913 Add comment on stack usage from Initialize_Scalars
30915 * gnat_ugn.texi: Add documentation for -gnatyLnnn
30917 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
30918 limiting nesting level.
30920 * usage.adb: Add line for -gnatyLnnn switch
30922 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
30923 sem_ch13.adb, exp_aggr.adb: Minor reformatting
30925 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
30926 type as well as on the subtype. This corrects a problem in freeze in
30927 setting alignments of atomic types.
30929 * sem_eval.ads: Minor comment typo fixed
30931 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
30932 level. Minor reformatting.
30934 * fname.adb (Is_Predefined_File_Name): Require a letter after the
30935 minus sign. This means that file names like a--b.adb will not be
30936 considered predefined.
30938 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
30939 record Test new flag and give diagnostic for bad component clause.
30940 (Freeze_Entity): Set alignment of array from component alignment in
30941 cases where this is safe to do.
30943 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
30946 * cstand.adb: (Create_Standard): Set alignment of String to 1
30948 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
30950 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
30951 code in the common constrained array cases.
30953 * a-storio.adb: Change implementation to avoid possible alignment
30954 problems on machines requiring strict alignment (data should be moved
30955 as type Buffer, not type Elmt).
30957 * checks.adb (Apply_Array_Size_Check): Improve these checks by
30958 killing the overflow checks which we really do not need (64-bits is
30961 2004-06-25 Vincent Celier <celier@gnat.com>
30963 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
30964 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
30965 inconditionally for the main project.
30966 (Recursive_Add_Archives.Add_Archive_Path): New procedure
30967 (Link_Executables.Check_Time_Stamps): New procedure
30968 (Link_Executables.Link_Foreign): New procedure
30969 Changes made to reduce nesting level of this package
30970 (Check): New procedure
30971 (Add_Switches): When not in quiet output, check that a switch is not
30972 the concatenation of several valid switches. If it is, issue a warning.
30973 (Build_Global_Archive): If the global archive is rebuilt, linking need
30975 (Compile_Sources): Rebuilding a library archive does not imply
30976 rebuilding the global archive.
30977 (Build_Global_Archive): New procedure
30978 (Build_Library): New name for Build_Archive, now only for library
30980 (Check_Archive_Builder): New procedure
30981 (Create_Global_Archive_Dependency_File): New procedure
30982 (Gprmake): Call Build_Global_Archive before linking
30983 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
30985 (Scan_Arg): Display the Copyright notice when -v is used
30987 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
30990 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
30992 Add new GNAT LIST qualifier /FILES=
30993 Added qualifier /DIRECTORY= to GNAT METRIC
30994 Added qualifier /FILES= to GNAT METRIC
30995 Added qualifier /FILES to GNAT PRETTY
30997 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
30998 to take into account both versions of the switch.
31000 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
31001 always be the last switch to the gcc driver. Disable switch storing so
31002 that switches automatically added by the gcc driver are not put in the
31005 * prj.adb (Project_Empty): Take into account changes in components of
31008 * prj.ads (Languages_Processed): New enumaration value All_Languages.
31010 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
31011 used. Split Boolean component Ada_Sources_Present in two Boolean
31012 components Ada_Sources_Present and Other_Sources_Present.
31015 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
31016 instead of Sources_Present.
31017 (Set_Ada_Paths.Add.Recursive_Add): Ditto
31019 * prj-nmsc.adb: Minor reformatting
31020 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
31021 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
31022 Check_Ada_Naming_Scheme.
31023 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
31026 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
31028 Make sure that all cycles where there is at least one "limited with"
31030 (Parse_Single_Project): New Boolean parameter In_Limited
31032 * prj-proc.adb (Recursive_Check): When Process_Languages is
31033 All_Languages, call first Prj.Nmsc.Ada_Check, then
31034 Prj.Nmsc.Other_Languages_Check.
31036 * prj-proc.adb (Process): Use Ada_Sources_Present or
31037 Other_Sources_Present (instead of Sources_Present) depending on
31040 * lang-specs.h: Keep -g and -m switches in the same order, and as the
31043 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
31044 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
31046 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
31049 * lib.ads (Disable_Switch_Storing): New procedure.
31051 * make.adb: Modifications to reduce nesting level of this package.
31052 (Check_Standard_Library): New procedure
31053 (Gnatmake.Check_Mains): New procedure
31054 (Gnatmake.Create_Binder_Mapping_File): New procedure
31055 (Compile_Sources.Compile): Add switch -gnatez as the last option
31056 (Display): Never display -gnatez
31058 * Makefile.generic:
31059 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
31061 * gnatcmd.adb (Check_Project): New function
31062 (Process_Link): New procedure to reduce nesting depth
31063 (Check_Files): New procedure to reduce the nesting depth.
31064 For GNAT METRIC, include the inherited sources in extending projects.
31065 (GNATCmd): When GNAT LS is invoked with a project file and no files,
31066 add the list of files from the sources of the project file. If this list
31067 is too long, put it in a temp text files and use switch -files=
31068 (Delete_Temp_Config_Files): Delete the temp text file that contains
31069 a list of source for gnatpp or gnatmetric, if one has been created.
31070 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
31071 in the project file is too large, create a temporary text file that
31072 list them and pass it to the tool with "-files=<temp text file>".
31073 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
31075 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
31076 generated file is in not in Ada.
31078 * gnatls.adb: Remove all parameters And_Save that are no longer used.
31079 (Scan_Ls_Arg): Add processing for -files=
31080 (Usage): Add line for -files=
31082 * g-os_lib.adb (On_Windows): New global constant Boolean flag
31083 (Normalize_Pathname): When on Windows and the path starts with a
31084 directory separator, make sure that the resulting path will start with
31087 * clean.adb (Clean_Archive): New procedure
31088 (Clean_Project): When there is non-Ada code, delete the global archive,
31089 the archive dependency files, the object files and their dependency
31090 files, if they exist.
31091 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
31093 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
31095 * sinfo.ads: Fix typo in comment.
31097 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
31098 the TSS for remote access-to-subprogram types, since these TSS are
31099 always present once the type has been analyzed.
31100 (RAS_E_Dereference): Same.
31102 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
31103 reference raises Bad_Attribute, mark the reference as analyzed so the
31104 node (and any children resulting from rewrites that could have occurred
31105 during the analysis that ultimately failed) is not analyzed again.
31107 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
31109 * exp_dist.adb: Minor comment fix.
31111 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
31112 type is an anonymous access type, no unchecked deallocation of the
31113 allocated object can occur. If the object is controlled, attach it with
31114 a count of 1. This allows attachment to the Global_Final_List, if
31115 no other relevant list is available.
31116 (Get_Allocator_Final_List): For an anonymous access type that is
31117 the type of a discriminant or record component, the corresponding
31118 finalisation list is the one of the scope of the type.
31120 2004-06-25 Ed Schonberg <schonberg@gnat.com>
31122 * sem_ch3.adb (Replace_Type): When computing the signature of an
31123 inherited subprogram, use the first subtype if the derived type
31124 declaration has no constraint.
31126 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
31127 before applying previous optimization. Minor code cleanup.
31129 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
31130 placed at the beginning of an unpacked record without explicit
31131 alignment, a slice of it will be aligned and does not need a copy when
31134 2004-06-25 Ed Schonberg <schonberg@gnat.com>
31138 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
31139 reference is written with expressions mimicking parameters.
31141 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
31144 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
31145 STEP 2a. The constraints of a full type declaration of a derived record
31146 type are checked for conformance with those declared in the
31147 corresponding private extension declaration. The message
31148 "not conformant with previous declaration" is emitted if an error is
31151 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
31153 * g-traceb.ads: Document the need for -E binder switch in the spec.
31155 * g-trasym.ads: Document the need for -E binder switch in the spec.
31157 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
31159 * sem_prag.adb: Add handling of pragma Detect_Blocking.
31161 * snames.h, snames.ads, snames.adb: Add entry for pragma
31164 * s-rident.ads: Change reference to pragma Detect_Blocking.
31166 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
31169 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
31170 to indicate whether pragma Detect_Blocking is active.
31172 * par-prag.adb: Add entry for pragma Detect_Blocking.
31174 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
31175 of not handling WITH.
31176 Note that this replaces the previous update which was incorrect.
31178 2004-06-25 Javier Miranda <miranda@gnat.com>
31180 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
31181 use-clauses to have a clean environment.
31183 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
31184 the installation of the use-clauses to stablish a clean environment in
31185 case of compilation of a separate unit; otherwise the call to
31186 use_one_package is protected by the barrier Applicable_Use.
31188 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
31189 the installation of the use-clauses to stablish a clean environment in
31190 case of compilation of a separate unit.
31191 (End_Use_Clauses): Minor comment cleanup.
31193 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
31195 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
31197 2004-06-23 Richard Henderson <rth@redhat.com>
31199 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
31201 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31203 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
31204 now bool instead of int.
31205 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
31206 * trans.c (gnu_switch_label_stack): New function.
31207 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
31208 elaboration of renamed entity returns.
31209 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
31210 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
31211 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
31212 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
31213 DECL_SIZE_UNIT and simplify variable-sized case.
31214 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
31215 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
31216 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
31217 (build_unit_elab): Disable for now.
31218 * utils.c (mark_visited): New function.
31219 (pushdecl): Walk tree to call it for global decl.
31220 (update_pointer_to): Update all variants of pointer and ref types.
31221 Add arg to COMPONENT_REF.
31222 (convert): Likewise.
31223 Move check for converting between variants lower down.
31224 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
31225 (build_allocator): Don't force type of MODIFY_EXPR.
31226 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
31227 put_var_into_stack.
31229 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31231 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
31232 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
31233 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
31235 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
31236 all callers changed.
31237 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
31238 the way that EXIT_STMT finds the loop label.
31239 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
31240 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
31241 (add_stmt): Use annotate_with_locus insted of setting directly.
31242 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
31243 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
31244 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
31245 (build_vms_descriptor): Add extra args to ARRAY_REF.
31246 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
31247 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
31249 (build_binary_op): Don't make explicit CONVERT_EXPR.
31250 Add extra rgs to ARRAY_REF.
31252 2004-06-14 Pascal Obry <obry@gnat.com>
31254 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
31255 Windows. Fix minor typo.
31257 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
31258 which is now supported on Windows. With this implementation using the
31259 Library Project feature is no different on Windows than on UNIX.
31261 2004-06-14 Vincent Celier <celier@gnat.com>
31263 * makegpr.adb (Compile_Sources): Nothing to do when there are no
31266 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
31268 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
31269 found, show the project name and the path of the previously parsed
31272 2004-06-14 Ed Schonberg <schonberg@gnat.com>
31274 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
31275 array, avoid copying the actual before the call.
31277 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
31279 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
31280 Instead, allocate memory on worst-case alignment assumptions, and then
31281 return an aligned address within the allocated zone.
31283 2004-06-14 Robert Dewar <dewar@gnat.com>
31285 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
31286 elab entities in predefined units in No_Run_Time_Mode.
31287 (Gen_Adainit_C): Same fix
31288 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
31289 units in No_Run_Time_Mode
31290 (Gen_Elab_Calls_C): Same fix
31292 * symbols-vms-alpha.adb: Minor reformatting
31294 * g-debpoo.ads: Minor reformatting
31296 * lib.adb (In_Same_Extended_Unit): Version working on node id's
31298 * lib.ads (In_Same_Extended_Unit): Version working on node id's
31300 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
31303 * make.adb: Minor reformatting
31305 * par-ch12.adb: Minor reformatting
31307 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
31309 * prj-strt.adb: Minor reformatting
31311 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
31314 * sem_attr.adb: Minor reformatting
31316 * sem_ch7.adb: Minor reformatting
31318 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
31319 for type in the same unit as the object declaration.
31321 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
31322 static string expressions and not just string literals.
31324 (Set_Warning): Reset restriction warning flag for restriction pragma
31325 Implement pragma Profile_Warnings
31326 Implement pragma Profile (Restricted)
31327 Give obolescent messages for old restrictions and pragmas
31329 * snames.h, snames.ads, snames.adb: Add new entry for pragma
31332 * s-rident.ads: Add declarations for restrictions required by profile
31333 Restricted and profile Ravenscar.
31335 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
31337 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
31338 configuration pragmas.
31340 2004-06-11 Vincent Celier <celier@gnat.com>
31342 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
31343 gnatsym, when symbol policy is Restricted.
31345 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
31346 gnatsym, when symbol policy is Restricted.
31348 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
31349 read the symbol file.
31350 (Finalize): Fail in symbol policy Restricted if a symbol in the original
31351 symbol file is not in the object files. Do not create a new symbol file
31352 when symbol policy is Restricted.
31354 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
31357 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
31359 (Usage): Line for new switch -R
31361 * make.adb (Initialize): When the platform is not VMS, add the
31362 directory where gnatmake is invoked in the front of the path, if
31363 gnatmake is invoked with directory information. Change the Scan_Args
31364 while loop to a for loop.
31365 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
31366 if Depth is equal or greater than the proposed depth, there is nothing
31368 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
31371 * prj.ads: Add new symbol policy Restricted.
31373 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
31374 with the new parameters Check_All_Labels and Case_Location.
31376 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
31377 (Library_Symbol_File needs to be defined).
31379 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
31380 and Case_Location If Check_All_Labels is True, check that all values of
31381 the string type are used, and output warning(s) if they are not.
31383 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
31386 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
31388 * gnat_ugn.texi: Update documentation about the library directory in
31391 * makegpr.adb (Display_Command): In verbose mode, also display the
31392 value of the CPATH env var, when the compiler is gcc.
31393 (Initialize): Change the Scan_Args while loop to a for loop
31394 (Compile_Individual_Sources): Change directory to object directory
31395 before compilations.
31397 * symbols.ads: New symbol policy Restricted.
31399 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
31401 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
31402 is now taken care of internally in the Exception_Propagation package
31403 and does not require clients assistance any more.
31405 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
31406 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
31407 functions. Helpers to maintain a predicate required in the handling of
31408 occurrence transfer between tasks.
31409 This is now handled internally and does not require clients assistance
31410 for the setup/propagate separation anymore.
31411 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
31412 allocation strategy, handle the Setup_And_Not_Propagated predicate and
31415 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
31416 raise_after_setup, now that everything is handled internally within the
31417 setup/propagation engine.
31419 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
31421 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
31422 Add additional conditions for the case of an actual being a simple
31423 name or literal. Improve inlining by preventing the generation
31424 of temporaries with a short lifetime (one use).
31426 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
31429 * einfo.ads: Minor comment updates for Has_Completion and
31430 E_Constant list of flags.
31432 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
31433 and constant redeclarations now set the Has_Completion flag of their
31434 defining identifiers.
31436 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
31437 Inspect_Deferred_Constant_Completion.
31438 Used to detect private deferred constants that have not been completed
31439 either by a constant redeclaration or pragma Import. Emits error message
31440 "constant declaration requires initialization expression".
31442 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
31443 completes a deferred constant.
31445 2004-06-11 Geert Bosch <bosch@gnat.com>
31447 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
31449 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
31450 calculating exponent for scaling denormal numbers.
31451 (Leading_Part): Properly raise Constraint_Error for zero or negative
31453 (Remainder): Properly raise Constraint_Error for zero divisor.
31455 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
31457 * sem_util.adb: Minor reformatting.
31459 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
31460 dereference when accessing the entry parameter record.
31461 (Check_Array_Type): Always check for possible implicit dereference.
31462 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31463 Abort if a pointer is still present (denoting that an implicit
31464 dereference was left in the tree by the front-end).
31466 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
31467 dereference when accessing the entry parameter record.
31468 (Check_Array_Type): Always check for possible implicit dereference.
31469 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31470 Abort if a pointer is still present (denoting that an implicit
31471 dereference was left in the tree by the front-end).
31473 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
31475 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
31476 message, like the compiler itself does. Easier to parse the output.
31478 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
31480 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
31481 be base names, and not includes directories.
31483 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
31485 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
31486 so that dependencies are properly taken into account by make.
31488 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
31491 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
31492 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
31494 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
31496 * Makefile.in (install-gnatlib): install target-specific run-time files.
31498 * Make-lang.in: Remove obsolete targets.
31500 2004-06-11 Ed Schonberg <schonberg@gnat.com>
31502 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
31503 specification, to catch misuses of program unit names.
31505 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
31506 superfluous conversions in an instance.
31508 2004-06-11 Ed Schonberg <schonberg@gnat.com>
31511 * sem_ch12.adb (Save_References): If operator node has been folded to
31512 enumeration literal, associated_node must be discarded.
31514 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
31516 * s-stchop-vxworks.adb: Add required pragma Convention to
31517 Task_Descriptor because it is updated by a C function.
31519 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
31522 * Makefile.in: Remove target specific SO_OPT on IRIX
31524 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31526 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
31527 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
31528 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
31529 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
31530 (STMT_STMT, USE_STMT): New statement codes.
31531 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
31532 * ada-tree.h: Reflect above changes.
31533 (struct tree_loop_id): Deleted.
31534 (union lang_tree_node, struct lang_decl, struct lang_type):
31535 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
31536 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
31537 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
31538 (IS_ADA_STMT): New macro.
31539 * decl.c (annotate_decl_with_node): New function.
31540 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
31541 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
31542 Call add_stmt_with_node to do needed assignments.
31543 Add call to update setjmp buffer directly, not via EXPR_STMT.
31544 (maybe_variable): Argment GNAT_NODE deleted.
31545 * gigi.h (maybe_variable): Likewise.
31546 (make_transform, add_stmt_with_node, set_block_for_group): New.
31547 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
31548 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
31549 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
31550 (set_lineno, set_lineno_from_sloc): Likewise.
31551 (record_code_position, insert_code_for): Likewise.
31552 (gnat_poplevel): Now returns void.
31553 (end_subprog_body): Now takes argument.
31554 * misc.c (cgraph.h, tree-inline.h): New includes.
31555 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
31556 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
31557 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
31558 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
31559 (gnat_parse_file): Don't set immediate_size_expand.
31560 Call cgraph functions.
31561 (gnat_expand_expr): Remove most cases.
31562 (record_code_position, insert_code_for): Remove from here.
31563 * trans.c (toplev.h, tree-gimple.h): Now included.
31564 (discard_file_names): Deleted.
31565 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
31566 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
31567 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
31568 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
31569 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
31570 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
31571 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
31572 (set_block_for_group, add_stmt_list): Likewise.
31573 (start_stmt_group): Renamed from start_block_stmt.
31574 (end_stmt_group): Likewise, from end_block_stmt.
31575 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
31576 (gigi): Don't set discard_file_names or call set_lineno.
31577 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
31578 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
31579 Numerous changes throughout to reflect new names and complete
31580 function-at-a-time implementation.
31581 (gnat_expand_stmt): Delete or comment out all cases.
31582 (process_inlined_subprograms): Use add_stmt.
31583 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
31584 call set_lineno; also remove unneeded block handling.
31585 (process_type): Remove unneeded block handling.
31586 (build_unit_elab): Remove calls to deleted functions.
31587 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
31588 (tree-dump.h): Likewise.
31589 (struct ada_binding_level): Add field jmpbuf_decl.
31590 (gnat_define_builtin, gnat_install_builtins): New.
31591 (gnat_gimplify_function, gnat_finalize): Likewise.
31592 (gnat_poplevel): No longer return BLOCK, set it instead.
31593 Remove code dealing with nested functions.
31594 (gnat_init_decl_processing): Also set size_type_node.
31595 Call gnat_install_builtins.
31596 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
31597 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
31598 Remove special-case for "main".
31599 (end_subprog_body): Add arg and rework for tree-ssa.
31600 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
31601 Add case for BOOLEAN_TYPE.
31602 * utils2.c (rtl.h): Now include.
31603 (build_call_raise): Test Debug_Flag_NN directly.
31604 (build_call_alloc_dealloc): Don't use local stack allocation for now.
31605 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
31606 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
31608 2004-06-07 Robert Dewar <dewar@gnat.com>
31610 * a-direct.ads, einfo.ads: Minor comment updates
31612 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
31613 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
31614 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
31615 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
31616 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
31618 * s-interr-sigaction.adb: Remove unreferenced variable
31619 (Attached_Interrupts). Minor reformatting.
31620 Avoid use of variable I (replace by J).
31622 * par-ch10.adb: Fix text of one error message
31624 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
31625 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
31626 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
31627 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
31628 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
31629 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
31630 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
31631 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
31632 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
31633 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
31634 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
31637 2004-06-07 Doug Rupp <rupp@gnat.com>
31639 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
31641 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
31643 * mlib-tgt-vms-ia64.adb: New file.
31645 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
31646 Add mlib-tgt-vms-ia64.adb
31647 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
31648 Move to alpha specific ifeq section.
31649 Add VMS specific versions of symbols.adb
31650 Renaming of 5q vms files.
31652 * 5qsystem.ads renamed to system-vms_64.ads.
31654 2004-06-07 Vincent Celier <celier@gnat.com>
31656 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
31657 explain that when a time of day corresponding to the non existing hour
31658 on the day switching to DST is specified, Split may return a different
31661 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
31664 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
31665 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
31667 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
31669 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
31670 the linking options.
31671 (Build_Library.Check_Libs): On VMS, if there is a dependency on
31672 g-trasym.ads, set Gtrasymobj_Needed to True.
31674 * prj-attr.adb: Add new package Metrics for gnatmetric
31676 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
31677 canonical case to take into account files with upper case characters on
31679 (Ada_Check): Load the reference symbol file name in the name buffer to
31680 check it, not the symbol file name.
31682 * snames.ads, snames.adb: Add standard name Metrics (name of project
31683 file package for gnatmetric).
31685 * vms_conv.ads: Add Metric to Comment_Type
31687 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
31689 * vms_data.ads: Add qualifiers for GNAT METRIC
31691 * makegpr.adb (Link_Executables): Take into account the switches
31692 specified in package Linker of the main project.
31694 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
31696 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
31697 the index of the last element is Units.Last, not Units.Table'Last
31698 (which is usually not a valid index within the actually allocated
31699 storage for the table).
31701 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
31702 determines whether to generate a call to a checked storage pool
31703 Dereference action.
31704 Generate such a call only for a dereference that either comes from
31705 source, or is the result of rewriting a dereference that comes from
31708 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
31710 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
31712 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
31714 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
31715 file level, elaborate the stride for inner dimensions in alignment
31718 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
31721 2004-06-07 Javier Miranda <miranda@gnat.com>
31723 * exp_ch6.adb: Correct wrong modification in previous patch
31725 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
31727 * g-trasym.ads: Corrected comment to properly reflect level of support
31730 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
31732 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
31733 includes case of a variable referenced on the left hand side of an
31734 assignment, therefore remove redundant code. Variables and prefixes of
31735 indexed or selected components are now marked as referenced on left
31736 hand side. Warnings are now properly emitted when variables or prefixes
31737 are assigned but not read.
31739 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
31740 left hand side referenced variables. Private access types do not
31741 produce the warning "variable ... is assigned but never read".
31742 Add also additional checks to left hand side referenced variables.
31743 Aliased, renamed objects and access types do not produce the warning
31744 "variable ... is assigned but never read" since other entities may read
31745 the memory location.
31747 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
31749 * Makefile.in: In the powerpc/vxworks-specific section, restore
31750 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
31753 2004-06-07 Ed Schonberg <schonberg@gnat.com>
31755 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
31756 predefined operators.
31757 Removes spurious type errors from g-trasym-vms.adb.
31759 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
31760 distinct from the operator appearing in the source, call appropriate
31761 routine to insert conversions when needed, and complete resolution of
31763 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
31764 interpretations for rewritten right operand.
31765 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
31766 the other operand is overloaded and the context is a type conversion.
31768 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31770 * ada-tree.def (BLOCK_STMT): Now has two operands.
31773 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
31775 * gigi.h: (gnat_poplevel): Now returns a tree.
31777 * trans.c (end_block_stmt): Add arg; all callers changed.
31778 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
31779 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
31780 (add_stmt): Set TREE_TYPE.
31781 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
31782 (gnat_expand_stmt, case BREAK_STMT): New case.
31784 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
31786 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
31788 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
31789 procedure Set_Stack_Size that is not needed.
31791 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
31793 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
31794 used for gnatpp input file and for the files upon which it depends
31796 2004-06-07 Ben Brosgol <brosgol@gnat.com>
31798 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
31800 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
31802 * gnatvsn.ads: Bump version numbers appropriately.
31803 Add new build type.
31805 2004-06-07 Pascal Obry <obry@gnat.com>
31807 * gnat_ugn.texi: Improve comments about imported names and link names
31808 on Windows. Add a note about the requirement to use -k gnatdll's option
31809 when working with a DLL which has stripped stdcall symbols (no @nn
31812 2004-05-27 Vincent Celier <celier@gnat.com>
31814 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
31815 COMMENTS_LAYOUT=UNTOUCHED
31817 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
31818 symbols-vms-alpha.adb
31820 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
31822 * sem.ads: Clarify documentation on checks suppression.
31824 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
31826 2004-05-27 Ed Schonberg <schonberg@gnat.com>
31828 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
31829 the case of multiple derivations.
31830 (Is_Object_Reference): For a selected component, verify that the prefix
31831 is itself an object and not a value.
31833 * sem_ch12.adb (Same_Instantiated_Constant): New name for
31834 Same_Instantiated_Entity.
31835 (Same_Instantiated_Variable): Subsidiary to
31836 Check_Formal_Package_Instance, to recognize actuals for in-out generic
31837 formals that are obtained from a previous formal package.
31838 (Instantiate_Subprogram_Body): Emit proper error when
31839 generating code and the proper body of a stub is missing.
31841 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
31842 has a universal interpretation, do the disambiguation here.
31844 * exp_ch4.adb (Expand_N_Type_Conversion,
31845 Expand_N_Unchecked_Type_Conversion): Special handling when target type
31846 is Address, to avoid typing anomalies when Address is a visible integer
31849 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
31850 to determine whether a subprogram should not be marked Pure, even when
31851 declared in a pure package.
31853 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
31855 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
31857 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
31858 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
31859 Update the documentation about the Ravenscar profile, following the
31860 definition found in AI-249.
31862 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
31863 setting the Profile (Ravenscar). This must be done in addition to
31864 setting the required restrictions.
31866 * rtsfind.ads: Add the set of operations defined in package
31869 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
31872 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
31874 lang-specs.h: Always require -c or -S and always redirect to /dev/null
31875 if -gnatc or -gnats is passed.
31877 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
31879 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
31880 a significant reference. Warnings are now properly emitted when a
31881 discriminated type is not referenced.
31883 * lib-xref.adb (Generate_Reference): A deferred constant completion,
31884 record representation clause or record type discriminant does not
31885 produce a reference to its corresponding entity. Warnings are now
31886 properly emitted when deferred constants and record types are not
31889 2004-05-27 Geert Bosch <bosch@gnat.com>
31891 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
31892 Fixes ACATS Annex G tests.
31894 2004-05-27 Robert Dewar <dewar@gnat.com>
31896 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
31899 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
31901 * s-interr.adb (Server_Task): Take into account case of early return
31902 from sigwait under e.g. linux.
31904 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
31906 * gnat_ugn.texi: Add description for the new gnatpp options:
31907 -rnb - replace the original source without creating its backup copy
31908 -c0 - do not format comments
31910 2004-05-24 Geert Bosch <bosch@gnat.com>
31912 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
31913 with 192 bits of precision, sufficient to reduce a double-extended
31914 arguments X with a maximum relative error of T'Machine_Epsilon, for X
31915 in -2.0**32 .. 2.0**32.
31916 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
31917 reduction by the processor, which only uses a 68-bit approximation of
31919 (Tan): Always reduce arguments and compute function either using
31920 the processor's fptan instruction, or by dividing sin and cos as needed.
31922 2004-05-24 Doug Rupp <rupp@gnat.com>
31924 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
31925 gcc error on 32/64 bit VMS.
31927 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
31929 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
31930 since this is what we get for stack overflows although not documented
31932 Document the issues which may require adjustments to our signal
31935 2004-05-24 Ed Schonberg <schonberg@gnat.com>
31937 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
31938 enclosing dynamic scope if the instantiation is within a generic unit.
31940 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
31942 * exp_dbug.ads: Fix typo.
31944 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
31945 Rename it to its proper name: system-linux-ia64.ads
31946 (stamp-gnatlib1): Remove extra target specific run time files when
31947 setting up the rts directory.
31949 2004-05-24 Javier Miranda <miranda@gnat.com>
31951 * einfo.ads, einfo.adb (Limited_Views): Removed.
31952 (Limited_View): New attribute that replaces the previous one. It is
31953 now a bona fide package with the limited-view list through the
31954 first_entity and first_private attributes.
31956 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
31957 limited-private-with clause.
31958 (Install_Limited_Withed_Unit): Install the private declarations of a
31959 limited-private-withed package. Update the installation of the shadow
31960 entities according to the new structure (see Build_Limited_Views)
31961 (Build_Limited_Views): Replace the previous implementation of the
31962 limited view by a package entity that references the first shadow
31963 entity plus the first shadow private entity (required for limited-
31964 private-with clause)
31965 (New_Internal_Shadow_Entity): Code cleanup.
31966 (Remove_Limited_With_Clause): Update the implementation to undo the
31967 new work carried out by Build_Limited_Views.
31968 (Build_Chain): Complete documentation.
31969 Replace Ada0Y by Ada 0Y in comments
31972 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
31973 types the level of accessibility depends on the enclosing type
31976 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
31977 entities. Complete documentation of previous change.
31979 2004-05-24 Robert Dewar <dewar@gnat.com>
31981 * namet.adb: Minor reformatting
31982 Avoid use of name I (replace by J)
31983 Minor code restructuring
31985 * sem_ch6.adb: Minor reformatting
31987 * lib-writ.adb: Do not set restriction as active if this is a
31988 Restriction_Warning case.
31990 * sem_prag.adb: Reset restriction warning flag if real pragma
31991 restriction encountered.
31993 * s-htable.adb: Minor reformatting
31994 Change rotate count to 3 in Hash (improves hash for small strings)
31996 * 5qsystem.ads: Add comments for type Address (no literals allowed).
31998 * gnat_ugn.texi: Add new section of documentation "Code Generation
31999 Control", which describes the use of -m switches.
32001 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
32003 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
32004 through the DECL_INITIAL for renamed variables.
32006 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
32008 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
32010 2004-05-19 Joel Brobecker <brobecker@gnat.com>
32012 * exp_dbug.ads: Correct comments concerning handling of overloading,
32013 since we no longer use $ anymore.
32015 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
32017 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
32018 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
32019 with illegal subunits.
32021 2004-05-19 Ed Schonberg <schonberg@gnat.com>
32023 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
32024 body with front-end inlining enabled, check whether an inline pragma
32025 appears immediately after the body and applies to it.
32027 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
32028 enabled and the pragma appears after the body of the subprogram.
32030 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32032 Part of function-at-a-time conversion
32034 * misc.c (adjust_decl_rtl): Deleted.
32035 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
32038 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
32039 (add_decl_stmt, add_stmt, block_has_vars): New functions.
32040 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
32042 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
32043 when making a decl.
32044 (gnat_to_gnu_entity): Likewise.
32045 Use add_stmt to update setjmp buffer.
32046 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
32048 No longer call adjust_decl_rtl.
32049 (DECL_INIT_BY_ASSIGN_P): New macro.
32050 (DECL_STMT_VAR): Likewise.
32052 * trans.c (gigi): Call start_block_stmt to make the outermost
32054 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
32055 Call start_block_stmt and end_block_stmt temporarily.
32056 Use gnat_expand_stmt instead of expand_expr_stmt.
32057 (add_decl_stmt): New function.
32058 (tree_transform): Call it.
32059 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
32060 (end_block_stmt): Set type and NULL_STMT.
32061 (gnat_expand_stmt): Make recursize call instead of calling
32063 (gnat_expand_stmt, case DECL_STMT): New case.
32064 (set_lineno_from_sloc): Do nothing if global.
32065 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
32066 (start_block_stmt, add_stmt, end_block_stmt): New functions.
32067 (build_block_stmt): Call them.
32068 (gnat_to_code): Don't expand NULL_STMT.
32069 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
32071 (tree_transform): Likewise.
32072 (tree_transform, case N_Null_Statement): Return NULL_STMT.
32073 (gnat_expand_stmt, case NULL_STMT): New case.
32074 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
32077 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
32080 * utils.c (create_var_decl): Do not call expand_decl or
32082 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
32083 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
32085 (struct e_stack): Add chain_next to GTY.
32086 (struct binding_level): Deleted.
32087 (struct ada_binding_level): New struct.
32088 (free_block_chain): New.
32089 (global_binding_level, clear_binding_level): Deleted.
32090 (global_bindings_p): Rework to see if no chain.
32091 (kept_level_p, set_block): Deleted.
32092 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
32093 new data structure and work directly on BLOCK node.
32094 (gnat_poplevel): Similarly.
32095 (get_decls): Look at BLOCK_VARS.
32096 (insert_block): Work directly on BLOCK node.
32097 (block_has_var): New function.
32098 (pushdecl): Rework for new binding structures.
32099 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
32101 (build_subprog_body): Likewise.
32102 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
32104 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
32106 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
32107 (DECL_STMT_VAR): Likewise.
32109 2004-05-17 Robert Dewar <dewar@gnat.com>
32111 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
32114 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
32115 of restriction synonyums by using
32116 Restrict.Process_Restriction_Synonyms.
32118 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
32120 * s-restri.ads (Tasking_Allowed): Correct missing comment
32122 * s-rident.ads: Add entries for restriction synonyms
32124 * ali.adb: Fix some problems with badly formatted ALI files that can
32125 result in infinite loops.
32127 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
32128 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
32129 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32130 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
32131 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
32132 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
32133 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
32134 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
32135 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
32136 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
32137 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
32138 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
32139 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
32140 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
32141 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
32142 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
32143 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
32144 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
32145 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
32146 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
32147 to Task_Id (minor cleanup).
32149 2004-05-17 Vincent Celier <celier@gnat.com>
32151 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
32152 directory separator.
32154 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
32155 project being extended, if Languages is not declared in extending
32158 2004-05-17 Javier Miranda <miranda@gnat.com>
32160 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
32161 limited view of a visible sibling.
32163 2004-05-14 Robert Dewar <dewar@gnat.com>
32165 * gnat_ugn.texi: Minor change to -gnatS documentation
32167 * sprint.adb: Remove some instances of Assert (False) and for this
32168 purpose replace them by output of a ??? string.
32170 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
32173 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
32174 flag processing. This was suppressing required dependencies in
32175 No_Run_Time mode and is not needed since the binder does not generate
32176 references for things in libgnat anyway.
32178 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
32181 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
32183 * gnat_ugn.texi: Document AIX-specific issue with initialization of
32186 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
32187 action for the case of an actual parameter in an init proc call.
32189 2004-05-14 Ed Schonberg <schonberg@gnat.com>
32191 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
32192 subtype, check visible entities in base type.
32194 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
32195 actions if the object is a renaming.
32197 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
32198 Check_Formal_Package_Instance, to determine more precisely when the
32199 formal and the actual denote the same entity.
32201 2004-05-14 Javier Miranda <miranda@gnat.com>
32203 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
32205 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
32206 corresponding to a private_with must be removed from visibility; it
32207 will be made visible later, just before we analyze the private part of
32209 (Check_Private_Child_Unit): Allow private_with clauses in public
32211 (Install_Siblings): Make visible the private entities of private-withed
32213 (Install_Withed_Unit): Do not install the private withed unit if we
32214 are compiling a package declaration and the Private_With_OK flag was
32215 not set by the caller. These declarations will be installed later,
32216 just before we analyze the private part of the package.
32218 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
32219 during the evaluation of the expression that initializes the object,
32220 decorate it with the expected type to avoid cascade errors.
32223 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
32224 subprogram we have to install the private_with clauses after its
32225 specification has been analyzed (as documented in AI-262.TXT).
32227 * sem_ch8.adb (Has_Private_With): New function. Determines if the
32228 current compilation unit has a private with on a given entity.
32229 (Find_Direct_Name): Detect the Beaujolais problem described in
32232 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
32233 provides the functionality of the function Is_Ancestor that was
32234 previously available in sem_ch10. It has been renamed to avoid
32237 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
32239 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32241 * utils.c (build_vms_descriptor): Use SImode pointers.
32243 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
32245 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
32247 2004-05-14 GNAT Script <nobody@gnat.com>
32249 * Make-lang.in: Makefile automatically updated
32251 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
32253 Renaming of target specific files for clarity
32255 * Makefile.in: Rename GNAT target specific files.
32257 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
32258 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
32259 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
32260 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
32261 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
32262 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
32263 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
32264 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
32265 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
32266 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
32267 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
32268 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
32269 51osinte.adb, 51osinte.ads, 51system.ads,
32270 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
32271 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
32272 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
32273 56tpopsp.adb, 57system.ads, 58system.ads,
32274 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
32275 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
32276 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
32277 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
32278 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
32279 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
32280 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
32281 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
32282 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
32283 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
32284 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
32285 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
32286 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
32287 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
32288 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
32289 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
32290 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
32291 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
32292 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
32293 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
32294 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
32295 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
32296 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
32297 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
32298 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
32299 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
32300 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
32301 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
32302 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
32303 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
32304 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
32305 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
32306 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
32307 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
32308 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
32309 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
32310 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
32311 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
32312 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
32313 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
32315 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
32316 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
32317 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
32318 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
32319 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
32320 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
32321 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
32322 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
32323 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
32324 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
32325 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
32326 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
32327 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
32328 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
32329 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
32330 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
32331 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
32332 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
32333 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
32334 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
32335 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
32336 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
32337 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
32338 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
32339 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
32340 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
32341 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
32342 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
32343 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
32344 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
32345 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
32346 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
32347 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
32348 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
32349 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
32350 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
32351 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
32352 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
32353 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
32354 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
32355 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
32356 s-osinte-vms.ads, s-osinte-vxworks.adb,
32357 s-osinte-vxworks.ads, s-osprim-mingw.adb,
32358 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
32359 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
32360 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
32361 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
32362 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
32363 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
32364 s-stchop-vxworks.adb, s-taprop-dummy.adb,
32365 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
32366 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
32367 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
32368 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
32369 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
32370 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
32371 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
32372 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
32373 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
32374 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
32375 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
32376 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
32377 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
32378 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
32379 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
32380 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
32381 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
32382 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
32383 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
32384 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
32385 system-irix-o32.ads, system-linux-x86_64.ads,
32386 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
32387 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
32388 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
32389 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
32390 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
32391 system-vxworks-mips.ads, system-vxworks-ppc.ads,
32392 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
32395 2004-05-13 Zack Weinberg <zack@codesourcery.com>
32397 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
32399 2004-05-13 Diego Novillo <dnovillo@redhat.com>
32401 Merge from tree-ssa-20020619-branch.
32403 * config-lang.in (boot_language, build_by_default): Set
32405 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
32406 (max_size): Add static chain op for call_expr.
32408 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
32411 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
32413 2004-05-11 Roger Sayle <roger@eyesopen.com>
32415 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
32418 2004-05-10 Doug Rupp <rupp@gnat.com>
32420 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
32423 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
32425 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
32427 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
32428 Fixes undefined symbols in IA64 gnatlib.
32430 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
32432 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
32433 Short_Address). This will be moved to system.auxdec.
32435 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
32437 * sem_util.adb: Replace test for presence of a node that is always
32438 present with a call to Discard_Node.
32440 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
32441 Analyze on the library unit node after generation of distribution stub
32442 constructs. The call was a no-op because Unit_Node has already been
32443 Analyzed, and the tree fragments for the distribution stubs are
32444 analyzed as they are inserted in Exp_Dist.
32445 Update comment regarding to distribution stubs to reflect that we
32446 do not generate stub in separate files anymore.
32448 * einfo.ads: Clarify the fact that a tagged private type has the
32449 E_Record_Type_With_Private Ekind.
32451 * erroutc.adb: Minor reformatting
32453 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
32454 values if line length is increased using -gnatyM (noticed during code
32457 * eval_fat.adb: Minor reformatting
32458 Put spaces around exponentiation operator
32460 2004-05-10 Ed Schonberg <schonberg@gnat.com>
32463 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
32464 has been rewritten as an explicit dereference, retrieve type of
32465 original node to check for possibly unconstrained record type.
32467 2004-05-10 Ed Schonberg <schonberg@gnat.com>
32469 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
32470 overriding, use the operation of the parent unconditionally.
32472 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
32473 operation when either operand is a literal, to avoid further
32476 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
32477 overridden by a previous explicit declaration, mark the previous entity
32480 * sem_disp.adb (Check_Dispatching_Operation): New predicate
32481 Is_Visibly_Controlled, to determine whether a declaration of a
32482 primitive control operation for a derived type overrides an inherited
32483 one. Add warning if the explicit declaration does not override.
32485 2004-05-10 Vincent Celier <celier@gnat.com>
32487 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
32488 some cases when the sources are no longer present.
32490 * make.adb (Collect_Arguments): Fail if an external source, not part
32491 of any project need to be compiled, when switch -x has not been
32494 * makeusg.adb: Document new switch -x
32496 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
32497 defaulted to False.
32499 * switch-m.adb (Scan_Make_Switches): New switch -x
32501 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
32502 gnatmake switch -x.
32504 * gnat_ugn.texi: Document new gnatmake switch -x
32506 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
32508 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
32510 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
32511 (process_attributes): Likewise.
32513 2004-05-10 Joel Brobecker <brobecker@gnat.com>
32515 * s-inmaop.ads: Fix spelling mistake in one of the comments.
32517 2004-05-10 Robert Dewar <dewar@gnat.com>
32519 * gnat_ugn.texi: Document that for config pragma files, the maximum
32520 line length is always 32767.
32522 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
32523 literals is now allowed.
32525 * gnat-style.texi: Remove statement about splitting long lines before
32526 an operator rather than after, since we do not follow this rule at all.
32527 Clarify rule (really lack of rule) for spaces around exponentiation
32529 * sem_elim.adb: Allow concatenation of string literals as well as a
32530 single string literal for pragma arguments.
32532 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
32534 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
32535 written for append case.
32537 * frontend.adb: Changes to avoid checking max line length in config
32540 * g-os_lib.ads: Minor reformatting
32542 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
32543 wrong in any case. Instead use standard value. Noticed during code
32546 * opt.ads (Max_Line_Length): New field, used to implement removal of
32547 limitation on length of lines when scanning config pragma files.
32549 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
32550 makeutl.ads, makeutl.adb: Minor reformatting
32552 * scn.adb: Do not check line length while scanning config pragma files
32553 Do not check line length while scanning out license information
32555 * scng.adb: Changes to avoid line length checks while parsing config
32558 2004-05-10 GNAT Script <nobody@gnat.com>
32560 * Make-lang.in: Makefile automatically updated
32562 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
32564 * osint.adb (Find_Program_Name): Fix handling of VMS version
32567 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
32569 * g-os_lib.ads (Invalid_Time): New constant
32571 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
32572 return OS_Time instead of time_t to match what is imported by Ada.
32573 Now return -1 if the file doesn't exist, instead of a random value
32575 2004-05-05 Robert Dewar <dewar@gnat.com>
32577 * usage.adb: Add line for -gnatR?s switch
32579 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
32581 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
32582 and for Match (Data_First, Data_last)
32584 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
32585 written when we are dealing with multi-unit files.
32587 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
32589 * Makefile.in: Remove unused targets and variables.
32591 2004-05-05 Vincent Celier <celier@gnat.com>
32593 * switch-m.adb: New gnatmake switch -eI
32595 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
32596 of new gnatmake switch -eInnn.
32598 * makegpr.adb: Take into account new parameters Index and Src_Index in
32601 * clean.adb: Implement support for multi-unit sources, including new
32604 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
32607 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
32608 (Extract_From_Q): New out parameter Index
32609 (Mark, Is_Marked): Subprograms moved to Makeutl
32610 (Switches_Of): New parameter Source_Index
32611 (Add_Switch): New parameter Index
32612 (Check): New parameter Source_Index
32613 (Collect_Arguments): New parameter Source_Index
32614 (Collect_Arguments_And_Compile): New parameter Source_Index
32615 (Compile): New parameter Source_Index
32616 Put subprograms in alphabetical order
32617 Add support for multi-source sources, including in project files.
32619 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
32620 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
32623 * makeusg.adb: New gnatmake switch -eInnn
32625 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
32628 * opt.ads (Main_Index): New variable, defaulted to 0.
32630 * osint.ads, osinte.adb (Add_File): New parameter Index
32631 (Current_Source_Index): New function
32633 * prj.adb: Take into account new components Index and Src_Index
32635 * prj.ads (String_Element): New component Index
32636 (Variable_Value): New component Index
32637 (Array_Element): New component Src_Index
32639 * prj-attr.adb: Indicate that optional index may be specified for
32640 attributes Main, Executable, Spec, Body and some of Switches.
32642 * prj-attr.ads (Attribute_Kind): New values for optional indexes
32643 (Attribute_Record): New component Optional_Index
32645 * prj-com.ads (File_Name_Data): New component Index
32647 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
32649 * prj-env.adb (Put): Output optional index
32651 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
32652 attributes Spec and Body.
32654 * prj-nmsc.adb: Process optional indexes
32656 * prj-pp.adb: Ouput "at" for optional indexes
32658 * prj-proc.adb: Take into account optional indexes
32660 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
32661 Optional_Index. For string literal,
32662 process optional index when Optional_Index is True.
32663 (Parse_Expresion): New Boolean parameter Optional_Index
32665 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
32666 (Set_Source_Index_Of): New procedure
32668 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
32671 * prj-util.ads (Executable_Of): New parameter Index
32672 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
32673 New parameter Src_Index, defaulted to 0.
32675 2004-05-05 Ed Schonberg <schonberg@gnat.com>
32678 * sem_ch3.adb (Access_Definition): If this is an access parameter
32679 whose designated type is imported through a limited_with clause, do
32680 not add the enclosing subprogram to the list of private dependents of
32683 2004-05-05 Ed Schonberg <schonberg@gnat.com>
32686 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
32687 a limited_with clause, and the other is its non-limited view.
32689 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
32691 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
32693 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
32694 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
32695 Stand.Boolean_Literals to produce references to entities
32696 Standard_False and Standard_True from compile-time computed boolean
32699 * stand.ads (Boolean_Literals): New variable, provides the entity
32700 values for False and True, for use by the expander.
32702 2004-05-05 Doug Rupp <rupp@gnat.com>
32704 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
32705 5vinmaop.adb: Unchecked convert Short_Address vice Address
32707 * adaint.c, raise.c: Caste CRTL function return value
32708 to avoid gcc error on 32/64 bit IVMS.
32710 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
32713 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
32715 * 5qsystem.ads (Address): Declare as Long_Integer
32716 (Short_Address): Declare as 32 bit subtype of Address
32717 Declare abstract address operations to avoid gratuitous ambiguities.
32719 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
32721 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
32722 instead of the old Boolean_Entry_Barriers.
32723 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
32725 2004-05-05 GNAT Script <nobody@gnat.com>
32727 * Make-lang.in: Makefile automatically updated
32729 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
32731 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
32733 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
32736 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
32737 alone. Replacing object references by literals is inappropriate in a
32738 so low level context.
32740 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
32742 * a-exexpr.adb: Add comments
32744 2004-05-03 Joel Brobecker <brobecker@gnat.com>
32746 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
32747 declare the Ancestor_Tags array in Type_Specific_Data with a small size
32748 without risking a bounds check error when accessing one of its
32750 (Type_Specific_Data): Define Ancestor_Tags as a small array.
32751 This prevents us from hitting a limitation during the debug info
32752 generation when using stabs.
32754 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
32756 This prevents us from hitting a limitation during the debug info
32757 generation when using stabs.
32759 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
32761 lang-specs.h: Remove -gnatz* from specs.
32763 2004-05-03 Vincent Celier <celier@gnat.com>
32765 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
32767 * Make-lang.in, Makefile.in: Add gprmake
32769 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
32771 * sem_aggr.adb: Fix typo in comment.
32773 2004-05-03 Robert Dewar <dewar@gnat.com>
32775 * make.adb: Minor reformatting
32777 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
32779 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
32780 so that it works when address is not a private type.
32782 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
32783 properly with rewritten unchecked conversions. This prevents
32784 order-of-elaboration issues that can otherwise arise.
32785 (Minimum_Size): Don't check size of access types under VMS
32787 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
32788 interpretations of integer literals as type System.Address.
32790 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
32791 (Is_Descendent_Of): New function
32793 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
32795 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32796 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
32797 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
32799 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
32800 of the old Max_Entry_Queue_Depth.
32802 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32803 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
32804 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
32806 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
32807 New entry for proper handling of Max_Entry_Queue_Depth.
32808 New entry for proper handling of No_Dynamic_Interrupts.
32810 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
32811 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32812 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
32813 the GNAT specific restriction Max_Entry_Queue_Depth.
32814 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
32815 the GNAT specific restriction No_Dynamic_Interrupts.
32817 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
32818 instead of the old Boolean_Entry_Barriers.
32819 Use the new restriction No_Dynamic_Attachment instead of the old
32820 No_Dynamic_Interrupts.
32822 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
32823 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32825 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
32826 of the old Max_Entry_Queue_Depth.
32828 2004-05-03 GNAT Script <nobody@gnat.com>
32830 * Make-lang.in: Makefile automatically updated
32832 2004-04-29 Ed Schonberg <schonberg@gnat.com>
32834 * checks.adb (Enable_Range_Check): If the prefix of an index component
32835 is an access to an unconstrained array, perform check unconditionally.
32837 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32839 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
32842 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
32844 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
32845 alternate stack setting. There was no support for the tasking cases
32846 and the changes eventually caused a number of side-effect failures in
32847 the non-tasking case too.
32849 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
32851 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
32854 2004-04-29 Vincent Celier <celier@gnat.com>
32856 * make.adb (Gnatmake): Increase max size of argument array for
32857 gnatbind for the potential addition of -F.
32858 If there are Stand-Alone Library projects, invoke gnatbind with -F to
32859 be sure that elaboration flags will be checked.
32861 * switch-c.adb: Correct call to Scan_Pos for -gnateI
32863 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
32865 * sem_warn.adb (Check_References): Move '<access-variable> may be
32866 null' warning out of under Warn_On_No_Value_Assigned.
32868 2004-04-29 Ed Falis <falis@gnat.com>
32870 * gnat_ugn.texi: Fixed texi error
32872 2004-04-29 Robert Dewar <dewar@gnat.com>
32874 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
32875 abstract operations if they come from predefined files.
32877 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
32880 * s-addope.adb: Correct obvious error in mod function
32882 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
32884 * Makefile.in: Add target pairs for powerpc darwin*
32887 * a-intnam-darwin.ads, s-osinte-darwin.adb,
32888 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
32890 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
32892 * Makefile.in: Add target macro definitions for s390*-linux*.
32893 * system-linux-s390.ads: New file.
32894 * system-linux-s390x.ads: New file.
32896 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
32898 * gnat_ugn.texi: Correct argument to @setfilename.
32900 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
32902 * a-exexpr.adb (Unwind_Word): New data type.
32903 (Unwind_Exception): Use it as type of Private1 and Private2.
32905 * raise.c (db_action_for): Fix debug printf.
32907 2004-04-27 Ed Schonberg <schonberg@gnat.com>
32909 * a-wtmoio.ads: Formal type must be a modular type, not a signed
32912 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32914 * decl.c (gnat_to_gnu_entity, case object): Call
32915 __builtin_update_setjmp_buf.
32917 * gigi.h (update_setjmp_buf): Deleted.
32918 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
32920 * misc.c: (update_setjmp_buf): Deleted.
32922 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
32923 around block of RTL.
32925 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
32927 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
32929 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
32930 subprogram for which no pragma All_Calls_Remote applies, store the
32931 address of the real subprogram in the underlying record type, so local
32932 dereferences do not go through the PCS.
32934 2004-04-26 Robert Dewar <dewar@gnat.com>
32936 * i-c.ads: Add some type qualifications to avoid ambiguities when
32937 compiling with s-auxdec.ads and a non-private address type.
32939 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
32941 * Makefile.rtl: Fix error in previous check-in:
32942 Add s-addope.o to non tasking object list (rather than tasking object
32945 2004-04-26 Javier Miranda <miranda@gnat.com>
32947 * sem_aggr.adb: Fix typo in comments
32948 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
32949 Required to check the null-exclusion attribute.
32951 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
32952 case of anonymous access types in record and array components. For a
32953 component definition the level is the same of the enclosing composite
32956 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
32957 that are anonymous access types the level of accessibility depends on
32958 the enclosing type declaration. In order to have this information, set
32959 the scope of the anonymous access type to the enclosing record type
32961 (Array_Type_Declaration): In case of components that are anonymous
32962 access types the level of accessibility depends on the enclosing type
32963 declaration. In order to have this information, set the scope of the
32964 anonymous access type to the enclosing array type declaration.
32966 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
32969 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
32970 renaming of anonymous access-to-constant types allowed if and only if
32971 the renamed object is access-to-constant.
32973 * sem_util.adb (Type_Access_Level): In case of anonymous access types
32974 that are component_definition or discriminants of a nonlimited type,
32975 the level is the same as that of the enclosing component type.
32977 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
32979 * sem_elim.adb: Some minor code reorganization from code reading. Fix
32980 misprint in the function name (File_Name_Match).
32982 2004-04-23 Laurent Guerby <laurent@guerby.net>
32984 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
32987 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32989 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
32991 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
32993 * adaint.c (__gnat_try_lock): No longer requires that the parent
32994 directory be writable, the directory itself is enough.
32995 (gnat_is_absolute_path): Change profile, so that the call from
32996 GNAT.OS_Lib can be made more efficient.
32998 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
32999 from GNAT.OS_Lib can be made more efficient.
33001 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
33002 one copy of the file name. Found by code reading.
33004 2004-04-23 Vincent Celier <celier@gnat.com>
33006 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
33007 Correct documentation on gnatmake switches transmitted to the compiler
33009 * ali.ads: Minor comment fix
33011 2004-04-23 Javier Miranda <miranda@gnat.com>
33013 * sem_ch6.adb: (Confirming Types): Code cleanup
33015 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
33016 subprogram types: E_Anonymous_Access_Subprogram_Type and
33017 E_Anonymous_Access_Protected_Subprogram_Type.
33019 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
33021 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
33022 whether a pragma All_Calls_Remote applies to the subprogram on which
33024 No functional change is introduced by this revision; the new parameter
33025 will be used to allow calls to local RCI subprograms to be optimized
33026 to not use the PCS in the case where no pragma All_Calls_Remote applies,
33027 as is already done in the PolyORB implementation of the DSA.
33029 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
33030 whether a pragma All_Calls_Remote applies to the subprogram on which
33032 No functional change is introduced by this revision; the new parameter
33033 will be used to allow calls to local RCI subprograms to be optimized
33034 to not use the PCS in the case where no pragma All_Calls_Remote applies,
33035 as is already done in the PolyORB implementation of the DSA.
33037 2004-04-23 Robert Dewar <dewar@gnat.com>
33039 * Makefile.rtl: Add entry for s-addope.o in run time library list
33040 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
33041 * s-addope.ads, s-addope.adb: New files.
33043 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
33044 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
33045 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
33046 System.Address to be non-private and signed.
33048 * sem_elim.adb: Minor reformatting (fairly extensive)
33049 Some minor code reorganization from code reading
33050 Add a couple of ??? comments
33052 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33054 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
33055 (tree_transform, case N_If_Statement): Remove non-determinism.
33057 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
33059 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
33061 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
33062 Eliminate' section.
33064 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
33065 no longer used as a parameter name for Eliminate pragma).
33067 2004-04-22 Laurent Guerby <laurent@guerby.net>
33069 PR optimization/14984
33070 PR optimization/14985
33071 * trans.c (gigi): Fix non determinism leading to bootstrap
33072 comparison failures.
33074 2004-04-21 Pascal Obry <obry@gnat.com>
33076 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
33077 passed to spawnvp() to properly handle program pathname with spaces on
33080 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
33082 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
33083 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
33084 unlocked in case of exceptions.
33086 2004-04-21 Joel Brobecker <brobecker@gnat.com>
33088 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
33089 This function does not exist anymore.
33091 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
33093 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
33095 * link.c: Move variables to the __gnat name space.
33097 * Makefile.in: list link.o explicitly when needed.
33099 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
33101 2004-04-21 Javier Miranda <miranda@gnat.com>
33103 * einfo.adb (Original_Access_Type): New subprogram
33104 (Set_Original_Access_Type): New subprogram
33105 (Write_Field21_Name): Write the name of the new field
33107 * einfo.ads (Original_Access_Type): New field present in access to
33109 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
33110 E_Anonymous_Access_Protected_Subprogram_Type.
33112 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
33115 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
33116 to anonymous access to subprogram types.
33118 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
33119 to subprogram types.
33121 * sem_ch3.adb (Access_Definition): Complete decoration of entities
33122 corresponding to anonymous access to subprogram types.
33123 (Analyze_Component_Declaration): Add new actual to the call to
33124 subprogram replace_anonymous_access_to_protected_subprogram.
33125 (Array_Type_Declaration): Add new actual to the call to subprogram
33126 replace_anonymous_access_to_protected_subprogram.
33127 (Process_Discriminants): Add new actual to the call to subprogram
33128 replace_anonymous_access_to_protected_subprogram.
33129 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
33131 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33134 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
33135 access to subprogram types.
33137 * sem_util.adb (Has_Declarations): Addition of package_specification
33140 2004-04-21 Ed Schonberg <schonberg@gnat.com>
33142 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
33143 inlined flags to renamed entity only if in current unit.
33145 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
33147 * s-parint.ads: Add DSA implementation marker.
33149 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
33150 value of System.Partition_Interface.DSA_Implementation to determine
33151 what version of the distributed systems annex is available (no
33152 implementation, GLADE, or PolyORB).
33154 2004-04-21 Joel Brobecker <brobecker@gnat.com>
33156 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
33158 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33160 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
33161 with new type if alias sets differ.
33162 Fixes ACATS c41103b.
33164 2004-04-21 Vincent Celier <celier@gnat.com>
33166 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
33167 Add array Lang_Args for the language specific compiling argument
33170 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
33172 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
33174 * gnat_rm.texi: Update the descripton of the Eliminate pragma
33175 according to the recent changes in the format of the parameters of the
33176 pragma (replacing Homonym_Number with Source_Location).
33178 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
33180 * 5isystem.ads: Removed, unused.
33182 * gnat_rm.texi: Redo 1.13 change.
33184 2004-04-19 Robert Dewar <dewar@gnat.com>
33186 * s-stoele.ads: Clean up definition of Storage_Offset (the new
33187 definition is cleaner, avoids the kludge of explicit Standard operator
33188 references, and also is consistent with a visible System.Address with
33189 no visible operations.
33191 * s-geveop.adb: Add declarations to avoid assumption of visible
33192 operations on type System.Address (since these might not be available
33193 if Address is a non-private type for which the operations
33194 are made abstract).
33196 * sem_eval.adb: Minor reformatting
33198 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
33199 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
33200 reformatting (new function spec format).
33202 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
33203 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
33204 s-caun64.adb: Add declarations to avoid assumption of visible
33205 operations on type System.Address (since these might not be available
33206 if Address is a non-private type for which the operations are made
33209 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
33211 * exp_intr.adb: Minor comment update
33213 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
33215 * 5omastop.adb: Add declarations to avoid assumption of visible
33216 operations on type System.Address (since these might not be available
33217 if Address is a non-private type for which the operations
33218 are made abstract).
33220 2004-04-19 Vincent Celier <celier@gnat.com>
33222 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
33224 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
33227 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
33229 Call Check with Process_Languages.
33230 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
33231 with Process_Languages.
33232 (Recursive_Check): New Boolean parameter Process_Languages. Call
33233 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
33236 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
33238 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
33239 parameter Ada_Main, defaulted to True.
33240 Check for Ada specific characteristics only when Ada_Main is True.
33242 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
33244 * prj.adb: (Project_Empty): Add new Project_Data components.
33246 * prj.ads: New types and tables for non Ada languages.
33247 (Project_Data): New components Languages, Impl_Suffixes,
33248 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
33249 Include_Path, Include_Data_Set.
33251 * prj-env.ads, prj-env.adb: Minor reformatting
33253 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
33254 Put subprograms in alphabetical order
33256 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
33257 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
33260 * mlib-prj.adb: Back out modification in last version, as they are
33262 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
33264 * make.adb: (Mains): Moved to package Makeutl
33265 (Linker_Opts): Moved to package Makeutl
33266 (Is_External_Assignment): Moved to package Makeutl
33267 (Test_If_Relative_Path): Moved to package Makeutl
33268 (Gnatmake): Move sorting of linker options to function
33269 Makeutl.Linker_Options_Switches.
33271 * makeutl.ads, makeutl.adb: New files.
33273 * Makefile.in: Add makeutl.o to the object files for gnatmake
33275 * makeusg.adb: Add line for new switch -eL.
33277 * gnatls.adb (Image): New function.
33278 (Output_Unit): If in verbose mode, output the list of restrictions
33279 specified by pragmas Restrictions.
33281 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
33284 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
33285 needed, to put it in the range 1970 (included) - 2026 (excluded).
33286 (Time_Of): Do not shift Unix_Min_Year (1970).
33287 Shift the date by multiple of 56 years, if needed, to put it in the
33288 range 1970 (included) - 2026 (excluded).
33290 * adaint.h, adaint.c (__gnat_set_executable): New function.
33292 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33294 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
33295 and pop GC context.
33296 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
33297 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
33298 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
33299 (tree_transform, case N_Code_Statement): Likewise.
33300 (gnat_expand_stmt, case LABEL_STMT): Don't look at
33301 LABEL_STMT_FIRST_IN_EH.
33302 (gnat_expand_stmt, case ASM_STMT): New case.
33304 * utils2.c (build_unary_op): Properly set TREE_READONLY of
33305 UNCONSTRAINED_ARRAY_REF.
33307 * utils.c (poplevel): Temporarily push/pop GC context around inline
33308 function expansion.
33310 * decl.c (maybe_variable): Properly set TREE_READONLY of
33311 UNCONSTRAINED_ARRAY_REF.
33312 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
33314 * ada-tree.def: (ASM_STMT): New.
33316 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
33317 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
33318 ASM_STMT_INPUT): New.
33319 (ASM_STMT_CLOBBER): Likewise.
33321 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
33323 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
33324 general rcheck mechanism to raise Program_Error for E.4(18), instead
33325 of a custom raiser in System.Partition_Interface.
33326 Part of general cleanup work before PolyORB integration.
33328 * snames.ads, snames.adb: Add new runtime library entities and names
33331 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33333 (Build_Subprogram_Id): New subprogram provided by exp_dist
33334 Code reorganisation in preparation for PolyORB integration.
33336 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33338 (Build_Subprogram_Id): New subprogram provided by exp_dist
33340 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
33341 actual parameter types for call to dereference of an
33342 access-to-subprogram type.
33344 * rtsfind.ads: Add new runtime library entities and names for PolyORB
33347 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
33348 instead, which has the same behaviour here since we never pass it a
33351 * link.c (run_path_option, Solaris case): Use -Wl, as for other
33354 * Makefile.in: adjust object file lists for gnatlink and gnatmake
33355 to account for new dependency upon Interfaces.C.Strings + link.o
33356 For x86 FreeBSD, use 86numaux.
33358 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
33359 from Mlib.Tgt to Mlib.
33361 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
33362 target-independent.
33364 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
33365 target-specific versions of this subprogram, now implemented as a
33366 target-independent function in Mlib.
33368 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
33369 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
33370 (Linker_Library_Path_Option): Remove target-specific versions of this
33371 subprogram, now implemented as a target-independent function in Mlib.
33373 * atree.adb: (Allocate_Initialize_Node): New subprogram.
33374 Factors out node table slots allocation.
33375 (Fix_Parents): New subprogram.
33376 Encapsulate the pattern of fixing up parent pointers for syntactic
33377 children of a rewritten node.
33378 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
33379 (Rewrite): Use New_Copy when creating saved copy of original node.
33380 (Replace): Use Copy_Node to copy nodes.
33382 2004-04-19 Javier Miranda <miranda@gnat.com>
33384 * sprint.adb (Sprint_Node_Actual): Give support to the new
33385 Access_To_Subprogram node available in Access_Definition nodes. In
33386 addition, give support to the AI-231 node fields: null-exclusion,
33387 all-present, constant-present.
33389 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
33391 * sinfo.ads, sinfo.adb:
33392 New field Access_To_Subprogram_Definition in Access_Definition nodes
33394 * sem_ch6.adb (Process_Formals): Move here the code that creates and
33395 decorates internal subtype declaration corresponding to the
33396 null-excluding formal. This code was previously in Set_Actual_Subtypes.
33397 In addition, carry out some code cleanup on this code. In case of
33398 access to protected subprogram call
33399 Replace_Anonymous_Access_To_Protected_Subprogram.
33400 (Set_Actual_Subtypes): Code cleanup.
33402 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
33403 Find_Type in case of anonymous access renamings. Add warning in case of
33404 null-excluding attribute used in anonymous access renaming.
33406 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33409 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
33411 (Access_Definition): In case of anonymous access to subprograms call
33412 the corresponding semantic routine to decorate the node.
33413 (Access_Subprogram_Declaration): Addition of some comments indicating
33414 some code that probably should be added here. Detected by comparison
33415 with the access_definition subprogram.
33416 (Analyze_Component_Declaration): In case of access to protected
33417 subprogram call Replace_Anonymous_Access_To_Protected.
33418 (Array_Type_Declaration): In case of access to protected subprogram call
33419 Replace_Anonymous_Access_To_Protected_Subprogram.
33420 (Process_Discriminants): In case of access to protected subprogram call
33421 Replace_Anonymous_Access_To_Protected_Subprogram.
33423 * par.adb (P_Access_Definition): New formal that indicates if the
33424 null-exclusion part was present.
33425 (P_Access_Type_Definition): New formal that indicates if the caller has
33426 already parsed the null-excluding part.
33428 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
33429 (P_Identifier_Declarations): Code cleanup and give support to renamings
33430 of anonymous access to subprogram types.
33431 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
33432 (P_Array_Type_Definition): Give support to AI-254.
33433 (P_Component_Items): Give support to AI-254.
33434 (P_Access_Definition): New formal that indicates if the header was
33435 already parsed by the caller.
33436 (P_Access_Type_Definition): New formal that indicates if the caller has
33437 already parsed the null-excluding part.
33439 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
33440 call to P_Access_Definition.
33442 2004-04-19 Geert Bosch <bosch@gnat.com>
33444 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
33445 the delicate semantics of floating-point to integer conversion.
33446 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
33448 * eval_fat.adb (Machine_Mantissa): Moved to spec.
33449 (Machine_Radix): New function.
33451 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
33453 (Machine_Radix): New function also for use in conversion checks.
33455 2004-04-19 Ed Schonberg <schonberg@gnat.com>
33457 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
33459 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
33460 to decorate the access-to-protected subprogram and the equivalent type.
33462 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
33463 to anonymous access to subprogram types.
33465 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
33466 constant-folding, for legality checks in contexts that require an RM
33469 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
33470 temporary but stack checking is not enabled, increment serial number
33471 to so that symbol generation is consistent with and without stack
33474 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
33475 independent on whether stack checking is enabled, caller must check
33476 the corresponding flag.
33478 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
33480 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
33481 parent if it has discriminants.
33482 (Build_Derived_Private_Type): Constructed full view does
33483 not come from source.
33484 (Process_Discriminants): Default discriminants on a tagged type are
33485 legal if this is the internal completion of a private untagged
33488 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
33489 no constraint checks, because it corresponds to an existing object.
33491 * sem_prag.adb (Process_Convention): Pragma applies
33492 only to subprograms in the same declarative part, i.e. the same unit,
33493 not the same scope.
33495 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
33496 ignore type mismatch on a numeric conversion if expression comes from
33499 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
33501 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
33502 Homonym_Number parameter, add processing for Source_Location parameter
33504 (Check_Eliminated): Remove the check for homonym numbers, add the check
33505 for source location traces.
33507 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
33508 with Arg_Source_Location corresponding to the changes in the format of
33511 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
33512 Eliminate pragma corresponding to the changes in the format of the
33513 pragma: Homonym_Number is replaced with Source_Location, two ways of
33514 distinguishing homonyms are mutially-exclusive.
33516 2004-04-19 Joel Brobecker <brobecker@gnat.com>
33518 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
33520 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
33521 No_Dollar_In_Label, no longer necessary, as it is always True.
33522 (Strip_Suffixes): Likewise.
33524 2004-04-19 Gary Dismukes <dismukes@gnat.com>
33526 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
33527 modulus for compatibility with size clause on targets with 16-bit
33530 * layout.adb (Discrimify): In the case of private types, set Vtyp to
33531 full type to fix type mismatches on calls to size functions for
33532 discriminant-dependent array components.
33534 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
33536 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
33539 2004-04-19 Pascal Obry <obry@gnat.com>
33541 * mdll-utl.adb (Locate): New version is idempotent.
33543 2004-04-17 Laurent Guerby <laurent@guerby.net>
33545 PR ada/14988 (partial)
33546 * impunit.adb: Fix typo.
33548 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
33550 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
33551 and install-rts-cert targets. Remove all gnatlib and gnattools
33552 targets and all other rts-* targets (moved to libada). Remove (now)
33553 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
33554 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
33556 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33558 * trans.c (tree_transform): Shortcut returning error_mark_node for
33559 statements in annotate_only_mode.
33560 (tree_transform, case N_Label, case N_Return_Statement,
33561 N_Goto_Statement): Make statement tree instead of generating code.
33562 (tree_transform, case N_Assignment_Statement): No longer check
33563 type_annotate_only.
33564 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
33566 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
33568 (gnat_to_gnu): Collect any RTL generated and deal with it.
33569 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
33570 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
33571 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
33573 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
33575 * ada-tree.def (EXPR_STMT): Fix typo in name.
33576 (BLOCK_STMT, IF_STMT): New nodes.
33578 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
33579 LABEL_STMT_FIRST_IN_EH): New macros.
33580 (RETURN_STMT_EXPR): Likewise.
33582 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
33583 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
33585 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
33587 * atree.ads: Correct documentation on extended nodes.
33589 * link.c: Set run_path_option for FreeBSD.
33591 2004-04-08 Vincent Celier <celier@gnat.com>
33593 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
33594 one of the ALI file, do not link with DEC lib.
33596 * par.adb Remove the last two characters ("%s" or "%b") when checking
33597 if a language defined unit may be recompiled.
33599 2004-04-08 Ed Schonberg <schonberg@gnat.com>
33601 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
33602 removal of abstract operation leaves no possible interpretation for
33605 * sem_eval.adb (Eval_Qualified_Expression): Use
33606 Set_Raises_Constraint_Error on node when needed, so that it does not
33607 get optimized away by subsequent optimizations.
33609 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
33610 operands even when they are not wrapped in a type conversion.
33612 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
33614 * sem_prag.adb (Set_Exported): Warn about making static as result of
33615 export only when the export is coming from source. This may be not
33616 be true e.g. on VMS where we expand export pragmas for exception codes
33617 together with imported or exported exceptions, and we don't want the
33618 user to be warned about something he didn't write.
33620 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
33622 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
33623 duplication between normal entities and those declared as renamings.
33624 No functional change.
33626 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
33627 inline functions returning an unconstrained result.
33629 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
33631 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
33632 conform to what other front-ends do.
33634 2004-04-08 Doug Rupp <rupp@gnat.com>
33636 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
33639 2004-04-06 Pascal Obry <obry@gnat.com>
33641 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
33643 * osint.adb (Program_Name): Do not look past a directory separator.
33645 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
33647 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
33649 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
33650 requirement for preserving a copy of the original assignment node.
33652 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
33654 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
33656 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
33659 2004-04-06 Ed Schonberg <schonberg@gnat.com>
33661 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
33662 operator calls in functional notation, and apply
33663 Universal_Interpretation to operands, not to their type.
33665 2004-04-06 Robert Dewar <dewar@gnat.com>
33667 * 5wdirval.adb: Minor reformatting
33669 2004-04-06 Ed Falis <falis@gnat.com>
33671 * gnat_rm.texi: Improve a reference to the GCC manual
33673 2004-04-05 Vincent Celier <celier@gnat.com>
33675 * adaint.h, adaint.c: Add function __gnat_named_file_length
33677 * impunit.adb: Add Ada.Directories to the list
33679 * Makefile.in: Add VMS and Windows versions of
33680 Ada.Directories.Validity package body.
33682 * Makefile.rtl: Add a-direct and a-dirval
33684 * mlib-tgt.ads: Minor comment update.
33686 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
33687 a-direct.ads, a-direct.adb: New files.
33689 2004-04-05 Vincent Celier <celier@gnat.com>
33692 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
33693 just to the compiler.
33695 2004-04-05 Robert Dewar <dewar@gnat.com>
33697 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
33698 returned string is 1.
33700 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
33702 * eval_fat.ads: Minor reformatting
33704 * g-curexc.ads: Document that lower bound of returned string values
33707 * gnatlink.adb: Add ??? comment for previous change
33708 (need to document why this is VMS specific)
33710 * s-stoele.ads: Minor reformatting
33712 * tbuild.ads: Minor reformatting throughout (new function specs)
33714 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
33717 * scng.adb: Minor reformatting
33719 2004-04-05 Geert Bosch <bosch@gnat.com>
33721 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
33722 (Leading_Part): Still perform truncation to machine number if the
33723 specified radix_digits is greater or equal to machine_mantissa.
33725 2004-04-05 Javier Miranda <miranda@gnat.com>
33727 * par-ch3.adb: Complete documentation of previous change
33728 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
33729 (aliased must appear before constant).
33731 * par-ch4.adb: Complete documentation of previous change.
33733 * par-ch6.adb: Complete documentation of previous change.
33735 * sinfo.ads: Fix typo in commment.
33737 2004-04-05 Ed Schonberg <schonberg@gnat.com>
33739 * sem_ch3.adb (Inherit_Components): If derived type is private and has
33740 stored discriminants, use its discriminants to constrain parent type,
33741 as is done for non-private derived record types.
33743 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
33744 Ada 2005 AI-310: an abstract non-dispatching operation is not a
33745 candidate interpretation in an overloaded call.
33747 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
33748 expression is Null and target type is not an access type (e.g. a
33749 non-private address type).
33751 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
33753 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
33754 statement whose right-hand side is an inlined call, save a copy of the
33755 original assignment subtree to preserve enough consistency for
33756 Analyze_Assignment to proceed.
33758 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
33759 complete assignment subtree which is now unnecessary, as the expansion
33760 of inlined call has been improved to preserve a consistent assignment
33761 tree. Note_Possible_Modification must be called only
33762 after checks have been applied, or else unnecessary checks will
33765 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
33766 of explicit dereferences that do not Come_From_Source:
33767 - be selective on cases where we must go back to the dereferenced
33768 pointer (an assignment to an implicit dereference must not be
33769 recorded as modifying the pointer);
33770 - do not rely on Original_Node being present (Analyze_Assignment
33771 calls Note_Possible_Modification on a copied tree).
33773 * sem_warn.adb (Check_References): When an unset reference to a pointer
33774 that is never assigned is encountered, prefer '<pointer> may be null'
33775 warning over '<pointer> is never assigned a value'.
33777 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
33779 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
33782 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
33784 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
33785 libexc. We currently don't reference anything in this library and
33786 linking it in triggers linker warnings we don't want to see.
33788 * init.c: Update comments.
33790 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33792 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
33793 * utils.c (create_field_decl): Likewise.
33794 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
33796 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
33798 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
33799 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
33800 Add info directory entry and category.
33802 2004-04-02 Jan Hubicka <jh@suse.cz>
33804 * utils.c: Include function.h
33805 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
33807 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
33810 * Make-lang.in: Clean up generation of documentation
33812 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
33814 * xgnatug.adb: Removed, replaced by xgnatugn.adb
33816 * xgnatugn.adb: Replaces xgnatug.adb
33818 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
33820 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
33822 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33823 gnat_ug_wnt.texi: Removed.
33825 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
33827 * utils2.c: Update copyright notice.
33829 2004-04-01 Robert Dewar <dewar@gnat.com>
33831 * checks.adb: Minor reformatting throughout
33832 Note that prev checkin added RM reference to alignment warning
33834 2004-04-01 Ed Schonberg <schonberg@gnat.com>
33836 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
33837 non-static when building aggregate for bit-packed array.
33839 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
33840 function call that is itself the actual in a procedure call, build
33843 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
33844 a string literal, create a temporary for it, constant folding only
33845 handles scalars here.
33847 2004-04-01 Vincent Celier <celier@gnat.com>
33849 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
33850 Error_Msg_SP): New empty procedures to instantiate the Scanner.
33851 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
33853 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
33854 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
33855 and get the checksum.
33857 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
33859 Increase the Marking_Label at the end of the Multiple_Main_Loop,
33860 instead of at the beginning.
33862 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
33864 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
33867 * osint.ads (Multi_Unit_Index_Character): New Character global variable
33869 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
33872 * par.adb: Remove test on file name to detect language defined units.
33873 Add test on unit name, after parsing, to detect language defined units
33874 that are not compiled with -gnatg (except System.RPC and its children)
33876 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
33877 following units without style checking.
33879 * switch-c.adb: Change -gnatC to -gnateI
33881 * usage.adb: Document new switch -gnateInnn
33883 * scng.adb (Accumulate_Token_Checksum): New procedure
33884 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
33885 word or literal number.
33886 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
33889 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
33892 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
33893 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
33894 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
33895 5vtpopde.adb: Add missing 'constant' keywords.
33897 2004-04-01 Javier Miranda <miranda@gnat.com>
33899 * par-ch4.adb: (P_Allocator): Code cleanup
33901 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
33904 * sinfo.ads: Complete documentation of previous change
33906 2004-04-01 Pascal Obry <obry@gnat.com>
33908 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
33909 only on VMS. This special handling was done because an old GNU/ld bug
33910 on Windows which has been fixed.
33912 2004-04-01 GNAT Script <nobody@gnat.com>
33914 * Make-lang.in: Makefile automatically updated
33916 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33918 * decl.c (gnat_to_gnu_entity, make_type_from_size):
33919 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
33920 * trans.c (tree_transform, convert_with_check): Likewise.
33921 * utils.c (gnat_signed_or_unsigned_type): Likewise.
33922 (build_vms_descriptor, unchecked_convert): Likewise.
33923 * utils2.c (nonbinary_modular_operation): Likewise.
33925 2004-03-29 Javier Miranda <miranda@gnat.com>
33927 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
33928 (Install_Null_Excluding_Check): Local subprogram that determines whether
33929 an access node requires a runtime access check and if so inserts the
33930 appropriate run-time check.
33931 (Apply_Access_Check): Call Install_Null_Excluding check if required
33932 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
33934 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
33936 * einfo.ads: Fix typo in comment
33938 * exp_ch3.adb (Build_Assignment): Generate conversion to the
33939 null-excluding type to force the corresponding run-time check.
33940 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
33941 type to force the corresponding run-time check.
33943 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
33944 the null-excluding type to force the corresponding run-time check.
33946 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
33947 case of access types unless they have the null-excluding attribute.
33949 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
33952 * exp_util.ads: Fix typo in comment
33954 * par.adb (P_Null_Exclusion): New subprogram
33955 (P_Subtype_Indication): New formal that indicates if the null-excluding
33956 part has been scanned-out and it was present
33958 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
33960 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
33961 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
33962 type to force the corresponding run-time check
33963 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
33965 (Resolve_Array_Aggregate): Carry out some static checks
33966 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
33968 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
33969 attribute must be set only if specified by means of the null-excluding
33970 part. In addition, we must also propagate the access-constant attribute
33972 (Access_Subprogram_Declaration, Access_Type_Declaration,
33973 Analyze_Component_Declaration, Analyze_Object_Declaration,
33974 Array_Type_Declaration, Process_Discriminants,
33975 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
33976 and carry out some static checks.
33977 (Build_Derived_Access_Type): Set the null-excluding attribute
33978 (Derived_Type_Declaration, Process_Subtype): Carry out some static
33981 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
33983 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
33985 * sem_ch6.adb (Process_Formals): Carry out some static checks.
33986 (Set_Actual_Subtypes): Generate null-excluding subtype if the
33987 null-excluding part was present; it is not required to be done here in
33988 case of anonymous access types.
33989 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
33992 * sem_res.adb (Resolve_Actuals): Carry out some static check
33993 (Resolve_Null): Allow null in anonymous access
33995 * sinfo.adb: New subprogram Null_Exclusion_Present
33996 All_Present and Constant_Present available on access_definition nodes
33998 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
33999 object_declaration, derived_type_definition, component_definition,
34000 discriminant_specification, access_to_object_definition,
34001 access_function_definition, allocator, access_procedure_definition,
34002 access_definition, parameter_specification, All_Present and
34003 Constant_Present flags available on access_definition nodes.
34005 2004-03-29 Robert Dewar <dewar@gnat.com>
34007 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
34008 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
34009 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
34010 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
34011 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
34012 sem_prag.adb: Updates to handle multiple units/file
34014 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
34016 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
34017 sem_util.adb: Minor reformatting
34019 * sem_ch12.adb: Add comment for previous change
34021 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
34023 * osint.adb (Executable_Prefix): Set Exec_Name to the current
34024 executable name when not initialized. Otherwise, use its current value.
34026 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
34027 initialize it to another executable name than the current one. This
34028 allows to configure paths for an executable name (gnatmake) different
34029 from the current one (gnatdist).
34031 2004-03-29 Ed Schonberg <schonberg@gnat.com>
34033 * exp_ch6.adb (Expand_Call): A call to a function declared in the
34034 current unit cannot be inlined if it appears in the body of a withed
34035 unit, to avoid order of elaboration problems in gigi.
34037 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
34038 information for protected (wrapper) operation as well, to simplify gdb
34041 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
34042 protected body, indicate that the entity for the generated spec comes
34043 from source, to ensure that references are properly generated for it.
34044 (Build_Body_To_Inline): Do not inline a function that returns a
34047 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
34048 apply convention to homonyms that are declared explicitly.
34050 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
34051 that renames an equality operator and the operands are overloaded,
34052 resolve them with the declared formal types, before rewriting as an
34055 2004-03-29 GNAT Script <nobody@gnat.com>
34057 * Make-lang.in: Makefile automatically updated
34059 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
34061 * memtrack.adb: Log realloc calls, which are treated as free followed
34064 2004-03-25 Vincent Celier <celier@gnat.com>
34066 * prj-makr.adb (Process_Directories): Detect when a file contains
34067 several units. Do not include such files in the config pragmas or
34068 in the naming scheme.
34070 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
34071 Resolve links only when not in Trusted_Mode.
34072 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
34073 Do not resolve links for the display names.
34075 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
34076 resolve links when computing the display names.
34078 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
34080 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
34081 attribute reference does not denote a subtype, it can be any
34082 expression that has a classwide type, potentially after an implicit
34083 dereference. In particular, the prefix can be a view conversion for
34084 a classwide type (for which Is_Object_Reference holds), but it can
34085 also be a value conversion for an access-to-classwide type. In the
34086 latter case, there is an implicit dereference, and the original node
34087 for the prefix does not verify Is_Object_Reference.
34089 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
34090 conversion of a discriminant-dependent component of a mutable object
34093 2004-03-25 Ed Schonberg <schonberg@gnat.com>
34095 * freeze.adb (Freeze_Entity): When an inherited subprogram is
34096 inherited, has convention C, and has unconstrained array parameters,
34097 place the corresponding warning on the derived type declaration rather
34098 than the original subprogram.
34100 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
34101 indication on renaming declaration, if formal has a box and actual
34104 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
34105 determine whether to generate an implicit or explicit reference to
34106 the renamed entity.
34108 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
34109 subprogram renaming comes from a defaulted formal subprogram in an
34112 2004-03-25 Gary Dismukes <dismukes@gnat.com>
34114 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
34115 value expressions to ensure that calls within a component definition
34116 will be checked (since those are evaluated during the record type's
34119 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
34121 * s-tpobop.adb: Code clean up:
34122 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
34124 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
34126 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
34128 * Makefile.in: Clean up in the ravenscar run time.
34130 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34132 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
34133 of No_Strict_Aliasing to build_pointer_type_for_mode.
34134 * utils.c (update_pointer_to): Walk pointer and ref chains.
34136 2004-03-22 Cyrille Comar <comar@act-europe.fr>
34138 * ali.ads: Fix Comment about Dynamic_Elab.
34140 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
34141 Has_RACW, Is_Generic, etc.)
34142 (Output_Object, Gnatls): Take into account ALI files not attached to
34145 2004-03-22 Vincent Celier <celier@gnat.com>
34147 * gprep.adb: Change all String_Access to Name_Id
34148 (Is_ASCII_Letter): new function
34149 (Double_File_Name_Buffer): New procedure
34150 (Preprocess_Infile_Name): New procedure
34151 (Process_Files): New procedure
34152 (Gnatprep): Check if output and input are existing directories.
34153 Call Process_Files to do the real job.
34155 2004-03-22 Robert Dewar <dewar@gnat.com>
34157 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
34158 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
34160 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
34162 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
34163 case when the source contains only comments.
34165 2004-03-22 Ed Schonberg <schonberg@gnat.com>
34167 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
34168 declaration for a child subprogram body that acts as a spec, indicate
34169 that the entity in the declaration needs debugging information.
34171 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
34172 full view if the subtype is created for a constrained record component;
34173 gigi has enough information to construct the record, and there is no
34174 place in the tree for the declaration.
34176 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
34177 serial number for the dummy body that is built for analysis, to avoid
34178 inconsistencies in the generation of internal names when compiling
34181 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
34183 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
34186 2004-03-22 GNAT Script <nobody@gnat.com>
34188 * Make-lang.in: Makefile automatically updated
34190 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34192 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
34193 * trans.c (tree_transform, emit_index_check): Likewise.
34194 * utils.c (build_template): Likewise.
34195 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
34196 (maybe_unconstrained_array, unchecked_convert): Likewise.
34197 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
34198 (build_unary_op): Likewise.
34199 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
34200 (fill_vms_descriptor): Likewise.
34201 (build_call_alloc_dealloc): Likewise.
34203 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
34205 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
34208 * gnat_ug.texi: Add info directory category and entry.
34209 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34210 gnat_ug_wnt.texi: Regenerate.
34212 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
34214 * ada-tree.h: Update copyright notice.
34215 Minor reformatting.
34217 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
34219 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
34220 as regular exception objects and not as mere integers representing the
34221 condition code. The latter approach required some dynamics to mask off
34222 severity bits, which did not fit well into the GCC table based model.
34223 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
34224 exception data objects. We don't it and it would conflict with the other
34225 external symbol we have to generate for such exceptions.
34227 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
34228 the special code for VMS exceptions, since these are now represented
34229 as regular exceptions objects.
34231 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34233 * decl.c (debug_no_type_hash): Remove.
34234 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
34235 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
34237 2004-03-19 Laurent Guerby <laurent@guerby.net>
34239 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
34240 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
34242 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34244 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
34245 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
34246 (TYPE_RM_SIZE_INT): Directly use type.values.
34247 (TREE_LOOP_ID): Clean up check.
34248 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
34249 TYPE_VALUES, not TYPE_FIELDS.
34250 * trans.c (convert_with_check): Delay access of bounds of basetype
34251 until sure is numeric.
34253 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
34255 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
34258 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
34259 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
34260 Specific.Set instead of direct call to e.g pthread_setspecific.
34262 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
34264 * adaint.c: Update comments.
34266 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
34267 GNATLIB_SHARED for FreeBSD.
34269 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
34271 * init.c [VxWorks]: Do not fix the stack size for the environment task.
34272 When needed (stack checking) the stack size is retrieved
34273 from the VxWorks kernel.
34275 * Makefile.in: Flag -nostdinc is required when building the run time
34276 for avoiding looking for files in the base compiler.
34277 Add the VxWorks specific version of the package body for
34278 System.Stack_checking.Operations (5zstchop.adb).
34280 * Make-lang.in: Add the object file for
34281 System.Stack_Checking.Operations.
34283 * Makefile.rtl: Add object file for the package
34284 System.Stack_Checking.Operations.
34286 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
34288 * s-stache.ads, s-stache.adb: Move the operations related to stack
34289 checking from this package to package System.Stack_Checking.Operations.
34290 This way, stack checking operations are only linked in the final
34291 executable when using the -fstack-check flag.
34293 2004-03-18 Doug Rupp <rupp@gnat.com>
34295 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
34298 * 5qsystem.ads, 5xcrtl.ads: New files.
34300 2004-03-18 Vincent Celier <celier@gnat.com>
34302 * prj.adb (Reset): Reset hash table Files_Htable
34304 * prj-env.adb (Source_Paths, Object_Paths): New tables.
34305 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
34306 the procedures Add_To_Path_File.
34307 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
34308 making sure that each directory is present only once and, for object
34309 dirs, when a directory already present is added, the duplicate is
34310 removed and the directory is always put as the last in the table.
34311 Write the path files at the end of these accumulations.
34313 * prj-nmsc.adb (Record_Source): Add source file name in hash table
34314 Files_Htable for all sources.
34316 * prj-proc.adb (Process): Remove restrictions between not directly
34317 related extending projects.
34319 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
34321 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
34322 (Find_Sources): Minor speed optimization.
34324 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
34325 parameter Trusted_Mode.
34327 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
34329 * scn.adb (Determine_License): Take into account a degenerated case
34330 when the source contains only comments.
34332 2004-03-18 Ed Schonberg <schonberg@gnat.com>
34334 * sem_warn.adb (Check_References): For a warning on a selected
34335 component that does not come from source, locate an uninitialized
34336 component of the record type to produce a more precise error message.
34338 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
34340 * 3zsoccon.ads: Fix multicast options.
34342 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
34345 2004-03-15 Robert Dewar <dewar@gnat.com>
34347 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
34348 pragma used for a private type.
34350 * lib-xref.adb (Generate_Reference): Do not generate warning if
34351 reference is in a different unit from the pragma Unreferenced.
34353 * 5vtpopde.adb: Minor reformatting
34354 Fix casing of To_Task_ID
34356 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
34357 flag if we have an unchecked conversion to an access type in the same
34360 2004-03-15 Geert Bosch <bosch@gnat.com>
34362 * a-ngcoty.adb (Modulus): In alternate formula for large real or
34363 imaginary parts, use Double precision throughout.
34365 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
34366 we want to be able to compile run-time with -gnata for testing, but
34367 this may also be instantiated in user code that is compiled with -gnata.
34369 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
34371 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
34372 codes. Having a separate type for this is useful to enforce consistency
34373 throughout the various run-time units.
34374 (Exception_Data): Use Exception_Code for Import_Code.
34376 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
34377 Natural and Integer in various places.
34378 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
34379 with the severity bits masked off.
34380 (Register_VMS_Exception): Handle the additional exception data pointer
34383 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
34384 component, now reflected by an exported accessor.
34385 (is_handled_by): New routine to compute whether the propagated
34386 occurrence matches some handler choice specification. Extracted out of
34387 get_action_description_for, and expanded to take care of the VMS
34389 (get_action_description_for): Use is_handled_by instead of an explicit
34390 complex condition to decide if the current choice at hand catches the
34391 propagated occurrence.
34393 * raise.h (Exception_Code): New type for C.
34395 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
34396 System.Standard_Library.Exception_Code, to allow references from the
34397 pragma import/export expander.
34399 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
34400 New accessors to allow easy access to GNAT exception data
34402 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
34403 redundant Handled_By_Others component, helper for the personality
34404 routine which will now be able to call the appropriate exception data
34407 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
34408 component of Standard_Exception_Type to be the closest possible to
34409 Exception_Code in System.Standard_Library, that we cannot get at this
34410 point. Expand a ??? comment to notify that this type node should
34411 probably be rewritten later on.
34413 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
34414 registration call to include a pointer to the exception object in the
34417 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
34418 instead of int and explicit bitmasks.
34420 2004-03-15 Vincent Celier <celier@gnat.com>
34422 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
34423 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
34425 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
34426 longer needed now that it is in the spec of
34427 System.Tasking.Task_Attributes.
34429 * adaint.h, adaint.c: (__gnat_create_output_file): New function
34431 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
34433 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
34435 * make.adb (Gnatmake): Do not check the executable suffix; it is being
34436 taken care of in Scan_Make_Arg.
34437 (Scan_Make_Arg): Add the executable suffix only if the argument
34438 following -o, in canonical case, does not end with the executable
34439 suffix. When in verbose mode and executable file name does not end
34440 with executable suffix, output the executable name, in canonical case.
34442 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
34443 to avoid warnings when instantiating Ada.Task_Attributes.
34446 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
34447 in the correct order.
34449 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
34450 redirect standard output and error to a file for the invocation of the
34451 compiler, then read the file.
34453 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
34454 directory, instead of the Value.
34455 (Find_Source_Dirs): Remove useless code & comments.
34457 2004-03-15 Ed Schonberg <schonberg@gnat.com>
34459 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
34460 tagged type is inherited, and the parent operation is not frozen yet,
34461 force generation of a freeze node for the inherited operation, so the
34462 corresponding dispatch entry is properly initialized.
34463 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
34464 when looking for user-defined equality operation.
34466 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
34467 boolean when locating primitive equality of tagged component.
34469 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
34470 bit-aligned field and the right-hand side a string literal, introduce
34471 a temporary before expanding assignment into a loop.
34473 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
34474 priority in full, to ensure that any expanded subepxressions of it are
34475 elaborated in the scope of the init_proc.
34477 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
34478 after object declaration, skipping over code that may have been
34479 generated for validity checks.
34481 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
34482 discriminants, ignore the known discriminants of its full view, if
34483 any, to check legality.
34485 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
34486 component if type has unknown discriminants.
34487 (Analyze_Private_Extension_Declaration): Discriminant constraint is
34488 null if type has unknown discriminants.
34490 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
34491 for end label when present.
34493 * s-fileio.adb (Open): When called with a C_Stream, use given name for
34494 temporary file, rather than an empty string.
34496 2004-03-15 Ed Falis <falis@gnat.com>
34498 * s-thread.adb: Removed, no longer used.
34500 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34502 * decl.c (target.h): Now include.
34503 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
34504 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
34505 (validate_size): For POINTER_TYPE, get smallest size permitted on
34508 * fe.h: Sort Einfo decls and add Set_Mechanism.
34510 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
34511 (ada/decl.o): Depends on target.h.
34513 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
34514 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
34516 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
34518 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
34520 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
34521 Insert_Dereference_Action when rewriting an implicit dereference into
34522 an explicit one, this will be taken care of during expansion of the
34523 explicit dereference.
34524 (Expand_N_Slice): Same. Always do the rewriting, even for the case
34525 of non-packed slices, since the dereference action generated by
34526 expansion of the explicit dereference is needed in any case.
34527 (Expand_N_Selected_Component): When rewriting an implicit dereference,
34528 analyze and resolve the rewritten explicit dereference so it is seen
34530 (Insert_Dereference_Action): This procedure is now called only for the
34531 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
34532 dereferences that do not come from source (including explicit
34533 dereferences resulting from rewriting implicit ones), but do not
34534 recursively insert a check for the dereference nodes contained within
34536 (Insert_Dereference_Action): Clarify and correct comment.
34538 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
34541 Move language detection to the top level.
34542 * config-lang.in: Build by default.
34544 2004-03-05 Robert Dewar <dewar@gnat.com>
34546 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
34548 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
34549 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
34550 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
34551 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
34552 unchecked conversion to spec to avoid warnings.
34554 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
34557 * 7stpopsp.adb: Correct casing in To_Task_ID call
34559 * a-strsea.ads, a-strsea.adb: Minor reformatting
34561 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
34563 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
34564 Adjust Max_Msg_Length to be clearly large enough.
34566 * fe.h: Define In_Same_Source_Unit
34568 * osint.adb: Add pragma Warnings Off to suppress warnings
34569 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
34572 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
34574 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
34576 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
34578 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
34580 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
34582 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
34583 node. We now do generate them for gcc back end.
34585 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
34588 * sinput-c.adb: Fix bad name in header.
34589 Add pragma Warnings Off to suppress aliasing warning.
34591 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
34593 * snames.h, snames.ads, snames.adb: Add entry for pragma
34594 No_Strict_Aliasing.
34596 2004-03-05 Vincent Celier <celier@gnat.com>
34598 * prj-com.ads: Add hash table Files_Htable to check when a file name
34599 is already a source of another project.
34601 * prj-nmsc.adb (Record_Source): Before recording a new source, check
34602 if its file name is not already a source of another project. Report an
34605 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
34606 source file name, call gnatpp with all the sources of the main project.
34608 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
34611 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
34612 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
34613 /RUNTIME_SYSTEM=, converted to --RTS=
34614 /NOTABS, converted to -notabs
34616 2004-03-05 Pascal Obry <obry@gnat.com>
34618 * make.adb: Minor reformatting.
34620 2004-03-05 Ed Schonberg <schonberg@gnat.com>
34622 Part of implemention of AI-262.
34623 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
34625 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
34628 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
34629 when component type is a partially constrained class-wide subtype.
34630 (Constrain_Discriminated_Type): If parent type has unknown
34631 discriminants, a constraint is illegal, even if full view has
34633 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
34634 with unknown discriminants whose full view is a discriminated record.
34636 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
34637 flag, to handle properly derivations of tagged types with unknown
34639 (Analyze_Package_Spec, Analyze_Package_Body): Install
34640 Private_With_Clauses before analyzing private part or body.
34642 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
34643 Has_Discriminants can be true for a given type (documentation).
34645 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
34647 * s-restri.ads: Fix license (GPL->GMGPL).
34649 * s-tassta.adb: Minor reformatting.
34651 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34652 by calls to Exit_One_ATC_Level, since additional clean up is performed
34655 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34656 by calls to Exit_One_ATC_Level, since additional clean up is performed
34659 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34661 * trans.c: Reflect GCC changes to fix bootstrap problem.
34662 Add warning for suspicious aliasing unchecked conversion.
34664 2004-03-05 GNAT Script <nobody@gnat.com>
34666 * Make-lang.in: Makefile automatically updated
34668 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
34670 * ali.adb (Read_Instantiation_Instance): Do not modify the
34671 current_file_num when reading information about instantiations, since
34672 this corrupts files in later references.
34674 2004-03-02 Vincent Celier <celier@gnat.com>
34676 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
34677 before checking if it is read-only.
34679 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
34680 of SRC_DIRS and eliminate duplicates.
34682 * gprcmd.adb: Replace command "path" with command "path_sep" to return
34683 the path separator.
34684 (Usage): Document path_sep
34686 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
34687 C++ compiler. No need for a script.
34688 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
34689 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
34692 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
34693 where there are Ada sources.
34694 (Set_Ada_Paths): Only add to the include path the source dirs of project
34696 (Add_To_Path): Add the Display_Values of the directories, not their
34699 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
34702 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
34704 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
34705 Value is canonicalized.
34706 (Language_Independent_Check): Do not copy Value to Display_Value when
34707 canonicalizing Value.
34709 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
34710 path to find limited with cycles.
34711 (Parse_Single_Project): Use canonical cased path to find the end of a
34714 2004-03-02 Ed Schonberg <schonberg@gnat.com>
34716 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
34717 and not a child unit.
34719 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
34720 appear in a with_clause.
34722 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
34723 only happen in type_annotate mode, do not try to elaborate it.
34725 * exp_util.adb (Force_Evaluation): If expression is a selected
34726 component on the left of an assignment, use a renaming rather than a
34727 temporary to remove side effects.
34729 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
34730 inlined instance body, which is analyzed before the end of the
34733 2004-03-02 Robert Dewar <dewar@gnat.com>
34735 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
34736 sem_ch4.adb: Use new feature for substitution of keywords in VMS
34738 * errout.ads, errout.adb: Implement new circuit for substitution of
34741 * sem_case.adb (Analyze_Choices): Place message properly when case is
34742 a subtype reference rather than an explicit range.
34744 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
34746 2004-03-02 Doug Rupp <rupp@gnat.com>
34748 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
34750 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
34752 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
34754 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34756 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
34759 2004-02-25 Robert Dewar <dewar@gnat.com>
34761 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
34762 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
34763 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
34764 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
34765 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
34766 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
34767 the defining instance of the type to avoid aliasing problems.
34768 Fix copyright header. Fix bad comments in package header.
34770 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
34772 2004-02-25 Ed Schonberg <schonberg@gnat.com>
34774 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
34775 rewritten as references when aliased through an address clause.
34777 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
34778 whether call can be interpreted as an indirect call to the result of a
34779 parameterless function call returning an access subprogram.
34781 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
34784 * exp_ch7.adb (Make_Clean): Remove generation of calls to
34785 Unlock[_Entries], since this is now done by Service_Entries directly.
34787 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
34789 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
34790 Requeue_Call for better code readability. Change spec and update calls:
34791 PO_Service_Entries now unlock the PO on exit.
34792 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
34793 PO_Service_Entries.
34795 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
34797 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
34799 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
34801 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
34802 protected subprogram call and analyzing the result of such expanding
34803 in case when the called protected subprogram is eliminated.
34805 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
34808 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
34810 * Makefile.in: Clean ups.
34812 2004-02-23 Ed Schonberg <schonberg@gnat.com>
34814 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
34815 protected operations if original subprogram is flagged as eliminated.
34816 (Expand_N_Subprogram_Body): For a protected operation, create
34817 discriminals for next operation before checking whether the operation
34820 * exp_ch9.adb (Expand_N_Protected_Body,
34821 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
34822 for internal protected operations if the original subprogram is
34825 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
34826 declared in a single protected object.
34828 2004-02-23 Vincent Celier <celier@gnat.com>
34830 * prj-attr.adb: Make attribute Builder'Executable an associative array,
34831 case insensitive if file names are case insensitive, instead of a
34832 standard associative array.
34834 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
34835 them as case insensitive on platforms where the file names are case
34838 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
34839 project file has already been parsed that canonical path are compared.
34841 2004-02-23 Robert Dewar <dewar@gnat.com>
34843 * sinput-c.ads: Correct bad unit title in header
34845 * freeze.adb: Minor reformatting
34847 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34849 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
34850 nonaddressable COMPONENT_REF that is removing padding that we are
34851 taking the address of, take the address of the padded record instead
34852 if item is variable size.
34854 2004-02-20 Robert Dewar <dewar@gnat.com>
34856 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
34858 2004-02-20 Ed Schonberg <schonberg@gnat.com>
34860 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
34861 itype references for the constrained designated type of a component
34862 whose base type is already frozen.
34864 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
34866 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
34867 avoid GCC warnings.
34869 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
34871 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
34872 identifier for a phantom package that rewrites the formal package
34873 declaration with a box. The Add semantic decorations for the defining
34874 identifier from the original node (that represents the formal package).
34876 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
34878 * Make-lang.in (ada/stamp-sdefault): Use the top level
34881 2004-02-19 Richard Henderson <rth@redhat.com>
34883 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
34885 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
34887 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
34888 Scan_ALI can be used for multiple ALI files without reinitializing
34891 2004-02-18 Robert Dewar <dewar@gnat.com>
34893 * debug.adb: Minor reformatting.
34895 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34897 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
34898 to zero if there is an address clause.
34900 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
34902 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
34904 2004-02-18 Gary Dismukes <dismukes@gnat.com>
34906 * layout.adb (Layout_Component_List): Revise generation of call to
34907 discriminant-checking function to pass selections of all of the type's
34908 discriminants rather than just the variant-controlling discriminant.
34910 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
34912 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
34913 fail in the current setup and triggers spurious system error messages.
34914 Pretend it occurred and failed instead.
34916 2004-02-18 Vincent Celier <celier@gnat.com>
34918 * bld.adb: Mark FLDFLAGS as saved
34919 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
34920 it is not the root project. Put each directory to be
34921 extended between double quotes to prevent it to be expanded on Windows.
34922 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
34923 the project file. Set them back to their initial values if they have not
34924 been set in the project file.
34926 * gprcmd.adb: (Gprdebug, Debug): New global variables
34927 (Display_Command): New procedure
34928 (Usage): Document new command "linkopts"
34929 Call Display_Command when env var GPRDEBUG has the value "TRUE"
34930 Implement new command "linkopts"
34931 Remove quotes that may be around arguments for "extend"
34932 Always call Normalize_Pathname with arguments formatted for the platform
34934 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
34935 Change @echo to @$(display) in target clean to be able to clean silently
34937 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
34939 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
34942 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
34943 = Extending_All when current project is an extending all project.
34945 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
34946 set to True only for LINK command, after Unix switch -o.
34947 (Process_Arguments): Set Output_File_Expected to True for LINK command
34948 after Unix switch -o. When Output_File_Expected is True, never add an
34949 extension to a file name.
34951 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
34952 option file name, only to the --for-linker= switch.
34953 (Option_File_Name): If option file name do not end with ".opt", append
34956 2004-02-18 GNAT Script <nobody@gnat.com>
34958 * Make-lang.in: Makefile automatically updated
34960 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
34962 * Make-lang.in (stamp-sdefault): Do not depend on
34965 2004-02-12 Zack Weinberg <zack@codesourcery.com>
34967 * config-lang.in: Disable Ada by default until probe logic for
34968 a bootstrap Ada compiler can be moved to the top level configure
34971 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
34973 * decl.c (components_to_record): Don't claim that the internal fields
34974 we make to hold the variant parts are semantically addressable, because
34977 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
34978 adjust the comment describing the modular type form when we can use it.
34979 (Install_PAT): Account for the Esiz renaming.
34981 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
34982 sc_onstack context indication before raising the exception to which
34983 the signal is mapped. Allows better handling of later signals possibly
34984 triggered by the resumed user code if the exception is handled.
34986 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
34988 * 5zinit.adb: Removed, no longer used.
34990 2004-02-12 Robert Dewar <dewar@gnat.com>
34992 * ali.adb: Remove separating space between parameters on R line. Makes
34993 format consistent with format used by the binder for Set_Globals call.
34995 * atree.ads, atree.adb: Minor reformatting (new function header format)
34997 * bindgen.adb: Add Run-Time Globals documentation section containing
34998 detailed documentation of the globals passed from the binder file to
35001 * gnatls.adb: Minor reformatting
35003 * init.c (__gnat_set_globals): Add note pointing to documentation in
35006 * lib-writ.ads, lib-writ.adb: Remove separating space between
35007 parameters on R line.
35008 Makes format consistent with format used by the binder for Set_Globals
35011 * osint.ads: Add 2004 to copyright notice
35014 * snames.ads: Correct capitalization of FIFO_Within_Priorities
35015 Noticed during code reading, documentation issue only
35017 * usage.adb: Remove junk line for obsolete C switch
35018 Noticed during code reading
35020 2004-02-12 Vincent Celier <celier@gnat.com>
35022 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
35023 extend for each directory, so that multiple /** directories are
35024 extended individually.
35025 (Recursive_Process): Set the default for LANGUAGES to ada
35027 * gprcmd.adb: Define new command "ignore", to do nothing.
35028 Implement new comment "path".
35030 * Makefile.generic: Suppress output when SILENT is set
35031 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
35032 used, so that the correct compiler is invoked.
35033 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
35034 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
35036 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
35038 * Makefile.in: Clean ups and remove obsolete targets.
35040 2004-02-12 Ed Schonberg <schonberg@gnat.com>
35042 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
35043 predicate declared in exp_util.
35045 * exp_util.adb: Add comments.
35047 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
35048 visibility before compiling context of the subunit.
35050 * sem_res.adb (Check_Parameterless_Call): If the context expects a
35051 value but the name is a procedure, do not attempt to analyze as a call,
35052 in order to obtain more telling diagnostics.
35054 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
35055 'Access on parameterless function calls.
35056 (Normalize_Actuals): For a parameterless function call with missing
35057 actuals, defer diagnostic until resolution of enclosing call.
35059 * sem_util.adb (Wrong_Type): If the context type is an access to
35060 subprogram and the expression is a procedure name, suggest a missing
35063 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
35064 Nathanael Nerode <neroden@gcc.gnu.org>
35068 Merge with libada-branch:
35069 * config-lang.in: Build libada only when ada is built.
35071 2004-02-09 Ed Schonberg <schonberg@gnat.com>
35073 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
35074 for a tagged type, verify that both formals have the same type.
35076 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
35077 temporary when the formal is an in-parameter and the actual a possibly
35080 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
35081 when expansion is disabled, to ensure proper name capture with
35082 overloaded literals. Condition can be of any boolean type, resolve
35085 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
35086 renaming is for a formal subprogram with a default operator name, and
35087 there is a usable operator that is visible at the point of
35090 2004-02-09 Robert Dewar <dewar@gnat.com>
35092 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
35093 rewrite to ignore errors in ali files, intended to allow tools downward
35094 compatibility with new versions of ali files.
35096 * ali.ads: Add new parameter Ignore_Errors
35098 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
35099 duplicating the error message giving the file with restrictions.
35101 * debug.adb: Add debug flag I for gnatbind
35103 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
35104 operators for the case where the operator is a defining operator.
35106 * exp_ch3.adb: Minor reformatting (new function spec format).
35108 * exp_ch4.adb: Add comment for previous change, and make minor
35109 adjustment to loop to always check for improper loop termination.
35110 Minor reformatting throughout (new function spec format).
35112 * gnatbind.adb: Implement -di debug flag for gnatbind
35114 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
35116 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
35118 * lib-load.adb: Fix bad assertion.
35119 Found by testing and code reading.
35120 Minor reformatting.
35122 * lib-load.ads: Minor reformatting.
35124 * lib-writ.adb: There is only one R line now.
35126 * lib-writ.ads: Add documentation on making downward compatible changes
35127 to ali files so old tools work with new ali files.
35128 There is only one R line now.
35129 Add documentation on format incompatibilities (with special GPS note)
35131 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
35133 * par-load.adb: Minor reformatting
35135 * sem_ch8.adb: Fix to error message from last update
35136 Minor reformatting and restructuring of code from last update
35138 * par-prag.adb, snames.adb, snames.ads, snames.h,
35139 sem_prag.adb: Implement pragma Profile.
35141 * stylesw.adb: Implement -gnatyN switch to turn off all style check
35144 * usage.adb: Add line for -gnatyN switch
35146 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
35148 2004-02-09 Albert Lee <lee@gnat.com>
35150 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
35152 2004-02-09 Ed Schonberg <schonberg@gnat.com>
35154 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
35157 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
35158 is nested in an instance that is not frozen yet, to avoid
35159 order-of-elaboration problems in gigi.
35161 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
35162 body the attribute is legal.
35164 2004-02-09 Robert Dewar <dewar@gnat.com>
35166 * s-rident.ads: Minor comment correction
35168 * targparm.adb: Remove dependence on uintp completely. There was
35169 always a bug in Make in that it called Targparm before initializing
35170 the Uint package. The old code appeared to get away with this, but
35171 the new code did not! This caused an assertion error in gnatmake.
35173 * targparm.ads: Fix bad comment, restriction pragmas with parameters
35174 are indeed fully supported.
35176 2004-02-06 Alan Modra <amodra@bigpond.net.au>
35178 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
35180 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
35182 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
35183 with targetm.calls.promote_prototypes.
35185 2004-02-04 Robert Dewar <dewar@gnat.com>
35187 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
35188 ali.ads, gprcmd.adb: Minor reformatting
35190 * bindgen.adb: Output restrictions string for new style restrictions
35193 * impunit.adb: Add s-rident.ads (System.Rident) and
35194 s-restri (System.Restrictions)
35196 * lib-writ.adb: Fix bug in writing restrictions string (last few
35199 * s-restri.ads, s-restri.adb: Change name Restrictions to
35200 Run_Time_Restrictions to avoid conflict with package name.
35201 Add circuit to read and acquire run time restrictions.
35203 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
35205 * restrict.ads, restrict.adb: Use the new restriction
35206 No_Task_Attributes_Package instead of the old No_Task_Attributes.
35208 * sem_prag.adb: No_Task_Attributes is a synonym of
35209 No_Task_Attributes_Package.
35211 * snames.ads, snames.adb: New entry for proper handling of
35212 No_Task_Attributes.
35214 * s-rident.ads: Adding restriction No_Task_Attributes_Package
35215 (AI-00249) that supersedes the GNAT specific restriction
35216 No_Task_Attributes.
35218 2004-02-04 Ed Schonberg <schonberg@gnat.com>
35221 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
35222 body, an identifier may be wrapped in an unchecked conversion.
35224 2004-02-04 Vincent Celier <celier@gnat.com>
35226 * lib-writ.ads: Comment update for the W lines
35228 * bld.adb: (Expression): An empty string list is static
35230 * fname-uf.adb: Minor comment update
35232 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
35234 * gnatbind.adb: Initialize Cumulative_Restrictions with the
35235 restrictions on the target.
35237 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
35239 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
35242 2004-02-02 Arnaud Charlet <charlet@gnat.com>
35244 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
35246 2004-02-02 Vincent Celier <celier@gnat.com>
35248 * gprcmd.adb (Check_Args): If condition is false, print the invoked
35249 comment before the usage.
35250 Gprcmd: Fail when command is not recognized.
35251 (Usage): Document command "prefix"
35253 * g-md5.adb (Digest): Process last block.
35254 (Update): Do not process last block. Store remaining characters and
35257 * g-md5.ads (Update): Document that several call to update are
35258 equivalent to one call with the concatenated string.
35259 (Context): Add fields to allow new Update behaviour.
35261 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
35262 defaulted to False.
35263 When May_Fail is True and no existing file can be found, return No_File.
35265 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
35268 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
35269 spec file name instead on the W line.
35271 2004-02-02 Robert Dewar <dewar@gnat.com>
35273 * ali.adb: Read and acquire info from new format restrictions lines
35275 * bcheck.adb: Add circuits for checking restrictions with parameters
35277 * bindgen.adb: Output dummy restrictions data
35278 To be changed later
35280 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
35281 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
35282 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
35283 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
35284 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
35286 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
35287 the warning message on access to possibly uninitialized variable S)
35288 Minor changes for new restrictions handling.
35290 * gnatbind.adb: Minor reformatting
35291 Minor changes for new restrictions handling
35292 Move circuit for -r processing here from bcheck (cleaner)
35294 * gnatcmd.adb, gnatlink.adb: Minor reformatting
35296 * lib-writ.adb: Output new format restrictions lines
35298 * lib-writ.ads: Document new R format lines for new restrictions
35301 * s-restri.ads/adb: New files
35303 * Makefile.rtl: Add entry for s-restri.ads/adb
35305 * par-ch3.adb: Fix bad error messages starting with upper case letter
35308 * restrict.adb: Major rewrite throughout for new restrictions handling
35309 Major point is to handle restrictions with parameters
35311 * restrict.ads: Major changes in interface to handle restrictions with
35312 parameters. Also generally simplifies setting of restrictions.
35314 * snames.ads/adb: New entry for proper handling of No_Requeue
35316 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
35317 restriction counting.
35318 Other minor changes for new restrictions handling
35320 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
35321 Restriction_Warnings now allows full parameter notation
35322 Major rewrite of Restrictions for new restrictions handling
35324 2004-02-02 Javier Miranda <miranda@gnat.com>
35326 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
35327 syntax rule for object renaming declarations.
35328 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
35329 component definitions.
35331 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
35333 (Array_Type_Declaration): Give support to access components. In addition
35334 it was also modified to reflect the name of the object in anonymous
35335 array types. The old code did not take into account that it is possible
35336 to have an unconstrained anonymous array with an initial value.
35337 (Check_Or_Process_Discriminants): Allow access discriminant in
35339 (Process_Discriminants): Allow access discriminant in non-limited types
35340 Initialize the new Access_Definition field in N_Object_Renaming_Decl
35341 node. Change Ada0Y to Ada 0Y in comments
35343 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
35344 equality operators.
35345 Change Ada0Y to Ada 0Y in comments
35347 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
35348 renamings Change Ada0Y to Ada 0Y in comments
35350 * sem_type.adb (Find_Unique_Type): Give support to the equality
35351 operators for universal access types
35352 Change Ada0Y to Ada 0Y in comments
35354 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
35356 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
35358 (N_Object_Renaming_Declaration): Addition of Access_Definition field
35359 Change Ada0Y to Ada 0Y in comments
35361 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
35362 component definition and object renaming nodes
35363 Change Ada0Y to Ada 0Y in comments
35365 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
35367 * restrict.adb: Use the new restriction identifier
35368 No_Requeue_Statements instead of the old No_Requeue for defining the
35369 restricted profile.
35371 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
35372 No_Requeue_Statements.
35374 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
35375 that supersedes the GNAT specific restriction No_Requeue. The later is
35376 kept for backward compatibility.
35378 2004-02-02 Ed Schonberg <schonberg@gnat.com>
35380 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
35381 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
35382 pragma and fix incorrect ones.
35384 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
35385 warning if the pragma is redundant.
35387 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
35389 * 5staprop.adb: Add missing 'constant' keywords.
35391 * Makefile.in: use consistent value for SYMLIB on
35392 platforms where libaddr2line is supported.
35394 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35396 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
35399 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
35401 * init.c (__gnat_install_handler): Setup an alternate stack for signal
35402 handlers in the environment thread. This allows proper propagation of
35403 an exception on stack overflows in this thread even when the builtin
35404 ABI stack-checking scheme is used without support for a stack reserve
35407 * utils.c (create_field_decl): Augment the head comment about bitfield
35408 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
35409 here, because the former is not accurate enough at this point.
35410 Let finish_record_type decide instead.
35411 Don't make a bitfield if the field is to be addressable.
35412 Always set a size for the field if the record is packed, to ensure the
35413 checks for bitfield creation are triggered.
35414 (finish_record_type): During last pass over the fields, clear
35415 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
35416 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
35417 from DECL_BIT_FIELD.
35419 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
35421 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
35422 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
35423 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
35425 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35427 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
35429 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
35430 (ZCX_By_Default): Likewise.
35431 (Front_End_ZCX_Support): Likewise.
35433 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
35434 (Initialize_Lock): Mark Level unreferenced.
35435 (Sleep): Mark Reason unreferenced.
35436 (Timed_Sleep): Likewise.
35437 (Wakeup): Likewise.
35438 (Exit_Task): Use Result.
35439 (Check_No_Locks): Mark Self_ID unreferenced.
35441 * 5gtasinf.adb (New_Sproc): Make Attr constant.
35442 (Bound_Thread_Attributes): Make Sproc constant.
35443 (New_Bound_Thread_Attributes): Likewise.
35445 2004-01-26 Ed Schonberg <schonberg@gnat.com>
35447 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
35448 one-dimensional array an slice assignments, when component type is
35451 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
35452 component type is controlled, and control_actions are in effect, use
35453 TSS procedure rather than generating inline code.
35455 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
35456 arrays with controlled components.
35458 2004-01-26 Vincent Celier <celier@gnat.com>
35460 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
35461 command line for the non VMS case.
35463 * gnatlink.adb (Process_Binder_File): When building object file, if
35464 GNU linker is used, put all object paths between quotes, to prevent ld
35465 error when there are unusual characters (such as '!') in the paths.
35467 * Makefile.generic: When there are sources in Ada and the main is in
35468 C/C++, invoke gnatmake with -B, instead of -z.
35470 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
35471 from VMS_Conversion.
35472 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
35473 specification of argument file on the command line.
35475 2004-01-26 Bernard Banner <banner@gnat.com>
35477 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
35479 2004-01-26 Ed Schonberg <schonberg@gnat.com>
35481 * snames.adb: Update copyright notice.
35482 Add info on slice assignment for controlled arrays.
35484 2004-01-23 Robert Dewar <dewar@gnat.com>
35486 * exp_aggr.adb: Minor reformatting
35488 * exp_ch9.adb: Minor code clean up
35490 Fix bad character in comment
35493 * targparm.adb (Get_Target_Parameters): Give clean abort error on
35494 unexpected end of file, along with more detailed message.
35496 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35498 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
35501 * decl.c (copy_alias_set): New function.
35502 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
35504 2004-01-23 Doug Rupp <rupp@gnat.com>
35506 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
35507 lib$${file} in case subsequent character is not a separator.
35509 2004-01-23 Vincent Celier <celier@gnat.com>
35511 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
35512 when the GCC version is at least 3.
35514 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
35515 Remove all "Opt.", to prepare for opt split
35517 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
35518 Extends_All. Set to True when the project parsed is an extending all
35519 project. Fails for importing an extending all project only when the
35520 imported project is an extending all project.
35521 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
35522 depending on the value of Extends_All returned.
35524 * prj-proc.adb (Process): Check that no project shares its object
35525 directory with a project that extends it, directly or indirectly,
35526 including a virtual project.
35527 Check that no project extended by another project shares its object
35528 directory with another also extended project.
35530 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
35531 Kind = N_With_Clause
35533 * prj-tree.ads: Minor reformatting
35534 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
35536 2004-01-23 Ed Schonberg <schonberg@gnat.com>
35538 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
35539 applies to a type with an incomplete view, use full view in Name of
35540 clause, for consistency with uses of Get_Attribute_Definition_Clause.
35542 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
35544 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
35545 SCHED_RR, since other values are not supported by this policy.
35546 (Initialize): Move initialization of mutex attribute to package
35547 elaboration, to prevent early access to this variable.
35549 * Makefile.in: Remove mention of Makefile.adalib, unused.
35551 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
35552 1ssecsta.ads: Removed, unused.
35554 2004-01-21 Javier Miranda <miranda@gnat.com>
35556 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
35557 entity if already built in the current scope.
35559 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
35560 reminder in internal scopes. Required for nested limited aggregates.
35562 2004-01-21 Doug Rupp <rupp@gnat.com>
35564 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
35565 VMS. Replace all occurences of libgnat- and libgnarl- with
35566 libgnat$(hyphen) and libgnarl$(hyphen).
35567 Fixed shared library build problem on VMS.
35569 2004-01-21 Robert Dewar <dewar@gnat.com>
35571 * mlib-prj.adb: Minor reformatting
35573 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
35575 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
35576 'constant' keywords for declaration of pointers that are not modified.
35578 * exp_pakd.adb: Fix English in comment.
35580 2004-01-21 Ed Schonberg <schonberg@gnat.com>
35583 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
35584 copy all attributes of the parent, including the foreign language
35587 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
35590 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
35591 for 'delay until' statement.
35593 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
35595 * Make-lang.in: Replace $(docdir) with doc.
35596 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
35597 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
35598 to use consistent MAKEINFO rule.
35599 (ada.man, ada.srcman): Dummy entry.
35600 (ADA_INFOFILES): Define.
35601 (ada.info, ada.srcinfo): New rules.
35603 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
35605 * utils.c: Update copyright notice, missed in previous change.
35607 2004-01-19 Vincent Celier <celier@gnat.com>
35609 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
35610 args if Bind is True. Set First_ALI, if not already done.
35611 (Build_Library): For Stand Alone Libraries, extract from one ALI file
35612 an eventual --RTS switch, for gnatbind, and all backend switches +
35613 --RTS, for linking.
35615 2004-01-19 Robert Dewar <dewar@gnat.com>
35617 * sem_attr.adb, memtrack.adb: Minor reformatting
35619 2004-01-19 Ed Schonberg <schonberg@gnat.com>
35621 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
35622 that rename enumeration literals. This is properly done in sem_eval.
35624 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
35625 to functions that rename enumeration literals.
35627 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
35628 functions that rename enumeration literals.
35630 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
35632 * Make-lang.in (utils.o): Depend on target.h.
35633 * utils.c: Include target.h.
35634 (process_attributes): Use targetm.have_named_sections instead
35635 of ASM_OUTPUT_SECTION_NAME.
35637 2004-01-16 Andreas Jaeger <aj@suse.de>
35639 * Makefile.in: Add $(DESTDIR).
35641 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
35643 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
35644 also when not defining if a Size clause applies. That information is
35647 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
35649 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
35650 symbolic links for the shared gnat run time when needed.
35652 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
35654 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
35655 for writing, and terminate with an error message if not.
35657 2004-01-15 Ed Schonberg <schonberg@gnat.com>
35659 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
35660 warning on an access to subprogram in an instance, when the target
35661 type is declared in the same generic unit.
35662 (Eval_Attribute): If 'access is known to fail accessibility check,
35663 rewrite as a raise statement.
35665 2004-01-15 GNAT Script <nobody@gnat.com>
35667 * Make-lang.in: Makefile automatically updated
35669 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
35671 * Make-lang.in (ada.srcextra): Dummy entry.
35673 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
35675 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
35677 2004-01-13 Ed Schonberg <schonberg@gnat.com>
35679 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
35680 components that are initialized with aggregates.
35682 2004-01-13 Vincent Celier <celier@gnat.com>
35684 * gnatlink.adb (Process_Binder_File): To find directory of shared
35685 libgcc, if "gcc-lib" is not a subdirectory, look for the last
35686 subdirectory "lib" in the path of the shared libgnat or libgnarl.
35688 * make.adb (Gnatmake): If GCC version is at least 3, link with
35689 -shared-libgcc, when there is at least one shared library project.
35691 * opt.ads (GCC_Version): New integer constant.
35693 * adaint.c (get_gcc_version): New function.
35695 2004-01-13 Robert Dewar <dewar@gnat.com>
35697 * sem_dist.adb, sem_res.adb, sem_util.adb,
35698 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
35699 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
35701 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
35703 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
35704 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
35707 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
35709 * misc.c: Remove trailing spaces.
35710 Update copyright notice missed in previous change.
35713 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
35716 * Makefile.generic: Update copyright.
35717 Add license notice.
35719 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
35720 of prefix/share/make.
35722 * Makefile.prolog: Update copyright.
35723 Add license notice.
35725 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
35727 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
35728 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
35729 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
35732 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
35735 2004-01-12 Javier Miranda <miranda@gnat.com>
35737 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
35738 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
35739 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
35740 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
35741 Component_Definition node.
35743 2004-01-12 Ed Falis <falis@gnat.com>
35745 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
35747 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
35749 * link.c: Change default libgnat kind to STATIC for FreeBSD.
35751 2004-01-12 Bernard Banner <banner@gnat.com>
35753 * Makefile.in: map 86numaux to a-numaux for x86_64
35755 2004-01-12 Ed Schonberg <schonberg@gnat.com>
35757 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
35758 generated to rename a generic actual, go to the actual itself, the
35759 subtype is not a user-visible entity.
35761 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
35762 part is a private subtype, reset the visibility of its full view, if
35763 any, to be consistent.
35766 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
35767 to use a generic package G as a formal package for another generic
35770 2004-01-12 Robert Dewar <dewar@gnat.com>
35772 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
35774 * usage.adb: Remove mention of obsolete -gnatwb switch
35775 Noticed during code reading
35777 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
35779 * 1ssecsta.adb: Minor changes for -gnatwa warnings
35781 2004-01-12 GNAT Script <nobody@gnat.com>
35783 * Make-lang.in: Makefile automatically updated
35785 2004-01-09 Mark Mitchell <mark@codesourcery.com>
35787 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
35789 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35791 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
35793 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
35795 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
35796 Update comment and copyright date.
35797 * stamp-xgnatug: Delete.
35799 2004-01-05 Robert Dewar <dewar@gnat.com>
35801 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
35802 be modified by the binder generated main program if the -D switch is
35805 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
35806 imported functions (since now we expect this to be done for imported
35809 * 5vtaprop.adb: Add several ??? for sections requiring more comments
35810 Minor reformatting throughout
35812 * 5zinit.adb: Minor reformatting
35813 Add 2004 to copyright date
35814 Minor changes to avoid -gnatwa warnings
35815 Correct some instances of using OR instead of OR ELSE (noted while
35816 doing reformatting)
35818 * sprint.adb: Minor updates to avoid -gnatwa warnings
35820 * s-secsta.ads, s-secsta.adb:
35821 (SS_Get_Max): New function to obtain high water mark for ss stack
35822 Default_Secondary_Stack is not a constant since it may be modified by
35823 the binder generated main program if the -D switch is used.
35825 * switch-b.adb: New -Dnnn switch for binder
35828 Make -gnatg imply all warnings currently in -gnatwa
35830 * vms_conv.adb: Minor reformatting
35831 Add 2004 to copyright notice
35832 Add 2004 to printed copyright notice
35834 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
35835 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
35836 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
35837 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
35838 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
35839 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
35840 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
35841 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
35842 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
35843 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
35844 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
35845 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
35846 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
35847 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
35848 checks.adb, clean.adb, cstand.adb, einfo.ads,
35849 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
35850 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
35851 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
35852 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
35853 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
35854 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
35855 Minor reformatting and code clean ups.
35856 Minor changes to prevent -gnatwa warnings
35858 * ali.adb: Minor reformatting and cleanup of code
35859 Acquire new SS indication of secondary stack use from ali files
35861 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
35862 (since now we expect this to be done for imported functions)
35864 * bindgen.adb: Generate call to modify default secondary stack size if
35867 * bindusg.adb: Add line for new -D switch
35869 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
35870 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
35871 Add circuitry for both records and arrays to avoid gigi
35872 processing if the type involved has non-bit-aligned components
35874 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
35875 N_String_Literal node always references an E_String_Literal_Subtype
35876 entity. This may not be true in the future.
35877 (Possible_Bit_Aligned_Component): Move processing of
35878 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
35880 * exp_ch6.adb (Expand_Thread_Body): Pick up
35881 Default_Secondary_Stack_Size as variable so that we get value modified
35882 by possible -Dnnn binder parameter.
35884 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
35885 (Type_May_Have_Bit_Aligned_Components): New function.
35887 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
35888 (Type_May_Have_Bit_Aligned_Components): New function.
35890 * fe.h: (Set_Identifier_Casing): Fix prototype.
35891 Add declaration for Sem_Elim.Eliminate_Error_Msg.
35892 Minor reformatting.
35894 * freeze.adb (Freeze_Entity): Add RM reference to error message about
35895 importing constant atomic/volatile objects.
35896 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
35897 unless explicit Pure_Function pragma given, to avoid insidious bug of
35898 call to non-pure imported function getting eliminated.
35900 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
35901 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
35902 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
35903 Add 2004 to printed copyright notice
35905 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
35908 * Makefile.rtl: Add entry for g-sestin.o
35909 g-sestin.ads: New file.
35911 * mdll.adb: Minor changes to avoid -gnatwa warnings
35913 * mlib-tgt.adb: Minor reformatting
35915 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
35916 New switch Sec_Stack_Used (GNAT, GNATBIND)
35917 Make Default_Secondary_Stack_Size a variable instead of a constant,
35918 so that it can be modified by the new -Dnnn bind switch.
35920 * rtsfind.adb (Load_Fail): Give full error message in configurable
35921 run-time mode if all_errors mode is set. This was not done in the case
35922 of a file not found, which was an oversight.
35923 Note if secondary stack unit is used by compiler.
35925 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
35926 ineffective elaborate all pragmas on non-visible packages (this
35927 happened when a renamed subprogram was called). Now the elaborate all
35928 always goes on the package containing the renaming rather than the one
35929 containing the renamed subprogram.
35931 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
35932 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
35934 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
35935 has an Etype that references an E_String_Literal.
35936 (Eval_String_Literal): Avoid assumption that N_String_Literal node
35937 always references an E_String_Literal_Subtype entity. This may not
35938 be true in the future.
35940 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
35943 * sem_res.adb (Resolve): Specialize msg for function name used in proc
35946 2004-01-05 Ed Falis <falis@gnat.com>
35948 * g-debuti.adb: Replaced direct boolean operator with short-circuit
35951 2004-01-05 Vincent Celier <celier@gnat.com>
35953 * bld.adb: Minor comment updates
35954 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
35957 * make.adb (Gnatmake): Special process for files to compile/check when
35958 -B is specified. Fail when there are only foreign mains in attribute
35959 Main of the project file and -B is not specified. Do not skip bind/link
35960 steps when -B is specified.
35962 * makeusg.adb: Document new switch -B
35964 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
35966 * switch-m.adb: (Scan_Make_Switches): Process -B switch
35968 * vms_data.ads: Add new GNAT PRETTY qualifier
35969 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
35971 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35973 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
35976 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
35977 Set_Identifier_Casing.
35979 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
35980 has size that overflows.
35982 2004-01-05 Gary Dismukes <dismukes@gnat.com>
35984 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
35985 -gnatwa warning on static condition.
35987 2004-01-05 Doug Rupp <rupp@gnat.com>
35989 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
35991 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
35993 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
35994 all attributes, including read-only attribute.
35996 2004-01-05 Pascal Obry <obry@gnat.com>
35998 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
35999 library naming scheme.
36001 * mlib-prj.adb (Build_Library): Generate different names for the static
36002 or dynamic version of the GNAT runtime. This is needed to support the
36003 new shared library naming scheme.
36004 (Process_Binder_File): Add detection of shared library in binder file
36005 based on the new naming scheme.
36007 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
36008 scheme for the shared runtime libraries.
36011 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
36013 (install-gnatlib): Do not create symlinks for shared libraries.
36014 (gnatlib-shared-default): Idem.
36015 (gnatlib-shared-dual-win32): New target. Not used for now as the
36016 auto-import feature does not support arrays/records.
36017 (gnatlib-shared-win32): Do not create copy for the shared libraries.
36018 (gnatlib-shared-vms): Fix shared runtime libraries names.
36020 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
36021 dependent runtime shared library name.
36023 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
36025 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
36028 2004-01-05 Ed Schonberg <schonberg@gnat.com>
36030 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
36031 protected objects when allocator has a subtype indication, not a
36032 qualified expression. Note that qualified expressions may have to be
36033 checked when limited aggregates are implemented.
36035 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
36036 pure, emit warning.
36037 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
36038 subprogram is imported, remove warning.
36040 2004-01-05 Geert Bosch <bosch@gnat.com>
36042 * s-poosiz.adb: Update copyright notice.
36043 (Allocate): Use Task_Lock to protect against concurrent access.
36044 (Deallocate): Likewise.
36046 2004-01-05 Joel Brobecker <brobecker@gnat.com>
36048 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
36051 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
36053 * gnat_ug.texi: Force a CVS commit by updating copyright.
36054 * gnat_ug_vxw.texi: Regenerate.
36055 * gnat_ug_wnt.texi: Regenerate.
36056 * gnat_ug_vms.texi: Regenerate.
36057 * gnat_ug_unx.texi: Regenerate.
36059 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
36061 * trans.c: Remove uses of "register" specifier in
36062 declarations of local variables.
36064 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
36066 * stamp-xgnatug: New stamp file.
36067 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
36068 (ada/doctools/xgnatug): Add $(build_exeext).
36069 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
36070 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
36072 2003-12-17 Ed Falis <falis@gnat.com>
36074 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
36077 * a-exextr.adb: Add context clause for
36078 Ada.Exceptions.Last_Chance_Handler.
36080 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
36082 * cstand.adb (Create_Standard): Change the way how the declaration of
36083 the Duration type is created (making it the same way as it is for all
36084 the other standard types).
36086 2003-12-17 Robert Dewar <dewar@gnat.com>
36088 * s-crtl.ads: Fix header format
36089 Change Pure to Preelaborate
36091 2003-12-17 Ed Schonberg <schonberg@gnat.com>
36093 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
36094 the expression type only if it is declared in the current unit.
36096 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
36097 are universal and already analyzed, as can occur in constrained
36098 subcomponents that depend on discriminants, when one constraint is a
36101 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
36102 type Any_Fixed is legal as the argument of a conversion, if only one
36103 fixed-point type is in context.
36105 2003-12-17 GNAT Script <nobody@gnat.com>
36107 * Make-lang.in: Makefile automatically updated
36109 2003-12-15 Robert Dewar <dewar@gnat.com>
36111 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
36114 2003-12-15 Vincent Celier <celier@gnat.com>
36116 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
36117 (Gnatchop): Do not set failure status when reporting the number of
36120 2003-12-15 Doug Rupp <rupp@gnat.com>
36122 * s-ctrl.ads: New file.
36124 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
36126 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
36127 (GNATBIND_OBJS): Add ada/s-crtl.o.
36129 * Makefile.in [VMS]: Clean up ifeq rules.
36131 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
36132 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
36133 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
36134 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
36135 s-tasdeb.adb: Update copyright.
36136 Import System.CRTL.
36137 Make minor modifications to use System.CRTL declared functions instead
36138 of importing locally.
36140 2003-12-15 GNAT Script <nobody@gnat.com>
36142 * Make-lang.in: Makefile automatically updated
36144 2003-12-11 Ed Falis <falis@gnat.com>
36146 * 5zinit.adb: Clean up.
36148 * 5zintman.adb (Notify_Exception): replaced case statement with a call
36149 to __gnat_map_signal, imported from init.c to support
36150 signal -> exception mappings that depend on the vxWorks version.
36153 Created and exported __gnat_map_signal to support signal -> exception
36154 mapping that is dependent on the VxWorks version.
36155 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
36157 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
36159 * 5wosinte.ads: Link with -mthreads switch.
36161 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
36163 * init.c (__gnat_install_handler [NetBSD]): Set
36164 __gnat_handler_installed, as done on all other platforms.
36165 Remove duplicated code.
36167 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
36169 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
36171 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
36173 * sinfo.ads: Fix inconsistent example code in comment.
36175 2003-12-11 Robert Dewar <dewar@gnat.com>
36177 * a-tiinau.adb: Add a couple of comments
36179 * sem_ch3.adb: Minor reformatting
36182 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
36183 Minor reformatting throughout
36185 2003-12-11 Ed Schonberg <schonberg@gnat.com>
36187 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
36188 bounds of a loop, create a separate block in order to generate proper
36189 cleanup actions to prevent memory leaks.
36191 * sem_res.adb (Resolve_Call): After a call to
36192 Establish_Transient_Scope, the call may be rewritten and relocated, in
36193 which case no further processing is needed.
36195 * sem_util.adb: (Wrong_Type): Refine previous fix.
36196 Fixes ACATS regressions.
36199 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
36202 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
36204 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
36205 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
36208 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
36211 2003-12-08 Robert Dewar <dewar@gnat.com>
36213 * 7sintman.adb: Minor reformatting
36215 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
36216 standard linker options to get standard libraries linked. We now plan
36217 to provide dummy versions of these libraries to match the appropriate
36218 configurable run-time (e.g. if a library is not needed at all, provide
36219 a dummy empty library).
36221 * targparm.ads: Configurable_Run_Time mode no longer affects linker
36222 options (-L parameters and standard libraries). What we plan to do is
36223 to provide dummy libraries where the libraries are not required.
36225 * gnatbind.adb: Minor comment improvement
36227 2003-12-08 Javier Miranda <miranda@gnat.com>
36229 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
36230 aggregate in the parent. Otherwise constants with limited aggregates
36231 are not supported. Add new formal to pass the component type (Ctype).
36232 It is required to call the corresponding IP subprogram in case of
36233 default initialized components.
36234 (Gen_Assign): In case of default-initialized component, generate a
36235 call to the IP subprogram associated with the component.
36236 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
36237 of aggregate with default initialized components.
36238 (Has_Default_Init_Comps): Improve implementation to recursively check
36239 all the present expressions.
36241 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
36242 to indicate that the initialization call corresponds to a
36243 default-initialized component of an aggregate.
36244 In case of default initialized aggregate with tasks this parameter is
36245 used to generate a null string (this is just a workaround that must be
36246 improved later). In case of discriminants, this parameter is used to
36247 generate a selected component node that gives access to the discriminant
36250 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
36251 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
36252 allocated aggregates with default-initialized components.
36254 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
36255 the box notation is used in positional aggregates.
36257 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
36259 * lib.ads: Fix typo in comment
36261 2003-12-08 Vincent Celier <celier@gnat.com>
36263 * prj.adb (Project_Empty): New component Unkept_Comments
36264 (Scan): Remove procedure; moved to Prj.Err.
36266 * prj.ads (Project_Data): New Boolean component Unkept_Comments
36267 (Scan): Remove procedure; moved to Prj.Err.
36269 * prj-dect.adb: Manage comments for the different declarations.
36271 * prj-part.adb (With_Record): New component Node
36272 (Parse): New Boolean parameter Store_Comments, defaulted to False.
36273 Set the scanner to return ends of line and comments as tokens, if
36274 Store_Comments is True.
36275 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
36276 comments are associated with these nodes. Store the node IDs in the
36278 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
36280 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
36281 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
36282 current project. Call Tree.Restore afterwards. Set the various nodes
36283 for comment storage (Next_End, End_Of_Line, Previous_Line,
36286 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
36287 defaulted to False.
36289 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
36290 to False. When Truncated is True, truncate the string, never go to the
36292 (Write_End_Of_Line_Comment): New procedure
36293 (Print): Process comments for nodes N_With_Clause,
36294 N_Package_Declaration, N_String_Type_Declaration,
36295 N_Attribute_Declaration, N_Typed_Variable_Declaration,
36296 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
36297 Process nodes N_Comment.
36299 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
36300 without comments and there are some comments, set the flag
36301 Unkept_Comments to True.
36302 (Scan): If there are comments, set the flag Unkept_Comments to True and
36303 clear the comments.
36304 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
36305 (Next_End_Nodes: New table
36306 (Comment_Zones_Of): New function
36307 (Scan): New procedure; moved from Prj. Accumulate comments in the
36308 Comments table and set end of line comments, comments after, after end
36310 (Add_Comments): New procedure
36311 (Save, Restore, Seset_State): New procedures
36312 (There_Are_Unkept_Comments): New function
36313 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
36314 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
36316 (First_Comment_After, First_Comment_After_End): New functions
36317 (First_Comment_Before, First_Comment_Before_End): New functions
36318 (Next_Comment): New function
36319 (End_Of_Line_Comment, Follows_Empty_Line,
36320 Is_Followed_By_Empty_Line): New functions
36321 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
36322 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
36323 (Set_Next_Comment): New procedure
36324 (Default_Project_Node): Associate comment before if the node can store
36327 * scans.ads (Token_Type): New enumeration value Tok_Comment
36328 (Comment_Id): New global variable
36330 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
36331 defaulted to False.
36332 (Scan): Store position of start of comment. If comments are tokens, set
36333 Comment_Id and set Token to Tok_Comment when scanning a comment.
36334 (Set_Comment_As_Token): New procedure
36336 * sinput-p.adb: Update Copyright notice
36337 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
36338 that no longer exists.
36340 2003-12-08 Javier Miranda <miranda@gnat.com>
36342 * sem_aggr.adb: Add dependence on Exp_Tss package
36343 Correct typo in comment
36344 (Resolve_Aggregate): In case of array aggregates set the estimated
36345 type of the aggregate before calling resolve. This is needed to know
36346 the name of the corresponding IP in case of limited array aggregates.
36347 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
36348 in case of default initialized array components.
36350 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
36351 types. Required to give support to limited aggregates in generic
36354 2003-12-08 Ed Schonberg <schonberg@gnat.com>
36356 * sem_ch3.adb (Check_Initialization): For legality purposes, an
36357 inlined body functions like an instantiation.
36358 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
36359 until bounds are analyzed, to diagnose premature use of type.
36361 * sem_util.adb (Wrong_Type): Improve error message when the type of
36362 the expression is used prematurely.
36364 2003-12-08 GNAT Script <nobody@gnat.com>
36366 * Make-lang.in: Makefile automatically updated
36368 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
36370 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
36371 they are automatically generated by Make-lang.in and cause nothing but
36372 maintenance troubles.
36374 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
36376 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
36377 version of this unit).
36379 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
36381 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
36382 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
36383 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
36384 the body of System.Interrupt_Management common to several targets.
36385 Update copyright notice when appropriate.
36387 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
36390 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
36391 to ensure that the kernel fills in the interrupted context structure
36392 before calling a signal handler, which is necessary to be able to
36393 unwind past it. Update the copyright notice.
36395 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
36397 * a-elchha.ads: New file.
36399 * a-elchha.adb: New default last chance handler. Contents taken from
36400 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
36402 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
36403 is moved to a-elchha.adb to provide a target-independent default last
36406 * Makefile.rtl: Add a-elchha.o
36408 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
36410 2003-12-05 Ed Schonberg <schonberg@gnat.com>
36412 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
36413 declared in an instance, do not inline the call if the instance is not
36414 frozen yet, to prevent order of elaboration problems.
36416 * sem_prag.adb: Add comments for previous fix.
36418 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
36420 * g-table.adb: Use the right variable in Set_Item.
36421 Update copyright notice.
36423 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
36425 * Makefile.in: Remove unused rules.
36427 2003-12-05 Vincent Celier <celier@gnat.com>
36429 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
36430 -nostdlib. Not needed here after all.
36432 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
36435 * adaint.h, adaint.c, g-os_lib.ads:
36436 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
36437 on some platforms (including FreeBSD), it is a 64 bit value.
36438 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
36440 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
36442 * gnatvsn.ads (Library_Version): Now contain only the relevant
36444 (Verbose_Library_Version): New constant.
36446 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
36447 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
36448 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
36450 * gnatlbr.adb: Clean up: replace Library_Version by
36451 Verbose_Library_Version.
36453 * make.adb, lib-writ.adb, exp_attr.adb:
36454 Clean up: replace Library_Version by Verbose_Library_Version.
36456 * 5lintman.adb: Removed.
36459 Update and simplify computation of LIBRARY_VERSION.
36460 Fix computation of GSMATCH_VERSION.
36461 5lintman.adb is no longer used: replaced by 7sintman.adb.
36463 2003-12-03 Robert Dewar <dewar@gnat.com>
36466 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
36467 name. Modified to consider small non-bit-packed arrays as troublesome
36468 and in need of component-by-component assigment expansion.
36470 2003-12-03 Vincent Celier <celier@gnat.com>
36472 * lang-specs.h: Process nostdlib as nostdinc
36474 * back_end.adb: Update Copyright notice
36475 (Scan_Compiler_Arguments): Process -nostdlib directly.
36477 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
36480 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
36481 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
36482 included in HIE_NONE_TARGET_PAIRS.
36484 2003-12-03 Ed Schonberg <schonberg@gnat.com>
36487 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
36488 is legal in an instance, because legality is cheched in the template.
36491 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
36492 appplied to an unchecked conversion of a formal parameter.
36495 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
36498 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
36500 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
36501 routines. The second one is new functionality to deal with backtracing
36502 through signal handlers.
36503 (unwind): Split into the two separate subroutines above.
36504 Update the documentation, and deal properly with sizeof (REG) different
36505 from sizeof (void*).
36507 2003-12-01 Nicolas Setton <setton@act-europe.fr>
36509 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
36510 so that the debugger can reliably access the value of the parameter,
36511 and therefore is able to display the exception name when an exception
36512 breakpoint is reached.
36514 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
36516 * fmap.adb: Fix typo in warning message.
36518 * g-socket.ads, g-socket.adb: Make Free a visible instance of
36519 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
36521 2003-12-01 Vincent Celier <celier@gnat.com>
36523 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
36525 (Build_Library): Get the switches only if Default_Switches is declared
36528 2003-12-01 Ed Schonberg <schonberg@gnat.com>
36530 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
36531 actuals that are indexed components, reanalyze actual to ensure that
36532 packed array references are properly expanded.
36534 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
36535 attempted assignment to a discriminant.
36537 2003-12-01 Robert Dewar <dewar@gnat.com>
36539 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
36542 * switch-c.adb: Minor reformatting of comments
36544 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
36546 * Makefile.in: Clean ups.
36548 2003-12-01 GNAT Script <nobody@gnat.com>
36550 * Make-lang.in: Makefile automatically updated
36552 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
36554 * 5wsystem.ads: Disable zero cost exception, not ready yet.
36556 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
36558 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
36559 to force serialization.
36561 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
36563 * g-socket.ads, g-socket.adb:
36564 Clarify documentation of function Stream. Introduce a Free procedure
36565 to release the returned Stream once it becomes unused.
36567 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
36569 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
36571 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
36572 since NT 4 cannot handle timeout values that are too large,
36573 e.g. DWORD'Last - 1.
36575 2003-11-26 Ed Schonberg <schonberg@gnat.com>
36578 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
36579 in procedure calls and whose expansion must be deferred.
36581 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
36585 (Build_Derived_Array_Type): Create operator for unconstrained type
36586 if ancestor is unconstrained.
36588 2003-11-26 Vincent Celier <celier@gnat.com>
36590 * make.adb (Project_Object_Directory): New global variable
36591 (Change_To_Object_Directory): New procedure
36592 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
36593 of Change_Dir directly. Do not change working directory to object
36594 directory of main project after each compilation.
36595 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
36597 Change to object directory of main project before binding step.
36598 (Initialize): Initialize Project_Object_Directory to No_Project
36601 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
36602 binding a Stand-Alone Library.
36604 * output.adb: Update Copyright notice
36605 (Write_Char): Output buffer when full
36607 2003-11-26 Robert Dewar <dewar@gnat.com>
36609 * sem_ch13.adb: (Check_Size): Reset size if size is too small
36612 (Check_Size): Fix documentation to include bit-packed array case
36614 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
36616 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
36618 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
36620 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
36623 * utils.c (init_gigi_decls): Change name of built-in setjmp to
36624 __builtin_setjmp, since this is apparently needed by recent
36627 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36629 * adadecode.c: Only include ctype.h if not IN_GCC.
36630 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
36632 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
36635 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
36636 signals and interrupts.
36638 * 5zintman.ads: New File.
36640 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
36641 add exception signals to the set of unmasked signals.
36644 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
36645 between signals and interrupts.
36646 Add to Unblocked_Signal_Mask the set of signals that are in
36650 Adding a check to see whether the Interrupt_ID we want to unmask is in
36651 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
36652 reason is that the index type of the Keep_Unmasked array is not always
36653 Interrupt_ID; it may be a subtype of Interrupt_ID.
36655 2003-11-24 Gary Dismukes <dismukes@gnat.com>
36658 (Remove_Side_Effects): Condition constantness of object created for a
36659 an unchecked type conversion on the constantness of the expression
36660 to ensure the correct value for 'Constrained when passing components
36661 of view-converted class-wide objects.
36663 2003-11-24 Robert Dewar <dewar@gnat.com>
36665 * par-load.adb (Load): Improve handling of misspelled and missing units
36666 Removes several cases of compilation abandoned messages
36668 * lib.adb: (Remove_Unit): New procedure
36670 * lib.ads: (Remove_Unit): New procedure
36672 * lib-load.adb: Minor reformatting
36674 2003-11-24 Vincent Celier <celier@gnat.com>
36677 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
36678 (Marking_Label): Label to mark processed source files. Incremented for
36680 (Gnatmake): Increase Marking_Labet for each executable
36681 (Is_Marked): Compare against marking label
36682 (Mark): Mark with marking label
36684 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
36687 Move the declaration of the TSD for System.Threads to System.Soft_Links.
36690 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
36691 (rts-cert): build a single relocatable object for the run-time lib.
36694 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
36697 Use gnatls rather than gcc to obtain the location of GNAT RTL for
36700 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
36702 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
36703 can not use it as before (that is, as a variable) when dumping it into
36704 the tree file. Add a local variable to store the result of this
36705 function and to be used as the string to be written into the tree.
36707 * scn.adb (Initialize_Scanner): Add comments explaining the recent
36710 * sinput.adb (Source_First, Source_Last): In case of
36711 Internal_Source_File, replace returning attributes of
36712 Internal_Source_Ptr (which is wrong) with returning attributes of
36715 2003-11-24 Ed Schonberg <schonberg@gnat.com>
36718 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
36719 used for implicit concatenation operators.
36723 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
36724 task bodies that are in the scope of a Suppress pragma.
36725 (Check_A Call): Use the flag to prevent spurious elaboration checks.
36727 * sinfo.ads, sinfo.adb:
36728 New flag No_Elaboration_Check on function/procedure calls, to properly
36729 suppress checks on calls in task bodies that are within a local suppress
36733 (Expand_Concatenate_Other): Use the proper integer type for the
36734 expression for the upper bound, to avoid universal_integer computations
36737 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
36739 * .cvsignore: Delete.
36741 2003-11-21 Andreas Schwab <schwab@suse.de>
36743 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
36745 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
36747 * 5wsystem.ads: Enable zero cost exception.
36749 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
36751 * 5ztiitho.adb: Remove an unreferenced variable.
36753 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
36755 * adaint.c: For FreeBSD, use mkstemp.
36757 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
36759 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
36761 2003-11-21 Robert Dewar <dewar@gnat.com>
36763 * bld.adb: Remove useless USE of gnatvsn
36765 * gnatchop.adb: Minor reformatting
36766 Clean up version handling to be more consistent
36768 * gnatxref.adb: Minor reformatting
36770 * gprcmd.adb: Minor reformatting
36771 Fix output of copyright to be more consistent with other tools
36773 2003-11-21 Vincent Celier <celier@gnat.com>
36775 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
36777 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
36779 * atree.adb (Initialize): Add initializations for global variables
36780 used in New_Copy_Tree.
36782 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
36783 Internal_Source_File as the actual).
36784 Put the set of statements creating Any_Character before the set of
36785 statements creating Any_Array to have Any_Character fully initialized
36786 when it is used in creating Any_Array.
36788 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
36789 not call Scan in case if the actual is Internal_Source_File
36790 Add 2003 to copyright note.
36792 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
36793 processing Internal_Source_File.
36795 * types.ads: Add the constant Internal_Source_File representing the
36796 source buffer for artificial source-code-like strings created within
36797 the compiler (the definition of Source_File_Index is changed).
36799 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
36801 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
36802 56system.ads: New file, FreeBSD version.
36804 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
36806 * Make-lang.in (ada.extraclean): Delete.
36808 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
36810 * gnatmem.adb: Clean up verbose output.
36812 * gprcmd.adb: Change copyright to FSF.
36814 2003-11-19 Vincent Celier <celier@gnat.com>
36816 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
36817 and Version (ignored).
36819 * symbols.ads: (Policy): New type
36820 (Initialize): New parameter Reference, Symbol_Policy and
36822 Remove parameter Force.
36823 Minor reformatting.
36825 * snames.ads, snames.adbadb: New standard names
36826 Library_Reference_Symbol_File and Library_Symbol_Policy
36829 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
36833 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
36835 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
36837 * prj.adb: (Project_Empty): New component Symbol_Data
36839 * prj.ads: (Policy, Symbol_Record): New types
36840 (Project_Data): New component Symbol_Data
36843 New attributes Library_Symbol_File, Library_Symbol_Policy and
36844 Library_Reference_Symbol_File.
36847 (Ada_Check): When project is a Stand-Alone library project, process
36848 attribute Library_Symbol_File, Library_Symbol_Policy and
36849 Library_Reference_Symbol_File.
36851 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36852 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
36853 5sml-tgt.adb (Build_Dynamic_Library): New parameter
36854 Symbol_Data (ignored).
36856 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
36857 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
36858 functions Option_File_Name and Version_String. Set new options of
36859 gnatsym related to symbol file, symbol policy and reference symbol
36863 Extensive modifications to take into account the reference symbol file,
36864 the symbol policy, the library version and to put in the symbol file the
36865 minor and major IDs.
36867 * bld.adb (Process_Declarative_Items): Put second argument of
36868 gprcmd to_absolute between single quotes, to avoid problems with
36871 * bld-io.adb: Update Copyright notice.
36872 (Flush): Remove last character of a line, if it is a back slash, to
36873 avoid make problems.
36876 Implement new scheme with reference symbol file and symbol policy.
36878 * g-os_lib.ads: (Is_Directory): Clarify comment
36880 2003-11-19 Robert Dewar <dewar@gnat.com>
36882 * atree.adb: Move New_Copy_Tree global variables to head of package
36884 * errout.adb: Minor reformatting
36886 2003-11-19 Javier Miranda <miranda@gnat.com>
36888 * sem_ch4.adb: (Diagnose_Call): Improve error message.
36889 Add reference to Ada0Y (AI-50217)
36891 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
36892 sem_util.adb: Add reference to AI-50217
36894 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
36896 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
36898 * sem_aggr.adb: Complete documentation of AI-287 changes
36900 * par-ch4.adb: Document previous changes.
36902 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
36903 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
36906 * exp_aggr.adb: Add references to AI-287 in previous changes
36908 2003-11-19 Ed Schonberg <schonberg@gnat.com>
36911 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
36912 in the rewriting is the result of an inlined call.
36914 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
36915 parameter is a type conversion, use original node to construct the
36916 post-call assignment, because expression may have been rewritten, e.g.
36917 if it is a packed array.
36920 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
36921 body, just as it is in an instance.
36922 Categorization routines
36924 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
36925 Instantiate_Object): Set proper sloc reference for message on missing
36928 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
36930 * Makefile.in: Add FreeBSD libgnat pairs.
36932 * usage.adb: Fix typo in usage message.
36934 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
36936 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
36937 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
36938 pragma Thread_Body.
36939 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
36941 * s-thread.adb: This file is now a dummy implementation of
36944 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
36946 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
36948 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
36950 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
36951 instanciation references in the parent type description.
36953 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36955 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
36957 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
36958 TYPE_PRECISION directly from esize.
36960 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
36963 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
36965 * init.c: Initialization routines for FreeBSD
36967 * link.c: Link info for FreeBSD
36969 * sysdep.c: Add the case of FreeBSD
36971 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
36973 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
36974 already called in System.Threads.
36976 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
36977 environment task, as it has been moved to System.Threads.Initialization.
36979 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
36981 * adaint.c (__gnatlib_install_locks): Only reference
36982 __gnat_install_locks on VMS, since other platforms can avoid using
36983 --enable-threads=gnat
36985 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36987 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
36989 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
36990 TYPE_PACKED_ARRAY_TYPE_P.
36991 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
36993 Part of PR ada/12806
36994 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
36995 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
36997 2003-11-17 Vincent Celier <celier@gnat.com>
36999 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
37001 Do not set exit status to Failure when Warning is True.
37002 (Gnatchop): Make errors "no compilation units found" and
37003 "no source files written" warnings only.
37005 * make.adb (Gnatmake): When using a project file, set
37006 Look_In_Primary_Dir to False.
37007 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
37008 and Local_Configuration_Pragmas in the project where they are declared
37009 not an extending project which might have inherited them.
37011 * osint.adb (Locate_File): If Name is already an absolute path, do not
37012 look for a directory.
37014 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
37015 -gnats (Check_Syntax) is used, issue only a warning, not an error.
37017 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
37018 in objects of type Variable_Value.
37020 * prj.ads: (Variable_Value): New component Project
37022 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
37023 is in a project extended by Project.
37025 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
37026 Project of Variable_Values to this new parameter value.
37027 (Expression): Set component Project of Variable_Values.
37028 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
37029 Set the component Project in array elements.
37031 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
37033 * errout.adb: (Initialize): Add initialization for error nodes.
37035 * sem_ch12.adb (Initialize): Add missing initializations for
37036 Exchanged_Views and Hidden_Entities.
37038 2003-11-17 Ed Schonberg <schonberg@gnat.com>
37040 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
37041 already instantiated tree for use in subsequent inlining.
37042 (Analyze_Associations, Instantiate_Formal_Subprogram,
37043 Instantiate_Object): improve error message for mismatch in
37046 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
37047 instantiations of subprograms declared in instances.
37049 2003-11-17 Javier Miranda <miranda@gnat.com>
37051 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
37052 executed only under the Extensions_Allowed flag.
37054 2003-11-17 Robert Dewar <dewar@gnat.com>
37056 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
37058 (Address_Image): Fix bug of returning 0x instead of 0x0
37059 Minor reformatting (function specs).
37061 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
37062 (missed case of 33-63)
37064 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
37066 * s-thread.adb: Add comments for pragma Restriction
37068 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
37069 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
37071 2003-11-17 Ed Falis <falis@gnat.com>
37073 * s-thread.adb: Added No_Tasking restriction for this implementation.
37075 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
37077 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
37078 instanciation references in the parent type description.
37080 2003-11-17 GNAT Script <nobody@gnat.com>
37082 * Make-lang.in: Makefile automatically updated
37084 2003-11-16 Jason Merrill <jason@redhat.com>
37086 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
37087 and TAGS files that include them for each front end.
37089 2003-11-14 Andreas Jaeger <aj@suse.de>
37091 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
37092 is the canonical version.
37093 * misc.c (gnat_handle_option): Likewise.
37095 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
37097 * 5nsystem.ads: New file for x86_64-linux-gnu.
37099 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
37101 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
37103 * comperr.adb: Fix logic in previous change.
37105 2003-11-13 Vincent Celier <celier@gnat.com>
37107 * 5bml-tgt.adb (Build_Dynamic_Library): Use
37108 Osint.Include_Dir_Default_Prefix instead of
37109 Sdefault.Include_Dir_Default_Name.
37111 * gnatlbr.adb: Update Copyright notice
37112 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
37113 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
37114 instead of Sdefault.Object_Dir_Default_Name
37117 (Process_Binder_File): Never suppress the option following -Xlinker
37120 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
37121 Sdefault.Object_Dir_Default_Name.
37123 * osint.ads, osint.adb:
37124 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
37125 Minor reformatting.
37127 * vms_conv.ads: Minor reformating
37128 Remove GNAT STANDARD and GNAT PSTA
37131 Allow GNAT MAKE to have several files on the command line.
37132 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
37133 Sdefault.Object_Dir_Default_Name.
37135 Remove data for GNAT STANDARD
37138 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
37139 Remove data for GNAT STANDARD
37140 Remove options and documentation for -gnatwb/-gnatwB: these warning
37141 options no longer exist.
37143 2003-11-13 Ed Falis <falis@gnat.com>
37145 * 5zthrini.adb: (Init_RTS): Made visible
37148 (Register): Removed unnecessary call to taskVarGet that checked whether
37149 an ATSD was already set as a task var for the argument thread.
37152 Updated comment to reflect that this is a VxWorks version
37153 Added context clause for System.Threads.Initialization
37154 Added call to System.Threads.Initialization.Init_RTS
37156 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
37159 (Init_RTS): New procedure, for the initialization of the run-time lib.
37162 Remove dependancy on System.Init, so that this file can be used in the
37163 AE653 sequential run-time lib.
37165 2003-11-13 Robert Dewar <dewar@gnat.com>
37167 * bindgen.adb: Minor reformatting
37169 2003-11-13 Ed Schonberg <schonberg@gnat.com>
37172 (Apply_Discriminant_Check): Do no apply check if target type is derived
37173 from source type with no applicable constraint.
37176 (Ensure_System_Dependency): Do not apply the style checks that may have
37177 been specified for the main unit.
37180 (Find_Selected_Component): Further improvement in error message, with
37184 (Resolve): Handle properly the case of an illegal overloaded protected
37187 2003-11-13 Javier Miranda <miranda@gnat.com>
37190 (Has_Default_Init_Comps): New function to check the presence of
37191 default initialization in an aggregate.
37192 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
37193 extension aggregate of a limited record. In addition, a new formal
37194 was added to do not initialize the record controller (if any) during
37195 this recursive expansion of ancestors.
37196 (Init_Controller): Add support for limited record components.
37197 (Expand_Record_Aggregate): In case of default initialized components
37198 convert the aggregate into a set of assignments.
37200 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
37201 describing the new syntax.
37202 Nothing else needed to be done because this subprogram delegates part of
37203 its work to P_Precord_Or_Array_Component_Association.
37204 (P_Record_Or_Array_Component_Association): Give support to the new
37205 syntax for default initialization of components.
37208 (Resolve_Aggregate): Relax the strictness of the frontend in case of
37209 limited aggregates.
37210 (Resolve_Record_Aggregate): Give support to default initialized
37212 (Get_Value): In case of default initialized components, duplicate
37213 the corresponding default expression (from the record type
37214 declaration). In case of default initialization in the *others*
37215 choice, do not check that all components have the same type.
37216 (Resolve_Extension_Aggregate): Give support to limited extension
37220 (Check_Initialization): Relax the strictness of the front-end in case
37221 of aggregate and extension aggregates. This test is now done in
37222 Get_Value in a per-component manner.
37224 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
37225 expression corresponds to a limited aggregate. This test is now done
37228 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
37231 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
37232 present in an N_Component_Association node
37234 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
37236 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
37237 type-conformant entry only if they are homographs.
37239 2003-11-13 GNAT Script <nobody@gnat.com>
37241 * Make-lang.in: Makefile automatically updated
37243 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37245 * adadecode.c: Use <> form of include for ctype.h.
37246 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
37248 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37250 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
37251 Works around PR middle-end/6552.
37253 2003-11-10 Ed Falis <falis@gnat.com>
37255 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
37257 * 5zinit.adb: (Install_Handler): Moved back to spec
37258 (Install_Signal_Handlers): Deleted
37260 * 5zthrini.adb: Added context clause for System.Storage_Elements
37261 (Register): Only handles creation of taskVar; initialization moved to
37263 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
37264 Added declaration of environment task secondary stack and
37267 * s-thread.adb: Implement bodies for thread body processing
37270 Added comment identifying supported targets for pragma Thread_Body.
37272 2003-11-10 Pascal Obry <obry@gnat.com>
37274 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
37278 (Open): Properly check for string length before copying into the buffer.
37279 Raises Name_Error if buffer is too small. Note that this was a potential
37282 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
37284 * bindgen.adb, comperr.adb: Code clean ups.
37285 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
37287 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
37289 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
37291 2003-11-10 Vincent Celier <celier@gnat.com>
37294 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
37297 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
37299 * prj.adb: (Project_Empty): Add new boolean component Virtual
37301 * prj.ads: (Virtual_Prefix): New constant string
37302 (Project_Data): New boolean component Virtual
37304 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
37305 a library project is extended by a virtual extending project.
37308 Modifications throughout to implement extending-all project, including:
37309 (Virtual_Hash, Processed_Hash): New hash tables
37310 (Create_Virtual_Extending_Project): New procedure
37311 (Look_For_Virtual_Projects_For): New procedure
37314 (Process): After checking the projects, if main project is an
37315 extending-all project, set the object directory of all virtual extending
37316 project to the object directory of the main project.
37317 Adjust error message when a virtual extending project has the same
37318 object directory as an project being extended.
37319 (Recursive_Process): If name starts with the virtual prefix, set Virtual
37320 to True in the project data.
37323 (Default_Project_Node): Add new boolean component Extending_All
37324 (Is_Extending_All): New function
37325 (Set_Is_Extending_All): New procedure
37327 * prj-tree.ads: (Is_Extending_All): New function
37328 (Set_Is_Extending_All): New procedure
37329 (Project_Node_Record): New boolean component Extending_All
37331 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
37334 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
37336 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
37337 "gprcmd prefix" to define it.
37339 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
37341 * einfo.ads: Fix a typo and remove an extraneous word in comments.
37344 (Create_Dummy_Package_Unit): Set the scope of the entity for the
37345 created dummy package to Standard_Standard, not to itself, to
37346 defend other parts of the front-end against encoutering a cycle in
37350 (Analyze_With_Clause): When setting the entities for the successive
37351 N_Expanded_Names that constitute the name of a child unit, do not
37352 attempt to go further than Standard_Standard in the chain of scopes.
37353 This case arises from the placeholder units created by
37354 Create_Dummy_Package_Unit in the case of a with_clause for a
37355 nonexistent child unit.
37357 2003-11-10 Ed Schonberg <schonberg@gnat.com>
37360 (Expand_Thread_Body): Place subprogram on scope stack, so that new
37361 declarations are given the proper scope.
37364 (Check_Expr_Constants): Reject an expression that contains a constant
37365 created during expansion, and that appears after the object to which
37366 the address clause applies.
37368 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
37369 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
37370 that uses 'Range of a function call with controlled components, so
37371 that the function result can be finalized before starting the loop.
37374 (Find_Selected_Component): Improve error message when prefix is
37375 an implicit dereference of an incomplete type.
37377 2003-11-10 Robert Dewar <dewar@gnat.com>
37379 * opt.ads: New Print_Standard flag for -gnatS switch
37381 * sem_ch13.adb: Remove some additional checks for unaligned arrays
37383 * cstand.adb (Create_Standard): Print out package standard if -gnatS
37386 * debug.adb: Update doc for -gnatds to discuss relationship with new
37389 * sinfo.adb: Add new field Entity_Or_Associated_Node
37391 * sinfo.ads: Add new field Entity_Or_Associated_Node
37392 Update documentation for Associated_Node and Entity fields to clarify
37393 relationship and usage.
37396 (Write_Id): Properly process Associated_Node field in generic template
37399 Recognize new -gnatS switch for printing package Standard
37400 This replaces gnatpsta
37403 Add line for new -gnatS switch for printing package Standard
37404 This replaces gnatpsta
37406 2003-11-10 Andreas Jaeger <aj@suse.de>
37408 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
37411 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
37413 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
37416 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
37418 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
37421 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
37423 * sysdep.c: Add handling of cygwin.
37425 2003-11-10 GNAT Script <nobody@gnat.com>
37427 * Make-lang.in: Makefile automatically updated
37429 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
37432 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
37433 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
37434 Replace GNAT_ROOT by GCC_ROOT.
37436 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
37438 2003-11-06 Zack Weinberg <zack@codesourcery.com>
37440 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
37441 and update for changed meaning of GET_MODE_BITSIZE.
37443 2003-11-04 Doug Rupp <rupp@gnat.com>
37445 * sysdep.c: Problem discovered during IA64 VMS port.
37446 [VMS] #include <unixio.h> to get proper prototypes.
37449 Issues discovered/problems fixed during IA64 VMS port.
37450 [VMS] #define _POSIX_EXIT for proper semantics.
37451 [VMS] #include <unixio.h> for proper prototypes.
37452 [VMS] (fork): #define IA64 version.
37453 (__gnat_os_exit): Remove unnecessary VMS specific code.
37455 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37457 Part of PR ada/12806
37458 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
37462 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
37465 * targtyps.c, decl.c, misc.c,
37466 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
37467 routines to work around change in FP sizing semantics in GCC.
37470 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
37472 * gigi.h: (enumerate_modes): New function.
37474 * Make-lang.in: (ada/misc.o): Add real.h.
37476 * misc.c: (enumerate_modes): New function.
37478 2003-11-04 Robert Dewar <dewar@gnat.com>
37480 * 3vtrasym.adb: Minor reformatting
37481 Use terminology encoded/decoded name, rather than C++ specific notion
37482 of mangling (this is the terminology used throughout GNAT).
37484 * einfo.h: Regenerated
37486 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
37489 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
37491 * par-prag.adb: Add dummy entry for Thread_Body pragma
37494 Add entries for System.Threads entities for thread body processing
37497 (Analyze_Pragma, Access attributes): Check these are not applied to a
37498 thread body, since this is not permitted
37500 * sem_prag.adb: Add processing for Thread_Body pragma.
37504 (Resolve_Call): Check for incorrect attempt to call a thread body
37505 procedure with a direct call.
37507 * snames.ads, snames.adb: Add entry for Thread_Body pragma
37508 Add names associated with thread body expansion
37510 * snames.h: Add entry for Thread_Body pragma
37512 * s-thread.adb: Add entries for thread body processing
37513 These are dummy bodies so far
37515 * s-thread.ads: Add documentation on thread body handling.
37516 Add entries for thread body processing.
37518 2003-11-04 Javier Miranda <miranda@gnat.com>
37521 (Build_Limited_Views): Return after posting an error in case of limited
37522 with_clause on subprograms, generics, instances or generic renamings
37523 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
37524 on subprograms, generics, instances or generic renamings
37526 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
37528 * raise.c (setup_to_install): Correct mistake in last revision; two
37529 arguments out of order.
37531 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
37532 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
37533 notice, missed in previous change.
37534 Remove trailing blanks and other style errors introduced in previous
37537 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
37539 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
37540 rid of the wrapper for a LJM type, ensuring we don't do that if the
37541 field is addressable. This avoids potential low level type view
37542 mismatches later on, for instance in a by-reference argument passing
37545 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37547 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
37548 aligned at byte boundary.
37550 2003-11-04 Joel Brobecker <brobecker@gnat.com>
37552 * decl.c (components_to_record): Do not delete the empty variants from
37553 the end of the union type.
37555 2003-11-04 Ed Schonberg <schonberg@gnat.com>
37557 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
37558 operation for a derived type, an explicit declaration may use a local
37559 subtype of Boolean.
37561 2003-11-04 Vincent Celier <celier@gnat.com>
37563 * make.adb (Gnatmake): Allow main sources on the command line with a
37564 library project when it is only for compilation (no binding or
37567 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37569 * Makefile.in: Remove many duplicate variables.
37571 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
37573 * Make-lang.in (dvi): Move targets to $(docobjdir).
37574 (gnat_ug_vms.dvi): Simplify rule and adjust target.
37575 (gnat_ug_wnt.dvi): Likewise.
37576 (gnat_ug_unx.dvi): Likewise.
37577 (gnat_ug_vxw.dvi): Likewise.
37578 (gnat_rm.dvi): Likewise.
37579 (gnat-style.dvi): Likewise.
37581 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
37583 * gigi.h: Missed commit from update for C90.
37585 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
37587 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
37589 2003-10-31 Andreas Schwab <schwab@suse.de>
37591 * raise.c (get_action_description_for): Fix typo in last change.
37593 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
37596 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
37597 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
37599 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
37601 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
37602 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
37603 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
37604 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
37605 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
37607 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
37610 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
37611 numbers when symbol name is too long.
37613 2003-10-30 Ed Falis <falis@gnat.com>
37615 * g-signal.ads, g-signal.adb: New files
37617 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
37619 * Makefile.rtl: Introduce GNAT.Signals
37621 2003-10-30 Robert Dewar <dewar@gnat.com>
37623 * freeze.adb: Minor reformatting
37625 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
37627 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
37628 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
37629 New handling of Id_Check parameter to improve recognition of keywords
37630 used as identifiers.
37631 Update copyright notice to include 2003
37633 2003-10-29 Robert Dewar <dewar@gnat.com>
37635 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
37636 sem_ch10.adb: Minor reformatting
37638 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
37639 (Expand_Assign_Record): Test right hand side for bit unaligned as well
37641 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
37643 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
37644 Support for TBK$SYMBOLIZE-based symbolic traceback.
37646 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
37649 Revert previous change, that did not work well when pragma No_Run_Time
37650 was used in conjunction with a run-time other than ZFP.
37652 2003-10-29 Vincent Celier <celier@gnat.com>
37655 (Gnatmake): When there are no Ada mains in attribute Main, disable the
37656 bind and link steps only is switch -z is not used.
37658 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
37660 * Makefile.generic: Remove duplicated setting of CC.
37662 * Makefile.prolog: Set CC to gcc by default, to override make's
37665 * einfo.h: Regenerated.
37667 2003-10-29 Ed Schonberg <schonberg@gnat.com>
37669 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
37670 current body, after compiling subunit.
37672 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
37673 when in deleted code, because gigi needs properly ordered freeze
37674 actions to annotate types.
37676 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
37677 prevent the premature freezing of record type that contains
37678 subcomponents with a private type that does not yet have a completion.
37680 2003-10-29 Javier Miranda <miranda@gnat.com>
37683 (Analyze_Package_Instantiation): Check that instances can not be used in
37684 limited with_clauses.
37687 (Analyze_Package_Renaming): Check that limited withed packages cannot
37688 be renamed. Improve text on error messages related to limited
37691 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
37693 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
37694 Update copyright notice.
37696 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
37697 (Install_Limited_Context_Clauses): New subprogram that isolates all the
37698 checks required for limited context_clauses and installs the limited
37700 (Install_Limited_Withed_Unit): Complete its documentation.
37701 (Analyze_Context): Check that limited with_clauses are only allowed in
37703 (Install_Context): Call Install_Limited_Context_Clauses after the
37704 parents have been installed.
37705 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
37706 package as 'From_With_Type'; this mark indicates that the limited view
37707 is installed. Used to check bad usages of limited with_clauses.
37708 (Build_Limited_Views): Do not add shadow entities to the scope's list
37709 of entities. Do not add real entities to the Non_Limited_Views chain.
37710 Improve error notification.
37711 (Remove_Context_Clauses): Remove context clauses in two phases:
37712 limited views first and regular views later (to maintain the
37714 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
37715 its visible entities.
37717 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
37719 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
37720 with any type that Is_Fixed_Point_Type.
37722 * sinfo.ads: Fix documentation for Associated_Node attribute.
37724 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
37726 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
37727 both '-gnatc' and '-gnatt' are specified.
37729 * atree.adb (Initialize): Add initialization for Node_Count (set to
37732 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37734 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
37735 do not consider as Pure.
37737 Part of implementation of function-at-a-time:
37739 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
37740 (tree_transform): Add new argument to build_component_ref.
37741 (tree_transform, case N_Assignment_Statement): Make and return an
37743 (tree_transform): If result IS_STMT, set flags and return it.
37744 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37746 * utils2.c (build_simple_component_ref, build_component_ref): Add new
37748 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
37749 (build_allocator): Likewise.
37751 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
37752 Add new arg to build_component_ref.
37753 (maybe_unconstrained_array, unchecked_convert): Likewise.
37755 * ada-tree.def (EXPR_STMT): New code.
37757 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
37759 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
37760 build_component_ref calls.
37762 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
37764 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37765 (build_component_ref): Add new argument, NO_FOLD_P.
37767 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
37769 * Makefile.generic: Add missing substitution on object_deps handling.
37772 * Make-lang.in (check-ada): Enable ACATS test suite.
37774 2003-10-27 Robert Dewar <dewar@gnat.com>
37777 (Freeze_Array_Type): We do not need an initialization routine for types
37778 derived from String or Wide_String. They should be treated the same
37779 as String and Wide_String themselves. This caused problems with the
37780 use of Initialize_Scalars.
37783 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
37784 composites. This allows use of component clauses that are not byte
37788 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
37789 is an attempt to pack an array of atomic objects.
37791 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
37793 2003-10-27 Pascal Obry <obry@gnat.com>
37796 (Basename): Check for drive letters in a pathname only on DOS based OS.
37798 2003-10-27 Vincent Celier <celier@gnat.com>
37801 (Gnatmake): When unable to change dir to the object dir, display the
37802 content of the parent dir of the obj dir, to try to understand why this
37805 2003-10-27 GNAT Script <nobody@gnat.com>
37807 * Make-lang.in: Makefile automatically updated
37809 2003-10-27 Ed Schonberg <schonberg@gnat.com>
37812 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
37813 should not be done in Save/Restore_Scope_Stack, because it is performed
37817 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37818 whether use clauses should be removed/restored.
37821 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37822 whether use clauses should be removed/restored.
37824 2003-10-26 Andreas Jaeger <aj@suse.de>
37826 * Makefile.in: Remove duplicated lines.
37828 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37830 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
37831 minimize the differences with ACT tree.
37833 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
37834 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
37835 Gnatvsn.Gnat_Static_Version_String to reduce differences between
37838 2003-10-24 Pascal Obry <obry@gnat.com>
37841 * adadecode.c (ostrcpy): New function.
37842 (__gnat_decode): Use ostrcpy of strcpy.
37843 (has_prefix): Set first parameter a const.
37844 (has_suffix): Set first parameter a const.
37845 Update copyright notice. Fix source name in header.
37846 Removes a trailing space.
37848 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
37851 Remove the test against being in No_Run_Time_Mode before generating a
37852 call to Register_Tag. It is redundant with the test against the
37853 availability of the function Register_Tag.
37855 2003-10-24 Vincent Celier <celier@gnat.com>
37857 * g-catiio.adb: (Month_Name): Correct spelling of February
37859 * make.adb: (Mains): New package
37860 (Initialize): Call Mains.Delete
37861 (Gnatmake): Check that each main on the command line is a source of a
37862 project file and, if there are several mains, each of them is a source
37863 of the same project file.
37864 (Gnatmake): When a foreign language is specified in attribute Languages,
37865 no main is specified on the command line and attribute Mains is not
37866 empty, only build the Ada main. If there is no Ada main, just compile
37867 the Ada sources and their closure.
37868 (Gnatmake): If a main is specified on the command line with directory
37869 information, check that the source exists and, if it does, that the path
37870 is the actual path of a source of a project.
37873 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
37874 Full_Path is True, return the full path instead of the simple file name.
37875 (Project_Of): New function
37878 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
37879 defaulted to False.
37880 (Project_Of): New function
37882 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37884 * Makefile.generic:
37885 Ensure objects of main project are always checked and rebuilt if needed.
37886 Set CC to gcc by default.
37887 Prepare new handling of link by creating a global archive (not activated
37890 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37891 stringt.h: Update copyright notice. Remove trailing blanks.
37892 Fix source name in header.
37894 2003-10-24 Robert Dewar <dewar@gnat.com>
37896 * sem_ch12.adb: Minor reformatting
37899 Minor reformatting (including new function return style throughout)
37902 Minor reformatting (including new function return style throughout)
37904 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37906 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37907 stringt.h: Update copyright notice. Remove trailing blanks.
37908 Fix source name in header.
37910 2003-10-24 GNAT Script <nobody@gnat.com>
37912 * Make-lang.in: Makefile automatically updated
37914 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
37916 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
37917 stringt.h: Convert to ISO C90 declarations and definitions.
37919 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
37922 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
37923 External_Tag attribute definition clauses.
37925 2003-10-23 Ed Schonberg <schonberg@gnat.com>
37928 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
37929 child unit, generate a fully qualified name to avoid spurious errors
37930 when the context contains renamings of different child units with
37931 the same simple name.
37933 * exp_dbug.ads: Add documentation on name qualification for renamings
37936 2003-10-23 Robert Dewar <dewar@gnat.com>
37938 * g-regpat.ads, g-regpat.adb: Minor reformatting
37940 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
37942 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
37944 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37946 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
37949 * urealp.h: (Machine): Update to proper definition.
37951 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
37953 * init.c, adaint.c: Minor reformatting.
37955 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
37957 * adaint.c (w32_epoch_offset): Define static const at file level.
37958 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
37959 rather than t_create, t_access in call to GetFileTime. Use union
37960 to convert between FILETIME and unsigned long long.
37961 (__gnat_file_time_name): Test for invalid file handle.
37962 (__gnat_set_filetime_name): Support win32 targets using
37963 w32api SetFileTime.
37965 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
37967 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
37969 * ctrl_c.c (__gnat_int_handler): Remove declaration.
37971 * decl.c (creat_concat_name): Const-ify prefix.
37973 * adaint.c: Include ctype.h if __MINGW32__.
37974 (__gnat_readlink): Mark arguments as possibly unused.
37975 (__gnat_symlink): Likewise.
37976 (__gnat_is_symbolic_link): Likewise.
37977 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
37979 (__gnat_file_time_name): Don't declare struct stat statbuf when
37981 (__gnat_is_absolute_path): Add parenthesis around condition of
37982 'if' statement to avoid warning.
37983 (__gnat_plist_init): Specify void as parameter.
37984 (plist_enter): Likewise.
37985 (plist_leave): Likewise.
37986 (remove_handle): Make static. Initialize prev.
37988 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
37991 * Makefile.in: Disable build of gnatpsta.
37992 * cstreams.c (__gnat_full_name): Minor improvements and clean up
37993 of previous change.
37995 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37997 * tracebak.c (MAX): Avoid redefinition warning.
37999 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
38000 Change msg to const char *.
38001 (__gnat_install_handler): Remove ss, unused.
38002 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
38004 * cstreams.c (__gnat_full_name): Declare p only when used.
38005 (__gnat_full_name) [sgi] Return buffer.
38007 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
38009 * mingw32.h: New file.
38010 * gnat_wrapper.adb: New file.
38012 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
38014 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
38015 string match a pre compiled regular expression (the corresponding
38016 version of the function working on a raw regular expression)
38017 Fix typos in various comments
38018 Update copyright notice in spec
38020 2003-10-21 Gary Dismukes <dismukes@gnat.com>
38023 (Component_Needs_Simple_Initialization): Return False when the type is a
38024 packed bit array. Revise spec comments to document this case.
38027 (Expand_Pragma_Import): Set any expression on the imported object to
38028 empty to avoid initializing imported objects (in particular this
38029 covers the case of zero-initialization of bit arrays).
38030 Update copyright notice.
38032 2003-10-21 Ed Schonberg <schonberg@gnat.com>
38035 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
38036 a subunit is missing.
38037 (Instantiate_Subprogram_Body): If body of function is missing, set type
38038 of return expression explicitly in dummy body, to prevent cascaded
38039 errors when a subunit is missing.
38043 (Access_Subprogram_Declaration): Verify that return type is valid.
38047 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
38052 (Corresponding_Discriminant): If the scope of the discriminant is a
38053 private type without discriminant, use its full view.
38056 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
38058 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
38059 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
38060 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
38061 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
38062 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
38063 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
38064 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
38065 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
38066 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
38067 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
38068 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
38069 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
38070 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
38071 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
38072 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
38073 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
38074 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
38075 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
38076 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
38077 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
38078 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
38079 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
38080 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
38081 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
38082 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
38083 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
38084 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
38085 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
38086 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
38087 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
38088 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
38089 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
38090 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
38091 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
38092 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
38093 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
38094 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
38095 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
38096 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
38097 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
38098 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
38099 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
38100 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
38101 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
38102 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
38103 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
38104 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
38105 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
38106 vms_conv.ads, vms_conv.adb, vms_data.ads,
38107 vxaddr2line.adb: Files added. Merge with ACT tree.
38109 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
38110 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
38111 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
38112 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
38113 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
38114 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
38115 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
38116 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
38117 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
38118 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
38120 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38121 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38122 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38123 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38124 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
38125 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
38126 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38127 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
38128 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
38129 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
38130 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
38131 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
38132 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
38133 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
38134 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
38135 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
38136 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
38137 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38138 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
38139 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
38140 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
38141 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
38142 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
38143 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
38144 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
38145 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
38146 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
38147 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
38148 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
38149 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
38150 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
38151 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
38152 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
38153 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
38154 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
38155 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
38156 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
38157 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
38158 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
38159 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
38160 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
38161 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
38162 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
38163 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
38164 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
38165 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
38166 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
38167 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
38168 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
38169 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
38170 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
38171 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
38172 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
38173 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
38174 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
38175 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
38176 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
38177 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
38178 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
38179 checks.adb, checks.ads, cio.c, comperr.adb,
38180 comperr.ads, csets.adb, cstand.adb, cstreams.c,
38181 debug_a.adb, debug_a.ads, debug.adb, decl.c,
38182 einfo.adb, einfo.ads, errout.adb, errout.ads,
38183 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
38184 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
38185 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
38186 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
38187 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
38188 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
38189 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
38190 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
38191 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
38192 fe.h, fmap.adb, fmap.ads, fname.adb,
38193 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
38194 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
38195 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
38196 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
38197 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
38198 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
38199 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
38200 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
38201 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
38202 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
38203 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
38204 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
38205 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
38206 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
38207 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
38208 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
38209 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
38210 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
38211 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
38212 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
38213 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
38214 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
38215 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
38216 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
38217 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
38218 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
38219 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
38220 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
38221 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
38222 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
38223 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
38224 layout.adb, lib.adb, lib.ads, lib-list.adb,
38225 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
38226 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38227 link.c, live.adb, make.adb, make.ads,
38228 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
38229 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
38230 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
38231 misc.c, mkdir.c, mlib.adb, mlib.ads,
38232 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
38233 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
38234 namet.adb, namet.ads, namet.h, nlists.ads,
38235 nlists.h, nmake.adt, opt.adb, opt.ads,
38236 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
38237 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
38238 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38239 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
38240 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
38241 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
38242 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
38243 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
38244 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
38245 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
38246 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
38247 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
38248 prj-util.adb, prj-util.ads, raise.c, raise.h,
38249 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
38250 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
38251 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
38252 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
38253 scans.ads, scn.adb, scn.ads, s-crc32.adb,
38254 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
38255 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
38256 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
38257 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
38258 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
38259 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38260 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38261 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
38262 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
38263 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
38264 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
38265 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
38266 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
38267 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
38268 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38269 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
38270 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
38271 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
38272 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
38273 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
38274 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
38275 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
38276 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
38277 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
38278 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
38279 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
38280 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
38281 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
38282 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
38283 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
38284 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
38285 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
38286 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
38287 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
38288 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
38289 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
38290 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
38291 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
38292 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
38293 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
38294 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
38295 stringt.adb, stringt.ads, stringt.h, style.ads,
38296 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
38297 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
38298 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
38299 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
38300 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
38301 table.adb, table.ads, targparm.adb, targparm.ads,
38302 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
38303 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
38304 ttypes.ads, types.ads, types.h, uintp.adb,
38305 uintp.ads, uintp.h, uname.adb, urealp.adb,
38306 urealp.ads, urealp.h, usage.adb, utils2.c,
38307 utils.c, validsw.adb, validsw.ads, widechar.adb,
38308 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
38309 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
38310 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
38311 gnatvsn.ads: Merge with ACT tree.
38313 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
38315 2003-10-20 Mark Mitchell <mark@codesourcery.com>
38317 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
38318 (gnat_ug_vmx.info): Likewise.
38319 (gnat_ug_vxw.info): Likewise.
38320 (gnat_ug_wnt.info): Likewise.
38321 (gnat_rm.info): Likewise.
38322 (gnat-style.info): Likewise.
38324 * Make-lang.in (ada.install-info): Remove target.
38325 (info): New target.
38326 (install-info): Likewise.
38327 (gnat_ug_unx.info): Simplify rule.
38328 (gnat_ug_vmx.info): Likewise.
38329 (gnat_ug_vxw.info): Likewise.
38330 (gnat_ug_wnt.info): Likewise.
38331 (gnat_rm.info): Likewise.
38332 (gnat-style.info): Likewise.
38334 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
38336 * Make-lang.in: Replace uses of $(target_alias) with
38337 $(target_noncanonical).
38338 * ada/Makefile.in: Remove unused mention of $(target_alias).
38340 2003-10-06 Mark Mitchell <mark@codesourcery.com>
38342 * Make-lang.in (ada.info): Replace with ...
38344 (ada.dvi): Replace with ...
38347 2003-09-29 Zack Weinberg <zack@codesourcery.com>
38349 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
38350 initialize dconstp5 and dconstmp5.
38352 2003-09-28 Richard Henderson <rth@redhat.com>
38354 * trans.c (tree_transform): Update call to expand_asm_operands.
38356 2003-09-21 Richard Henderson <rth@redhat.com>
38358 * trans.c, utils.c: Revert.
38360 2003-09-21 Richard Henderson <rth@redhat.com>
38362 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
38365 2003-09-04 Michael Matz <matz@suse.de>
38367 * misc.c: Include "target.h".
38368 * Make-lang.in (misc.o): Add dependency on target.h.
38370 2003-09-03 DJ Delorie <dj@redhat.com>
38372 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
38375 2003-08-30 Zack Weinberg <zack@codesourcery.com>
38377 * Makefile.in: Update substitutions to match changes to
38378 configure. Use include directives instead of @-insertions
38379 to read in host and target fragments. Add a rule to
38380 regenerate ada/Makefile.
38382 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
38384 * lang-options.h: Remove.
38385 * lang.opt: Add help text.
38387 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
38389 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
38392 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
38394 * misc.c (gnat_handle_option): Don't handle filenames.
38396 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
38398 * Make-lang.in: Replace PWD with PWD_COMMAND.
38399 * Makefile.adalib: Likewise.
38400 * Makefile.in: Likewise.
38402 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
38404 * misc.c (gnat_argv): Revert last change.
38405 (gnat_handle_option, gnat_init_options): Copy arguments.
38407 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
38409 * misc.c (gnat_argv): Make const.
38411 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
38413 * misc.c (save_argc, save_argv): Keep non-static!
38415 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
38417 * misc.c (save_argc, save_argv): Make static.
38418 (gnat_init_options): New prototype.
38419 (gnat_init_options): Update.
38421 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
38423 * gnat_ug.texi: Remove unlikely characters from @vars.
38424 * gnat_ug_vms.texi: Regenerate.
38426 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
38428 * misc.c (record_code_position): Adjust emit_note call.
38430 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
38432 * misc.c (gnat_handle_option): Don't check for missing arguments.
38434 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
38436 * utils.c (end_subprog_body): Adjust expand_function_end call.
38438 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
38440 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
38443 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
38445 * lang.opt: Declare Ada.
38446 * misc.c (gnat_init_options): Update.
38448 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
38450 * utils.c (begin_subprog_body): Adjust init_function_start call.
38452 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
38454 * Make-lang.in: Update to use options.c and options.h.
38455 * misc.c: Include options.h not aoptions.h.
38456 (gnat_handle_option): Abort on unrecognized switch.
38457 (gnat_init_options): Request Ada switches.
38459 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
38461 * lang.opt: Add -Wall.
38462 * misc.c (gnat_handle_option): Handle it.
38464 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
38466 * misc.c (gnat_handle_option): Fix warnings.
38468 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
38470 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
38472 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
38474 * Make-lang.in: Update to handle command-line options.
38475 * lang.opt: New file.
38476 * misc.c: Include aoptions.h.
38477 (cl_options_count, cl_options): Remove.
38478 (gnat_handle_option): New.
38479 (gnat_decode_option): Remove.
38480 (LANG_HOOKS_DECODE_OPTION): Remove.
38481 (LANG_HOOKS_HANDLE_OPTION): Override.
38483 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
38485 * init.c, misc.c, trans.c, utils.c: Remove dead code.
38487 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
38489 * Makefile.in: Replace "host_canonical" with "host" for autoconf
38492 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
38494 * Make-lang.in: Update.
38495 * misc.c: Include opts.h. Define cl_options_count and cl_options.
38497 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
38499 * misc.c (gnat_init_options): Update.
38501 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
38503 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
38504 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
38505 __attribute__ ((__unused__)).
38507 2003-06-05 Jan Hubicka <jh@suse.cz>
38509 * Make-lang.in: Add support for stageprofile and stagefeedback
38511 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
38513 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
38514 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
38516 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
38518 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
38519 Remove non-VMS directive.
38520 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
38522 (Examples of gnatls Usage): Remove VMS alternative.
38524 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
38527 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
38528 and turn ZCX_By_Default back to False since the underlying support
38529 is not quite there yet.
38531 2003-06-01 Andreas Jaeger <aj@suse.de>
38533 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
38534 and ROUND_TYPE_SIZE_UNIT.
38536 2003-05-22 Geert Bosch <bosch@gnat.com>
38538 * gnat_rm.texi : Remove reference to Ada Core Technologies.
38540 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
38542 * trans.c (tree_transform): Use location_t and input_location
38544 (build_unit_elab): Likewise.
38545 * utils.c (create_label_decl): Likewise.
38547 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
38549 * trans.c (tree_transform, build_unit_elab,
38550 set_lineno): Rename lineno to input_line.
38551 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
38552 end_subprog_body): Likewise.
38553 * utils2.c (build_call_raise): Likewise.
38555 2003-05-01 Laurent Guerby <guerby@acm.org>
38558 * 5iosinte.ads: Increase pthread_cond_t size to match recent
38559 LinuxThread and NPTL version, merge from ACT.
38561 2003-04-28 Zack Weinberg <zack@codesourcery.com>
38563 * utils.c (convert): No need to clear TREE_CST_RTL.
38565 2003-04-23 Geert Bosch <bosch@gnat.com>
38567 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
38568 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38569 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38570 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38571 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38572 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
38573 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
38574 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
38575 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38576 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
38577 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
38578 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
38579 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
38580 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
38581 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
38582 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
38583 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
38584 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
38585 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
38586 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
38587 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
38588 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
38589 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38590 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
38591 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
38592 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
38593 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
38594 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
38595 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
38596 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
38597 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
38598 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
38599 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
38600 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
38601 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
38602 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
38603 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
38604 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
38605 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
38606 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
38607 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
38608 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
38609 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
38610 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
38611 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
38612 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
38613 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
38614 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
38615 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
38616 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
38617 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
38618 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
38619 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
38620 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
38621 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
38622 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
38623 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
38624 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
38625 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
38626 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
38627 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
38628 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
38629 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
38630 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
38631 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
38632 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
38633 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
38634 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
38635 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
38636 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
38637 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
38638 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
38639 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
38640 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
38641 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
38642 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
38643 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
38644 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
38645 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
38646 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
38647 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
38648 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
38649 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
38650 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
38651 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
38652 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
38653 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
38654 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
38655 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
38656 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
38657 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
38658 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
38659 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
38660 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
38661 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
38662 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
38663 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
38664 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
38665 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
38666 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
38667 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
38668 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
38669 ali.adb, ali.ads, alloc.ads, argv.c,
38670 atree.adb, atree.ads, atree.h, aux-io.c,
38671 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
38672 binde.adb, binde.ads, binderr.adb, binderr.ads,
38673 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
38674 butil.adb, butil.ads, cal.c, calendar.ads,
38675 casing.adb, casing.ads, ceinfo.adb, checks.adb,
38676 checks.ads, cio.c, comperr.adb, comperr.ads,
38677 config-lang.in, csets.adb, csets.ads, csinfo.adb,
38678 cstand.adb, cstand.ads, cuintp.c, debug.adb,
38679 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
38680 dec-io.ads, dec.ads, deftarg.c, directio.ads,
38681 einfo.adb, einfo.ads, elists.adb, elists.ads,
38682 elists.h, errno.c, errout.adb, errout.ads,
38683 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
38684 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
38685 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
38686 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
38687 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
38688 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
38689 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
38690 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
38691 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
38692 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
38693 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
38694 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
38695 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
38696 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
38697 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
38698 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
38699 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
38700 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
38701 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
38702 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
38703 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
38704 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
38705 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
38706 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
38707 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
38708 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
38709 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
38710 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
38711 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
38712 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
38713 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
38714 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
38715 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
38716 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
38717 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
38718 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
38719 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
38720 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
38721 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
38722 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
38723 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
38724 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
38725 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
38726 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
38727 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
38728 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
38729 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
38730 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
38731 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
38732 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
38733 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
38734 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
38735 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
38736 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
38737 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
38738 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
38739 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
38740 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
38741 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
38742 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38743 lib.adb, lib.ads, live.adb, live.ads,
38744 machcode.ads, make.adb, make.ads, makeusg.adb,
38745 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
38746 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
38747 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
38748 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
38749 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
38750 mlib.ads, namet.adb, namet.ads, nlists.adb,
38751 nlists.ads, opt.adb, opt.ads, osint-b.adb,
38752 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
38753 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
38754 osint.ads, output.adb, output.ads, par-ch10.adb,
38755 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
38756 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38757 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
38758 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
38759 par-tchk.adb, par-util.adb, par.adb, par.ads,
38760 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
38761 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
38762 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
38763 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
38764 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
38765 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
38766 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
38767 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
38768 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
38769 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
38770 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
38771 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
38772 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
38773 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
38774 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
38775 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
38776 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
38777 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
38778 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
38779 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
38780 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
38781 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
38782 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38783 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
38784 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
38785 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
38786 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
38787 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
38788 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
38789 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
38790 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
38791 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
38792 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
38793 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
38794 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
38795 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
38796 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
38797 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
38798 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
38799 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
38800 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
38801 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
38802 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
38803 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
38804 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
38805 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
38806 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
38807 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
38808 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
38809 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
38810 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
38811 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
38812 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
38813 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
38814 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
38815 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
38816 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
38817 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
38818 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
38819 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
38820 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
38821 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
38822 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
38823 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
38824 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
38825 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
38826 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
38827 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
38828 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
38829 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
38830 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
38831 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
38832 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
38833 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
38834 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
38835 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
38836 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
38837 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
38838 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
38839 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
38840 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
38841 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
38842 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
38843 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38844 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
38845 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
38846 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
38847 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
38848 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
38849 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
38850 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
38851 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
38852 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
38853 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
38854 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
38855 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
38856 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
38857 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
38858 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
38859 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
38860 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
38861 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
38862 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
38863 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
38864 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
38865 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
38866 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
38867 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
38868 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
38869 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
38870 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38871 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38872 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
38873 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
38874 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
38875 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
38876 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
38877 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
38878 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
38879 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
38880 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
38881 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
38882 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
38883 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
38884 snames.ads, sprint.adb, sprint.ads, stand.adb,
38885 stand.ads, stringt.adb, stringt.ads, style.adb,
38886 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
38887 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
38888 switch-m.ads, switch.adb, switch.ads, system.ads,
38889 table.adb, table.ads, targparm.adb, targparm.ads,
38890 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
38891 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
38892 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
38893 ttypef.ads, ttypes.ads, types.adb, types.ads,
38894 uintp.adb, uintp.ads, uname.adb, uname.ads,
38895 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
38896 usage.adb, usage.ads, validsw.adb, validsw.ads,
38897 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
38898 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
38899 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
38900 formatting and other trivial changes from ACT.
38902 2003-04-12 Zack Weinberg <zack@codesourcery.com>
38904 * gigi.h, utils2.c (build_constructor):
38905 Rename gnat_build_constructor. Use build_constructor.
38906 * decl.c (gnat_to_gnu_entity)
38907 * trans.c (tree_transform, pos_to_constructor, extract_values)
38908 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
38909 (unchecked_convert)
38910 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
38911 (fill_vms_descriptor):
38914 2003-04-06 Zack Weinberg <zack@codesourcery.com>
38916 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
38917 * misc.c (gnat_tree_size): New function.
38918 (LANG_HOOKS_TREE_SIZE): Override.
38920 2003-04-03 Jason Merrill <jason@redhat.com>
38922 * misc.c (gnat_adjust_rli): #if 0.
38924 2003-03-31 Geert Bosch <bosch@gnat.com>
38927 * link.c : Fix misspelled "const" keyword
38929 2003-03-23 Mark Mitchell <mark@codesourcery.com>
38932 * utils2.c: Adjust calls to put_var_into_stack.
38934 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
38936 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
38938 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
38940 * misc.c (gnat_init): Update for new prototype.
38942 2003-03-05 Olivier Hainque <hainque@gnat.com>
38945 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
38946 warning, and fix return type for the IN_RTS && !SJLJ case.
38948 2003-03-04 Tom Tromey <tromey@redhat.com>
38950 * Make-lang.in (ada.tags): New target.
38952 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
38955 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
38956 wrapper, which name remains constant whatever underlying GCC
38959 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
38960 the stable interface needed for a-except.
38962 2003-03-02 Andreas Jaeger <aj@suse.de>
38964 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38965 gnat_ug_wnt.texi: Regenerate.
38967 2003-03-02 Laurent Guerby <guerby@acm.org>
38969 * Makefile.in (install-gnatlib): Match previous change there
38972 2003-02-28 Andreas Schwab <schwab@suse.de>
38974 * Make-lang.in (install-gnatlib): Change to ada directory before
38975 running make instead of using ada/Makefile directly.
38977 2003-02-18 Ben Elliston <bje@redhat.com>
38979 Part of PR ada/9406
38980 * gnat_ug.texi (Binder output file): Grammar fix.
38982 2003-02-18 Ben Elliston <bje@redhat.com>
38985 * 5qtaprop.adb (Sleep): Fix typo in comment.
38987 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
38989 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
38990 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38991 gnat_ug_wnt.texi: Regenerate.
38993 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
38995 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
38996 be created if necessary.
38997 (ada.install-common): Let $(DESTDIR)$(bindir) be created
38998 if necessary. Remove erroneous and redundant gnatchop
38999 installation commands. Test for gnatdll before attempting
39001 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
39002 and gnatdll from all plausible locations.
39004 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
39006 * utils2.c (build_unary_op): Don't check flag_volatile.
39007 * gnat_ug.texi: Remove -fvolatile from example.
39008 * gnat_ug_vxw.texi: Likewise.
39010 2003-01-29 Laurent Guerby <guerby@acm.org>
39013 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
39014 * Makefile.in: match previous change.
39015 * Make-lang.in: match previous change.
39017 2003-01-29 Joel Sherrill <joel@OARcorp.com>
39019 * 5rosinte.ads: Add SIGXCPU.
39020 * 5rtpopsp.adb: New file.
39021 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
39022 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
39023 specific file 5rtpopsp.adb.
39024 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
39025 is likely needed for all newlib targets.
39026 * init.c: Add RTEMS specific version of __gnat_initialize().
39028 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39030 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
39032 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39034 * init.c (__gnat_error_handler): Make msg const.
39036 * gmem.c (convert_addresses): Move declaration ...
39037 * adaint.h: ... here.
39038 * adaint.c (convert_addresses): Adapt addrs type to match
39041 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
39043 2003-01-24 Andreas Schwab <schwab@suse.de>
39045 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
39046 size_t to avoid warning.
39048 2003-01-21 Zack Weinberg <zack@codesourcery.com>
39050 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
39052 2003-01-09 Geoffrey Keating <geoffk@apple.com>
39054 * gnat_rm.texi: Remove RCS version number.
39056 * ada-tree.h (union lang_tree_node): Add chain_next option.
39058 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
39060 * Make-lang.in (ada.install-info, ada.install-common,
39061 ada.uninstall): Prepend $(DESTDIR) to the destination
39062 directory in all (un)installation commands.
39063 * Makefile.in (install-gnatlib, install-rts): Ditto.
39065 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
39067 * gnat_rm.texi, gnat_ug.texi: Use @copying.
39068 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39069 gnat_ug_wnt.texi: Regenerate.
39071 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
39073 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
39075 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
39076 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
39077 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
39078 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
39079 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
39080 $(srcdir)/doc/include/gcc-common.texi.
39082 2002-12-15 Geert Bosch <bosch@gnat.com>
39084 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
39086 2002-12-14 Geert Bosch <bosch@gnat.com>
39089 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
39090 case of a body created for a Renaming_As_Body, on which
39091 conformance checks are not performed.
39093 2002-11-30 Zack Weinberg <zack@codesourcery.com>
39095 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
39096 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
39097 not already included.
39098 * Make-lang.in: Update dependencies.
39100 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
39101 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
39102 solution to buffer overflow bug on GNU/Linux.
39104 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
39108 * bindgen.adb: Remove all references to Public_Version.
39109 * comperr.adb: Remove all references to Public_Version and
39110 GNATPRO_Version; correct bug reporting instructions.
39111 * comperr.ads: Change to match bug box.
39112 * gnatvsn.ads: Remove all references to Public version and
39115 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
39118 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
39122 * config-lang.in: Remove diff_excludes.
39124 2002-11-05 Graham Stott <graham.stott@btinternet.com>
39127 * trans.c (gnu_pending_elaboration_lists): New GC root.
39128 (build_unit_elab): Use..
39130 2002-10-30 Geert Bosch <bosch@gnat.com>
39133 * misc.c : Include optabs.h
39135 * Make-lang.in (misc.o): Add dependency on optabs.h
39137 2002-10-29 Geert Bosch <bosch@gnat.com>
39140 * Make-lang.in (gnatbind): Depend on CONFIG_H
39142 2002-10-29 Geert bosch <bosch@gnat.com>
39145 * misc.c: Unrevert misc.c (1.13)
39147 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
39149 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
39150 maintainership comments.
39152 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
39155 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
39156 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
39157 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
39158 7staprop.adb: Correct statements in comments about
39159 maintainership of GNAT.
39162 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
39163 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
39164 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
39165 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
39166 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
39167 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
39168 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
39169 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
39170 comments about maintainership of GNAT.
39172 PR ada/6919 (forward port of patch for PR ada/5904)
39173 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
39174 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
39175 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
39176 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
39177 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
39178 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
39179 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
39180 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
39181 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
39182 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
39183 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
39184 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
39185 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
39186 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
39187 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
39188 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
39189 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
39190 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
39191 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
39192 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
39193 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
39194 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
39195 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
39196 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
39197 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
39198 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
39199 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
39200 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
39201 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
39202 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
39203 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
39204 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
39205 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
39206 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
39207 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
39208 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
39209 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
39210 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
39211 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
39212 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
39213 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
39214 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
39215 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
39216 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
39217 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
39218 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
39219 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
39220 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
39221 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
39222 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
39223 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
39224 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
39225 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
39226 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
39227 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
39228 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
39229 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
39230 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
39231 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
39232 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
39233 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
39234 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
39235 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
39236 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
39237 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
39238 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
39239 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
39240 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
39241 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
39242 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
39243 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
39244 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
39245 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
39246 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
39247 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
39248 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
39249 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
39250 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
39251 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
39252 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
39253 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
39254 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
39255 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
39256 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
39257 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
39258 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
39259 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
39260 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
39261 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
39262 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
39263 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
39264 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
39265 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
39266 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
39267 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
39268 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
39269 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
39270 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
39271 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
39272 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
39273 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
39274 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
39275 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
39276 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
39277 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
39278 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
39279 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
39280 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
39281 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
39282 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
39283 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
39284 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
39285 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
39286 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
39287 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
39288 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
39289 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
39290 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
39291 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
39292 par-endh.adb par-labl.adb par-load.adb par-prag.adb
39293 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
39294 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
39295 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
39296 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
39297 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
39298 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
39299 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
39300 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
39301 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
39302 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
39303 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
39304 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
39305 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
39306 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
39307 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
39308 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
39309 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
39310 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
39311 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
39312 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
39313 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
39314 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
39315 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
39316 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
39317 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
39318 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
39319 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
39320 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
39321 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
39322 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
39323 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
39324 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
39325 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
39326 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
39327 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
39328 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
39329 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
39330 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
39331 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
39332 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
39333 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
39334 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
39335 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
39336 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
39337 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
39338 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
39339 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
39340 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
39341 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
39342 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
39343 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
39344 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
39345 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
39346 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
39347 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
39348 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
39349 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
39350 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
39351 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
39352 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
39353 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
39354 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
39355 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
39356 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
39357 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
39358 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
39359 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
39360 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
39361 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
39362 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
39363 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
39364 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
39365 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
39366 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
39367 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
39368 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
39369 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
39370 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
39371 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
39372 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
39373 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
39374 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
39375 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
39376 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
39377 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
39378 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
39379 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
39380 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
39381 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
39382 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
39383 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
39384 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
39385 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
39386 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
39387 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
39388 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
39389 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
39390 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
39391 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
39392 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
39393 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
39394 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
39395 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
39396 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
39397 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
39398 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
39399 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
39400 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
39401 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
39402 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
39403 stringt.ads stringt.h style.adb style.ads stylesw.adb
39404 stylesw.ads switch.adb switch.ads sysdep.c system.ads
39405 table.adb table.ads targparm.adb targparm.ads targtyps.c
39406 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
39407 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
39408 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
39409 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
39410 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
39411 usage.ads utils.c utils2.c validsw.adb validsw.ads
39412 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
39413 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
39414 xtreeprs.adb: Correct statements in comments about maintainership
39417 2002-09-23 Zack Weinberg <zack@codesourcery.com>
39419 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
39420 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
39421 * gnatvsn.ads: Gnat_Version_String is now a function.
39422 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
39423 copy the C version_string into a String and return it.
39424 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
39425 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
39426 Remove pragma Ident (Gnat_Version_String). If this was the
39427 sole use of package Gnatvsn, remove the with statement too.
39428 * gnat1drv.adb: Tweak -gnatv output.
39430 2002-09-17 Richard Henderson <rth@redhat.com>
39432 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
39433 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
39434 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
39435 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
39436 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
39437 and real_2expN instead of a loop.
39438 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
39439 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
39441 2002-08-25 Andre Leis <a.leis@gmx.net>
39442 David Billinghurst <David.Billinghurst@riotinto.com>
39444 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
39446 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39448 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
39449 Remove $(CONFIG_H) dependency.
39451 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
39453 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
39455 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39457 * adadecode.c (ada_demangle): Use xstrdup in lieu of
39459 * misc.c (gnat_decode_option): Likewise.
39461 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
39463 * make.adb (Add_Switch): Make Generic_Position a procedure. The
39464 function approach did not work well because of a side effect (the
39465 function call could reallocate the table which was being indexed
39466 using its result). Fixes ada/4851. [RESURRECTED]
39468 2002-07-01 Roger Sayle <roger@eyesopen.com>
39470 * ada/utils.c (builtin_function): Accept an additional parameter.
39472 2002-06-28 Andreas Jaeger <aj@suse.de>
39475 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
39478 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39480 * Makefile.in (SHELL): Set to @SHELL@.
39482 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39484 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
39485 array size calculation.
39487 2002-06-04 Andreas Jaeger <aj@suse.de>
39489 * Make-lang.in (gnatbind): Readd rule that has been lost in last
39492 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
39494 Merge from pch-branch:
39496 * config-lang.in (gtfiles): Add ada-tree.h.
39497 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
39498 (SET_TYPE_MODULUS): New.
39499 (SET_TYPE_INDEX): New.
39500 (SET_TYPE_DIGITS_VALUE): New.
39501 (SET_TYPE_RM_SIZE): New.
39502 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
39503 (SET_TYPE_ADA_SIZE): New.
39504 (SET_TYPE_ACTUAL_BOUNDS): New.
39505 (SET_DECL_CONST_CORRESPONDING_VAR): New.
39506 (SET_DECL_ORIGINAL_FIELD): New.
39507 (TREE_LOOP_ID): Correct typo.
39508 * decl.c: Use new macros.
39509 * utils.c: Include debug.h, use new macros.
39510 * utils2.c: Use new macros.
39512 * ada-tree.h: Update all macros for new tree description.
39513 (struct tree_loop_id): New.
39514 (union lang_tree_node): New.
39515 (struct lang_decl): New.
39516 (struct lang_type): New.
39517 * misc.c (gnat_mark_tree): Delete.
39518 (LANG_HOOKS_MARK_TREE): Delete.
39519 * trans.c (tree_transform): No longer any need to cast
39522 * utils.c (struct language_function): New dummy structure.
39524 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
39525 (misc.o): Likewise.
39526 (utils.o): Likewise; also gtype-ada.h.
39527 * Make-lang.in (gnat1): Add dependency on s-gtype.
39528 (gnatbind): Add dependency on $(CONFIG_H).
39529 * utils.c: Correct last #include.
39530 (stuct e_stack): Remove unnecessary 'static'.
39531 (mark_e_stack): Remove unused prototype.
39533 * scn-nlit.adb: Remove whitespace after version number to
39534 keep lines under 80 chars.
39535 * snames.adb: Likewise.
39536 * treepr.ads: Likewise.
39538 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
39539 (misc.o): Likewise.
39540 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
39541 * config-lang.in (gtfiles): New.
39542 * decl.c: Use gengtype for roots.
39543 * gigi.h: Use gengtype for roots.
39544 * trans.c: Use gengtype for roots.
39545 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
39547 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
39549 * misc.c (gnat_init): Adjust setting of internal_error_function.
39551 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
39553 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
39554 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39555 gnat_ug_wnt.texi: Regenerate.
39557 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
39559 * 5ntaprop.adb (with System.OS_Primitives): Remove.
39561 * cstreams.c (max_path_len): Move from here ...
39562 * adaint.c (__gnat_max_path_len): ... to here.
39563 * adaint.c (__gnat_max_path_len): Declare.
39564 * g-dirope.adb (Max_Path): Adjust.
39565 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
39566 * i-cstrea.ads (max_path_len): Adjust.
39567 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
39568 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
39570 * Makefile.in, Make-lang.in: Documentation is now built in
39571 Make-lang.in. Store Info and generated Texinfo files in the
39573 * gnat_ug.texi: Remove CVS keywords, correct version number.
39574 Set file name correctly.
39576 * gnat_ug_*.texi: Add.
39577 * .cvsignore: Ignore generated Texinfo files.
39579 2002-05-30 Zack Weinberg <zack@codesourcery.com>
39581 * ada.h: Add MI guard macro.
39582 (SUBTYPE): Define constants with an anonymous enum, not static
39584 (IN): Cast constants to appropriate type before use.
39586 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
39588 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
39591 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39593 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
39594 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
39595 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
39596 (ALL_ADA_CFLAGS): Likewise.
39597 (ADA_INCLUDES): Likewise.
39598 Adapt for new working dir.
39599 (GNATBIND): Use Makefile.in version.
39600 (.SUFFIXES): Copy from Makefile.in.
39601 (ada-warn): Define.
39602 (.adb.o, .ads.o): Copy from Makefile.in.
39603 Added $(OUTPUT_OPTION).
39604 (GNAT1_C_OBJS): Moved from Makefile.in.
39605 Prefix with ada subdir.
39606 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
39607 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
39608 Adapt for new working dir.
39609 (EXTRA_GNATBIND_OBJS): Likewise.
39610 (ADA_BACKEND): Moved from Makefile.in.
39611 Renamed to avoid conflict with global BACKEND.
39613 (TARGET_ADA_SRCS): Moved from Makefile.in.
39614 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
39616 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
39617 (ada_extra_files): Moved from Makefile.in.
39618 Prefix with ada subdir.
39619 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
39620 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
39621 (ada/nmake.ads): Likewise.
39622 (update-sources): Moved from Makefile.in.
39623 Prefix with ada subdir.
39624 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
39625 (ADA_TREE_H): Likewise.
39626 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
39627 (ada/memtrack.o): Likewise.
39628 (ada/adadecode.o): Likewise.
39629 Update dependencies.
39630 (ada/adaint.o): New.
39631 (ada/argv.o): Moved from Makefile.in.
39632 Prefix with ada subdir.
39633 Update dependencies.
39634 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
39635 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
39636 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
39637 Prefix with ada subdir.
39638 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
39639 (GNAT DEPENDENCIES): Regenerate.
39640 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
39641 toplevel Makefile.in.
39642 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
39643 (TARGET_ADA_SRCS): Removed.
39644 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
39645 (GNATBIND_OBJS): Likewise.
39646 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
39647 (BACKEND): Removed.
39648 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
39649 (TREE_H): Likewise.
39650 (ada_extra_files): Likewise.
39651 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
39652 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
39653 (update-sources): Likewise.
39654 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
39655 (ADA_TREE_H): Likewise.
39656 (adadecoce.o): Likewise.
39657 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
39658 (GNAT DEPENDENCIES): Likewise.
39660 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39662 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
39663 * Makefile.in: Likewise.
39665 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39667 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
39668 Restore $(CONFIG_H) and prefix.o dependencies.
39669 (ada.stage[1-4]): Depend on stage?-start.
39671 * Makefile.in (b_gnatb.c): Depend on interfac.o.
39673 2002-05-02 Jim Wilson <wilson@redhat.com>
39675 * utils.c (finish_record_type): Change record_size to record_type.
39677 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
39679 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
39680 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
39681 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
39683 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
39685 * misc.c (gnat_parse_file): Update.
39687 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
39689 * misc.c (gnat_init): Don't set lang_attribute_common.
39691 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
39693 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
39695 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
39697 * gnat_ug.texi: New file.
39699 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
39700 instead of gfdl.texi
39702 * xgnatug.adb, ug_words: New files.
39704 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
39705 gnat_rm and gnat-style manuals.
39707 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
39709 * gigi.h (incomplete_type_error): Remove.
39710 * utils.c (incomplete_type_error): Remove.
39712 2002-04-16 Mark Mitchell <mark@codesourcery.com>
39714 * trans.c (tree_transform): Add has_scope argument to
39715 expand_start_stmt_expr.
39717 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
39719 * gigi.h (truthvalue_conversion): Rename.
39720 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
39721 * trans.c (tree_transform): Update.
39722 * utils2.c (truthvalue_conversion): Rename, update.
39723 (build_binary_op, build_unary_op): Update.
39725 2002-04-04 Laurent Guerby <guerby@acm.org>
39727 * make.adb: Implement -margs, remove restriction about file name placement.
39728 * makeusg.adb: Documentation update.
39729 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
39730 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
39732 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
39734 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
39735 (builtin_function): Similarly.
39737 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
39739 * decl.c (gnat_to_gnu_entity): Update.
39740 * gigi.h (mark_addressable): Rename.
39741 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
39742 * trans.c (tree_transform): Update.
39743 * utils.c (create_var_decl): Update.
39744 * util2.c (build_binary_op, build_unary_op,
39745 fill_vms_descriptor): Update.
39746 (mark_addressable): Rename, update.
39748 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
39750 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
39752 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
39753 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
39754 * trans.c (tree_transform, convert_with_check): Update.
39755 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
39758 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
39760 * gigi.h (finish_incomplete_decl): Rename.
39761 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
39762 * utils.c (gnat_init_decl_processing): Don't set hook.
39763 (finish_incomplete_decl): Rename.
39765 2002-03-29 Andreas Schwab <schwab@suse.de>
39767 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
39770 2001-03-28 Robert Dewar <dewar@gnat.com>
39773 (Remove_Checks): New procedure
39776 (Remove_Checks): New procedure
39779 Use new Duplicate_Subexpr functions
39780 (Duplicate_Subexpr_No_Checks): New procedure
39781 (Duplicate_Subexpr_No_Checks_Orig): New procedure
39782 (Duplicate_Subexpr): Restore original form (checks duplicated)
39783 (Duplicate_Subexpr): Call Remove_Checks
39786 (Duplicate_Subexpr_No_Checks): New procedure
39787 (Duplicate_Subexpr_No_Checks_Orig): New procedure
39788 Add 2002 to copyright notice
39790 * sem_util.adb: Use new Duplicate_Subexpr functions
39793 (Eval_Indexed_Component): This is the place to call
39794 Constant_Array_Ref and to replace the value. We simply merge
39795 the code of this function in here, since it is now no longer
39796 used elsewhere. This fixes the problem of the back end not
39797 realizing we were clever enough to see that this was
39799 (Expr_Val): Remove call to Constant_Array_Ref
39800 (Expr_Rep_Val): Remove call to Constant_Array_Ref
39802 (Constant_Array_Ref): Deal with string literals (patch
39803 suggested by Zack Weinberg on the gcc list)
39805 2001-03-28 Ed Schonberg <schonber@gnat.com>
39807 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
39808 Duplicate_Subexpr_Move_Checks.
39810 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
39811 Duplicate_Subexpr_Move_Checks.
39813 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
39814 value of array exists before retrieving it (it may a private
39815 protected component in a function).
39817 2002-03-28 Geert Bosch <bosch@gnat.com>
39819 * prj-pp.adb : New file.
39821 * prj-pp.ads : New file.
39823 2002-03-28 Andreas Jaeger <aj@suse.de>
39825 * Makefile.in (stamp-sdefault): Fix path for Makefile.
39827 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
39829 * misc.c (gnat_expand_expr): Move prototype.
39831 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39833 * misc.c (insert_default_attributes): Remove.
39835 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39837 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
39838 (gnat_init): Don't set hook.
39839 (gnat_expand_expr): Fix prototype.
39841 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39843 * misc.c (ggc_p): Remove.
39845 2002-03-27 Geert Bosch <bosch@gnat.com>
39847 * prj-makr.ads, prj-makr.adb : New files.
39849 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
39851 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
39852 (lang_mark_tree): Make static, rename.
39854 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
39856 * misc.c (maybe_build_cleanup): Remove.
39858 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
39860 * gigi.h (yyparse): Remove.
39862 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
39864 From Ben Brosgol <brosgol@gnat.com>
39865 * gnat_rm.texi: Sync with ACT version.
39867 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
39869 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
39870 (gnat_init): Remove old hook.
39872 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
39874 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
39875 (yyparse): Rename gnat_parse_file.
39877 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
39879 Delete all lines containing "$Revision:".
39880 * xeinfo.adb: Don't look for revision numbers.
39881 * xnmake.adb: Likewise.
39882 * xsinfo.adb: Likewise.
39883 * xsnames.adb: Likewise.
39884 * xtreeprs.adb: Likewise.
39886 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39888 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
39889 gnat_tree_code_name): Delete.
39890 (tree_code_type, tree_code_length, tree_code_name): Define.
39891 (gnat_init): Don't try to copy into the various tree_code
39894 2002-03-11 Richard Henderson <rth@redhat.com>
39896 * Makefile.in (.NOTPARALLEL): Add fake tag.
39898 2002-03-07 Geert Bosch <bosch@gnat.com>
39900 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
39901 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
39902 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
39903 switch-m.adb, switch-m.ads : New files.
39905 2002-03-07 Geert Bosch <bosch@gnat.com>
39907 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
39908 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
39909 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
39910 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
39911 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
39912 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
39913 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
39914 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
39915 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
39916 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
39917 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
39918 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
39919 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
39920 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
39921 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
39922 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
39923 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
39924 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
39925 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39926 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
39927 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
39928 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
39929 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
39930 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
39931 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
39932 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
39933 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
39934 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
39935 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
39936 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
39937 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
39938 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
39939 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
39940 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
39941 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
39942 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
39943 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39944 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
39945 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
39946 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
39947 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
39948 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
39949 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
39950 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
39951 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
39952 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
39953 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
39954 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
39955 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
39956 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
39957 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
39958 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
39959 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
39960 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
39961 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
39962 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
39963 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
39964 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
39965 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
39966 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
39967 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
39968 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
39969 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
39970 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
39971 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
39972 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
39973 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
39974 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
39975 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
39976 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
39977 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
39978 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
39979 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
39980 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
39981 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
39982 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
39983 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
39984 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39985 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
39986 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39987 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
39988 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
39989 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
39990 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
39991 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
39992 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
39993 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
39994 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
39995 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
39996 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
39997 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
39998 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
39999 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
40000 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
40001 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
40002 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
40003 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
40005 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
40006 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
40007 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
40008 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
40010 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
40011 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
40013 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
40014 to mdll-fil.ad[bs] and mdll-util.ad[bs]
40016 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
40017 from mdllfile.ad[bs] and mdlltool.ad[bs]
40019 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40021 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
40022 lieu of explicit sizeof/sizeof.
40024 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
40026 * misc.c (copy_lang_decl): Remove.
40028 2002-02-27 Zack Weinberg <zack@codesourcery.com>
40030 * misc.c: Delete traditional-mode-related code copied from the
40031 C front end but not used, or used only to permit the compiler
40034 2002-02-07 Richard Henderson <rth@redhat.com>
40036 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
40037 * adaint.h (__gnat_to_gm_time): Update prototype.
40039 2002-01-30 Richard Henderson <rth@redhat.com>
40041 * trans.c (tree_transform) [N_Loop_Statement]: Use
40042 expand_exit_loop_top_cond.
40044 2001-12-23 Richard Henderson <rth@redhat.com>
40046 * utils.c (end_subprog_body): Push GC context around
40047 rest_of_compilation for nested functions.
40049 2001-12-23 Richard Henderson <rth@redhat.com>
40051 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
40053 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
40055 * gnat-style.texi (Declarations and Types): Remove ancient style
40056 rule which was mandated by code generation issues.
40058 * gnat-style.texi (header): Add @dircategory, @direntry.
40059 (title page): Remove date.
40060 (general) Add @./@: where approriate, and two spaces after the
40061 full stop at the end of a sentence. Use @samp markup when
40062 referring concrete lexical entities (keywords, attribute names
40063 etc.), and @syntax for ARM grammar elements. Use @r for English
40064 text in comments. Use @emph for emphasis. Change "if-statements"
40065 etc. to "if statements" (without @samp). Break long lines. Make
40066 casing of section names consistent.
40067 (Identifiers): Use @samp markup for variable names.
40068 (Comments): Use @samp markup for comment characters. Line-end
40069 comments may follow any Ada code, not just statements. Fix
40070 misspelling of "Integer" as "integer".
40071 (Loop statements): Do not use variable name "I", use "J".
40072 (Subprogram Declarations): Document alignment.
40073 (Subprogram Bodies, Block statements): Document empty line before
40076 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
40078 * make.adb (Add_Switch): Make Generic_Position a procedure. The
40079 function approach did not work well because of a side effect (the
40080 function call could reallocate the table which was being indexed
40081 using its result). Fixes ada/4851.
40083 2001-12-19 Robert Dewar <dewar@gnat.com>
40085 * bindgen.adb: Minor reformatting
40087 * cstand.adb: Minor reformatting
40089 * fmap.adb: Minor reformatting
40090 Change name from Add for Add_To_File_Map (Add is much too generic)
40091 Change Path_Name_Of to Mapped_Path_Name
40092 Change File_Name_Of to Mapped_File_Name
40093 Fix copyright dates in header
40096 Change name from Add for Add_To_File_Map (Add is much too generic)
40097 Change Path_Name_Of to Mapped_Path_Name
40098 Change File_Name_Of to Mapped_File_Name
40099 Fix copyright dates in header
40101 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
40102 Add use clause for Fmap.
40104 * make.adb: Minor reformatting
40106 * osint.adb: Minor reformatting. Change of names in Fmap.
40107 Add use clause for Fmap.
40109 * prj-env.adb: Minor reformatting
40111 * prj-env.ads: Minor reformatting
40113 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
40114 error found (there were odd exceptions to this general rule in
40115 -gnatec/-gnatem processing)
40117 2001-12-19 Olivier Hainque <hainque@gnat.com>
40119 * raise.c (__gnat_eh_personality): Exception handling personality
40120 routine for Ada. Still in rough state, inspired from the C++ version
40121 and still containing a bunch of debugging artifacts.
40122 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
40123 inspired from the C++ library.
40125 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
40126 exception handling integration.
40128 2001-12-19 Arnaud Charlet <charlet@gnat.com>
40130 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
40131 (HIE_SOURCES): Add s-secsta.ad{s,b}.
40132 (HIE_OBJS): Add s-fat*.o
40133 (RAVEN_SOURCES): Remove files that are no longer required. Add
40134 interrupt handling files.
40135 (RAVEN_MOD): Removed, no longer needed.
40137 2001-12-19 Robert Dewar <dewar@gnat.com>
40139 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
40140 Add 2001 to copyright date
40142 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
40143 need to force universal inlining for these cases.
40145 2001-12-19 Arnaud Charlet <charlet@gnat.com>
40147 * s-taprob.adb: Minor clean ups so that this unit can be used in
40150 * exp_ch7.adb: Allow use of secondary stack in HI mode.
40151 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
40153 2001-12-19 Vincent Celier <celier@gnat.com>
40155 * prj-tree.ads (Project_Node_Record): Add comments for components
40156 Pkg_Id and Case_Insensitive.
40158 2001-12-19 Pascal Obry <obry@gnat.com>
40160 * g-socket.adb: Minor reformatting. Found while reading code.
40162 2001-12-19 Robert Dewar <dewar@gnat.com>
40164 * prj-tree.ads: Minor reformatting
40166 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
40168 * config-lang.in (diff_excludes): Remove.
40170 2001-12-17 Ed Schonberg <schonber@gnat.com>
40172 * sem_res.adb (Resolve_Selected_Component): do not generate a
40173 discriminant check if the selected component is a component of
40174 the argument of an initialization procedure.
40176 * trans.c (tree_transform, case of arithmetic operators): If result
40177 type is private, the gnu_type is the base type of the full view,
40178 given that the full view itself may be a subtype.
40180 2001-12-17 Robert Dewar <dewar@gnat.com>
40182 * sem_res.adb: Minor reformatting
40184 * trans.c (tree_transform, case N_Real_Literal): Add missing third
40185 parameter in call to Machine (unknown horrible effects from this
40188 * urealp.h: Add definition of Round_Even for call to Machine
40189 Add third parameter for Machine
40191 2001-12-17 Ed Schonberg <schonber@gnat.com>
40193 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
40194 predefined units in No_Run_Time mode.
40196 2001-12-17 Richard Kenner <kenner@gnat.com>
40198 * misc.c (insn-codes.h): Now include.
40200 2001-12-17 Olivier Hainque <hainque@gnat.com>
40202 * a-except.adb: Preparation work for future integration of the GCC 3
40203 exception handling mechanism
40204 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
40205 to factorize previous code sequences and make them externally callable,
40206 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
40207 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
40208 Use the new notification routines.
40210 2001-12-17 Emmanuel Briot <briot@gnat.com>
40212 * prj-tree.ads (First_Choice_Of): Document the when others case
40214 2001-12-17 Arnaud Charlet <charlet@gnat.com>
40216 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
40217 HI-E mode, in order to support Ravenscar profile properly.
40219 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
40220 mode on 32 bits targets.
40222 2001-12-17 Vincent Celier <celier@gnat.com>
40224 * fmap.adb: Initial version.
40226 * fmap.ads: Initial version.
40228 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
40229 If search is successfully done, add to mapping.
40231 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
40234 (Gnatmake): Add new local variable Mapping_File_Name.
40235 Create mapping file when using project file(s).
40236 Delete mapping file before exiting.
40238 * opt.ads (Mapping_File_Name): New variable
40240 * osint.adb (Find_File): Use path name found in mapping, if any.
40242 * prj-env.adb (Create_Mapping_File): New procedure
40244 * prj-env.ads (Create_Mapping_File): New procedure.
40246 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
40249 * usage.adb: Add entry for new switch -gnatem.
40251 * Makefile.in: Add dependencies for fmap.o.
40253 2001-12-17 Ed Schonberg <schonber@gnat.com>
40255 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
40256 is a package instantiation rewritten as a package body.
40257 (Install_Withed_Unit): Undo previous change, now redundant.
40259 2001-12-17 Gary Dismuke <dismukes@gnat.com>
40262 (Compute_Length): Move conversion to Unsigned to callers.
40263 (Get_Max_Size): Convert Len expression to Unsigned after calls to
40264 Compute_Length and Determine_Range.
40265 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
40266 Compute_Length and Determine_Range.
40267 Above changes fix problem with length computation for supernull arrays
40268 where Max (Len, 0) wasn't getting applied due to the Unsigned
40269 conversion used by Compute_Length.
40271 2001-12-17 Arnaud Charlet <charlet@gnat.com>
40274 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
40275 System.Secondary_Stack.
40276 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
40278 Remove unused entity RE_Exception_Data.
40280 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
40282 * rident.ads (No_Secondary_Stack): New restriction.
40284 2001-12-17 Joel Brobecker <brobecke@gnat.com>
40286 * gnat_rm.texi: Fix minor typos. Found while reading the section
40287 regarding "Bit_Order Clauses" that was sent to a customer.
40288 Very interesting documentation!
40290 2001-12-17 Robert Dewar <dewar@gnat.com>
40292 * sem_case.adb (Choice_Image): Avoid creating improper character
40293 literal names by using the routine Set_Character_Literal_Name. This
40294 fixes bombs in certain error message cases.
40296 2001-12-17 Arnaud Charlet <charlet@gnat.com>
40298 * a-reatim.adb: Minor reformatting.
40300 2001-12-17 Ed Schonberg <schonber@gnat.com>
40302 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
40303 case where the formal is an extension of another formal in the current
40304 unit or in a parent generic unit.
40306 2001-12-17 Arnaud Charlet <charlet@gnat.com>
40308 * s-tposen.adb: Update comments. Minor reformatting.
40309 Minor code clean up.
40311 * s-tarest.adb: Update comments. Minor code reorganization.
40313 2001-12-17 Gary Dismukes <dismukes@gnat.com>
40315 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
40318 2001-12-17 Robert Dewa <dewar@gnat.com>
40320 * exp_attr.adb: Minor reformatting
40322 2001-12-17 Ed Schonberg <schonber@gnat.com>
40324 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
40325 derivations nested within a child unit: verify that the parent
40326 type is declared in an outer scope.
40328 2001-12-17 Robert Dewar <dewar@gnat.com>
40330 * sem_ch12.adb: Minor reformatting
40332 2001-12-17 Ed Schonberg <schonber@gnat.com>
40334 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
40335 warning if current unit is a predefined one, from which bodies may
40338 2001-12-17 Robert Dewar <dewar@gnat.com>
40340 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
40341 Fix header format. Add 2001 to copyright date.
40343 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
40344 which caused CE during compilation if checks were enabled.
40346 2001-12-17 Vincent Celier <celier@gnat.com>
40349 (Switches_Of): New function
40350 (Test_If_Relative_Path): New procedure
40351 (Add_Switches): Use new function Switches_Of
40352 (Collect_Arguments_And_Compile): Use new function Switches_Of.
40353 When using a project file, test if there are any relative
40354 search path. Fail if there are any.
40355 (Gnatmake): Only add switches for the primary directory when not using
40356 a project file. When using a project file, change directory to the
40357 object directory of the main project file. When using a project file,
40358 test if there are any relative search path. Fail if there are any.
40359 When using a project file, fail if specified executable is relative
40360 path with directory information, and prepend executable, if not
40361 specified as an absolute path, with the exec directory. Make sure
40362 that only one -o switch is transmitted to the linker.
40364 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
40367 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
40368 when using a non standard naming scheme.
40369 (Check_Ada_Naming_Scheme): Make sure that error messages
40370 do not raise exceptions.
40371 (Is_Illegal_Append): Return True if there is no dot in the suffix.
40372 (Language_Independent_Check): Check the exec directory.
40374 * prj.adb (Project_Empty): Add new component Exec_Directory
40377 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
40378 (Project_Data): Add component Exec_Directory
40380 * snames.adb: Updated to match snames.ads revision 1.215
40382 * snames.ads: Added Exec_Dir
40384 2001-12-17 Robert Dewar <dewar@gnat.com>
40386 * make.adb: Minor reformatting
40388 * prj-nmsc.adb: Minor reformatting
40390 * snames.adb: Updated to match snames.ads
40392 * snames.ads: Alphebetize entries for project file
40394 2001-12-17 Ed Schonberg <schonber@gnat.com>
40396 * trans.c (process_freeze_entity): Do nothing if the entity is a
40397 subprogram that was already elaborated.
40399 2001-12-17 Richard Kenner <kenner@gnat.com>
40401 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
40402 and Esize if object is referenced via pointer.
40404 2001-12-17 Ed Schonberg <schonber@gnat.com>
40406 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
40407 is discrete before analyzing choices.
40409 2001-12-17 Joel Brobecker <brobecke@gnat.com>
40411 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
40412 containing the name of the Ada Main Program. This string is mainly
40413 intended for the debugger.
40414 (Gen_Output_File_C): Do the equivalent change when generating a C file.
40416 2001-12-17 Robert Dewar <dewar@gnat.com>
40418 * ali.adb: Set new Dummy_Entry field in dependency entry
40420 * ali.ads: Add Dummy_Entry field to source dependency table
40422 * bcheck.adb (Check_Consistency): Ignore dummy D lines
40424 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
40426 * lib-writ.ads: Document dummy D lines for missing files.
40428 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
40430 2001-12-17 Robert Dewar <dewar@gnat.com>
40432 * ali.adb: Type reference does not reset current file.
40434 * ali.adb: Recognize and scan renaming reference
40436 * ali.ads: Add spec for storing renaming references.
40438 * lib-xref.ads: Add documentation for handling of renaming references
40440 * lib-xref.adb: Implement output of renaming reference.
40443 (Determine_Range): Document local variables
40444 (Determine_Range): Make sure Hbound is initialized. It looks as though
40445 there could be a real problem here with an uninitialized reference
40446 to Hbound, but no actual example of failure has been found.
40448 2001-12-17 Laurent Pautet <pautet@gnat.com>
40451 Fix comment of Shutdown_Socket and Close_Socket. These functions
40452 should not fail silently because if they are called twice, this
40453 probably means that there is a race condition in the user program.
40454 Anyway, this behaviour is consistent with the rest of this unit.
40455 When an error occurs, an exception is raised with the error message
40456 as exception message.
40458 2001-12-17 Robert Dewar <dewar@gnat.com>
40460 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
40461 that it happens before modification of Sloc values for -gnatD.
40463 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
40464 so that it happens before modification of Sloc values for -gnatD.
40466 * switch.adb: Minor reformatting
40468 2001-12-15 Richard Henderson <rth@redhat.com>
40470 * sem_ch7.adb: Wrap comment.
40472 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
40474 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
40475 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
40476 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
40477 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
40478 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
40479 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
40480 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
40481 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
40482 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
40483 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
40484 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
40485 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
40486 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
40487 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
40488 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
40489 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
40490 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
40491 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
40492 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
40493 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
40494 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
40495 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
40496 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
40497 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
40500 2001-12-14 Vincent Celier <celier@gnat.com>
40502 * osint.adb(Create_Debug_File): When an object file is specified,
40503 put the .dg file in the same directory as the object file.
40505 2001-12-14 Robert Dewar <dewar@gnat.com>
40507 * osint.adb: Minor reformatting
40509 * lib-xref.adb (Output_Instantiation): New procedure to generate
40510 instantiation references.
40512 * lib-xref.ads: Add documentation of handling of generic references.
40514 * ali.adb (Read_Instantiation_Ref): New procedure to read
40515 instantiation references
40517 * ali.ads: Add spec for storing instantiation references
40519 * bindusg.adb: Minor reformatting
40521 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40523 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40525 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40527 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
40531 Add 2001 to copyright date
40532 Add entry for Latin-5 (Cyrillic ISO-8859-5)
40534 2001-12-14 Matt Gingell <gingell@gnat.com>
40536 * adaint.c: mktemp is a macro on Lynx and can not be used as an
40539 2001-12-14 Richard Kenner <kenner@gnat.com>
40541 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
40542 if operand is CONSTRUCTOR.
40544 2001-12-14 Ed Schonberg <schonber@gnat.com>
40546 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
40547 before emiting check on right-hand side, so that exception information
40550 2001-12-14 Richard Kenner <kenner@gnat.com>
40552 * utils.c (create_var_decl): Throw away initializing expression
40553 if just annotating types and non-constant.
40555 2001-12-14 Vincent Celier <celier@gnat.com>
40557 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
40560 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40562 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
40564 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
40566 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
40568 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
40570 * ChangeLog: Remove piece of diff output.
40572 2001-12-14 Geert Bosch <bosch@gnat.com>
40574 * config-lang.in: Update copyright notice
40576 * layout.adb: Remove commented out code.
40578 * mdllfile.ads: Update copyright notice. Fix header format.
40580 * sem_case.ads: Likewise.
40582 * sem_ch3.adb: Minor reformatting.
40584 2001-12-12 Geert Bosch <bosch@gnat.com>
40586 * freeze.ads: Update copyright date.
40588 * g-comlin.ads: Minor reformatting.
40590 * gnat-style.texi: Fix typo.
40592 2001-12-12 Geert Bosch <bosch@gnat.com>
40594 * einfo.h: Regenerate.
40596 2001-12-12 Ed Schonberg <schonber@gnat.com>
40598 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
40599 on known node types, rather than untyped fields. Further cleanups.
40601 2001-12-12 Robert Dewar <dewar@gnat.com>
40604 (Save_Entity_Descendant): Minor comment update.
40605 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
40606 of an N_Attribute_Reference node. As per note below, this does not
40607 eliminate need for Associated_Node in attribute ref nodes.
40608 (Associated_Node): Documentation explicitly mentions attribute
40609 reference nodes, since this field is used in such nodes.
40611 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
40613 2001-12-12 Robert Dewar <dewar@gnat.com>
40615 * s-stalib.adb: Add more comments on with statements being needed
40617 * par-ch12.adb: Minor reformatting
40619 * prj-dect.ads: Fix copyright header
40621 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
40622 inputs fit in 32 bits, but the result still overflows.
40624 * s-fatgen.ads: Minor comment improvement
40626 2001-12-12 Ed Schonberg <schonber@gnat.com>
40628 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
40629 formal derived type, look for an inherited component from the full
40630 view of the parent, if any.
40632 2001-12-12 Robert Dewar <dewar@gnat.com>
40634 * checks.ads (Apply_Alignment_Check): New procedure.
40636 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
40637 ensure that the alignment of objects with address clauses is
40638 appropriate, and raise PE if not.
40640 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
40641 Exp_Pakd.Known_Aligned_Enough
40643 * mdllfile.ads: Minor reformatting
40645 * mlib-fil.ads: Minor reformatting
40647 2001-12-12 Ed Schonberg <schonber@gnat.com>
40649 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
40650 fix to any component reference if enclosing record has non-standard
40653 2001-12-12 Vincent Celier <celier@gnat.com>
40655 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
40658 2001-12-12 Ed Schonberg <schonber@gnat.com>
40660 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
40663 2001-12-12 Robert Dewar <dewar@gnat.com>
40665 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
40667 2001-12-12 Emmanuel Briot <briot@gnat.com>
40669 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
40670 and it adds dependencies to system.io.
40672 2001-12-12 Pascal Obry <obry@gnat.com>
40674 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
40677 2001-12-11 Ed Schonberg <schonber@gnat.com>
40679 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
40680 that is the parent of other generics, the instance body replaces the
40681 instance node. Retrieve the instance of the spec, which is the one
40682 that is visible in clients and within the body.
40684 2001-12-11 Vincent Celier <celier@gnat.com>
40686 * gnatmain.adb: Initial version.
40688 * gnatmain.ads: Initial version.
40690 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
40692 * snames.adb: Updated to match snames.ads.
40694 * snames.ads: Added Gnatstub.
40696 2001-12-11 Vincent Celier <celier@gnat.com>
40698 * prj-attr.adb (Initialization_Data): Change name from
40699 Initialisation_Data.
40701 2001-12-11 Emmanuel Briot <briot@gnat.com>
40703 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
40704 + and * applied to backslashed expressions like \r.
40706 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
40708 * g-os_lib.ads: String_List type added, Argument_List type is now
40709 subtype of String_List.
40711 2001-12-11 Robert Dewar <dewar@gnat.com>
40713 * g-os_lib.ads: Change copyright to FSF
40714 Add comments for String_List type
40716 2001-12-11 Vincent Celier <celier@gnat.com>
40718 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
40719 string to the buffer).
40721 2001-12-11 Ed Schonberg <schonber@gnat.com>
40723 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
40726 * sem_attr.adb: Simplify previous fix for Address.
40727 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
40728 to avoid anomalies where the bound of the type appears to raise
40731 2001-12-11 Robert Dewar <dewar@gnat.com>
40733 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
40736 2001-12-11 Ed Schonber <schonber@gnat.com>
40738 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
40739 renamed unit before checking for recursive instantiations.
40741 2001-12-11 Emmanuel Briot <briot@gnat.com>
40743 * prj.ads: Add comments for some of the fields.
40745 2001-12-11 Robert Dewar <dewar@gnat.com>
40747 * lib-xref.adb (Output_Refs): Don't output type references outside
40748 the main unit if they are not otherwise referenced.
40750 2001-12-11 Ed Schonberg <schonber@gnat.com>
40752 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
40753 code and diagnose additional illegal uses
40755 * sem_util.adb (Is_Object_Reference): An indexed component is an
40756 object only if the prefix is.
40758 2001-12-11 Vincent Celier <celier@gnat.com>
40760 * g-diopit.adb: Initial version.
40762 * g-diopit.ads: Initial version.
40765 (Expand_Path): Avoid use of Unbounded_String
40766 (Find, Wildcard_Iterator): Moved to child package Iteration
40768 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
40770 2001-12-11 Robert Dewar <dewar@gnat.com>
40772 * sem_attr.adb: Minor reformatting
40774 2001-12-11 Ed Schonberg <schonber@gnat.com>
40776 * sem_ch3.adb: Clarify some ???.
40778 2001-12-11 Robert Dewar <dewar@gnat.com>
40780 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
40781 Exp_Pakd.Known_Aligned_Enough
40783 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
40784 version is moved to Exp_Ch13.
40786 2001-12-11 Robert Dewar <dewar@gnat.com>
40788 * einfo.ads: Minor reformatting
40790 * exp_ch5.adb: Add comment for previous.change
40792 * ali.adb: New interface for extended typeref stuff.
40794 * ali.ads: New interface for typeref stuff.
40796 * checks.adb (Apply_Alignment_Check): New procedure.
40798 * debug.adb: Add -gnatdM for modified ALI output
40800 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
40802 * lib-xref.adb: Extend generation of <..> notation to cover
40803 subtype/object types. Note that this is a complete rewrite,
40804 getting rid of the very nasty quadratic algorithm previously
40805 used for derived type output.
40807 * lib-xref.ads: Extend description of <..> notation to cover
40808 subtype/object types. Uses {..} for these other cases.
40809 Also use (..) for pointer types.
40811 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
40813 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
40814 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
40816 2001-12-11 Vincent Celier <celier@gnat.com>
40819 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
40820 Changed /BIND_ONLY to /ACTIONS=BIND
40821 Changed /LINK_ONLY to /ACTIONS=LINK
40823 2001-12-11 Ed Schonberg <schonber@gnat.com>
40825 * sem_ch8.adb (Find_Selected_Component): improved search for a
40826 candidate package in case of error.
40828 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
40829 chain back on scope stack before reinstalling use clauses.
40831 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
40832 is enabled, do not kill the code for the condition, to preserve
40835 2001-12-11 Robert Dewar <dewar@gnat.com>
40837 * checks.adb (Insert_Valid_Check): Apply validity check to expression
40838 of conversion, not to result of conversion.
40840 2001-12-11 Ed Schonberg <schonber@gnat.com>
40842 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
40843 before freezing parent. If the declarations are mutually recursive,
40844 an access to the current record type may be frozen before the
40845 derivation is complete.
40847 2001-12-05 Vincent Celier <celier@gnat.com>
40849 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
40850 -c /COMPILE_ONLY, -l /LINK_ONLY
40853 (Bind_Only): New Flag
40854 (Link_Only): New flag
40856 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
40859 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
40862 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
40863 (Gnatmake): Set the step flags. Only perform a step if the
40864 corresponding step flag is True.
40865 (Scan_Make_Arg): Reset the bind and link step flags when -u
40866 or -gnatc has been specified.
40868 2001-12-05 Ed Schonberg <schonber@gnat.com>
40870 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
40871 get bounds from right operand.
40873 * sem_eval.adb: Minor reformatting
40875 * exp_util.adb (Make_Literal_Range): use bound of literal rather
40876 than Index'First, its lower bound may be different from 1.
40878 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
40881 2001-12-05 Vincent Celier <celier@gnat.com>
40883 * prj-nmsc.adb Minor reformatting
40885 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
40886 set and libraries are not supported.
40888 2001-12-05 Ed Schonberg <schonber@gnat.com>
40890 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
40891 private view explicitly, so the back-end can treat as a global
40894 2001-12-05 Ed Schonberg <schonber@gnat.com>
40896 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
40897 unit, always replace instance node with new body, for ASIS use.
40899 2001-12-05 Vincent Celier <celier@gnat.com>
40901 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
40902 libraries are not supported and both attributes Library_Name and
40903 Library_Dir are specified.
40905 * prj-proc.adb (Expression): Set location of Result to location of
40908 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
40909 (prj-nmsc is now importing MLib.Tgt)
40911 * prj-proc.adb: Put the change indicated above that was forgotten.
40913 2001-12-05 Robert Dewar <dewar@gnat.com>
40915 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
40917 2001-12-05 Ed Schonberg <schonber@gnat.com>
40919 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
40920 constraint, introduce explicit subtype declaration and derive from it.
40922 * sem_ch3.adb: Minor reformatting
40924 2001-12-05 Robert Dewar <dewar@gnat.com>
40926 * checks.adb (Determine_Range): Increase cache size for checks.
40929 * exp_ch6.adb: Minor reformatting
40930 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
40931 a parameter whose root type is System.Address, since treating such
40932 subprograms as pure in the code generator is almost surely a mistake
40933 that will lead to unexpected results.
40935 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
40936 change handling of conversions.
40938 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
40940 2001-12-05 Ed Schonberg <schonber@gnat.com>
40942 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
40943 aggregate with static wrong size, attach generated Raise node to
40946 2001-12-05 Robert Dewar <dewar@gnat.com>
40948 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
40949 Fixes compilation abandoned bomb in B24009B.
40951 2001-12-05 Ed Schonberg <schonber@gnat.com>
40954 Document use of Associated_Node on Selected_Components.
40955 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
40956 to clarify use of untyped descendant fields.
40958 2001-12-05 Robert Dewar <dewar@gnat.com>
40960 * prj-dect.ads: Add ??? comment
40961 Add 2001 to copyright notice (was not done in after all)
40963 * prj-part.adb: Minor reformatting. Reword one awkward error message.
40965 * prj.ads: Minor reformatting throughout, and add some ??? comments
40967 * snames.ads: Minor reformatting
40969 2001-12-05 Geert Bosch <bosch@gnat.com>
40971 * snames.adb: Autoupdate
40973 2001-12-05 Vincent Celier <celier@gnat.com>
40975 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
40977 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
40979 * prj-env.adb: Minor comment changes (modifying -> extends).
40981 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
40983 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
40986 * prj.adb (Initialize): Change Modifying to Extends.
40988 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
40990 * prj.ads: Minor comment change (Modifying -> extending).
40992 * snames.ads: Change modifying to extends.
40994 2001-12-05 Robert Dewar <dewar@gnat.com>
40996 * sem_warn.adb: Remove stuff for conditionals, we are not going to
40999 * sem_warn.ads: Remove stuff for conditionals, we are not going to
41000 do this after all. Add 2001 to copyright notice
41002 2001-12-04 Geert Bosch <bosch@gnat.com>
41004 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
41006 2001-12-04 Robert Dewar <dewar@gnat.com>
41008 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
41009 location if we already have errors. Stops some cases of cascaded
41012 * errout.adb: Improve comment.
41014 2001-12-04 Robert Dewar <dewar@gnat.com>
41017 (Analyze_Formal_Type_Definition): Defend against Error.
41018 (Analyze_Formal_Subprogram): Defend against Error.
41020 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
41021 remove following semicolon if present. Removes cascaded error.
41023 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
41026 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
41027 exceptions equals 0.
41028 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
41029 Fixes PIWG E tests (which have to be run with -gnatL).
41031 2001-12-04 Robert Dewar <dewar@gnat.com>
41033 * einfo.ads: Minor reformatting
41035 2001-12-04 Ed Schonberg <schonber@gnat.com>
41037 * einfo.ads: Block_Node points to the identifier of the block, not to
41038 the block node itself, to preserve the link when the block is
41039 rewritten, e.g. within an if-statement with a static condition.
41041 * inline.adb (Cleanup_Scopes): recover block statement from block
41042 entity using new meaning of Block_Node.
41044 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
41045 identifier of block node, rather than to node itself.
41047 2001-12-04 Gary Dismukes <dismukes@gnat.com>
41050 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
41051 (Discrimify): Go back to setting the Etypes of the selected component
41052 because the Vname component does not exist at this point and will
41053 fail name resolution. Also set Analyzed.
41054 Remove with and use of Sem_Res.
41056 2001-12-04 Arnaud Charlet <charlet@gnat.com>
41058 * Makefile.in: (HIE_SOURCES): add s-fat*.
41060 2001-12-04 Robert Dewar <dewar@gnat.com>
41063 (Compile_Time_Known_Attribute): New procedure.
41064 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
41065 proper range check.
41067 2001-12-04 Ed Schonberg <schonber@gnat.com>
41069 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
41070 processing discriminants to diagnose illegal default values.
41072 2001-12-04 Ed Schonberg <schonber@gnat.com>
41074 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
41075 access discriminant within a type extension that constrains its
41076 parent discriminants.
41078 2001-12-04 Ed Schonberg <schonber@gnat.com>
41080 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
41081 is malformed, use instance of Any_Id to allow analysis to proceed.
41083 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
41084 type definition is illegal.
41085 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
41088 2001-12-04 Ed Schonberg <schonber@gnat.com>
41090 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
41093 2001-12-04 Robert Dewar <dewar@gnat.com>
41095 * errout.adb: Minor reformatting
41097 2001-12-04 Robert Dewar <dewar@gnat.com>
41099 * exp_util.adb: Minor reformatting from last change
41101 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
41102 which is a rewriting of an expression, traverse the original
41103 expression to remove warnings that may have been posted on it.
41105 2001-12-04 Ed Schonberg <schonber@gnat.com>
41107 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
41108 record that has other packed components.
41110 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
41112 * adaint.c: Minor cleanups.
41114 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
41116 * adaint.c: Do not use utime.h on vxworks.
41118 2001-12-04 Arnaud Charlet <charlet@gnat.com>
41120 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
41121 more confusion than it solves.
41123 2001-12-04 Geert bosch <bosch@gnat.com>
41125 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
41127 2001-12-04 Geert Bosch <bosch@gnat.com>
41129 * Makefile.in (update-sources): New target.
41130 For use by gcc_release script.
41132 2001-12-04 Ed Schonberg <schonber@gnat.com>
41134 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
41135 a configuration pragma, it is now legal wherever a pragma can appear.
41137 2001-12-04 Zack Weinberg <zack@codesourcery.com>
41139 * Makefile.in: Don't set ALL. Delete @cross_defines@,
41140 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
41141 is now @CROSS@ -DIN_GCC; update comment.
41143 2001-12-04 Robert Dewar <dewar@gnat.com>
41145 * einfo.adb (Has_Pragma_Pure_Function): New flag.
41146 Fix problem that stopped ceinfo from working
41148 * einfo.ads (Has_Pragma_Pure_Function): New flag.
41150 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
41152 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
41155 (File_Time_Stamp): New procedure.
41156 (Preserve_Mode): New boolean.
41157 (Write_Unit): Pass time stamp.
41158 Implement -p switch (preserve time stamps).
41160 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
41162 * gnatchop.adb: Do usage info for -p switch
41164 * adaint.h (__gnat_set_file_time_name): New function
41166 * adaint.c (__gnat_set_file_time_name): Implement
41168 * adaint.h: Fix typo
41170 2001-12-03 Robert Dewar <dewar@gnat.com>
41172 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
41173 have Associated_Node.
41175 2001-12-03 Robert Dewar <dewar@gnat.com>
41177 * prj-proc.adb: Minor reformatting
41179 * make.adb: Minor reformatting
41181 2001-12-03 Geert Bosch <bosch@gnat.com>
41183 * make.adb: Minor reformatting.
41185 2001-12-03 Robert Dewar <dewar@gnat.com>
41187 * sem_ch12.adb: Minor reformatting
41189 2001-12-03 Ed Schonberg <schonber@gnat.com>
41191 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
41192 push Standard on the stack before analyzing the instance body,
41193 in order to have a clean visibility environment.
41195 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
41197 2001-12-03 Ed Schonberg <schonber@gnat.com>
41199 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
41200 instantiation of a body that contains an inlined body.
41202 2001-12-03 Ed Schonberg <schonber@gnat.com>
41205 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
41206 to prevent freezing within formal packages.
41207 (Freeze_Subprogram_Body): If body comes from another instance that
41208 appeared before its own body, place freeze node at end of current
41209 declarative part, to prevent a back-end crash.
41210 (Inline_Instance_Body): Handle properly a package instance within
41211 a subprogram instance that is a child unit.
41213 2001-12-01 Graham Stott <grahams@redhat.com>
41215 * Makefile.in (misc.o): Add missing $(srcdir) prefix
41216 and add optabs.h dependency.
41218 * misc.c: Include optabs.h
41219 (gnat_tree_code_type): Make static and const.
41220 (gnat_tree_code_length): Likewise.
41221 (gnat_tree_code_name): Likewise.
41222 (update_setjmp_buf): Obtain operands mode from insn_data.
41224 2001-11-29 Richard Henderson <rth@redhat.com>
41226 * init.c: Remove obsolete dwarf2 frame.h section.
41228 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
41230 * Make-lang.in (ada.generated-manpages): New dummy target.
41232 2001-11-29 Ed Schonberg <schonber@gnat.com>
41234 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
41235 into Command, an array conversion is illegal here. Uncovered by
41238 2001-11-28 Geert Bosch <bosch@gnat.com>
41240 * init.c: Minor whitespace changes.
41242 2001-11-28 Doug Rupp <rupp@gnat.com>
41244 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
41247 2001-11-28 Zack Weinberg <zack@codesourcery.com>
41249 * misc.c (gnat_expand_constant): Move declaration above
41250 definition of lang_hooks.
41251 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
41252 (gnat_init): lang_expand_constant no longer exists.
41254 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
41255 always have vprintf.
41256 (gnat_init): Always call set_internal_error_function.
41258 2001-11-27 Andreas Jaeger <aj@suse.de>
41260 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
41262 2001-11-27 Laurent Guerby <guerby@acm.org>
41264 * Makefile.in: Regenerate Ada dependencies.
41266 2001-11-26 Richard Henderson <rth@redhat.com>
41268 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
41269 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
41270 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
41272 2001-11-25 Laurent Guerby <guerby@acm.org>
41274 * sysdep.c (rts_get_*): Fix style.
41276 2001-11-19 Laurent Guerby <guerby@acm.org>
41278 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
41279 since it is of no apparent use and cause warnings.
41281 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
41283 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
41285 (gnat_init): Don't return NULL.
41286 (finish_parse): Remove.
41288 2001-11-17 Laurent Guerby <guerby@acm.org>
41290 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
41291 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
41292 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
41293 * lang-spec.h: Add missing struct field to silence warnings.
41294 * sysdep.c (rts_get_*): Provide K&R prototype.
41295 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
41296 * traceback.c (Unlock_Task, Lock_Task): Likewise.
41297 * tracebak.c (__gnat_backtrace): Remove unused variable.
41298 * utils.c (end_subprog_body): Move to K&R style.
41300 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41302 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
41304 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
41306 * misc.c (gnat_init): Change prototype. Include the
41307 functionality of the old init_parse and init_decl_processing.
41308 (gnat_init_decl_processing): New prototype.
41309 (init_parse): Remove.
41310 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
41312 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
41314 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
41315 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
41316 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
41317 set_yydebug): Remove.
41319 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
41321 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
41322 (struct lang_hooks): Constify.
41323 (language_string, lang_identify): Remove.
41324 * utils.c (init_decl_processing): Update.
41326 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
41328 * misc.c: Include langhooks-def.h.
41329 * Makefile.in: Update.
41331 2001-10-30 Robert Dewar <dewar@gnat.com>
41334 (Check_Identifier): Rewrite circuit to be compatible with use of letters
41335 in the upper half of ASCII.
41336 (Check_Identifier): Minor reformatting
41338 2001-10-30 Geert Bosch <bosch@gnat.com>
41340 * (Associated_Node, Set_Associated_Node): Do not check for
41343 2001-10-30 Robert Dewar <dewar@gnat.com>
41345 * a-reatim.ads: Minor reformatting
41347 2001-10-30 Robert Dewar <dewar@gnat.com>
41349 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
41350 undocumented declarations.
41352 2001-10-30 Pascal Obry <obry@gnat.com>
41354 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
41355 to the binder and linker.
41358 * mdll.ads: Fix layout. Update copyright notice.
41360 * mdll.adb: Fix layout. Update copyright notice.
41362 2001-10-30 Robert Dewar <dewar@gnat.com>
41364 * usage.adb: Minor fix to output for -gnaty.
41366 2001-10-30 Ed Schonberg <schonber@gnat.com>
41368 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
41369 to accommodate all its possible values.
41371 * a-reatim.adb (Split): Special-case handling of Time_Span_First
41372 and of small absolute values of T.
41374 2001-10-30 Richard Kenner <kenner@gnat.com>
41376 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
41377 set_mem_attributes since not needed and wrong if RESULT if a REG;
41378 fixes ACATS failures.
41380 2001-10-30 Geert Bosch <bosch@gnat.com>
41382 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
41383 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
41385 2001-10-30 Robert Dewar <dewar@gnat.com>
41387 * bindusg.adb: Undocument -f switch.
41389 * gnatcmd.adb: Remove /FULL_ELABORATION.
41391 * opt.ads (Force_RM_Elaboration_Order): Document that this is
41394 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
41396 * gnatbind.adb: Minor update of warning msg.
41398 2001-10-30 Vincent Celier <celier@gnat.com>
41400 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
41401 for project file switches (-P (/PROJECT_FILE=),
41402 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
41405 2001-10-30 Geert Bosch <bosch@gnat.com>
41407 * decl.c: Minor whitespace fixes.
41409 2001-10-30 Richard Kenner <kenner@gnat.com>
41411 * utils2.c (build_allocator): Test for SIZE overflow in array case too
41413 2001-10-30 Geert Bosch <bosch@gnat.com>
41415 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
41416 Found due to GCC 3.0 warning of using uninitialized value.
41419 (Get_Max_Size): Use variant record for tracking value/expression.
41420 Makes logic clearer and prevents warnings for uninitialized variables.
41421 (Layout_Array_Type): Use variant record for tracking value/expression.
41422 Makes logic clearer and prevents warnings for uninitialized variables.
41424 2001-10-30 Robert Dewar <dewar@gnat.com>
41426 * lib.adb: Minor reformatting
41428 * s-taprop.ads: Minor reformatting
41430 2001-10-29 Laurent Guerby <guerby@acm.org>
41433 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
41435 (_gnat_error_handler): Make MSG const.
41437 2001-10-29 Richard Kenner <kenner@gnat.com>
41439 * sysdep.c: Fix localtime_r problem on LynxOS.
41440 Also remove #elif to avoid warnings.
41442 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
41445 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
41447 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
41449 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
41450 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
41451 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
41452 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
41453 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
41454 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
41455 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
41456 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
41457 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
41458 types.ads, urealp.adb: Fix spelling errors.
41460 2001-10-27 Laurent Guerby <guerby@acm.org>
41462 * trans.c (gigi): Fix non determinism leading to bootstrap
41463 comparison failures for debugging information.
41465 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
41467 * gnat_rm.texi: Use @./@: where appropriate.
41469 2001-10-26 Robert Dewar <dewar@gnat.com>
41471 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
41473 2001-10-26 Richard Kenner <kenner@gnat.com>
41475 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
41477 2001-10-26 Richard Kenner <kenner@gnat.com>
41479 * decl.c (validate_size): Modify message for bad size to avoid
41480 implication that compiler is modifying the size.
41482 2001-10-26 Robert Dewar <dewar@gnat.com>
41484 * prj-util.adb: Minor reformatting. Fix bad header format.
41486 2001-10-26 Robert Dewar <dewar@gnat.com>
41488 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
41490 * sinfo.ads: Clarify use of Associated_Node (documentation only).
41492 * sem_ch12.adb: Change Node4 to Associated_Node. Change
41493 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
41494 much more narrowly in places where needed. These are cleanups.
41496 2001-10-26 Joel Brobecker <brobecke@gnat.com>
41498 * 5zosinte.ads (null_pthread): new constant.
41501 (Initialize_TCB): Initialize thread ID to null, to be able to verify
41502 later that this field has been set.
41503 (Finalize_TCB): ditto.
41504 (Suspend_Task): Verify that the thread ID is not null before using it.
41505 (Resume_Task): ditto.
41508 (Resume_All_Tasks): Lock the tasks list before using it.
41509 (Suspend_All_Tasks): ditto.
41511 2001-10-26 Richard Kenner <kenner@gnat.com>
41513 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
41514 Make constant variant of designated type for Is_Access_Constant.
41515 Call update_pointer_to with main variant.
41517 * trans.c (process_freeze_entity, process_type):
41518 Call update_pointer_to on main variant.
41520 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
41521 If main variant, update all other variants.
41523 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
41526 2001-10-26 Robert Dewar <dewar@gnat.com>
41528 * prj-util.adb: Minor reformatting
41530 2001-10-26 Robert Dewar <dewar@gnat.com>
41532 * prj-util.adb: Minor reformatting
41534 2001-10-26 Robert Dewar <dewar@gnat.com>
41536 * prj-attr.adb: Minor reformatting throughout
41538 2001-10-26 Robert Dewar <dewar@gnat.com>
41540 * prj-attr.ads: Minor reformatting
41541 Add ??? comment (this whole spec has almost no comments)
41543 2001-10-26 Vincent Celier <celier@gnat.com>
41545 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
41546 ("//") that precede the drive letter on Interix.
41548 2001-10-26 Geert Bosch <bosch@gnat.com>
41550 * gnat_rm.texi: Add GNAT Reference Manual.
41552 2001-10-25 Robert Dewar <dewar@gnat.com>
41554 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
41555 is Error. Similar change for other renaming cases.
41557 2001-10-25 Robert Dewar <dewar@gnat.com>
41559 * s-atacco.ads: Add pragma Inline_Always for functions.
41560 Fix header format. Add copyright 2001
41562 2001-10-25 Ed Schonberg <schonber@gnat.com>
41564 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
41565 return Error rather than Empty so that analysis can proceed.
41567 2001-10-25 Ed Schonberg <schonber@gnat.com>
41569 * sem_util.adb (Enter_Name): better handling of cascaded error
41570 messages when a unit appears in its own context.
41572 2001-10-25 Ed Schonberg <schonber@gnat.com>
41574 * sem_util.adb (Defining_Entity): in case of error, attach created
41575 entity to specification, so that semantic analysis can proceed.
41577 2001-10-25 Robert Dewar <dewar@gnat.com>
41580 (Defining_Entity): Deal with Error.
41581 (Process_End_Label): Deal with bad end label for.
41583 2001-10-25 Ed Schonberg <schonber@gnat.com>
41585 * sem_elab.adb (Check_A_Call): refine message when call is in an
41586 instance but callee is not declared in the generic unit.
41588 2001-10-25 Ed Schonberg <schonber@gnat.com>
41590 * sem_elab.adb (Check_A_Call): check for renaming before finding the
41591 enclosing unit, which may already be different from the calling unit.
41593 2001-10-25 Geert Bosch <bosch@gnat.com>
41595 * 4gintnam.ads: fix header format.
41597 2001-10-25 Ed Schonberg <schonber@gnat.com>
41599 * sem_res.adb (Resolve_Call): if the call is actually an indexing
41600 operation on the result of a parameterless call, perform elaboration
41601 check after the node has been properly rewritten.
41603 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
41604 inlined within the generic tree, the defining identifier is not a
41607 2001-10-25 Ed Schonberg <schonber@gnat.com>
41609 * sem_res.adb (Resolve): special-case resolution of Null in an
41610 instance or an inlined body to avoid view conflicts.
41612 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
41613 compatibility by retrieving the access type of the generic copy.
41615 2001-10-25 Robert Dewar <dewar@gnat.com>
41618 (Analyze_Number_Declaration): Handle error expression.
41619 (Signed_Integer_Type_Declaration): Handle error bound.
41620 (Analyze_Subtype_Indication): Handle error range.
41622 * sem_util.adb (Get_Index_Bounds): Check for Error.
41624 2001-10-25 Robert Dewar <dewar@gnat.com>
41626 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
41627 in no run time mode.
41629 2001-10-25 Pascal Obry <obry@gnat.com>
41631 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
41632 mode case for ALLOC case.
41634 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
41635 all platforms. Improvement of last change.
41637 2001-10-25 Robert Dewar <dewar@gnat.com>
41639 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
41641 2001-10-25 Geert Bosch <bosch@gnat.com>
41643 * osint.adb (Is_Relative): Remove duplicate.
41645 2001-10-25 Pascal Obry <obry@gnat.com>
41647 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
41648 pathnames in UNIX and DOS style with drive letter.
41649 (Is_Relative): new routine.
41651 * osint.adb: Minor reformatting
41653 * osint.adb (Is_Relative): implementation using
41654 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
41656 2001-10-25 Pascal Obry <obry@gnat.com>
41658 * g-dirope.adb (Basename): correctly compute offset between the
41659 original Path and the translated one.
41661 * g-dirope.adb: (Base_Name): add some comments.
41663 2001-10-25 Robert Dewar <dewar@gnat.com>
41665 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
41666 in HIE mode, avoids compilation abandoned message
41668 * exp_imgv.adb: Correct typo in previous change
41670 * exp_imgv.adb: Correct typo in previous change (not my day!)
41672 2001-10-25 Robert Dewar <dewar@gnat.com>
41674 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
41676 2001-10-25 Pascal Obry <obry@gnat.com>
41678 * g-awk.ads: Move all pragma inlines next to the routine
41679 declarations. This is more uniform with other GNAT spec.
41681 2001-10-22 Geert Bosch <bosch@gnat.com>
41683 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
41685 2001-10-19 Geert Bosch <bosch@gnat.com>
41687 * Makefile.in (tools, gnattools): Remove gnatmem.
41689 2001-10-17 Richard Henderson <rth@redhat.com>
41691 * Makefile.in (misc.o): Depend on langhooks.h.
41692 * misc.c: Include it.
41693 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
41694 (LANG_HOOKS_DECODE_OPTION): New.
41695 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
41697 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
41699 * trans.c (tree_transform): Adjust to recent change in
41700 expand_asm_operands to implement named asm operands.
41702 2001-10-11 Ed Schonberg <schonber@gnat.com>
41704 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
41705 renaming of discriminant for mutable record type.
41707 2001-10-11 Robert Dewar <dewar@gnat.com>
41709 * validsw.adb: Properly save -gnatVn status.
41711 2001-10-11 Robert Dewar <dewar@gnat.com>
41713 * usage.adb: Add lines for V switch.
41715 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
41716 (/VALIDITY_CHECKING).
41718 2001-10-11 Ed Schonberg <schonber@gnat.com>
41720 * sem_type.adb (Add_One_Interp): an operator for a type declared in
41721 an extension of System is known to be visible.
41723 2001-10-11 Ed Schonberg <schonber@gnat.com>
41725 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
41726 properly. Fixes regression on ACATS C34005G.
41728 2001-10-11 Robert Dewar <dewar@gnat.com>
41730 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
41731 loop in generic instance, since this is likely not very useful.
41733 2001-10-11 Robert Dewar <dewar@gnat.com>
41735 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
41736 the error message for high integrity mode.
41738 * rtsfind.adb (RTE): Give message if we try to find an entity that
41739 is not available in high integrity mode.
41742 (OK_To_Use_In_HIE_Mode): New array.
41743 (RTE): May return Empty in high integrity mode.
41745 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
41746 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
41748 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
41749 unit if not inlined always and in no runtime mode. Fixes problem
41750 caused by new Rtsfind changes.
41752 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
41755 * rtsfind.adb (RTE): Make sure we do not try to load unit after
41756 giving message for entity not available in high integrity mode.
41758 2001-10-11 Pascal Obry <obry@gnat.com>
41760 * impunit.adb: Add GNAT.CRC32.
41762 2001-10-11 Ed Schonberg <schonber@gnat.com>
41764 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
41765 properly the case where one universal operand in a non-static
41766 exponentiation of a real literal.
41768 2001-10-11 Ed Schonberg <schonber@gnat.com>
41770 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
41771 clause, return the gobal finalization list, for lack of anthing else.
41773 2001-10-11 Ed Schonberg <schonber@gnat.com>
41775 * exp_ch7.adb (Make_Transient_Block): if statement is within
41776 exception handler, always use new transient scope to place Clean
41779 2001-10-11 Pascal Obry <obry@gnat.com>
41782 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41783 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41784 (GNATLS_RTL_OBJS): add g-crc32.o
41785 (GNATMAKE_RTL_OBJS): add g-crc32.o
41788 (CRC_Match): new function.
41789 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
41790 instead of the previous simple checksum algorithm.
41791 (Time_Stamp_Mismatch): use CRC_Match for comparison.
41792 (Set_Source_Table): idem.
41795 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
41796 instead of simple checksum.
41797 (CRC_Match): new function.
41798 (CRC_Error): new constant.
41800 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
41801 a CRC now and not a simple checksum. A CRC uses lower-case hex
41802 letters, fixes ambiguity in parsing.
41804 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
41805 is what this variable will store.
41807 * bcheck.adb: Change reference to chechsum in comments by CRC.
41808 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
41809 rename All_Checksum_Match to All_CRC_Match. Change due to API
41810 renaming since now GNAT does not use a simple checksum but a
41811 CRC using GNAT.CRC32.
41813 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
41814 now and not anymore a simple checksum.
41816 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
41819 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
41822 (Restore_Scan_State): rename Checksum to CRC.
41823 (Save_Scan_State): idem.
41827 (Checksum): rename to CRC.
41828 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
41830 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
41831 GNAT.CRC32). Update copyright notice.
41833 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
41834 GNAT.CRC32). Update copyright notice.
41837 (Accumulate_Checksum): removed.
41838 (Update): new procedure. Add a wide-character into the CRC.
41841 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
41842 (Load_File): fix initialization of S (change Source_Checksum to
41845 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
41846 Source_CRC in S initialization.
41848 * sinput.adb (Source_Checksum): renamed to Source_CRC.
41850 * sinput.ads (Source_Checksum): renamed to Source_CRC.
41851 Update comments for the CRC.
41853 * types.adb (Hex): Use lowercase for the letter part.
41855 * types.ads (Get_Hex_String): Returns the hexadecimal representation
41856 for a word. This is currently used only for CRC. In previous version,
41857 the checksum was using a representation with all letter being
41858 upper-case. With the new implementation (using CRC) we do not remove
41859 the 32th bit of the CRC, so we can have an upper-case starting letter
41860 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
41861 It is ambigous since the CRC was optional and could be followed by
41862 options like EB, EE. So now this routines uses lower-case letter for
41863 the hexadecimal representation. Strange enough only lower case letters
41864 where checked in Scan_ALI (even if this was not a possible case).
41866 * gnatvsn.ads (Library_Version): changed to 3.15a.
41868 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
41871 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
41874 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
41875 Add 2001 to copyright notice
41876 (Accumulate_Checksum): Modify to use System.CRC32.
41878 * ali-util.ads: Redo changes of previous revision to continue to use
41879 the word Checksum. Add 2001 to copyright notice.
41881 * ali.adb: Undo some of previous changes, not needed.
41882 Keep the change for lower case letters in the checksum.
41884 * ali.ads: Undo previous change not needed.
41886 * bcheck.adb: Undo most of previous change, not needed.
41887 But do use Checksums_Match for checksum comparison.
41889 * gnatls.adb: Undo most of previous change, not needed.
41890 But do use Checksums_Match for comparing checksums.
41892 * lib-load.adb: Undo previous change, not needed.
41894 * lib-writ.adb: Undo previous change, not needed.
41896 * lib-writ.ads: Document that checksums use lower case,
41897 not upper case letters.
41899 * scans.adb: Undo previous change, not needed
41901 * scans.ads: Undo previous change, not needed.
41903 * scn-nlit.adb: Undo previous changes, not needed.
41905 * scn-slit.adb: Undo previous change, not needed. Fix header format.
41908 (Accumulate_Checksum): Use System.CRC32.
41909 (Initialize_Checksum): New procedure.
41910 Remove other changes of previous revision.
41912 * sinput-p.adb: Undo previous change, not needed.
41914 * sinput.adb: Undo previous change, not needed.
41916 * sinput-l.adb: Undo previous change, not needed.
41918 * sinput.ads: Undo previous change, not needed. Keep only comment
41919 on new checksum algorithm
41921 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
41922 Also remove a-tags and a-stream from GNAT sources.
41924 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
41926 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
41928 2001-10-11 Geert Bosch <bosch@gnat.com>
41930 * einfo.h: Regenerate.
41932 * nmake.ads: Regenerate.
41934 * nmake.adb: Regenerate.
41936 * sinfo.h: Regenerate.
41938 * treeprs.adb: Regenerate.
41940 2001-10-10 Geert Bosch <bosch@gnat.com>
41942 * gnat-style.texi: New file describing coding guidelines for Ada.
41944 2001-10-10 Ed Schonberg <schonber@gnat.com>
41946 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
41949 2001-10-10 Geert Bosch <bosch@gnat.com>
41951 * snames.ads: Add new names for project facility.
41953 * snames.adb: Update to reflect snames.ads changes.
41955 * snames.h: Update to reflect snames.ads changes.
41957 2001-10-10 Vincent Celier <celier@gnat.com>
41960 (Add_Switches): reflect the changes for the switches attributes
41961 Default_Switches indexed by the programming language,
41962 Switches indexed by the file name.
41963 (Collect_Arguments_And_Compile): Idem.
41964 Reflect the attribute name changes.
41967 (Initialisation_Data): Change the names of some packages and
41969 (Initialize): process case insensitive associative arrays.
41972 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
41975 (Parse_Attribute_Declaration): For case insensitive associative
41976 arrays, set the index string to lower case.
41979 Reflect the changes of the project attributes.
41982 Replace Check_Naming_Scheme by Ada_Check and
41983 Language_Independent_Check.
41986 Replaced Check_Naming_Scheme by 2 procedures:
41987 Ada_Check and Language_Independent_Check.
41990 (Process_Declarative_Items): For case-insensitive associative
41991 arrays, set the index string to lower case.
41992 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
41993 Prj.Nmsc.Check_Naming_Scheme.
41996 (Case_Insensitive): New function
41997 (Set_Case_Insensitive): New procedure
42000 (Case_Insensitive): New function
42001 (Set_Case_Insensitive): New procedure
42002 (Project_Node_Record): New flag Case_Insensitive.
42005 (Value_Of): new function to get the string value of a single
42006 string variable or attribute.
42009 (Value_Of): new function to get the string value of a single
42010 string variable or attribute.
42013 (Ada_Default_Spec_Suffix): New function
42014 (Ada_Default_Impl_Suffix): New function
42015 Change definitions of several constants to reflect
42016 new components of record types.
42019 (Naming_Data): Change several components to reflect new
42020 elements of naming schemes.
42021 (Project_Data): New flags Sources_Present and
42022 Language_Independent_Checked.
42023 (Ada_Default_Spec_Suffix): New function.
42024 (Ada_Default_Impl_Suffix): New function.
42027 Modification of predefined names for project manager: added
42028 Implementation, Specification_Exceptions, Implementation_Exceptions,
42029 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
42030 Default_Switches, _Languages, Builder, Cross_Reference,
42031 Finder. Removed Body_Part, Specification_Append, Body_Append,
42032 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
42035 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
42038 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
42039 not that it is Nil_Variable_Value.
42041 * prj.ads: Add ??? for uncommented declarations
42043 2001-10-10 Ed Schonberg <schonber@gnat.com>
42045 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
42046 constant, do not indicate possible modification, so that gigi can
42047 treat it as a bona fide constant.
42049 2001-10-10 Robert Dewar <dewar@gnat.com>
42051 * sem_prag.adb: Add processing for pragma External.
42053 * snames.ads: Add entry for pragma External.
42055 * par-prag.adb: Add pragma External.
42057 * snames.adb: Updated to match snames.ads.
42059 2001-10-10 Ed Schonberg <schonber@gnat.com>
42061 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
42062 a dynamic task if the allocator appears in an indexed assignment
42063 or selected component assignment.
42065 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
42066 For a dynamic task in an assignment statement, use target of
42067 assignment to generate meaningful name.
42069 2001-10-10 Ed Schonberg <schonber@gnat.com>
42071 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
42074 * einfo.ads: Body_Entity is also defined for generic package.
42075 Documentation change only
42077 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
42078 others_choice for a discriminated component initialization,
42079 convert discriminant references into the corresponding discriminals.
42081 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
42082 only if original type is private and expression has to be wrapped
42086 (Apply_Constraint_Check): Do not perform length check
42087 if expression is an aggregate with only an others_choice.
42088 (Length_N_Cond): two references to the same in_parameter
42089 (typically the discriminal in an init_proc) denote the same value.
42090 Two useful optimization uncovered by bugfixes above.
42092 2001-10-10 Robert Dewar <dewar@gnat.com>
42094 * xeinfo.adb: Change int to char in translation of enumeration types.
42095 This fixes a problem in the C representation of component alignment.
42096 Add 2001 to copyright notice
42098 2001-10-10 Richard Kenner <kenner@gnat.com>
42100 * decl.c: (validate_size): Do check size of object of integral type
42101 if it is a packed array type.
42103 2001-10-10 Richard Kenner <kenner@gnat.com>
42105 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
42106 VAR_DECL for constant if not Is_Public but -O0.
42108 2001-10-10 Richard Kenner <kenner@gnat.com>
42110 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
42112 2001-10-10 Geert Bosch <bosch@gnat.com>
42114 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
42115 use '/' as switch character, allowing for absolute file names.
42117 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
42119 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
42122 2001-10-08 Geert Bosch <bosch@gnat.com>
42124 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
42125 Automatically build utilities when files need to be regenerated.
42127 2001-10-08 Geert Bosch <bosch@gnat.com>
42129 * xsnames.adb: New utility for updating snames.ads and snames.adb
42131 2001-10-08 Zack Weinberg <zack@codesourcery.com>
42133 * Make-lang.in (ADAFLAGS): Add -W -Wall.
42134 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
42135 (gnat1): Also depend on attribs.o.
42136 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
42137 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
42138 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
42139 (ADAFLAGS): Add -W -Wall.
42140 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
42143 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
42144 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
42145 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
42146 Use $(ADAC), not $(CC), as compilation command.
42148 (gnattools): Depend directly on tools to build, don't use
42150 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
42152 * einfo.h, sinfo.h: New files (autogenerated).
42154 2001-10-08 Richard Henderson <rth@redhat.com>
42156 * comperr.adb (Abort_In_Progress): New.
42157 (Compiler_Abort): Use it to prevent recursion.
42159 2001-10-08 Robert Dewar <dewar@gnat.com>
42161 * atree.adb: Set Error_Posted in Error node, helps error recovery.
42163 * par-endh.adb (Output_End_Expected): We should also not test
42164 Error_Posted on the Error node, since now it is always set.
42166 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
42167 to help error recovery. Part of general work on 9407-004.
42169 * par.adb: Add ??? for misuse of error
42172 (Resolve): Defend against Error, fixes 9407-003.
42173 (Resolve_Discrete_Subtype_Indication): Defend against Error.
42175 * sinfo.ads (N_Error): Now has Etype field (which will be set
42176 to Any_Type to help error recovery).
42178 2001-10-08 Richard Kenner <kenner@gnat.com>
42180 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
42181 Consistently set MEM attributes from expression; fixes
42182 bootstrap failure on x86.
42184 2001-10-08 Geert Bosch <bosch@gnat.com>
42186 * 5oosinte.adb: Add 2001 to copyright notice.
42188 2001-10-08 Geert Bosch <bosch@gnat.com>
42190 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
42192 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
42194 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
42196 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
42198 2001-10-05 Geert Bosch <bosch@gnat.com>
42200 * adaint.h: Small formatting fix.
42202 2001-10-04 Geert Bosch <bosch@gnat.com>
42204 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
42205 Arg is int, not FILE *, in dummy version of functions.
42207 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
42208 Arg is int, not FILE *.
42210 2001-10-04 Geert Bosch <bosch@gnat.com>
42212 * 3lsoccon.ads: Added file, missed with initial check ins.
42214 * 4lintnam.ads: Fix header format.
42215 Change Linux to GNU/Linux.
42217 * 5iosinte.adb: Change Linux to GNU/Linux.
42219 * 5iosinte.ads: Change Linux to GNU/Linux.
42221 * 5itaprop.adb: Change Linux to GNU/Linux.
42223 * 5itaspri.ads: Change Linux to GNU/Linux.
42224 Update copyright notice.
42226 * 5lintman.adb: Change Linux to GNU/Linux.
42228 * 5lml-tgt.adb: Change Linux to GNU/Linux.
42230 * 5losinte.ads: Change Linux to GNU/Linux.
42232 * 5lsystem.ads: Change Linux to GNU/Linux.
42234 * 5qosinte.adb: Change Linux to GNU/Linux.
42236 * 5qosinte.ads: Change Linux to GNU/Linux.
42238 * 5qparame.ads: Change Linux to GNU/Linux.
42240 * 5qtaprop.adb: Change Linux to GNU/Linux.
42242 * 5qtaspri.ads: Change Linux to GNU/Linux.
42243 Add 2001 to copyright notice.
42245 * 5vintman.ads: Change Linux to GNU/Linux.
42246 Fix header format. Add 2001 to copyright notice.
42248 * g-soccon.ads: Change Linux to GNU/Linux.
42250 * g-trasym.ads: Change Linux to GNU/Linux.
42251 Add 2001 to copyright notice.
42253 * memtrack.adb: Change Linux to GNU/Linux.
42255 * s-intman.ads: Change Linux to GNU/Linux.
42256 Add 2001 to copyright notice. Fix header format.
42258 * s-stache.adb: Change Linux to GNU/Linux.
42260 * adaint.c: Change Linux to GNU/Linux.
42262 * cio.c: Change Linux to GNU/Linux.
42264 * cstreams.c: Change Linux to GNU/Linux.
42266 * init.c: Change Linux to GNU/Linux.
42268 * gmem.c: Change Linux to GNU/Linux.
42270 * tracebak.c: Change Linux to GNU/Linux.
42273 2001-10-02 Geert Bosch <bosch@gnat.com>
42275 * misc.c (insert_default_attributes): Add dummy version.